wip: desktop work
This commit is contained in:
parent
8699e896e6
commit
cc955098cd
13 changed files with 1581 additions and 609 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue