@vmm/template-homepage
Advanced tools
Comparing version 1.0.71 to 1.0.72
@@ -1,1 +0,1 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("_vmm_html"),require("VueRouter"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_html","VueRouter","Vue"],t):"object"===typeof exports?exports["main"]=t(require("_vmm_html"),require("VueRouter"),require("Vue")):e["main"]=t(e["_vmm_html"],e["VueRouter"],e["Vue"])})("undefined"!==typeof self?self:this,function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="c267")}({"034f":function(e,t,n){"use strict";var r=n("147f"),o=n.n(r);o.a},"0b34":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.helloSession={hello:{client:{hello:"this is hello"},server:{worldCounter:999}}}},"145f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("db9b"),o=n("4bac");t.helloDb={helloAdmin:r.DB_CRUD(o.schemas.hello,{},["user"],"admin"),worldAdmin:r.DB_CRUD(o.schemas.world,{},["user"],"admin"),hello:r.DB_R(o.schemas.hello,{excludeFields:[]},["user"],"")}},"147f":function(e,t,n){var r=n("b5a8");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("499e").default;o("ec5ac02a",r,!0,{sourceMap:!1,shadowMode:!1})},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var u=o(r),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([u]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var u=this[o][0];null!=u&&(r[u]=!0)}for(var i=0;i<e.length;i++){var a=e[i];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="(".concat(a[2],") and (").concat(n,")")),t.push(a))}},t}},2877:function(e,t,n){"use strict";function r(e,t,n,r,o,u,i,a){var c,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),u&&(s._scopeId="data-v-"+u),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(e,t){return c.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}n.d(t,"a",function(){return r})},"2e0e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("de96"),o=n("cff1"),u=n("145f"),i=n("0b34");t.default={pkg:{name:r.name,version:r.version,description:r.description},api:{...o.helloApi},db:{...u.helloDb},session:{...i.helloSession}};var a=n("4bac");t.schemaHello=a.schemas},3385:function(e,t,n){(function(t){var n=1/0,r="[object Symbol]",o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",a="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",s="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",f="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\u2000-\\u206f",m=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="A-Z\\xc0-\\xd6\\xd8-\\xde",v="\\ufe0e\\ufe0f",b=f+d+p+m,y="['’]",_="["+b+"]",g="["+a+c+"]",x="\\d+",j="["+s+"]",O="["+l+"]",w="[^"+i+b+x+s+l+h+"]",T="\\ud83c[\\udffb-\\udfff]",P="(?:"+g+"|"+T+")",C="[^"+i+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",D="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+h+"]",E="\\u200d",H="(?:"+O+"|"+w+")",U="(?:"+R+"|"+w+")",A="(?:"+y+"(?:d|ll|m|re|s|t|ve))?",M="(?:"+y+"(?:D|LL|M|RE|S|T|VE))?",I=P+"?",N="["+v+"]?",$="(?:"+E+"(?:"+[C,S,D].join("|")+")"+N+I+")*",k=N+I+$,L="(?:"+[j,S,D].join("|")+")"+k,B=RegExp(y,"g"),V=RegExp(g,"g"),z=RegExp([R+"?"+O+"+"+A+"(?="+[_,R,"$"].join("|")+")",U+"+"+M+"(?="+[_,R+H,"$"].join("|")+")",R+"?"+H+"+"+A,R+"+"+M,x,L].join("|"),"g"),q=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Z={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},G="object"==typeof t&&t&&t.Object===Object&&t,F="object"==typeof self&&self&&self.Object===Object&&self,J=G||F||Function("return this")();function Y(e,t,n,r){var o=-1,u=e?e.length:0;r&&u&&(n=e[++o]);while(++o<u)n=t(n,e[o],o,e);return n}function W(e){return e.match(o)||[]}function X(e){return function(t){return null==e?void 0:e[t]}}var K=X(Z);function Q(e){return q.test(e)}function ee(e){return e.match(z)||[]}var te=Object.prototype,ne=te.toString,re=J.Symbol,oe=re?re.prototype:void 0,ue=oe?oe.toString:void 0;function ie(e){if("string"==typeof e)return e;if(se(e))return ue?ue.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}function ae(e){return function(t){return Y(pe(fe(t).replace(B,"")),e,"")}}function ce(e){return!!e&&"object"==typeof e}function se(e){return"symbol"==typeof e||ce(e)&&ne.call(e)==r}function le(e){return null==e?"":ie(e)}function fe(e){return e=le(e),e&&e.replace(u,K).replace(V,"")}var de=ae(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});function pe(e,t,n){return e=le(e),t=n?void 0:t,void 0===t?Q(e)?ee(e):W(e):e.match(t)||[]}e.exports=de}).call(this,n("ac5c"))},"42a3":function(t,n){t.exports=e},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var u=t[o],i=u[0],a=u[1],c=u[2],s=u[3],l={id:e+":"+o,css:a,media:c,sourceMap:s};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}n.r(t),n.d(t,"default",function(){return m});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u={},i=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,s=!1,l=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){s=n,f=o||{};var i=r(e,t);return h(i),function(t){for(var n=[],o=0;o<i.length;o++){var a=i[o],c=u[a.id];c.refs--,n.push(c)}t?(i=r(e,t),h(i)):i=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete u[c.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(b(n.parts[o]));u[n.id]={id:n.id,refs:1,parts:i}}}}function v(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(s)return l;r.parentNode.removeChild(r)}if(p){var o=c++;r=a||(a=v()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=v(),t=g.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var u=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(u,i[t]):e.appendChild(u)}}function g(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(d,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4bac":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("db9b");t.hello=new r.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),t.world=new r.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),t.schemas={hello:t.hello,world:t.world}},"4c0f":function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},6389:function(e,n){e.exports=t},"78c1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home"},[n("h1",[e._v("我是测试页1")]),n("a",{attrs:{href:"#/"}},[e._v("返回")]),n("h1",[e._v("MOD:"+e._s(e.counter))]),n("Hello")],1)},o=[],u=n("9ab4"),i=n("8bbf"),a=n.n(i),c=n("9224"),s=n("2e0e"),l=n.n(s),f=n("42a3"),d=n.n(f);const p=d.a.logger(`${c["a"]}:Test`),m=d.a.project.loadApi(l.a);var h=a.a.extend({components:{Hello:()=>d.a.project.vueComponent("@vmm/hello-world","Hello")},data(){return{modHello:{}}},computed:{counter(){return this.modHello&&this.modHello.helloData?this.modHello.helloData.counter:"none"}},created(){return Object(u["a"])(this,void 0,void 0,function*(){const e=yield m.api.hello({arg1:1,arg2:1});p.debug("api return:",e);const t=yield d.a.project.loadExternalModule("moment");this.modHello=yield d.a.project.loadExternalModule("@vmm/hello-world"),p.debug("start m1 ... ",t,t().format()),p.debug("helloworld mod:",this.modHello),p.debug("vmm mod:",window._vmm_hello_world)})}}),v=h,b=n("2877"),y=Object(b["a"])(v,r,o,!1,null,null,null);t["default"]=y.exports},"7d21":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("8b83");function o(e){for(const t of Object.keys(e))e[t].collName=t;return e}t.createDbSchemas=o;class u{constructor(e,t,n){this.collName="",this.docSchema={},this.indexSchema=t,this.collOptions=e,this.collOptions._extDb=n}}function i(e,t){return{C:{insertOne:r.HTTP(e,t),insertMany:r.HTTP(e,t)},R:{findOne:r.HTTP(e,t),find:r.HTTP(e,t),countDocuments:r.HTTP(e,t),estimatedDocumentCount:r.HTTP(e,t),geoHaystackSearch:r.HTTP(e,t),distinct:r.HTTP(e,t)},U:{updateOne:r.HTTP(e,t),updateMany:r.HTTP(e,t),findOneAndReplace:r.HTTP(e,t),findOneAndUpdate:r.HTTP(e,t)},D:{deleteOne:r.HTTP(e,t),deleteMany:r.HTTP(e,t),findOneAndDelete:r.HTTP(e,t)}}}t.DbSchema=u;function a(e,t,n,r){const o=i(n,r),u=o["R"];return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}function c(e,t,n,r){const o=i(n,r),u={...o["U"],...o["R"]};return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}function s(e,t,n,r){const o=i(n,r),u={...o["C"],...o["U"],...o["R"]};return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}function l(e,t,n,r){const o=i(n,r),u={...o["C"],...o["R"],...o["U"],...o["D"]};return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}t.DB_R=a,t.DB_RU=c,t.DB_CRU=s,t.DB_CRUD=l},"8b83":function(e,t,n){"use strict";function r(e,t){const n=function(){throw new Error("INVALID HTTP API")},r=n;return r._sessions=e,r._actor=t,n}Object.defineProperty(t,"__esModule",{value:!0}),t.HTTP=r},"8bbf":function(e,t){e.exports=n},9224:function(e){e.exports={a:"@vmm/template-homepage"}},"9ab4":function(e,t,n){"use strict";n.d(t,"a",function(){return r});function r(e,t,n,r){return new(n||(n=Promise))(function(o,u){function i(e){try{c(r.next(e))}catch(t){u(t)}}function a(e){try{c(r["throw"](e))}catch(t){u(t)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,a)}c((r=r.apply(e,t||[])).next())})}},ac5c:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},b5a8:function(e,t,n){t=e.exports=n("24fb")(!1),t.push([e.i,"#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;width:100%;height:100%;padding:0;margin:0}",""])},bb51:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home"},[n("h1",[e._v("我是首页")]),n("a",{attrs:{href:"#/test"}},[e._v("测试页")])])}],u={name:"home",components:{}},i=u,a=n("2877"),c=Object(a["a"])(i,r,o,!1,null,null,null);t["default"]=c.exports},c267:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("4c0f"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},u=[],i=n("8bbf"),a=n.n(i),c=a.a.extend({name:"app",components:{},created(){}}),s=c,l=(n("034f"),n("2877")),f=Object(l["a"])(s,o,u,!1,null,null,null),d=f.exports,p=n("9ab4"),m=n("6389"),h=n.n(m),v=n("42a3"),b=n.n(v),y=n("9224"),_=n("3385"),g=n.n(_);const x=b.a.logger(`${y["a"]}:router`);function j(e){for(const t of Object.keys(b.a.project.projectData.packages.html))if(g()(t)===e)return b.a.project.projectData.packages.html[t]}function O(e,t){if(e.components)for(const n of Object.keys(e.components))if(g()(n)===t)return{name:n,vueComponent:e.components[n]}}a.a.use(h.a),b.a.project.loadVueDir(y["a"],n("c321"));const w=[{path:"/",component:()=>b.a.project.vueComponent(y["a"],"Home")},{path:"*",beforeEnter:(e,t,n)=>Object(p["a"])(void 0,void 0,void 0,function*(){const t=e.path.match(/^\/(.*)\/(.*)/);if(!t||t.length<3)return void x.error("Invalid Path:",e.fullPath);const n=t[1],r=t[2],o=j(n);if(!o)return void x.error("route pkg name Invalid:",n);"successed"!==o._loadStatus&&(yield b.a.project.loadExternalModule(o.name));const u=O(o,r);u?(T.addRoutes([{path:e.path,component:u.vueComponent}]),setTimeout(()=>{T.replace(e.fullPath,()=>{x.info("successes create route:",e.path)})})):x.error("router cmpt name Invalid:",n,r)})}],T=new h.a({routes:w});var P=T;const C=b.a.logger(`${y["a"]}:main`);new d({router:P}).$mount("#app"),C.debug("start ...");const S={};window[y["a"].replace(/[@\/-]/g,"_")]=S;var D=S;t["default"]=D},c321:function(e,t,n){var r={"./Home.vue":"bb51","./Test.vue":"78c1"};function o(e){var t=u(e);return n(t)}function u(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(r)},o.resolve=u,e.exports=o,o.id="c321"},cff1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("db9b");t.helloApi={hello:r.HTTP([],""),adminHello:r.HTTP(["user"],"admin")}},db9b:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("7d21")),r(n("8b83"))},de96:function(e){e.exports={name:"@vmm/hello-world-api",version:"1.0.56",description:"你好示例API",main:"dist/src/index.js",types:"./src/index.ts",moduleType:"api",license:"MIT",scripts:{serve:"tsc -w",build:"tsc",doc:"typedoc --json ./document/doc.json ./src/"},dependencies:{"@vmm/api":"^1.0.7"}}}})}); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("_vmm_html"),require("VueRouter"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_html","VueRouter","Vue"],t):"object"===typeof exports?exports["main"]=t(require("_vmm_html"),require("VueRouter"),require("Vue")):e["main"]=t(e["_vmm_html"],e["VueRouter"],e["Vue"])})("undefined"!==typeof self?self:this,function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="c267")}({"034f":function(e,t,n){"use strict";var r=n("147f"),o=n.n(r);o.a},"0b34":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.helloSession={hello:{client:{hello:"this is hello"},server:{worldCounter:999}}}},"145f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("db9b"),o=n("4bac");t.helloDb={helloAdmin:r.DB_CRUD(o.schemas.hello,{},["user"],"admin"),worldAdmin:r.DB_CRUD(o.schemas.world,{},["user"],"admin"),hello:r.DB_R(o.schemas.hello,{excludeFields:[]},["user"],"")}},"147f":function(e,t,n){var r=n("b5a8");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var o=n("499e").default;o("ec5ac02a",r,!0,{sourceMap:!1,shadowMode:!1})},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var u=o(r),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([u]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var u=this[o][0];null!=u&&(r[u]=!0)}for(var i=0;i<e.length;i++){var a=e[i];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="(".concat(a[2],") and (").concat(n,")")),t.push(a))}},t}},2877:function(e,t,n){"use strict";function r(e,t,n,r,o,u,i,a){var c,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),u&&(s._scopeId="data-v-"+u),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(e,t){return c.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}n.d(t,"a",function(){return r})},"2e0e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("de96"),o=n("cff1"),u=n("145f"),i=n("0b34");t.default={pkg:{name:r.name,version:r.version,description:r.description},api:{...o.helloApi},db:{...u.helloDb},session:{...i.helloSession}};var a=n("4bac");t.schemaHello=a.schemas},3385:function(e,t,n){(function(t){var n=1/0,r="[object Symbol]",o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,u=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\ud800-\\udfff",a="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",s="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",f="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\u2000-\\u206f",m=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="A-Z\\xc0-\\xd6\\xd8-\\xde",v="\\ufe0e\\ufe0f",b=f+d+p+m,y="['’]",_="["+b+"]",g="["+a+c+"]",x="\\d+",j="["+s+"]",O="["+l+"]",w="[^"+i+b+x+s+l+h+"]",T="\\ud83c[\\udffb-\\udfff]",P="(?:"+g+"|"+T+")",C="[^"+i+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+h+"]",H="\\u200d",R="(?:"+O+"|"+w+")",U="(?:"+E+"|"+w+")",A="(?:"+y+"(?:d|ll|m|re|s|t|ve))?",M="(?:"+y+"(?:D|LL|M|RE|S|T|VE))?",N=P+"?",I="["+v+"]?",$="(?:"+H+"(?:"+[C,D,S].join("|")+")"+I+N+")*",k=I+N+$,L="(?:"+[j,D,S].join("|")+")"+k,V=RegExp(y,"g"),B=RegExp(g,"g"),z=RegExp([E+"?"+O+"+"+A+"(?="+[_,E,"$"].join("|")+")",U+"+"+M+"(?="+[_,E+R,"$"].join("|")+")",E+"?"+R+"+"+A,E+"+"+M,x,L].join("|"),"g"),q=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Z={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},F="object"==typeof t&&t&&t.Object===Object&&t,G="object"==typeof self&&self&&self.Object===Object&&self,J=F||G||Function("return this")();function Y(e,t,n,r){var o=-1,u=e?e.length:0;r&&u&&(n=e[++o]);while(++o<u)n=t(n,e[o],o,e);return n}function W(e){return e.match(o)||[]}function X(e){return function(t){return null==e?void 0:e[t]}}var K=X(Z);function Q(e){return q.test(e)}function ee(e){return e.match(z)||[]}var te=Object.prototype,ne=te.toString,re=J.Symbol,oe=re?re.prototype:void 0,ue=oe?oe.toString:void 0;function ie(e){if("string"==typeof e)return e;if(se(e))return ue?ue.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}function ae(e){return function(t){return Y(pe(fe(t).replace(V,"")),e,"")}}function ce(e){return!!e&&"object"==typeof e}function se(e){return"symbol"==typeof e||ce(e)&&ne.call(e)==r}function le(e){return null==e?"":ie(e)}function fe(e){return e=le(e),e&&e.replace(u,K).replace(B,"")}var de=ae(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});function pe(e,t,n){return e=le(e),t=n?void 0:t,void 0===t?Q(e)?ee(e):W(e):e.match(t)||[]}e.exports=de}).call(this,n("ac5c"))},"42a3":function(t,n){t.exports=e},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var u=t[o],i=u[0],a=u[1],c=u[2],s=u[3],l={id:e+":"+o,css:a,media:c,sourceMap:s};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}n.r(t),n.d(t,"default",function(){return m});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u={},i=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,s=!1,l=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){s=n,f=o||{};var i=r(e,t);return h(i),function(t){for(var n=[],o=0;o<i.length;o++){var a=i[o],c=u[a.id];c.refs--,n.push(c)}t?(i=r(e,t),h(i)):i=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete u[c.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(b(n.parts[o]));u[n.id]={id:n.id,refs:1,parts:i}}}}function v(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(s)return l;r.parentNode.removeChild(r)}if(p){var o=c++;r=a||(a=v()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=v(),t=g.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var u=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(u,i[t]):e.appendChild(u)}}function g(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(d,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4bac":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("db9b");t.hello=new r.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),t.world=new r.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),t.schemas={hello:t.hello,world:t.world}},"4c0f":function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},6389:function(e,n){e.exports=t},"78c1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home"},[n("h1",[e._v("我是测试页1")]),n("a",{attrs:{href:"#/"}},[e._v("返回")]),n("h1",[e._v("MOD:"+e._s(e.counter))]),n("Hello")],1)},o=[],u=n("9ab4"),i=n("8bbf"),a=n.n(i),c=n("9224"),s=n("2e0e"),l=n.n(s),f=n("42a3"),d=n.n(f);const p=d.a.logger(`${c["a"]}:Test`),m=d.a.project.loadApi(l.a);var h=a.a.extend({components:{Hello:()=>d.a.project.vueComponent("@vmm/hello-world","Hello")},data(){return{modHello:{}}},computed:{counter(){return this.modHello&&this.modHello.helloData?this.modHello.helloData.counter:"none"}},created(){return Object(u["a"])(this,void 0,void 0,function*(){const e=yield m.api.hello({arg1:1,arg2:1});p.debug("api return:",e);const t=yield d.a.project.loadExternalModule("moment");this.modHello=yield d.a.project.loadExternalModule("@vmm/hello-world"),p.debug("start m1 ... ",t,t().format()),p.debug("helloworld mod:",this.modHello),p.debug("vmm mod:",window._vmm_hello_world)})}}),v=h,b=n("2877"),y=Object(b["a"])(v,r,o,!1,null,null,null);t["default"]=y.exports},"7d21":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("8b83");function o(e){for(const t of Object.keys(e))e[t].collName=t;return e}t.createDbSchemas=o;class u{constructor(e,t,n){this.collName="",this.docSchema={},this.indexSchema=t,this.collOptions=e,this.collOptions._extDb=n}}function i(e,t){return{C:{insertOne:r.HTTP(e,t),insertMany:r.HTTP(e,t)},R:{findOne:r.HTTP(e,t),find:r.HTTP(e,t),countDocuments:r.HTTP(e,t),estimatedDocumentCount:r.HTTP(e,t),geoHaystackSearch:r.HTTP(e,t),distinct:r.HTTP(e,t)},U:{updateOne:r.HTTP(e,t),updateMany:r.HTTP(e,t),findOneAndReplace:r.HTTP(e,t),findOneAndUpdate:r.HTTP(e,t)},D:{deleteOne:r.HTTP(e,t),deleteMany:r.HTTP(e,t),findOneAndDelete:r.HTTP(e,t)}}}t.DbSchema=u;function a(e,t,n,r){const o=i(n,r),u=o["R"];return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}function c(e,t,n,r){const o=i(n,r),u={...o["U"],...o["R"]};return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}function s(e,t,n,r){const o=i(n,r),u={...o["C"],...o["U"],...o["R"]};return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}function l(e,t,n,r){const o=i(n,r),u={...o["C"],...o["R"],...o["U"],...o["D"]};return Object.defineProperty(u,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(u,"_schema",{enumerable:!1,writable:!1,value:e}),u}t.DB_R=a,t.DB_RU=c,t.DB_CRU=s,t.DB_CRUD=l},"8b83":function(e,t,n){"use strict";function r(e,t){const n=function(){throw new Error("INVALID HTTP API")},r=n;return r._sessions=e,r._actor=t,n}Object.defineProperty(t,"__esModule",{value:!0}),t.HTTP=r},"8bbf":function(e,t){e.exports=n},9224:function(e){e.exports={a:"@vmm/template-homepage"}},9328:function(e,t,n){var r={"./Home.vue":"bb51","./Test.vue":"78c1"};function o(e){var t=u(e);return n(t)}function u(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(r)},o.resolve=u,e.exports=o,o.id="9328"},"9ab4":function(e,t,n){"use strict";n.d(t,"a",function(){return r});function r(e,t,n,r){return new(n||(n=Promise))(function(o,u){function i(e){try{c(r.next(e))}catch(t){u(t)}}function a(e){try{c(r["throw"](e))}catch(t){u(t)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,a)}c((r=r.apply(e,t||[])).next())})}},ac5c:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},b5a8:function(e,t,n){t=e.exports=n("24fb")(!1),t.push([e.i,"#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;width:100%;height:100%;padding:0;margin:0}",""])},bb51:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home"},[n("h1",[e._v("我是首页")]),n("a",{attrs:{href:"#/test"}},[e._v("测试页")])])}],u=Vue.extend({name:"home",components:{}}),i=u,a=n("2877"),c=Object(a["a"])(i,r,o,!1,null,null,null);t["default"]=c.exports},c267:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("4c0f"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},u=[],i=n("8bbf"),a=n.n(i),c=a.a.extend({name:"app",components:{},created(){}}),s=c,l=(n("034f"),n("2877")),f=Object(l["a"])(s,o,u,!1,null,null,null),d=f.exports,p=n("9ab4"),m=n("6389"),h=n.n(m),v=n("42a3"),b=n.n(v),y=n("9224"),_=n("3385"),g=n.n(_);const x=b.a.logger(`${y["a"]}:router`);function j(e){for(const t of Object.keys(b.a.project.projectData.packages.html))if(g()(t)===e)return b.a.project.projectData.packages.html[t]}function O(e,t){if(e.components)for(const n of Object.keys(e.components))if(g()(n)===t)return{name:n,vueComponent:e.components[n]}}a.a.use(h.a),b.a.project.loadVueDir(y["a"],n("c321"));const w=[{path:"/",component:()=>b.a.project.vueComponent(y["a"],"Home")},{path:"*",beforeEnter:(e,t,n)=>Object(p["a"])(void 0,void 0,void 0,function*(){const t=e.path.match(/^\/(.*)\/(.*)/);if(!t||t.length<3)return void x.error("Invalid Path:",e.fullPath);const n=t[1],r=t[2],o=j(n);if(!o)return void x.error("route pkg name Invalid:",n);"successed"!==o._loadStatus&&(yield b.a.project.loadExternalModule(o.name));const u=O(o,r);u?(T.addRoutes([{path:e.path,component:u.vueComponent}]),setTimeout(()=>{T.replace(e.fullPath,()=>{x.info("successes create route:",e.path)})})):x.error("router cmpt name Invalid:",n,r)})}],T=new h.a({routes:w});var P=T;const C=b.a.logger(`${y["a"]}:main`);b.a.project.loadVueDir(y["a"],n("9328")),new d({router:P}).$mount("#app"),C.debug("start ...");const D={};window[y["a"].replace(/[@\/-]/g,"_")]=D;var S=D;t["default"]=S},c321:function(e,t,n){var r={"./Home.vue":"bb51","./Test.vue":"78c1"};function o(e){var t=u(e);return n(t)}function u(e){var t=r[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}o.keys=function(){return Object.keys(r)},o.resolve=u,e.exports=o,o.id="c321"},cff1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("db9b");t.helloApi={hello:r.HTTP([],""),adminHello:r.HTTP(["user"],"admin")}},db9b:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("7d21")),r(n("8b83"))},de96:function(e){e.exports={name:"@vmm/hello-world-api",version:"1.0.56",description:"你好示例API",main:"dist/src/index.js",types:"./src/index.ts",moduleType:"api",license:"MIT",scripts:{serve:"tsc -w",build:"tsc",doc:"typedoc --json ./document/doc.json ./src/"},dependencies:{"@vmm/api":"^1.0.7"}}}})}); |
{ | ||
"name": "@vmm/template-homepage", | ||
"version": "1.0.71", | ||
"version": "1.0.72", | ||
"description": "html homepage 模板", | ||
@@ -10,2 +10,3 @@ "license": "MIT", | ||
"@vmm/html": "^1.0.96", | ||
"view-design": "^4.0.2", | ||
"vue": "^2.6.10", | ||
@@ -12,0 +13,0 @@ "vue-router": "^3.0.6" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
281113
4
+ Addedview-design@^4.0.2
+ Addedasync-validator@3.5.2(transitive)
+ Addedbatch-processor@1.0.0(transitive)
+ Addeddeepmerge@2.2.1(transitive)
+ Addedelement-resize-detector@1.2.4(transitive)
+ Addedjs-calendar@1.2.3(transitive)
+ Addedlodash.throttle@4.1.1(transitive)
+ Addedpopper.js@1.16.1(transitive)
+ Addedtinycolor2@1.6.0(transitive)
+ Addedv-click-outside-x@3.7.1(transitive)
+ Addedview-design@4.7.0(transitive)