@vtj/pro 0.8.18 → 0.8.20
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/{material.json → vtj-plugin.json} +2 -2
- package/dist/.vtj/vtj-plugin.umd.js +1 -0
- 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/ui/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 +19 -19
- package/dist/assets/{index-Chc-Pc_0.js → index-B1Ihy4_f.js} +2 -2
- package/dist/assets/{index-BAvDRS6h.js → index-CBDtj0Yl.js} +1 -1
- package/dist/assets/{index-Js95K7pU.js → index-Me_Kz7Be.js} +53 -53
- package/dist/assets/{preview-CZsziOI8.js → preview-BNLiazMl.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +11 -11
- package/dist/.vtj/plugin-ckeditor.css +0 -1
- package/dist/.vtj/plugin-ckeditor.json +0 -33
- package/dist/.vtj/plugin-ckeditor.umd.js +0 -7907
- package/dist/.vtj/plugin-example.css +0 -1
- package/dist/.vtj/plugin-example.json +0 -86
- package/dist/.vtj/plugin-example.umd.js +0 -1
- package/dist/.vtj/test.json +0 -33
- package/dist/.vtj/vtj-block-example.umd.js +0 -1
- /package/dist/.vtj/{style.css → vtj-plugin.css} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__fileDeps=["./index-
|
|
2
|
-
import{d as f,S as n,u as p,ai as d,o as a,U as c,aF as _,_ as h,at as y}from"./@vue-BqUEC4nt.js";import{z as v,E as g}from"./element-plus-ByDLuWeo.js";import{_ as m}from"./monaco-editor-DwlLClUG.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-C0aQ2sXg.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(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 o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-
|
|
1
|
+
const __vite__fileDeps=["./index-CBDtj0Yl.js","./vue-router-C0aQ2sXg.js","./@vue-BqUEC4nt.js","./element-plus-ByDLuWeo.js","./lodash-es-iLqVnzBD.js","./@vueuse-_ZvYO2pC.js","./@element-plus-BsPJl5CN.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-DfU76eP9.js","./element-plus-Dj7XYlV7.css","./index-Me_Kz7Be.js","./monaco-editor-DwlLClUG.js","./monaco-editor-BgBQhOSF.css","./vue-CcxMod4L.js","./mockjs-IStUBvTQ.js","./index-pPiycE5T.css","./index-D9EpXQVL.css","./preview-BNLiazMl.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{d as f,S as n,u as p,ai as d,o as a,U as c,aF as _,_ as h,at as y}from"./@vue-BqUEC4nt.js";import{z as v,E as g}from"./element-plus-ByDLuWeo.js";import{_ as m}from"./monaco-editor-DwlLClUG.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-C0aQ2sXg.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(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 o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-CBDtj0Yl.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:()=>m(()=>import("./preview-BNLiazMl.js"),__vite__mapDeps([22,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=Object.defineProperty;var h=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var f=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,p=(r,t)=>{for(var e in t||(t={}))v.call(t,e)&&f(r,e,t[e]);if(h)for(var e of h(t))x.call(t,e)&&f(r,e,t[e]);return r};var _=(r,t,e)=>(f(r,typeof t!="symbol"?t+"":t,e),e);var w=(r,t,e)=>new Promise((o,a)=>{var i=s=>{try{c(e.next(s))}catch(n){a(n)}},l=s=>{try{c(e.throw(s))}catch(n){a(n)}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,l);c((e=e.apply(r,t)).next())});import{useRoute as b}from"./vue-router-C0aQ2sXg.js";import{a as j}from"./element-plus-ByDLuWeo.js";import{V as P,a as k,b as B,L as E,o as O,B as $,c as C,d as F,r as I,j as y,e as J,M as R}from"./index-
|
|
1
|
+
var g=Object.defineProperty;var h=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var f=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,p=(r,t)=>{for(var e in t||(t={}))v.call(t,e)&&f(r,e,t[e]);if(h)for(var e of h(t))x.call(t,e)&&f(r,e,t[e]);return r};var _=(r,t,e)=>(f(r,typeof t!="symbol"?t+"":t,e),e);var w=(r,t,e)=>new Promise((o,a)=>{var i=s=>{try{c(e.next(s))}catch(n){a(n)}},l=s=>{try{c(e.throw(s))}catch(n){a(n)}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,l);c((e=e.apply(r,t)).next())});import{useRoute as b}from"./vue-router-C0aQ2sXg.js";import{a as j}from"./element-plus-ByDLuWeo.js";import{V as P,a as k,b as B,L as E,o as O,B as $,c as C,d as F,r as I,j as y,e as J,M as R}from"./index-Me_Kz7Be.js";import{V as T}from"./vue-CcxMod4L.js";import{d as q,r as M,bO as V,f as U,c as A,o as L}from"./@vue-BqUEC4nt.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";import"./monaco-editor-DwlLClUG.js";import"./mockjs-IStUBvTQ.js";class S{constructor(t){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);const e=p(p(p({},C),F),I);window.Vue=T,window.__VTJ_PRO__=e,window.VtjUtils=P,window.VtjIcons=k,window.ElementPlus=j;const{urls:o,library:a,params:i=[]}=t;this.urls=o,this.library=a,this.params=i}load(){return w(this,null,function*(){const t=this.urls.filter(o=>B(o)),e=this.urls.filter(o=>E(o));if(O(t),e.length){const o=yield $(e,this.library).catch(()=>null);if(o&&typeof o=="function")return o.apply(o,this.params)}})}}const z=q({__name:"index",setup(r){return w(this,null,function*(){let t,e;const o=b(),a=M(),i=new R,l=([t,e]=V(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),c=l?([t,e]=V(()=>new S(l).load()),t=yield t,e(),t):void 0;y.set("Switcher",{props:{onClick:n=>{const m=location.pathname;let d=m==="/@vtj/pro/"?"/":m;const u=n.currentFile;u&&u.type==="page"&&n.homepage!==u.id&&(d=`${d}#/page/${u.id}`),window.open(d,"VTJProject")}}}),y.set("Previewer",{props:{path:n=>`${location.pathname}#/preview/${n.id}`}});const s=new J(p({container:a,service:i},c));return s.ready(()=>{s.openFile(o.query.id)}),U(()=>o.query.id,n=>{s.openFile(n)}),(n,m)=>(L(),A("div",{class:"designer",ref_key:"container",ref:a},null,512))})}}),D=(r,t)=>{const e=r.__vccOpts||r;for(const[o,a]of t)e[o]=a;return e},pt=D(z,[["__scopeId","data-v-b233af06"]]);export{pt as default};
|