diff --git a/ui/src/components/Kubernetes/MainContent/index.vue b/ui/src/components/Kubernetes/MainContent/index.vue index f3c77f49..170d2563 100644 --- a/ui/src/components/Kubernetes/MainContent/index.vue +++ b/ui/src/components/Kubernetes/MainContent/index.vue @@ -62,9 +62,7 @@ import { updateIcon } from '@/components/CustomTerminal/helper'; import { computed, h, markRaw, nextTick, onBeforeUnmount, onMounted, reactive, ref } from 'vue'; import { Stop, - Home, Paste, - Insert, NotSent, Activity, Keyboard, @@ -79,7 +77,7 @@ import mittBus from '@/utils/mittBus.ts'; // import { useDraggable, type UseDraggableReturn } from 'vue-draggable-plus'; -// import Tip from './components/Tip/index.vue'; +import Tip from './components/Tip/index.vue'; import Share from '@/components/Share/index.vue'; import Settings from '@/components/Settings/index.vue'; import ThemeConfig from '@/components/ThemeConfig/index.vue'; @@ -221,13 +219,13 @@ const settings = computed((): ISettingProp[] => { }, { label: 'Keyboard', - title: t('Keyboard shortcuts'), + title: t('Hotkeys'), icon: Keyboard, content: [ { name: 'Ctrl + C', icon: Stop, - tip: t('Stop'), + tip: t('Cancel'), click: () => { handleWriteData('Stop'); } @@ -240,26 +238,26 @@ const settings = computed((): ISettingProp[] => { handleWriteData('Paste'); } }, - { - name: 'Home', - icon: Home, - tip: t('Home'), - click: () => { - handleWriteData('Home'); - } - }, - { - name: 'Insert', - icon: Insert, - tip: t('Insert'), - click: () => { - handleWriteData('Insert'); - } - }, + // { + // name: 'Home', + // icon: Home, + // tip: t('Home'), + // click: () => { + // handleWriteData('Home'); + // } + // }, + // { + // name: 'Insert', + // icon: Insert, + // tip: t('Insert'), + // click: () => { + // handleWriteData('Insert'); + // } + // }, { name: 'Arrow Up', icon: ArrowUp, - tip: t('ArrowUp'), + tip: t('UpArrow'), click: () => { handleWriteData('ArrowUp'); } @@ -267,7 +265,7 @@ const settings = computed((): ISettingProp[] => { { name: 'Arrow Down', icon: ArrowDown, - tip: t('ArrowDown'), + tip: t('DownArrow'), click: () => { handleWriteData('ArrowDown'); } @@ -275,7 +273,7 @@ const settings = computed((): ISettingProp[] => { { name: 'Arrow Left', icon: ArrowBack, - tip: t('ArrowBack'), + tip: t('LeftArrow'), click: () => { handleWriteData('ArrowLeft'); } @@ -283,7 +281,7 @@ const settings = computed((): ISettingProp[] => { { name: 'Arrow Right', icon: ArrowForward, - tip: t('ArrowForward'), + tip: t('RightArrow'), click: () => { handleWriteData('ArrowRight'); } diff --git a/ui/src/components/Kubernetes/Tree/index.vue b/ui/src/components/Kubernetes/Tree/index.vue index 3e222912..3763c05b 100644 --- a/ui/src/components/Kubernetes/Tree/index.vue +++ b/ui/src/components/Kubernetes/Tree/index.vue @@ -129,28 +129,26 @@ const dropdownOptions = ref([]); const allOptions = [ { - label: '展开', + label: t('Expand'), key: 'expand', - // disabled: true, icon: () => h(NIcon, { size: 15 }, { default: () => h(ExpandCategories) }) }, { - label: '连接', + label: t('Connect'), key: 'connect', - // disabled: true, icon: () => h(NIcon, { size: 15 }, { default: () => h(Terminal2) }) } ]; const buttonGroups = [ { - label: t('connect'), + label: t('Connect'), icon: Terminal2, click: (e: Event) => { handleRootLink(e); } }, { - label: t('search'), + label: t('Search'), icon: Search, click: (e: Event) => { e.stopPropagation(); @@ -158,7 +156,7 @@ const buttonGroups = [ } }, { - label: t('refresh'), + label: t('Refresh'), icon: RefreshRound, click: (e: Event) => { e.stopPropagation();