Compare commits

...

3 Commits

Author SHA1 Message Date
“huailei000”
4b4b78baa4 fix: 修复左侧菜单英文翻译问题 2022-06-22 16:21:47 +08:00
fit2bot
09add2a44e pref: 优化添加批量删除 (#1827)
* perf: 修改移动设备下的表现

* pref: 优化添加批量删除

* perf: 优化帮助文案

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “huailei000” <2280131253@qq.com>
2022-06-21 14:21:20 +08:00
“huailei000”
25b69708cf fix: 修改在更新页面下切换组织,点击浏览器后退操作接口500问题 2022-06-17 18:59:59 +08:00
8 changed files with 37 additions and 23 deletions

View File

@@ -436,8 +436,8 @@
"Help": "Help", "Help": "Help",
"Logout": "Logout", "Logout": "Logout",
"Profile": "Profile", "Profile": "Profile",
"TechnicalSupport": "Technical support", "Support": "Support",
"ToolsDownload": "Tools download", "Download": "Download",
"UserPage": "User page", "UserPage": "User page",
"View": "View", "View": "View",
"EnterpriseEdition": "Enterprise edition" "EnterpriseEdition": "Enterprise edition"
@@ -696,7 +696,7 @@
"AssetPermissionUpdate": "Asset permissions update", "AssetPermissionUpdate": "Asset permissions update",
"AssetUpdate": "Asset update", "AssetUpdate": "Asset update",
"Assets": "Assets", "Assets": "Assets",
"LogsAudits": "Logs audit", "LogsAudit": "Logs audit",
"SessionsAudit": "Sessions audit", "SessionsAudit": "Sessions audit",
"SessionList": "Session list", "SessionList": "Session list",
"BatchCommand": "Batch Command", "BatchCommand": "Batch Command",

View File

@@ -448,8 +448,8 @@
"Help": "ヘルプ", "Help": "ヘルプ",
"Logout": "ログインを終了する", "Logout": "ログインを終了する",
"Profile": "個人情報", "Profile": "個人情報",
"TechnicalSupport": "テクニカルサポート", "Support": "サポート",
"ToolsDownload": "ツールのダウンロード", "Download": "ダウンロード",
"UserPage": "ユーザービュー", "UserPage": "ユーザービュー",
"View": "ビュー", "View": "ビュー",
"EnterpriseEdition": "企業版" "EnterpriseEdition": "企業版"

View File

@@ -448,8 +448,8 @@
"Help": "帮助", "Help": "帮助",
"Logout": "退出登录", "Logout": "退出登录",
"Profile": "个人信息", "Profile": "个人信息",
"TechnicalSupport": "技术支持", "Support": "支持",
"ToolsDownload": "工具下载", "Download": "下载",
"UserPage": "用户视图", "UserPage": "用户视图",
"View": "视图", "View": "视图",
"EnterpriseEdition": "企业版" "EnterpriseEdition": "企业版"

View File

@@ -1,11 +1,9 @@
<template> <template>
<div class="footer" :style="style"> <div class="footer" :class="device" :style="style">
<div class="pull-right"> <div class="pull-right version">
Version <strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span> Version <strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span>
</div> </div>
<div style="padding-left:20px;"> <div>{{ corporation }}</div>
{{ publicSettings.XPACK_LICENSE_INFO.corporation }}
</div>
</div> </div>
</template> </template>
<script> <script>
@@ -27,7 +25,10 @@ export default {
if (this.device === 'mobile') { if (this.device === 'mobile') {
return '' return ''
} }
return this.sidebar.opened ? ('margin-left: 210px;') : ('margin-left: 54px') return this.sidebar.opened ? ('margin-left: 220px;') : ('margin-left: 54px')
},
corporation() {
return this.publicSettings.XPACK_LICENSE_INFO.corporation
} }
} }
} }
@@ -38,9 +39,9 @@ export default {
height: 35px !important; height: 35px !important;
} }
.pull-right { .pull-right {
float: right!important; float: right
} }
.footer{ .footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
@@ -55,4 +56,11 @@ export default {
font-size: 13px; font-size: 13px;
} }
} }
.mobile.footer {
text-align: center;
}
.mobile.footer .pull-right{
float: none;
display: block;
}
</style> </style>

View File

@@ -5,8 +5,8 @@
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="docs">{{ $t('common.nav.Docs') }}</el-dropdown-item> <el-dropdown-item command="docs">{{ $t('common.nav.Docs') }}</el-dropdown-item>
<el-dropdown-item command="support">{{ $t('common.nav.TechnicalSupport') }}</el-dropdown-item> <el-dropdown-item command="support">{{ $t('common.nav.Support') }}</el-dropdown-item>
<el-dropdown-item command="toolsDownload">{{ $t('common.nav.ToolsDownload') }}</el-dropdown-item> <el-dropdown-item command="toolsDownload">{{ $t('common.nav.Download') }}</el-dropdown-item>
<el-dropdown-item v-if="!hasLicence" command="enterprise">{{ $t('common.nav.EnterpriseEdition') }}</el-dropdown-item> <el-dropdown-item v-if="!hasLicence" command="enterprise">{{ $t('common.nav.EnterpriseEdition') }}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>

View File

@@ -6,7 +6,7 @@
</div> </div>
<div class="active-mobile"> <div class="active-mobile">
<ViewSwitcher mode="vertical" class="mobile-view-switch" /> <ViewSwitcher mode="vertical" class="mobile-view-switch" />
<Organization class="organization" /> <Organization v-if="$hasLicense()" class="organization" />
</div> </div>
<div class="nav-title" :class="{'collapsed': isCollapse}"> <div class="nav-title" :class="{'collapsed': isCollapse}">
{{ isTitle }} {{ isTitle }}

View File

@@ -160,6 +160,8 @@ export function hasUUID(s) {
} }
export function replaceUUID(s, n) { export function replaceUUID(s, n) {
const index = s.search(uuidPattern)
if (index > 0) return s.substr(0, index)
return s.replace(uuidPattern, n) return s.replace(uuidPattern, n)
} }

View File

@@ -109,11 +109,16 @@ export default {
}, },
columns: [ columns: [
'name', 'remote_addr', 'session_online', 'name', 'remote_addr', 'session_online',
'stat.cpu_load', 'stat.cpu_load', 'stat.disk_used', 'stat.memory_used',
'stat.disk_used', 'stat.memory_used', 'status', 'is_active', 'is_alive', 'actions'
'status',
'is_active', 'is_alive', 'actions'
], ],
columnsShow: {
min: ['name'],
default: [
'name', 'session_online', 'stat.cpu_load', 'stat.disk_used',
'stat.memory_used', 'status'
]
},
columnsMeta: { columnsMeta: {
name: { name: {
sortable: 'custom', sortable: 'custom',
@@ -175,7 +180,6 @@ export default {
}, },
headerActions: { headerActions: {
hasCreate: false, hasCreate: false,
hasBulkDelete: false,
hasUpload: false, hasUpload: false,
hasExport: false, hasExport: false,
hasImport: false, hasImport: false,