refactor: migrate to storage
refactor: migrate to storage
This commit is contained in:
parent
4bdf1f620b
commit
cc87de5995
12 changed files with 388 additions and 879 deletions
|
|
@ -1,16 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
import { useLoader } from '@/stores/loader'
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
import { useLoader } from '@/stores/loader'
|
||||
import { useSearchDataStore } from '@/stores/searched-data'
|
||||
import { useFileInfoStore } from '@/stores/file-info-data'
|
||||
import useStorage from '@/stores/storage'
|
||||
|
||||
import profile from '@/components/Profile.vue'
|
||||
import { useTreeDataStore } from '@/stores/tree-data'
|
||||
import { useSearchDataStore } from '@/stores/searched-data';
|
||||
import { useFileInfoStore } from '@/stores/file-info-data';
|
||||
const { currentPath } = storeToRefs(useTreeDataStore())
|
||||
|
||||
const { isFilePreview } = storeToRefs(useFileInfoStore())
|
||||
const { isSearch } = storeToRefs(useSearchDataStore())
|
||||
const { getFolder } = useTreeDataStore()
|
||||
const loaderStore = useLoader()
|
||||
const { loader } = storeToRefs(loaderStore)
|
||||
const { loader } = storeToRefs(useLoader())
|
||||
const { goto } = useStorage()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -22,20 +23,14 @@ const { loader } = storeToRefs(loaderStore)
|
|||
src="@/assets/logo-edm.png"
|
||||
spinner-color="white"
|
||||
style="height: 45px; max-width: 45px"
|
||||
@click="
|
||||
() => {
|
||||
currentPath = ''
|
||||
getFolder(currentPath)
|
||||
}
|
||||
"
|
||||
@click="() => goto()"
|
||||
/>
|
||||
<div
|
||||
class="column q-px-md pointer"
|
||||
id="app-toolbar-title"
|
||||
@click="
|
||||
() => {
|
||||
currentPath = ''
|
||||
getFolder(currentPath)
|
||||
goto()
|
||||
isSearch = false
|
||||
isFilePreview = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue