wip: desktop work

This commit is contained in:
Adam 2025-09-26 11:41:15 -05:00
commit cc955098cd
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
13 changed files with 1581 additions and 609 deletions

View file

@ -115,6 +115,7 @@ function init() {
const sanitizer = createMemo(() => new RegExp(`${store.path.directory}/`, "g"))
const sanitize = (text: string) => text.replace(sanitizer(), "")
const absolute = (path: string) => (store.path.directory + "/" + path).replace("//", "/")
return {
data: store,
@ -146,6 +147,7 @@ function init() {
},
},
load,
absolute,
sanitize,
}
}