Skip to content

Commit f00829b

Browse files
authored
Merge pull request #8179 from TencentBlueKing/v3.11.x
Merge v3.11.x into v3.13.x
2 parents 40a3c49 + 1b813c7 commit f00829b

File tree

11 files changed

+48
-22
lines changed

11 files changed

+48
-22
lines changed
Binary file not shown.

src/ui/src/assets/icon/bk-icon-cmdb/fonts/iconcool.svg

+6
Loading
Binary file not shown.
Binary file not shown.

src/ui/src/assets/icon/bk-icon-cmdb/iconcool.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ui/src/assets/icon/bk-icon-cmdb/iconcool.json

+1-1
Large diffs are not rendered by default.

src/ui/src/assets/icon/bk-icon-cmdb/style.css

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
2626
.icon-cc-refresh:before {
2727
content: "\e3b9";
2828
}
29+
.icon-cc-help:before {
30+
content: "\e3eb";
31+
}
2932
.icon-cc-remind:before {
3033
content: "\e3b8";
3134
}
@@ -791,6 +794,9 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
791794
.icon-cc-lock-line:before {
792795
content: "\e3a9";
793796
}
797+
.icon-copy:before {
798+
content: "\e3ea";
799+
}
794800
.icon-finger-line:before {
795801
content: "\e3ab";
796802
}

src/ui/src/components/layout/header.vue

+23-9
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
animateFill: false,
5858
hideOnClick: false
5959
}">
60-
<i class="question-icon icon-cc-default"></i>
60+
<i class="question-icon icon-cc-help"></i>
6161
<template slot="content">
6262
<a class="link-item" target="_blank" :href="helpDocUrl">{{$t('产品文档')}}</a>
6363
<a class="link-item" target="_blank" @click="handleChangeLog()" style="cursor:pointer">{{$t('版本日志')}}</a>
@@ -233,8 +233,8 @@
233233
vertical-align: middle;
234234
height: 58px;
235235
line-height: 58px;
236-
margin-left: 23px;
237-
padding-left: 38px;
236+
margin-left: 24px;
237+
padding-left: 44px;
238238
color: #fff;
239239
font-size: 16px;
240240
background: v-bind(appLogo) no-repeat 0 center;
@@ -251,11 +251,11 @@
251251
height: 58px;
252252
line-height: 58px;
253253
padding: 0 25px;
254-
color: #979ba5;
254+
color: #96A2B9;
255255
font-size: 14px;
256256
&:hover {
257257
background-color: rgba(49, 64, 94, 0.5);
258-
color: #fff;
258+
color: #C2CEE5;
259259
}
260260
&.router-link-active,
261261
&.active {
@@ -272,7 +272,7 @@
272272
}
273273
.info-item {
274274
@include inlineBlock;
275-
margin: 0 20px 0 0;
275+
margin: 0 18px 0 0;
276276
text-align: left;
277277
font-size: 0;
278278
cursor: pointer;
@@ -290,15 +290,23 @@
290290
.question-icon,
291291
.lang-icon {
292292
font-size: 16px;
293-
color: #DCDEE5;
293+
color: #96A2B9;
294+
width: 32px;
295+
height: 32px;
296+
display: flex;
297+
justify-content: center;
298+
align-items: center;
299+
294300
&:hover {
295301
color: #fff;
302+
background: linear-gradient(270deg,#253047,#263247);
303+
border-radius: 100%;
296304
}
297305
}
298306
.info-user {
299307
font-size: 14px;
300308
font-weight: bold;
301-
color: #fff;
309+
color: #96A2B9;
302310
.user-name {
303311
max-width: 150px;
304312
@include inlineBlock;
@@ -308,8 +316,14 @@
308316
margin-left: -4px;
309317
transition: transform .2s linear;
310318
font-size: 20px;
311-
color: #fff;
319+
color: #96A2B9;
312320
}
321+
&:hover {
322+
color: #fff;
323+
.user-icon {
324+
color: #fff;
325+
}
326+
}
313327
}
314328
.lang-icon {
315329
font-size: 20px;

src/ui/src/i18n/constants.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ export const LANG_KEYS = Object.freeze({
1919
})
2020

2121
export const LANG_SET = Object.freeze([
22-
{
23-
id: LANG_KEYS.EN,
24-
name: 'English',
25-
icon: 'english'
26-
},
2722
{
2823
id: LANG_KEYS.ZH_CN,
2924
alias: ['zh-cn'],
3025
name: '中文',
3126
apiLocale: 'zh-cn',
3227
icon: 'chinese'
28+
},
29+
{
30+
id: LANG_KEYS.EN,
31+
name: 'English',
32+
icon: 'english'
3333
}
3434
])

src/ui/src/i18n/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const changeLocale = async (locale) => {
4141
Cookies.remove(LANG_COOKIE_NAME, { path: '' })
4242
const cookieValue = LANG_SET.find(lang => lang.id === locale)?.apiLocale || locale
4343
Cookies.set(LANG_COOKIE_NAME, cookieValue, {
44-
expires: 3600,
44+
expires: 366,
4545
domain: siteConfig?.cookieDomain || window.location.hostname.replace(/^.*(\.[^.]+\.[^.]+)$/, '$1'),
4646
})
4747

src/ui/src/i18n/lang/en.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"管理员": "Admin",
3434
"普通用户": "User",
3535
"注销": "Log out",
36-
"退出登录": "Sign out",
36+
"退出登录": "Sign Out",
3737
"业务": "Business",
3838
"已选N项": "{N} items selected",
3939
"已选N行": "{N} rows selected",
@@ -126,9 +126,9 @@
126126
"获取人员列表失败": "Failed to get user list",
127127
"其他筛选项": "Other filters",
128128
"清空": "Clear",
129-
"产品文档": "Documents",
129+
"产品文档": "Documentation",
130130
"问题反馈": "Feedback",
131-
"开源社区": "Community",
131+
"开源社区": "Open Source",
132132
"确定离开页面?": "Make sure to leave the page?",
133133
"系统不会保存您所做的修改,确认要离开?": "Your changes will not be saved. Are you sure you want to leave?",
134134
"确定删除选中的实例": "Confirm to delete selected instance(s)?",
@@ -1678,8 +1678,8 @@
16781678
"分组暂无模型提示": "There are no models in this group yet, please {btn}",
16791679
"主机需在“空闲机池”下才允许转移至主机池": "Hosts must be in '{idleSet}' to be allowed to transfer to host pool",
16801680
"主机需在“空闲机池”下才允许转移至其他业务": "Hosts must be in '{idleSet}' to be allowed to transfer to other businesses",
1681-
"版本日志":"ChangeLog",
1682-
"暂无版本日志":"No ChangeLog",
1681+
"版本日志":"Release Notes",
1682+
"暂无版本日志":"No Release Notes",
16831683
"空Pod节点提示语": "If there are no pod running on the Container Cluster Node (Node), they will all belong to \"Empty Pod Node(s)\".",
16841684
"无Pod运行的节点": "Node runs with no Pod",
16851685
"(模板创建)": "(By Template)",

0 commit comments

Comments
 (0)