@vmm/template-homepage
Advanced tools
Comparing version 1.0.68 to 1.0.69
@@ -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 i=o(r),a=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(a).concat([i]).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 i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var s=e[a];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},2877:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(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(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}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"),i=n("145f"),a=n("0b34");t.default={pkg:{name:r.name,version:r.version,description:r.description},api:{...o.helloApi},db:{...i.helloDb},session:{...a.helloSession}};var s=n("4bac");t.schemaHello=s.schemas},"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 i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,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 i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){u=n,d=o||{};var a=r(e,t);return h(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,n.push(c)}t?(a=r(e,t),h(a)):a=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[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 a=[];for(o=0;o<n.parts.length;o++)a.push(b(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(p){var o=c++;r=s||(s=v()),t=y.bind(null,r,o,!1),n=y.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 _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function g(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(f,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=[];function i(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((r=r.apply(e,t||[])).next())})}var a=n("8bbf"),s=n.n(a),c=n("9224"),u=n("2e0e"),l=n.n(u),d=n("42a3"),f=n.n(d);const p=f.a.logger(`${c["a"]}:Test`),m=f.a.project.loadApi(l.a);var h=s.a.extend({components:{Hello:()=>f.a.project.vueComponent("@vmm/hello-world","Hello")},data(){return{modHello:{}}},computed:{counter(){if(this.modHello&&this.modHello.helloData)return this.modHello.helloData.counter}},created(){return i(this,void 0,void 0,function*(){const e=yield m.api.hello({arg1:1,arg2:1});p.debug("api return:",e);const t=yield f.a.project.loadExternalModule("moment");this.modHello=yield f.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"),_=Object(b["a"])(v,r,o,!1,null,null,null);t["default"]=_.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 i{constructor(e,t,n){this.collName="",this.docSchema={},this.indexSchema=t,this.collOptions=e,this.collOptions._extDb=n}}function a(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=i;function s(e,t,n,r){const o=a(n,r),i=o["R"];return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function c(e,t,n,r){const o=a(n,r),i={...o["U"],...o["R"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function u(e,t,n,r){const o=a(n,r),i={...o["C"],...o["U"],...o["R"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function l(e,t,n,r){const o=a(n,r),i={...o["C"],...o["R"],...o["U"],...o["D"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}t.DB_R=s,t.DB_RU=c,t.DB_CRU=u,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"}},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("测试页")])])}],i={name:"home",components:{}},a=i,s=n("2877"),c=Object(s["a"])(a,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)},i=[],a=n("8bbf"),s=n.n(a),c=s.a.extend({name:"app",components:{},created(){}}),u=c,l=(n("034f"),n("2877")),d=Object(l["a"])(u,o,i,!1,null,null,null),f=d.exports,p=n("6389"),m=n.n(p),h=n("42a3"),v=n.n(h),b=n("9224");s.a.use(m.a),v.a.project.loadVueDir(b["a"],n("c321"));const _=[{path:"/",name:"home",component:()=>v.a.project.vueComponent(b["a"],"Home")},{path:"/test",name:"test",component:()=>v.a.project.vueComponent(b["a"],"Test")}],y=new m.a({routes:_});var g=y;const T=v.a.logger(`${b["a"]}:main`);new f({router:g}).$mount("#app"),T.debug("start ...");const w={};window[b["a"].replace(/[@\/-]/g,"_")]=w;var j=w;t["default"]=j},c321:function(e,t,n){var r={"./Home.vue":"bb51","./Test.vue":"78c1"};function o(e){var t=i(e);return n(t)}function i(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=i,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 i=o(r),a=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(a).concat([i]).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 i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var s=e[a];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},2877:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(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(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}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"),i=n("145f"),a=n("0b34");t.default={pkg:{name:r.name,version:r.version,description:r.description},api:{...o.helloApi},db:{...i.helloDb},session:{...a.helloSession}};var s=n("4bac");t.schemaHello=s.schemas},"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 i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,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 i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){u=n,d=o||{};var a=r(e,t);return h(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,n.push(c)}t?(a=r(e,t),h(a)):a=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[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 a=[];for(o=0;o<n.parts.length;o++)a.push(b(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(p){var o=c++;r=s||(s=v()),t=y.bind(null,r,o,!1),n=y.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 _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function g(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(f,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=[];function i(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((r=r.apply(e,t||[])).next())})}var a=n("8bbf"),s=n.n(a),c=n("9224"),u=n("2e0e"),l=n.n(u),d=n("42a3"),f=n.n(d);const p=f.a.logger(`${c["a"]}:Test`),m=f.a.project.loadApi(l.a);var h=s.a.extend({components:{Hello:()=>f.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 i(this,void 0,void 0,function*(){const e=yield m.api.hello({arg1:1,arg2:1});p.debug("api return:",e);const t=yield f.a.project.loadExternalModule("moment");this.modHello=yield f.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"),_=Object(b["a"])(v,r,o,!1,null,null,null);t["default"]=_.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 i{constructor(e,t,n){this.collName="",this.docSchema={},this.indexSchema=t,this.collOptions=e,this.collOptions._extDb=n}}function a(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=i;function s(e,t,n,r){const o=a(n,r),i=o["R"];return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function c(e,t,n,r){const o=a(n,r),i={...o["U"],...o["R"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function u(e,t,n,r){const o=a(n,r),i={...o["C"],...o["U"],...o["R"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}function l(e,t,n,r){const o=a(n,r),i={...o["C"],...o["R"],...o["U"],...o["D"]};return Object.defineProperty(i,"_db",{enumerable:!1,writable:!1,value:t}),Object.defineProperty(i,"_schema",{enumerable:!1,writable:!1,value:e}),i}t.DB_R=s,t.DB_RU=c,t.DB_CRU=u,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"}},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("测试页")])])}],i={name:"home",components:{}},a=i,s=n("2877"),c=Object(s["a"])(a,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)},i=[],a=n("8bbf"),s=n.n(a),c=s.a.extend({name:"app",components:{},created(){}}),u=c,l=(n("034f"),n("2877")),d=Object(l["a"])(u,o,i,!1,null,null,null),f=d.exports,p=n("6389"),m=n.n(p),h=n("42a3"),v=n.n(h),b=n("9224");s.a.use(m.a),v.a.project.loadVueDir(b["a"],n("c321"));const _=[{path:"/",name:"home",component:()=>v.a.project.vueComponent(b["a"],"Home")},{path:"/test",name:"test",component:()=>v.a.project.vueComponent(b["a"],"Test")}],y=new m.a({routes:_});var g=y;const T=v.a.logger(`${b["a"]}:main`);new f({router:g}).$mount("#app"),T.debug("start ...");const w={};window[b["a"].replace(/[@\/-]/g,"_")]=w;var j=w;t["default"]=j},c321:function(e,t,n){var r={"./Home.vue":"bb51","./Test.vue":"78c1"};function o(e){var t=i(e);return n(t)}function i(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=i,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.68", | ||
"version": "1.0.69", | ||
"description": "html homepage 模板", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
275395