Frontend created and rewritten a few times, with some backend fixes #1

Merged
leo merged 110 commits from plaintable into main 2023-11-08 20:38:40 +00:00
Showing only changes of commit d3f584b738 - Show all commits

View File

@ -125,7 +125,7 @@ const rename = (doc: FolderDocument, newName: string) => {
control.send(
JSON.stringify({
op: 'rename',
path: `${linkBasePath.value}/${oldName}`,
path: `${decodeURIComponent(linkBasePath.value)}/${oldName}`,
to: newName
})
)
@ -149,7 +149,7 @@ const mkdir = (doc: FolderDocument, name: string) => {
const msg = JSON.parse(ev.data)
if ('error' in msg) {
console.error('Mkdir failed', msg.error.message, msg.error)
doc.name = oldName
editing.value = null
} else {
console.log('mkdir', msg)
}
@ -158,7 +158,7 @@ const mkdir = (doc: FolderDocument, name: string) => {
control.send(
JSON.stringify({
op: 'mkdir',
path: `${linkBasePath.value}/${name}`,
path: `${decodeURIComponent(linkBasePath.value)}/${name}`,
})
)
}