Skip to content

Commit 7364d58

Browse files
authored
style: Menu expansion and collapse changed to regular display (#8315)
1 parent 4669be6 commit 7364d58

9 files changed

Lines changed: 18 additions & 9 deletions

File tree

frontend/src/lang/modules/en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,6 +3245,8 @@ const message = {
32453245
baseDirHelper:
32463246
'When the installation directory is empty, it will be installed in the /opt directory by default',
32473247
nodePort: 'Node Port',
3248+
offline: 'Offline mode',
3249+
offlineHelper: 'Used when the node is in an offline environment',
32483250
},
32493251
customApp: {
32503252
name: 'Custom App Repository',

frontend/src/lang/modules/ja.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,6 +3100,8 @@ const message = {
31003100
baseDir: 'インストールディレクトリ',
31013101
baseDirHelper: 'インストールディレクトリが空の場合、デフォルトで/optディレクトリにインストールされます',
31023102
nodePort: 'ノードポート',
3103+
offline: 'オフラインモード',
3104+
offlineHelper: 'ノードがオフライン環境にある場合に使用',
31033105
},
31043106
customApp: {
31053107
name: 'カスタムアプリリポジトリ',

frontend/src/lang/modules/ko.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,6 +3048,8 @@ const message = {
30483048
baseDir: '설치 디렉토리',
30493049
baseDirHelper: '설치 디렉토리가 비어 있으면 기본적으로 /opt 디렉토리에 설치됩니다',
30503050
nodePort: '노드 포트',
3051+
offline: '오프라인 모드',
3052+
offlineHelper: '노드가 오프라인 환경일 때 사용',
30513053
},
30523054
customApp: {
30533055
name: '사용자 정의 앱 저장소',

frontend/src/lang/modules/ms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,6 +3171,8 @@ const message = {
31713171
baseDir: 'Direktori Pemasangan',
31723172
baseDirHelper: 'Apabila direktori pemasangan kosong, secara lalai akan dipasang di direktori /opt',
31733173
nodePort: 'Port Nod',
3174+
offline: 'Mod luar talian',
3175+
offlineHelper: 'Digunakan apabila nod berada dalam persekitaran luar talian',
31743176
},
31753177
customApp: {
31763178
name: 'Repositori Aplikasi Khusus',

frontend/src/lang/modules/pt-br.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,6 +3173,8 @@ const message = {
31733173
baseDir: 'Diretório de Instalação',
31743174
baseDirHelper: 'Quando o diretório de instalação está vazio, será instalado por padrão no diretório /opt',
31753175
nodePort: 'Porta do Nó',
3176+
offline: 'Modo offline',
3177+
offlineHelper: 'Usado quando o nó está em ambiente offline',
31763178
},
31773179
customApp: {
31783180
name: 'Repositório de Aplicativos Personalizados',

frontend/src/lang/modules/ru.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,6 +3164,8 @@ const message = {
31643164
baseDir: 'Каталог установки',
31653165
baseDirHelper: 'Если каталог установки пуст, по умолчанию он будет установлен в каталоге /opt',
31663166
nodePort: 'Порт узла',
3167+
offline: 'Автономный режим',
3168+
offlineHelper: 'Используется, когда узел находится в автономной среде',
31673169
},
31683170
customApp: {
31693171
name: 'Пользовательское хранилище приложений',

frontend/src/lang/modules/zh-Hant.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,8 @@ const message = {
30063006
baseDir: '安裝目錄',
30073007
baseDirHelper: '安裝目錄為空時,預設安裝於 /opt 目錄下',
30083008
nodePort: '節點端口',
3009+
offline: '離線模式',
3010+
offlineHelper: '當節點處於離線環境時使用',
30093011
},
30103012
customApp: {
30113013
name: '自訂應用倉庫',

frontend/src/lang/modules/zh.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,6 +2988,8 @@ const message = {
29882988
baseDir: '安装目录',
29892989
baseDirHelper: '安装目录为空时,默认安装在 /opt 目录下',
29902990
nodePort: '节点端口',
2991+
offline: '离线模式',
2992+
offlineHelper: '节点为离线环境时使用',
29912993
},
29922994
customApp: {
29932995
name: '自定义应用仓库',

frontend/src/layout/index.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<template>
22
<div :class="classObj" class="app-wrapper" v-loading="loading" :element-loading-text="loadingText" fullscreen>
33
<div v-if="classObj.mobile && classObj.openSidebar" class="drawer-bg" @click="handleClickOutside" />
4-
<div
5-
class="app-sidebar"
6-
v-if="!globalStore.isFullScreen"
7-
@mouseenter="collapseButtonShow = true"
8-
@mouseleave="collapseButtonShow = false"
9-
>
10-
<el-affix v-if="collapseButtonShow" :offset="18" class="affix">
4+
<div class="app-sidebar" v-if="!globalStore.isFullScreen">
5+
<el-affix :offset="18" class="affix">
116
<el-tooltip
127
:content="menuStore.isCollapse ? $t('commons.button.expand') : $t('commons.button.collapse')"
138
>
@@ -48,7 +43,6 @@ import TaskList from '@/components/task-list/index.vue';
4843
const { switchTheme } = useTheme();
4944
5045
useResize();
51-
const collapseButtonShow = ref();
5246
5347
const taskListRef = ref();
5448
const openTask = () => {
@@ -81,7 +75,6 @@ const handleClickOutside = () => {
8175
8276
const handleCollapse = () => {
8377
menuStore.setCollapse();
84-
collapseButtonShow.value = false;
8578
};
8679
8780
watch(

0 commit comments

Comments
 (0)