NEZ-2041 feat : about 页面初版(无英文版)
This commit is contained in:
@@ -1,20 +1,30 @@
|
||||
.about {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 20px 20px 10px 20px;
|
||||
background-color: $--background-color-empty;
|
||||
//border: 10px solid $--background-color-base;
|
||||
box-sizing: border-box;
|
||||
|
||||
.app{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 140px;
|
||||
background-color: $--background-color-2;
|
||||
}
|
||||
.about-label {
|
||||
color: $--color-text-secondary;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
display: flex;
|
||||
min-width: 360px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-right: 2px solid $--border-color-light;
|
||||
padding-right: 20px;
|
||||
margin-right: 20px;
|
||||
// min-width: 360px;
|
||||
|
||||
.header-logo {
|
||||
font-size: 0;
|
||||
@@ -22,19 +32,20 @@
|
||||
}
|
||||
|
||||
.header-title {
|
||||
padding-left: 20px;
|
||||
padding-left: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
|
||||
.app-name {
|
||||
font-weight: bold;
|
||||
line-height: 50px;
|
||||
line-height: 30px;
|
||||
font-size: 20px;
|
||||
color: $--color-text-primary;
|
||||
}
|
||||
|
||||
.app-version {
|
||||
padding-left: 1px;
|
||||
font-size: 14px;
|
||||
color: $--color-text-primary;
|
||||
font-weight: 400;
|
||||
@@ -43,28 +54,107 @@
|
||||
}
|
||||
|
||||
.app-component {
|
||||
width: 360px;
|
||||
margin-top: 35px;
|
||||
|
||||
.component-title {
|
||||
color: $--color-text-secondary;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
line-height: 30px;
|
||||
border-bottom: 1px solid $--color-text-secondary;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.component-content {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.app-component-row {
|
||||
line-height: 28px;
|
||||
display: flex;
|
||||
color: $--color-text-primary;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
justify-content: space-between;
|
||||
// padding-top: 8px;
|
||||
.app-component-row {
|
||||
line-height: 28px;
|
||||
display: flex;
|
||||
color: $--color-text-primary;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.component-name{
|
||||
color: $--color-text-regular;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.time-line{
|
||||
width: 100%;
|
||||
height: calc(100% - 160px);
|
||||
.time-line-title{
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
padding-bottom: 10px;
|
||||
color: $--color-text-regular;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.time-line-body{
|
||||
width: 100%;
|
||||
height: 96%;
|
||||
padding: 30px 30px 0 35px;
|
||||
border: 1px solid $--border-color-light;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
.el-timeline-item{
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.about-summary{
|
||||
display: flex;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
padding-top: 6px;
|
||||
line-height: 21px;
|
||||
.dot{
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background-color: $--color-info;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.about-summary-text{
|
||||
font-size: 14px;
|
||||
color: $--color-text-regular;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-timeline-item__node.el-timeline-item__node--normal.el-timeline-item__node--{
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 1px solid $--color-primary;
|
||||
background-color: $--background-color-empty;
|
||||
z-index: 3;
|
||||
}
|
||||
.el-timeline-item__node.el-timeline-item__node--normal.el-timeline-item__node--::before{
|
||||
content: "";
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background-color: $--color-primary;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
z-index: 3;
|
||||
}
|
||||
.el-timeline-item__tail{
|
||||
border-left: 1px solid rgba(250,144,28,0.12);
|
||||
left: 8px;
|
||||
}
|
||||
.el-timeline-item__wrapper{
|
||||
top:-21px;
|
||||
padding-left: 38px;
|
||||
.el-timeline-item__timestamp.is-top{
|
||||
font-size: 16px;
|
||||
color: $--color-text-primary;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<div class="about">
|
||||
<div class="app-header">
|
||||
<div class="header-logo"><img width="88" height="88" src="../../../assets/img/logo1-2.png"></div>
|
||||
<div class="app">
|
||||
<div class="app-header">
|
||||
<div class="header-logo"><img width="60" height="60" src="../../../assets/img/logo1-2.png"></div>
|
||||
<div class="header-title">
|
||||
<div class="app-name">{{version.nezha.name}}</div>
|
||||
<div class="app-version"><span class="about-label">{{$t("overall.version")}} </span><span>{{version.nezha.version}}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-component">
|
||||
<div class="component-title">{{$t("overall.components")}}</div>
|
||||
<div class="component-content">
|
||||
<div class="app-component-row" v-for="(item, index) in version.components" :key="index">
|
||||
<div class="component-name">{{item.name}}</div>
|
||||
@@ -16,6 +16,26 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="time-line">
|
||||
<div class="time-line-title">{{$t('about.releaseNotes')}}</div>
|
||||
<div class="time-line-body">
|
||||
<el-timeline v-my-loading="loading">
|
||||
<!-- v-if="!noData && timeLineData.length" -->
|
||||
<el-timeline-item
|
||||
v-for="(item) in activities"
|
||||
:key="item.id"
|
||||
:timestamp="item.timestamp ? item.timestamp : ''"
|
||||
placement="top"
|
||||
>
|
||||
<div class="about-summary" v-for="(val) in item.content" :key="val.chinese">
|
||||
<span class="dot"></span>
|
||||
<div class="about-summary-text">{{language === "en" ? val.english :val.chinese}}</div>
|
||||
</div>
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -23,10 +43,167 @@ export default {
|
||||
name: 'about',
|
||||
data () {
|
||||
return {
|
||||
noData: false,
|
||||
timeLineData: [],
|
||||
language: '',
|
||||
version: {
|
||||
nezha: { name: '', version: '' },
|
||||
components: [{ name: '', version: '' }]
|
||||
}
|
||||
},
|
||||
activities: [{
|
||||
timestamp: 'Release 22.08 - Aug 2022',
|
||||
content: [{
|
||||
id: 1,
|
||||
chinese: '[FEATURE] 仪表盘增加快照导出功能'
|
||||
}, {
|
||||
id: 2,
|
||||
chinese: '[FEATURE] 仪表盘支持定义变量,变量可以在chart表达式中使用'
|
||||
}, {
|
||||
id: 3,
|
||||
chinese: '[FEATURE] 仪表盘支持定时生成报告并通过邮件发送给接收人'
|
||||
}, {
|
||||
id: 4,
|
||||
chinese: '[FEATURE] 列表文字支持快捷复制到剪切板'
|
||||
}, {
|
||||
id: 5,
|
||||
chinese: '[ENHANCEMENT] 图表表达式增加是否启用配置项'
|
||||
}, {
|
||||
id: 6,
|
||||
chinese: '[ENHANCEMENT] 增加新增资产、新增业务系统等完成后的使用提示'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 22.05 - May 2022',
|
||||
content: [{
|
||||
id: 7,
|
||||
chinese: '[FEATURE] Endpoint支持批量修改标签,是否启用采集'
|
||||
}, {
|
||||
id: 8,
|
||||
chinese: '[FEATURE] 仪表盘增加查看模式切换'
|
||||
}, {
|
||||
id: 9,
|
||||
chinese: '[FEATURE] 仪表盘增加用户收藏功能 '
|
||||
}, {
|
||||
id: 10,
|
||||
chinese: '[FEATURE] 分布式Ping,traceroute功能'
|
||||
}, {
|
||||
id: 11,
|
||||
chinese: '[ENHANCEMENT] 丰富告警消息详情页面显示内容'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 22.02 - Feb 2022',
|
||||
content: [{
|
||||
id: 12,
|
||||
chinese: '[FEATURE] 新增 密码策略 配置,支持密码长度,复杂度,有效性,重试次数等配置项'
|
||||
}, {
|
||||
id: 13,
|
||||
chinese: '[FEATURE] 丰富图表类型,新增hexgon, treemap, topology 等图表'
|
||||
}, {
|
||||
id: 14,
|
||||
chinese: '[FEATURE] 支持自定义日期显示格式'
|
||||
}, {
|
||||
id: 15,
|
||||
chinese: '[FEATURE] 新增license管理功能'
|
||||
}, {
|
||||
id: 16,
|
||||
chinese: '[FEATURE] 新增IP地址管理功能'
|
||||
}, {
|
||||
id: 17,
|
||||
chinese: '[FEATURE] 新增全局搜索功能'
|
||||
}, {
|
||||
id: 18,
|
||||
chinese: '[ENHANCEMENT] 优化表格图表类型配置及显示,支持多个表达式结果关联显示在同一个表格中'
|
||||
}, {
|
||||
id: 19,
|
||||
chinese: '[ENHANCEMENT] 优化折线图,面积图图表类型显示,支持是否启用堆叠'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 21.11 - Nov 2021',
|
||||
content: [{
|
||||
id: 20,
|
||||
chinese: '[FEATURE] 资产、告警规则、模块等增加详细视图'
|
||||
}, {
|
||||
id: 21,
|
||||
chinese: '[FEATURE] 增加个人中心,支持查看本人操作记录等信息'
|
||||
}, {
|
||||
id: 22,
|
||||
chinese: '[ENHANCEMENT] 重构告警规则实现,统一指标、日志和SNMP trap告警规则定义'
|
||||
}, {
|
||||
id: 23,
|
||||
chinese: '[ENHANCEMENT] 资产支持批量修改标签,密码等'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 21.09 - Sep 2021',
|
||||
content: [{
|
||||
id: 24,
|
||||
chinese: '[FEATURE] 集中的日志数据观测'
|
||||
}, {
|
||||
id: 25,
|
||||
chinese: '[FEATURE] 资产支持父子数据关联'
|
||||
}, {
|
||||
id: 26,
|
||||
chinese: '[[FEATURE] 双因素认证'
|
||||
}, {
|
||||
id: 27,
|
||||
chinese: '[FEATURE] 支持创建图表模板'
|
||||
}, {
|
||||
id: 28,
|
||||
chinese: '[ENHANCEMENT] 优化折线图表类型显示效果'
|
||||
}, {
|
||||
id: 29,
|
||||
chinese: '[ENHANCEMENT] 优化图表排列方式'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 21.07 - Jul 2022',
|
||||
content: [{
|
||||
id: 30,
|
||||
chinese: '[FEATURE] 系统初始化配置功能,方便用户首次部署配置'
|
||||
}, {
|
||||
id: 31,
|
||||
chinese: '[FEATURE] 使用向导功能'
|
||||
}, {
|
||||
id: 32,
|
||||
chinese: '[FEATURE] NZ-AGENT组件实现一键部署'
|
||||
}, {
|
||||
id: 33,
|
||||
chinese: '[ENHANCEMENT] UI界面优化'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 21.04 - Apr 2021',
|
||||
content: [{
|
||||
id: 34,
|
||||
chinese: '[FEATURE] UI界面重构'
|
||||
}, {
|
||||
id: 35,
|
||||
chinese: '[FEATURE] 系统拓扑图功能'
|
||||
}, {
|
||||
id: 36,
|
||||
chinese: '[FEATURE] 堡垒机操作录像及回放功能'
|
||||
}, {
|
||||
id: 37,
|
||||
chinese: '[ENHANCEMENT] 优化堡垒机命令解析方式,使命令解析结果更准确'
|
||||
}]
|
||||
}, {
|
||||
timestamp: 'Release 2.0 - Jul 2020',
|
||||
content: [{
|
||||
id: 38,
|
||||
chinese: '[FEATURE] 系统概览功能'
|
||||
}, {
|
||||
id: 39,
|
||||
chinese: '[FEATURE] 告警规则查看详情'
|
||||
}, {
|
||||
id: 40,
|
||||
chinese: '[FEATURE] 列表数据批量导入导出功能'
|
||||
}, {
|
||||
id: 41,
|
||||
chinese: '[ENHANCEMENT] 列表字段支持排序'
|
||||
}, {
|
||||
id: 42,
|
||||
chinese: '[ENHANCEMENT] 图表实现调整位置和大小'
|
||||
}, {
|
||||
id: 43,
|
||||
chinese: '[ENHANCEMENT] 列表字段支持排序'
|
||||
}]
|
||||
}]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -38,6 +215,7 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
this.getVersion()
|
||||
this.language = localStorage.getItem('nz-language') || 'en'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user