@vtj/pro 0.17.6 → 0.17.7
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.
- package/README.md +2 -2
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/Editor-Cew4cVll-C_7X_xPy.js +546 -0
- package/dist/assets/auth-HKb8CeRP.js +1 -0
- package/dist/assets/{index-BuGNkP-C.js → index-BQNIPhvJ.js} +2 -2
- package/dist/assets/index-Cn21LEik.js +1 -0
- package/dist/assets/{mockjs-C_1w07tn.js → mockjs-g5zqhxrW.js} +5 -5
- package/dist/assets/page-Bi8-dzve.js +2 -0
- package/dist/assets/preview-44oc_Ot9.js +2 -0
- package/dist/assets/utils-C3UZGY3S.js +1 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-BmOkhsCk.js → @dcloudio-uni-h5-vue-CKVTfNUF.js} +2 -2
- package/dist/uni/assets/index-CL8wKZzi.js +91 -0
- package/dist/uni/assets/{vue-router-BaL-Hp_b.js → vue-router-BuyipnGj.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +11 -11
- package/dist/assets/Editor-C3o0jtM2-SS6YQFnK.js +0 -538
- package/dist/assets/auth-MwmnBWEv.js +0 -1
- package/dist/assets/index-th3c9OdM.js +0 -1
- package/dist/assets/page-DfQNNxIl.js +0 -2
- package/dist/assets/preview-D6c64CQx.js +0 -2
- package/dist/assets/utils-C71Ycgsp.js +0 -1
- package/dist/uni/assets/index-BT50bWB7.js +0 -83
- /package/dist/assets/{Editor-C3o0jtM2-NMmAvvAr.css → Editor-Cew4cVll-NMmAvvAr.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var x=Object.defineProperty;var h=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&k(o,t,e[t]);if(h)for(var t of h(e))U.call(e,t)&&k(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,r)=>{var n=s=>{try{i(t.next(s))}catch(a){r(a)}},p=s=>{try{i(t.throw(s))}catch(a){r(a)}},i=s=>s.done?c(s.value):Promise.resolve(s.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{k as I,aF as b,a9 as d,aG as v,aH as E,L as q}from"./Editor-Cew4cVll-C_7X_xPy.js";import{useRoute as B}from"./vue-router-B2eGcVGj.js";import{y as w,az as f,I as L,D as C,u as l,E as R,U as $}from"./vue-BaPf1eHv.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-g5zqhxrW.js";import"./marked--VTVY_DP.js";const S={class:"loading"},z=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,r=I(u(u({alert:d},b),c.access)),n=B(),p=a=>_(null,null,function*(){const y=`${c.remote||v}/api/open/user/${a}`,m=yield E(y).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,s=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(s)try{r.login(s);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,y)=>(C(),L("div",S,"正在登录中..."))})}}),D=g(z,[["__scopeId","data-v-2cb061ca"]]),X=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new q,r=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=r==null?void 0:r.remote,p=r==null?void 0:r.__ACCESS__;return(i,s)=>l(n)?(C(),R(l(D),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):$("",!0)})}});export{X as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{y as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-BaPf1eHv.js";import{z as g,c as y}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-B2eGcVGj.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(y),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Cn21LEik.js","./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js","./@vueuse-w7qmHU3H.js","./Editor-Cew4cVll-C_7X_xPy.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-Bgelixwu.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-CXRJnQYo.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./vxe-C7ZzhQxY.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-g5zqhxrW.js","./marked--VTVY_DP.js","./Editor-Cew4cVll-NMmAvvAr.css","./utils-C3UZGY3S.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-44oc_Ot9.js","./page-Bi8-dzve.js","./uni-page-BrivKbVY.js","./uni-page-Diqmj53r.css","./auth-HKb8CeRP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{y as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-BaPf1eHv.js";import{z as g,c as y}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-B2eGcVGj.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(y),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-Cn21LEik.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-44oc_Ot9.js"),__vite__mapDeps([22,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-Bi8-dzve.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-BrivKbVY.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-HKb8CeRP.js"),__vite__mapDeps([26,7,3,2,8,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=E({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var L=Object.defineProperty;var E=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var P=(n,e,t)=>e in n?L(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))V.call(e,t)&&P(n,t,e[t]);if(E)for(var t of E(e))W.call(e,t)&&P(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as j}from"./vue-router-B2eGcVGj.js";import{y as z}from"./@vueuse-w7qmHU3H.js";import{L as D,N as J,E as U,k as G,u as C,b as K,d as k}from"./Editor-Cew4cVll-C_7X_xPy.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{E as M,a as v,n as N,l as O}from"./utils-C3UZGY3S.js";import{y as Q,az as S,e as X,I as Y,r as Z,D as ee}from"./vue-BaPf1eHv.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-g5zqhxrW.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=Q({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=j(),r=Z(),l=new D(J(N)),s=([e,t]=S(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=S(()=>new M(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:A,checkVersion:B=!0,enhance:b,platform:F="web"}=s||{},R=U({loading:O,notify:N,useTitle:z,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=G($({alert:v},s==null?void 0:s.__ACCESS__)),q=()=>p==="hash",H=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const I=s.pageBasePath?`/${w}`:"",x=`${H(h)}${u?`pages${I}`:w}/${f.id}`;m=q()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new K($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:A,checkVersion:B,enhance:b,project:{platform:F}},i));return y.ready(()=>d(null,null,function*(){yield k(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield k(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{ge as default};
|