Remove build (wwwroot) from repo. UI tweaks.

This commit is contained in:
Leo Vasanko
2023-11-05 14:06:19 +00:00
parent 589e5a682c
commit 139ff51dcd
68 changed files with 11 additions and 329 deletions

View File

@@ -49,13 +49,15 @@ const headerMain = ref<typeof HeaderMain | null>(null)
let vert = 0
let timer: any = null
const globalShortcutHandler = (event: KeyboardEvent) => {
const c = documentStore.fileExplorer.isCursor()
const keyup = event.type === 'keyup'
if (event.repeat) {
if (event.key === 'ArrowUp' || event.key === 'ArrowDown') event.preventDefault()
if (event.key === 'ArrowUp' || event.key === 'ArrowDown' || (c && event.code === 'Space')) {
event.preventDefault()
}
return
}
//console.log("key pressed", event)
const c = documentStore.fileExplorer.isCursor()
const keyup = event.type === 'keyup'
// For up/down implement custom fast repeat
if (event.key === 'ArrowUp') vert = keyup ? 0 : event.altKey ? -10 : -1
else if (event.key === 'ArrowDown') vert = keyup ? 0 : event.altKey ? 10 : 1
@@ -83,7 +85,7 @@ const globalShortcutHandler = (event: KeyboardEvent) => {
event.preventDefault()
if (!vert) {
if (timer) {
clearInterval(timer)
clearTimeout(timer) // Good for either timeout or interval
timer = null
}
return

View File

@@ -198,6 +198,7 @@ defineExpose({
} else {
documentStore.selected.add(doc.key)
}
this.cursorMove(1)
},
cursorMove(d: number) {
// Move cursor up or down (keyboard navigation)

View File

@@ -4,6 +4,7 @@
id="FileRenameInput"
type="text"
v-model="name"
@blur="exit"
@keyup.esc="exit"
@keyup.enter="apply"
/>

View File

@@ -3,7 +3,8 @@
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"lib": ["ES2021"],
"lib": ["es2021", "DOM"],
"target": "es2021",
"composite": true,
"baseUrl": ".",
"paths": {