diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 84144a626..23608ee90 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -291,6 +291,13 @@ li{ min-width: 60px; padding: 0 10px; } +.nz-btn.nz-btn-size-mini-new{ + height: 22px; + line-height: 22px; + text-align: center; + min-width: 40px; + padding: 0 5px; +} .nz-btn.nz-btn-style-normal-new { /* 新版橙色按钮 */ background: $btn-normal-background-color-new; color: $btn-normal-txt-color-new; diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index 9490e6d8e..875109f41 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -180,5 +180,8 @@ export const fromRoute = { endpointQuery: 'endpointQuery', terminalLog: 'terminalLog', operationLog: 'operationLog', - menus: 'menus' + menus: 'menus', + notify: 'notify', + link: 'link', + apiKey: 'apiKey' } diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index 6327723b3..45928b4b7 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -946,7 +946,8 @@ const cn = { update: '更新', del: '删除', nameMaxLength: '长度应小于64', - uriRequired: '请填写正确的网址' + uriRequired: '请填写正确的网址', + create: '创建人' }, notification: { notification: 'Notification', @@ -958,7 +959,10 @@ const cn = { del: '删除', nameMaxLength: '长度应小于64', uriRequired: '必填项', - filePathReg: '请输入正确的文件路径' + filePathReg: '请输入正确的文件路径', + create: '新建通知方式', + invalid: '停用', + valid: '可用' }, reset: { reset: '重置', @@ -971,6 +975,13 @@ const cn = { promptTitle: '确认密码', yes: '是', no: '否' + }, + apiKey: { + apiKey: 'API key', + role: '角色', + create: '创建人', + creatAt: '创建时间', + expireAt: '过期时间' } }, assetType: { diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 945ec2b37..8b8a1c544 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -173,7 +173,8 @@ const en = { login: { username: 'Username', password: 'Password', - login: 'Login' + login: 'Login', + upload: 'Upload license' }, dashboard: { title: 'Dashboard', @@ -898,7 +899,7 @@ const en = { second: 'second', day: 'day', maxSeries: 'Query max series', - unsaved: 'Unsaved tip', + unsaved: 'Unsaved prompt', mapConfig: 'Map center', mapTitle: 'Configurate map', lat: 'latitude', @@ -950,19 +951,26 @@ const en = { update: 'Update', del: 'Delete', nameMaxLength: 'The length should be less than 64', - uriRequired: 'Please fill in the correct url' + uriRequired: 'Please fill in the correct url', + create: 'Creator' }, notification: { notification: 'Notification', name: 'Name', filePath: 'File path', operation: 'Operation', + account: 'Account', + state: 'State', + buildIn: 'Build in', add: 'Add', update: 'Update', del: 'Delete', nameMaxLength: 'The length should be less than 64', uriRequired: 'Required', - filePathReg: 'Please enter the correct file path' + filePathReg: 'Please enter the correct file path', + create: 'Create notification', + invalid: 'Invalid', + valid: 'Valid' }, reset: { reset: 'Reset', @@ -975,6 +983,13 @@ const en = { promptTitle: 'Confirm', yes: 'Yes', no: 'No' + }, + apiKey: { + apiKey: 'API key', + role: 'Role', + create: 'Creator', + creatAt: 'Create at', + expireAt: 'Expire at' } }, assetType: { diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue index 966744dbc..4d2222b03 100644 --- a/nezha-fronted/src/components/common/login.vue +++ b/nezha-fronted/src/components/common/login.vue @@ -14,7 +14,7 @@
- {
- "assetId": 1,
- "dcId": 1,
- "description": "The endpoint is down, the detailed information
- Asset : 192.168.40.161, Project: system, Module: node_exporter,
- Data center: center, EndpointId: 1",
- "endAt": 1606240496000,
- "endpointId": 1,
- "hashKey": "34a17b57f289592a94ff65ee0864094b",
- "id": 1,
- "labels": "{\"severity\":\"P2\",\"endpoint\":\"1\",\"alertname\":\"1\",
- \"module\":\"node_exporter\",\"project\":\"system\",\"datacenter\":
- \"center\",\"asset\":\"192.168.40.161\"}",
- "moduleId": 1,
- "projectId": 1,
- "ruleId": 1,
- "severity": "P2",
- "startAt": 1606009916000,
- "state": 2,
- "summary": "The endpoint is down, endpointId is 1"
- }
-
- ...
-
+ {
+ "assetId": 1,
+ "dcId": 1,
+ "description": "The endpoint is down, the detailed information
+ Asset : 192.168.40.161, Project: system, Module: node_exporter,
+ Data center: center, EndpointId: 1",
+ "endAt": 1606240496000,
+ "endpointId": 1,
+ "hashKey": "34a17b57f289592a94ff65ee0864094b",
+ "id": 1,
+ "labels": "{\"severity\":\"P2\",\"endpoint\":\"1\",\"alertname\":\"1\",
+ \"module\":\"node_exporter\",\"project\":\"system\",\"datacenter\":
+ \"center\",\"asset\":\"192.168.40.161\"}",
+ "moduleId": 1,
+ "projectId": 1,
+ "ruleId": 1,
+ "severity": "P2",
+ "startAt": 1606009916000,
+ "state": 2,
+ "summary": "The endpoint is down, endpointId is 1"
+ }
+
+ ...
+