diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 72eea6473..349c06e69 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -5842,6 +5842,11 @@
"neo-async": "^2.6.2"
}
},
+ "screenfull": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-6.0.2.tgz",
+ "integrity": "sha512-AQdy8s4WhNvUZ6P8F6PB21tSPIYKniic+Ogx0AacBMjKP1GUHN2E9URxQHtCusiwxudnCKkdy4GrHXPPJSkCCw=="
+ },
"select": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 58c41bb77..ae42bcb9d 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -34,6 +34,7 @@
"pinia-plugin-persistedstate": "^1.6.1",
"qs": "^6.10.3",
"sass-loader": "^13.0.2",
+ "screenfull": "^6.0.2",
"unplugin-vue-define-options": "^0.7.3",
"vue": "^3.2.25",
"vue-i18n": "^9.1.9",
diff --git a/frontend/src/components/app-layout/header/components/Breadcrumb.vue b/frontend/src/components/app-layout/header/components/Breadcrumb.vue
index 1708e96af..b35370b13 100644
--- a/frontend/src/components/app-layout/header/components/Breadcrumb.vue
+++ b/frontend/src/components/app-layout/header/components/Breadcrumb.vue
@@ -3,7 +3,7 @@
{{ $t('menu.home') }}
- {{ $t(item.meta?.title as string) }}
+ {{ item.meta?.title }}
diff --git a/frontend/src/views/terminal/index.vue b/frontend/src/views/terminal/index.vue
index 1c6494d9d..aecb23343 100644
--- a/frontend/src/views/terminal/index.vue
+++ b/frontend/src/views/terminal/index.vue
@@ -104,6 +104,7 @@
>
+
@@ -159,6 +160,8 @@ import { ElMessage } from 'element-plus';
import Terminal from '@/views/terminal/terminal/index.vue';
import type Node from 'element-plus/es/components/tree/src/model/node';
import { ElTree } from 'element-plus';
+import screenfull from 'screenfull';
+
let timer: NodeJS.Timer | null = null;
const terminalValue = ref();
@@ -211,6 +214,12 @@ let hostInfo = reactive({
const ctx = getCurrentInstance() as any;
+function toggleFullscreen() {
+ if (screenfull.isEnabled) {
+ screenfull.toggle();
+ }
+}
+
const handleTabsRemove = (targetName: string, action: 'remove' | 'add') => {
if (action !== 'remove') {
return;
@@ -353,8 +362,7 @@ function changeFrameHeight() {
function syncTerminal() {
for (const terminal of terminalTabs.value) {
- if (ctx && ctx.refs[`Ref${terminal.key}`]) {
- console.log(ctx.refs[`Ref${terminal.key}`][0]);
+ if (ctx && ctx.refs[`Ref${terminal.key}`][0]) {
terminal.status = ctx.refs[`Ref${terminal.key}`][0].isWsOpen() ? 'online' : 'closed';
}
}