chore: Move open terminal in new tab to terminal component

This commit is contained in:
Justin Lin committed 2026-02-27 16:02:28 +11:00
1 parent ab4d06498a
commit 5b7bf0794c
12 files changed
+24 -19

No files matched your search

+11 -1
View File
@@ -1,6 +1,8 @@
<script setup lang="ts">
import { onMounted, onUnmounted, ref } from 'vue'
import { useTerminal } from '../../store/session'
import { useSession, useTerminal } from '../../store/session'
const sessionStore = useSession()
const terminal = ref<HTMLElement | null>(null)
const term = useTerminal()
@@ -23,6 +25,14 @@ onMounted(() => {
<div class="flex items-center gap-2 p-1">
<font-awesome-icon :icon="['fas', 'terminal']" class="text-text" />
<button id="Terminal" class="text-text">終端機</button>
<a
class="text-sm font-normal text-gray-200 ml-10"
:href="`/terminal/${sessionStore.session?.containerName}?token=${sessionStore.session?.token}`"
target="_blank"
>
Open Terminal in New Tab
</a>
</div>
<div
id="terminal"