@johnnycubides/catalejo-vue3-desktop-v2 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
.main_div{display:flex;padding:0;margin:0;height:100%}.menu_collapse{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands{width:100%;margin:0;padding:0}.editor{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar{height:55px}.blocklyeditorclass{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div{font-size:10px}}[data-v-7d510def] .p-tree{padding:0}.card[data-v-8ef45e55]{background:var(--surface-card);padding:0;border-radius:10px;margin-bottom:0}[data-v-8ef45e55] .p-tabview .p-tabview-panels{padding:0;background:gray}[data-v-8ef45e55] .p-tabview .p-tabview-nav{padding:3px}.card[data-v-dad5592a]{background:var(--surface-card);padding:0rem;border-radius:10px;margin-bottom:0rem}.blocklyWorkspace:hover .blocklyTreeLabel{display:none}.blocklyToolboxContents{flex-wrap:nowrap}.blocklyToolboxDiv{background-color:#63a1d2}.blocklyToolboxDiv:hover{width:auto}.div_blockly{width:100%;height:100%}.blocklyDivClass{height:100%;width:100%;text-align:left;position:relative}.blocklyTreeLabel{display:block-inline;color:#fff}.blocklySvg{width:100%;height:100%}.blocklyAreaClass{height:100%}.container[data-v-e2622354],.container textarea[data-v-e2622354]{width:100%}.main_div[data-v-
|
|
1
|
+
.main_div{display:flex;padding:0;margin:0;height:100%}.menu_collapse{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands{width:100%;margin:0;padding:0}.editor{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar{height:55px}.blocklyeditorclass{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div{font-size:10px}}[data-v-7d510def] .p-tree{padding:0}.card[data-v-8ef45e55]{background:var(--surface-card);padding:0;border-radius:10px;margin-bottom:0}[data-v-8ef45e55] .p-tabview .p-tabview-panels{padding:0;background:gray}[data-v-8ef45e55] .p-tabview .p-tabview-nav{padding:3px}.card[data-v-dad5592a]{background:var(--surface-card);padding:0rem;border-radius:10px;margin-bottom:0rem}.blocklyWorkspace:hover .blocklyTreeLabel{display:none}.blocklyToolboxContents{flex-wrap:nowrap}.blocklyToolboxDiv{background-color:#63a1d2}.blocklyToolboxDiv:hover{width:auto}.div_blockly{width:100%;height:100%}.blocklyDivClass{height:100%;width:100%;text-align:left;position:relative}.blocklyTreeLabel{display:block-inline;color:#fff}.blocklySvg{width:100%;height:100%}.blocklyAreaClass{height:100%}.container[data-v-e2622354],.container textarea[data-v-e2622354]{width:100%}.main_div[data-v-bf7ed7fe]{display:flex;padding:0;margin:0;height:100%}.menu_collapse[data-v-bf7ed7fe]{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands[data-v-bf7ed7fe]{width:100%;margin:0;padding:0}.editor[data-v-bf7ed7fe]{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview[data-v-bf7ed7fe]{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar[data-v-bf7ed7fe]{height:55px}.blocklyeditorclass[data-v-bf7ed7fe]{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass[data-v-bf7ed7fe]{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div[data-v-bf7ed7fe]{font-size:10px}}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* empty css */import{s as xe,a as Ae,b as Xe,u as we,c as ke,d as ve,e as oe,f as M,g as pe,h as De,i as Me,j as Ke,k as He,P as qe,T as ze,D as Qe}from"./primevue-CEz28wR_.js";import{d as R,r as s,w as N,g as je,P as g,f as x,o as $,q as O,t as v,x as T,C as f,B as ne,F as le,E as ae,e as Je,n as Ge,i as Ze,z as Y,K as ee,Q as Ye,R as et,S as tt}from"./@vue-CfPxtCWx.js";import{p as Ie,S as ot,l as nt,s as lt}from"./codemirror-DYWAmcfC.js";import{b as F,E as at,a as st,B as it,l as rt,p as ct}from"./blockly-C3KDyeBl.js";import{plugins as ut}from"@/plugins/plugins.js";import"./@lezer-6dgAjmMZ.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(l){if(l.ep)return;l.ep=!0;const a=t(l);fetch(l.href,a)}})();function dt(e){return e=="py"?Ie():e=="lua"?ot.define(nt):Ie()}const se="py lua json ck",Ce="py lua ck",Pe="json",pt={py:"Python",lua:"Lua",ck:"Chuck",json:"JSON",txt:"Text plain"};var i=(e=>(e[e.OK=0]="OK",e[e.FAILED=1]="FAILED",e[e.CHANGE=2]="CHANGE",e[e.WITHOUTCHANGE=3]="WITHOUTCHANGE",e[e.REQUEST=4]="REQUEST",e[e.REQUEST_SELECT_FILE_IN_TABVIEW=5]="REQUEST_SELECT_FILE_IN_TABVIEW",e[e.EXISTS=6]="EXISTS",e[e.NOEXIST=7]="NOEXIST",e[e.FOUND=8]="FOUND",e[e.NOTFOUND=9]="NOTFOUND",e[e.ADDED=10]="ADDED",e[e.SAVED=11]="SAVED",e[e.UNSAVED=12]="UNSAVED",e[e.SET_WS=13]="SET_WS",e[e.ENABLED=14]="ENABLED",e[e.DESABLED=15]="DESABLED",e))(i||{}),fe=(e=>(e[e.TOAST=0]="TOAST",e[e.TEXT_PRINT=1]="TEXT_PRINT",e[e.TEXT_AREA=2]="TEXT_AREA",e))(fe||{}),j=(e=>(e[e.WELCOME=0]="WELCOME",e[e.CODEMIRROR=1]="CODEMIRROR",e[e.BLOCKLY=2]="BLOCKLY",e[e.FREE=3]="FREE",e))(j||{}),W=(e=>(e[e.EN=0]="EN",e[e.ES=1]="ES",e))(W||{}),k=(e=>(e[e.UNIX=0]="UNIX",e[e.WINDOWS=1]="WINDOWS",e[e.LINUX=2]="LINUX",e[e.MACOS=3]="MACOS",e[e.UNKNOW=4]="UNKNOW",e))(k||{}),X=(e=>(e[e.RELATIVE=0]="RELATIVE",e[e.ABSOLUTE=1]="ABSOLUTE",e[e.UNKNOW=2]="UNKNOW",e))(X||{});const ft=R({__name:"TextEditor",props:["projects","index","update","activate","workspace"],emits:["content-cursor-index"],setup(e,{emit:o}){const t=e,n=o,l=s(""),a=s(),r=s();return N(()=>[t.index,t.update],async()=>{t.projects.length>0&&t.workspace==j.CODEMIRROR&&(r.value.setCursor(0),a.value=dt(t.projects[t.index].extension),l.value=t.projects[t.index].content)}),N(l,u=>{n("content-cursor-index",u,r.value.getCursor(),t.index)}),(u,E)=>(x(),je(g(lt),{ref_key:"cm",ref:r,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=d=>l.value=d),basic:"","tab-size":2,dark:!1,gutter:!0,tab:!0,lang:a.value},null,8,["modelValue","lang"]))}});function Le(e,o){for(let t=0;t<e.length;t++)if(e[t]==o)return{status:i.FOUND,data:t};return{status:i.NOTFOUND}}function me(e){const o=/^[a-zA-Z]:\\/,t=/^\//,n=/^[^\/\\:*?"<>|]+(?:\\|\/|$)/,l=/^[^\/]+(?:\/|$)/;return o.test(e)?{so:k.WINDOWS,pathType:X.ABSOLUTE}:t.test(e)?{so:k.UNIX,pathType:X.ABSOLUTE}:n.test(e)?{so:k.WINDOWS,pathType:X.RELATIVE}:l.test(e)?{so:k.UNIX,pathType:X.RELATIVE}:{so:k.UNKNOW,pathType:X.UNKNOW}}function vt(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else return{path:"",filename:"",extension:""}}function mt(e){return se.includes(e)?"pi pi-file-edit":""}function gt(e){let o=[];for(let t=0;t<e.length;t++){const n=vt(e[t]);o.push({key:String(t),label:n.filename,leaf:!0,icon:n.extension!=""?mt(n.extension):"",data:n.path,extension:n.extension})}return o}function Et(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:t||"noname"}}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:t||"noname"}}}else return{status:i.FAILED}}function ht(e){let o=[];for(let t=0;t<e.length;t++){const n=Et(e[t]);n.status==i.OK&&o.push({key:String(t),label:n.data.dirname,leaf:!0,icon:"pi pi-folder",data:n.data.path})}return o}const Oe={dirTitle:{en:"Directories:",es:"Directorios:"},fileTitle:{en:"Files:",es:"Archivos:"}},te={menu:{en:"",es:""},save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},config:{en:"Config",es:"Configurar"}},w={save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},file:{en:"File",es:"Archivo"},opendir:{en:"Open dir",es:"Abrir directorio"},selectDirPath:{header:{en:"Put dir path.",es:"Poner ruta de directorio"}},newProject:{en:"New project",es:"Nuevo proyecto"},dialogNewProject:{header:{en:"New project",es:"Nuevo proyecto"},labelInput:{en:"1. Insert a file name for project, the extension file will created atomatically.",es:"1. Agregar un nombre de archivo para el proyecto, la extensión será creada automáticamente."},labelDirPath:{en:"The project file will created in the path: ",es:"El proyecto será creado en el path: "},labelSelectPlatform:{en:"2. Select a platform compatible with editor: ",es:"2. Seleccionar una plataforma compatible con el editor: "},labelSelectProjectType:{en:"3. Select project type to create.",es:"3. Selecciona el tipo de proyecto a crear."}},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}}},A={savefile:{ok:{en:"File save",es:"Archivo guardado"},error:{en:"Don't save file",es:"No se guardó el archivo"}},titleConfigProjectDialog:{en:"Config project",es:"Configuar proyecto"},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}},toastProccess:{en:"In process",es:"En proceso"}},yt={scrollableTabsDefault:{en:"Projects loaded in workspace",es:"Proyectos cargados en el área de trabajo"}};function b(e,o){return o==W.EN?e.en:o==W.ES?e.es:"noname"}const bt={class:"card flex justify-content-center"},_t={for:"mask",class:"font-bold block mb-2"},xt={for:"mask",class:"font-bold block mb-2"},Dt=R({__name:"TreeView",props:["dirPaths","dirPathsLength","filePaths","lang"],emits:["dir-path-selected","file-selected"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s(),r=s(""),u=s("");$(()=>{r.value=b(Oe.dirTitle,t.lang),u.value=b(Oe.fileTitle,t.lang)});const E=c=>{console.log(c.data),n("dir-path-selected",c.data)},d=c=>{console.log(c.data),n("file-selected",c.data)};return N(()=>t.dirPathsLength,()=>{a.value=ht(t.dirPaths)}),N(()=>t.filePaths,async c=>{l.value=gt(c)}),(c,D)=>(x(),O("div",bt,[v("label",_t,T(r.value),1),f(g(xe),{value:a.value,selectionMode:"single",onNodeSelect:E,class:"w-full md:w-30rem"},null,8,["value"]),v("label",xt,T(u.value),1),f(g(xe),{value:l.value,selectionMode:"single",onNodeSelect:d,class:"w-full md:w-30rem"},null,8,["value"])]))}}),J=(e,o)=>{const t=e.__vccOpts||e;for(const[n,l]of o)t[n]=l;return t},It=J(Dt,[["__scopeId","data-v-7d510def"]]);function Ot(e){let o=[];for(let t=0;t<e.length;t++)o.push({title:e[t].filename,indexOfProject:t});return o}const Nt={id:"divTabview",class:"card"},wt=R({__name:"TabViewEditor",props:["index","update","projects","contentchanges","lang"],emits:["index-of-project-to-load"],setup(e,{emit:o}){const t=o,n=e,l=s([]),a=s(0),r=E=>n.projects.length>0?Ot(n.projects):[{title:b(yt.scrollableTabsDefault,E),indexOfProject:-1}];N(()=>[n.index,n.update],([E])=>{l.value=r(n.lang),n.projects.length>0?a.value=E:a.value=0}),N(()=>n.lang,E=>{l.value=r(E)}),$(()=>{l.value=r(n.lang)});const u=E=>{t("index-of-project-to-load",E.index)};return(E,d)=>(x(),O("div",Nt,[f(g(Ae),{scrollable:!0,onTabClick:u,activeIndex:a.value,"onUpdate:activeIndex":d[0]||(d[0]=c=>a.value=c)},{default:ne(()=>[(x(!0),O(le,null,ae(l.value,c=>(x(),je(g(Xe),{key:c.title,header:c.title},null,8,["header"]))),128))]),_:1},8,["activeIndex"])]))}}),kt=J(wt,[["__scopeId","data-v-8ef45e55"]]),ge="http://"+location.hostname,Ee="8080",he="cors";async function jt(e){const t=ge+":"+Ee+"/"+"fs/dirconfig",n={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({workdir:e})};try{const a=await(await fetch(t,n)).json();return a.status==i.OK?a:{status:i.FAILED}}catch(l){return console.error(l),{status:i.FAILED}}}async function Ct(e){const t=ge+":"+Ee+"/"+"fs/readFile",n={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e})};try{const a=await(await fetch(t,n)).json();if(a.status==i.OK)return a}catch(l){return console.error(l),{status:-1}}}async function Pt(e,o){const n=ge+":"+Ee+"/"+"fs/writeFile",l={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:o})};try{const r=await(await fetch(n,l)).json();return r.status==i.OK?r:{status:i.FAILED}}catch(a){return console.error(a),{status:i.FAILED}}}const Lt={class:"card"},Tt={class:"flex align-items-center"},Ft=["for"],Bt={class:"flex align-items-center"},St=["for"],Vt=R({__name:"MenubarCommon",props:{lang:{},workDirPath:{},plugins:{}},emits:["dirconfig-update","save-project-request","dir-path-selected","new-project-request"],setup(e,{emit:o}){we(),s("Soltar aquí el directorio de trabajo");const t=e,n=s(!1),l=s(""),a=s(""),r=s(!1),u=s(""),E=s(""),d=s(""),c=s(""),D=s(""),L=s(""),C=s(""),B=s(""),P=s(""),S=o,V=s([]),K=p=>{V.value=[{label:b(w.file,p),icon:"pi pi-file",items:[{label:b(w.newProject,p),icon:"pi pi-file-plus",command:()=>{d.value="",q(t.lang),r.value=!0}},{label:b(w.opendir,p),icon:"pi pi-folder-open",command:()=>{a.value="",n.value=!0}},{label:b(w.save,p),icon:"pi pi-save",command:()=>{S("save-project-request")}}]}]},H=()=>{n.value=!1,S("dir-path-selected",a.value)};N(d,p=>{p.split(".").pop()&&p.split(".").pop()});const G=p=>{l.value=b(w.selectDirPath.header,p)},q=p=>{u.value=b(w.dialogNewProject.header,p),E.value=b(w.dialogNewProject.labelInput,p)+" (."+se.replace(/ /g,", .")+"):",c.value=b(w.dialogNewProject.labelDirPath,p)+'"'+t.workDirPath+'".',D.value=b(w.dialogNewProject.labelSelectPlatform,p),L.value=b(w.dialogNewProject.labelSelectProjectType,p)},re=p=>{C.value=b(w.dialogButton.ok,p),B.value=b(w.dialogButton.close,p)},Z=p=>{G(p),q(p),re(p)},ce=()=>{let p="",h="";z.value=="Blockly"?(p=t.plugins[P.value].blockly_template,h=".json"):(p=t.plugins[P.value].lang_template,h="."+t.plugins[P.value].lang);const _=t.workDirPath+"/"+d.value+h;S("new-project-request",_,p),r.value=!1};N(()=>t.lang,p=>{Z(p),K(p)});const U=s([]),z=s("");return N(P,()=>{U.value=[];const p=t.plugins[P.value].lang,h=pt[p];U.value.push(h),t.plugins[P.value].blockly_template!=null&&U.value.push("Blockly")}),$(()=>{Z(t.lang),K(t.lang)}),(p,h)=>(x(),O("div",Lt,[f(g(ke),{model:V.value},null,8,["model"]),f(g(ve)),f(g(pe),{visible:n.value,"onUpdate:visible":h[2]||(h[2]=_=>n.value=_),modal:"",header:l.value,style:{width:"25rem"}},{default:ne(()=>[v("div",null,[f(g(oe),{type:"text",modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=_=>a.value=_)},null,8,["modelValue"])]),v("div",null,[f(g(M),{type:"button",label:B.value,severity:"secondary",onClick:h[1]||(h[1]=_=>n.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:C.value,onClick:H},null,8,["label"])])]),_:1},8,["visible","header"]),f(g(pe),{visible:r.value,"onUpdate:visible":h[7]||(h[7]=_=>r.value=_),modal:"",header:u.value,style:{width:"35rem"}},{default:ne(()=>[v("div",null,[v("p",null,T(E.value),1),f(g(oe),{type:"text",modelValue:d.value,"onUpdate:modelValue":h[3]||(h[3]=_=>d.value=_)},null,8,["modelValue"]),v("p",null,T(c.value),1),v("p",null,T(D.value),1)]),(x(!0),O(le,null,ae(t.plugins,_=>(x(),O("div",Tt,[f(g(De),{modelValue:P.value,"onUpdate:modelValue":h[4]||(h[4]=Q=>P.value=Q),inputId:_.platform,name:"dynamic",value:_.platform},null,8,["modelValue","inputId","value"]),v("label",{for:_.platform,class:"ml-2"},T(_.platform),9,Ft)]))),256)),v("div",null,[v("p",null,T(L.value),1)]),(x(!0),O(le,null,ae(U.value,_=>(x(),O("div",Bt,[f(g(De),{modelValue:z.value,"onUpdate:modelValue":h[5]||(h[5]=Q=>z.value=Q),inputId:_,name:"dynamic",value:_},null,8,["modelValue","inputId","value"]),v("label",{for:_,class:"ml-2"},T(_),9,St)]))),256)),v("div",null,[f(g(M),{type:"button",label:B.value,severity:"secondary",onClick:h[6]||(h[6]=_=>r.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:C.value,onClick:ce},null,8,["label"])])]),_:1},8,["visible","header"])]))}}),Rt=J(Vt,[["__scopeId","data-v-dad5592a"]]),Wt=`
|
|
2
|
+
|
|
3
|
+
<xml id="toolbox" style="display: none">
|
|
4
|
+
<category name="Lógica" colour="%{BKY_LOGIC_HUE}">
|
|
5
|
+
<block type="controls_if"></block>
|
|
6
|
+
</category>
|
|
7
|
+
<category name="Secuencias" colour="%{BKY_LOOPS_HUE}">
|
|
8
|
+
<block type="controls_repeat_ext">
|
|
9
|
+
<value name="TIMES">
|
|
10
|
+
<shadow type="math_number">
|
|
11
|
+
<field name="NUM">10</field>
|
|
12
|
+
</shadow>
|
|
13
|
+
</value>
|
|
14
|
+
</block>
|
|
15
|
+
</category>
|
|
16
|
+
</xml>`;function $t(){const e=window.innerWidth,o=window.innerHeight;return e<o}const Ut={media:"media/",renderer:"geras",toolboxPosition:"start",horizontalLayout:$t(),zoom:{controls:!0,wheel:!0,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2,pinch:!0},trashcan:!0,grid:{spacing:25,length:1,colour:"#ccc",snap:!0},toolbox:Wt};function At(e){return F.inject(e.value,Ut)}function Xt(e,o){const t=F.utils.xml.textToDom(e);try{return F.Xml.clearWorkspaceAndLoadFromXml(t,o),{status:i.OK}}catch{return{status:i.FAILED}}}function Mt(e){e==W.ES?F.setLocale(at):F.setLocale(st)}function Kt(e){return e.lang=="lua"?rt.luaGenerator:e.lang=="python"?ct.pythonGenerator:void 0}let Ne=[];function Ht(e,o){Le(Ne,e.platform).status==i.NOTFOUND&&(e.initBlockly(it,Kt(e),o),Ne.push(e.platform))}const qt={class:"div_blockly"},zt=R({__name:"BlocklyEditor",props:["projects","index","update","workspace","plugin"],emits:["xmltext-index","blockly-mounted"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s();let r;const u=[F.Events.SELECTED],E=d=>{for(const c in u)if(d.type===u[c]){const D=F.Xml.workspaceToDom(r),L=F.Xml.domToPrettyText(D);n("xmltext-index",L,t.index)}};return $(async()=>{r=At(l),Mt(0),r.addChangeListener(E),n("blockly-mounted")}),N(()=>[t.index,t.update],async([d])=>{if(t.projects.length>0&&t.workspace==j.BLOCKLY){await Ge();const c=t.projects[d].config.platform;c!=null&&c!=""&&(Ht(t.plugin,r),r.updateToolbox(t.plugin.toolbox)),Xt(t.projects[d].blocklycode,r),F.svgResize(r),r.scrollCenter()}}),(d,c)=>(x(),O("div",qt,[v("div",{class:"blocklyDivClass",id:"blocklyDiv",ref_key:"blocklyDivRef",ref:l},null,512),v("xml",{style:{display:"none"},ref_key:"blocklyToolbox",ref:a},[Je(d.$slots,"default")],512)]))}}),Qt={class:"card"},Jt=R({__name:"ToolBar",props:["lang","plugin"],emits:["menu-toggle","save-project-request","close-project","config-project","plugin-command"],setup(e,{emit:o}){const t=e,n=o,l=s([]),a=s(W.EN),r=[{label:b(te.menu,t.lang),icon:"pi pi-arrow-right-arrow-left",command:()=>{n("menu-toggle")}},{label:b(te.save,t.lang),icon:"pi pi-save",command:()=>{n("save-project-request")}},{label:b(te.close,t.lang),icon:"pi pi-times",command:()=>{n("close-project")}},{label:b(te.config,t.lang),icon:"pi pi-cog",command:()=>{n("config-project")}}];function u(d){for(let c=0;c<d.length;c++)if(Array.isArray(d[c].items))u(d[c].items);else{const D=d[c].command;d[c].command=function(){n("plugin-command",D)}}return d}const E=d=>{if(d!=null){let c=d.getItemsToolBarOfPlugin(t.lang);c!=null&&c.length>0?(c=u(c),l.value=[...r,...c]):l.value=r}else l.value=r};return N(()=>t.plugin,d=>{E(d)}),N(()=>t.lang,()=>{a.value=t.lang}),$(()=>{l.value=r}),(d,c)=>(x(),O("div",Qt,[f(g(ke),{model:l.value},null,8,["model"]),f(g(ve))]))}}),Gt={class:"container"},Zt=R({__name:"TextareaDialog",setup(e){const o=Ze("dialogRef");let t;const n=s(""),l=s("");return $(()=>{t=o.value.data,n.value=t.description,l.value=t.content}),(a,r)=>(x(),O("div",Gt,[v("p",null,T(n.value),1),f(g(Me),{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=u=>l.value=u),autoResize:""},null,8,["modelValue"])]))}}),Yt=J(Zt,[["__scopeId","data-v-e2622354"]]);function Te(e,o){for(let t=0;t<e.length;t++)if(e[t].path===o)return{status:i.EXISTS,data:t};return{status:i.NOEXIST}}async function eo(e,o){const t=Fe(o);if(t.extension=="")return{status:i.WITHOUTCHANGE};if(!se.includes(t.extension))return{status:i.WITHOUTCHANGE};const n=Te(e,t.path);if(n.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:n.data};{const l=await Ct(t.path);if(l.status==0){const a=t.extension=="json"?JSON.parse(l.data):{},r=ye(l.data,t.extension),u={path:t.path,filename:t.filename,extension:t.extension,content:l.data,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}}async function to(e,o,t){const n=Fe(o);if(n.extension=="")return{status:i.WITHOUTCHANGE};if(!se.includes(n.extension))return{status:i.WITHOUTCHANGE};const l=Te(e,n.path);if(l.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:l.data};if(t!=""){const a=n.extension=="json"?JSON.parse(t):{},r=ye(t,n.extension),u={path:n.path,filename:n.filename,extension:n.extension,content:t,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}function oo(e,o){return e!==void 0&&e.length>o?(e.splice(o,1),{status:i.OK}):{status:i.FAILED}}function no(e,o,t,n){return e[n].content=o,e[n].codemirrorCursor=t,e[n].status=i.UNSAVED,{status:i.OK}}function lo(e,o,t){return e[t].blocklycode=o,e[t].status=i.UNSAVED,{status:i.OK}}function ao(e){return Pe.includes(e.extension)?{status:i.SET_WS,data:j.BLOCKLY}:Ce.includes(e.extension)?{status:i.SET_WS,data:j.CODEMIRROR}:{status:i.SET_WS,data:j.WELCOME}}function so(e,o){const t=e[o];if(t.extension=="json"&&t.blocklycode!==void 0){const n={config:t.config||"",blocklycode:t.blocklycode};e[o].content=JSON.stringify(n)}return{status:i.OK}}function io(e,o,t){const n=e[o];let l;if(Pe.includes(n.extension)&&t!=null)l=t;else if(Ce.includes(n.extension))l=ye(n.content,n.extension);else return{status:i.FAILED};return e[o].config=l,{status:i.OK}}function ye(e,o){return o=="lua"?co(e):o=="py"?ro(e):o=="json"?uo(e):{}}function ro(e){const o={},t=e.split(`
|
|
17
|
+
`);for(const n of t){const l=n.match(/# (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function co(e){const o={},t=e.split(`
|
|
18
|
+
`);for(const n of t){const l=n.match(/-- (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function uo(e){const o=JSON.parse(e).config;return o===void 0?{}:o}function po(e){let o=[];return e.config!=null&&(Object.keys(e.config).forEach(t=>{o.push({label:[t],value:e.config[t]})}),o.push({label:"",value:""})),o}function fo(e){let o={};for(let t=0;t<e.length;t++){const n=e[t].label;if(n!=""&&n!=null){const l=e[t].value;o[n]=l}}return o}function Fe(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else return{path:"",filename:"",extension:""}}async function vo(e){return await jt(e)}async function mo(e,o){return so(e,o),io(e,o),await Pt(e[o].path,e[o].content)}function go(e,o){if(o.length>0)for(let t=0;t<o.length;t++)e[o[t].platform]=o[t]}const be=e=>(Ye("data-v-bf7ed7fe"),e=e(),et(),e),Eo={style:{height:"100%"}},ho={class:"main_div"},yo=be(()=>v("p",null,"Catalejo",-1)),bo={id:"tree_and_commands",class:"tree_and_commands"},_o={id:"treeview",class:"treeview"},xo={id:"editor",class:"editor"},Do={id:"toolbar",class:"toolbar"},Io={id:"tabView",class:"tabview"},Oo={id:"blocklyEditor",class:"blocklyeditorclass"},No={id:"textEditor",class:"texteditorclass"},wo=be(()=>v("span",null,": ",-1)),ko=be(()=>v("div",{id:"log"},null,-1)),jo=R({__name:"App",setup(e){const o=s([]),t=s([]),n=s(""),l=s(0),a=s([]),r=s(),u=s(),E=s(!1),d=s(!1),c=s(W.EN),D=s(j.BLOCKLY),L=s({}),C=s();c.value=W.ES;const B=we(),P=Ke(),S=s(!0),V=s(!1),K=s(""),H=s([{label:"",value:""}]),G=s(""),q=s(""),re=m=>{o.value=m},Z=async m=>{const y=await eo(a.value,m||"");y.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=y.data)},ce=m=>{u.value=m},U=(m,y,I)=>{d.value=!d.value,no(a.value,m,y,I)},z=(m,y)=>{d.value=!d.value,lo(a.value,m,y)},p=async(m,y)=>{const I=await to(a.value,m,y);I.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=I.data)},h=async()=>{(await mo(a.value,u.value||0)).status==i.OK?B.add({severity:"success",summary:b(A.savefile.ok,c.value),detail:"",life:3e3}):B.add({severity:"error",summary:b(A.savefile.error,c.value),detail:"",life:3e3})},_=()=>{a.value.length>0&&(oo(a.value,u.value||0),a.value.length>0&&u.value!=null?u.value<a.value.length?E.value=!E.value:u.value=u.value-1:(D.value=j.WELCOME,u.value=-1))},Q=()=>{K.value=b(A.titleConfigProjectDialog,c.value),G.value=b(A.dialogButton.ok,c.value),q.value=b(A.dialogButton.close,c.value),u.value!=null&&(H.value=po(a.value[u.value])),V.value=!0},Be=()=>{D.value=j.WELCOME},ue=async m=>{const y=await vo(m);y.status==i.OK&&(Le(t.value,m).status==i.NOTFOUND&&t.value.push(m),o.value=y.data,n.value=m,l.value=t.value.length)};s(!1),s(""),s();const Se=async m=>{if(B.add({severity:"info",summary:b(A.toastProccess,c.value),detail:"",life:1500}),C.value!=null){const y=await C.value.commandEmit(r.value,m);switch(y.typeResult){case fe.TOAST:B.add(y.data);break;case fe.TEXT_PRINT:P.open(Yt,{data:y.data,props:{maximizable:!0,header:y.data.title}});break}}},_e=m=>{},Ve=()=>{S.value=!S.value,E.value=!E.value},Re=()=>{V.value=!1,u.value!=null&&(a.value[u.value].config=fo(H.value))},We=()=>{if(a.value.length>0&&u.value!==void 0){const m=ao(a.value[u.value]);m.status==i.SET_WS&&(D.value=m.data)}},$e=()=>{if(a.value.length>0&&u.value!==void 0){const m=a.value[u.value].config.platform;m!=null&&m!=""?C.value=L.value[m]:C.value=void 0}},Ue=()=>{u.value!=null&&(r.value=a.value[u.value])};return N(u,()=>{We(),$e(),Ue()}),$(async()=>{ue("/home/johnny/projects/catalejo-lua/work"),go(L.value,ut)}),(m,y)=>(x(),O("main",Eo,[v("div",ho,[Y(v("div",{id:"menu_collapse",class:"menu_collapse",onMouseover:y[0]||(y[0]=I=>_e()),onMouseout:y[1]||(y[1]=I=>_e())},[yo,Y(v("div",bo,[v("div",null,[f(Rt,{plugins:L.value,lang:c.value,workDirPath:n.value,onDirconfigUpdate:re,onSaveProjectRequest:h,onNewProjectRequest:p,onDirPathSelected:ue},null,8,["plugins","lang","workDirPath"])]),v("div",_o,[f(It,{filePaths:o.value,dirPaths:t.value,dirPathsLength:l.value,lang:c.value,onFileSelected:Z,onDirPathSelected:ue},null,8,["filePaths","dirPaths","dirPathsLength","lang"])])],512),[[ee,S.value]])],544),[[ee,S.value]]),v("div",xo,[v("div",Do,[f(Jt,{lang:c.value,plugin:C.value,onMenuToggle:Ve,onSaveProjectRequest:h,onCloseProject:_,onConfigProject:Q,onPluginCommand:Se},null,8,["lang","plugin"])]),v("div",Io,[f(kt,{index:u.value,projects:a.value,contentchanges:d.value,lang:c.value,update:E.value,onIndexOfProjectToLoad:ce},null,8,["index","projects","contentchanges","lang","update"])]),Y(v("div",Oo,[f(zt,{projects:a.value,index:u.value,workspace:D.value,plugin:C.value,update:E.value,onXmltextIndex:z,onBlocklyMounted:Be},null,8,["projects","index","workspace","plugin","update"])],512),[[ee,D.value==g(j).BLOCKLY]]),Y(v("div",No,[f(ft,{projects:a.value,index:u.value,workspace:D.value,update:E.value,onContentCursorIndex:U},null,8,["projects","index","workspace","update"])],512),[[ee,D.value==g(j).CODEMIRROR]])]),f(g(pe),{visible:V.value,"onUpdate:visible":y[3]||(y[3]=I=>V.value=I),modal:"",header:K.value,style:{width:"32rem"}},{default:ne(()=>[v("div",null,[(x(!0),O(le,null,ae(H.value,I=>(x(),O("div",null,[f(g(oe),{type:"text",size:"small",modelValue:I.label,"onUpdate:modelValue":de=>I.label=de},null,8,["modelValue","onUpdate:modelValue"]),wo,f(g(oe),{type:"text",size:"small",modelValue:I.value,"onUpdate:modelValue":de=>I.value=de},null,8,["modelValue","onUpdate:modelValue"])]))),256)),f(g(M),{type:"button",label:q.value,severity:"secondary",onClick:y[2]||(y[2]=I=>V.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:G.value,onClick:Re},null,8,["label"])])]),_:1},8,["visible","header"]),f(g(ve)),f(g(He))]),ko]))}}),Co=J(jo,[["__scopeId","data-v-bf7ed7fe"]]),ie=tt(Co);ie.use(qe);ie.use(ze);ie.use(Qe);ie.mount("#app");
|
package/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" href="/favicon.ico">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
7
|
<title>Vite App</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DOHj0WrZ.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/@vue-CfPxtCWx.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/primevue-CEz28wR_.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/@lezer-6dgAjmMZ.js">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/codemirror-DYWAmcfC.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/blockly-C3KDyeBl.js">
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/primevue-VvdNDlPa.css">
|
|
18
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-3G9hObXW.css">
|
|
19
19
|
<link rel="stylesheet" crossorigin href="/assets/primeicons-B7yeMe2z.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
package/dist/plugins/plugins.js
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* empty css */import{s as xe,a as Ae,b as Xe,u as we,c as ke,d as ve,e as oe,f as M,g as pe,h as De,i as Me,j as Ke,k as He,P as qe,T as ze,D as Qe}from"./primevue-CEz28wR_.js";import{d as R,r as s,w as N,g as je,P as g,f as x,o as $,q as O,t as v,x as T,C as f,B as ne,F as le,E as ae,e as Je,n as Ge,i as Ze,z as Y,K as ee,Q as Ye,R as et,S as tt}from"./@vue-CfPxtCWx.js";import{p as Ie,S as ot,l as nt,s as lt}from"./codemirror-DYWAmcfC.js";import{b as F,E as at,a as st,B as it,l as rt,p as ct}from"./blockly-C3KDyeBl.js";import"./@lezer-6dgAjmMZ.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(l){if(l.ep)return;l.ep=!0;const a=t(l);fetch(l.href,a)}})();function ut(e){return e=="py"?Ie():e=="lua"?ot.define(nt):Ie()}const se="py lua json ck",Ce="py lua ck",Pe="json",dt={py:"Python",lua:"Lua",ck:"Chuck",json:"JSON",txt:"Text plain"};var i=(e=>(e[e.OK=0]="OK",e[e.FAILED=1]="FAILED",e[e.CHANGE=2]="CHANGE",e[e.WITHOUTCHANGE=3]="WITHOUTCHANGE",e[e.REQUEST=4]="REQUEST",e[e.REQUEST_SELECT_FILE_IN_TABVIEW=5]="REQUEST_SELECT_FILE_IN_TABVIEW",e[e.EXISTS=6]="EXISTS",e[e.NOEXIST=7]="NOEXIST",e[e.FOUND=8]="FOUND",e[e.NOTFOUND=9]="NOTFOUND",e[e.ADDED=10]="ADDED",e[e.SAVED=11]="SAVED",e[e.UNSAVED=12]="UNSAVED",e[e.SET_WS=13]="SET_WS",e[e.ENABLED=14]="ENABLED",e[e.DESABLED=15]="DESABLED",e))(i||{}),fe=(e=>(e[e.TOAST=0]="TOAST",e[e.TEXT_PRINT=1]="TEXT_PRINT",e[e.TEXT_AREA=2]="TEXT_AREA",e))(fe||{}),j=(e=>(e[e.WELCOME=0]="WELCOME",e[e.CODEMIRROR=1]="CODEMIRROR",e[e.BLOCKLY=2]="BLOCKLY",e[e.FREE=3]="FREE",e))(j||{}),W=(e=>(e[e.EN=0]="EN",e[e.ES=1]="ES",e))(W||{}),k=(e=>(e[e.UNIX=0]="UNIX",e[e.WINDOWS=1]="WINDOWS",e[e.LINUX=2]="LINUX",e[e.MACOS=3]="MACOS",e[e.UNKNOW=4]="UNKNOW",e))(k||{}),X=(e=>(e[e.RELATIVE=0]="RELATIVE",e[e.ABSOLUTE=1]="ABSOLUTE",e[e.UNKNOW=2]="UNKNOW",e))(X||{});const pt=R({__name:"TextEditor",props:["projects","index","update","activate","workspace"],emits:["content-cursor-index"],setup(e,{emit:o}){const t=e,n=o,l=s(""),a=s(),r=s();return N(()=>[t.index,t.update],async()=>{t.projects.length>0&&t.workspace==j.CODEMIRROR&&(r.value.setCursor(0),a.value=ut(t.projects[t.index].extension),l.value=t.projects[t.index].content)}),N(l,u=>{n("content-cursor-index",u,r.value.getCursor(),t.index)}),(u,E)=>(x(),je(g(lt),{ref_key:"cm",ref:r,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=d=>l.value=d),basic:"","tab-size":2,dark:!1,gutter:!0,tab:!0,lang:a.value},null,8,["modelValue","lang"]))}});function Le(e,o){for(let t=0;t<e.length;t++)if(e[t]==o)return{status:i.FOUND,data:t};return{status:i.NOTFOUND}}function me(e){const o=/^[a-zA-Z]:\\/,t=/^\//,n=/^[^\/\\:*?"<>|]+(?:\\|\/|$)/,l=/^[^\/]+(?:\/|$)/;return o.test(e)?{so:k.WINDOWS,pathType:X.ABSOLUTE}:t.test(e)?{so:k.UNIX,pathType:X.ABSOLUTE}:n.test(e)?{so:k.WINDOWS,pathType:X.RELATIVE}:l.test(e)?{so:k.UNIX,pathType:X.RELATIVE}:{so:k.UNKNOW,pathType:X.UNKNOW}}function ft(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else return{path:"",filename:"",extension:""}}function vt(e){return se.includes(e)?"pi pi-file-edit":""}function mt(e){let o=[];for(let t=0;t<e.length;t++){const n=ft(e[t]);o.push({key:String(t),label:n.filename,leaf:!0,icon:n.extension!=""?vt(n.extension):"",data:n.path,extension:n.extension})}return o}function gt(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:t||"noname"}}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:t||"noname"}}}else return{status:i.FAILED}}function Et(e){let o=[];for(let t=0;t<e.length;t++){const n=gt(e[t]);n.status==i.OK&&o.push({key:String(t),label:n.data.dirname,leaf:!0,icon:"pi pi-folder",data:n.data.path})}return o}const Oe={dirTitle:{en:"Directories:",es:"Directorios:"},fileTitle:{en:"Files:",es:"Archivos:"}},te={menu:{en:"",es:""},save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},config:{en:"Config",es:"Configurar"}},w={save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},file:{en:"File",es:"Archivo"},opendir:{en:"Open dir",es:"Abrir directorio"},selectDirPath:{header:{en:"Put dir path.",es:"Poner ruta de directorio"}},newProject:{en:"New project",es:"Nuevo proyecto"},dialogNewProject:{header:{en:"New project",es:"Nuevo proyecto"},labelInput:{en:"1. Insert a file name for project, the extension file will created atomatically.",es:"1. Agregar un nombre de archivo para el proyecto, la extensión será creada automáticamente."},labelDirPath:{en:"The project file will created in the path: ",es:"El proyecto será creado en el path: "},labelSelectPlatform:{en:"2. Select a platform compatible with editor: ",es:"2. Seleccionar una plataforma compatible con el editor: "},labelSelectProjectType:{en:"3. Select project type to create.",es:"3. Selecciona el tipo de proyecto a crear."}},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}}},A={savefile:{ok:{en:"File save",es:"Archivo guardado"},error:{en:"Don't save file",es:"No se guardó el archivo"}},titleConfigProjectDialog:{en:"Config project",es:"Configuar proyecto"},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}},toastProccess:{en:"In process",es:"En proceso"}},ht={scrollableTabsDefault:{en:"Projects loaded in workspace",es:"Proyectos cargados en el área de trabajo"}};function y(e,o){return o==W.EN?e.en:o==W.ES?e.es:"noname"}const bt={class:"card flex justify-content-center"},yt={for:"mask",class:"font-bold block mb-2"},_t={for:"mask",class:"font-bold block mb-2"},xt=R({__name:"TreeView",props:["dirPaths","dirPathsLength","filePaths","lang"],emits:["dir-path-selected","file-selected"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s(),r=s(""),u=s("");$(()=>{r.value=y(Oe.dirTitle,t.lang),u.value=y(Oe.fileTitle,t.lang)});const E=c=>{console.log(c.data),n("dir-path-selected",c.data)},d=c=>{console.log(c.data),n("file-selected",c.data)};return N(()=>t.dirPathsLength,()=>{a.value=Et(t.dirPaths)}),N(()=>t.filePaths,async c=>{l.value=mt(c)}),(c,D)=>(x(),O("div",bt,[v("label",yt,T(r.value),1),f(g(xe),{value:a.value,selectionMode:"single",onNodeSelect:E,class:"w-full md:w-30rem"},null,8,["value"]),v("label",_t,T(u.value),1),f(g(xe),{value:l.value,selectionMode:"single",onNodeSelect:d,class:"w-full md:w-30rem"},null,8,["value"])]))}}),J=(e,o)=>{const t=e.__vccOpts||e;for(const[n,l]of o)t[n]=l;return t},Dt=J(xt,[["__scopeId","data-v-7d510def"]]);function It(e){let o=[];for(let t=0;t<e.length;t++)o.push({title:e[t].filename,indexOfProject:t});return o}const Ot={id:"divTabview",class:"card"},Nt=R({__name:"TabViewEditor",props:["index","update","projects","contentchanges","lang"],emits:["index-of-project-to-load"],setup(e,{emit:o}){const t=o,n=e,l=s([]),a=s(0),r=E=>n.projects.length>0?It(n.projects):[{title:y(ht.scrollableTabsDefault,E),indexOfProject:-1}];N(()=>[n.index,n.update],([E])=>{l.value=r(n.lang),n.projects.length>0?a.value=E:a.value=0}),N(()=>n.lang,E=>{l.value=r(E)}),$(()=>{l.value=r(n.lang)});const u=E=>{t("index-of-project-to-load",E.index)};return(E,d)=>(x(),O("div",Ot,[f(g(Ae),{scrollable:!0,onTabClick:u,activeIndex:a.value,"onUpdate:activeIndex":d[0]||(d[0]=c=>a.value=c)},{default:ne(()=>[(x(!0),O(le,null,ae(l.value,c=>(x(),je(g(Xe),{key:c.title,header:c.title},null,8,["header"]))),128))]),_:1},8,["activeIndex"])]))}}),wt=J(Nt,[["__scopeId","data-v-8ef45e55"]]),ge="http://"+location.hostname,Ee="8080",he="cors";async function kt(e){const t=ge+":"+Ee+"/"+"fs/dirconfig",n={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({workdir:e})};try{const a=await(await fetch(t,n)).json();return a.status==i.OK?a:{status:i.FAILED}}catch(l){return console.error(l),{status:i.FAILED}}}async function jt(e){const t=ge+":"+Ee+"/"+"fs/readFile",n={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e})};try{const a=await(await fetch(t,n)).json();if(a.status==i.OK)return a}catch(l){return console.error(l),{status:-1}}}async function Ct(e,o){const n=ge+":"+Ee+"/"+"fs/writeFile",l={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:o})};try{const r=await(await fetch(n,l)).json();return r.status==i.OK?r:{status:i.FAILED}}catch(a){return console.error(a),{status:i.FAILED}}}const Pt={class:"card"},Lt={class:"flex align-items-center"},Tt=["for"],Ft={class:"flex align-items-center"},Bt=["for"],St=R({__name:"MenubarCommon",props:{lang:{},workDirPath:{},plugins:{}},emits:["dirconfig-update","save-project-request","dir-path-selected","new-project-request"],setup(e,{emit:o}){we(),s("Soltar aquí el directorio de trabajo");const t=e,n=s(!1),l=s(""),a=s(""),r=s(!1),u=s(""),E=s(""),d=s(""),c=s(""),D=s(""),L=s(""),C=s(""),B=s(""),P=s(""),S=o,V=s([]),K=p=>{V.value=[{label:y(w.file,p),icon:"pi pi-file",items:[{label:y(w.newProject,p),icon:"pi pi-file-plus",command:()=>{d.value="",q(t.lang),r.value=!0}},{label:y(w.opendir,p),icon:"pi pi-folder-open",command:()=>{a.value="",n.value=!0}},{label:y(w.save,p),icon:"pi pi-save",command:()=>{S("save-project-request")}}]}]},H=()=>{n.value=!1,S("dir-path-selected",a.value)};N(d,p=>{p.split(".").pop()&&p.split(".").pop()});const G=p=>{l.value=y(w.selectDirPath.header,p)},q=p=>{u.value=y(w.dialogNewProject.header,p),E.value=y(w.dialogNewProject.labelInput,p)+" (."+se.replace(/ /g,", .")+"):",c.value=y(w.dialogNewProject.labelDirPath,p)+'"'+t.workDirPath+'".',D.value=y(w.dialogNewProject.labelSelectPlatform,p),L.value=y(w.dialogNewProject.labelSelectProjectType,p)},re=p=>{C.value=y(w.dialogButton.ok,p),B.value=y(w.dialogButton.close,p)},Z=p=>{G(p),q(p),re(p)},ce=()=>{let p="",h="";z.value=="Blockly"?(p=t.plugins[P.value].blockly_template,h=".json"):(p=t.plugins[P.value].lang_template,h="."+t.plugins[P.value].lang);const _=t.workDirPath+"/"+d.value+h;S("new-project-request",_,p),r.value=!1};N(()=>t.lang,p=>{Z(p),K(p)});const U=s([]),z=s("");return N(P,()=>{U.value=[];const p=t.plugins[P.value].lang,h=dt[p];U.value.push(h),t.plugins[P.value].blockly_template!=null&&U.value.push("Blockly")}),$(()=>{Z(t.lang),K(t.lang)}),(p,h)=>(x(),O("div",Pt,[f(g(ke),{model:V.value},null,8,["model"]),f(g(ve)),f(g(pe),{visible:n.value,"onUpdate:visible":h[2]||(h[2]=_=>n.value=_),modal:"",header:l.value,style:{width:"25rem"}},{default:ne(()=>[v("div",null,[f(g(oe),{type:"text",modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=_=>a.value=_)},null,8,["modelValue"])]),v("div",null,[f(g(M),{type:"button",label:B.value,severity:"secondary",onClick:h[1]||(h[1]=_=>n.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:C.value,onClick:H},null,8,["label"])])]),_:1},8,["visible","header"]),f(g(pe),{visible:r.value,"onUpdate:visible":h[7]||(h[7]=_=>r.value=_),modal:"",header:u.value,style:{width:"35rem"}},{default:ne(()=>[v("div",null,[v("p",null,T(E.value),1),f(g(oe),{type:"text",modelValue:d.value,"onUpdate:modelValue":h[3]||(h[3]=_=>d.value=_)},null,8,["modelValue"]),v("p",null,T(c.value),1),v("p",null,T(D.value),1)]),(x(!0),O(le,null,ae(t.plugins,_=>(x(),O("div",Lt,[f(g(De),{modelValue:P.value,"onUpdate:modelValue":h[4]||(h[4]=Q=>P.value=Q),inputId:_.platform,name:"dynamic",value:_.platform},null,8,["modelValue","inputId","value"]),v("label",{for:_.platform,class:"ml-2"},T(_.platform),9,Tt)]))),256)),v("div",null,[v("p",null,T(L.value),1)]),(x(!0),O(le,null,ae(U.value,_=>(x(),O("div",Ft,[f(g(De),{modelValue:z.value,"onUpdate:modelValue":h[5]||(h[5]=Q=>z.value=Q),inputId:_,name:"dynamic",value:_},null,8,["modelValue","inputId","value"]),v("label",{for:_,class:"ml-2"},T(_),9,Bt)]))),256)),v("div",null,[f(g(M),{type:"button",label:B.value,severity:"secondary",onClick:h[6]||(h[6]=_=>r.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:C.value,onClick:ce},null,8,["label"])])]),_:1},8,["visible","header"])]))}}),Vt=J(St,[["__scopeId","data-v-dad5592a"]]),Rt=`
|
|
2
|
-
|
|
3
|
-
<xml id="toolbox" style="display: none">
|
|
4
|
-
<category name="Lógica" colour="%{BKY_LOGIC_HUE}">
|
|
5
|
-
<block type="controls_if"></block>
|
|
6
|
-
</category>
|
|
7
|
-
<category name="Secuencias" colour="%{BKY_LOOPS_HUE}">
|
|
8
|
-
<block type="controls_repeat_ext">
|
|
9
|
-
<value name="TIMES">
|
|
10
|
-
<shadow type="math_number">
|
|
11
|
-
<field name="NUM">10</field>
|
|
12
|
-
</shadow>
|
|
13
|
-
</value>
|
|
14
|
-
</block>
|
|
15
|
-
</category>
|
|
16
|
-
</xml>`;function Wt(){const e=window.innerWidth,o=window.innerHeight;return e<o}const $t={media:"media/",renderer:"geras",toolboxPosition:"start",horizontalLayout:Wt(),zoom:{controls:!0,wheel:!0,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2,pinch:!0},trashcan:!0,grid:{spacing:25,length:1,colour:"#ccc",snap:!0},toolbox:Rt};function Ut(e){return F.inject(e.value,$t)}function At(e,o){const t=F.utils.xml.textToDom(e);try{return F.Xml.clearWorkspaceAndLoadFromXml(t,o),{status:i.OK}}catch{return{status:i.FAILED}}}function Xt(e){e==W.ES?F.setLocale(at):F.setLocale(st)}function Mt(e){return e.lang=="lua"?rt.luaGenerator:e.lang=="python"?ct.pythonGenerator:void 0}let Ne=[];function Kt(e,o){Le(Ne,e.platform).status==i.NOTFOUND&&(e.initBlockly(it,Mt(e),o),Ne.push(e.platform))}const Ht={class:"div_blockly"},qt=R({__name:"BlocklyEditor",props:["projects","index","update","workspace","plugin"],emits:["xmltext-index","blockly-mounted"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s();let r;const u=[F.Events.SELECTED],E=d=>{for(const c in u)if(d.type===u[c]){const D=F.Xml.workspaceToDom(r),L=F.Xml.domToPrettyText(D);n("xmltext-index",L,t.index)}};return $(async()=>{r=Ut(l),Xt(0),r.addChangeListener(E),n("blockly-mounted")}),N(()=>[t.index,t.update],async([d])=>{if(t.projects.length>0&&t.workspace==j.BLOCKLY){await Ge();const c=t.projects[d].config.platform;c!=null&&c!=""&&(Kt(t.plugin,r),r.updateToolbox(t.plugin.toolbox)),At(t.projects[d].blocklycode,r),F.svgResize(r),r.scrollCenter()}}),(d,c)=>(x(),O("div",Ht,[v("div",{class:"blocklyDivClass",id:"blocklyDiv",ref_key:"blocklyDivRef",ref:l},null,512),v("xml",{style:{display:"none"},ref_key:"blocklyToolbox",ref:a},[Je(d.$slots,"default")],512)]))}}),zt={class:"card"},Qt=R({__name:"ToolBar",props:["lang","plugin"],emits:["menu-toggle","save-project-request","close-project","config-project","plugin-command"],setup(e,{emit:o}){const t=e,n=o,l=s([]),a=s(W.EN),r=[{label:y(te.menu,t.lang),icon:"pi pi-arrow-right-arrow-left",command:()=>{n("menu-toggle")}},{label:y(te.save,t.lang),icon:"pi pi-save",command:()=>{n("save-project-request")}},{label:y(te.close,t.lang),icon:"pi pi-times",command:()=>{n("close-project")}},{label:y(te.config,t.lang),icon:"pi pi-cog",command:()=>{n("config-project")}}];function u(d){for(let c=0;c<d.length;c++)if(Array.isArray(d[c].items))u(d[c].items);else{const D=d[c].command;d[c].command=function(){n("plugin-command",D)}}return d}const E=d=>{if(d!=null){let c=d.getItemsToolBarOfPlugin(t.lang);c!=null&&c.length>0?(c=u(c),l.value=[...r,...c]):l.value=r}else l.value=r};return N(()=>t.plugin,d=>{E(d)}),N(()=>t.lang,()=>{a.value=t.lang}),$(()=>{l.value=r}),(d,c)=>(x(),O("div",zt,[f(g(ke),{model:l.value},null,8,["model"]),f(g(ve))]))}}),Jt={class:"container"},Gt=R({__name:"TextareaDialog",setup(e){const o=Ze("dialogRef");let t;const n=s(""),l=s("");return $(()=>{t=o.value.data,n.value=t.description,l.value=t.content}),(a,r)=>(x(),O("div",Jt,[v("p",null,T(n.value),1),f(g(Me),{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=u=>l.value=u),autoResize:""},null,8,["modelValue"])]))}}),Zt=J(Gt,[["__scopeId","data-v-e2622354"]]);function Te(e,o){for(let t=0;t<e.length;t++)if(e[t].path===o)return{status:i.EXISTS,data:t};return{status:i.NOEXIST}}async function Yt(e,o){const t=Fe(o);if(t.extension=="")return{status:i.WITHOUTCHANGE};if(!se.includes(t.extension))return{status:i.WITHOUTCHANGE};const n=Te(e,t.path);if(n.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:n.data};{const l=await jt(t.path);if(l.status==0){const a=t.extension=="json"?JSON.parse(l.data):{},r=be(l.data,t.extension),u={path:t.path,filename:t.filename,extension:t.extension,content:l.data,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}}async function eo(e,o,t){const n=Fe(o);if(n.extension=="")return{status:i.WITHOUTCHANGE};if(!se.includes(n.extension))return{status:i.WITHOUTCHANGE};const l=Te(e,n.path);if(l.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:l.data};if(t!=""){const a=n.extension=="json"?JSON.parse(t):{},r=be(t,n.extension),u={path:n.path,filename:n.filename,extension:n.extension,content:t,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}function to(e,o){return e!==void 0&&e.length>o?(e.splice(o,1),{status:i.OK}):{status:i.FAILED}}function oo(e,o,t,n){return e[n].content=o,e[n].codemirrorCursor=t,e[n].status=i.UNSAVED,{status:i.OK}}function no(e,o,t){return e[t].blocklycode=o,e[t].status=i.UNSAVED,{status:i.OK}}function lo(e){return Pe.includes(e.extension)?{status:i.SET_WS,data:j.BLOCKLY}:Ce.includes(e.extension)?{status:i.SET_WS,data:j.CODEMIRROR}:{status:i.SET_WS,data:j.WELCOME}}function ao(e,o){const t=e[o];if(t.extension=="json"&&t.blocklycode!==void 0){const n={config:t.config||"",blocklycode:t.blocklycode};e[o].content=JSON.stringify(n)}return{status:i.OK}}function so(e,o,t){const n=e[o];let l;if(Pe.includes(n.extension)&&t!=null)l=t;else if(Ce.includes(n.extension))l=be(n.content,n.extension);else return{status:i.FAILED};return e[o].config=l,{status:i.OK}}function be(e,o){return o=="lua"?ro(e):o=="py"?io(e):o=="json"?co(e):{}}function io(e){const o={},t=e.split(`
|
|
17
|
-
`);for(const n of t){const l=n.match(/# (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function ro(e){const o={},t=e.split(`
|
|
18
|
-
`);for(const n of t){const l=n.match(/-- (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function co(e){const o=JSON.parse(e).config;return o===void 0?{}:o}function uo(e){let o=[];return e.config!=null&&(Object.keys(e.config).forEach(t=>{o.push({label:[t],value:e.config[t]})}),o.push({label:"",value:""})),o}function po(e){let o={};for(let t=0;t<e.length;t++){const n=e[t].label;if(n!=""&&n!=null){const l=e[t].value;o[n]=l}}return o}function Fe(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else return{path:"",filename:"",extension:""}}async function fo(e){return await kt(e)}async function vo(e,o){return ao(e,o),so(e,o),await Ct(e[o].path,e[o].content)}function mo(e,o){if(o.length>0)for(let t=0;t<o.length;t++)e[o[t].platform]=o[t]}let go=[];const ye=e=>(Ye("data-v-bb14379b"),e=e(),et(),e),Eo={style:{height:"100%"}},ho={class:"main_div"},bo=ye(()=>v("p",null,"Catalejo",-1)),yo={id:"tree_and_commands",class:"tree_and_commands"},_o={id:"treeview",class:"treeview"},xo={id:"editor",class:"editor"},Do={id:"toolbar",class:"toolbar"},Io={id:"tabView",class:"tabview"},Oo={id:"blocklyEditor",class:"blocklyeditorclass"},No={id:"textEditor",class:"texteditorclass"},wo=ye(()=>v("span",null,": ",-1)),ko=ye(()=>v("div",{id:"log"},null,-1)),jo=R({__name:"App",setup(e){const o=s([]),t=s([]),n=s(""),l=s(0),a=s([]),r=s(),u=s(),E=s(!1),d=s(!1),c=s(W.EN),D=s(j.BLOCKLY),L=s({}),C=s();c.value=W.ES;const B=we(),P=Ke(),S=s(!0),V=s(!1),K=s(""),H=s([{label:"",value:""}]),G=s(""),q=s(""),re=m=>{o.value=m},Z=async m=>{const b=await Yt(a.value,m||"");b.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=b.data)},ce=m=>{u.value=m},U=(m,b,I)=>{d.value=!d.value,oo(a.value,m,b,I)},z=(m,b)=>{d.value=!d.value,no(a.value,m,b)},p=async(m,b)=>{const I=await eo(a.value,m,b);I.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=I.data)},h=async()=>{(await vo(a.value,u.value||0)).status==i.OK?B.add({severity:"success",summary:y(A.savefile.ok,c.value),detail:"",life:3e3}):B.add({severity:"error",summary:y(A.savefile.error,c.value),detail:"",life:3e3})},_=()=>{a.value.length>0&&(to(a.value,u.value||0),a.value.length>0&&u.value!=null?u.value<a.value.length?E.value=!E.value:u.value=u.value-1:(D.value=j.WELCOME,u.value=-1))},Q=()=>{K.value=y(A.titleConfigProjectDialog,c.value),G.value=y(A.dialogButton.ok,c.value),q.value=y(A.dialogButton.close,c.value),u.value!=null&&(H.value=uo(a.value[u.value])),V.value=!0},Be=()=>{D.value=j.WELCOME},ue=async m=>{const b=await fo(m);b.status==i.OK&&(Le(t.value,m).status==i.NOTFOUND&&t.value.push(m),o.value=b.data,n.value=m,l.value=t.value.length)};s(!1),s(""),s();const Se=async m=>{if(B.add({severity:"info",summary:y(A.toastProccess,c.value),detail:"",life:1500}),C.value!=null){const b=await C.value.commandEmit(r.value,m);switch(b.typeResult){case fe.TOAST:B.add(b.data);break;case fe.TEXT_PRINT:P.open(Zt,{data:b.data,props:{maximizable:!0,header:b.data.title}});break}}},_e=m=>{},Ve=()=>{S.value=!S.value,E.value=!E.value},Re=()=>{V.value=!1,u.value!=null&&(a.value[u.value].config=po(H.value))},We=()=>{if(a.value.length>0&&u.value!==void 0){const m=lo(a.value[u.value]);m.status==i.SET_WS&&(D.value=m.data)}},$e=()=>{if(a.value.length>0&&u.value!==void 0){const m=a.value[u.value].config.platform;m!=null&&m!=""?C.value=L.value[m]:C.value=void 0}},Ue=()=>{u.value!=null&&(r.value=a.value[u.value])};return N(u,()=>{We(),$e(),Ue()}),$(async()=>{ue("/home/johnny/projects/catalejo-lua/work"),mo(L.value,go)}),(m,b)=>(x(),O("main",Eo,[v("div",ho,[Y(v("div",{id:"menu_collapse",class:"menu_collapse",onMouseover:b[0]||(b[0]=I=>_e()),onMouseout:b[1]||(b[1]=I=>_e())},[bo,Y(v("div",yo,[v("div",null,[f(Vt,{plugins:L.value,lang:c.value,workDirPath:n.value,onDirconfigUpdate:re,onSaveProjectRequest:h,onNewProjectRequest:p,onDirPathSelected:ue},null,8,["plugins","lang","workDirPath"])]),v("div",_o,[f(Dt,{filePaths:o.value,dirPaths:t.value,dirPathsLength:l.value,lang:c.value,onFileSelected:Z,onDirPathSelected:ue},null,8,["filePaths","dirPaths","dirPathsLength","lang"])])],512),[[ee,S.value]])],544),[[ee,S.value]]),v("div",xo,[v("div",Do,[f(Qt,{lang:c.value,plugin:C.value,onMenuToggle:Ve,onSaveProjectRequest:h,onCloseProject:_,onConfigProject:Q,onPluginCommand:Se},null,8,["lang","plugin"])]),v("div",Io,[f(wt,{index:u.value,projects:a.value,contentchanges:d.value,lang:c.value,update:E.value,onIndexOfProjectToLoad:ce},null,8,["index","projects","contentchanges","lang","update"])]),Y(v("div",Oo,[f(qt,{projects:a.value,index:u.value,workspace:D.value,plugin:C.value,update:E.value,onXmltextIndex:z,onBlocklyMounted:Be},null,8,["projects","index","workspace","plugin","update"])],512),[[ee,D.value==g(j).BLOCKLY]]),Y(v("div",No,[f(pt,{projects:a.value,index:u.value,workspace:D.value,update:E.value,onContentCursorIndex:U},null,8,["projects","index","workspace","update"])],512),[[ee,D.value==g(j).CODEMIRROR]])]),f(g(pe),{visible:V.value,"onUpdate:visible":b[3]||(b[3]=I=>V.value=I),modal:"",header:K.value,style:{width:"32rem"}},{default:ne(()=>[v("div",null,[(x(!0),O(le,null,ae(H.value,I=>(x(),O("div",null,[f(g(oe),{type:"text",size:"small",modelValue:I.label,"onUpdate:modelValue":de=>I.label=de},null,8,["modelValue","onUpdate:modelValue"]),wo,f(g(oe),{type:"text",size:"small",modelValue:I.value,"onUpdate:modelValue":de=>I.value=de},null,8,["modelValue","onUpdate:modelValue"])]))),256)),f(g(M),{type:"button",label:q.value,severity:"secondary",onClick:b[2]||(b[2]=I=>V.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:G.value,onClick:Re},null,8,["label"])])]),_:1},8,["visible","header"]),f(g(ve)),f(g(He))]),ko]))}}),Co=J(jo,[["__scopeId","data-v-bb14379b"]]),ie=tt(Co);ie.use(qe);ie.use(ze);ie.use(Qe);ie.mount("#app");
|