@vtj/pro 0.9.21 → 0.9.23

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
- var R=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var $=(n,e,t)=>e in n?R(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,g=(n,e)=>{for(var t in e||(e={}))j.call(e,t)&&$(n,t,e[t]);if(y)for(var t of y(e))q.call(e,t)&&$(n,t,e[t]);return n},E=(n,e)=>F(n,M(e));var A=(n,e,t)=>new Promise((d,i)=>{var c=s=>{try{r(t.next(s))}catch(a){i(a)}},m=s=>{try{r(t.throw(s))}catch(a){i(a)}},r=s=>s.done?d(s.value):Promise.resolve(s.value).then(c,m);r((t=t.apply(n,e)).next())});import{useRoute as H}from"./vue-router-CrZzyM_O.js";import{A as K,O as W,M as G,T as I,a as J}from"./index-CfUBkLtJ.js";import{a as N}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{d as P,s as V,E as Y}from"./extension-DMkHTD-w.js";import{l as z,n as v}from"./utils-B9i9aHNx.js";import{d as D,e as L,aA as B,f as Q,c as U,o as X}from"./vue-DEqBd9tH.js";import{_ as Z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./monaco-editor-BhWNbPWS.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const ee=D({__name:"index",setup(n){return A(this,null,function*(){let e,t;const d=K({loading:z,notify:v}),i=H(),c=L(),m=new W(G(v)),r=([e,t]=B(()=>m.getExtension().catch(()=>null)),e=yield e,t(),e),{options:s,adapters:a}=r?([e,t]=B(()=>new Y(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:f="/",history:C="hash",base:u="/",pageRouteName:O="page"}=r||{},w=a==null?void 0:a.access,S=a==null?void 0:a.remote,T=w?new I(g({alert:N.alert,storageKey:J},w)):void 0,b=()=>C==="hash",k=o=>o==="/"?"":(o.startsWith("/")&&(o=o.substring(1)),o.endsWith("/")||(o=o+"/"),o);P.set("Switcher",{props:{onClick:o=>{const p=location.pathname;let l=p===`${f}__vtj__/`?f:p;const _=o.currentFile;if(_&&_.type==="page"&&o.homepage!==_.id){const x=`${k(u)}${O}/${_.id}`;l=b()?`${l}#/${x}`:`${l}${x}`}window.open(l,"VTJProject")}}}),P.set("Previewer",{props:{path:o=>`${location.pathname}#/preview/${o.id}`}});const h=new V(E(g({container:c,service:m,materialPath:f,pageBasePath:u==="/"?"":u},s),{adapter:Object.assign(d,{access:T,remote:S},(s==null?void 0:s.adapter)||{})}));return h.ready(()=>{h.openFile(i.query.id)}),Q(()=>i.query.id,o=>{h.openFile(o)}),(o,p)=>(X(),U("div",{class:"designer",ref_key:"container",ref:c},null,512))})}}),we=Z(ee,[["__scopeId","data-v-57ddbf70"]]);export{we as default};
1
+ var I=Object.defineProperty,O=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var $=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,g=(n,e)=>{for(var t in e||(e={}))j.call(e,t)&&$(n,t,e[t]);if(y)for(var t of y(e))q.call(e,t)&&$(n,t,e[t]);return n},E=(n,e)=>O(n,T(e));var A=(n,e,t)=>new Promise((d,i)=>{var c=s=>{try{r(t.next(s))}catch(a){i(a)}},m=s=>{try{r(t.throw(s))}catch(a){i(a)}},r=s=>s.done?d(s.value):Promise.resolve(s.value).then(c,m);r((t=t.apply(n,e)).next())});import{useRoute as D}from"./vue-router-CrZzyM_O.js";import{I as H,B as K,D as W,A as G,a as J}from"./index-DxbV-kZL.js";import{a as M}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{d as B,s as N,E as V}from"./extension-CIBt87P8.js";import{l as Y,n as P}from"./utils-B9i9aHNx.js";import{d as z,e as L,aA as v,f as Q,c as U,o as X}from"./vue-DEqBd9tH.js";import{_ as Z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./monaco-editor-BhWNbPWS.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const ee=z({__name:"index",setup(n){return A(this,null,function*(){let e,t;const d=H({loading:Y,notify:P}),i=D(),c=L(),m=new K(W(P)),r=([e,t]=v(()=>m.getExtension().catch(()=>null)),e=yield e,t(),e),{options:s,adapters:a}=r?([e,t]=v(()=>new V(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:f="/",history:C="hash",base:u="/",pageRouteName:S="page"}=r||{},w=a==null?void 0:a.access,b=a==null?void 0:a.remote,k=w?new G(g({alert:M.alert,storageKey:J},w)):void 0,R=()=>C==="hash",F=o=>o==="/"?"":(o.startsWith("/")&&(o=o.substring(1)),o.endsWith("/")||(o=o+"/"),o);B.set("Switcher",{props:{onClick:o=>{const p=location.pathname;let l=p===`${f}__vtj__/`?f:p;const _=o.currentFile;if(_&&_.type==="page"&&o.homepage!==_.id){const x=`${F(u)}${S}/${_.id}`;l=R()?`${l}#/${x}`:`${l}${x}`}window.open(l,"VTJProject")}}}),B.set("Previewer",{props:{path:o=>`${location.pathname}#/preview/${o.id}`}});const h=new N(E(g({container:c,service:m,materialPath:f,pageBasePath:u==="/"?"":u},s),{adapter:Object.assign(d,{access:k,remote:b},(s==null?void 0:s.adapter)||{})}));return h.ready(()=>{h.openFile(i.query.id)}),Q(()=>i.query.id,o=>{h.openFile(o)}),(o,p)=>(X(),U("div",{class:"designer",ref_key:"container",ref:c},null,512))})}}),we=Z(ee,[["__scopeId","data-v-57ddbf70"]]);export{we as default};