Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vmm/template-homepage

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vmm/template-homepage - npm Package Compare versions

Comparing version 1.0.58 to 1.0.59

2

index.js

@@ -1,1 +0,1 @@

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("_vmm_hello_world"),require("_vmm_html"),require("VueRouter"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_hello_world","_vmm_html","VueRouter","Vue"],t):"object"===typeof exports?exports["main"]=t(require("_vmm_hello_world"),require("_vmm_html"),require("VueRouter"),require("Vue")):e["main"]=t(e["_vmm_hello_world"],e["_vmm_html"],e["VueRouter"],e["Vue"])})("undefined"!==typeof self?self:this,function(e,t,n,r){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}},"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},"416d":function(t,n){t.exports=e},"42a3":function(e,n){e.exports=t},"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,t){e.exports=n},"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=r},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}",""])},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]));function o(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 i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},a=[],s=n("8bbf"),c=n.n(s),u=c.a.extend({name:"app",components:{},created(){}}),l=u;n("034f");function d(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}}var f=d(l,i,a,!1,null,null,null),p=f.exports,m=n("6389"),h=n.n(m),v=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},b=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home"},[n("h1",[e._v("我是首页")])])}],_={name:"home",components:{}},y=_,g=d(y,v,b,!1,null,null,null),T=g.exports;c.a.use(h.a);const w=[{path:"/",name:"home",component:T}],P=new h.a({routes:w});var j=P,x=n("9224"),O=n("42a3"),C=n.n(O),S=n("2e0e"),R=n.n(S),D=n("416d"),H=n.n(D);const M=C.a.project.loadApi(R.a),U=C.a.logger(`${x["a"]}:main`);U.debug("start homepage ... "),U.debug("modHelloWorld",H.a),U.debug("api ... ",M,C.a.project.api[M.pkg.name]),(()=>o(void 0,void 0,void 0,function*(){const e=yield M.api.hello({arg1:1,arg2:1});U.debug("test--\x3e:",e)}))(),new p({router:j}).$mount("#app");const A={};window[x["a"].replace(/[@\/-]/g,"_")]=A;var E=A;t["default"]=E},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_hello_world"),require("_vmm_html"),require("VueRouter"),require("Vue"),require("moment")):"function"===typeof define&&define.amd?define(["_vmm_hello_world","_vmm_html","VueRouter","Vue","moment"],t):"object"===typeof exports?exports["main"]=t(require("_vmm_hello_world"),require("_vmm_html"),require("VueRouter"),require("Vue"),require("moment")):e["main"]=t(e["_vmm_hello_world"],e["_vmm_html"],e["VueRouter"],e["Vue"],e["moment"])})("undefined"!==typeof self?self:this,function(e,t,n,r,o){return function(e){function t(t){for(var n,o,i=t[0],a=t[1],s=0,u=[];s<i.length;s++)o=i[s],r[o]&&u.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);c&&c(t);while(u.length)u.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var i=("undefined"!==typeof self?self:this)["webpackJsonpmain"]=("undefined"!==typeof self?self:this)["webpackJsonpmain"]||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var c=a;return o(o.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}},"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},"416d":function(t,n){t.exports=e},"42a3":function(e,n){e.exports=t},"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,t){e.exports=n},"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=r},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}",""])},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]));function o(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 i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},a=[],s=n("8bbf"),c=n.n(s),u=c.a.extend({name:"app",components:{},created(){}}),l=u;n("034f");function d(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}}var f=d(l,i,a,!1,null,null,null),p=f.exports,m=n("6389"),h=n.n(m),v=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},b=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home"},[n("h1",[e._v("我是首页")])])}],_={name:"home",components:{}},y=_,g=d(y,v,b,!1,null,null,null),w=g.exports;c.a.use(h.a);const T=[{path:"/",name:"home",component:w}],P=new h.a({routes:T});var j=P,x=n("9224"),O=n("42a3"),C=n.n(O),S=n("2e0e"),R=n.n(S),D=n("416d"),M=n.n(D);const H=C.a.project.loadApi(R.a),U=C.a.logger(`${x["a"]}:main`);U.debug("modHelloWorld",M.a),U.debug("api ... ",H,C.a.project.api[H.pkg.name]),(()=>o(void 0,void 0,void 0,function*(){const e=yield H.api.hello({arg1:1,arg2:1});yield C.a.project.loadExternalModule("moment");const t=(yield Promise.resolve().then(n.t.bind(null,"c32d",7))).default;U.debug("start homepage ... ",t().format()),U.debug("test--\x3e:",e)}))(),new p({router:j}).$mount("#app");const A={};window[x["a"].replace(/[@\/-]/g,"_")]=A;var E=A;t["default"]=E},c32d:function(e,t){e.exports=o},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.58",
"version": "1.0.59",
"description": "html homepage 模板",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc