feat: project、config、alert界面和交互

1.project、config、alert界面
2.和后端的交互,但部分接口/原型未定,包括:
--1.Alert-config link查看、编辑框暂时直接回显id
--2.用户保存操作后端报错
--3.endpoint弹框页面未定,暂按现版本原型实现
This commit is contained in:
chenjinsong
2019-12-13 17:08:35 +08:00
parent efa5b2bcff
commit 03173b64b9
10 changed files with 592 additions and 154 deletions

View File

@@ -15,9 +15,16 @@ const en = {
search: 'Search',
add: "Add",
option: "Option",
clearAll: "Clear All"
clearAll: "Clear All",
},
tip: {
confirmDelete: "Confirm Delete?",
yes: "Yes",
no: "No",
deleteSuccess: "Successfully Deleted"
},
asset:{
createAsset: "Create Asset",
tableTitle: {
id: 'ID',
assetType: '资产类型',
@@ -65,7 +72,8 @@ const en = {
//侧滑框
promId: "Prometheus Server ID",
createProm: "Create Prometheus Server",
editProm: "Edit Prometheus Server"
editProm: "Edit Prometheus Server",
type: "Type"
},
},
alert: {
@@ -86,9 +94,9 @@ const en = {
charts: "Charts",
//表内容
projectalert: "Project Alert",
modulealert: "Module Alert",
devicealert: "Device Alert",
projectAlert: "Project Alert",
moduleAlert: "Module Alert",
deviceAlert: "Device Alert",
pending: "Pending",
expired: "Expired"
},
@@ -96,11 +104,20 @@ const en = {
name: "Name",
receiver: "Receiver",
expr: "Expr",
for: "For",
for: "For (s)",
link: 'Link',
option: "Option",
alertConfig: "Alert Config",
createalertConfig: "Create Alert Config",
editalertConfig: "Edit Alert Config",
createAlertConfig: "Create Alert Config",
editAlertConfig: "Edit Alert Config",
medium: "Medium",
high: "High",
low: "Low",
typeOption: {
project: 'Project',
module: 'Module',
asset: 'Asset'
}
}
},
project: {
@@ -108,13 +125,15 @@ const en = {
project: "Project",
projectName: "Project Name",
editProject: "Edit Project",
description: "Description"
description: "Description",
createProject: "Create Project"
},
module: {
module: "Module",
moduleName: "Module Name",
editModule: "Edit Module",
description: "Description",
createModule: "Create Module",
tip: {
defaultEndpointSet: "Default Endpoint Set",
relation: "Endpoints associated with Module will reference Port/Path/Param/Params by default"
@@ -132,7 +151,12 @@ const en = {
asset: "Asset",
lastUpdate: "Last Update",
},
metrics: "Metrics"
metrics: {
metrics: "Metrics",
name: 'name',
type: 'Type',
description: 'Desc'
}
},
...enLocale
}