mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 08:49:36 +00:00
Integrated terminal (#1295)
* Add terminal tab * Add basic terminal * Style terminal * Add keybinding * Auto scroll: * Mock for jest test
This commit is contained in:
14
src/hooks/bottomPanelTabs/integratedTerminalTab.ts
Normal file
14
src/hooks/bottomPanelTabs/integratedTerminalTab.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { markRaw } from 'vue'
|
||||
import IntegratedTerminal from '@/components/bottomPanel/tabs/IntegratedTerminal.vue'
|
||||
import { BottomPanelExtension } from '@/types/extensionTypes'
|
||||
|
||||
export const useIntegratedTerminalTab = (): BottomPanelExtension => {
|
||||
const { t } = useI18n()
|
||||
return {
|
||||
id: 'integrated-terminal',
|
||||
title: t('terminal'),
|
||||
component: markRaw(IntegratedTerminal),
|
||||
type: 'vue'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user