mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(magic-admin): 修复发布页面资源路径错误,导致页面无法打开问题
This commit is contained in:
parent
f2893880b1
commit
7dc0b4e261
1
magic-admin/server/.gitignore
vendored
1
magic-admin/server/.gitignore
vendored
@ -5,5 +5,6 @@ package.json.lock
|
||||
coverage
|
||||
.vscode
|
||||
assets
|
||||
!runtime/assets
|
||||
src/config/database.ts
|
||||
src/config/key.ts
|
||||
|
5
magic-admin/server/package-lock.json
generated
5
magic-admin/server/package-lock.json
generated
@ -9265,6 +9265,11 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"tslib": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
|
||||
"integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ=="
|
||||
},
|
||||
"tsscmp": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://mirrors.tencent.com/npm/tsscmp/-/tsscmp-1.0.6.tgz",
|
||||
|
9
magic-admin/server/runtime/assets/comp-entry.4b446d21.js
Normal file
9
magic-admin/server/runtime/assets/comp-entry.4b446d21.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
magic-admin/server/runtime/assets/config.js
Normal file
2
magic-admin/server/runtime/assets/config.js
Normal file
@ -0,0 +1,2 @@
|
||||
var t=[{text:"\u9875\u9762\u6807\u8BC6",name:"name",disabled:!0,extra:"\u5728\u591A\u9875\u9762\u7684\u60C5\u51B5\u4E0B\u7528\u6765\u6307\u5B9A\u8981\u6253\u5F00\u7684\u9875\u9762"},{text:"\u9875\u9762\u6807\u9898",name:"title"},{name:"layout",text:"\u5BB9\u5668\u5E03\u5C40",type:"select",defaultValue:"absolute",options:[{value:"absolute",text:"\u7EDD\u5BF9\u5B9A\u4F4D"},{value:"relative",text:"\u6D41\u5F0F\u5E03\u5C40"}]}],e=[{name:"layout",text:"\u5BB9\u5668\u5E03\u5C40",type:"select",defaultValue:"absolute",options:[{value:"absolute",text:"\u7EDD\u5BF9\u5B9A\u4F4D"},{value:"relative",text:"\u6D41\u5F0F\u5E03\u5C40"}]}],a=[{text:"\u6587\u672C",name:"text"}],l=[{name:"text",text:"\u6587\u672C"},{name:"multiple",text:"\u591A\u884C\u6587\u672C",type:"switch"}],n=[{text:"\u56FE\u7247",name:"src"},{text:"\u94FE\u63A5",name:"url"}],o=[{text:"\u94FE\u63A5",name:"url"}],r=[];(function(){const u={page:t,container:e,button:a,text:l,img:n,qrcode:o,overlay:r};window.magicPresetConfigs=u})();
|
||||
//# sourceMappingURL=config.js.map
|
1
magic-admin/server/runtime/assets/config.js.map
Normal file
1
magic-admin/server/runtime/assets/config.js.map
Normal file
File diff suppressed because one or more lines are too long
2
magic-admin/server/runtime/assets/event.js
Normal file
2
magic-admin/server/runtime/assets/event.js
Normal file
@ -0,0 +1,2 @@
|
||||
var u={methods:[{label:"\u5237\u65B0\u9875\u9762",value:"refresh"}]},l={methods:[{label:"\u6253\u5F00\u8499\u5C42",value:"openOverlay"},{label:"\u5173\u95ED\u8499\u5C42",value:"closeOverlay"}],events:[{label:"\u6253\u5F00\u8499\u5C42",value:"overlay:open"},{label:"\u5173\u95ED\u8499\u5C42",value:"overlay:close"}]};(function(){const e={page:u,overlay:l};window.magicPresetEvents=e})();
|
||||
//# sourceMappingURL=event.js.map
|
1
magic-admin/server/runtime/assets/event.js.map
Normal file
1
magic-admin/server/runtime/assets/event.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"event.js","sources":["../../../../packages/ui/src/page/src/event.ts","../../../../packages/ui/src/overlay/src/event.ts","../../src/event-entry.ts"],"sourcesContent":["export default {\n methods: [\n {\n label: '刷新页面',\n value: 'refresh',\n },\n ],\n};\n","export default {\n methods: [\n {\n label: '打开蒙层',\n value: 'openOverlay',\n },\n {\n label: '关闭蒙层',\n value: 'closeOverlay',\n },\n ],\n events: [\n {\n label: '打开蒙层',\n value: 'overlay:open',\n },\n {\n label: '关闭蒙层',\n value: 'overlay:close',\n },\n ],\n};\n","import page from '/data/magic/tmagic-editor/packages/ui/src/page/src/event';\nimport overlay from '/data/magic/tmagic-editor/packages/ui/src/overlay/src/event';\n\n(function() {\n const events: Record<string, any> = {\n 'page': page,\n 'overlay': overlay,\n };\n\n window.magicPresetEvents = events;\n})();"],"names":[],"mappings":"AAAA,GAAe,GAAA,CACb,QAAS,CACP,CACE,MAAO,2BACP,MAAO,SACT,CACF,CACF,ECPe,EAAA,CACb,QAAS,CACP,CACE,MAAO,2BACP,MAAO,aACT,EACA,CACE,MAAO,2BACP,MAAO,cACT,CACF,EACA,OAAQ,CACN,CACE,MAAO,2BACP,MAAO,cACT,EACA,CACE,MAAO,2BACP,MAAO,eACT,CACF,CACF,EClBC,AAAW,WAAA,CACV,KAAM,GAA8B,CAClC,KAAQ,EACR,QAAW,CAAA,EAGb,OAAO,kBAAoB,CAC7B,GAAG"}
|
4
magic-admin/server/runtime/assets/page.js
Normal file
4
magic-admin/server/runtime/assets/page.js
Normal file
File diff suppressed because one or more lines are too long
1
magic-admin/server/runtime/assets/page.js.map
Normal file
1
magic-admin/server/runtime/assets/page.js.map
Normal file
File diff suppressed because one or more lines are too long
2
magic-admin/server/runtime/assets/playground.js
Normal file
2
magic-admin/server/runtime/assets/playground.js
Normal file
@ -0,0 +1,2 @@
|
||||
import{A as g,a as m,_ as h}from"./plugin-vue_export-helper.8f6f5b47.js";const v="modulepreload",f={},w="/tmagic-editor/playground/runtime/vue3/",E=function(s,c){return!c||c.length===0?s():Promise.all(c.map(r=>{if(r=`${w}${r}`,r in f)return;f[r]=!0;const t=r.endsWith(".css"),i=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${i}`))return;const e=document.createElement("link");if(e.rel=t?"stylesheet":v,t||(e.as="script",e.crossOrigin=""),e.href=r,document.head.appendChild(e),t)return new Promise((n,u)=>{e.addEventListener("load",n),e.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>s())};const _=Vue.defineComponent({setup(){const o=Vue.ref(),s=Vue.ref(),c=Vue.ref(),r=Vue.computed(()=>{var i,e,n,u;return((e=(i=o.value)==null?void 0:i.items)==null?void 0:e.find(a=>a.id===s.value))||((u=(n=o.value)==null?void 0:n.items)==null?void 0:u[0])}),t=new g({config:o.value,platform:"editor"});return Vue.provide("app",t),Vue.watch(r,async()=>{await Vue.nextTick();const i=document.querySelector(".magic-ui-page");i&&window.magic.onPageElUpdate(i)}),Vue.onMounted(()=>{var i;(i=window.magic)==null||i.onRuntimeReady({getApp(){return t},updateRootConfig(e){console.log("update config",e),o.value=e,t==null||t.setConfig(e,s.value)},updatePageId(e){console.log("update page id",e),s.value=e,t==null||t.setPage(e)},getSnapElements(){return Array.from(document.querySelectorAll("[class*=magic-ui][id]"))},select(e){console.log("select config",e),c.value=e;const n=document.getElementById(`${e}`);return n||Vue.nextTick().then(()=>document.getElementById(`${e}`))},add({config:e}){var l;if(console.log("add config",e),!o.value)throw new Error("error");if(!c.value)throw new Error("error");const n=m(c.value,[o.value]),u=n.pop(),a=u!=null&&u.items?u:n.pop();if(!a)throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");(l=a.items)==null||l.push(e)},update({config:e}){var p;if(console.log("update config",e),!o.value)throw new Error("error");const n=m(e.id,[o.value]),u=n.pop(),a=n.pop();if(!u)throw new Error("\u672A\u627E\u5230\u76EE\u6807\u8282\u70B9");if(!a)throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");const l=(p=a.items)==null?void 0:p.findIndex(d=>d.id===u.id);a.items.splice(l,1,Vue.reactive(e))},remove({id:e}){var p;if(!o.value)throw new Error("error");const n=m(e,[o.value]),u=n.pop();if(!u)throw new Error("\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20");const a=n.pop();if(!a)throw new Error("\u672A\u627E\u5230\u7236\u5143\u7D20");const l=(p=a.items)==null?void 0:p.findIndex(d=>d.id===u.id);a.items.splice(l,1)}})}),{pageConfig:r}}});function V(o,s,c,r,t,i){const e=Vue.resolveComponent("magic-ui-page");return o.pageConfig?(Vue.openBlock(),Vue.createBlock(e,{key:0,config:o.pageConfig},null,8,["config"])):Vue.createCommentVNode("",!0)}var y=h(_,[["render",V]]);E(()=>import("./comp-entry.4b446d21.js"),["assets/comp-entry.4b446d21.js","assets/plugin-vue_export-helper.8f6f5b47.js"]).then(o=>{const{components:s,plugins:c}=o.default,r=Vue.createApp(y);Object.values(s).forEach(t=>{r.component(t.name,t)}),Object.values(c).forEach(t=>{r.use(t)}),r.mount("#app")});
|
||||
//# sourceMappingURL=playground.js.map
|
1
magic-admin/server/runtime/assets/playground.js.map
Normal file
1
magic-admin/server/runtime/assets/playground.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
magic-admin/server/runtime/assets/style.6555bdb0.css
Normal file
1
magic-admin/server/runtime/assets/style.6555bdb0.css
Normal file
@ -0,0 +1 @@
|
||||
#app::-webkit-scrollbar{width:0!important;display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]{-webkit-appearance:none;-moz-appearance:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}textarea{overflow:auto;vertical-align:top;resize:vertical}audio,canvas,video{display:inline-block;*display: inline;*zoom: 1;max-width:100%}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted}a:active,a:hover{outline:0}img{border:0;-ms-interpolation-mode:bicubic}figure{margin:0}form{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left: -7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align: middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;*overflow: visible}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0;*height: 13px;*width: 13px}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}html,button,input,select,textarea{color:#222}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}html,body,#app{width:100%;height:100%}#app{position:relative;overflow:auto}#app::-webkit-scrollbar{width:0}.magic-ui-container{background-color:#88888880}.action-area{background-color:#3399ff80!important}
|
2
magic-admin/server/runtime/assets/value.js
Normal file
2
magic-admin/server/runtime/assets/value.js
Normal file
@ -0,0 +1,2 @@
|
||||
var e={items:[],style:{width:"100%",height:"100%"}},i={items:[],style:{width:"375",height:"100"}},u={text:"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",multiple:!0,style:{width:"270",height:"37.5",border:0,backgroundColor:"#fb6f00"}},o={type:"text",text:"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",multiple:!0,style:{width:"100",height:"auto"}},l={src:"https://puui.qpic.cn/vupload/0/1573555382625_bhp0wud8l6w.png/0",url:"",style:{position:"absolute",left:"57",width:"176",height:"176"}},r={url:"https://m.film.qq.com",style:{position:"absolute",left:"57",width:"176",height:"176"}},h={style:{position:"fixed",width:"100%",height:"100%",top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.8)"},items:[]};(function(){const t={page:e,container:i,button:u,text:o,img:l,qrcode:r,overlay:h};window.magicPresetValues=t})();
|
||||
//# sourceMappingURL=value.js.map
|
1
magic-admin/server/runtime/assets/value.js.map
Normal file
1
magic-admin/server/runtime/assets/value.js.map
Normal file
File diff suppressed because one or more lines are too long
17
magic-admin/server/runtime/page.html
Normal file
17
magic-admin/server/runtime/page.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vue3 Page</title>
|
||||
<script src="https://unpkg.com/vue@next/dist/vue.runtime.global.js"></script>
|
||||
<script type="module" crossorigin src="/runtime/assets/page.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/assets/plugin-vue_export-helper.8f6f5b47.js">
|
||||
<link rel="modulepreload" href="/runtime/assets/comp-entry.4b446d21.js">
|
||||
<link rel="stylesheet" href="/runtime/assets/style.6555bdb0.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
33
magic-admin/server/runtime/playground.html
Normal file
33
magic-admin/server/runtime/playground.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" style="font-size: 100px">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vue3 Playground</title>
|
||||
<style>
|
||||
html{-ms-overflow-style: none; overflow: -moz-scrollbars-none;}
|
||||
html,body {height: 100%; margin: 0; padding: 0}
|
||||
body {
|
||||
height: fit-content;
|
||||
min-height: 100%;
|
||||
}
|
||||
html::-webkit-scrollbar, .body::-webkit-scrollbar { width: 0 !important }
|
||||
.magic-ui-page {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/runtime/assets/playground.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/assets/plugin-vue_export-helper.8f6f5b47.js">
|
||||
<link rel="stylesheet" href="/runtime/assets/style.6555bdb0.css">
|
||||
</head>
|
||||
<body style="font-size: 14px">
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
|
||||
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -35,6 +35,7 @@ export enum PageStatus {
|
||||
export const StaticPath = {
|
||||
ASSETS: path.resolve(__dirname, '../../assets'),
|
||||
TEMPLATE: path.resolve(__dirname, '../template'),
|
||||
RUNTIME: path.resolve(__dirname, '../../runtime'),
|
||||
PUBLISH: path.resolve(__dirname, '../../assets/publish'),
|
||||
};
|
||||
|
||||
|
@ -29,6 +29,13 @@ router.get('/', async (ctx) => {
|
||||
await send(ctx, `${StaticPath.ASSETS}/index.html`, options);
|
||||
});
|
||||
|
||||
router.get('/runtime/*', async (ctx) => {
|
||||
const file = `${StaticPath.RUNTIME}/${ctx.params[0]}`;
|
||||
if (pathExistsSync(file)) {
|
||||
await send(ctx, file, options);
|
||||
}
|
||||
});
|
||||
|
||||
router.get('/*', async (ctx) => {
|
||||
const file = `${StaticPath.ASSETS}/${ctx.params[0]}`;
|
||||
if (pathExistsSync(file)) {
|
||||
|
@ -243,7 +243,7 @@ const publishHtml = (pageConfig: DivideConfigTrans) => {
|
||||
try {
|
||||
// 复制html模板
|
||||
const distHtml = `${StaticPath.PUBLISH}/${pageName}.html`;
|
||||
const tmpHtml = `${StaticPath.TEMPLATE}/publish/page-tmp.html`;
|
||||
const tmpHtml = `${StaticPath.RUNTIME}/page.html`;
|
||||
copySync(tmpHtml, distHtml);
|
||||
// 注入活动配置文件
|
||||
const configScript = `<script type='module' src='./uiconfig_${pageName}.js'></script>\n\t${UiRuntimeJS}`;
|
||||
|
@ -1,20 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Magic App</title>
|
||||
<script src="https://unpkg.com/vue@next/dist/vue.runtime.global.js"></script>
|
||||
<script type="module" crossorigin src="/runtime/vue3/assets/page.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/vendor.3f0d9265.js">
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/resetcss.b08d57c8.js">
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/plugin-vue_export-helper.3811b543.js">
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/components.js">
|
||||
<link rel="stylesheet" href="/runtime/vue3/assets/resetcss.52e41e6b.css">
|
||||
<link rel="stylesheet" href="/runtime/vue3/assets/page.6c73043b.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -56,7 +56,7 @@ const configTransformDist = (srcCode: string): string => {
|
||||
* @returns {string} 处理结果
|
||||
*/
|
||||
const processTransConfig = (transConfig) => {
|
||||
const code = `window.magicUiconfig = [${transConfig}]`;
|
||||
const code = `window.magicDSL = [${transConfig}]`;
|
||||
return uglifyJS.minify(`${code}`).code;
|
||||
};
|
||||
|
||||
|
@ -4,4 +4,3 @@ babel.config.js
|
||||
vue.config.js
|
||||
jest.config.js
|
||||
tscofnig.json
|
||||
public/runtime/
|
570
magic-admin/web/package-lock.json
generated
570
magic-admin/web/package-lock.json
generated
@ -28,6 +28,7 @@
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz",
|
||||
"integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/highlight": "^7.16.7"
|
||||
}
|
||||
@ -35,7 +36,8 @@
|
||||
"@babel/compat-data": {
|
||||
"version": "7.17.10",
|
||||
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.10.tgz",
|
||||
"integrity": "sha512-GZt/TCsG70Ms19gfZO1tM4CVnXsPgEPBCpJu+Qz3L0LUDsY5nZqFZglIoPC1kIYOtNBZlrnFT+klg12vFGZXrw=="
|
||||
"integrity": "sha512-GZt/TCsG70Ms19gfZO1tM4CVnXsPgEPBCpJu+Qz3L0LUDsY5nZqFZglIoPC1kIYOtNBZlrnFT+klg12vFGZXrw==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/core": {
|
||||
"version": "7.17.12",
|
||||
@ -209,6 +211,7 @@
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz",
|
||||
"integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.16.7"
|
||||
}
|
||||
@ -226,6 +229,7 @@
|
||||
"version": "7.17.9",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz",
|
||||
"integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/types": "^7.17.0"
|
||||
@ -235,6 +239,7 @@
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz",
|
||||
"integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.16.7"
|
||||
}
|
||||
@ -252,6 +257,7 @@
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz",
|
||||
"integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.16.7"
|
||||
}
|
||||
@ -315,6 +321,7 @@
|
||||
"version": "7.17.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.17.7.tgz",
|
||||
"integrity": "sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.17.0"
|
||||
}
|
||||
@ -332,6 +339,7 @@
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz",
|
||||
"integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.16.7"
|
||||
}
|
||||
@ -339,12 +347,14 @@
|
||||
"@babel/helper-validator-identifier": {
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz",
|
||||
"integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="
|
||||
"integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/helper-validator-option": {
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz",
|
||||
"integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ=="
|
||||
"integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/helper-wrap-function": {
|
||||
"version": "7.16.8",
|
||||
@ -373,6 +383,7 @@
|
||||
"version": "7.17.12",
|
||||
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.12.tgz",
|
||||
"integrity": "sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-validator-identifier": "^7.16.7",
|
||||
"chalk": "^2.0.0",
|
||||
@ -383,6 +394,7 @@
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"color-convert": "^1.9.0"
|
||||
}
|
||||
@ -391,6 +403,7 @@
|
||||
"version": "2.4.2",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ansi-styles": "^3.2.1",
|
||||
"escape-string-regexp": "^1.0.5",
|
||||
@ -400,12 +413,14 @@
|
||||
"has-flag": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
||||
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
|
||||
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
|
||||
"dev": true
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"has-flag": "^3.0.0"
|
||||
}
|
||||
@ -1233,6 +1248,7 @@
|
||||
"version": "7.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz",
|
||||
"integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.16.7",
|
||||
"@babel/parser": "^7.16.7",
|
||||
@ -1261,6 +1277,7 @@
|
||||
"version": "7.17.12",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.12.tgz",
|
||||
"integrity": "sha512-rH8i29wcZ6x9xjzI5ILHL/yZkbQnCERdHlogKuIb4PUr7do4iT8DPekrTbBLWTnRQm6U0GYABbTMSzijmEqlAg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-validator-identifier": "^7.16.7",
|
||||
"to-fast-properties": "^2.0.0"
|
||||
@ -1278,9 +1295,9 @@
|
||||
"integrity": "sha512-ej5oVy6lykXsvieQtqZxCOaLT+xD4+QNarq78cIYISHmZXshCvROLudpQN3lfL8G0NL7plMSSK+zlyvCaIJ4Iw=="
|
||||
},
|
||||
"@daybrush/utils": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.7.0.tgz",
|
||||
"integrity": "sha512-52QInHXL1tffnEIxURWav7ZoIdhiK6ioQr2tzitZr8Uul0g3X58jdyDG7UeqCAFnbH4bZUp0QSznPSX8fHdZZQ=="
|
||||
"version": "1.7.1",
|
||||
"resolved": "https://registry.npmjs.org/@daybrush/utils/-/utils-1.7.1.tgz",
|
||||
"integrity": "sha512-ruVDIfXeVAF4s0RxJoNx5hTjxlIRMnKoJ7N5e2m9eDyluIXB12EvhMPQdoq4a/ohJ+cPgj2MiWS5Lvmpsrx8Gg=="
|
||||
},
|
||||
"@egjs/agent": {
|
||||
"version": "2.4.2",
|
||||
@ -1306,9 +1323,9 @@
|
||||
"integrity": "sha512-iKQXSxXu131Ai+I9Ymtcof9WId7kaXvB1+WRfAfpQCW7UiAMYgdNDqb/u0hgTo2Yq3MwC4MWJnNuTBEpG8r7+A=="
|
||||
},
|
||||
"@element-plus/icons-vue": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@element-plus/icons-vue/-/icons-vue-1.1.4.tgz",
|
||||
"integrity": "sha512-Iz/nHqdp1sFPmdzRwHkEQQA3lKvoObk8azgABZ81QUOpW9s/lUyQVUSh0tNtEPZXQlKwlSh7SPgoVxzrE0uuVQ=="
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@element-plus/icons-vue/-/icons-vue-2.0.6.tgz",
|
||||
"integrity": "sha512-lPpG8hYkjL/Z97DH5Ei6w6o22Z4YdNglWCNYOPcB33JCF2A4wye6HFgSI7hEt9zdLyxlSpiqtgf9XcYU+m5mew=="
|
||||
},
|
||||
"@eslint/eslintrc": {
|
||||
"version": "0.4.3",
|
||||
@ -1374,16 +1391,16 @@
|
||||
}
|
||||
},
|
||||
"@floating-ui/core": {
|
||||
"version": "0.6.2",
|
||||
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-0.6.2.tgz",
|
||||
"integrity": "sha512-jktYRmZwmau63adUG3GKOAVCofBXkk55S/zQ94XOorAHhwqFIOFAy1rSp2N0Wp6/tGbe9V3u/ExlGZypyY17rg=="
|
||||
"version": "0.7.3",
|
||||
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-0.7.3.tgz",
|
||||
"integrity": "sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg=="
|
||||
},
|
||||
"@floating-ui/dom": {
|
||||
"version": "0.4.5",
|
||||
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-0.4.5.tgz",
|
||||
"integrity": "sha512-b+prvQgJt8pieaKYMSJBXHxX/DYwdLsAWxKYqnO5dO2V4oo/TYBZJAUQCVNjTWWsrs6o4VDrNcP9+E70HAhJdw==",
|
||||
"version": "0.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-0.5.4.tgz",
|
||||
"integrity": "sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==",
|
||||
"requires": {
|
||||
"@floating-ui/core": "^0.6.2"
|
||||
"@floating-ui/core": "^0.7.3"
|
||||
}
|
||||
},
|
||||
"@hapi/hoek": {
|
||||
@ -1731,6 +1748,11 @@
|
||||
"integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==",
|
||||
"dev": true
|
||||
},
|
||||
"@popperjs/core": {
|
||||
"version": "npm:@sxzz/popperjs-es@2.11.7",
|
||||
"resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz",
|
||||
"integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ=="
|
||||
},
|
||||
"@scena/dragscroll": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@scena/dragscroll/-/dragscroll-1.1.1.tgz",
|
||||
@ -1870,29 +1892,29 @@
|
||||
"dev": true
|
||||
},
|
||||
"@tmagic/core": {
|
||||
"version": "1.0.0-rc.7",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/core/-/core-1.0.0-rc.7.tgz",
|
||||
"integrity": "sha512-Dy9gBJxusP/glrWi2xLFQyeCjSBV3GqaId4qPxIVv4vQMNiZD4FfzfzEyYUZQ0BKlM5Pe2w+QO7AbHK72osV+w==",
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/core/-/core-1.0.5.tgz",
|
||||
"integrity": "sha512-U7FbTQJiAkivzp4/F2xjEUAQlnp9jvr0q6BQJu6JZl0ctS4xZ1+lE0OovxKxbEgdiAtRCfl5xdB3+ipQySJ87A==",
|
||||
"requires": {
|
||||
"@tmagic/schema": "1.0.0-rc.7",
|
||||
"@tmagic/schema": "1.0.5",
|
||||
"events": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"@tmagic/editor": {
|
||||
"version": "1.0.0-rc.7",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/editor/-/editor-1.0.0-rc.7.tgz",
|
||||
"integrity": "sha512-FQ0mMWDa1pqVwbMh+3rHcJkZ1J+S5ZiEvIzt6MWjFy/kiHTmANcKkTBPy7DEQgCQGwxLdrxtRkf9r0XHXb19zQ==",
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/editor/-/editor-1.0.5.tgz",
|
||||
"integrity": "sha512-Q4L2j6s0bUjFg/ABc5QZ1jyFt0YHmbCySIssWG0ddPNAFm9VJS9GZ6HraqAHpWx2xBAr61ny7FqfZVbgOvnKFg==",
|
||||
"requires": {
|
||||
"@babel/core": "^7.18.0",
|
||||
"@element-plus/icons": "0.0.11",
|
||||
"@tmagic/core": "1.0.0-rc.7",
|
||||
"@tmagic/form": "1.0.0-rc.7",
|
||||
"@tmagic/schema": "1.0.0-rc.7",
|
||||
"@tmagic/stage": "1.0.0-rc.7",
|
||||
"@tmagic/utils": "1.0.0-rc.7",
|
||||
"@tmagic/core": "1.0.5",
|
||||
"@tmagic/form": "1.0.5",
|
||||
"@tmagic/schema": "1.0.5",
|
||||
"@tmagic/stage": "1.0.5",
|
||||
"@tmagic/utils": "1.0.5",
|
||||
"buffer": "^6.0.3",
|
||||
"color": "^3.1.3",
|
||||
"element-plus": "^2.2.0",
|
||||
"element-plus": "^2.2.6",
|
||||
"events": "^3.3.0",
|
||||
"gesto": "^1.7.0",
|
||||
"keycon": "^1.1.2",
|
||||
@ -1902,21 +1924,34 @@
|
||||
"vue": "^3.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/code-frame": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",
|
||||
"integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==",
|
||||
"requires": {
|
||||
"@babel/highlight": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/compat-data": {
|
||||
"version": "7.18.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.8.tgz",
|
||||
"integrity": "sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ=="
|
||||
},
|
||||
"@babel/core": {
|
||||
"version": "7.18.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.5.tgz",
|
||||
"integrity": "sha512-MGY8vg3DxMnctw0LdvSEojOsumc70g0t18gNyUdAZqB1Rpd1Bqo/svHGvt+UJ6JcGX+DIekGFDxxIWofBxLCnQ==",
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.6.tgz",
|
||||
"integrity": "sha512-cQbWBpxcbbs/IUredIPkHiAGULLV8iwgNRMFzvbhEXISp4f3rUUXE5+TIw6KwUWUR3DwyI6gmBRnmAtYaWehwQ==",
|
||||
"requires": {
|
||||
"@ampproject/remapping": "^2.1.0",
|
||||
"@babel/code-frame": "^7.16.7",
|
||||
"@babel/generator": "^7.18.2",
|
||||
"@babel/helper-compilation-targets": "^7.18.2",
|
||||
"@babel/helper-module-transforms": "^7.18.0",
|
||||
"@babel/helpers": "^7.18.2",
|
||||
"@babel/parser": "^7.18.5",
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/traverse": "^7.18.5",
|
||||
"@babel/types": "^7.18.4",
|
||||
"@babel/code-frame": "^7.18.6",
|
||||
"@babel/generator": "^7.18.6",
|
||||
"@babel/helper-compilation-targets": "^7.18.6",
|
||||
"@babel/helper-module-transforms": "^7.18.6",
|
||||
"@babel/helpers": "^7.18.6",
|
||||
"@babel/parser": "^7.18.6",
|
||||
"@babel/template": "^7.18.6",
|
||||
"@babel/traverse": "^7.18.6",
|
||||
"@babel/types": "^7.18.6",
|
||||
"convert-source-map": "^1.7.0",
|
||||
"debug": "^4.1.0",
|
||||
"gensync": "^1.0.0-beta.2",
|
||||
@ -1925,114 +1960,214 @@
|
||||
}
|
||||
},
|
||||
"@babel/generator": {
|
||||
"version": "7.18.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.2.tgz",
|
||||
"integrity": "sha512-W1lG5vUwFvfMd8HVXqdfbuG7RuaSrTCCD8cl8fP8wOivdbtbIg2Db3IWUcgvfxKbbn6ZBGYRW/Zk1MIwK49mgw==",
|
||||
"version": "7.18.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.7.tgz",
|
||||
"integrity": "sha512-shck+7VLlY72a2w9c3zYWuE1pwOKEiQHV7GTUbSnhyl5eu3i04t30tBY82ZRWrDfo3gkakCFtevExnxbkf2a3A==",
|
||||
"requires": {
|
||||
"@babel/types": "^7.18.2",
|
||||
"@jridgewell/gen-mapping": "^0.3.0",
|
||||
"@babel/types": "^7.18.7",
|
||||
"@jridgewell/gen-mapping": "^0.3.2",
|
||||
"jsesc": "^2.5.1"
|
||||
}
|
||||
},
|
||||
"@babel/helper-compilation-targets": {
|
||||
"version": "7.18.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.2.tgz",
|
||||
"integrity": "sha512-s1jnPotJS9uQnzFtiZVBUxe67CuBa679oWFHpxYYnTpRL/1ffhyX44R9uYiXoa/pLXcY9H2moJta0iaanlk/rQ==",
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.6.tgz",
|
||||
"integrity": "sha512-vFjbfhNCzqdeAtZflUFrG5YIFqGTqsctrtkZ1D/NB0mDW9TwW3GmmUepYY4G9wCET5rY5ugz4OGTcLd614IzQg==",
|
||||
"requires": {
|
||||
"@babel/compat-data": "^7.17.10",
|
||||
"@babel/helper-validator-option": "^7.16.7",
|
||||
"@babel/compat-data": "^7.18.6",
|
||||
"@babel/helper-validator-option": "^7.18.6",
|
||||
"browserslist": "^4.20.2",
|
||||
"semver": "^6.3.0"
|
||||
}
|
||||
},
|
||||
"@babel/helper-module-transforms": {
|
||||
"version": "7.18.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.0.tgz",
|
||||
"integrity": "sha512-kclUYSUBIjlvnzN2++K9f2qzYKFgjmnmjwL4zlmU5f8ZtzgWe8s0rUPSTGy2HmK4P8T52MQsS+HTQAgZd3dMEA==",
|
||||
"@babel/helper-environment-visitor": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.6.tgz",
|
||||
"integrity": "sha512-8n6gSfn2baOY+qlp+VSzsosjCVGFqWKmDF0cCWOybh52Dw3SEyoWR1KrhMJASjLwIEkkAufZ0xvr+SxLHSpy2Q=="
|
||||
},
|
||||
"@babel/helper-function-name": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.18.6.tgz",
|
||||
"integrity": "sha512-0mWMxV1aC97dhjCah5U5Ua7668r5ZmSC2DLfH2EZnf9c3/dHZKiFa5pRLMH5tjSl471tY6496ZWk/kjNONBxhw==",
|
||||
"requires": {
|
||||
"@babel/helper-environment-visitor": "^7.16.7",
|
||||
"@babel/helper-module-imports": "^7.16.7",
|
||||
"@babel/helper-simple-access": "^7.17.7",
|
||||
"@babel/helper-split-export-declaration": "^7.16.7",
|
||||
"@babel/helper-validator-identifier": "^7.16.7",
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/traverse": "^7.18.0",
|
||||
"@babel/types": "^7.18.0"
|
||||
"@babel/template": "^7.18.6",
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/helpers": {
|
||||
"version": "7.18.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.2.tgz",
|
||||
"integrity": "sha512-j+d+u5xT5utcQSzrh9p+PaJX94h++KN+ng9b9WEJq7pkUPAd61FGqhjuUEdfknb3E/uDBb7ruwEeKkIxNJPIrg==",
|
||||
"@babel/helper-hoist-variables": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz",
|
||||
"integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==",
|
||||
"requires": {
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/traverse": "^7.18.2",
|
||||
"@babel/types": "^7.18.2"
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/helper-module-imports": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz",
|
||||
"integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==",
|
||||
"requires": {
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/helper-module-transforms": {
|
||||
"version": "7.18.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.8.tgz",
|
||||
"integrity": "sha512-che3jvZwIcZxrwh63VfnFTUzcAM9v/lznYkkRxIBGMPt1SudOKHAEec0SIRCfiuIzTcF7VGj/CaTT6gY4eWxvA==",
|
||||
"requires": {
|
||||
"@babel/helper-environment-visitor": "^7.18.6",
|
||||
"@babel/helper-module-imports": "^7.18.6",
|
||||
"@babel/helper-simple-access": "^7.18.6",
|
||||
"@babel/helper-split-export-declaration": "^7.18.6",
|
||||
"@babel/helper-validator-identifier": "^7.18.6",
|
||||
"@babel/template": "^7.18.6",
|
||||
"@babel/traverse": "^7.18.8",
|
||||
"@babel/types": "^7.18.8"
|
||||
}
|
||||
},
|
||||
"@babel/helper-simple-access": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz",
|
||||
"integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==",
|
||||
"requires": {
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/helper-split-export-declaration": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz",
|
||||
"integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==",
|
||||
"requires": {
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/helper-validator-identifier": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz",
|
||||
"integrity": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g=="
|
||||
},
|
||||
"@babel/helper-validator-option": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz",
|
||||
"integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw=="
|
||||
},
|
||||
"@babel/helpers": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.6.tgz",
|
||||
"integrity": "sha512-vzSiiqbQOghPngUYt/zWGvK3LAsPhz55vc9XNN0xAl2gV4ieShI2OQli5duxWHD+72PZPTKAcfcZDE1Cwc5zsQ==",
|
||||
"requires": {
|
||||
"@babel/template": "^7.18.6",
|
||||
"@babel/traverse": "^7.18.6",
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/highlight": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz",
|
||||
"integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==",
|
||||
"requires": {
|
||||
"@babel/helper-validator-identifier": "^7.18.6",
|
||||
"chalk": "^2.0.0",
|
||||
"js-tokens": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"@babel/parser": {
|
||||
"version": "7.18.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.5.tgz",
|
||||
"integrity": "sha512-YZWVaglMiplo7v8f1oMQ5ZPQr0vn7HPeZXxXWsxXJRjGVrzUFn9OxFQl1sb5wzfootjA/yChhW84BV+383FSOw=="
|
||||
"version": "7.18.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.8.tgz",
|
||||
"integrity": "sha512-RSKRfYX20dyH+elbJK2uqAkVyucL+xXzhqlMD5/ZXx+dAAwpyB7HsvnHe/ZUGOF+xLr5Wx9/JoXVTj6BQE2/oA=="
|
||||
},
|
||||
"@babel/template": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.6.tgz",
|
||||
"integrity": "sha512-JoDWzPe+wgBsTTgdnIma3iHNFC7YVJoPssVBDjiHfNlyt4YcunDtcDOUmfVDfCK5MfdsaIoX9PkijPhjH3nYUw==",
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.18.6",
|
||||
"@babel/parser": "^7.18.6",
|
||||
"@babel/types": "^7.18.6"
|
||||
}
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.18.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.5.tgz",
|
||||
"integrity": "sha512-aKXj1KT66sBj0vVzk6rEeAO6Z9aiiQ68wfDgge3nHhA/my6xMM/7HGQUNumKZaoa2qUPQ5whJG9aAifsxUKfLA==",
|
||||
"version": "7.18.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.8.tgz",
|
||||
"integrity": "sha512-UNg/AcSySJYR/+mIcJQDCv00T+AqRO7j/ZEJLzpaYtgM48rMg5MnkJgyNqkzo88+p4tfRvZJCEiwwfG6h4jkRg==",
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.16.7",
|
||||
"@babel/generator": "^7.18.2",
|
||||
"@babel/helper-environment-visitor": "^7.18.2",
|
||||
"@babel/helper-function-name": "^7.17.9",
|
||||
"@babel/helper-hoist-variables": "^7.16.7",
|
||||
"@babel/helper-split-export-declaration": "^7.16.7",
|
||||
"@babel/parser": "^7.18.5",
|
||||
"@babel/types": "^7.18.4",
|
||||
"@babel/code-frame": "^7.18.6",
|
||||
"@babel/generator": "^7.18.7",
|
||||
"@babel/helper-environment-visitor": "^7.18.6",
|
||||
"@babel/helper-function-name": "^7.18.6",
|
||||
"@babel/helper-hoist-variables": "^7.18.6",
|
||||
"@babel/helper-split-export-declaration": "^7.18.6",
|
||||
"@babel/parser": "^7.18.8",
|
||||
"@babel/types": "^7.18.8",
|
||||
"debug": "^4.1.0",
|
||||
"globals": "^11.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/helper-environment-visitor": {
|
||||
"version": "7.18.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.2.tgz",
|
||||
"integrity": "sha512-14GQKWkX9oJzPiQQ7/J36FTXcD4kSp8egKjO9nINlSKiHITRA9q/R74qu8S9xlc/b/yjsJItQUeeh3xnGN0voQ=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/types": {
|
||||
"version": "7.18.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.4.tgz",
|
||||
"integrity": "sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==",
|
||||
"version": "7.18.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.8.tgz",
|
||||
"integrity": "sha512-qwpdsmraq0aJ3osLJRApsc2ouSJCdnMeZwB0DhbtHAtRpZNZCdlbRnHIgcRKzdE1g0iOGg644fzjOBcdOz9cPw==",
|
||||
"requires": {
|
||||
"@babel/helper-validator-identifier": "^7.16.7",
|
||||
"@babel/helper-validator-identifier": "^7.18.6",
|
||||
"to-fast-properties": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"@jridgewell/gen-mapping": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.1.tgz",
|
||||
"integrity": "sha512-GcHwniMlA2z+WFPWuY8lp3fsza0I8xPFMWL5+n8LYyP6PSvPrXf4+n8stDHZY2DM0zy9sVkRDy1jDI4XGzYVqg==",
|
||||
"version": "0.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
||||
"integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",
|
||||
"requires": {
|
||||
"@jridgewell/set-array": "^1.0.0",
|
||||
"@jridgewell/set-array": "^1.0.1",
|
||||
"@jridgewell/sourcemap-codec": "^1.4.10",
|
||||
"@jridgewell/trace-mapping": "^0.3.9"
|
||||
}
|
||||
},
|
||||
"ansi-styles": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
||||
"requires": {
|
||||
"color-convert": "^1.9.0"
|
||||
}
|
||||
},
|
||||
"chalk": {
|
||||
"version": "2.4.2",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
||||
"requires": {
|
||||
"ansi-styles": "^3.2.1",
|
||||
"escape-string-regexp": "^1.0.5",
|
||||
"supports-color": "^5.3.0"
|
||||
}
|
||||
},
|
||||
"has-flag": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
|
||||
"integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw=="
|
||||
},
|
||||
"semver": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
||||
"requires": {
|
||||
"has-flag": "^3.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@tmagic/form": {
|
||||
"version": "1.0.0-rc.7",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/form/-/form-1.0.0-rc.7.tgz",
|
||||
"integrity": "sha512-6vW1ap8Mdr1g7qZTYvLPg3QSfSYn1fOG8LmiTChVMmdDCxLyfVbeCEa7sjq414nHOv2edL/pjs0dlxkpEVjUgw==",
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/form/-/form-1.0.5.tgz",
|
||||
"integrity": "sha512-Gl9RqKI8RfSD95M1izFaAnHbE5HRm6ysIuA98jhpUPxDHJUNOqHwVqtOzLcHZxUleU2qj/18XuB9YQpmp99JlA==",
|
||||
"requires": {
|
||||
"@element-plus/icons": "0.0.11",
|
||||
"@tmagic/utils": "1.0.0-rc.7",
|
||||
"element-plus": "^2.2.0",
|
||||
"@tmagic/utils": "1.0.5",
|
||||
"element-plus": "^2.2.6",
|
||||
"lodash-es": "^4.17.21",
|
||||
"moment": "^2.29.2",
|
||||
"sortablejs": "^1.14.0",
|
||||
@ -2040,31 +2175,31 @@
|
||||
}
|
||||
},
|
||||
"@tmagic/schema": {
|
||||
"version": "1.0.0-rc.7",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/schema/-/schema-1.0.0-rc.7.tgz",
|
||||
"integrity": "sha512-e/LgrRzWDXIWvH6mUDf6njgv91VbuLw7JiJ+4L6C0G0SS3YR55Qqwkn+XmkmIeJmqNXV5xOe53ROCOEMRPDInw=="
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/schema/-/schema-1.0.5.tgz",
|
||||
"integrity": "sha512-gVIrRjc4HQ0y1386clujJrJVagkxfVRISvFRsdMhTiGT1Oi9cQy3OrP5vDFgZCkgPEmMbLR99/eRhFAHt+/rmw=="
|
||||
},
|
||||
"@tmagic/stage": {
|
||||
"version": "1.0.0-rc.7",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/stage/-/stage-1.0.0-rc.7.tgz",
|
||||
"integrity": "sha512-Y6HjQ/19wg/8J6snuheXXugpQknBA0BO9oBbUm3d8T0ZCS3/+mFKiAVrXmjx4tLlExMLmgokSmj8iL3eLFpD8A==",
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/stage/-/stage-1.0.5.tgz",
|
||||
"integrity": "sha512-iQ3ML0DK6BM+v2KLVLLMsTnEL690Nbo5tDF7rTOuR8qVcv0+Ip/Os7Q5ZBf5FBwJhxdXYq00CrL4BQhA8jd5dg==",
|
||||
"requires": {
|
||||
"@scena/guides": "^0.17.0",
|
||||
"@tmagic/core": "1.0.0-rc.7",
|
||||
"@tmagic/schema": "1.0.0-rc.7",
|
||||
"@tmagic/utils": "1.0.0-rc.7",
|
||||
"@tmagic/core": "1.0.5",
|
||||
"@tmagic/schema": "1.0.5",
|
||||
"@tmagic/utils": "1.0.5",
|
||||
"events": "^3.3.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"moveable": "^0.29.4",
|
||||
"moveable": "^0.30.0",
|
||||
"moveable-helper": "^0.4.0"
|
||||
}
|
||||
},
|
||||
"@tmagic/utils": {
|
||||
"version": "1.0.0-rc.7",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/utils/-/utils-1.0.0-rc.7.tgz",
|
||||
"integrity": "sha512-cCdRvUeP0vLHT+rGPWQZZQ7Lw8TPaOsmkw+FW0SUhyca4pGq+9p+9bW5Dfp7uIOrIV1oantJ1jRXywgWwoSGsA==",
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@tmagic/utils/-/utils-1.0.5.tgz",
|
||||
"integrity": "sha512-OYs4tFpLvDBsU9jfXzZFg2RWsAPGImuJ6rJvWu8IlMaoL14d1+xamHCYAEQVVC134j+slFPBJhm1lWqQLw9arw==",
|
||||
"requires": {
|
||||
"@tmagic/schema": "1.0.0-rc.7",
|
||||
"@tmagic/schema": "1.0.5",
|
||||
"moment": "^2.29.2"
|
||||
}
|
||||
},
|
||||
@ -2403,6 +2538,11 @@
|
||||
"integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/web-bluetooth": {
|
||||
"version": "0.0.14",
|
||||
"resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.14.tgz",
|
||||
"integrity": "sha512-5d2RhCard1nQUC3aHcq/gHzWYO6K0WJmAbjO7mQJgCQKtZpgXxv1rOM6O/dBDhDYYVutk1sciOgNSe+5YyfM8A=="
|
||||
},
|
||||
"@types/webpack-env": {
|
||||
"version": "1.16.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/webpack-env/-/webpack-env-1.16.4.tgz",
|
||||
@ -2849,52 +2989,11 @@
|
||||
"whatwg-fetch": "^3.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/vue-loader-v15": {
|
||||
"version": "npm:vue-loader@15.9.8",
|
||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.8.tgz",
|
||||
"integrity": "sha512-GwSkxPrihfLR69/dSV3+5CdMQ0D+jXg8Ma1S4nQXKJAznYFX14vHdc/NetQc34Dw+rBbIJyP7JOuVb9Fhprvog==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@vue/component-compiler-utils": "^3.1.0",
|
||||
"hash-sum": "^1.0.2",
|
||||
"loader-utils": "^1.1.0",
|
||||
"vue-hot-reload-api": "^2.3.0",
|
||||
"vue-style-loader": "^4.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"hash-sum": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
||||
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"acorn-walk": {
|
||||
"version": "8.2.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz",
|
||||
"integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==",
|
||||
"dev": true
|
||||
},
|
||||
"json5": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minimist": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"loader-utils": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
|
||||
"integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"big.js": "^5.2.2",
|
||||
"emojis-list": "^3.0.0",
|
||||
"json5": "^1.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -3094,6 +3193,47 @@
|
||||
"integrity": "sha512-wIJR4e/jISBKVKfiod3DV32BlDsoD744WVCuCaGtaSKvhvTL9gI5vl2AYSy00V51YaM8dCOFi3zcpCON8G1WqA==",
|
||||
"dev": true
|
||||
},
|
||||
"@vue/vue-loader-v15": {
|
||||
"version": "npm:vue-loader@15.10.0",
|
||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.0.tgz",
|
||||
"integrity": "sha512-VU6tuO8eKajrFeBzMssFUP9SvakEeeSi1BxdTH5o3+1yUyrldp8IERkSdXlMI2t4kxF2sqYUDsQY+WJBxzBmZg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@vue/component-compiler-utils": "^3.1.0",
|
||||
"hash-sum": "^1.0.2",
|
||||
"loader-utils": "^1.1.0",
|
||||
"vue-hot-reload-api": "^2.3.0",
|
||||
"vue-style-loader": "^4.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"hash-sum": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
||||
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
|
||||
"dev": true
|
||||
},
|
||||
"json5": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minimist": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"loader-utils": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
|
||||
"integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"big.js": "^5.2.2",
|
||||
"emojis-list": "^3.0.0",
|
||||
"json5": "^1.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@vue/vue3-jest": {
|
||||
"version": "27.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@vue/vue3-jest/-/vue3-jest-27.0.0.tgz",
|
||||
@ -3174,24 +3314,25 @@
|
||||
"dev": true
|
||||
},
|
||||
"@vueuse/core": {
|
||||
"version": "8.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-8.5.0.tgz",
|
||||
"integrity": "sha512-VEJ6sGNsPlUp0o9BGda2YISvDZbhWJSOJu5zlp2TufRGVrLcYUKr31jyFEOj6RXzG3k/H4aCYeZyjpItfU8glw==",
|
||||
"version": "8.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-8.9.1.tgz",
|
||||
"integrity": "sha512-a7goYb/gJxjXRBw4Fr/jEACiN33ghwM1ohJVu+Zwsr3lNL4qCQ1nU+ogta98lNg5hXJxWj7mYEmQDjjyWOu5nA==",
|
||||
"requires": {
|
||||
"@vueuse/metadata": "8.5.0",
|
||||
"@vueuse/shared": "8.5.0",
|
||||
"@types/web-bluetooth": "^0.0.14",
|
||||
"@vueuse/metadata": "8.9.1",
|
||||
"@vueuse/shared": "8.9.1",
|
||||
"vue-demi": "*"
|
||||
}
|
||||
},
|
||||
"@vueuse/metadata": {
|
||||
"version": "8.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-8.5.0.tgz",
|
||||
"integrity": "sha512-WxsD+Cd+bn+HcjpY6Dl9FJ8ywTRTT9pTwk3bCQpzEhXVYAyNczKDSahk50fCfIJKeWHhyI4B2+/ZEOxQAkUr0g=="
|
||||
"version": "8.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-8.9.1.tgz",
|
||||
"integrity": "sha512-6LADOlyl3oENHa9dsoY7LXjU1Mh14DnpM6ztETI3hpm5ZffOMIG5CB2Q6aEZfIvYr1lkJVmG2L82wFKk7VRfIA=="
|
||||
},
|
||||
"@vueuse/shared": {
|
||||
"version": "8.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-8.5.0.tgz",
|
||||
"integrity": "sha512-qKG+SZb44VvGD4dU5cQ63z4JE2Yk39hQUecR0a9sEdJA01cx+XrxAvFKJfPooxwoiqalAVw/ktWK6xbyc/jS3g==",
|
||||
"version": "8.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-8.9.1.tgz",
|
||||
"integrity": "sha512-klZfn7ijI3juqVgpfQVrrlBh4uTFajwSCWm8Cdt45Kg26b1LZ9jn9n7J6GhmkFay5016GnjjivQoekQSMeJNUg==",
|
||||
"requires": {
|
||||
"vue-demi": "*"
|
||||
}
|
||||
@ -3625,9 +3766,9 @@
|
||||
}
|
||||
},
|
||||
"async-validator": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.1.1.tgz",
|
||||
"integrity": "sha512-p4DO/JXwjs8klJyJL8Q2oM4ks5fUTze/h5k10oPPKMiLe1fj3G1QMzPHNmN1Py4ycOk7WlO2DcGXv1qiESJCZA=="
|
||||
"version": "4.2.5",
|
||||
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz",
|
||||
"integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg=="
|
||||
},
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
@ -5143,9 +5284,9 @@
|
||||
}
|
||||
},
|
||||
"dayjs": {
|
||||
"version": "1.11.2",
|
||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.2.tgz",
|
||||
"integrity": "sha512-F4LXf1OeU9hrSYRPTTj/6FbO4HTjPKXvEIC1P2kcnFurViINCVk3ZV0xAS3XVx9MkMsXbbqlK6hjseaYbgKEHw=="
|
||||
"version": "1.11.3",
|
||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.3.tgz",
|
||||
"integrity": "sha512-xxwlswWOlGhzgQ4TKzASQkUhqERI3egRNqgV4ScR8wlANA/A9tZ7miXa44vTTKEq5l7vWoL5G57bG3zA+Kow0A=="
|
||||
},
|
||||
"deasync": {
|
||||
"version": "0.1.26",
|
||||
@ -5540,32 +5681,25 @@
|
||||
"integrity": "sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA=="
|
||||
},
|
||||
"element-plus": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.2.0.tgz",
|
||||
"integrity": "sha512-zxmAFEAa1T/n09rR+NozXcWl5CjaFtqoaxhFSafag0dgc90tgEHitDXfegdFAl4ahugdNTqu9aLzngx3VhDAtA==",
|
||||
"version": "2.2.9",
|
||||
"resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.2.9.tgz",
|
||||
"integrity": "sha512-jYbL0JkCdv95rkT6trZJjCAizLPySa0qcd2cgq+57SKQnCZAcNDDq4GbTuFRnNavdoeCJnuM3HIficTIUpsMOQ==",
|
||||
"requires": {
|
||||
"@ctrl/tinycolor": "^3.4.1",
|
||||
"@element-plus/icons-vue": "^1.1.4",
|
||||
"@floating-ui/dom": "^0.4.5",
|
||||
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.6",
|
||||
"@element-plus/icons-vue": "^2.0.6",
|
||||
"@floating-ui/dom": "^0.5.4",
|
||||
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7",
|
||||
"@types/lodash": "^4.14.182",
|
||||
"@types/lodash-es": "^4.17.6",
|
||||
"@vueuse/core": "^8.2.6",
|
||||
"async-validator": "^4.0.7",
|
||||
"dayjs": "^1.11.1",
|
||||
"@vueuse/core": "^8.7.5",
|
||||
"async-validator": "^4.2.5",
|
||||
"dayjs": "^1.11.3",
|
||||
"escape-html": "^1.0.3",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash-es": "^4.17.21",
|
||||
"lodash-unified": "^1.0.2",
|
||||
"memoize-one": "^6.0.0",
|
||||
"normalize-wheel-es": "^1.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@popperjs/core": {
|
||||
"version": "npm:@sxzz/popperjs-es@2.11.7",
|
||||
"resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz",
|
||||
"integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"emittery": {
|
||||
@ -8675,11 +8809,11 @@
|
||||
"integrity": "sha512-Rdgz9Hl9Iv4QKi8b0OlCRQEzp4AgVxyCtz5S/+VIHezDmrDhkp2N2TqBWOLz0/gbeREXOOiI9/4b8BY9uw2vFg=="
|
||||
},
|
||||
"keycon": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/keycon/-/keycon-1.1.2.tgz",
|
||||
"integrity": "sha512-yCoUAfwqmQUWrtOFuZhicxasF/4ae+M0aH8yV1wEKKZCZql8v6jWhlVF9dT5i1TfuHSmgt/GNuCaWIHT8wk6eQ==",
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/keycon/-/keycon-1.2.0.tgz",
|
||||
"integrity": "sha512-qRCPcJ1R6E0VE/VcWspdpqnVht7cktodlg3FwEbyvydg/W9rkOsWXxkUfb8LkVrpgPBadv39FOBn18fhsbFMjA==",
|
||||
"requires": {
|
||||
"@daybrush/utils": "^1.0.0",
|
||||
"@daybrush/utils": "^1.7.1",
|
||||
"@scena/event-emitter": "^1.0.2",
|
||||
"keycode": "^2.2.0"
|
||||
}
|
||||
@ -9243,13 +9377,13 @@
|
||||
}
|
||||
},
|
||||
"moveable": {
|
||||
"version": "0.29.9",
|
||||
"resolved": "https://registry.npmjs.org/moveable/-/moveable-0.29.9.tgz",
|
||||
"integrity": "sha512-JoZRxVV81rxAaShx/3NloQu4+0AnxFNplH/v38gfO9pKTJc7b1QFqkyuqqA7oOSSTUxktRxUtka9VA88BCcEwA==",
|
||||
"version": "0.30.0",
|
||||
"resolved": "https://registry.npmjs.org/moveable/-/moveable-0.30.0.tgz",
|
||||
"integrity": "sha512-WkIccP2vs7oi7Vtf7c8xmduyF7Kb6+lkJwxSOp+Yx3gFFHUdVTQDO8UhJWwuIrlX5eLymk99bIRi+RPttAK2Yg==",
|
||||
"requires": {
|
||||
"@scena/event-emitter": "^1.0.5",
|
||||
"react-compat-moveable": "~0.17.9",
|
||||
"react-moveable": "~0.32.9",
|
||||
"react-compat-moveable": "~0.18.0",
|
||||
"react-moveable": "~0.33.0",
|
||||
"react-simple-compat": "^1.2.2"
|
||||
}
|
||||
},
|
||||
@ -9616,11 +9750,11 @@
|
||||
"dev": true
|
||||
},
|
||||
"overlap-area": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/overlap-area/-/overlap-area-1.0.0.tgz",
|
||||
"integrity": "sha512-Oi3hxRf6Flvv1upldnjOtV7euFkc75G/wsxYfS/ssNKEZ3Z+HbIoPHkFfLH3hgwqLJKpq9wdFo7I6xcdS6k8yg==",
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/overlap-area/-/overlap-area-1.1.0.tgz",
|
||||
"integrity": "sha512-3dlJgJCaVeXH0/eZjYVJvQiLVVrPO4U1ZGqlATtx6QGO3b5eNM6+JgUKa7oStBTdYuGTk7gVoABCW6Tp+dhRdw==",
|
||||
"requires": {
|
||||
"@daybrush/utils": "^1.3.1"
|
||||
"@daybrush/utils": "^1.7.1"
|
||||
}
|
||||
},
|
||||
"p-finally": {
|
||||
@ -10419,9 +10553,9 @@
|
||||
}
|
||||
},
|
||||
"react-compat-moveable": {
|
||||
"version": "0.17.9",
|
||||
"resolved": "https://registry.npmjs.org/react-compat-moveable/-/react-compat-moveable-0.17.9.tgz",
|
||||
"integrity": "sha512-LS9U1K3eCg7aaj+1tvsoriKpL5M2lbg8fyZfGX3knph6I1liw1k4DrrcAljLy6HAhnyY6EUoUjJ21fDgu51PUA==",
|
||||
"version": "0.18.0",
|
||||
"resolved": "https://registry.npmjs.org/react-compat-moveable/-/react-compat-moveable-0.18.0.tgz",
|
||||
"integrity": "sha512-ACEFE/GKtyqzJBSQ1cosZtD6cD2uuwFBsyNF/zIeM/JvF4zGae3cUUVchOpfHBjPBnjqiHjKMAaucMXPOTDosQ==",
|
||||
"requires": {
|
||||
"@daybrush/utils": "^1.7.0",
|
||||
"@egjs/agent": "^2.2.1",
|
||||
@ -10430,11 +10564,11 @@
|
||||
"@scena/matrix": "^1.1.1",
|
||||
"css-to-mat": "^1.0.3",
|
||||
"framework-utils": "^1.1.0",
|
||||
"gesto": "^1.7.0",
|
||||
"gesto": "^1.9.0",
|
||||
"overlap-area": "^1.0.0",
|
||||
"react-compat-css-styled": "^1.0.8",
|
||||
"react-css-styled": "^1.0.3",
|
||||
"react-moveable": "~0.32.9"
|
||||
"react-moveable": "~0.33.0"
|
||||
}
|
||||
},
|
||||
"react-compat-ruler": {
|
||||
@ -10462,9 +10596,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"react-moveable": {
|
||||
"version": "0.32.9",
|
||||
"resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.32.9.tgz",
|
||||
"integrity": "sha512-657rbOHxBahdHkffcDZ6jU+wqHdSiNRK1wPmjWpXShjOezvd/lUfKCqB/SEW5ICuzOf23LQqO29anTpC+BWvCA==",
|
||||
"version": "0.33.0",
|
||||
"resolved": "https://registry.npmjs.org/react-moveable/-/react-moveable-0.33.0.tgz",
|
||||
"integrity": "sha512-ro8dojnbyxHFpfpDCvYwZFF050bHoaVOKTKk3Kvc1Pz863dF7Ejrd3zjdg4ix4xNbZfNsfRKdz0BHgeZzyyzOg==",
|
||||
"requires": {
|
||||
"@daybrush/utils": "^1.7.0",
|
||||
"@egjs/agent": "^2.2.1",
|
||||
@ -10474,7 +10608,7 @@
|
||||
"@scena/matrix": "^1.1.1",
|
||||
"css-to-mat": "^1.0.3",
|
||||
"framework-utils": "^1.1.0",
|
||||
"gesto": "^1.7.0",
|
||||
"gesto": "^1.9.0",
|
||||
"overlap-area": "^1.0.0",
|
||||
"react-css-styled": "^1.0.3"
|
||||
}
|
||||
@ -11969,9 +12103,9 @@
|
||||
}
|
||||
},
|
||||
"vue-demi": {
|
||||
"version": "0.12.5",
|
||||
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.12.5.tgz",
|
||||
"integrity": "sha512-BREuTgTYlUr0zw0EZn3hnhC3I6gPWv+Kwh4MCih6QcAeaTlaIX0DwOVN0wHej7hSvDPecz4jygy/idsgKfW58Q=="
|
||||
"version": "0.13.2",
|
||||
"resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.2.tgz",
|
||||
"integrity": "sha512-41ukrclEbMddAyP7PvxMSYqnOSzPV6r7GNnyTSKSCNTaz19GehxmTiXyP9kwHSUv2+Dr6hHqiUiF7L1VAw2KdQ=="
|
||||
},
|
||||
"vue-eslint-parser": {
|
||||
"version": "8.3.0",
|
||||
|
@ -9,11 +9,11 @@
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/editor": "^1.0.0-rc.7",
|
||||
"@tmagic/form": "^1.0.0-rc.7",
|
||||
"@tmagic/schema": "^1.0.0-rc.7",
|
||||
"@tmagic/stage": "^1.0.0-rc.7",
|
||||
"@tmagic/utils": "^1.0.0-rc.7",
|
||||
"@tmagic/editor": "^1.0.5",
|
||||
"@tmagic/form": "^1.0.5",
|
||||
"@tmagic/schema": "^1.0.5",
|
||||
"@tmagic/stage": "^1.0.5",
|
||||
"@tmagic/utils": "^1.0.5",
|
||||
"axios": "^0.27.2",
|
||||
"axios-jsonp": "^1.0.4",
|
||||
"core-js": "^3.20.0",
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{P as t,C as n,a as e,T as o}from"./Text.000ec384.js";const a={page:t,container:n,button:e,text:o},s={},r={components:a,plugins:s};window.magicPresetComponents=r;export{r as e};
|
@ -1 +0,0 @@
|
||||
var n=[],a=[],o=[],e=[];(function(){const t={page:o,container:a,button:n,text:e};window.magicPresetConfigs=t})();
|
@ -1 +0,0 @@
|
||||
(function(){const n={};window.magicPresetEvents=n})();
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]{-webkit-appearance:none;-moz-appearance:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}textarea{overflow:auto;vertical-align:top;resize:vertical}audio,canvas,video{display:inline-block;*display: inline;*zoom: 1;max-width:100%}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted}a:active,a:hover{outline:0}img{border:0;-ms-interpolation-mode:bicubic}figure{margin:0}form{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left: -7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align: middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;*overflow: visible}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0;*height: 13px;*width: 13px}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}html,button,input,select,textarea{color:#222}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}
|
@ -1 +0,0 @@
|
||||
html,body,#app{width:100%;height:100%}#app{position:relative;overflow:auto}
|
@ -1 +0,0 @@
|
||||
import{A as App$2,g as getUrlParam,R as ReactDOM}from"./index.144d287e.js";import{r as react,A as AppContent,R as React}from"./Text.000ec384.js";import{e as entry}from"./components.js";var App$1="";function App(){var t,r;const e=react.exports.useContext(AppContent);if(!((t=e==null?void 0:e.page)!=null&&t.data))return null;const n=e.resolveComponent("page");return React.createElement(n,{config:(r=e==null?void 0:e.page)==null?void 0:r.data})}const getLocalConfig=()=>{const configStr=localStorage.getItem("magicUiConfig");if(!configStr)return[];try{return[eval(`(${configStr})`)]}catch(e){return[]}},app=new App$2({config:((getUrlParam("localPreview")?getLocalConfig():window.magicUiConfig)||[])[0]||{},curPage:getUrlParam("page")});Object.keys(entry.components).forEach(e=>app.registerComponent(e,entry.components[e]));ReactDOM.render(React.createElement(React.StrictMode,null,React.createElement(AppContent.Provider,{value:app},React.createElement(App,null))),document.getElementById("root"));
|
@ -1 +0,0 @@
|
||||
html{-ms-overflow-style:none;overflow:-moz-scrollbars-none}html,body{height:100%;margin:0;padding:0}body{height:fit-content;min-height:100%}html::-webkit-scrollbar,.body::-webkit-scrollbar{width:0!important}.magic-ui-page{overflow:hidden}html,body,#app{width:100%;height:100%}#app{position:relative;overflow:auto}#app::-webkit-scrollbar{width:0}.magic-ui-container{background-color:#88888880}.action-area{background-color:#3399ff80!important}
|
@ -1 +0,0 @@
|
||||
import{A as d,g as f,R as p}from"./index.144d287e.js";import{r as E,A as m,R as a}from"./Text.000ec384.js";const P="modulepreload",g={},h="/runtime/react/",y=function(t,c){return!c||c.length===0?t():Promise.all(c.map(n=>{if(n=`${h}${n}`,n in g)return;g[n]=!0;const s=n.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${l}`))return;const r=document.createElement("link");if(r.rel=s?"stylesheet":P,s||(r.as="script",r.crossOrigin=""),r.href=n,document.head.appendChild(r),s)return new Promise((e,i)=>{r.addEventListener("load",e),r.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())};function C(){var c,n;const o=E.exports.useContext(m);if(!((c=o==null?void 0:o.page)!=null&&c.data))return null;const t=o.resolveComponent("page");return a.createElement(t,{config:(n=o==null?void 0:o.page)==null?void 0:n.data})}const v="/tamgic-editor/playground/runtime/react/assets/components.js";y(()=>import(v),[]).then(()=>{var r;const{components:o}=window.magicPresetComponents,t=new d({config:{},curPage:f("page")});let c="";const n=e=>{t==null||t.setConfig(e),s(),window.magic.onPageElUpdate(document.querySelector(".magic-ui-page"))},s=()=>{p.render(a.createElement(a.StrictMode,null,a.createElement(m.Provider,{value:t},a.createElement(C,null))),document.getElementById("root"))},l={app:t,updateRootConfig(e){console.log("update root config",e),t==null||t.setConfig(e)},updatePageId(e){console.log("update page id",e),c=e,t==null||t.setPage(c),s()},getSnapElementQuerySelector(){return"[class*=magic-ui][id]"},select(e){console.log("select config",e);const i=document.getElementById(e);return i||new Promise(u=>{setTimeout(()=>{u(document.getElementById(e))},0)})},add({root:e}){console.log("add config",e),n(e)},update({root:e}){console.log("update config",e),n(e)},sortNode({root:e}){console.log("sort config",e),n(e)},remove({root:e}){console.log("remove config",e),n(e)}};Object.keys(o).forEach(e=>t.registerComponent(e,o[e])),(r=window.magic)==null||r.onRuntimeReady(l)});
|
@ -1 +0,0 @@
|
||||
var e={text:"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",multiple:!0,style:{width:"270",height:"37.5",border:0,backgroundColor:"#fb6f00"}},u={items:[],style:{width:"375",height:"100"}},i={items:[],style:{width:"100%",height:"100%"}},a={type:"text",text:"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",multiple:!0,style:{width:"100",height:"auto"}};(function(){const t={page:i,container:u,button:e,text:a};window.magicPresetValues=t})();
|
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>React Page</title>
|
||||
<script type="module" crossorigin src="/runtime/react/assets/page.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/react/assets/Text.000ec384.js">
|
||||
<link rel="modulepreload" href="/runtime/react/assets/index.144d287e.js">
|
||||
<link rel="modulepreload" href="/runtime/react/assets/components.js">
|
||||
<link rel="stylesheet" href="/runtime/react/assets/index.aa7399fc.css">
|
||||
<link rel="stylesheet" href="/runtime/react/assets/page.5884789a.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" style="font-size: 100px">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>React Playground</title>
|
||||
|
||||
<script type="module" crossorigin src="/runtime/react/assets/playground.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/react/assets/Text.000ec384.js">
|
||||
<link rel="modulepreload" href="/runtime/react/assets/index.144d287e.js">
|
||||
<link rel="stylesheet" href="/runtime/react/assets/index.aa7399fc.css">
|
||||
<link rel="stylesheet" href="/runtime/react/assets/playground.d0149121.css">
|
||||
</head>
|
||||
<body style="font-size: 14px">
|
||||
|
||||
<div id="root"></div>
|
||||
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
var n=[],a=[],o=[],e=[];(function(){const t={page:n,container:a,button:o,text:e};window.magicPresetConfigs=t})();
|
@ -1 +0,0 @@
|
||||
html,body,#app{width:100%;height:100%}#app{position:relative;overflow:auto}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
html{-ms-overflow-style:none;overflow:-moz-scrollbars-none}html,body{height:100%;margin:0;padding:0}body{height:fit-content;min-height:100%}html::-webkit-scrollbar,.body::-webkit-scrollbar{width:0!important}.magic-ui-page{overflow:hidden}html,body,#app{width:100%;height:100%}#app{position:relative;overflow:auto}#app::-webkit-scrollbar{width:0}.magic-ui-container{background-color:#88888880}.action-area{background-color:#3399ff80!important}
|
@ -1 +0,0 @@
|
||||
import{A as d,r as h}from"./resetcss.494d822a.js";import{a as c,n as g}from"./vueComponentNormalizer.e7d45796.js";const m="modulepreload",a={},f="/runtime/vue2/",_=function(t,n){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=`${f}${o}`,o in a)return;a[o]=!0;const r=o.endsWith(".css"),s=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${s}`))return;const i=document.createElement("link");if(i.rel=r?"stylesheet":m,r||(i.as="script",i.crossOrigin=""),i.href=o,document.head.appendChild(i),r)return new Promise((p,l)=>{i.addEventListener("load",p),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var E=Vue.extend({data(){return{app:null,config:void 0,curPageId:"",selectedId:""}},computed:{pageConfig(){var e,t,n,o;return((t=(e=this.config)==null?void 0:e.items)==null?void 0:t.find(r=>r.id===this.curPageId))||((o=(n=this.config)==null?void 0:n.items)==null?void 0:o[0])}},provide(){return this.app=new d({config:this.config,platform:"editor"}),{app:this.app}},mounted(){var e;(e=globalThis.magic)==null||e.onRuntimeReady(this)},watch:{async pageConfig(){await this.$nextTick(),globalThis.magic.onPageElUpdate(document.querySelector(".magic-ui-page"))}},methods:{updateRootConfig(e){var t;console.log("update config",e),this.config=e,(t=this.app)==null||t.setConfig(e,this.curPageId)},updatePageId(e){var t;console.log("update page id",e),this.curPageId=e,(t=this.app)==null||t.setPage(e)},getSnapElementQuerySelector(){return"[class*=magic-ui][id]"},select(e){console.log("select config",e),this.selectedId=e;const t=document.getElementById(e);return t||this.$nextTick().then(()=>document.getElementById(e))},add({config:e}){var r;if(console.log("add config",e),!this.config)throw new Error("error");const t=c(this.selectedId,[this.config]),n=t.pop(),o=n!=null&&n.items?n:t.pop();if(!o)throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");(r=o.items)==null||r.push(e)},update({config:e}){var s;if(console.log("update config",e),!this.config)throw new Error("error");const t=c(e.id,[this.config]),n=t.pop(),o=t.pop();if(!n)throw new Error("\u672A\u627E\u5230\u76EE\u6807\u8282\u70B9");if(!o)throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");const r=(s=o.items)==null?void 0:s.findIndex(i=>i.id===n.id);o.items.splice(r,1,h(e))},sortNode({src:e,dist:t}){if(!this.config)throw new Error("error");const n=c(this.selectedId,[this.config]);n.pop();const o=n.pop();if(!o)return;const r=o.items.findIndex(i=>i.id===t);if(r<0)return;const s=o.items.findIndex(i=>i.id===e);o.items.splice(r,0,...o.items.splice(s,1))},remove({id:e}){var s;if(!this.config)throw new Error("error");const t=c(e,[this.config]),n=t.pop();if(!n)throw new Error("\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20");const o=t.pop();if(!o)throw new Error("\u672A\u627E\u5230\u7236\u5143\u7D20");const r=(s=o.items)==null?void 0:s.findIndex(i=>i.id===n.id);o.items.splice(r,1)}}}),v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pageConfig?n("magic-ui-page",{attrs:{config:e.pageConfig}}):e._e()},w=[];const u={};var x=g(E,v,w,!1,y,null,null,null);function y(e){for(let t in u)this[t]=u[t]}var I=function(){return x.exports}();const P="/tamgic-editor/playground/runtime/vue2/assets/components.js";_(()=>import(P),[]).then(()=>{const{components:e,plugins:t}=window.magicPresetComponents;Object.values(e).forEach(n=>{Vue.component(n.name,n)}),Object.values(t).forEach(n=>{Vue.use(n)}),new Vue({render:n=>n(I),el:"#app"})});
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]{-webkit-appearance:none;-moz-appearance:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}textarea{overflow:auto;vertical-align:top;resize:vertical}audio,canvas,video{display:inline-block;*display: inline;*zoom: 1;max-width:100%}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted}a:active,a:hover{outline:0}img{border:0;-ms-interpolation-mode:bicubic}figure{margin:0}form{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left: -7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align: middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;*overflow: visible}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0;*height: 13px;*width: 13px}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}html,button,input,select,textarea{color:#222}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}
|
@ -1 +0,0 @@
|
||||
var e={items:[],style:{width:"100%",height:"100%"}},u={},i={text:"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",multiple:!0,style:{width:"270",height:"37.5",border:0,backgroundColor:"#fb6f00"}},a={type:"text",text:"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",multiple:!0,style:{width:"100",height:"auto"}};(function(){const t={page:e,container:u,button:i,text:a};window.magicPresetValues=t})();
|
File diff suppressed because one or more lines are too long
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vue2 Page</title>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
|
||||
<script type="module" crossorigin src="/runtime/vue2/assets/page.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/vue2/assets/resetcss.494d822a.js">
|
||||
<link rel="modulepreload" href="/runtime/vue2/assets/vueComponentNormalizer.e7d45796.js">
|
||||
<link rel="modulepreload" href="/runtime/vue2/assets/components.js">
|
||||
<link rel="stylesheet" href="/runtime/vue2/assets/resetcss.ced1f647.css">
|
||||
<link rel="stylesheet" href="/runtime/vue2/assets/page.5884789a.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,24 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" style="font-size: 100px">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vue2 Playground</title>
|
||||
|
||||
<script type="module" crossorigin src="/runtime/vue2/assets/playground.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/vue2/assets/resetcss.494d822a.js">
|
||||
<link rel="modulepreload" href="/runtime/vue2/assets/vueComponentNormalizer.e7d45796.js">
|
||||
<link rel="stylesheet" href="/runtime/vue2/assets/resetcss.ced1f647.css">
|
||||
<link rel="stylesheet" href="/runtime/vue2/assets/playground.d0149121.css">
|
||||
</head>
|
||||
<body style="font-size: 14px">
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,278 +0,0 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
||||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||
var __spreadValues = (a, b) => {
|
||||
for (var prop in b || (b = {}))
|
||||
if (__hasOwnProp.call(b, prop))
|
||||
__defNormalProp(a, prop, b[prop]);
|
||||
if (__getOwnPropSymbols)
|
||||
for (var prop of __getOwnPropSymbols(b)) {
|
||||
if (__propIsEnum.call(b, prop))
|
||||
__defNormalProp(a, prop, b[prop]);
|
||||
}
|
||||
return a;
|
||||
};
|
||||
import { _ as _export_sfc, t as toLine } from "./plugin-vue_export-helper.adee6e2f.js";
|
||||
var useApp = (props) => {
|
||||
var _a, _b;
|
||||
const app = Vue.inject("app");
|
||||
const node = (_a = app == null ? void 0 : app.page) == null ? void 0 : _a.getNode(props.config.id);
|
||||
const vm = (_b = Vue.getCurrentInstance()) == null ? void 0 : _b.proxy;
|
||||
node == null ? void 0 : node.emit("created", vm);
|
||||
Vue.onMounted(() => {
|
||||
node == null ? void 0 : node.emit("mounted", vm);
|
||||
});
|
||||
Vue.onUnmounted(() => {
|
||||
node == null ? void 0 : node.emit("destroy", vm);
|
||||
});
|
||||
return app;
|
||||
};
|
||||
const _sfc_main$4 = Vue.defineComponent({
|
||||
name: "magic-ui-page",
|
||||
props: {
|
||||
config: {
|
||||
type: Object,
|
||||
defautl: () => ({})
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
if (props.config) {
|
||||
useApp(props);
|
||||
}
|
||||
}
|
||||
});
|
||||
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_magic_ui_container = Vue.resolveComponent("magic-ui-container");
|
||||
return Vue.openBlock(), Vue.createBlock(_component_magic_ui_container, {
|
||||
class: "magic-ui-page",
|
||||
config: _ctx.config
|
||||
}, {
|
||||
default: Vue.withCtx(() => [
|
||||
Vue.renderSlot(_ctx.$slots, "default")
|
||||
]),
|
||||
_: 3
|
||||
}, 8, ["config"]);
|
||||
}
|
||||
var page = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
|
||||
var useCommonMethod = (props) => ({
|
||||
show: () => {
|
||||
props.config.style.display = "initial";
|
||||
},
|
||||
hide: () => {
|
||||
props.config.style.display = "none";
|
||||
}
|
||||
});
|
||||
const _sfc_main$3 = Vue.defineComponent({
|
||||
name: "magic-ui-component",
|
||||
props: {
|
||||
config: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
var _a;
|
||||
const vm = (_a = Vue.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
||||
const app = useApp(props);
|
||||
Vue.provide("hoc", vm);
|
||||
return __spreadValues({
|
||||
tagName: Vue.computed(() => `magic-ui-${toLine(props.config.type)}`),
|
||||
style: Vue.computed(() => app == null ? void 0 : app.transformStyle(props.config.style)),
|
||||
display: () => {
|
||||
var _a2;
|
||||
const displayCfg = (_a2 = props.config) == null ? void 0 : _a2.display;
|
||||
if (typeof displayCfg === "function") {
|
||||
return displayCfg(app);
|
||||
}
|
||||
return displayCfg !== false;
|
||||
}
|
||||
}, useCommonMethod(props));
|
||||
}
|
||||
});
|
||||
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return _ctx.display() ? (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(_ctx.tagName), {
|
||||
key: 0,
|
||||
id: _ctx.config.id,
|
||||
class: Vue.normalizeClass(`magic-ui-component${_ctx.config.className ? ` ${_ctx.config.className}` : ""}`),
|
||||
style: Vue.normalizeStyle(_ctx.style),
|
||||
config: _ctx.config
|
||||
}, null, 8, ["id", "class", "style", "config"])) : Vue.createCommentVNode("", true);
|
||||
}
|
||||
var Component = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2]]);
|
||||
const _sfc_main$2 = Vue.defineComponent({
|
||||
name: "magic-ui-container",
|
||||
components: {
|
||||
"magic-ui-component": Component
|
||||
},
|
||||
props: {
|
||||
config: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
const app = useApp(props);
|
||||
return __spreadValues({
|
||||
style: Vue.computed(() => app == null ? void 0 : app.transformStyle(props.config.style || {})),
|
||||
display: () => {
|
||||
var _a;
|
||||
const displayCfg = (_a = props.config) == null ? void 0 : _a.display;
|
||||
if (typeof displayCfg === "function") {
|
||||
return displayCfg(app);
|
||||
}
|
||||
return displayCfg !== false;
|
||||
}
|
||||
}, useCommonMethod(props));
|
||||
}
|
||||
});
|
||||
const _hoisted_1 = ["id"];
|
||||
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_magic_ui_component = Vue.resolveComponent("magic-ui-component");
|
||||
return _ctx.display() ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
||||
key: 0,
|
||||
id: _ctx.config.id,
|
||||
class: Vue.normalizeClass(`magic-ui-container${_ctx.config.className ? ` ${_ctx.config.className}` : ""}`),
|
||||
style: Vue.normalizeStyle(_ctx.style)
|
||||
}, [
|
||||
Vue.renderSlot(_ctx.$slots, "default"),
|
||||
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(_ctx.config.items, (item) => {
|
||||
return Vue.openBlock(), Vue.createBlock(_component_magic_ui_component, {
|
||||
key: item.id,
|
||||
config: item
|
||||
}, null, 8, ["config"]);
|
||||
}), 128))
|
||||
], 14, _hoisted_1)) : Vue.createCommentVNode("", true);
|
||||
}
|
||||
var container = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1]]);
|
||||
const _sfc_main$1 = Vue.defineComponent({
|
||||
name: "magic-ui-button",
|
||||
props: {
|
||||
config: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
model: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
var _a;
|
||||
const vm = (_a = Vue.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
||||
const actions = Vue.reactive([]);
|
||||
const actualActions = Vue.computed(() => [
|
||||
typeof props.config.preAction === "function" ? props.config.preAction : () => true,
|
||||
...actions,
|
||||
typeof props.config.postAction === "function" ? props.config.postAction : () => true
|
||||
]);
|
||||
function pushAction(action) {
|
||||
actions.push(action);
|
||||
}
|
||||
async function clickHandler() {
|
||||
for (const fn of actualActions.value) {
|
||||
if (typeof fn === "function") {
|
||||
const ret = await fn(vm, { model: props.model });
|
||||
if (ret === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
const textConfig = Vue.computed(() => {
|
||||
var _a2, _b, _c;
|
||||
return {
|
||||
type: "text",
|
||||
text: ((_a2 = props.config) == null ? void 0 : _a2.text) || "",
|
||||
disabledText: ((_b = props.config) == null ? void 0 : _b.disabledText) || "",
|
||||
html: ((_c = props.config) == null ? void 0 : _c.html) || ""
|
||||
};
|
||||
});
|
||||
return {
|
||||
pushAction,
|
||||
clickHandler,
|
||||
textConfig
|
||||
};
|
||||
}
|
||||
});
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_magic_ui_text = Vue.resolveComponent("magic-ui-text");
|
||||
return Vue.openBlock(), Vue.createElementBlock("button", {
|
||||
class: "magic-ui-button",
|
||||
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickHandler && _ctx.clickHandler(...args))
|
||||
}, [
|
||||
Vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
||||
Vue.createVNode(_component_magic_ui_text, { config: _ctx.textConfig }, null, 8, ["config"])
|
||||
])
|
||||
]);
|
||||
}
|
||||
var button = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]);
|
||||
const _sfc_main = Vue.defineComponent({
|
||||
name: "magic-ui-text",
|
||||
props: {
|
||||
config: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
model: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
vars: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
var _a;
|
||||
const vm = (_a = Vue.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
||||
const hoc = Vue.inject("hoc");
|
||||
const displayText = Vue.computed(() => {
|
||||
var _a2, _b;
|
||||
let text = ((_a2 = props.config) == null ? void 0 : _a2.text) || "";
|
||||
const { vars } = props;
|
||||
if ((hoc == null ? void 0 : hoc.disabled) && ((_b = props.config) == null ? void 0 : _b.disabledText)) {
|
||||
text = props.config.disabledText;
|
||||
}
|
||||
if (typeof text === "function") {
|
||||
return text.bind(vm)(vm, { model: props.model });
|
||||
}
|
||||
if (Object.prototype.toString.call(vars) === "[object Object]") {
|
||||
let tmp = text;
|
||||
Object.entries(vars).forEach(([key, value]) => {
|
||||
tmp = tmp.replace(new RegExp(`{{${key}}}`, "g"), value);
|
||||
});
|
||||
return tmp;
|
||||
}
|
||||
return text || "";
|
||||
});
|
||||
return {
|
||||
displayText
|
||||
};
|
||||
},
|
||||
render() {
|
||||
var _a, _b, _c, _d;
|
||||
const className = ((_a = this.config) == null ? void 0 : _a.multiple) ? "magic-ui-text" : "magic-ui-text magic-ui-text--single-line";
|
||||
if (typeof ((_b = this.$slots) == null ? void 0 : _b.default) === "function") {
|
||||
return Vue.h("span", { class: className }, [((_d = (_c = this.$slots) == null ? void 0 : _c.default) == null ? void 0 : _d.call(_c)) || ""]);
|
||||
}
|
||||
return Vue.h("span", __spreadValues({
|
||||
class: className
|
||||
}, this.displayText ? { innerHTML: this.displayText } : {}));
|
||||
}
|
||||
});
|
||||
const components = {
|
||||
"page": page,
|
||||
"container": container,
|
||||
"button": button,
|
||||
"text": _sfc_main
|
||||
};
|
||||
const plugins = {};
|
||||
const entry = {
|
||||
components,
|
||||
plugins
|
||||
};
|
||||
window.magicPresetComponents = entry;
|
||||
export { entry as e };
|
||||
//# sourceMappingURL=components.js.map
|
File diff suppressed because one or more lines are too long
@ -1,61 +0,0 @@
|
||||
var page = [
|
||||
{
|
||||
text: "\u9875\u9762\u6807\u8BC6",
|
||||
name: "name",
|
||||
disabled: true,
|
||||
extra: "\u5728\u591A\u9875\u9762\u7684\u60C5\u51B5\u4E0B\u7528\u6765\u6307\u5B9A\u8981\u6253\u5F00\u7684\u9875\u9762"
|
||||
},
|
||||
{
|
||||
text: "\u9875\u9762\u6807\u9898",
|
||||
name: "title"
|
||||
},
|
||||
{
|
||||
name: "layout",
|
||||
text: "\u5BB9\u5668\u5E03\u5C40",
|
||||
type: "select",
|
||||
defaultValue: "absolute",
|
||||
options: [
|
||||
{ value: "absolute", text: "\u7EDD\u5BF9\u5B9A\u4F4D" },
|
||||
{ value: "relative", text: "\u6D41\u5F0F\u5E03\u5C40" }
|
||||
]
|
||||
}
|
||||
];
|
||||
var container = [
|
||||
{
|
||||
name: "layout",
|
||||
text: "\u5BB9\u5668\u5E03\u5C40",
|
||||
type: "select",
|
||||
defaultValue: "absolute",
|
||||
options: [
|
||||
{ value: "absolute", text: "\u7EDD\u5BF9\u5B9A\u4F4D" },
|
||||
{ value: "relative", text: "\u6D41\u5F0F\u5E03\u5C40" }
|
||||
]
|
||||
}
|
||||
];
|
||||
var button = [
|
||||
{
|
||||
text: "\u6587\u672C",
|
||||
name: "text"
|
||||
}
|
||||
];
|
||||
var text = [
|
||||
{
|
||||
name: "text",
|
||||
text: "\u6587\u672C"
|
||||
},
|
||||
{
|
||||
name: "multiple",
|
||||
text: "\u591A\u884C\u6587\u672C",
|
||||
type: "switch"
|
||||
}
|
||||
];
|
||||
(function() {
|
||||
const configs = {
|
||||
"page": page,
|
||||
"container": container,
|
||||
"button": button,
|
||||
"text": text
|
||||
};
|
||||
window.magicPresetConfigs = configs;
|
||||
})();
|
||||
//# sourceMappingURL=config.js.map
|
File diff suppressed because one or more lines are too long
@ -1,5 +0,0 @@
|
||||
(function() {
|
||||
const events = {};
|
||||
window.magicPresetEvents = events;
|
||||
})();
|
||||
//# sourceMappingURL=event.js.map
|
@ -1 +0,0 @@
|
||||
{"version":3,"file":"event.js","sources":["../../src/event-entry.ts"],"sourcesContent":["(function() {\n const events: Record<string, any> = {};\n window.magicPresetEvents = events;\n})();"],"names":[],"mappings":"AAAC,AAAW,YAAA;AACV,QAAM,SAA8B,CAAA;AACpC,SAAO,oBAAoB;AAC7B,GAAG;"}
|
@ -1,10 +0,0 @@
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#app {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,30 +0,0 @@
|
||||
|
||||
html{-ms-overflow-style: none; overflow: -moz-scrollbars-none;}
|
||||
html,body {height: 100%; margin: 0; padding: 0}
|
||||
body {
|
||||
height: fit-content;
|
||||
min-height: 100%;
|
||||
}
|
||||
html::-webkit-scrollbar, .body::-webkit-scrollbar { width: 0 !important }
|
||||
.magic-ui-page {
|
||||
overflow: hidden;
|
||||
}
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#app {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
#app::-webkit-scrollbar {
|
||||
width: 0;
|
||||
}
|
||||
.magic-ui-container {
|
||||
background-color: rgba(136, 136, 136, 0.5);
|
||||
}
|
||||
.action-area {
|
||||
background-color: rgba(51, 153, 255, 0.5) !important;
|
||||
}
|
@ -1,151 +0,0 @@
|
||||
import { A as App$1 } from "./resetcss.e39ac995.js";
|
||||
import { a as getNodePath, _ as _export_sfc } from "./plugin-vue_export-helper.adee6e2f.js";
|
||||
var playground_html_htmlProxy_index_0 = "";
|
||||
const scriptRel = "modulepreload";
|
||||
const seen = {};
|
||||
const base = "/runtime/vue3/";
|
||||
const __vitePreload = function preload(baseModule, deps) {
|
||||
if (!deps || deps.length === 0) {
|
||||
return baseModule();
|
||||
}
|
||||
return Promise.all(deps.map((dep) => {
|
||||
dep = `${base}${dep}`;
|
||||
if (dep in seen)
|
||||
return;
|
||||
seen[dep] = true;
|
||||
const isCss = dep.endsWith(".css");
|
||||
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
||||
if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
|
||||
return;
|
||||
}
|
||||
const link = document.createElement("link");
|
||||
link.rel = isCss ? "stylesheet" : scriptRel;
|
||||
if (!isCss) {
|
||||
link.as = "script";
|
||||
link.crossOrigin = "";
|
||||
}
|
||||
link.href = dep;
|
||||
document.head.appendChild(link);
|
||||
if (isCss) {
|
||||
return new Promise((res, rej) => {
|
||||
link.addEventListener("load", res);
|
||||
link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
|
||||
});
|
||||
}
|
||||
})).then(() => baseModule());
|
||||
};
|
||||
var App_vue_vue_type_style_index_0_lang = "";
|
||||
const _sfc_main = Vue.defineComponent({
|
||||
setup() {
|
||||
const root = Vue.ref();
|
||||
const curPageId = Vue.ref();
|
||||
const selectedId = Vue.ref();
|
||||
const pageConfig = Vue.computed(() => {
|
||||
var _a, _b, _c, _d;
|
||||
return ((_b = (_a = root.value) == null ? void 0 : _a.items) == null ? void 0 : _b.find((item) => item.id === curPageId.value)) || ((_d = (_c = root.value) == null ? void 0 : _c.items) == null ? void 0 : _d[0]);
|
||||
});
|
||||
const app = new App$1({
|
||||
config: root.value,
|
||||
platform: "editor"
|
||||
});
|
||||
Vue.provide("app", app);
|
||||
Vue.watch(pageConfig, async () => {
|
||||
await Vue.nextTick();
|
||||
const page = document.querySelector(".magic-ui-page");
|
||||
page && window.magic.onPageElUpdate(page);
|
||||
});
|
||||
Vue.onMounted(() => {
|
||||
var _a;
|
||||
(_a = window.magic) == null ? void 0 : _a.onRuntimeReady({
|
||||
updateRootConfig(config) {
|
||||
console.log("update config", config);
|
||||
root.value = config;
|
||||
app == null ? void 0 : app.setConfig(config, curPageId.value);
|
||||
},
|
||||
updatePageId(id) {
|
||||
console.log("update page id", id);
|
||||
curPageId.value = id;
|
||||
app == null ? void 0 : app.setPage(id);
|
||||
},
|
||||
getSnapElements() {
|
||||
return Array.from(document.querySelectorAll("[class*=magic-ui][id]"));
|
||||
},
|
||||
select(id) {
|
||||
console.log("select config", id);
|
||||
selectedId.value = id;
|
||||
const el = document.getElementById(`${id}`);
|
||||
if (el)
|
||||
return el;
|
||||
return Vue.nextTick().then(() => document.getElementById(`${id}`));
|
||||
},
|
||||
add({ config }) {
|
||||
var _a2;
|
||||
console.log("add config", config);
|
||||
if (!root.value)
|
||||
throw new Error("error");
|
||||
if (!selectedId.value)
|
||||
throw new Error("error");
|
||||
const path = getNodePath(selectedId.value, [root.value]);
|
||||
const node = path.pop();
|
||||
const parent = (node == null ? void 0 : node.items) ? node : path.pop();
|
||||
if (!parent)
|
||||
throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");
|
||||
(_a2 = parent.items) == null ? void 0 : _a2.push(config);
|
||||
},
|
||||
update({ config }) {
|
||||
var _a2;
|
||||
console.log("update config", config);
|
||||
if (!root.value)
|
||||
throw new Error("error");
|
||||
const path = getNodePath(config.id, [root.value]);
|
||||
const node = path.pop();
|
||||
const parent = path.pop();
|
||||
if (!node)
|
||||
throw new Error("\u672A\u627E\u5230\u76EE\u6807\u8282\u70B9");
|
||||
if (!parent)
|
||||
throw new Error("\u672A\u627E\u5230\u7236\u8282\u70B9");
|
||||
const index = (_a2 = parent.items) == null ? void 0 : _a2.findIndex((child) => child.id === node.id);
|
||||
parent.items.splice(index, 1, Vue.reactive(config));
|
||||
},
|
||||
remove({ id }) {
|
||||
var _a2;
|
||||
if (!root.value)
|
||||
throw new Error("error");
|
||||
const path = getNodePath(id, [root.value]);
|
||||
const node = path.pop();
|
||||
if (!node)
|
||||
throw new Error("\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20");
|
||||
const parent = path.pop();
|
||||
if (!parent)
|
||||
throw new Error("\u672A\u627E\u5230\u7236\u5143\u7D20");
|
||||
const index = (_a2 = parent.items) == null ? void 0 : _a2.findIndex((child) => child.id === node.id);
|
||||
parent.items.splice(index, 1);
|
||||
}
|
||||
});
|
||||
});
|
||||
return {
|
||||
pageConfig
|
||||
};
|
||||
}
|
||||
});
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_magic_ui_page = Vue.resolveComponent("magic-ui-page");
|
||||
return _ctx.pageConfig ? (Vue.openBlock(), Vue.createBlock(_component_magic_ui_page, {
|
||||
key: 0,
|
||||
config: _ctx.pageConfig
|
||||
}, null, 8, ["config"])) : Vue.createCommentVNode("", true);
|
||||
}
|
||||
var App = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
const componentUrl = "/runtime/vue3/assets/components.js";
|
||||
__vitePreload(() => import(componentUrl), true ? [] : void 0).then(() => {
|
||||
const magicApp = Vue.createApp(App);
|
||||
const { components, plugins } = window.magicPresetComponents;
|
||||
Object.values(components).forEach((component) => {
|
||||
magicApp.component(component.name, component);
|
||||
});
|
||||
Object.values(plugins).forEach((plugin) => {
|
||||
magicApp.use(plugin);
|
||||
});
|
||||
magicApp.mount("#app");
|
||||
});
|
||||
//# sourceMappingURL=playground.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,446 +0,0 @@
|
||||
/* http://meyerweb.com/eric/tools/css/reset/
|
||||
v2.0-modified | 20110126
|
||||
License: none (public domain)
|
||||
*/
|
||||
|
||||
html,
|
||||
body,
|
||||
div,
|
||||
span,
|
||||
applet,
|
||||
object,
|
||||
iframe,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
blockquote,
|
||||
pre,
|
||||
a,
|
||||
abbr,
|
||||
acronym,
|
||||
address,
|
||||
big,
|
||||
cite,
|
||||
code,
|
||||
del,
|
||||
dfn,
|
||||
em,
|
||||
img,
|
||||
ins,
|
||||
kbd,
|
||||
q,
|
||||
s,
|
||||
samp,
|
||||
small,
|
||||
strike,
|
||||
strong,
|
||||
sub,
|
||||
sup,
|
||||
tt,
|
||||
var,
|
||||
b,
|
||||
u,
|
||||
i,
|
||||
center,
|
||||
dl,
|
||||
dt,
|
||||
dd,
|
||||
ol,
|
||||
ul,
|
||||
li,
|
||||
fieldset,
|
||||
form,
|
||||
label,
|
||||
legend,
|
||||
table,
|
||||
caption,
|
||||
tbody,
|
||||
tfoot,
|
||||
thead,
|
||||
tr,
|
||||
th,
|
||||
td,
|
||||
article,
|
||||
aside,
|
||||
canvas,
|
||||
details,
|
||||
embed,
|
||||
figure,
|
||||
figcaption,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
menu,
|
||||
nav,
|
||||
output,
|
||||
ruby,
|
||||
section,
|
||||
summary,
|
||||
time,
|
||||
mark,
|
||||
audio,
|
||||
video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/* make sure to set some focus styles for accessibility */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
menu,
|
||||
nav,
|
||||
section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
blockquote,
|
||||
q {
|
||||
quotes: none;
|
||||
}
|
||||
|
||||
blockquote:before,
|
||||
blockquote:after,
|
||||
q:before,
|
||||
q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
input[type='search']::-webkit-search-cancel-button,
|
||||
input[type='search']::-webkit-search-decoration,
|
||||
input[type='search']::-webkit-search-results-button,
|
||||
input[type='search']::-webkit-search-results-decoration {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
input[type='search'] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
vertical-align: top;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
video {
|
||||
display: inline-block;
|
||||
*display: inline;
|
||||
*zoom: 1;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
|
||||
* Known issue: no IE 6 support.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
||||
* `em` units.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-size: 100%; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `outline` inconsistency between Chrome and other browsers.
|
||||
*/
|
||||
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
||||
* 2. Improve image quality when scaled in IE 7.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0; /* 1 */
|
||||
-ms-interpolation-mode: bicubic; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct margin displayed oddly in IE 6/7.
|
||||
*/
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited in IE 6/7/8/9.
|
||||
* 2. Correct text not wrapping in Firefox 3.
|
||||
* 3. Correct alignment displayed oddly in IE 6/7.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0;
|
||||
white-space: normal; /* 2 */
|
||||
*margin-left: -7px; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct font size not being inherited in all browsers.
|
||||
* 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
|
||||
* and Chrome.
|
||||
* 3. Improve appearance and consistency in all browsers.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-size: 100%; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
vertical-align: baseline; /* 3 */
|
||||
*vertical-align: middle; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 3+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
button,
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
|
||||
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
||||
* Known issue: inner spacing remains in IE 6.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
*overflow: visible; /* 4 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address box sizing set to content-box in IE 8/9.
|
||||
* 2. Remove excess padding in IE 8/9.
|
||||
* 3. Remove excess padding in IE 7.
|
||||
* Known issue: excess padding remains in IE 6.
|
||||
*/
|
||||
|
||||
input[type='checkbox'],
|
||||
input[type='radio'] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
*height: 13px; /* 3 */
|
||||
*width: 13px; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type='search'] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
||||
* on OS X.
|
||||
*/
|
||||
|
||||
input[type='search']::-webkit-search-cancel-button,
|
||||
input[type='search']::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 3+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove default vertical scrollbar in IE 6/7/8/9.
|
||||
* 2. Improve readability and alignment in all browsers.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto; /* 1 */
|
||||
vertical-align: top; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
background: #b3d4fc;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: #b3d4fc;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.chromeframe {
|
||||
margin: 0.2em 0;
|
||||
background: #ccc;
|
||||
color: #000;
|
||||
padding: 0.2em 0;
|
||||
}
|
@ -1,708 +0,0 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
||||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||
var __spreadValues = (a, b) => {
|
||||
for (var prop in b || (b = {}))
|
||||
if (__hasOwnProp.call(b, prop))
|
||||
__defNormalProp(a, prop, b[prop]);
|
||||
if (__getOwnPropSymbols)
|
||||
for (var prop of __getOwnPropSymbols(b)) {
|
||||
if (__propIsEnum.call(b, prop))
|
||||
__defNormalProp(a, prop, b[prop]);
|
||||
}
|
||||
return a;
|
||||
};
|
||||
const p = function polyfill() {
|
||||
const relList = document.createElement("link").relList;
|
||||
if (relList && relList.supports && relList.supports("modulepreload")) {
|
||||
return;
|
||||
}
|
||||
for (const link of document.querySelectorAll('link[rel="modulepreload"]')) {
|
||||
processPreload(link);
|
||||
}
|
||||
new MutationObserver((mutations) => {
|
||||
for (const mutation of mutations) {
|
||||
if (mutation.type !== "childList") {
|
||||
continue;
|
||||
}
|
||||
for (const node of mutation.addedNodes) {
|
||||
if (node.tagName === "LINK" && node.rel === "modulepreload")
|
||||
processPreload(node);
|
||||
}
|
||||
}
|
||||
}).observe(document, { childList: true, subtree: true });
|
||||
function getFetchOpts(script) {
|
||||
const fetchOpts = {};
|
||||
if (script.integrity)
|
||||
fetchOpts.integrity = script.integrity;
|
||||
if (script.referrerpolicy)
|
||||
fetchOpts.referrerPolicy = script.referrerpolicy;
|
||||
if (script.crossorigin === "use-credentials")
|
||||
fetchOpts.credentials = "include";
|
||||
else if (script.crossorigin === "anonymous")
|
||||
fetchOpts.credentials = "omit";
|
||||
else
|
||||
fetchOpts.credentials = "same-origin";
|
||||
return fetchOpts;
|
||||
}
|
||||
function processPreload(link) {
|
||||
if (link.ep)
|
||||
return;
|
||||
link.ep = true;
|
||||
const fetchOpts = getFetchOpts(link);
|
||||
fetch(link.href, fetchOpts);
|
||||
}
|
||||
};
|
||||
p();
|
||||
var events = { exports: {} };
|
||||
var R = typeof Reflect === "object" ? Reflect : null;
|
||||
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
||||
return Function.prototype.apply.call(target, receiver, args);
|
||||
};
|
||||
var ReflectOwnKeys;
|
||||
if (R && typeof R.ownKeys === "function") {
|
||||
ReflectOwnKeys = R.ownKeys;
|
||||
} else if (Object.getOwnPropertySymbols) {
|
||||
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
||||
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
||||
};
|
||||
} else {
|
||||
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
||||
return Object.getOwnPropertyNames(target);
|
||||
};
|
||||
}
|
||||
function ProcessEmitWarning(warning) {
|
||||
if (console && console.warn)
|
||||
console.warn(warning);
|
||||
}
|
||||
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
||||
return value !== value;
|
||||
};
|
||||
function EventEmitter() {
|
||||
EventEmitter.init.call(this);
|
||||
}
|
||||
events.exports = EventEmitter;
|
||||
events.exports.once = once2;
|
||||
EventEmitter.EventEmitter = EventEmitter;
|
||||
EventEmitter.prototype._events = void 0;
|
||||
EventEmitter.prototype._eventsCount = 0;
|
||||
EventEmitter.prototype._maxListeners = void 0;
|
||||
var defaultMaxListeners = 10;
|
||||
function checkListener(listener) {
|
||||
if (typeof listener !== "function") {
|
||||
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
||||
}
|
||||
}
|
||||
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return defaultMaxListeners;
|
||||
},
|
||||
set: function(arg) {
|
||||
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
||||
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
||||
}
|
||||
defaultMaxListeners = arg;
|
||||
}
|
||||
});
|
||||
EventEmitter.init = function() {
|
||||
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
||||
this._events = /* @__PURE__ */ Object.create(null);
|
||||
this._eventsCount = 0;
|
||||
}
|
||||
this._maxListeners = this._maxListeners || void 0;
|
||||
};
|
||||
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
||||
if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
|
||||
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
|
||||
}
|
||||
this._maxListeners = n;
|
||||
return this;
|
||||
};
|
||||
function _getMaxListeners(that) {
|
||||
if (that._maxListeners === void 0)
|
||||
return EventEmitter.defaultMaxListeners;
|
||||
return that._maxListeners;
|
||||
}
|
||||
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
||||
return _getMaxListeners(this);
|
||||
};
|
||||
EventEmitter.prototype.emit = function emit(type) {
|
||||
var args = [];
|
||||
for (var i = 1; i < arguments.length; i++)
|
||||
args.push(arguments[i]);
|
||||
var doError = type === "error";
|
||||
var events2 = this._events;
|
||||
if (events2 !== void 0)
|
||||
doError = doError && events2.error === void 0;
|
||||
else if (!doError)
|
||||
return false;
|
||||
if (doError) {
|
||||
var er;
|
||||
if (args.length > 0)
|
||||
er = args[0];
|
||||
if (er instanceof Error) {
|
||||
throw er;
|
||||
}
|
||||
var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
||||
err.context = er;
|
||||
throw err;
|
||||
}
|
||||
var handler = events2[type];
|
||||
if (handler === void 0)
|
||||
return false;
|
||||
if (typeof handler === "function") {
|
||||
ReflectApply(handler, this, args);
|
||||
} else {
|
||||
var len = handler.length;
|
||||
var listeners2 = arrayClone(handler, len);
|
||||
for (var i = 0; i < len; ++i)
|
||||
ReflectApply(listeners2[i], this, args);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
function _addListener(target, type, listener, prepend) {
|
||||
var m;
|
||||
var events2;
|
||||
var existing;
|
||||
checkListener(listener);
|
||||
events2 = target._events;
|
||||
if (events2 === void 0) {
|
||||
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
||||
target._eventsCount = 0;
|
||||
} else {
|
||||
if (events2.newListener !== void 0) {
|
||||
target.emit("newListener", type, listener.listener ? listener.listener : listener);
|
||||
events2 = target._events;
|
||||
}
|
||||
existing = events2[type];
|
||||
}
|
||||
if (existing === void 0) {
|
||||
existing = events2[type] = listener;
|
||||
++target._eventsCount;
|
||||
} else {
|
||||
if (typeof existing === "function") {
|
||||
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
|
||||
} else if (prepend) {
|
||||
existing.unshift(listener);
|
||||
} else {
|
||||
existing.push(listener);
|
||||
}
|
||||
m = _getMaxListeners(target);
|
||||
if (m > 0 && existing.length > m && !existing.warned) {
|
||||
existing.warned = true;
|
||||
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
||||
w.name = "MaxListenersExceededWarning";
|
||||
w.emitter = target;
|
||||
w.type = type;
|
||||
w.count = existing.length;
|
||||
ProcessEmitWarning(w);
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
||||
return _addListener(this, type, listener, false);
|
||||
};
|
||||
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
||||
EventEmitter.prototype.prependListener = function prependListener(type, listener) {
|
||||
return _addListener(this, type, listener, true);
|
||||
};
|
||||
function onceWrapper() {
|
||||
if (!this.fired) {
|
||||
this.target.removeListener(this.type, this.wrapFn);
|
||||
this.fired = true;
|
||||
if (arguments.length === 0)
|
||||
return this.listener.call(this.target);
|
||||
return this.listener.apply(this.target, arguments);
|
||||
}
|
||||
}
|
||||
function _onceWrap(target, type, listener) {
|
||||
var state = { fired: false, wrapFn: void 0, target, type, listener };
|
||||
var wrapped = onceWrapper.bind(state);
|
||||
wrapped.listener = listener;
|
||||
state.wrapFn = wrapped;
|
||||
return wrapped;
|
||||
}
|
||||
EventEmitter.prototype.once = function once(type, listener) {
|
||||
checkListener(listener);
|
||||
this.on(type, _onceWrap(this, type, listener));
|
||||
return this;
|
||||
};
|
||||
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
|
||||
checkListener(listener);
|
||||
this.prependListener(type, _onceWrap(this, type, listener));
|
||||
return this;
|
||||
};
|
||||
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
||||
var list, events2, position, i, originalListener;
|
||||
checkListener(listener);
|
||||
events2 = this._events;
|
||||
if (events2 === void 0)
|
||||
return this;
|
||||
list = events2[type];
|
||||
if (list === void 0)
|
||||
return this;
|
||||
if (list === listener || list.listener === listener) {
|
||||
if (--this._eventsCount === 0)
|
||||
this._events = /* @__PURE__ */ Object.create(null);
|
||||
else {
|
||||
delete events2[type];
|
||||
if (events2.removeListener)
|
||||
this.emit("removeListener", type, list.listener || listener);
|
||||
}
|
||||
} else if (typeof list !== "function") {
|
||||
position = -1;
|
||||
for (i = list.length - 1; i >= 0; i--) {
|
||||
if (list[i] === listener || list[i].listener === listener) {
|
||||
originalListener = list[i].listener;
|
||||
position = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (position < 0)
|
||||
return this;
|
||||
if (position === 0)
|
||||
list.shift();
|
||||
else {
|
||||
spliceOne(list, position);
|
||||
}
|
||||
if (list.length === 1)
|
||||
events2[type] = list[0];
|
||||
if (events2.removeListener !== void 0)
|
||||
this.emit("removeListener", type, originalListener || listener);
|
||||
}
|
||||
return this;
|
||||
};
|
||||
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
||||
EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
|
||||
var listeners2, events2, i;
|
||||
events2 = this._events;
|
||||
if (events2 === void 0)
|
||||
return this;
|
||||
if (events2.removeListener === void 0) {
|
||||
if (arguments.length === 0) {
|
||||
this._events = /* @__PURE__ */ Object.create(null);
|
||||
this._eventsCount = 0;
|
||||
} else if (events2[type] !== void 0) {
|
||||
if (--this._eventsCount === 0)
|
||||
this._events = /* @__PURE__ */ Object.create(null);
|
||||
else
|
||||
delete events2[type];
|
||||
}
|
||||
return this;
|
||||
}
|
||||
if (arguments.length === 0) {
|
||||
var keys = Object.keys(events2);
|
||||
var key;
|
||||
for (i = 0; i < keys.length; ++i) {
|
||||
key = keys[i];
|
||||
if (key === "removeListener")
|
||||
continue;
|
||||
this.removeAllListeners(key);
|
||||
}
|
||||
this.removeAllListeners("removeListener");
|
||||
this._events = /* @__PURE__ */ Object.create(null);
|
||||
this._eventsCount = 0;
|
||||
return this;
|
||||
}
|
||||
listeners2 = events2[type];
|
||||
if (typeof listeners2 === "function") {
|
||||
this.removeListener(type, listeners2);
|
||||
} else if (listeners2 !== void 0) {
|
||||
for (i = listeners2.length - 1; i >= 0; i--) {
|
||||
this.removeListener(type, listeners2[i]);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
function _listeners(target, type, unwrap) {
|
||||
var events2 = target._events;
|
||||
if (events2 === void 0)
|
||||
return [];
|
||||
var evlistener = events2[type];
|
||||
if (evlistener === void 0)
|
||||
return [];
|
||||
if (typeof evlistener === "function")
|
||||
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
||||
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
||||
}
|
||||
EventEmitter.prototype.listeners = function listeners(type) {
|
||||
return _listeners(this, type, true);
|
||||
};
|
||||
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
||||
return _listeners(this, type, false);
|
||||
};
|
||||
EventEmitter.listenerCount = function(emitter, type) {
|
||||
if (typeof emitter.listenerCount === "function") {
|
||||
return emitter.listenerCount(type);
|
||||
} else {
|
||||
return listenerCount.call(emitter, type);
|
||||
}
|
||||
};
|
||||
EventEmitter.prototype.listenerCount = listenerCount;
|
||||
function listenerCount(type) {
|
||||
var events2 = this._events;
|
||||
if (events2 !== void 0) {
|
||||
var evlistener = events2[type];
|
||||
if (typeof evlistener === "function") {
|
||||
return 1;
|
||||
} else if (evlistener !== void 0) {
|
||||
return evlistener.length;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
EventEmitter.prototype.eventNames = function eventNames() {
|
||||
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
||||
};
|
||||
function arrayClone(arr, n) {
|
||||
var copy = new Array(n);
|
||||
for (var i = 0; i < n; ++i)
|
||||
copy[i] = arr[i];
|
||||
return copy;
|
||||
}
|
||||
function spliceOne(list, index) {
|
||||
for (; index + 1 < list.length; index++)
|
||||
list[index] = list[index + 1];
|
||||
list.pop();
|
||||
}
|
||||
function unwrapListeners(arr) {
|
||||
var ret = new Array(arr.length);
|
||||
for (var i = 0; i < ret.length; ++i) {
|
||||
ret[i] = arr[i].listener || arr[i];
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function once2(emitter, name) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
function errorListener(err) {
|
||||
emitter.removeListener(name, resolver);
|
||||
reject(err);
|
||||
}
|
||||
function resolver() {
|
||||
if (typeof emitter.removeListener === "function") {
|
||||
emitter.removeListener("error", errorListener);
|
||||
}
|
||||
resolve([].slice.call(arguments));
|
||||
}
|
||||
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
||||
if (name !== "error") {
|
||||
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
||||
}
|
||||
});
|
||||
}
|
||||
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
||||
if (typeof emitter.on === "function") {
|
||||
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
||||
}
|
||||
}
|
||||
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
||||
if (typeof emitter.on === "function") {
|
||||
if (flags.once) {
|
||||
emitter.once(name, listener);
|
||||
} else {
|
||||
emitter.on(name, listener);
|
||||
}
|
||||
} else if (typeof emitter.addEventListener === "function") {
|
||||
emitter.addEventListener(name, function wrapListener(arg) {
|
||||
if (flags.once) {
|
||||
emitter.removeEventListener(name, wrapListener);
|
||||
}
|
||||
listener(arg);
|
||||
});
|
||||
} else {
|
||||
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
||||
}
|
||||
}
|
||||
class Env {
|
||||
constructor(ua = globalThis.navigator.userAgent, options = {}) {
|
||||
this.isIos = false;
|
||||
this.isIphone = false;
|
||||
this.isIpad = false;
|
||||
this.isAndroid = false;
|
||||
this.isAnroidPad = false;
|
||||
this.isMac = false;
|
||||
this.isWin = false;
|
||||
this.isMqq = false;
|
||||
this.isWechat = false;
|
||||
this.isWeb = false;
|
||||
this.isIphone = ua.indexOf("iPhone") >= 0;
|
||||
this.isIpad = /(iPad).*OS\s([\d_]+)/.test(ua);
|
||||
this.isIos = this.isIphone || this.isIpad;
|
||||
this.isAndroid = ua.indexOf("Android") >= 0;
|
||||
this.isAnroidPad = this.isAndroid && ua.indexOf("Mobile") < 0;
|
||||
this.isMac = ua.indexOf("Macintosh") >= 0;
|
||||
this.isWin = ua.indexOf("Windows") >= 0;
|
||||
this.isMqq = /QQ\/([\d.]+)/.test(ua);
|
||||
this.isWechat = ua.indexOf("MicroMessenger") >= 0 && ua.indexOf("wxwork") < 0;
|
||||
this.isWeb = !this.isIos && !this.isAndroid && !/(WebOS|BlackBerry)/.test(ua);
|
||||
Object.entries(options).forEach(([key, value]) => {
|
||||
this[key] = value;
|
||||
});
|
||||
}
|
||||
}
|
||||
const COMMON_EVENT_PREFIX = "magic:common:events:";
|
||||
const COMMON_METHOD_PREFIX = "magic:common:actions:";
|
||||
const CommonMethod = {
|
||||
SHOW: "show",
|
||||
HIDE: "hide",
|
||||
SCROLL_TO_VIEW: "scrollIntoView",
|
||||
SCROLL_TO_TOP: "scrollToTop"
|
||||
};
|
||||
const DEFAULT_EVENTS = [{ label: "\u70B9\u51FB", value: `${COMMON_EVENT_PREFIX}click` }];
|
||||
const getCommonEventName = (commonEventName, nodeId) => {
|
||||
const returnName = `${commonEventName}:${nodeId}`;
|
||||
if (commonEventName.startsWith(COMMON_EVENT_PREFIX))
|
||||
return returnName;
|
||||
return `${COMMON_EVENT_PREFIX}${returnName}`;
|
||||
};
|
||||
const isCommonMethod = (methodName) => methodName.startsWith(COMMON_METHOD_PREFIX);
|
||||
const getDirectComponent = (element, app) => {
|
||||
var _a;
|
||||
if (!element) {
|
||||
return false;
|
||||
}
|
||||
if (!element.id) {
|
||||
return getDirectComponent(element.parentElement, app);
|
||||
}
|
||||
const node = (_a = app.page) == null ? void 0 : _a.getNode(element.id);
|
||||
if (!node) {
|
||||
return false;
|
||||
}
|
||||
return node;
|
||||
};
|
||||
const commonClickEventHandler = (app, eventName, e) => {
|
||||
const node = getDirectComponent(e.target, app);
|
||||
if (node) {
|
||||
const { instance, data } = node;
|
||||
app.emit(getCommonEventName(eventName, data.id), instance);
|
||||
}
|
||||
};
|
||||
const bindCommonEventListener = (app) => {
|
||||
window.document.body.addEventListener("click", (e) => {
|
||||
commonClickEventHandler(app, "click", e);
|
||||
});
|
||||
window.document.body.addEventListener("click", (e) => {
|
||||
commonClickEventHandler(app, "click:capture", e);
|
||||
}, true);
|
||||
};
|
||||
const triggerCommonMethod = (methodName, node) => {
|
||||
const { instance } = node;
|
||||
switch (methodName.replace(COMMON_METHOD_PREFIX, "")) {
|
||||
case CommonMethod.SHOW:
|
||||
instance.show();
|
||||
break;
|
||||
case CommonMethod.HIDE:
|
||||
instance.hide();
|
||||
break;
|
||||
case CommonMethod.SCROLL_TO_VIEW:
|
||||
instance.$el.scrollIntoView({ behavior: "smooth" });
|
||||
break;
|
||||
case CommonMethod.SCROLL_TO_TOP:
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
break;
|
||||
}
|
||||
};
|
||||
class Node extends events.exports.EventEmitter {
|
||||
constructor(config) {
|
||||
super();
|
||||
const { events: events2 } = config;
|
||||
this.data = config;
|
||||
this.events = events2;
|
||||
this.listenLifeSafe();
|
||||
this.once("destroy", () => {
|
||||
this.instance = null;
|
||||
if (typeof this.data.destroy === "function") {
|
||||
this.data.destroy(this);
|
||||
}
|
||||
this.listenLifeSafe();
|
||||
});
|
||||
}
|
||||
listenLifeSafe() {
|
||||
this.once("created", (instance) => {
|
||||
this.instance = instance;
|
||||
if (typeof this.data.created === "function") {
|
||||
this.data.created(this);
|
||||
}
|
||||
});
|
||||
this.once("mounted", (instance) => {
|
||||
this.instance = instance;
|
||||
if (typeof this.data.mounted === "function") {
|
||||
this.data.mounted(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
class Page extends Node {
|
||||
constructor(options) {
|
||||
super(options.config);
|
||||
this.nodes = /* @__PURE__ */ new Map();
|
||||
this.setNode(options.config.id, this);
|
||||
this.initNode(options.config);
|
||||
}
|
||||
initNode(config) {
|
||||
var _a;
|
||||
this.setNode(config.id, new Node(config));
|
||||
(_a = config.items) == null ? void 0 : _a.forEach((element) => {
|
||||
this.initNode(element);
|
||||
});
|
||||
}
|
||||
getNode(id) {
|
||||
return this.nodes.get(id);
|
||||
}
|
||||
setNode(id, node) {
|
||||
this.nodes.set(id, node);
|
||||
}
|
||||
deleteNode(id) {
|
||||
this.nodes.delete(id);
|
||||
}
|
||||
}
|
||||
const style2Obj = (style) => {
|
||||
if (typeof style !== "string") {
|
||||
return style;
|
||||
}
|
||||
const obj = {};
|
||||
style.split(";").forEach((element) => {
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
const items = element.split(":");
|
||||
let key = items.shift();
|
||||
let value = items.join(":");
|
||||
if (!key)
|
||||
return;
|
||||
key = key.replace(/^\s*/, "").replace(/\s*$/, "");
|
||||
value = value.replace(/^\s*/, "").replace(/\s*$/, "");
|
||||
key = key.split("-").map((v, i) => i > 0 ? `${v[0].toUpperCase()}${v.substr(1)}` : v).join("");
|
||||
obj[key] = value;
|
||||
});
|
||||
return obj;
|
||||
};
|
||||
const fillBackgroundImage = (value) => {
|
||||
if (value && !/^url/.test(value) && !/^linear-gradient/.test(value)) {
|
||||
return `url(${value})`;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
class App extends events.exports.EventEmitter {
|
||||
constructor(options) {
|
||||
super();
|
||||
this.pages = /* @__PURE__ */ new Map();
|
||||
this.platform = "mobile";
|
||||
this.jsEngine = "browser";
|
||||
this.components = /* @__PURE__ */ new Map();
|
||||
this.env = new Env(options.ua);
|
||||
options.platform && (this.platform = options.platform);
|
||||
options.jsEngine && (this.jsEngine = options.jsEngine);
|
||||
if (this.platform === "mobile" || this.platform === "editor") {
|
||||
const calcFontsize = () => {
|
||||
let { width } = document.documentElement.getBoundingClientRect();
|
||||
width = Math.min(800, width);
|
||||
const fontSize = width / 3.75;
|
||||
document.documentElement.style.fontSize = `${fontSize}px`;
|
||||
};
|
||||
calcFontsize();
|
||||
document.body.style.fontSize = "14px";
|
||||
globalThis.addEventListener("resize", calcFontsize);
|
||||
}
|
||||
if (options.transformStyle) {
|
||||
this.transformStyle = options.transformStyle;
|
||||
}
|
||||
options.config && this.setConfig(options.config, options.curPage);
|
||||
bindCommonEventListener(this);
|
||||
}
|
||||
transformStyle(style) {
|
||||
if (!style) {
|
||||
return {};
|
||||
}
|
||||
let styleObj = {};
|
||||
const results = {};
|
||||
if (typeof style === "string") {
|
||||
styleObj = style2Obj(style);
|
||||
} else {
|
||||
styleObj = __spreadValues({}, style);
|
||||
}
|
||||
const whiteList = ["zIndex", "opacity", "fontWeight"];
|
||||
Object.entries(styleObj).forEach(([key, value]) => {
|
||||
if (key === "backgroundImage") {
|
||||
value && (results[key] = fillBackgroundImage(value));
|
||||
} else if (!whiteList.includes(key) && value && /^[-]?[0-9]*[.]?[0-9]*$/.test(value)) {
|
||||
results[key] = `${value / 100}rem`;
|
||||
} else {
|
||||
results[key] = value;
|
||||
}
|
||||
});
|
||||
return results;
|
||||
}
|
||||
setConfig(config, curPage) {
|
||||
var _a, _b, _c;
|
||||
this.pages = /* @__PURE__ */ new Map();
|
||||
(_a = config.items) == null ? void 0 : _a.forEach((page) => {
|
||||
this.pages.set(page.id, new Page({
|
||||
config: page
|
||||
}));
|
||||
});
|
||||
this.setPage(curPage || ((_c = (_b = this.page) == null ? void 0 : _b.data) == null ? void 0 : _c.id));
|
||||
}
|
||||
setPage(id) {
|
||||
let page;
|
||||
if (id) {
|
||||
page = this.pages.get(id);
|
||||
}
|
||||
if (!page) {
|
||||
page = this.pages.get(this.pages.keys().next().value);
|
||||
}
|
||||
this.page = page;
|
||||
if (this.platform !== "magic") {
|
||||
this.bindEvents();
|
||||
}
|
||||
}
|
||||
registerComponent(type, Component) {
|
||||
this.components.set(type, Component);
|
||||
}
|
||||
unregisterComponent(type) {
|
||||
this.components.delete(type);
|
||||
}
|
||||
resolveComponent(type) {
|
||||
return this.components.get(type);
|
||||
}
|
||||
bindEvents() {
|
||||
var _a;
|
||||
if (!this.page)
|
||||
return;
|
||||
this.removeAllListeners();
|
||||
for (const [, value] of this.page.nodes) {
|
||||
(_a = value.events) == null ? void 0 : _a.forEach((event) => {
|
||||
let { name: eventName } = event;
|
||||
if (DEFAULT_EVENTS.findIndex((defaultEvent) => defaultEvent.value === eventName) > -1) {
|
||||
eventName = getCommonEventName(eventName, `${value.data.id}`);
|
||||
}
|
||||
this.on(eventName, (fromCpt, ...args) => {
|
||||
var _a2;
|
||||
if (!this.page)
|
||||
throw new Error("\u5F53\u524D\u6CA1\u6709\u9875\u9762");
|
||||
const toNode = this.page.getNode(event.to);
|
||||
if (!toNode)
|
||||
throw `ID\u4E3A${event.to}\u7684\u7EC4\u4EF6\u4E0D\u5B58\u5728`;
|
||||
const { method: methodName } = event;
|
||||
if (isCommonMethod(methodName)) {
|
||||
return triggerCommonMethod(methodName, toNode);
|
||||
}
|
||||
if (typeof ((_a2 = toNode.instance) == null ? void 0 : _a2[methodName]) === "function") {
|
||||
toNode.instance[methodName](fromCpt, ...args);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
destroy() {
|
||||
this.removeAllListeners();
|
||||
this.pages.clear();
|
||||
}
|
||||
}
|
||||
var resetcss = "";
|
||||
export { App as A };
|
||||
//# sourceMappingURL=resetcss.e39ac995.js.map
|
File diff suppressed because one or more lines are too long
@ -1,43 +0,0 @@
|
||||
var page = {
|
||||
items: [],
|
||||
style: {
|
||||
width: "100%",
|
||||
height: "100%"
|
||||
}
|
||||
};
|
||||
var container = {
|
||||
items: [],
|
||||
style: {
|
||||
width: "375",
|
||||
height: "100"
|
||||
}
|
||||
};
|
||||
var button = {
|
||||
text: "\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",
|
||||
multiple: true,
|
||||
style: {
|
||||
width: "270",
|
||||
height: "37.5",
|
||||
border: 0,
|
||||
backgroundColor: "#fb6f00"
|
||||
}
|
||||
};
|
||||
var text = {
|
||||
type: "text",
|
||||
text: "\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",
|
||||
multiple: true,
|
||||
style: {
|
||||
width: "100",
|
||||
height: "auto"
|
||||
}
|
||||
};
|
||||
(function() {
|
||||
const values = {
|
||||
"page": page,
|
||||
"container": container,
|
||||
"button": button,
|
||||
"text": text
|
||||
};
|
||||
window.magicPresetValues = values;
|
||||
})();
|
||||
//# sourceMappingURL=value.js.map
|
File diff suppressed because one or more lines are too long
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vue3 Page</title>
|
||||
<script src="https://unpkg.com/vue@next/dist/vue.runtime.global.js"></script>
|
||||
<script type="module" crossorigin src="/runtime/vue3/assets/page.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/resetcss.e39ac995.js">
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/plugin-vue_export-helper.adee6e2f.js">
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/components.js">
|
||||
<link rel="stylesheet" href="/runtime/vue3/assets/resetcss.52e41e6b.css">
|
||||
<link rel="stylesheet" href="/runtime/vue3/assets/page.f43f55a4.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,24 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" style="font-size: 100px">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Vue3 Playground</title>
|
||||
|
||||
<script type="module" crossorigin src="/runtime/vue3/assets/playground.js"></script>
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/resetcss.e39ac995.js">
|
||||
<link rel="modulepreload" href="/runtime/vue3/assets/plugin-vue_export-helper.adee6e2f.js">
|
||||
<link rel="stylesheet" href="/runtime/vue3/assets/resetcss.52e41e6b.css">
|
||||
<link rel="stylesheet" href="/runtime/vue3/assets/playground.830d3c1b.css">
|
||||
</head>
|
||||
<body style="font-size: 14px">
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
|
||||
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -9,9 +9,6 @@
|
||||
<router-view :style="$route.meta.hideAside ? '' : 'padding: 20px'"></router-view>
|
||||
</el-main>
|
||||
</el-container>
|
||||
<div class="fixed-layer" v-if="$route.name === 'ui-editor' && !isChrome">
|
||||
<b style="font-size: 28px">魔方仅支持chrome浏览器编辑使用哦~</b>
|
||||
</div>
|
||||
</el-container>
|
||||
<router-view v-else class="app" :class="{ 'hide-nav': hideNav }"></router-view>
|
||||
</template>
|
||||
@ -47,7 +44,6 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
return {
|
||||
isChrome: navigator.userAgent.toLowerCase().includes('chrome'),
|
||||
hideFrame,
|
||||
hideNav: !!new URL(location.href).searchParams.get('hideNav'),
|
||||
asideTrigger,
|
||||
|
@ -66,7 +66,7 @@ export default defineComponent({
|
||||
|
||||
const save = () => {
|
||||
localStorage.setItem(
|
||||
'magicUiConfig',
|
||||
'magicDSL',
|
||||
serialize(toRaw(value.value), {
|
||||
space: 2,
|
||||
unsafe: true,
|
||||
|
@ -37,7 +37,7 @@ declare global {
|
||||
}
|
||||
|
||||
const getLocalConfig = (): MApp[] => {
|
||||
const configStr = localStorage.getItem('magicUiConfig');
|
||||
const configStr = localStorage.getItem('magicDSL');
|
||||
if (!configStr) return [];
|
||||
try {
|
||||
// eslint-disable-next-line no-eval
|
||||
|
@ -19,7 +19,7 @@
|
||||
import type { MApp } from '@tmagic/schema';
|
||||
|
||||
export const getLocalConfig = (): MApp[] => {
|
||||
const configStr = localStorage.getItem('magicUiConfig');
|
||||
const configStr = localStorage.getItem('magicDSL');
|
||||
if (!configStr) return [];
|
||||
try {
|
||||
// eslint-disable-next-line no-eval
|
||||
|
@ -19,7 +19,7 @@
|
||||
import type { MApp } from '@tmagic/schema';
|
||||
|
||||
export const getLocalConfig = (): MApp[] => {
|
||||
const configStr = localStorage.getItem('magicUiConfig');
|
||||
const configStr = localStorage.getItem('magicDSL');
|
||||
if (!configStr) return [];
|
||||
try {
|
||||
// eslint-disable-next-line no-eval
|
||||
|
Loading…
x
Reference in New Issue
Block a user