From f0b5f13a7084512e600ee79234795d3d4812243d Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 11 Apr 2022 17:24:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E6=94=B9=E6=9C=AA?= =?UTF-8?q?=E6=89=A7=E8=A1=8Ceslint=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/css/font/iconfont.js | 2 +- .../src/components/chart/chart/chartStat.vue | 2 +- .../components/chart/chart/options/graph.js | 1190 ----------------- .../src/components/chart/chartMixin.js | 1 - .../common/alert/alertMessageInfo.vue | 2 +- .../components/common/alert/alertRuleInfo.vue | 1 - .../list/endpoint/endpointDetail.vue | 2 +- .../detailView/view/detailViewRight.vue | 2 +- .../src/components/common/js/validate.js | 8 +- .../components/common/mixin/subDataList.js | 2 +- .../common/project/popData/assetTable.vue | 2 +- .../rightBox/administration/backupsBox.vue | 336 +++-- .../common/rightBox/alertRuleBox.vue | 2 +- .../common/rightBox/chart/chartTypeShow.js | 2 +- .../common/table/alert/alertMessageTable.vue | 2 +- .../common/table/asset/assetTable.vue | 2 +- .../common/table/settings/backupsTable.vue | 49 +- .../common/table/settings/ipDetailsTable.vue | 4 +- .../src/components/layout/header.vue | 2 +- nezha-fronted/src/components/layout/home.vue | 2 +- .../components/page/alert/alertMessage.vue | 2 +- .../src/components/page/config/backups.vue | 95 +- .../src/components/page/config/roles.vue | 1 - 23 files changed, 256 insertions(+), 1457 deletions(-) delete mode 100644 nezha-fronted/src/components/chart/chart/options/graph.js diff --git a/nezha-fronted/src/assets/css/font/iconfont.js b/nezha-fronted/src/assets/css/font/iconfont.js index dfb1fb304..76469a743 100644 --- a/nezha-fronted/src/assets/css/font/iconfont.js +++ b/nezha-fronted/src/assets/css/font/iconfont.js @@ -1 +1 @@ -!function(a){var c,h,l,z,o,i='',v=(v=document.getElementsByTagName("script"))[v.length-1].getAttribute("data-injectcss"),t=function(a,c){c.parentNode.insertBefore(a,c)};if(v&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}function m(){o||(o=!0,l())}function p(){try{z.documentElement.doScroll("left")}catch(a){return void setTimeout(p,50)}m()}c=function(){var a,c=document.createElement("div");c.innerHTML=i,i=null,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(a=document.body).firstChild?t(c,a.firstChild):a.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(h=function(){document.removeEventListener("DOMContentLoaded",h,!1),c()},document.addEventListener("DOMContentLoaded",h,!1)):document.attachEvent&&(l=c,z=a.document,o=!1,p(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,m())})}(window); \ No newline at end of file +!(function (a) { let c; let h; let l; let z; let o; let i = ''; var v = (v = document.getElementsByTagName('script'))[v.length - 1].getAttribute('data-injectcss'); const t = function (a, c) { c.parentNode.insertBefore(a, c) }; if (v && !a.__iconfont__svg__cssinject__) { a.__iconfont__svg__cssinject__ = !0; try { document.write('') } catch (a) { console && console.log(a) } } function m () { o || (o = !0, l()) } function p () { try { z.documentElement.doScroll('left') } catch (a) { return void setTimeout(p, 50) }m() }c = function () { let a; let c = document.createElement('div'); c.innerHTML = i, i = null, (c = c.getElementsByTagName('svg')[0]) && (c.setAttribute('aria-hidden', 'true'), c.style.position = 'absolute', c.style.width = 0, c.style.height = 0, c.style.overflow = 'hidden', c = c, (a = document.body).firstChild ? t(c, a.firstChild) : a.appendChild(c)) }, document.addEventListener ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) ? setTimeout(c, 0) : (h = function () { document.removeEventListener('DOMContentLoaded', h, !1), c() }, document.addEventListener('DOMContentLoaded', h, !1)) : document.attachEvent && (l = c, z = a.document, o = !1, p(), z.onreadystatechange = function () { z.readyState == 'complete' && (z.onreadystatechange = null, m()) }) }(window)) diff --git a/nezha-fronted/src/components/chart/chart/chartStat.vue b/nezha-fronted/src/components/chart/chart/chartStat.vue index 2e8c3d3b7..bd476b63e 100644 --- a/nezha-fronted/src/components/chart/chart/chartStat.vue +++ b/nezha-fronted/src/components/chart/chart/chartStat.vue @@ -69,7 +69,7 @@ export default { x: 0, y: 0, title: 0, - value: 0, + value: 0, show: false }, fontSize: 12, diff --git a/nezha-fronted/src/components/chart/chart/options/graph.js b/nezha-fronted/src/components/chart/chart/options/graph.js deleted file mode 100644 index 47f3af027..000000000 --- a/nezha-fronted/src/components/chart/chart/options/graph.js +++ /dev/null @@ -1,1190 +0,0 @@ -//$Id$ - -/* This file contains source for d3 map */ - -var view = (function() { - var initializeView = function (baseCIName) { - if(attributes.assetDetailsTab || attributes.iframe) { - jQuery(".svgbdy").css("padding-top", 0); //no i18n - } - if(attributes.iframe) { - jQuery('#zoom-slider').css("height", "80px"); //no i18n - } - if(attributes.assetDetailsTab) { - jQuery("body").removeClass("svgbdy") - } - if(attributes.adminDetailsTab){ - jQuery("body").css("overflow", "auto"); //NO I18N - } - if(attributes.editable != undefined && attributes.editable == false) { - jQuery("#save").remove(); - } - if(!attributes.viewId) { - jQuery("#saved-view-header").hide(); - if(!attributes.newView) { - jQuery("#ciNameLabel").text(baseCIName); - jQuery("#savethisviewLabel").remove(); - jQuery("#saveviewbtn").text(getMessageForKey("ae.cmdb.businessview.save.title")); //no i18n - } - } - else { - jQuery("#ciNameLabel").remove(); // set ci name in ui - jQuery("#new-view-header").remove(); - jQuery("#saved-view-header").show(); - } - } - - var showProgressIndicator = function() { - invokeProgressIndicator(null, 'sdp.common.loading', 'progress', null, false, 200, 200); // no i18n - } - - var removeProgressIndicator = function () { - jQuery('[id^=_DIALOG_LAYER]').remove(); - } - - return { - initializeView: initializeView, - showProgressIndicator: showProgressIndicator, - removeProgressIndicator: removeProgressIndicator - }; -})(); - -var header = (function() { - var buildViewDropdown = function (data, currentViewId) { - var dropdown = jQuery("#viewsDropDown"); - dropdown.empty(); - if(data.length != 0) { - jQuery.each(data, function() { - var viewNameDecoded = this.name; - viewNameDecoded = viewNameDecoded.replace(/\+/g, '%20'); - viewNameDecoded = decodeURIComponent(viewNameDecoded); - if(viewNameDecoded.length > 25) { - dropdown.append(jQuery("