Line data Source code
1 : import { markRaw } from 'vue'
2 : import { useI18n } from 'vue-i18n'
3 :
4 : import EssentialsPanel from '@/platform/keybindings/components/shortcuts/EssentialsPanel.vue'
5 : import ViewControlsPanel from '@/platform/keybindings/components/shortcuts/ViewControlsPanel.vue'
6 : import type { BottomPanelExtension } from '@/types/extensionTypes'
7 :
8 2355 : export const useShortcutsTab = (): BottomPanelExtension[] => {
9 2355 : const { t } = useI18n()
10 2355 : return [
11 : {
12 : id: 'shortcuts-essentials',
13 : title: t('shortcuts.essentials'), // For command labels (collected by i18n workflow)
14 : titleKey: 'shortcuts.essentials', // For dynamic translation in UI
15 : component: markRaw(EssentialsPanel),
16 : type: 'vue',
17 : targetPanel: 'shortcuts'
18 : },
19 : {
20 : id: 'shortcuts-view-controls',
21 : title: t('shortcuts.viewControls'), // For command labels (collected by i18n workflow)
22 : titleKey: 'shortcuts.viewControls', // For dynamic translation in UI
23 : component: markRaw(ViewControlsPanel),
24 : type: 'vue',
25 : targetPanel: 'shortcuts'
26 : }
27 : ]
28 : }
|