diff --git a/nezha-fronted/src/assets/img/logo.png b/nezha-fronted/src/assets/img/logo.png new file mode 100644 index 000000000..51aee3a1a Binary files /dev/null and b/nezha-fronted/src/assets/img/logo.png differ diff --git a/nezha-fronted/src/assets/img/logo24_24.png b/nezha-fronted/src/assets/img/logo24_24.png new file mode 100644 index 000000000..e46351d78 Binary files /dev/null and b/nezha-fronted/src/assets/img/logo24_24.png differ diff --git a/nezha-fronted/src/assets/logo.png b/nezha-fronted/src/assets/logo.png deleted file mode 100644 index f3d2503fc..000000000 Binary files a/nezha-fronted/src/assets/logo.png and /dev/null differ diff --git a/nezha-fronted/src/assets/logo14_14.png b/nezha-fronted/src/assets/logo14_14.png new file mode 100644 index 000000000..35b87af7e Binary files /dev/null and b/nezha-fronted/src/assets/logo14_14.png differ diff --git a/nezha-fronted/src/assets/stylus/index.scss b/nezha-fronted/src/assets/stylus/index.scss index 9a81bf409..a4364fc9a 100644 --- a/nezha-fronted/src/assets/stylus/index.scss +++ b/nezha-fronted/src/assets/stylus/index.scss @@ -4,6 +4,17 @@ $header-text-color: #e5e5e5; // header默认字色 $header-text-color-active: #fff; // header高亮字色 $header-text-color-hover: #444; //header hover字色 +$btn-normal-background-color: linear-gradient(180deg, #F5B93E 0%, #EE9D3F 100%); //橙色按钮颜色 +$btn-normal-background-color-hover: #EE9D3F ; //橙色按钮hover颜色 +$btn-normal-txt-color: #fff; //橙色按钮颜色 +$btn-normal-shadow: 0 0 1px 1px rgba(162,162,162,0.50); //橙色按钮边框阴影 +$btn-light-background-color: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%); //灰色按钮颜色 +$btn-light-background-color-hover: linear-gradient(180deg, #F0F0F0 0%, #D8D8D8 99%); //橙色按钮hover颜色 +$btn-light-txt-color: #666; //灰色按钮颜色 +$btn-light-shadow: 0 0 1px 1px rgba(162,162,162,0.50); //灰色按钮边框阴影 + +$box-title-color: #333; //弹框标题字体颜色 + $content-left-text-color: #666; //左侧菜单默认字色 @import './main.scss'; diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 52e3fb255..3d5375eb9 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -72,38 +72,50 @@ html { } /* begin--按钮组件*/ +.nz-btn-min-width-75 { + min-width: 75px; +} +.nz-btn-min-width-82 { + min-width: 82px; +} +.nz-btn-min-width-120 { + min-width: 120px; +} .nz-btn { - width: 82px; border-radius: 4px; cursor: pointer; - line-height: 18px; - font-size: 14px; - padding: 4px 6px; text-align: center; box-sizing: border-box; -webkit-appearance: none; white-space: nowrap; - margin-left: 20px; + font-size: 14px; + line-height: 16px; +} +.nz-btn.nz-btn-size-normal { + padding: 4px 8px; } -.nz-btn.nz-btn-size-normal {} /* size默认normal,是normal时这个class可不写*/ .nz-btn.nz-btn-size-small { font-size: 12px; - line-height: 18px; - padding: 2px 12px; - font-weight: 500; + padding: 2px 5px; } -.nz-btn.nz-btn-style-normal { /* 蓝色按钮 */ - background-color: $global-text-color-active; - // background-image: linear-gradient(#2d8cec, #16b); - border: 1px solid $global-text-color-active; - border-top-color: $global-text-color-active; - color: #fff; - // text-shadow: 0 1px 1px rgba(0,0,0,.75); +.nz-btn-size-large { + padding: 7px 15px; +} +.nz-btn.nz-btn-size-alien { //弹框顶部异形按钮 + height: 40px; + border-radius: 0 0 10px 10px; +} +.nz-btn.nz-btn-style-normal { /* 橙色按钮 */ + background-image: $btn-normal-background-color; + color: $btn-normal-txt-color; + box-shadow: $btn-normal-shadow; + border: 0px; } .nz-btn.nz-btn-style-light { /* 浅色按钮 */ - background-color: transparent; - border: 1px solid #999999; - color: #999999; + background-image: $btn-light-background-color; + border: 0px; + color: $btn-light-txt-color; + box-shadow: $btn-light-shadow; letter-spacing: 0; } .nz-btn.nz-btn-style-pure-white { /*纯白色按钮*/ @@ -115,13 +127,14 @@ html { padding: 2px 5px; } .nz-btn.nz-btn-size-normal.nz-btn-style-square { /* 单图标时是个正方形*/ - // padding: 4px 6px; + padding: 4px 6px; } .nz-btn.nz-btn-style-light:hover:not(.nz-btn-disabled) { - // background-image: linear-gradient(#dedede,#c5c5c5); + background-image: $btn-light-background-color-hover; } .nz-btn.nz-btn-style-normal:hover:not(.nz-btn-disabled) { - // background-image: linear-gradient(#16b, #0d4d8c); + background-image: none; + background-color: $btn-normal-background-color-hover; } .nz-btn.nz-btn-style-pure-white:hover:not(.nz-btn-disabled) { background-color: #dedede; @@ -148,8 +161,8 @@ html { /* begin--el-input扩展 */ .input-x-mini .el-input__inner { - height: 24px; - line-height: 24px; + height: 22px; + line-height: 22px; padding: 0 5px; font-size: 12px; } @@ -230,8 +243,8 @@ html { /* begin--右侧内容*/ .content-right { height: calc(100% - 131px); - margin-left: 270px; - padding: 0 15px 0 25px; + margin-left: 256px; + padding: 0 20px 0 20px; } .content-right-option { cursor: pointer; @@ -239,39 +252,25 @@ html { margin-right: 6px; } .content-right-option i { - color: #6E7274; -} -.content-right-option i:hover { - color: #3E4244; + font-size: 12px; } .content-right-option .el-icon-delete { - color: #F98D9A; + color: #ee6723; } -.content-right-option .el-icon-delete:hover { - color: #D96D7A; -} -.content-right-option .el-icon-view { - color: #60BEFF; +.content-right-option .nz-icon-view { + color: #898989; } .link { /*有外联的字段*/ - color: #1166bb; + color: #3971BA; cursor: pointer; } -.content-right-option .el-icon-view:hover { - color: #409EFF; -} -.content-right-option .el-icon-edit-outline { - color: #6E7274; -} -.content-right-option .el-icon-edit-outline:hover { - color: #3E4244; -} /* begin--顶部工具栏*/ .top-tools { padding: 22px 0 13px 0; } .top-tools .top-tool-search { - width: 320px; + width: 260px; + margin: -1px 20px 0 0; } /* end--顶部工具栏*/ @@ -334,7 +333,7 @@ html { min-width: 100px; } .content-right .el-table__row td:first-of-type { - padding-left: 33px; + padding-left: 38px; } .nz-table-gear { display: block; @@ -369,28 +368,28 @@ html { /* begin--右弹框滑入滑出动画*/ @keyframes slide-in-from-right-580 { - from {right: -615px} - to {right: 15px} + from {right: -630px} + to {right: 0px} } @keyframes slide-out-to-right-580 { - from {right: 15px} - to {right: -615px} + from {right: 0px} + to {right: -630px} } @keyframes slide-in-from-right-840 { - from {right: -855px} - to {right: 15px} + from {right: -870px} + to {right: 0px} } @keyframes slide-out-to-right-840 { - from {right: 15px} - to {right: -855px} + from {right: 0px} + to {right: -870px} } @keyframes slide-in-from-right { - from {right: -535px} - to {right: 15px} + from {right: -550px} + to {right: 0px} } @keyframes slide-out-to-right { - from {right: 15px} - to {right: -535px} + from {right: 0px} + to {right: -550px} } .right-box-enter-active { animation: slide-in-from-right 0.4s; @@ -433,14 +432,13 @@ html { /* begin--右侧弹框*/ .right-box, .right-sub-box { position: fixed; - top: 80px; - right: 15px; + top: 60px; + right: 0; z-index: 1; - border-radius: 8px; box-shadow: 0 0 15px #ccc; background-color: white; - padding: 0 0 0 20px; - height: calc(100% - 100px); + padding: 0 0 0 30px; + height: calc(100% - 60px); } /*此处自定义弹框尺寸,不同功能可能需要的尺寸不一样,需自行添加*/ @@ -448,7 +446,7 @@ html { width: 520px; } .right-box-add-asset { - width: 580px; + width: 550px; } .right-box-add-endpoint { width: 840px; @@ -457,8 +455,10 @@ html { .right-box-top-btns { text-align: center; float: right; - padding-right: 10px; - padding-top: 8px; + padding-right: 42px; +} +.right-box-top-btns button { + margin-left: 20px; } .pop-top-btns { text-align: center; @@ -468,11 +468,12 @@ html { /* begin--右侧弹框--内容*/ .right-box-title { - height: 56px; - line-height: 40px; + height: 36px; text-align: left; display: inline-block; - font-weight: bold; + padding-top: 20px; + font-size: 14px; + color: $box-title-color; } .pop-title { line-height: 25px; @@ -520,7 +521,7 @@ html { background-color: #d8d8d8; } .right-box-form-box { - height: calc(100% - 63px); + height: calc(100% - 132px); width: 100%; } .right-box-form-box .el-scrollbar__wrap { @@ -530,7 +531,7 @@ html { overflow-x: hidden !important; } .right-box-form { - width: calc(100% - 20px); + width: calc(100% - 30px); } .right-box-add-endpoint .right-box-form { height: 100%; @@ -588,6 +589,9 @@ html { display: inline-block; float: right; } +.right-box-form-btns button { + margin-left: 10px; +} /* start--param*/ .param-box { border: 1px solid #DCDFE6; @@ -675,38 +679,17 @@ html { /* begin--右侧弹框--底部按钮*/ .right-box-bottom-btns { + width: 100%; + height: 53px; position: absolute; bottom: 0; - width: 100%; - height: 40px; left: 0; + padding-top: 20px; + border-top: 1px solid #ccc; text-align: center; } -.right-box-bottom-btn:first-of-type { - border-bottom-left-radius: 8px; -} -.right-box-bottom-btn:last-of-type{ - border-bottom-right-radius: 8px; -} -.right-box-bottom-btn { - display: inline-block; - background-color: #656565; - color: white; - height: 100%; - line-height: 40px; - cursor: pointer; - width: 100%; -} -.config-dropdown-label-input { - width: 50%; - display: inline-block; -} -.right-box-bottom-btn-cancel { - background-color: #DADADA; - color: #656565; -} -.right-box-bottom-btn-50 { - width: 50%; +.right-box-bottom-btns :nth-child(2) { + margin-left: 40px; } /* end--右侧弹框--底部按钮*/ /* end--右侧弹框*/ diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index e29e6d413..fbdfc5cf0 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -45,7 +45,7 @@
{{item.name}} + class="nz-icon nz-icon-edit">
@@ -61,7 +61,7 @@ diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index 4bdd1d7d7..e31593eec 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -47,13 +47,13 @@ const cn = { chartForm:{ chartId:"ID", chartName:"图表名称", - type:"类别", + type:"类型", typeVal:{ line:{ - label:"线" + label:"曲线图" }, bar:{ - label:"柱" + label:"柱状图" }, table:{ label:"表格" @@ -61,11 +61,11 @@ const cn = { }, width:"宽", high:"高", - metric:"Metric", - addMetric:"新增Metric", + metric:"指标", + addMetric:"添加指标", }, chartTableColumn:{ - metric:'metric', + metric:'指标', label:'标签', time:'时间', value:'值', @@ -75,46 +75,45 @@ const cn = { to:'至', recOne:'最近1小时', recFour:'最近4小时', - recOneDay:'最近1天', - yesterday:'昨天', - recSevenDay:'最近1星期', + recOneDay:'最近1日', + yesterday:'昨日', + recSevenDay:'最近7日', recOneMonth:'最近1月', curMonth:'本月', lastMonth:'上月', refreshInterval:{ never:'从不', - oneMinute:'1 分', - threeMinutes:'3 分', - fiveMinutes:'5 分', - tenMinutes:'10 分', + oneMinute:'1分钟', + threeMinutes:'3分钟', + fiveMinutes:'5分钟', + tenMinutes:'10分钟', }, view:'查看', confirm:'Ok', cancel:'取消' }, metric:{ - name:"Metric", - normal:"Normal", - expert:"Expert", - label:"MetricLabel", - addMetric:"Create Metric", - expertTip:"Please enter an expression", - goPanelTip:"Go to the panel to view the created chart ?", - previewChart:"Preview Chart", - singleChartShow:"Single Graph Display", - multiChartsShow:"Multi Graph Display", - createPanel:"Create Panel", - selectPanel:"Select Panel", - saveChartToPanel:"Save Chart To Panel" + name:"指标名称", + normal:"普通", + expert:"专家", + label:"指标标签", + addMetric:"添加指标", + expertTip:"请输入表达式", + goPanelTip:"是否前去看板,查看创建的图表?", + previewChart:"预览图表", + singleChartShow:"单图展示", + multiChartsShow:"多图展示", + createPanel:"创建面板", + selectPanel:"选择已有面板", + saveChartToPanel:"保存图表到看板" }, metricPreview:{ - title:'Metric Preview', + title:'指标预览', }, - refresh:'refresh', - edit:'edit', - delete:'delete', - screen:'fullScreen' - + refresh:'刷新', + edit:'编辑', + delete:'删除', + screen:'全屏' }, validate: { //校验规则 required: '必填项', @@ -146,7 +145,7 @@ const cn = { }, asset:{ asset: '资产', - EditAsset:'Edit Asset', + EditAsset:'编辑资产', createAssetTab:{ title:'新增资产', sn:'SN', @@ -415,7 +414,7 @@ const cn = { moduleParameter: "组件参数" }, metrics: { - metrics: "Metrics", + metrics: "指标", name: '名称', type: '类型', description: '描述' diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 365a05b39..d0995f4b9 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -9,6 +9,7 @@ const en = { create: 'Create', edit: 'Edit', delete: 'Delete', + view: 'View', esc: 'Esc', cancel: 'Cancel', save: 'Save', diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue index 6e8ea015f..9342d0faf 100644 --- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -3,12 +3,12 @@
-
@@ -94,7 +94,7 @@ - +
@@ -188,7 +188,7 @@
{{$t('validate.required')}}
- + All: {{this.endpointList.length}}
@@ -198,6 +198,16 @@ + +
+ + +
+
@@ -816,7 +826,7 @@ .endpoint-asset-search-input { display: inline-block; width: 100px; - vertical-align: middle; + vertical-align: top; } /* end--搜索框*/ diff --git a/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue b/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue index df66eb495..a2ca20f62 100644 --- a/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertConfigBox.vue @@ -3,17 +3,16 @@
- - -
@@ -99,6 +98,16 @@ + + +
+ + +
diff --git a/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue index 09a313c17..6b13b6317 100644 --- a/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue @@ -3,18 +3,18 @@
- - -
@@ -132,10 +132,10 @@ {{$t('project.endpoint.param')}}
- - + +
+ + +
+
- - - -->
@@ -74,10 +55,10 @@ {{$t('project.endpoint.param')}}
- -
@@ -102,6 +83,16 @@ + + +
+ + +
- - -
diff --git a/nezha-fronted/src/components/common/rightBox/projectBox.vue b/nezha-fronted/src/components/common/rightBox/projectBox.vue index 6f99b14a0..b959f01af 100644 --- a/nezha-fronted/src/components/common/rightBox/projectBox.vue +++ b/nezha-fronted/src/components/common/rightBox/projectBox.vue @@ -3,16 +3,15 @@
- - -
@@ -32,11 +31,15 @@ - - - + +
+ + +
diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index 88dec7c65..66e11139b 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -116,9 +116,10 @@
-
+ +
@@ -1138,8 +1139,8 @@ // 判断输入框的高度 getHeight(){ if(document.getElementById('search-ul').clientHeight<24||document.getElementById('input-center-box').clientHeight<24){ - document.getElementById('input-center-box').style.height = 30+'px' - document.getElementById('search-ul').style.height = 24+"px" + document.getElementById('input-center-box').style.height = 27+'px' + document.getElementById('search-ul').style.height = 21+"px" } }, chlick_sreach(e) { @@ -1204,29 +1205,35 @@ .new-search{ display: flex; position: relative; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,.08); - line-height: 28px; + line-height: 25px; + border-radius: 4px; + border: 1px solid #D8D8D8; + /*box-shadow: inset 0 0 5px 0 rgba(184,184,184,0.80);*/ + } + .new-search .nz-btn { + box-shadow: 0 0 1px 1px #d8d8d8; + border-radius: 0 4px 4px 0; } .new-search .search-input-all{ - width: 300px; + width: 240px; background: #fff; color: rgba(0,0,0,.55); - height: 28px; - line-height: 28px; + height: 25px; + line-height: 25px; border-bottom-left-radius: 5px; border-top-left-radius: 5px; display: flex; position: relative; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,.08); + } .search-input-all .btn-retract{ padding: 0px 4px; text-align: center; } .search-input-all .search-history{ - padding: 0px 10px; - height: 20px; - line-height: 20px; + padding: 0px 7px; + height: 17px; + line-height: 17px; text-align: center; border-right: 1px solid #e5e5e5; margin-top: 4px; @@ -1274,16 +1281,16 @@ .sreach_box{ position: relative; width: 80%; - height: 28px; + height: 25px; padding: 20px; background: #fff; margin: 200px auto; } .keyring_sreach_right_btn{ width: 18%; - height: 28px; + height: 25px; float: right; - line-height: 28px; + line-height: 25px; text-align: center; border: 1px solid #dfdfdf; } @@ -1302,7 +1309,7 @@ right: 0; top: -50px; width: 24px; - height: 28px; + height: 25px; border-radius: 50%; background: #fff; text-align: center; @@ -1392,16 +1399,16 @@ } .selectinfo_box .select_condition{ float:left; - height: 16px; + height: 13px; padding: 3px; background:#f8f8f8; - line-height: 16px; + line-height: 13px; color: rgba(0,0,0,.55); } .selectinfo_box .select_content{ float: left; - line-height: 16px; - height: 16px; + line-height: 13px; + height: 13px; padding: 3px; background: #f0f0f0; color: rgba(0,0,0,0.85); diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index bd504eeef..c4d6d7cf3 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -19,7 +19,7 @@
-
{{$t('asset.createAssetTab.title')}}
@@ -327,6 +327,16 @@ + + +
+ + +
diff --git a/nezha-fronted/src/components/page/asset/assetEditUnit.vue b/nezha-fronted/src/components/page/asset/assetEditUnit.vue index adced3d6d..6c7b5c8e7 100644 --- a/nezha-fronted/src/components/page/asset/assetEditUnit.vue +++ b/nezha-fronted/src/components/page/asset/assetEditUnit.vue @@ -3,19 +3,19 @@
- - -
{{this.tabView == true ? $t('asset.asset') : $t('asset.EditAsset')}}
@@ -455,6 +455,16 @@ + + +
+ + +
diff --git a/nezha-fronted/src/components/page/config/account.vue b/nezha-fronted/src/components/page/config/account.vue index c2c5ba09e..5d74a3228 100644 --- a/nezha-fronted/src/components/page/config/account.vue +++ b/nezha-fronted/src/components/page/config/account.vue @@ -2,69 +2,81 @@ .account { height: 100%; } - .top-tools .top-tool-btn-txt .nz-icon{ + + .top-tools .top-tool-btn-txt .nz-icon { display: inline-block; font-size: 12px; - margin-right:6px; + margin-right: 6px; }