Files
librenms-librenms/html/js/app.js

1 line
43 KiB
JavaScript
Raw Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+EXy":function(t,e,n){var a=n("EKCJ");"string"==typeof a&&(a=[[t.i,a,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(a,i);a.locals&&(t.exports=a.locals)},"+fAT":function(t,e,n){var a={"./components/Accordion.vue":"07Va","./components/AccordionItem.vue":"qodb","./components/BaseSetting.vue":"nsVt","./components/ExampleComponent.vue":"AEaB","./components/LibrenmsSetting.vue":"9n66","./components/LibrenmsSettings.vue":"OB2S","./components/PollerSettings.vue":"h5Vs","./components/SettingArray.vue":"ul9H","./components/SettingBoolean.vue":"ld4D","./components/SettingDashboardSelect.vue":"ehi2","./components/SettingDirectory.vue":"Kkoz","./components/SettingEmail.vue":"YujN","./components/SettingExecutable.vue":"aNf0","./components/SettingInteger.vue":"tCMV","./components/SettingLdapGroups.vue":"Zrdh","./components/SettingMultiple.vue":"ir5f","./components/SettingNull.vue":"NgQ3","./components/SettingPassword.vue":"ShZc","./components/SettingSelect.vue":"M77q","./components/SettingSnmp3auth.vue":"/MA7","./components/SettingText.vue":"q8tH","./components/Tab.vue":"cQaf","./components/Tabs.vue":"Pm5W","./components/TransitionCollapseHeight.vue":"ITC5"};function i(t){var e=s(t);return n(e)}function s(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=s,t.exports=i,i.id="+fAT"},"+nvb":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".input-group[data-v-6182757a]{margin-bottom:3px}.input-group-addon[data-v-6182757a]:not(.disabled){cursor:move}",""])},"/MA7":function(t,e,n){"use strict";n.r(e);var a={name:"SettingSnmp3auth",mixins:[n("nsVt").default],data:function(){return{localList:this.value}},methods:{addItem:function(){this.localList.push({authlevel:"noAuthNoPriv",authalgo:"MD5",authname:"",authpass:"",cryptoalgo:"AES",cryptopass:""}),this.$emit("input",this.localList)},removeItem:function(t){this.localList.splice(t,1),this.$emit("input",this.localList)},updateItem:function(t,e,n){this.localList[t][e]=n,this.$emit("input",this.localList)},dragged:function(){this.$emit("input",this.localList)}},watch:{value:function(t){this.localList=t}}},i=(n("fJHU"),n("KHd+")),s=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("draggable",{attrs:{disabled:t.disabled},on:{end:function(e){return t.dragged()}},model:{value:t.localList,callback:function(e){t.localList=e},expression:"localList"}},t._l(t.localList,(function(e,a){return n("div",[n("div",{staticClass:"panel panel-default"},[n("div",{staticClass:"panel-heading"},[n("h3",{staticClass:"panel-title"},[t._v(t._s(a+1)+". "),t.disabled?t._e():n("span",{staticClass:"pull-right text-danger",on:{click:function(e){return t.removeItem(a)}}},[n("i",{staticClass:"fa fa-minus-circle"})])])]),t._v(" "),n("div",{staticClass:"panel-body"},[n("form",{on:{onsubmit:function(t){t.preventDefault()}}},[n("div",{staticClass:"form-group"},[n("div",{staticClass:"col-sm-12"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.authlevel,expression:"item.authlevel"}],staticClass:"form-control",attrs:{id:"authlevel",disabled:t.disabled},on:{change:[function(n){var a=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(e,"authlevel",n.target.multiple?a:a[0])},function(e){return t.updateItem(a,e.target.id,e.target.value)}]}},[n("option",{attrs:{value:"noAuthNoPriv"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.level.noAuthNoPriv"))}}),t._v(" "),n("option",{attrs:{value:"authNoPriv"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.level.authNoPriv"))}}),t._v(" "),n("option",{attrs:{value:"authPriv"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.level.authPriv"))}})])])]),t._v(" "),n("fieldset",{directives:[{name:"show",rawName:"v-show",value:"auth"===e.authlevel.toString().substring(0,4),expression:"item.authlevel.toString().substring(0, 4) === 'auth'"}],