refactor: migrate to storage

refactor: migrate to storage
This commit is contained in:
Methapon2001 2023-12-11 15:51:59 +07:00
parent 4bdf1f620b
commit cc87de5995
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
12 changed files with 388 additions and 879 deletions

View file

@ -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
}