文件操作 - 7.a486219e.chunk.js
返回文件管理
返回主菜单
删除本文件
文件: /opt/netdata/usr/share/netdata/web/static/js/7.a486219e.chunk.js
编辑文件内容
/*! For license information please see 7.a486219e.chunk.js.LICENSE */ (this["webpackJsonp@netdata/dashboard"]=this["webpackJsonp@netdata/dashboard"]||[]).push([[7],{256:function(t,e,n){},257:function(t,e,n){},258:function(t,e,n){},327:function(t,e){!function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},this.defaults(),n),this.render()};e.VERSION="2.2.0",e.DEFAULTS={on:"On",off:"Off",onstyle:"primary",offstyle:"default",size:"normal",style:"",width:null,height:null},e.prototype.defaults=function(){return{on:this.$element.attr("data-on")||e.DEFAULTS.on,off:this.$element.attr("data-off")||e.DEFAULTS.off,onstyle:this.$element.attr("data-onstyle")||e.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||e.DEFAULTS.offstyle,size:this.$element.attr("data-size")||e.DEFAULTS.size,style:this.$element.attr("data-style")||e.DEFAULTS.style,width:this.$element.attr("data-width")||e.DEFAULTS.width,height:this.$element.attr("data-height")||e.DEFAULTS.height}},e.prototype.render=function(){this._onstyle="btn-"+this.options.onstyle,this._offstyle="btn-"+this.options.offstyle;var e="large"===this.options.size?"btn-lg":"small"===this.options.size?"btn-sm":"mini"===this.options.size?"btn-xs":"",n=t('<label class="btn">').html(this.options.on).addClass(this._onstyle+" "+e),o=t('<label class="btn">').html(this.options.off).addClass(this._offstyle+" "+e+" active"),i=t('<span class="toggle-handle btn btn-default">').addClass(e),s=t('<div class="toggle-group">').append(n,o,i),a=t('<div class="toggle btn" data-toggle="toggle">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(e).addClass(this.options.style);this.$element.wrap(a),t.extend(this,{$toggle:this.$element.parent(),$toggleOn:n,$toggleOff:o,$toggleGroup:s}),this.$toggle.append(s);var l=this.options.width||Math.max(n.outerWidth(),o.outerWidth())+i.outerWidth()/2,r=this.options.height||Math.max(n.outerHeight(),o.outerHeight());n.addClass("toggle-on"),o.addClass("toggle-off"),this.$toggle.css({width:l,height:r}),this.options.height&&(n.css("line-height",n.height()+"px"),o.css("line-height",o.height()+"px")),this.update(!0),this.trigger(!0)},e.prototype.toggle=function(){this.$element.prop("checked")?this.off():this.on()},e.prototype.on=function(t){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle),this.$element.prop("checked",!0),t||this.trigger()},e.prototype.off=function(t){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off"),this.$element.prop("checked",!1),t||this.trigger()},e.prototype.enable=function(){this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1)},e.prototype.disable=function(){this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0)},e.prototype.update=function(t){this.$element.prop("disabled")?this.disable():this.enable(),this.$element.prop("checked")?this.on(t):this.off(t)},e.prototype.trigger=function(e){this.$element.off("change.bs.toggle"),e||this.$element.change(),this.$element.on("change.bs.toggle",t.proxy((function(){this.update()}),this))},e.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};var n=t.fn.bootstrapToggle;t.fn.bootstrapToggle=function(n){return this.each((function(){var o=t(this),i=o.data("bs.toggle"),s="object"==typeof n&&n;i||o.data("bs.toggle",i=new e(this,s)),"string"==typeof n&&i[n]&&i[n]()}))},t.fn.bootstrapToggle.Constructor=e,t.fn.toggle.noConflict=function(){return t.fn.bootstrapToggle=n,this},t((function(){t("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()})),t(document).on("click.bs.toggle","div[data-toggle^=toggle]",(function(e){t(this).find("input[type=checkbox]").bootstrapToggle("toggle"),e.preventDefault()}))}(jQuery)},328:function(t,e,n){},329:function(t,e,n){},332:function(t,e,n){},365:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var o=n(0),i=n(102),s=n(43),a=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),l=function(){return(l=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},r=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n},c=Object(i.a)({displayName:"CollapsibleRoot",classNames:["rmwc-collapsible-list"]}),p=function(t){if(!t)return!1;var e=t.getAttribute("tabindex");return!!(e&&Number(e)>=0)&&(t.focus(),!0)},h=function(t){function e(e){var n=t.call(this,e)||this;return n.childContainer=null,n.root=null,n.state={open:!!n.props.startOpen||!!n.props.open,childrenStyle:{}},n.handleClick=n.handleClick.bind(n),n.handleKeydown=n.handleKeydown.bind(n),n.handleFocus=n.handleFocus.bind(n),n}return a(e,t),e.getDerivedStateFromProps=function(t,e){return void 0!==t.open&&t.open!==e.open?l({},e,{open:t.open}):e},e.prototype.componentDidMount=function(){this.syncOpenState()},e.prototype.componentDidUpdate=function(t,e){e.open!==this.state.open&&this.syncOpenState()},e.prototype.syncOpenState=function(){var t=this,e=this.props,n=e.onOpen,o=e.onClose,i={maxHeight:this.childContainer?this.childContainer.offsetHeight+"px":"0px"};this.setState({childrenStyle:i},(function(){t.state.open?(n&&n(),setTimeout((function(){t.state.open&&t.setState({childrenStyle:{maxHeight:"none"}})}),300)):(o&&o(),window.requestAnimationFrame((function(){t.setState({childrenStyle:{}})})))}))},e.prototype.correctFocus=function(t){var e=this;window.requestAnimationFrame((function(){if(!e.state.open&&e.root&&e.root.contains(document.activeElement)){var n=function t(e,n){if(!e)return null;var o=n?e.previousElementSibling:e.nextElementSibling;return null===o?t(e.parentElement,n):o}(e.root,t);if(p(n))return;if(n)for(var o=n.querySelectorAll("[tabindex]"),i=0;i<o.length&&!p(o[i]);i++);}}))},e.prototype.toggleOpen=function(t){this.setState({open:t})},e.prototype.handleClick=function(t){var e=this.props.handle;e.props.onClick&&e.props.onClick(t),this.toggleOpen(!this.state.open)},e.prototype.handleKeydown=function(t){var e=this.props.handle;switch(e.props.onKeyDown&&e.props.onKeyDown(t),t.which){case 13:return void this.toggleOpen(!this.state.open);case 39:return void this.toggleOpen(!0);case 38:case 40:case 9:var n=t.shiftKey||38===t.which;return void this.correctFocus(n);case 37:return void this.toggleOpen(!1)}},e.prototype.handleFocus=function(t){if(!this.state.open&&this.root&&this.childContainer&&this.childContainer.contains(document.activeElement)){var e=this.root.querySelector(".rmwc-collapsible-list__handle .mdc-list-item");e&&e.focus()}},e.prototype.render=function(){var t,e=this,n=this.props,i=n.children,a=n.handle,p=(n.onOpen,n.onClose,n.open,n.startOpen,r(n,["children","handle","onOpen","onClose","open","startOpen"])),h=this.state,d=h.open,u=h.childrenStyle;return o.createElement(c,l({},p,{onFocus:this.handleFocus,ref:function(t){return e.root=t},className:Object(s.a)("rmwc-collapsible-list",(t={},t["rmwc-collapsible-list--open"]=d,t))}),o.createElement("div",{className:"rmwc-collapsible-list__handle"},o.cloneElement(a,l({},a.props,{onClick:this.handleClick,onKeyDown:this.handleKeydown}))),o.createElement("div",{className:"rmwc-collapsible-list__children",style:u},o.createElement("div",{className:"rmwc-collapsible-list__children-inner",ref:function(t){return e.childContainer=t}},i)))},e.displayName="CollapsibleList",e}(o.Component)},366:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(0),i=n(102),s=n(43),a=n(132),l=n(128),r=function(){return(r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},c=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n},p=Object(a.a)({surface:!1})(Object(i.a)({displayName:"ListItem",defaultProps:{tabIndex:0},classNames:function(t){return["mdc-list-item",{"mdc-list-item--selected":t.selected,"mdc-list-item--activated":t.activated,"mdc-list-item--disabled":t.disabled}]},consumeProps:["selected","activated","disabled","options"]})),h=Object(i.a)({displayName:"ListItemText",tag:"span",classNames:["mdc-list-item__text"]}),d=Object(i.a)({displayName:"ListItemPrimaryText",tag:"span",classNames:["mdc-list-item__primary-text"]}),u=Object(i.a)({displayName:"ListItemSecondaryText",tag:"span",classNames:["mdc-list-item__secondary-text"]}),f=Object(i.a)({displayName:"ListItemGraphic",classNames:["mdc-list-item__graphic"],tag:l.a}),m=Object(i.a)({displayName:"ListItemMeta",classNames:["mdc-list-item__meta"],tag:"div",render:function(t,e,n){if(t.icon)return o.createElement(l.a,r({ref:e},t));if(o.isValidElement(t.children)){t.children;var i=c(t,["children"]);return o.cloneElement(t.children,r({},i,t.children.props,{className:Object(s.a)(t.className,t.children.props.className)}))}return o.createElement(n,r({ref:e},t))}}),g=(Object(i.a)({displayName:"ListGroup",classNames:["mdc-list-group"]}),Object(i.a)({displayName:"ListGroupSubheader",classNames:["mdc-list-group__subheader"]}),Object(i.a)({displayName:"ListDivider",classNames:["mdc-list-divider"]}),function(t){var e=t.text,n=t.secondaryText,i=t.graphic,s=t.metaIcon,a=t.meta,l=t.children,g=c(t,["text","secondaryText","graphic","metaIcon","meta","children"]),y=e&&void 0!==n?o.createElement(d,null,e):e,b=void 0!==n?o.createElement(u,null,n):null;return o.createElement(p,r({},g),void 0!==i&&o.createElement(f,{icon:i}),null!==b?o.createElement(h,null,y,b):y,(!!a||!!s)&&o.createElement(m,{icon:s},a),l)});g.displayName="SimpleListItem"},367:function(t,e,n){"use strict";var o=n(39),i=n(10),s=n(29),a=Object(i.a)((function(t,e){var n={};return Object(o.a)(e.length,(function(){var o=t.apply(this,arguments);return Object(s.a)(o,n)||(n[o]=e.apply(this,arguments)),n[o]}))}));e.a=a}}]); //# sourceMappingURL=7.a486219e.chunk.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件