Main/resources/[standalone]/lg_documents/html/js/app.1c2c57b9.js

2 lines
34 KiB
JavaScript
Raw Permalink Normal View History

2025-06-07 08:51:21 +02:00
(function(){"use strict";var e={4920:function(e,t,n){var a=n(9242),s=n(3396);function i(e,t,n,a,i,l){const o=(0,s.up)("router-view");return i.openned?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0)}var l=n(6265),o=n.n(l),r={data(){return{openned:!1}},methods:{SendToClient:function(e,t){o().post(`https://${this.$store.state.name_resource}/${e}`,t).catch((t=>console.log(`An error has occurred (Main): ${e} : ${t}`)))},ReceiveLua:function(e){if(!e||!e.data)return;const t=e.data;t.config?(this.$store.state.translate=t.translate,this.$store.state.name_resource=t.name_resource,this.$store.state.server_banner=t.server_banner,this.SendToClient("ConfirmConfig",{})):t.open?this.openned=!0:t.see_document&&(this.$store.commit("SetDocuments",[t.document]),this.$router.push({name:"editor",params:{id:t.document.id,type:"document",action:"edit"}}))},Close:function(){this.SendToClient("Close",{}),this.openned=!1},KeyPress:function(e){const t=e.key;"Escape"==t&&this.Close()}},created:function(){window.addEventListener("message",this.ReceiveLua),window.addEventListener("keydown",this.KeyPress)},unmounted:function(){window.removeEventListener("message",this.ReceiveLua),window.removeEventListener("keydown",this.KeyPress)}},d=n(89);const c=(0,d.Z)(r,[["render",i]]);var _=c,u=n(678),m=n(7139);const T={class:"Dashboard"},p={class:"box"},g={class:"welcome"},h={class:"banner"},E=["src"];function f(e,t,n,a,i,l){const o=(0,s.up)("router-view");return(0,s.wg)(),(0,s.iD)("div",T,[(0,s._)("div",p,[(0,s._)("header",null,[(0,s._)("p",null,(0,m.zw)(i.translate.TR_DOCUMENT_SYSTEM),1)]),(0,s._)("main",null,[(0,s._)("section",g,[(0,s._)("div",h,[(0,s._)("img",{src:i.server_banner,alt:""},null,8,E)]),(0,s._)("h2",null,(0,m.zw)(i.translate.TR_WELCOME),1),(0,s._)("p",null,(0,m.zw)(i.translate.TR_WELCOME_TEXT),1)]),(0,s.Wm)(o)])])])}var v={data(){return{server_banner:"img/banner.png",translate:{}}},created:function(){this.server_banner=this.$store.state.server_banner,this.translate=this.$store.state.translate}};const w=(0,d.Z)(v,[["render",f],["__scopeId","data-v-e9b76c46"]]);var R=w;const D={class:"Document"},S={class:"mmodal"},C={class:"mbanner"},y=["src"],b={class:"mlink"},L=["placeholder"],k={class:"mlist"},I=["src","onClick"],A={key:0,class:"mmodal"},z={class:"mbanner"},O=["src"],M={class:"msave"},N=["placeholder"],x={key:1,class:"mmodal"},$={key:1},P=(0,s._)("p",{class:"errorX"},"X",-1),U={class:"errorText"},B={class:"msave"},H={class:"control"},V={key:0},G={key:1},W={key:0},Y=(0,s._)("i",{class:"fas fa-angle-right"},null,-1),F={key:1},X=(0,s._)("i",{class:"fas fa-angle-right"},null,-1),j=(0,s._)("i",{class:"fas fa-angle-right"},null,-1),q=(0,s._)("i",{class:"fas fa-angle-right"},null,-1),K=(0,s._)("i",{class:"fas fa-angle-right"},null,-1),Z=(0,s._)("i",{class:"fas fa-angle-right"},null,-1),J={class:"pages"},Q={class:"page"},ee=(0,s._)("img",{class:"triangulo",src:"img/canto.png",alt:""},null,-1),te={class:"banner"},ne=["src"],ae=["readonly"],se=["readonly"],ie={class:"text"},le=["readonly"],oe=["placeholder","readonly"],re=(0,s._)("img",{src:"img/rodape.png",alt:"",class:"rodape"},null,-1),de={class:"createInfo"},ce={key:0},_e={key:1},ue={key:2},me={key:0,class:"page"},Te=(0,s._)("img",{class:"triangulo",src:"img/canto.png",alt:""},null,-1),pe={class:"text"},ge={key:0,class:"delete"},he=["onClick"],Ee=["src"],fe={key:0},ve=(0,s._)("i",{class:"far fa-image"},null,-1),we={key:1,class:"new-image"},Re=["placeholder"],De=(0,s._)("img",{src:"img/rodape.png",alt:"",class:"rodape"},null,-1),Se={class:"createInfo"},Ce={key:0},ye={key:1},be={key:2},Le={class:"page"},ke=(0,s._)("img",{class:"triangulo",src:"img/canto.png",alt:""},null,-1),Ie={class:"text"},Ae=["placeholder","onUpdate:modelValue","readonly"],ze=["placeholder","onUpdate:modelValue","readonly"],Oe=(0,s._)("img",{src:"img/rodape.png",alt:"",class:"rodape"},null,-1),Me={class:"createInfo"},Ne={key:0},xe={key:1},$e={key:2};function Pe(e,t,n,i,l,o){const r=(0,s.up)("Modal"),d=(0,s.up)("Loading");return(0,s.wg)(),(0,s.iD)("div",D,[l.modal_banner?((0,s.wg)(),(0,s.j4)(r,{key:0,title:l.translate.TR_CHOOSE_PH
//# sourceMappingURL=app.1c2c57b9.js.map