mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
27 lines
735 B
TypeScript
27 lines
735 B
TypeScript
import { markRaw } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import CommandTerminal from '@/components/bottomPanel/tabs/terminal/CommandTerminal.vue'
|
|
import LogsTerminal from '@/components/bottomPanel/tabs/terminal/LogsTerminal.vue'
|
|
import { BottomPanelExtension } from '@/types/extensionTypes'
|
|
|
|
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'
|
|
}
|
|
}
|