Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95aa9ff160 | |||
| 7a4d55412f | |||
| ace7a81cbc |
Generated
+3
-3
@@ -1782,9 +1782,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vuetify": {
|
"node_modules/vuetify": {
|
||||||
"version": "4.1.4",
|
"version": "4.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-4.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-4.1.5.tgz",
|
||||||
"integrity": "sha512-8/H0Yl6h9t07/ExuyZFIRJqAenpKeCiVaRJzbHGfTtuZRZIs5EbtjdFYikPIu6h9thBJAx15PrU4ofa4LvdJag==",
|
"integrity": "sha512-cR3XMzWbVll9wSdarhH7asT27zm23rMNM5dQ9pMGwTPGwEm0km8mY6ERJAGHIa/nMw0pYXWHjf1O9qJ/0PtZCQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const emit = defineEmits<{
|
|||||||
:model-value="modelValue"
|
:model-value="modelValue"
|
||||||
contained
|
contained
|
||||||
@update:model-value="emit('update:modelValue', $event)"
|
@update:model-value="emit('update:modelValue', $event)"
|
||||||
:permanent="!isMobile"
|
:permanent="modelValue && !isMobile"
|
||||||
:temporary="isMobile"
|
:temporary="isMobile"
|
||||||
width="280"
|
width="280"
|
||||||
class="files-sidebar"
|
class="files-sidebar"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useDisplay } from 'vuetify'
|
|
||||||
import type { ViewMode } from '@/types'
|
import type { ViewMode } from '@/types'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
@@ -19,9 +18,6 @@ const emit = defineEmits<{
|
|||||||
'new-folder': []
|
'new-folder': []
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const display = useDisplay()
|
|
||||||
const isMobile = computed(() => display.mdAndDown.value)
|
|
||||||
|
|
||||||
const searchModel = computed({
|
const searchModel = computed({
|
||||||
get: () => props.searchQuery,
|
get: () => props.searchQuery,
|
||||||
set: (value: string) => emit('update:searchQuery', value)
|
set: (value: string) => emit('update:searchQuery', value)
|
||||||
@@ -37,14 +33,16 @@ const viewModeModel = computed({
|
|||||||
<v-toolbar elevation="0" density="compact" class="files-toolbar">
|
<v-toolbar elevation="0" density="compact" class="files-toolbar">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<v-btn
|
<v-btn
|
||||||
v-if="isMobile"
|
|
||||||
icon="mdi-menu"
|
icon="mdi-menu"
|
||||||
variant="text"
|
variant="text"
|
||||||
@click="emit('toggle-sidebar')"
|
@click="emit('toggle-sidebar')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-toolbar-title>Files</v-toolbar-title>
|
<v-toolbar-title class="d-flex align-center">
|
||||||
|
<v-icon size="24" color="primary" class="mr-2">mdi-folder-multiple</v-icon>
|
||||||
|
<span class="text-subtitle-1 font-weight-bold">Files</span>
|
||||||
|
</v-toolbar-title>
|
||||||
|
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
|
||||||
@@ -57,6 +55,7 @@ const viewModeModel = computed({
|
|||||||
prepend-inner-icon="mdi-magnify"
|
prepend-inner-icon="mdi-magnify"
|
||||||
hide-details
|
hide-details
|
||||||
single-line
|
single-line
|
||||||
|
clearable
|
||||||
class="files-toolbar-search mx-4"
|
class="files-toolbar-search mx-4"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
+10
-10
@@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.app.json",
|
"extends": "../../tsconfig.app.json",
|
||||||
"compilerOptions": {
|
|
||||||
"composite": true,
|
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
||||||
"paths": {
|
|
||||||
"@/*": ["./src/*"],
|
|
||||||
"@KTXC/*": ["../../core/src/*"],
|
|
||||||
"@DocumentsManager/*": ["../documents_manager/src/*"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
"src/**/*.tsx",
|
"src/**/*.tsx",
|
||||||
"src/**/*.vue",
|
"src/**/*.vue",
|
||||||
"../documents_manager/src/**/*.ts",
|
"../documents_manager/src/**/*.ts",
|
||||||
"../../core/src/**/*.ts"
|
"../../core/src/**/*.ts"
|
||||||
]
|
],
|
||||||
|
"compilerOptions": {
|
||||||
|
"composite": true,
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./src/*"],
|
||||||
|
"@KTXC": ["../../core/src/shared/index.ts"],
|
||||||
|
"@KTXC/*": ["../../core/src/*"],
|
||||||
|
"@DocumentsManager/*": ["../documents_manager/src/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user