HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/media/com_acym/js/vue/custom_view.min.js
jQuery(document).on("acym_plugins_installed_loaded",function(){let e=[];jQuery("[acym-data-plugins-id]").on("open.zf.reveal",function(){let t=jQuery(this);if(void 0!==e[t.attr("acym-data-plugins-id")])return;let i=t.attr("acym-data-plugin-folder"),n=t.attr("acym-data-plugin-class");e[t.attr("acym-data-plugins-id")]=new Vue({el:"#"+t.attr("acym-data-plugins-id"),components:{"vue-prism-editor":VuePrismEditor},data:()=>({language:"html",code:"",saving:!1,saved:!1,messageSaved:"",deleting:!1,deleted:!1,messageDeleted:"",tags:[],optionIndent:{indent_size:2,wrap_line_length:"120"},loading:!0}),mounted(){let e=ACYM_AJAX_URL+"&ctrl=plugins&task=getCustomViewPlugin&plugin="+i+"&plugin_class="+n;this.setTags(),jQuery.get(e,e=>{if(void 0!==(e=acym_helper.parseJson(e)).error)return acym_helperNotification.addNotification(e.error,"error"),t.foundation("close"),!1;e.content=void 0===html_beautify?e.content:html_beautify(e.content,this.optionIndent),this.code=e.content,this.loading=!1})},methods:{save(){this.saving=!0;let e=ACYM_AJAX_URL+"&ctrl=plugins&task=saveCustomViewPlugin&plugin="+i;jQuery.post(e,{custom_view:encodeURIComponent(this.code)},e=>{if(void 0!==(e=acym_helper.parseJson(e)).error)return acym_helperNotification.addNotification(e.error,"error"),t.foundation("close"),!1;this.saving=!1,this.messageSaved=e.message,this.saved=!0,setTimeout(()=>{this.saved=!1},2e3)})},resetView(){if(!confirm(ACYM_JS_TXT.ACYM_RESET_VIEW_CONFIRM))return;this.deleting=!0;let e=ACYM_AJAX_URL+"&ctrl=plugins&task=deleteCustomViewPlugin&plugin="+i+"&plugin_class="+n;jQuery.get(e,e=>{if(void 0!==(e=acym_helper.parseJson(e)).error)return acym_helperNotification.addNotification(e.error,"error"),t.foundation("close"),!1;e.content=void 0===html_beautify?e.content:html_beautify(e.content,this.optionIndent),this.code=e.content,this.deleting=!1,this.messageDeleted=e.message,this.deleted=!0,setTimeout(()=>{this.deleted=!1},2e3)})},insertTag(e){e=`{${e}}`;let t=this.$children[0];if(void 0===t.selection||void 0===t.selection.start)return!1;this.code=`${this.code.slice(0,t.selection.start)}${e}${this.code.slice(t.selection.end)}`,t.selection.end!==t.selection.start&&(t.selection.end=t.selection.start+e.length),t.selection.end===t.selection.start&&(t.selection.start+=e.length,t.selection.end+=e.length)},setTags(){this.tags=acym_helper.parseJson(t.find("[acym-data-tags]").attr("acym-data-tags"));for(let[e,t]of Object.entries(this.tags))this.tags[e]=void 0===ACYM_JS_TXT[t[0]]?t[0]:ACYM_JS_TXT[t[0]]}}})})});