mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
chore: Move open terminal in new tab to terminal component
This commit is contained in:
1 parent
ab4d06498a
commit
5b7bf0794c
12 files changed
+24
-19
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user