[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 2933.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2933],{2933:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ne});var l=o(9726);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var a={class:"db-card"},r={class:"db-card-header"},s={class:"db-card-title"},i={class:"db-card-body"},c={class:"row"},m={class:"col-12 sm:col-5"},d=["src"],u={class:"col-12 sm:col-7 md:pl-8"},p={class:"text-lg font-medium capitalize mb-2 text-paragraph"},f={class:"db-light-text mb-3"},g={class:"db-light-text mb-3"},b={class:"db-card"},y={class:"db-card-header"},h={class:"db-card-title"},v={class:"db-card-body"},E={class:"row"},V={class:"col-12 sm:col-12"},N={class:"form-row"},x={class:"form-col-12"},k={for:"name",class:"db-field-title required"},S={key:0,class:"db-field-alert"},A={class:"form-col-12"},T={type:"submit",class:"db-btn py-2 text-white bg-primary"},B={key:0,class:"db-card"},w={class:"db-card-header"},C={class:"db-card-title"},P={class:"db-card-body"},D={class:"row"},$={class:"col-12 sm:col-12"},L={class:"form-row"},_={key:0,class:"form-row"},F={key:1,class:"form-col-12 md:form-col-12"},I={for:"name",class:"db-field-title required"},M=["onUpdate:modelValue"],j={class:"form-col-12"},U={class:"flex flex-wrap gap-3 mt-4"},q={type:"submit",class:"db-btn py-2 text-white bg-primary"};var z=o(5475),O=o(6884),R=o(2219),W=o(9856),Y=o(8655),G=o(2543),H=o.n(G);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}var K={class:"form-col-12 md:form-col-12"},Q={key:1,class:"form-col-12 md:form-col-12"},X={for:"name",class:"db-field-title required"};const Z={name:"MultiInputLanguageComponent",props:["props"]};var ee=o(6262);function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function oe(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var l=o.call(e,t||"default");if("object"!=te(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==te(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const le={name:"LanguageShowComponent",components:{MultiInputLanguageComponent:(0,ee.A)(Z,[["render",function(e,t,o,n,a,r){var s=(0,l.resolveComponent)("MultiInputLanguageComponent",!0);return"object"===J(o.props.text)?((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,{key:0},(0,l.renderList)(o.props.text,function(e){return(0,l.openBlock)(),(0,l.createElementBlock)("div",K,[(0,l.createVNode)(s,{props:{text:e,formPost:o.props.formPost}},null,8,["props"])])}),256)):((0,l.openBlock)(),(0,l.createElementBlock)("div",Q,[(0,l.createElementVNode)("label",X,(0,l.toDisplayString)(o.props.text),1),(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"text",class:"db-field-control","onUpdate:modelValue":t[0]||(t[0]=function(e){return o.props.formPost[o.props.text.replaceAll(" ","_")]=e})},null,512),[[l.vModelText,o.props.formPost[o.props.text.replaceAll(" ","_")]]])]))}]]),LoadingComponent:z.A},data:function(){return{loading:{isActive:!1},enums:{statusEnum:O.A,displayModeEnum:R.A,statusEnumArray:oe(oe({},O.A.ACTIVE,this.$t("label.active")),O.A.INACTIVE,this.$t("label.inactive")),displayModeEnumArray:oe(oe({},R.A.LTR,this.$t("label.ltr")),R.A.RTL,this.$t("label.rtl"))},form:{name:"",path:""},editFileInfo:{},formPost:{},errors:{}}},computed:{language:function(){return this.$store.getters["language/show"]},fileList:function(){return this.$store.getters["language/fileList"]},fileText:function(){return this.$store.getters["language/fileText"]}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("language/show",this.$route.params.id).then(function(t){e.$store.dispatch("language/fileList",t.data.data.code).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}).catch(function(t){e.loading.isActive=!1})},methods:{statusClass:function(e){return Y.A.statusClass(e)},getFileText:function(){var e=this;H().forEach(this.fileList,function(t){t.name===e.form.name&&(e.form.path=t.path)}),this.editFileInfo={name:this.form.name,path:this.form.path},this.$store.dispatch("language/fileText",this.form).then(function(t){t.data&&(e.formPost={},H().forEach(t.data,function(t){if("object"===te(t))e.fileTextToPostDataCreate(t);else{var o=t,l=t.replaceAll(" ","_");e.formPost[l]=o}})),e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},fileTextToPostDataCreate:function(e){var t=this;H().forEach(e,function(e){if("object"===te(e))t.fileTextToPostDataCreate(e);else{var o=e,l=e.replaceAll(" ","_");t.formPost[l]=o}})},saveFileText:function(){var e=this;this.formPost.x_language_file_name=this.editFileInfo.name,this.formPost.x_language_file_path=this.editFileInfo.path,this.$store.dispatch("language/fileStore",this.formPost).then(function(t){W.A.success(e.$t("message.file_update_success")),e.loading.isActive=!1}).catch(function(t){W.A.error(t.response.data.errors),e.loading.isActive=!1})}}},ne=(0,ee.A)(le,[["render",function(e,t,o,z,O,R){var W=(0,l.resolveComponent)("LoadingComponent"),Y=(0,l.resolveComponent)("MultiInputLanguageComponent");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(W,{props:O.loading},null,8,["props"]),(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("div",r,[(0,l.createElementVNode)("h3",s,(0,l.toDisplayString)(e.$t("label.language")),1)]),(0,l.createElementVNode)("div",i,[(0,l.createElementVNode)("div",c,[(0,l.createElementVNode)("div",m,[(0,l.createElementVNode)("img",{class:"db-image",alt:"language",src:R.language.image},null,8,d)]),(0,l.createElementVNode)("div",u,[(0,l.createElementVNode)("h3",p,(0,l.toDisplayString)(R.language.name),1),(0,l.createElementVNode)("p",f,(0,l.toDisplayString)(R.language.code),1),(0,l.createElementVNode)("p",g,(0,l.toDisplayString)(O.enums.displayModeEnumArray[R.language.display_mode]),1),(0,l.createElementVNode)("label",{class:(0,l.normalizeClass)(["db-badge",R.statusClass(R.language.status)])},(0,l.toDisplayString)(O.enums.statusEnumArray[R.language.status]),3)])])])]),t[6]||(t[6]=(0,l.createElementVNode)("br",null,null,-1)),(0,l.createElementVNode)("div",b,[(0,l.createElementVNode)("div",y,[(0,l.createElementVNode)("h3",h,(0,l.toDisplayString)(e.$t("label.files")),1)]),(0,l.createElementVNode)("div",v,[(0,l.createElementVNode)("div",E,[(0,l.createElementVNode)("div",V,[(0,l.createElementVNode)("form",{onSubmit:t[1]||(t[1]=(0,l.withModifiers)(function(){return R.getFileText&&R.getFileText.apply(R,arguments)},["prevent"]))},[(0,l.createElementVNode)("div",N,[(0,l.createElementVNode)("div",x,[(0,l.createElementVNode)("label",k,(0,l.toDisplayString)(e.$t("label.name")),1),(0,l.withDirectives)((0,l.createElementVNode)("select",{class:"db-field-control","onUpdate:modelValue":t[0]||(t[0]=function(e){return O.form.name=e})},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(R.fileList,function(e){return(0,l.openBlock)(),(0,l.createElementBlock)("option",null,(0,l.toDisplayString)(e.name),1)}),256))],512),[[l.vModelSelect,O.form.name]]),O.errors.name?((0,l.openBlock)(),(0,l.createElementBlock)("small",S,(0,l.toDisplayString)(O.errors.name[0]),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",A,[(0,l.createElementVNode)("button",T,[t[3]||(t[3]=(0,l.createElementVNode)("i",{class:"lab lab-line-language"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("button.get_file_content")),1)])])])],32)])])])]),t[7]||(t[7]=(0,l.createElementVNode)("br",null,null,-1)),Object.keys(R.fileText).length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",B,[(0,l.createElementVNode)("div",w,[(0,l.createElementVNode)("h3",C,(0,l.toDisplayString)(O.editFileInfo.name),1)]),(0,l.createElementVNode)("div",P,[(0,l.createElementVNode)("div",D,[t[5]||(t[5]=(0,l.createElementVNode)("div",{class:"col-12 sm:col-12"},[(0,l.createElementVNode)("code",{class:"font-color-danger language-note-font-size mb-3"},[(0,l.createTextVNode)(" * You do not change any word under the curly bracket text {}. example {name}. "),(0,l.createElementVNode)("br"),(0,l.createTextVNode)(" * When all language is changed then run some command in your terminal or ssh panel. "),(0,l.createElementVNode)("br"),(0,l.createElementVNode)("strong",{class:"strong-left-tab"},[(0,l.createTextVNode)(" * npm install (run just one time) "),(0,l.createElementVNode)("br")]),(0,l.createElementVNode)("strong",{class:"strong-left-tab"}," * npm run prod ")])],-1)),(0,l.createElementVNode)("div",$,[(0,l.createElementVNode)("form",{onSubmit:t[2]||(t[2]=(0,l.withModifiers)(function(){return R.saveFileText&&R.saveFileText.apply(R,arguments)},["prevent"]))},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(R.fileText,function(e){return(0,l.openBlock)(),(0,l.createElementBlock)("div",L,["object"===n(e)?((0,l.openBlock)(),(0,l.createElementBlock)("div",_,[(0,l.createVNode)(Y,{props:{text:e,formPost:O.formPost}},null,8,["props"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",F,[(0,l.createElementVNode)("label",I,(0,l.toDisplayString)(e),1),(0,l.withDirectives)((0,l.createElementVNode)("input",{"onUpdate:modelValue":function(t){return O.formPost[e.replaceAll(" ","_")]=t},type:"text",class:"db-field-control"},null,8,M),[[l.vModelText,O.formPost[e.replaceAll(" ","_")]]])]))])}),256)),(0,l.createElementVNode)("div",j,[(0,l.createElementVNode)("div",U,[(0,l.createElementVNode)("button",q,[t[4]||(t[4]=(0,l.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("label.save")),1)])])])],32)])])])])):(0,l.createCommentVNode)("",!0)],64)}]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285