@vtj/pro 0.13.19 → 0.13.21
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/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/icons/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/Editor-BaZFa4li-B8ToeLyq.css +1 -0
- package/dist/assets/Editor-BaZFa4li-BmYuBiQ1.js +317 -0
- package/dist/assets/{auth-D011FqKZ.js → auth-CK9RIJ36.js} +1 -1
- package/dist/assets/{index-Dw9xD-iv.js → index-CCqFsHO3.js} +2 -2
- package/dist/assets/index-ClrYYAkp.js +1 -0
- package/dist/assets/{mockjs-BTOyXKF2.js → mockjs-DVrd8ONE.js} +3 -3
- package/dist/assets/page-BvYZ0hVs.js +2 -0
- package/dist/assets/preview-DQA4_fFU.js +2 -0
- package/dist/assets/utils-BBudtdLI.js +1 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/{index-CgfquXG2.js → index-BDQ8-APp.js} +6 -6
- package/dist/uni/index.html +1 -1
- package/package.json +13 -13
- package/dist/assets/Editor-8RJefU0w-50xFs9oi.js +0 -300
- package/dist/assets/Editor-8RJefU0w-oS7Cs8w2.css +0 -1
- package/dist/assets/index-CBTqCTOw.js +0 -1
- package/dist/assets/page-B_HQB6rO.js +0 -2
- package/dist/assets/preview-Bz0z4df6.js +0 -2
- package/dist/assets/utils-BrU9KcsQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var x=Object.defineProperty;var f=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var h=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,u=(o,t)=>{for(var e in t||(t={}))b.call(t,e)&&h(o,e,t[e]);if(f)for(var e of f(t))A.call(t,e)&&h(o,e,t[e]);return o};var p=(o,t,e)=>new Promise((c,s)=>{var n=r=>{try{i(e.next(r))}catch(a){s(a)}},m=r=>{try{i(e.throw(r))}catch(a){s(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,m);i((e=e.apply(o,t)).next())});import"./element-plus-Ah0xLs8C.js";import"./vxe-CUfKLI0g.js";import{b as E,aC as v,a5 as y,aD as B,aE as I,M as U}from"./Editor-BaZFa4li-BmYuBiQ1.js";import{useRoute as $}from"./vue-router-ewcyuiJO.js";import{d as C,az as k,c as g,o as w,L as q,P as D,u as _}from"./vue-DMnDC9ZE.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-D-A_gPnj.js";import"./@vueuse-WKVogrsa.js";import"./@element-plus-icons-vue-Bs81Xeyi.js";import"./shared-CiMZBXIr.js";import"./dayjs-C1e0w4cr.js";import"./monaco-editor-xcHgnT1C.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-DVrd8ONE.js";import"./marked-BQZxLJfc.js";const M={class:"loading"},R=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return p(this,null,function*(){let t,e;const c=o,s=E(u(u({alert:y},v),c.access)),n=$(),m=a=>p(null,null,function*(){const d=`${c.remote||B}/api/open/user/${a}`,l=yield I(d).catch(()=>null);return!l||!l.success?(yield y("登录失败"),null):l.data}),i=n.query.token,r=i?([t,e]=k(()=>m(i)),t=yield t,e(),t):null;if(r)try{s.login(r);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}return(a,d)=>(w(),g("div",M,"正在登录中..."))})}}),S=L(R,[["__scopeId","data-v-2674e98b"]]),Z=C({__name:"auth",setup(o){return p(this,null,function*(){let t,e;const c=new U,s=([t,e]=k(()=>c.getExtension().catch(()=>null)),t=yield t,e(),t),n=s==null?void 0:s.remote,m=s==null?void 0:s.__ACCESS__;return(i,r)=>_(n)?(w(),q(_(S),{key:0,remote:_(n),access:_(m)},null,8,["remote","access"])):D("",!0)})}});export{Z as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{d as _,L as p,o as s,u as m,an as d,M as u,aB as f,U as h,aw as v}from"./vue-DMnDC9ZE.js";import{z as g,d as y}from"./element-plus-Ah0xLs8C.js";import{_ as r}from"./monaco-editor-xcHgnT1C.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-ewcyuiJO.js";import"./lodash-es-D-A_gPnj.js";import"./@vueuse-WKVogrsa.js";import"./@element-plus-icons-vue-Bs81Xeyi.js";import"./shared-CiMZBXIr.js";import"./dayjs-C1e0w4cr.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 n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function a(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=a(e);fetch(e.href,t)}})();const O=_({__name:"app",setup(l){return(o,a)=>{const i=d("router-view");return s(),p(m(y),{locale:m(g)},{default:u(()=>[(s(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-ClrYYAkp.js","./vue-router-ewcyuiJO.js","./vue-DMnDC9ZE.js","./@vueuse-WKVogrsa.js","./Editor-BaZFa4li-BmYuBiQ1.js","./monaco-editor-xcHgnT1C.js","./monaco-editor-Cpw7ccEV.css","./element-plus-Ah0xLs8C.js","./lodash-es-D-A_gPnj.js","./@element-plus-icons-vue-Bs81Xeyi.js","./shared-CiMZBXIr.js","./dayjs-C1e0w4cr.js","./element-plus-BAo4E1qD.css","./vxe-CUfKLI0g.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-DVrd8ONE.js","./marked-BQZxLJfc.js","./Editor-BaZFa4li-B8ToeLyq.css","./utils-BBudtdLI.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-CrVHlN_5.css","./preview-DQA4_fFU.js","./page-BvYZ0hVs.js","./uni-page-CU2x9oBI.js","./uni-page-Diqmj53r.css","./auth-CK9RIJ36.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as _,L as p,o as s,u as m,an as d,M as u,aB as f,U as h,aw as v}from"./vue-DMnDC9ZE.js";import{z as g,d as y}from"./element-plus-Ah0xLs8C.js";import{_ as r}from"./monaco-editor-xcHgnT1C.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-ewcyuiJO.js";import"./lodash-es-D-A_gPnj.js";import"./@vueuse-WKVogrsa.js";import"./@element-plus-icons-vue-Bs81Xeyi.js";import"./shared-CiMZBXIr.js";import"./dayjs-C1e0w4cr.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 n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function a(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=a(e);fetch(e.href,t)}})();const O=_({__name:"app",setup(l){return(o,a)=>{const i=d("router-view");return s(),p(m(y),{locale:m(g)},{default:u(()=>[(s(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-ClrYYAkp.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-DQA4_fFU.js"),__vite__mapDeps([22,5,6,1,2,7,8,3,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-BvYZ0hVs.js"),__vite__mapDeps([23,5,6,1,2,7,8,3,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-CU2x9oBI.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-CK9RIJ36.js"),__vite__mapDeps([26,7,2,8,3,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],w=E({history:L(),routes:P}),c=v(O);c.use(w);c.mount("#app");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var N=Object.defineProperty;var E=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var P=(o,e,t)=>e in o?N(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,g=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&P(o,t,e[t]);if(E)for(var t of E(e))W.call(e,t)&&P(o,t,e[t]);return o};var d=(o,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(c){r(c)}},a=n=>{try{i(t.throw(n))}catch(c){r(c)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,a);i((t=t.apply(o,e)).next())});import{useRoute as z}from"./vue-router-ewcyuiJO.js";import{x as I}from"./@vueuse-WKVogrsa.js";import{M as J,k as U,R as j,b as D,E as B,B as G,w as C}from"./Editor-BaZFa4li-BmYuBiQ1.js";import"./element-plus-Ah0xLs8C.js";import"./vxe-CUfKLI0g.js";import{E as K,a as k,n as v,l as L}from"./utils-BBudtdLI.js";import{d as O,e as Q,az as S,h as X,c as Y,o as Z}from"./vue-DMnDC9ZE.js";import{_ as ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-xcHgnT1C.js";import"./@element-plus-icons-vue-Bs81Xeyi.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-DVrd8ONE.js";import"./dayjs-C1e0w4cr.js";import"./marked-BQZxLJfc.js";import"./lodash-es-D-A_gPnj.js";import"./shared-CiMZBXIr.js";const te=O({__name:"index",setup(o){return d(this,null,function*(){let e,t;const _=z(),r=Q(),l=new J(U(v)),a=([e,t]=S(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=j({loading:L,notify:v,useTitle:I,alert:k,access:a==null?void 0:a.access}),n=D(g({alert:k},a==null?void 0:a.__ACCESS__)),c=a?([e,t]=S(()=>new K(a).load()),e=yield e,t(),e):{},{__BASE_PATH__:h="/",history:A="hash",base:w="/",pageRouteName:y="page",remote:R,auth:b,checkVersion:F=!0,enhance:T}=a||{},q=()=>A==="hash",H=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);B.set("Switcher",{props:{onClick:s=>{const u=s.platform==="uniapp",p=location.pathname;let m=p===`${h}__vtj__/`?h:p;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const M=a.pageBasePath?`/${y}`:"",x=`${H(w)}${u?`pages${M}`:y}/${f.id}`;m=q()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),B.set("Previewer",{props:{path:(s,u)=>{const p=location.pathname;return u.platform==="uniapp"?`${p}uni/#/pages/${s.id}`:`${p}#/preview/${s.id}`}}});const $=new G(g({container:r,service:l,materialPath:h,pageBasePath:w==="/"?"":w,adapter:i,access:n,remote:R,auth:b,checkVersion:F,enhance:T},c));return $.ready(()=>d(null,null,function*(){yield C(300),$.openFile(_.query.id)})),X(()=>_.query.id,s=>d(null,null,function*(){yield C(300),$.openFile(s)})),(s,u)=>(Z(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=ee(te,[["__scopeId","data-v-79f08aff"]]);export{ge as default};
|