refactor: optimize import

This commit is contained in:
tiny-craft 2023-09-02 21:08:15 +08:00
parent 1a4622cfd0
commit bb537a7175
5 changed files with 3 additions and 7 deletions

View File

@ -6,11 +6,9 @@ import ContentValueList from '@/components/content_value/ContentValueList.vue'
import ContentValueString from '@/components/content_value/ContentValueString.vue'
import ContentValueSet from '@/components/content_value/ContentValueSet.vue'
import ContentValueZset from '@/components/content_value/ContentValueZSet.vue'
import { get, isEmpty, map, toUpper } from 'lodash'
import { isEmpty, map, toUpper } from 'lodash'
import useTabStore from 'stores/tab.js'
import { useDialog } from 'naive-ui'
import useConnectionStore from 'stores/connections.js'
import { useI18n } from 'vue-i18n'
import ContentServerStatus from '@/components/content_value/ContentServerStatus.vue'
import ContentValueStream from '@/components/content_value/ContentValueStream.vue'

View File

@ -81,7 +81,7 @@ const onDeleteKey = () => {
<template v-if="ttl < 0">
{{ $t('forever') }}
</template>
<template v-else> {{ ttl }} {{ $t('second') }}</template>
<template v-else>{{ ttl }} {{ $t('second') }}</template>
</n-button>
</template>
TTL

View File

@ -6,7 +6,6 @@ import AddLink from '@/components/icons/AddLink.vue'
import IconButton from '@/components/common/IconButton.vue'
import Filter from '@/components/icons/Filter.vue'
import ConnectionTree from './ConnectionTree.vue'
import Unlink from '@/components/icons/Unlink.vue'
import useConnectionStore from 'stores/connections.js'
import { ref } from 'vue'

View File

@ -9,7 +9,6 @@ import Config from '@/components/icons/Config.vue'
import useDialogStore from 'stores/dialog.js'
import Github from '@/components/icons/Github.vue'
import { BrowserOpenURL } from 'wailsjs/runtime/runtime.js'
import Log from '@/components/icons/Log.vue'
import useConnectionStore from 'stores/connections.js'
import Help from '@/components/icons/Help.vue'
import usePreferencesStore from 'stores/preferences.js'

View File

@ -10,7 +10,7 @@ import {
} from 'wailsjs/go/services/preferencesService.js'
import { BrowserOpenURL } from 'wailsjs/runtime/runtime.js'
import { i18nGlobal } from '@/utils/i18n.js'
import { zhCN, enUS, useOsTheme } from 'naive-ui'
import { enUS, useOsTheme, zhCN } from 'naive-ui'
const osTheme = useOsTheme()
const usePreferencesStore = defineStore('preferences', {