[Refactor] Rename hooks/ to composables/ (#2437)

This commit is contained in:
Chenlei Hu
2025-02-05 15:05:56 -05:00
committed by GitHub
parent c6ef107111
commit 6525ae7cf4
41 changed files with 40 additions and 34 deletions

View File

@@ -80,7 +80,7 @@ import ProgressBar from 'primevue/progressbar'
import { computed, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useDownload } from '@/hooks/downloadHooks'
import { useDownload } from '@/composables/useDownload'
import { useElectronDownloadStore } from '@/stores/electronDownloadStore'
import { formatSize } from '@/utils/formatUtil'

View File

@@ -27,7 +27,7 @@
import Button from 'primevue/button'
import { computed } from 'vue'
import { useDownload } from '@/hooks/downloadHooks'
import { useDownload } from '@/composables/useDownload'
import { formatSize } from '@/utils/formatUtil'
const props = defineProps<{

View File

@@ -43,7 +43,7 @@ import { computed, provide, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
import { useErrorHandling } from '@/hooks/errorHooks'
import { useErrorHandling } from '@/composables/useErrorHandling'
import type {
RenderedTreeExplorerNode,
TreeExplorerNode

View File

@@ -41,8 +41,11 @@ import Badge from 'primevue/badge'
import { Ref, computed, inject, ref } from 'vue'
import EditableText from '@/components/common/EditableText.vue'
import { usePragmaticDraggable, usePragmaticDroppable } from '@/hooks/dndHooks'
import { useErrorHandling } from '@/hooks/errorHooks'
import { useErrorHandling } from '@/composables/useErrorHandling'
import {
usePragmaticDraggable,
usePragmaticDroppable
} from '@/composables/usePragmaticDroppable'
import type {
RenderedTreeExplorerNode,
TreeExplorerDragAndDropData,