refactor(web): group shared components by directory
Move each shared component into a named directory with an index.vue entry. Update consumers and relative imports while preserving component behavior.
This commit is contained in:
1 parent
6ea46f99cf
commit
cef0298c34
30 files changed
+42
-42
No files matched your search
@@ -3,7 +3,7 @@ import type { InstalledPlugin } from '@@/apis/plugins/type'
|
||||
import { pluginsApi } from '@@/apis/plugins'
|
||||
import { computed, ref } from 'vue'
|
||||
import { ApiError } from '@/http/axios'
|
||||
import PluginMount from '../../../common/components/PluginMount.vue'
|
||||
import PluginMount from '../../../common/components/PluginMount/index.vue'
|
||||
import { pluginState, refreshPlugins, retryPlugin } from '../../../common/plugins/host'
|
||||
import { pluginsPaused, settingTabs } from '../../../common/plugins/registry'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { SettingId } from '../settings-catalog'
|
||||
import { computed } from 'vue'
|
||||
import Icon from '../../../common/components/Icon.vue'
|
||||
import Icon from '../../../common/components/Icon/index.vue'
|
||||
import { SETTING_ITEMS } from '../settings-catalog'
|
||||
|
||||
const props = defineProps<{ id: SettingId, control?: string, resettable?: boolean }>()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import type { Command } from '../../../common/utils/commands'
|
||||
import { toast } from '@@/utils/notifications'
|
||||
import { computed, nextTick, ref, watch } from 'vue'
|
||||
import Icon from '../../../common/components/Icon.vue'
|
||||
import Icon from '../../../common/components/Icon/index.vue'
|
||||
import { allCommands, commandKeys, formatKeys, shortcutConflict } from '../../../common/utils/commands'
|
||||
import { recordedKeys } from '../../../common/utils/keys'
|
||||
import { loadSettings, settings, SettingsAppearanceError, updateSettings } from '../../../pinia/stores/settings'
|
||||
|
||||
@@ -5,7 +5,7 @@ import { isCancel } from 'axios'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { ApiError } from '@/http/axios'
|
||||
import { settingsApi } from '@/pages/settings/apis'
|
||||
import Icon from '../../../common/components/Icon.vue'
|
||||
import Icon from '../../../common/components/Icon/index.vue'
|
||||
import { copyText } from '../../../common/utils/clipboard'
|
||||
|
||||
const tokens = ref<ApiToken[] | null>(null)
|
||||
|
||||
@@ -5,7 +5,7 @@ import { toast } from '@@/utils/notifications'
|
||||
import { isCancel } from 'axios'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { useUserStore } from '@/pinia/stores/user'
|
||||
import Icon from '../../../common/components/Icon.vue'
|
||||
import Icon from '../../../common/components/Icon/index.vue'
|
||||
import { isImage } from '../../../common/utils/paths'
|
||||
import { DEFAULTS, loadSettings, settings, SettingsAppearanceError, updateSettings } from '../../../pinia/stores/settings'
|
||||
import SettingRow from './SettingRow.vue'
|
||||
|
||||
Reference in new issue
Block a user