mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 00:04:06 +00:00
* Batch move global scope i18n to g. namespace * Minor fix * Update locale * Update locales [skip ci] * More moves * Regroup icon/color * nit * Fix component test --------- Co-authored-by: github-actions <github-actions@github.com>
26 lines
734 B
TypeScript
26 lines
734 B
TypeScript
import { useI18n } from 'vue-i18n'
|
|
import { markRaw } from 'vue'
|
|
import { BottomPanelExtension } from '@/types/extensionTypes'
|
|
import LogsTerminal from '@/components/bottomPanel/tabs/terminal/LogsTerminal.vue'
|
|
import CommandTerminal from '@/components/bottomPanel/tabs/terminal/CommandTerminal.vue'
|
|
|
|
export const useLogsTerminalTab = (): BottomPanelExtension => {
|
|
const { t } = useI18n()
|
|
return {
|
|
id: 'logs-terminal',
|
|
title: t('g.logs'),
|
|
component: markRaw(LogsTerminal),
|
|
type: 'vue'
|
|
}
|
|
}
|
|
|
|
export const useCommandTerminalTab = (): BottomPanelExtension => {
|
|
const { t } = useI18n()
|
|
return {
|
|
id: 'command-terminal',
|
|
title: t('g.terminal'),
|
|
component: markRaw(CommandTerminal),
|
|
type: 'vue'
|
|
}
|
|
}
|