Improved dashboard of drive

This commit is contained in:
2025-07-27 02:14:48 +08:00
parent 7ff9605460
commit 2d728e4b07
4 changed files with 244 additions and 20 deletions

View File

@@ -23,17 +23,7 @@
</template>
<div class="mb-3">
<n-select
v-model:value="filePool"
:options="pools ?? []"
:render-label="renderPoolSelectLabel"
:render-tag="renderSingleSelectTag"
value-field="id"
label-field="name"
placeholder="Select a file pool to upload"
clearable
size="large"
/>
<file-pool-select v-model="filePool" @update:pool="currentFilePool = $event" />
</div>
<n-collapse-transition :show="modeAdvanced">
@@ -134,6 +124,8 @@ import { useUserStore } from '@/stores/user'
import type { SnFilePool } from '@/types/pool'
import { formatBytes } from './format'
import FilePoolSelect from '@/components/FilePoolSelect.vue'
import * as tus from 'tus-js-client'
const userStore = useUserStore()