Skip to content

Commit 3d6dc37

Browse files
author
veedrin
committed
dtid开头的用户名提示修改面板改进
1 parent 05019a9 commit 3d6dc37

File tree

6 files changed

+43
-27
lines changed

6 files changed

+43
-27
lines changed

app/dashboard/i18n/en_US/global.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,5 @@
7676
"submitting": "Submitting...",
7777
"eventStreamBulletin1": "Dear developer, due to ",
7878
"eventStreamBulletin2": "[ event-stream package event ]",
79-
"eventStreamBulletin3": " Impact, your plugin needs to manually delete the `yarn.lock` file and reinstall the dependencies, then push the code to release a new version or pre-release.",
80-
"globalTip1": "The system has detected that your username has not been modified.",
81-
"globalTip2": "Please go to [ Tencent Cloud Dev Platform > Personal Settings ] and then log in again.",
82-
"gotoModify": "Go to edit"
79+
"eventStreamBulletin3": " Impact, your plugin needs to manually delete the `yarn.lock` file and reinstall the dependencies, then push the code to release a new version or pre-release."
8380
}

app/dashboard/i18n/zh_CN/global.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,5 @@
7676
"submitting": "提交中...",
7777
"eventStreamBulletin1": "尊敬的开发者,由于受 ",
7878
"eventStreamBulletin2": "[ event-stream 包事件 ]",
79-
"eventStreamBulletin3": " 影响,您的插件需要手动删除 `yarn.lock` 文件并重新安装依赖,再推送代码发布新版本或预发布。",
80-
"globalTip1": "系统检测到您的用户名尚未修改。",
81-
"globalTip2": "请先进入 [ 腾讯云开发者平台 > 个人设置 ] 修改后再重新登录使用。",
82-
"gotoModify": "前往修改"
79+
"eventStreamBulletin3": " 影响,您的插件需要手动删除 `yarn.lock` 文件并重新安装依赖,再推送代码发布新版本或预发布。"
8380
}

app/dashboard/static/globalkey.png

59.4 KB
Loading

app/dashboard/view/home/mask/Mask.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import React, { Component } from 'react';
1+
import React from 'react';
22

33
import './mask.css';
4-
5-
import i18n from '../../../utils/i18n';
4+
import img from '../../../static/globalkey.png';
65

76
const Mask = () => {
87
return (
9-
<div className="dash-global-mask">
8+
<div className="dash-globalmask">
109
<div className="panel">
11-
<div className="line">{i18n('global.globalTip1')}</div>
12-
<div className="line">{i18n('global.globalTip2')}</div>
10+
<div className="title">请先设置用户名</div>
11+
<div className="line">1. 前往「个人设置」页面,找到用户名 (不是用户昵称) ,修改并保存。</div>
12+
<img src={img} alt="" />
13+
<div className="line">2. 返回并刷新该页面。</div>
1314
<div className="control">
1415
<a href="https://dev.tencent.com/user/account" target="_blank" rel="noopener noreferrer">
15-
<button className="com-button primary">{i18n('global.gotoModify')}</button>
16+
<button className="com-button primary">前往设置用户名</button>
1617
</a>
1718
</div>
1819
</div>
Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.dash-global-mask {
1+
.dash-globalmask {
22
width: 100%;
33
height: 100%;
44
background-color: rgba(0, 0, 0, .6);
@@ -7,25 +7,41 @@
77
left: 0;
88
z-index: 100;
99
}
10-
.dash-global-mask .panel {
11-
width: 465px;
10+
.dash-globalmask .panel {
11+
width: 600px;
1212
padding: 20px;
1313
border-radius: 5px;
1414
font-size: 14px;
1515
color: #ccc;
1616
background-color: #333;
17+
transform: translate(-50%, -50%);
1718
position: absolute;
18-
top: 40%;
19-
left: calc(50% - 210px);
19+
top: 50%;
20+
left: 50%;
2021
}
21-
.dash-global-mask .panel .line {
22-
padding-bottom: 5px;
22+
.dash-globalmask .panel .title {
23+
font-size: 18px;
24+
margin-bottom: 20px;
2325
}
24-
.dash-global-mask .panel .control {
25-
padding-top: 20px;
26+
.dash-globalmask .panel .line {
27+
margin-bottom: 10px;
28+
}
29+
.dash-globalmask .panel img {
30+
width: calc(100% - 15px);
31+
margin: 0 0 10px 15px;
32+
vertical-align: middle;
33+
}
34+
.dash-globalmask .panel .control {
35+
padding-top: 10px;
2636
text-align: center;
2737
}
28-
.dash-global-mask .panel button {
29-
width: 90px;
30-
height: 35px;
38+
.dash-globalmask .panel button {
39+
width: 130px;
40+
height: 40px;
41+
}
42+
43+
@media screen and (max-width: 600px) {
44+
.dash-globalmask .panel {
45+
width: 100%;
46+
}
3147
}

app/dashboard/view/pluginSet/overview/overview.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
border-radius: 4px;
1515
color: #ccc;
1616
background-color: #3b3b3b;
17+
transition: border-color .2s ease, background-color .2s ease;
18+
}
19+
.dash-pluginset .overview .goto:hover {
20+
border-color: #444;
21+
background-color: #444;
1722
}
1823
.dash-pluginset .overview .desc {
1924
margin-top: 20px;

0 commit comments

Comments
 (0)