mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
* Add live terminal output * Fix scrolling * Refactor loading * Fallback to polling if endpoint fails * Comment * Move clientId to executionStore Refactor types * Remove polling * wip terminal command input * Refactor to use node-pty * Hide tabs if not electron * Lint fix * ts fix * Refactor tab components
26 lines
730 B
TypeScript
26 lines
730 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('logs'),
|
|
component: markRaw(LogsTerminal),
|
|
type: 'vue'
|
|
}
|
|
}
|
|
|
|
export const useCommandTerminalTab = (): BottomPanelExtension => {
|
|
const { t } = useI18n()
|
|
return {
|
|
id: 'command-terminal',
|
|
title: t('terminal'),
|
|
component: markRaw(CommandTerminal),
|
|
type: 'vue'
|
|
}
|
|
}
|