mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
* lint: turn on type import rules setting up for verbatimModuleSyntax * lint: --fix for type imports
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import { markRaw } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import EssentialsPanel from '@/components/bottomPanel/tabs/shortcuts/EssentialsPanel.vue'
|
|
import ViewControlsPanel from '@/components/bottomPanel/tabs/shortcuts/ViewControlsPanel.vue'
|
|
import type { BottomPanelExtension } from '@/types/extensionTypes'
|
|
|
|
export const useShortcutsTab = (): BottomPanelExtension[] => {
|
|
const { t } = useI18n()
|
|
return [
|
|
{
|
|
id: 'shortcuts-essentials',
|
|
title: t('shortcuts.essentials'), // For command labels (collected by i18n workflow)
|
|
titleKey: 'shortcuts.essentials', // For dynamic translation in UI
|
|
component: markRaw(EssentialsPanel),
|
|
type: 'vue',
|
|
targetPanel: 'shortcuts'
|
|
},
|
|
{
|
|
id: 'shortcuts-view-controls',
|
|
title: t('shortcuts.viewControls'), // For command labels (collected by i18n workflow)
|
|
titleKey: 'shortcuts.viewControls', // For dynamic translation in UI
|
|
component: markRaw(ViewControlsPanel),
|
|
type: 'vue',
|
|
targetPanel: 'shortcuts'
|
|
}
|
|
]
|
|
}
|