1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 23:17:46 +00:00
Files
matomo/plugins/Diagnostics/vue/dist/Diagnostics.umd.min.js
2025-07-28 10:43:28 +12:00

8 خطوط
5.9 KiB
JavaScript
Generated

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?define(["CoreHome"],t):"object"===typeof exports?exports["Diagnostics"]=t(require("CoreHome"),require("vue")):e["Diagnostics"]=t(e["CoreHome"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var l=t[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,n),l.l=!0,l.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)n.d(o,l,function(t){return e[t]}.bind(null,l));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/Diagnostics/vue/dist/",n(n.s="fae3")}({"19dc":function(t,n){t.exports=e},"8bbf":function(e,n){e.exports=t},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"ConfigFile",(function(){return k})),"undefined"!==typeof window){var o=window.document.currentScript,l=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(n.p=l[1])}var c=n("8bbf");const r=["innerHTML"],a=["innerHTML"],i=["href"],u=Object(c["createElementVNode"])("br",null,null,-1),s=Object(c["createElementVNode"])("p",null,null,-1),b={class:"diagnostics configfile"},d={colspan:"3"},f=["name"],j={class:"name"},p=["innerHTML"],O={class:"description"},m=["innerHTML"],g={key:0},h={key:0},y=["innerHTML"];function V(e,t,n,o,l,V){const v=Object(c["resolveComponent"])("Passthrough"),C=Object(c["resolveComponent"])("ContentBlock"),k=Object(c["resolveDirective"])("content-table");return Object(c["openBlock"])(),Object(c["createBlock"])(C,{"content-title":e.translate("Diagnostics_ConfigFileTitle"),feature:"true"},{default:Object(c["withCtx"])(()=>[Object(c["createElementVNode"])("p",null,[Object(c["createElementVNode"])("span",{innerHTML:e.$sanitize(e.configFileIntro),style:{"margin-right":"3.5px"}},null,8,r),Object(c["createElementVNode"])("span",{innerHTML:e.$sanitize(e.translate("Diagnostics_HideUnchanged","<a>","</a>")),onClick:t[0]||(t[0]=t=>e.onHideUnchanged(t))},null,8,a)]),Object(c["createElementVNode"])("h3",null,Object(c["toDisplayString"])(e.translate("Diagnostics_Sections")),1),(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(e.allConfigValues,(e,t)=>(Object(c["openBlock"])(),Object(c["createBlock"])(v,{key:t},{default:Object(c["withCtx"])(()=>[Object(c["createElementVNode"])("a",{href:"#"+t},Object(c["toDisplayString"])(t),9,i),u]),_:2},1024))),128)),s,Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("table",b,[Object(c["createElementVNode"])("tbody",null,[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(e.allConfigValues,(t,n)=>(Object(c["openBlock"])(),Object(c["createBlock"])(v,{key:n},{default:Object(c["withCtx"])(()=>[Object(c["createElementVNode"])("tr",null,[Object(c["createElementVNode"])("td",d,[Object(c["createElementVNode"])("a",{name:n},null,8,f),Object(c["createElementVNode"])("h3",null,Object(c["toDisplayString"])(n),1)])]),(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(t,(t,n)=>Object(c["withDirectives"])((Object(c["openBlock"])(),Object(c["createElementBlock"])("tr",{key:n,class:Object(c["normalizeClass"])({"custom-value":t.isCustomValue})},[Object(c["createElementVNode"])("td",j,Object(c["toDisplayString"])(`${n}${null!==t.value&&(t.value instanceof Array||"object"===typeof t.value)?"[]":""}`),1),Object(c["createElementVNode"])("td",{class:"value",innerHTML:e.$sanitize(e.humanReadableValue(t.value))},null,8,p),Object(c["createElementVNode"])("td",O,[Object(c["createElementVNode"])("span",{innerHTML:e.$sanitize(t.description)},null,8,m),!t.isCustomValue&&null!==t.value||null===t.defaultValue?Object(c["createCommentVNode"])("",!0):(Object(c["openBlock"])(),Object(c["createElementBlock"])("span",g,[t.description?(Object(c["openBlock"])(),Object(c["createElementBlock"])("br",h)):Object(c["createCommentVNode"])("",!0),Object(c["createTextVNode"])(" "+Object(c["toDisplayString"])(e.translate("General_Default"))+": ",1),Object(c["createElementVNode"])("span",{class:"defaultValue",innerHTML:e.$sanitize(e.humanReadableValue(t.defaultValue))},null,8,y)]))])],2)),[[c["vShow"],t.isCustomValue||!e.hideGlobalConfigValues]])),128))]),_:2},1024))),128))])])),[[k]])]),_:1},8,["content-title"])}var v=n("19dc"),C=Object(c["defineComponent"])({props:{allConfigValues:{type:Object,required:!0}},components:{ContentBlock:v["ContentBlock"],Passthrough:v["Passthrough"]},directives:{ContentTable:v["ContentTable"]},data(){return{hideGlobalConfigValues:!1}},methods:{humanReadableValue(e){return!1===e?"false":!0===e?"true":null===e?"":""===e?"''":"object"===typeof e&&0===Object.keys(e).length?"[]":"object"===typeof e&&Object.keys(e).length>0?`<div class="pre">${JSON.stringify(e,null,4)}</div>`:v["Matomo"].helper.htmlEntities(""+e)},onHideUnchanged(e){"A"===e.target.tagName&&(this.hideGlobalConfigValues=!this.hideGlobalConfigValues)}},computed:{configFileIntro(){return Object(v["translate"])("Diagnostics_ConfigFileIntroduction",'<code>"config/config.ini.php"</code>')}}});C.render=V;var k=C;
/*!
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/}})}));
//# sourceMappingURL=Diagnostics.umd.min.js.map