Files
DirectAdmin-1.62.4/directadmin-1.62.4/data/skins/evolution/assets/pages/83.js
tuend-work 0b28a76e20 ud
2025-11-12 23:24:15 +07:00

1 line
9.6 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{1283:function(t,e,n){"use strict";n.r(e);var f=n(2979),o=n(1605);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n(2462);var r=n(0),i=n(2464),p=n.n(i),u=Object(r.a)(o.default,f.a,f.b,!1,null,"4c09b7f4",null);"function"==typeof p.a&&p()(u),e.default=u.exports},1464:function(t,e,n){"use strict";var f=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.getDiff=e.savePhpFpmTokens=e.getPhpFpmTokens=e.getPhpFpmConfiguration=e.saveDomainCustomization=e.getDomainCustomization=e.getDomainConfig=e.rewriteConfs=e.getDomains=void 0;var o=f(n(2)),a=f(n(17)),r=f(n(30)),i=n(14);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);e&&(f=f.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,f)}return n}var u=i.fp.flow(i.fp.convert.toAppString,i.fp.convert.toLines),s=i.fp.flow((function(t){return t||""}),i.fp.convert.toAppString,i.fp.convert.toAppText),l="/CMD_CUSTOM_HTTPD",d=r.default.get({id:"CUSTOM_HTTPD_DOMAINS",url:l,pagination:!0,after:function(){return i.fp.flow(i.fp.mapProp("domains",i.fp.toTable()),i.fp.mapProp("file",i.fp.feedWith(1,(function(t){return["nginx","nginx_proxy","openlitespeed","httpd"].find((function(e){return"1"===t["have_".concat(e)]}))||"httpd"}))))}});e.getDomains=d;var c=r.default.post({url:l,params:{action:"all",rewrite_confs:!0}});e.rewriteConfs=c;var m=r.default.get({url:l,id:"CH_DOMAIN_CONFIG",schema:{domain:r.default.REQUIRED_STRING,proxy:r.default.OPTIONAL_BOOL},after:function(){return i.fp.flow((function(t){return{tokens:t.AVAILABLE_TOKENS,error:t.CONFIG_ERROR,test:t.CONFIG_TEST,data:t.HTTPD,templates:t}}),i.fp.mapProps({error:i.fp.isEqual("1"),nginx:i.fp.isEqual("1"),data:u,test:s,templates:i.fp.flow(i.fp.filter((function(t,e){return e.includes("VH")})),i.fp.filter(i.fp.getProp("data")),i.fp.toArray,i.fp.mapArrayProps({data:u,custom:i.fp.isEqual("1")})),tokens:i.fp.flow(i.fp.mapValues((function(t,e){return{token:e,value:t}})),i.fp.toArray)}))}});e.getDomainConfig=m;var A=r.default.get({url:l,id:"CH_DOMAIN_CUSTOMIZATION_VALUES",schema:{domain:r.default.REQUIRED_STRING,proxy:r.default.OPTIONAL_BOOL},after:function(){return i.fp.flow(i.fp.project({config:"CONFIG",custom1:"CUSTOM1",custom2:"CUSTOM2",custom3:"CUSTOM3",custom4:"CUSTOM4",custom5:"CUSTOM5",custom6:"CUSTOM6",custom7:"CUSTOM7",tokens:"AVAILABLE_TOKENS",appendix:"VH1.custom_global_pre_post",tokensCount:"NUM_CUSTOM_TOKENS"}),i.fp.mapProps({config:s,custom1:s,custom2:s,custom3:s,custom4:s,custom5:s,custom6:s,custom7:s,nginx:i.fp.convert.toAppBoolean,tokensCount:i.fp.convert.toAppNumber,tokens:i.fp.flow(i.fp.mapValues((function(t,e){return{token:e,value:t}})),i.fp.toArray),appendix:i.fp.flow(i.fp.setDefault({}),i.fp.filter((function(t,e){return e.includes("CUSTOM")})),i.fp.mapValues(s),i.fp.transformObject((function(t,e){var n=e.match(/^.*(CUSTOM.*)$/),f=(0,a.default)(n,2)[1];return(0,o.default)({},f,{data:t,name:e})})))}))}});e.getDomainCustomization=A;var O=r.default.post({url:l,schema:{proxy:r.default.OPTIONAL_STRING,domain:r.default.REQUIRED_STRING,config:r.default.OPTIONAL_STRING,custom1:r.default.OPTIONAL_STRING,custom2:r.default.OPTIONAL_STRING,custom3:r.default.OPTIONAL_STRING,custom4:r.default.OPTIONAL_STRING,custom5:r.default.OPTIONAL_STRING,custom6:r.default.OPTIONAL_STRING,custom7:r.default.OPTIONAL_STRING}});e.saveDomainCustomization=O;var _=r.default.get({url:l,id:"CH_PHP_FPM_CONFIGURATION",schema:{user:r.default.REQUIRED_STRING,"php-fpm":r.default.REQUIRED_STRING},after:function(){return i.fp.flow(i.fp.project({error:"CONFIG_ERROR",test:"CONFIG_TEST",custom1:"CUSTOM1",custom2:"CUSTOM2",global_custom1:"GLOBAL_CUSTOM1",global_custom2:"GLOBAL_CUSTOM2","config.data":"FPM_CONFIG","config.file":"FPM_CONFIG_FILE","config.version":"FPM_VER","template.custom":"PHP_FPM_IS_CUSTOM_TEMPLATE","template.data":"PHP_FPM_TEMPLATE","template.name":"PHP_FPM_TEMPLATE_NAME","template.short":"PHP_FPM_TEMPLATE_NAME_SHORT"}),i.fp.mapProps({error:i.fp.isEqual("1"),test:s,custom1:s,custom2:s,config:i.fp.mapProp("data",u),template:i.fp.mapProps({custom:i.fp.isEqual("1"),data:u})}))}});e.getPhpFpmConfiguration=_;var g=r.default.get({id:"CH_PHP_FPM_TOKENS",url:l,schema:{user:r.default.REQUIRED_STRING,"php-fpm":r.default.REQUIRED_STRING},after:function(){return i.fp.flow(i.fp.getProp("AVAILABLE_TOKENS"),i.fp.mapValues((function(t,e){return{token:e,value:t}})),i.fp.toArray)}});e.getPhpFpmTokens=g;var T=r.default.post({url:l,schema:{user:r.default.REQUIRED_STRING,"php-fpm":r.default.REQUIRED_STRING,custom1:r.default.OPTIONAL_STRING,custom2:r.default.OPTIONAL_STRING,all_php_versions:r.default.OPTIONAL_BOOL}});e.savePhpFpmTokens=T;var C=r.default.get({id:"CH_DIFF",url:"/CMD_TEMPLATE_DIFF",schema:{name:r.default.REQUIRED_STRING},after:function(){return i.fp.flow(i.fp.deleteProp("lines"),i.fp.mapValues((function(t,e){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{number:e})})),i.fp.toArray,i.fp.mapArray(i.fp.moveProp("line","content")),i.fp.mapArrayProps({number:i.fp.convert.toAppNumber,content:function(t){return t?t.replace(/\t/g," "):""}}),i.fp.sortBy("number"))}});e.getDiff=C},1605:function(t,e,n){"use strict";n.r(e);var f=n(1606),o=n.n(f);for(var a in f)"default"!==a&&function(t){n.d(e,t,(function(){return f[t]}))}(a);e.default=o.a},1606:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=n(1464),o={preload:f.getDiff,api:[{command:f.getDiff,bind:"diff"}],props:{name:{type:String,required:!0}}};e.default=o},1607:function(t,e,n){var f=n(2463);"string"==typeof f&&(f=[[t.i,f,""]]),f.locals&&(t.exports=f.locals);(0,n(5).default)("cc62ba1c",f,!0,{})},2462:function(t,e,n){"use strict";var f=n(1607);n.n(f).a},2463:function(t,e,n){(t.exports=n(4)(!0)).push([t.i,"#template-diff .diff-wrapper[data-v-4c09b7f4]{overflow-x:auto;border:1px solid #ddd;padding-bottom:0!important}#template-diff .diff-wrapper .diff-table .diff-line>td[data-v-4c09b7f4]{padding:0;height:unset;border-width:0;border-bottom:1px solid #fff}#template-diff .diff-wrapper .diff-table .diff-line .sign[data-v-4c09b7f4]{padding:0 1rem;text-align:center;border-right:1px solid #fff;font-weight:600;color:#000}#template-diff .diff-wrapper .diff-table .diff-line-content[data-v-4c09b7f4]{color:#333;vertical-align:top;padding:0 1rem;position:relative;height:100%}#template-diff .diff-wrapper .diff-table .diff-line.header[data-v-4c09b7f4]{font-weight:600}#template-diff .diff-wrapper .diff-table .diff-line[data-v-4c09b7f4]:nth-child(2n){background:#f1f0f0}#template-diff .diff-wrapper .diff-table .diff-line.minus[data-v-4c09b7f4]{background:#ffcdcd}#template-diff .diff-wrapper .diff-table .diff-line.plus[data-v-4c09b7f4]{background:#c1ffc1}","",{version:3,sources:["/home/evo/evolution/src/js/pages/admin/custom-httpd/diff.vue"],names:[],mappings:"AAsEA,8CAEQ,gBACA,sBACA,0BAA8B,CAJtC,wEAQoB,UACA,aACA,eACA,4BAA8B,CAXlD,2EAcoB,eACA,kBACA,4BACA,gBACA,UAAW,CAlB/B,6EAqBoB,WACA,mBACA,eACA,kBACA,WAAY,CAzBhC,4EA2B2B,eAAgB,CA3B3C,mFA4BoC,kBAAmB,CA5BvD,2EA6B0B,kBAAmB,CA7B7C,0EA8ByB,kBAAmB,CAAA",file:"diff.vue?vue&type=style&index=0&id=4c09b7f4&lang=scss&scoped=true&",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#template-diff {\n .diff-wrapper {\n overflow-x: auto;\n border: 1px solid #ddd;\n padding-bottom: 0px !important;\n .diff-table {\n .diff-line {\n & > td {\n padding: 0;\n height: unset;\n border-width: 0;\n border-bottom: 1px solid white;\n }\n .sign {\n padding: 0 1rem;\n text-align: center;\n border-right: 1px solid white;\n font-weight: 600;\n color: #000;\n }\n &-content {\n color: #333;\n vertical-align: top;\n padding: 0 1rem;\n position: relative;\n height: 100%;\n }\n &.header { font-weight: 600; }\n &:nth-child(even) { background: #f1f0f0;}\n &.minus { background: #FFCDCD;}\n &.plus { background: #C1FFC1;}\n }\n }\n }\n}\n"],sourceRoot:""}])},2464:function(t,e){},2979:function(t,e,n){"use strict";var f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("app-page",{attrs:{id:"template-diff"}},[n("translate",{attrs:{slot:"page:title","translate-params":{name:t.name}},slot:"page:title"},[t._v("\n Template Diff: %{ name }\n ")]),t._v(" "),n("app-page-section",{staticClass:"diff-wrapper"},[n("table",{staticClass:"diff-table"},t._l(t.$api.diff,(function(e){return n("tr",{class:["diff-line",e.type]},["header"===e.type?[n("td",{attrs:{colspan:"2"}},[n("pre",{staticClass:"diff-line-content",domProps:{textContent:t._s(e.content)}})])]:[n("td",{staticClass:"sign"},["minus"===e.type?[t._v("\n -\n ")]:"plus"===e.type?[t._v("\n +\n ")]:t._e()],2),t._v(" "),n("td",[n("pre",{staticClass:"diff-line-content",domProps:{textContent:t._s(e.content)}})])]],2)})),0)])],1)},o=[];n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return o}))}}]);