@variousjs/create 0.1.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/copy.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const fs = require('fs')
2
2
  const package = require('../package.json')
3
+ const packageLock = require('../package-lock.json')
3
4
 
4
5
  const files = ['.gitignore', 'package-lock.json', 'package.json']
5
6
 
@@ -7,6 +8,9 @@ package.name = 'variousjs'
7
8
  package.version = '0.1.0'
8
9
  package.private = true
9
10
 
11
+ packageLock.name = 'variousjs'
12
+ packageLock.version = '0.1.0'
13
+
10
14
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11
15
  const { prepublishOnly, ...rest } = package.scripts
12
16
  package.scripts = rest
@@ -19,12 +23,13 @@ delete package.bugs
19
23
  delete package.homepage
20
24
 
21
25
  fs.writeFileSync('package.json.copy', JSON.stringify(package, null, 2))
26
+ fs.writeFileSync('package-lock.json.copy', JSON.stringify(packageLock, null, 2))
22
27
 
23
28
  files.forEach((name) => {
24
29
  const copyName = `${name}.copy`
25
30
 
26
31
  try {
27
- if (name !== 'package.json') {
32
+ if (name !== 'package.json' && name !== 'package-lock.json') {
28
33
  fs.copyFileSync(name, copyName, fs.constants.COPYFILE_FICLONE)
29
34
  }
30
35
  } catch (e) {
@@ -1,2 +1,2 @@
1
- define(["react","react-router-dom","antd"],(function(t,e,n){return function(){"use strict";var r={674:function(t,e,n){var r=n(537),o=n.n(r),a=n(645),c=n.n(a)()(o());c.push([t.id,".container_moxlt {\n background: #fff;\n padding: 50px;\n}\n","",{version:3,sources:["webpack://./src/entry/entry.less"],names:[],mappings:"AAAA;EACE,gBAAA;EACA,aAAA;AACF",sourcesContent:[".container {\n background: #fff;\n padding: 50px;\n}\n"],sourceRoot:""}]),c.locals={container:"container_moxlt"},e.Z=c},645:function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var c={};if(r)for(var u=0;u<this.length;u++){var i=this[u][0];null!=i&&(c[i]=!0)}for(var s=0;s<t.length;s++){var f=[].concat(t[s]);r&&c[f[0]]||(void 0!==a&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=a),n&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=n):f[2]=n),o&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=o):f[4]="".concat(o)),e.push(f))}},e}},537:function(t){t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(o," */"),c=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[e].concat(c).concat([a]).join("\n")}return[e].join("\n")}},379:function(t){var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var a={},c=[],u=0;u<t.length;u++){var i=t[u],s=r.base?i[0]+r.base:i[0],f=a[s]||0,p="".concat(s," ").concat(f);a[s]=f+1;var l=n(p),d={css:i[1],media:i[2],sourceMap:i[3],supports:i[4],layer:i[5]};if(-1!==l)e[l].references++,e[l].updater(d);else{var v=o(d,r);r.byIndex=u,e.splice(u,0,{identifier:p,updater:v,references:1})}c.push(p)}return c}function o(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,o){var a=r(t=t||[],o=o||{});return function(t){t=t||[];for(var c=0;c<a.length;c++){var u=n(a[c]);e[u].references--}for(var i=r(t,o),s=0;s<a.length;s++){var f=n(a[s]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}a=i}}},569:function(t){var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:function(t){t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},565:function(t,e,n){t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},795:function(t){t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:function(t){t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},161:function(e){e.exports=t},439:function(t){t.exports=e},937:function(t){t.exports=n}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return r[t](n,n.exports,a),n.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return function(){function t(t,e,n,r,o,a,c){try{var u=t[a](c),i=u.value}catch(t){return void n(t)}u.done?e(i):Promise.resolve(i).then(r,o)}a.r(c),a.d(c,{Container:function(){return N},Error:function(){return L},Loader:function(){return I},actions:function(){return n},store:function(){return r}});var e={setName:function(e,n){return(r=regeneratorRuntime.mark((function t(){var r,o,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.dispatch,o=e.getStore,t.next=3,new Promise((function(t){return setTimeout(t,1e3)}));case 3:a=o(),(c=a.user).name=n,r({user:c});case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(o,a){var c=r.apply(e,n);function u(e){t(c,o,a,u,i,"next",e)}function i(e){t(c,o,a,u,i,"throw",e)}u(void 0)}))})();var r},getName:function(t){return(0,t.getStore)().user.name}},n=e,r={user:{name:"various"}},o=a(161),u=a.n(o),i=a(439),s=a(937),f=a(379),p=a.n(f),l=a(795),d=a.n(l),v=a(569),m=a.n(v),y=a(565),h=a.n(y),b=a(216),g=a.n(b),x=a(589),w=a.n(x),S=a(674),A={};A.styleTagTransform=w(),A.setAttributes=h(),A.insert=m().bind(null,"head"),A.domAPI=d(),A.insertStyleElement=g(),p()(S.Z,A);var E=S.Z&&S.Z.locals?S.Z.locals:void 0;function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e){return j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},j(t,e)}function P(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return T(t)}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}(c,t);var e,n,r,o,a=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_(r);if(o){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(this,t)});function c(){var t;C(this,c);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return M(T(t=a.call.apply(a,[this].concat(n))),"state",{path:"/"}),M(T(t),"onRouterChange",(function(e){t.props.$router.history.push(e.target.value),t.setState({path:e.target.value})})),t}return e=c,(n=[{key:"componentDidMount",value:function(){this.setState({path:this.props.$router.location.pathname})}},{key:"render",value:function(){var t=this.props,e=t.Router,n=t.$component,r=t.$config;return u().createElement("div",{className:E.container},u().createElement(s.Radio.Group,{size:"large",value:this.state.path,onChange:this.onRouterChange,buttonStyle:"solid"},r.links.map((function(t){var e=t.path,n=t.name;return u().createElement(s.Radio.Button,{key:e,value:e},n)}))),u().createElement(e,null,r.pages.map((function(t){var e=t.path,r=t.components,o=n(r[0]);return u().createElement(i.Route,{key:e[0],exact:!0,path:e,component:o})}))))}}])&&O(e.prototype,n),c}(o.Component),N=k;function I(){return u().createElement(s.Spin,null)}function L(){return u().createElement("div",null,"???")}}(),c}()}));
1
+ define(["react","@variousjs/various","antd"],(function(e,t,n){return function(){"use strict";var r={674:function(e,t,n){var r=n(537),o=n.n(r),a=n(645),c=n.n(a)()(o());c.push([e.id,".container_moxlt {\n background: #fff;\n padding: 50px;\n}\n.top__WfL2 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n","",{version:3,sources:["webpack://./src/entry/entry.less"],names:[],mappings:"AAAA;EACE,gBAAA;EACA,aAAA;AACF;AACA;EACE,aAAA;EACA,mBAAA;EACA,8BAAA;AACF",sourcesContent:[".container {\n background: #fff;\n padding: 50px;\n}\n.top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n"],sourceRoot:""}]),c.locals={container:"container_moxlt",top:"top__WfL2"},t.Z=c},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var c={};if(r)for(var i=0;i<this.length;i++){var u=this[i][0];null!=u&&(c[u]=!0)}for(var s=0;s<e.length;s++){var f=[].concat(e[s]);r&&c[f[0]]||(void 0!==a&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=a),n&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=n):f[2]=n),o&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=o):f[4]="".concat(o)),t.push(f))}},t}},537:function(e){e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(o," */"),c=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(c).concat([a]).join("\n")}return[t].join("\n")}},379:function(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},c=[],i=0;i<e.length;i++){var u=e[i],s=r.base?u[0]+r.base:u[0],f=a[s]||0,l="".concat(s," ").concat(f);a[s]=f+1;var p=n(l),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var m=o(d,r);r.byIndex=i,t.splice(i,0,{identifier:l,updater:m,references:1})}c.push(l)}return c}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var c=0;c<a.length;c++){var i=n(a[c]);t[i].references--}for(var u=r(e,o),s=0;s<a.length;s++){var f=n(a[s]);0===t[f].references&&(t[f].updater(),t.splice(f,1))}a=u}}},569:function(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:function(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:function(e){e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},161:function(t){t.exports=e},937:function(e){e.exports=n},437:function(e){e.exports=t}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){function e(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}a.r(c),a.d(c,{Container:function(){return N},Error:function(){return B},Loader:function(){return L},actions:function(){return n},store:function(){return r}});var t={setName:function(t,n){return(r=regeneratorRuntime.mark((function e(){var r,o,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.dispatch,o=t.getStore,e.next=3,new Promise((function(e){return setTimeout(e,1e3)}));case 3:a=o(),(c=a.user).name=n,r({user:c});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,a){var c=r.apply(t,n);function i(t){e(c,o,a,i,u,"next",t)}function u(t){e(c,o,a,i,u,"throw",t)}i(void 0)}))})();var r},getName:function(e){return(0,e.getStore)().user.name}},n=t,r={user:{name:"various"}},o=a(161),i=a.n(o),u=a(437),s=a(937),f=a(379),l=a.n(f),p=a(795),d=a.n(p),m=a(569),v=a.n(m),y=a(565),h=a.n(y),b=a(216),g=a.n(b),A=a(589),E=a.n(A),x=a(674),w={};w.styleTagTransform=E(),w.setAttributes=h(),w.insert=v().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=g(),l()(x.Z,w);var C=x.Z&&x.Z.locals?x.Z.locals:void 0;function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function _(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(c,e);var t,n,r,o,a=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(r);if(o){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(this,e)});function c(){var e;j(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return k(P(e=a.call.apply(a,[this].concat(n))),"state",{path:"/"}),k(P(e),"onRouterChange",(function(t){e.props.$router.history.push(t.target.value),e.setState({path:t.target.value})})),e}return t=c,(n=[{key:"componentDidMount",value:function(){this.setState({path:this.props.$router.location.pathname})}},{key:"render",value:function(){var e=this,t=this.props,n=t.$component,r=t.$config,o=t.$store;return i().createElement("div",{className:C.container},i().createElement("div",{className:C.top},i().createElement(s.Radio.Group,{size:"large",value:this.state.path,onChange:this.onRouterChange,buttonStyle:"solid"},r.links.map((function(e){var t=e.path,n=e.name;return i().createElement(s.Radio.Button,{key:t,value:t},n)}))),i().createElement("div",null,"Store:",i().createElement(s.Badge,{style:{marginLeft:10},count:o.user.name}),i().createElement(s.Button,{style:{marginLeft:10},onClick:function(){return e.props.$dispatch("card","getName","Card")}},"Card Name"))),i().createElement(u.Router,null,r.pages.map((function(e){var t=e.path,r=e.components;return i().createElement(u.Route,{key:Array.isArray(t)?t.join():t,exact:!0,path:t,component:function(){return r.map((function(e){var t=n(e);return i().createElement("div",{key:e,style:{display:"inline-block",width:300,verticalAlign:"top"}},i().createElement(t,null))}))}})}))))}}])&&R(t.prototype,n),c}(o.Component),N=M;function L(){return i().createElement(s.Spin,null)}var B=function(e){var t=e.reload,n=e.type,r=e.message;return i().createElement(i().Fragment,null,i().createElement(s.Alert,{message:"Error",description:"[".concat(n,"]:").concat(r||"组件错误"),type:"error",style:{marginTop:30}}),t&&i().createElement(s.Button,{onClick:t},"刷新"))}}(),c}()}));
2
2
  //# sourceMappingURL=entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry.js","mappings":"qJAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,iEAAkE,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,oCAAoC,MAAQ,GAAG,SAAW,iCAAiC,eAAiB,CAAC,4DAA4D,WAAa,MAE5TH,EAAwBI,OAAS,CAChC,UAAa,mBAEd,O,gBCJAF,EAAOG,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA6FX,OA3FAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK,GA4B5B,OA1BIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAGvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAGnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAG5EC,GAAWN,EAAuBK,GAE9BE,IACFD,GAAW,KAGTD,EAAK,KACPC,GAAW,KAGTD,EAAK,KACPC,GAAW,KAGNA,KACNI,KAAK,KAIVT,EAAKU,EAAI,SAAWC,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,iBAAZJ,IACTA,EAAU,CAAC,CAAC,KAAMA,OAASK,KAG7B,IAAIC,EAAyB,GAE7B,GAAIJ,EACF,IAAK,IAAIK,EAAK,EAAGA,EAAKhB,KAAKM,OAAQU,IAAM,CACvC,IAAItB,EAAKM,KAAKgB,GAAI,GAER,MAANtB,IACFqB,EAAuBrB,IAAM,GAKnC,IAAK,IAAIuB,EAAM,EAAGA,E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SAAC3D,GAChB,EAAK4D,MAAMC,QAAQC,QAAQ7I,KAAK+E,EAAER,OAAOwD,OACzC,EAAKe,SAAS,CAAEJ,KAAM3D,EAAER,OAAOwD,W,gDAGjC,WACEvH,KAAKsI,SAAS,CAAEJ,KAAMlI,KAAKmI,MAAMC,QAAQG,SAASC,a,oBAGpD,WACE,MAAwCxI,KAAKmI,MAArCM,EAAR,EAAQA,OAAQC,EAAhB,EAAgBA,WAAYC,EAA5B,EAA4BA,QAE5B,OACE,yBAAKC,UAAWC,EAAAA,WACd,kBAAC,EAAAC,MAAA,MAAD,CACEC,KAAK,QACLxB,MAAOvH,KAAKgJ,MAAMd,KAClBe,SAAUjJ,KAAKkJ,eACfC,YAAY,SAGVR,EAAQS,MAAMnJ,KAAI,gBAAGiI,EAAH,EAAGA,KAAMH,EAAT,EAASA,KAAT,OAChB,kBAAC,EAAAe,MAAA,OAAD,CAAcpC,IAAKwB,EAAMX,MAAOW,GAC7BH,OAMT,kBAACU,EAAD,KAEIE,EAAQU,MAAMpJ,KAAI,YAA0B,IAAvBiI,EAAuB,EAAvBA,KAAMoB,EAAiB,EAAjBA,WACnBC,EAAIb,EAAWY,EAAW,IAEhC,OACE,kBAAC,EAAAE,MAAD,CACE9C,IAAKwB,EAAK,GACVuB,OAAK,EACLvB,KAAMA,EACNwB,UAAWH,c,mBA5CvBtB,CAAkB0B,EAAAA,WAuDxB,IC3De,SAASC,IACtB,OACE,kBAAC,EAAAC,KAAD,MCHW,SAASpF,IACtB,OACE,qC","sources":["webpack://@variousjs/create/./src/entry/entry.less","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/api.js","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@variousjs/create/external amd {\"root\":\"React\",\"amd\":\"react\"}","webpack://@variousjs/create/external amd {\"root\":\"ReactRouterDOM\",\"amd\":\"react-router-dom\"}","webpack://@variousjs/create/external amd {\"root\":\"antd\",\"amd\":\"antd\"}","webpack://@variousjs/create/webpack/bootstrap","webpack://@variousjs/create/webpack/runtime/compat get default export","webpack://@variousjs/create/webpack/runtime/define property getters","webpack://@variousjs/create/webpack/runtime/hasOwnProperty shorthand","webpack://@variousjs/create/webpack/runtime/make namespace object","webpack://@variousjs/create/./src/entry/actions.ts","webpack://@variousjs/create/./src/entry/store.ts","webpack://@variousjs/create/./src/entry/entry.less?fe22","webpack://@variousjs/create/./src/entry/container.tsx","webpack://@variousjs/create/./src/entry/loader.tsx","webpack://@variousjs/create/./src/entry/error.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".container_moxlt {\\n background: #fff;\\n padding: 50px;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/entry/entry.less\"],\"names\":[],\"mappings\":\"AAAA;EACE,gBAAA;EACA,aAAA;AACF\",\"sourcesContent\":[\".container {\\n background: #fff;\\n padding: 50px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": \"container_moxlt\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var _i = 0; _i < this.length; _i++) {\n var id = this[_i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i2 = 0; _i2 < modules.length; _i2++) {\n var item = [].concat(modules[_i2]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","module.exports = __WEBPACK_EXTERNAL_MODULE__161__;","module.exports = __WEBPACK_EXTERNAL_MODULE__439__;","module.exports = __WEBPACK_EXTERNAL_MODULE__937__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","\nconst actions = {\n async setName({ dispatch, getStore }, value) {\n await new Promise((r) => setTimeout(r, 1000))\n const { user } = getStore()\n user.name = value\n dispatch({ user })\n },\n getName({ getStore }) {\n const { user } = getStore()\n return user.name\n },\n}\n\nexport default actions\n","export default {\n user: {\n name: 'various',\n },\n}\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./entry.less\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./entry.less\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { Component } from 'react'\nimport { Route } from 'react-router-dom'\nimport { ContainerProps } from '@variousjs/various'\nimport { Radio } from 'antd'\nimport { Store, Config } from '../types'\nimport csses from './entry.less'\n\nclass Container extends Component<ContainerProps<Store, Config>> {\n state = {\n path: '/'\n }\n\n onRouterChange = (e: any) => {\n this.props.$router.history.push(e.target.value)\n this.setState({ path: e.target.value })\n }\n\n componentDidMount() {\n this.setState({ path: this.props.$router.location.pathname })\n }\n\n render() {\n const { Router, $component, $config } = this.props\n\n return (\n <div className={csses.container}>\n <Radio.Group\n size=\"large\"\n value={this.state.path}\n onChange={this.onRouterChange}\n buttonStyle=\"solid\"\n >\n {\n $config.links.map(({ path, name }) => (\n <Radio.Button key={path} value={path}>\n {name}\n </Radio.Button>\n ))\n }\n </Radio.Group>\n\n <Router>\n {\n $config.pages.map(({ path, components }) => {\n const C = $component(components[0])\n\n return (\n <Route\n key={path[0]}\n exact\n path={path}\n component={C}\n />\n )\n })\n }\n </Router>\n </div>\n )\n }\n}\n\nexport default Container\n","import React from 'react'\nimport { Spin } from 'antd'\n\nexport default function Loader() {\n return (\n <Spin />\n )\n}\n","import React from 'react'\n\nexport default function Error() {\n return (\n <div>???</div>\n )\n}\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","_i","_i2","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","__WEBPACK_EXTERNAL_MODULE__161__","__WEBPACK_EXTERNAL_MODULE__439__","__WEBPACK_EXTERNAL_MODULE__937__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","actions","setName","dispatch","getStore","Promise","setTimeout","user","name","getName","Container","path","props","$router","history","setState","location","pathname","Router","$component","$config","className","csses","Radio","size","state","onChange","onRouterChange","buttonStyle","links","pages","components","C","Route","exact","component","Component","Loader","Spin"],"sourceRoot":""}
1
+ {"version":3,"file":"entry.js","mappings":"uJAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,+JAAgK,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,oCAAoC,MAAQ,GAAG,SAAW,2EAA2E,eAAiB,CAAC,oJAAoJ,WAAa,MAE5hBH,EAAw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@variousjs/create/./src/entry/entry.less","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/api.js","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@variousjs/create/external amd {\"root\":\"React\",\"amd\":\"react\"}","webpack://@variousjs/create/external amd {\"root\":\"antd\",\"amd\":\"antd\"}","webpack://@variousjs/create/external amd {\"root\":\"various\",\"amd\":\"@variousjs/various\"}","webpack://@variousjs/create/webpack/bootstrap","webpack://@variousjs/create/webpack/runtime/compat get default export","webpack://@variousjs/create/webpack/runtime/define property getters","webpack://@variousjs/create/webpack/runtime/hasOwnProperty shorthand","webpack://@variousjs/create/webpack/runtime/make namespace object","webpack://@variousjs/create/./src/entry/actions.ts","webpack://@variousjs/create/./src/entry/store.ts","webpack://@variousjs/create/./src/entry/entry.less?fe22","webpack://@variousjs/create/./src/entry/container.tsx","webpack://@variousjs/create/./src/entry/loader.tsx","webpack://@variousjs/create/./src/entry/error.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".container_moxlt {\\n background: #fff;\\n padding: 50px;\\n}\\n.top__WfL2 {\\n display: flex;\\n align-items: center;\\n justify-content: space-between;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/entry/entry.less\"],\"names\":[],\"mappings\":\"AAAA;EACE,gBAAA;EACA,aAAA;AACF;AACA;EACE,aAAA;EACA,mBAAA;EACA,8BAAA;AACF\",\"sourcesContent\":[\".container {\\n background: #fff;\\n padding: 50px;\\n}\\n.top {\\n display: flex;\\n align-items: center;\\n justify-content: space-between;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": \"container_moxlt\",\n\t\"top\": \"top__WfL2\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var _i = 0; _i < this.length; _i++) {\n var id = this[_i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i2 = 0; _i2 < modules.length; _i2++) {\n var item = [].concat(modules[_i2]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","module.exports = __WEBPACK_EXTERNAL_MODULE__161__;","module.exports = __WEBPACK_EXTERNAL_MODULE__937__;","module.exports = __WEBPACK_EXTERNAL_MODULE__437__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { Actions } from '@variousjs/various'\nimport { Store } from '../types'\n\nconst actions: Actions<Store> = {\n async setName({ dispatch, getStore }, value) {\n await new Promise((r) => setTimeout(r, 1000))\n const { user } = getStore()\n user.name = value\n dispatch({ user })\n },\n getName({ getStore }) {\n const { user } = getStore()\n return user.name\n },\n}\n\nexport default actions\n","export default {\n user: {\n name: 'various',\n },\n}\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./entry.less\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./entry.less\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { Component, ComponentType } from 'react'\nimport { ContainerProps, Router, Route } from '@variousjs/various'\nimport { Radio, Badge, Button } from 'antd'\nimport { Store, Config } from '../types'\nimport csses from './entry.less'\n\nclass Container extends Component<ContainerProps<Store, Config>> {\n state = {\n path: '/'\n }\n\n onRouterChange = (e: any) => {\n this.props.$router.history.push(e.target.value)\n this.setState({ path: e.target.value })\n }\n\n componentDidMount() {\n this.setState({ path: this.props.$router.location.pathname })\n }\n\n render() {\n const { $component, $config, $store } = this.props\n\n return (\n <div className={csses.container}>\n <div className={csses.top}>\n <Radio.Group\n size=\"large\"\n value={this.state.path}\n onChange={this.onRouterChange}\n buttonStyle=\"solid\"\n >\n {\n $config.links.map(({ path, name }) => (\n <Radio.Button key={path} value={path}>\n {name}\n </Radio.Button>\n ))\n }\n </Radio.Group>\n\n <div>\n Store:\n <Badge\n style={{ marginLeft: 10 }}\n count={$store.user.name}\n />\n <Button\n style={{ marginLeft: 10 }}\n onClick={() => this.props.$dispatch('card', 'getName', 'Card')}\n >\n Card Name\n </Button>\n </div>\n </div>\n\n <Router>\n {\n $config.pages.map(({ path, components }) => {\n const cs = () => components.map((name) => {\n const C = $component(name)\n return (\n <div\n key={name}\n style={{ display: 'inline-block', width: 300, verticalAlign: 'top' }}\n >\n <C />\n </div>\n )\n })\n\n return (\n <Route\n key={Array.isArray(path) ? path.join() : path}\n exact\n path={path}\n component={cs as unknown as ComponentType}\n />\n )\n })\n }\n </Router>\n </div>\n )\n }\n}\n\nexport default Container\n","import React from 'react'\nimport { Spin } from 'antd'\n\nexport default function Loader() {\n return (\n <Spin />\n )\n}\n","import React, { FC } from 'react'\nimport { Alert, Button } from 'antd'\nimport { ErrorProps } from '@variousjs/various'\n\nconst errorComponent: FC<ErrorProps> = ({ reload, type, message }) => (\n <>\n <Alert\n message=\"Error\"\n description={`[${type}]:${message || '组件错误'}`}\n type=\"error\"\n style={{ marginTop: 30 }}\n />\n {\n reload && <Button onClick={reload}>刷新</Button>\n }\n </>\n)\n\nexport default errorComponent\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","_i","_i2","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","__WEBPACK_EXTERNAL_MODULE__161__","__WEBPACK_EXTERNAL_MODULE__937__","__WEBPACK_EXTERNAL_MODULE__437__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","actions","setName","dispatch","getStore","Promise","setTimeout","user","name","getName","Container","path","props","$router","history","setState","location","pathname","$component","$config","$store","className","csses","Radio","size","state","onChange","onRouterChange","buttonStyle","links","Badge","marginLeft","Button","onClick","$dispatch","Router","pages","components","Route","Array","isArray","exact","component","C","display","width","verticalAlign","Component","Loader","Spin","reload","type","message","Alert","description","marginTop"],"sourceRoot":""}
package/demo/dist/next.js CHANGED
@@ -1,2 +1,2 @@
1
- define(["react","nycticorax","antd"],(function(e,t,n){return function(){"use strict";var r={552:function(e){e.exports=t},161:function(t){t.exports=e},937:function(e){e.exports=n}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){u.r(i);var e=u(161),t=u.n(e),n=u(552),r=u.n(n),o=u(937);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t,n,r,o,u,i){try{var c=e[u](i),a=c.value}catch(e){return void n(e)}c.done?t(a):Promise.resolve(a).then(r,o)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function p(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=new(r()),b=v.createStore,d=v.connect,m=v.dispatch,h=v.getStore;b({value:0});var w,O,g,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(a,e);var n,r,u,i,c=(u=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(u);if(i){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function a(){return f(this,a),c.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props.$store.user,n=this.props.value;return t().createElement(o.Descriptions,{style:{marginTop:30},bordered:!0,title:"Next Component",size:"small"},t().createElement(o.Descriptions.Item,{label:"Store"},e.name),t().createElement(o.Descriptions.Item,{label:"Value"},n))}}])&&l(n.prototype,r),a}(e.Component);w=S,O="setValue",g=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=h(),m({value:t+n.value},!0);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var u=e.apply(t,n);function i(e){a(u,r,o,i,c,"next",e)}function c(e){a(u,r,o,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),O in w?Object.defineProperty(w,O,{value:g,enumerable:!0,configurable:!0,writable:!0}):w[O]=g,i.default=d("value")(S)}(),i}()}));
1
+ define(["react","@variousjs/various","antd"],(function(e,t,r){return function(){"use strict";var n={161:function(t){t.exports=e},937:function(e){e.exports=r},437:function(e){e.exports=t}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,u),r.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){u.r(i);var e=u(161),t=u.n(e),r=u(437),n=u(937);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function c(e,t,r,n,o,u,i){try{var c=e[u](i),a=c.value}catch(e){return void r(e)}c.done?t(a):Promise.resolve(a).then(n,o)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=new r.Store,v=y.createStore,b=y.connect,d=y.dispatch,m=y.getStore;v({value:0});var h,w,O,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(y,e);var r,o,u,i,c=(u=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(u);if(i){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(){return a(this,y),c.apply(this,arguments)}return r=y,(o=[{key:"render",value:function(){var e=this.props.$store.user,r=this.props.value;return t().createElement(n.Descriptions,{style:{marginTop:30},bordered:!0,title:"Next Component",size:"small"},t().createElement(n.Descriptions.Item,{label:"Store"},e.name),t().createElement(n.Descriptions.Item,{label:"Value"},r))}}])&&f(r.prototype,o),y}(e.Component);h=g,w="setValue",O=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=m(),d({value:t+r.value},!0);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var u=e.apply(t,r);function i(e){c(u,n,o,i,a,"next",e)}function a(e){c(u,n,o,i,a,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),w in h?Object.defineProperty(h,w,{value:O,enumerable:!0,configurable:!0,writable:!0}):h[w]=O,i.default=b("value")(g)}(),i}()}));
2
2
  //# sourceMappingURL=next.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","mappings":"4GAAAA,EAAOC,QAAUC,G,gBCAjBF,EAAOC,QAAUE,G,gBCAjBH,EAAOC,QAAUG,ICCbC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaP,QAGrB,IAAID,EAASK,EAAyBE,GAAY,CAGjDN,QAAS,IAOV,OAHAS,EAAoBH,GAAUP,EAAQA,EAAOC,QAASK,GAG/CN,EAAOC,QCpBfK,EAAoBK,EAAI,SAASX,GAChC,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,WAAa,OAAOb,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRN,EAAoBQ,EAAI,SAASb,EAASe,GACzC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEjB,EAASgB,IAC5EE,OAAOC,eAAenB,EAASgB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EX,EAAoBY,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/FlB,EAAoBsB,EAAI,SAAS3B,GACX,oBAAX4B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAenB,EAAS4B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAenB,EAAS,aAAc,CAAE8B,OAAO,K,8rCCIvD,MAKI,IAAIC,KAJNC,EADF,EACEA,YACAC,EAFF,EAEEA,QACAC,EAHF,EAGEA,SACAC,EAJF,EAIEA,SAGFH,EAAY,CAAEF,MAAO,I,UAEfM,EAAAA,SAAAA,I,muBAMJ,WACE,IAAQC,EAASC,KAAKC,MAAMC,OAApBH,KACAP,EAAUQ,KAAKC,MAAfT,MAER,OACE,kBAAC,EAAAW,aAAD,CACEC,MAAO,CAAEC,UAAW,IACpBC,UAAQ,EACRC,MAAM,iBACNC,KAAK,SAEL,kBAAC,EAAAL,aAAA,KAAD,CAAmBM,MAAM,SAASV,EAAKW,MACvC,kBAAC,EAAAP,aAAA,KAAD,CAAmBM,MAAM,SAASjB,S,mBAlBpCM,CAAUa,EAAAA,W,EAAVb,E,EAAAA,W,EAAAA,W,oCACc,WAAON,GAAP,sFACVoB,EAAQf,IACdD,EAAS,CAAEJ,MAAOA,EAAQoB,EAAMpB,QAAS,GAFzB,0C,kOADdM,G,6FAwBN,UAAeH,EAAQ,QAAvB,CAAgCG,G","sources":["webpack://@variousjs/create/external amd {\"root\":\"Nycticorax\",\"amd\":\"nycticorax\"}","webpack://@variousjs/create/external amd {\"root\":\"React\",\"amd\":\"react\"}","webpack://@variousjs/create/external amd {\"root\":\"antd\",\"amd\":\"antd\"}","webpack://@variousjs/create/webpack/bootstrap","webpack://@variousjs/create/webpack/runtime/compat get default export","webpack://@variousjs/create/webpack/runtime/define property getters","webpack://@variousjs/create/webpack/runtime/hasOwnProperty shorthand","webpack://@variousjs/create/webpack/runtime/make namespace object","webpack://@variousjs/create/./src/components/next.tsx"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__552__;","module.exports = __WEBPACK_EXTERNAL_MODULE__161__;","module.exports = __WEBPACK_EXTERNAL_MODULE__937__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React, { Component } from 'react'\nimport Nycticorax, { Connect as CT } from 'nycticorax'\nimport { ComponentProps } from '@variousjs/various'\nimport { Descriptions } from 'antd'\nimport { Store as GlobalStore } from '../types'\n\ntype Store = { value: number }\ntype Connect = CT<Store>\n\nconst {\n createStore,\n connect,\n dispatch,\n getStore,\n} = new Nycticorax<Store>()\n\ncreateStore({ value: 0 })\n\nclass X extends Component<Connect & ComponentProps<GlobalStore>> {\n static setValue = async (value: number) => {\n const store = getStore()\n dispatch({ value: value + store.value }, true)\n }\n\n render() {\n const { user } = this.props.$store\n const { value } = this.props\n\n return (\n <Descriptions\n style={{ marginTop: 30 }}\n bordered\n title=\"Next Component\"\n size=\"small\"\n >\n <Descriptions.Item label=\"Store\">{user.name}</Descriptions.Item>\n <Descriptions.Item label=\"Value\">{value}</Descriptions.Item>\n </Descriptions>\n )\n }\n}\n\nexport default connect('value')(X)\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__552__","__WEBPACK_EXTERNAL_MODULE__161__","__WEBPACK_EXTERNAL_MODULE__937__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","Nycticorax","createStore","connect","dispatch","getStore","X","user","this","props","$store","Descriptions","style","marginTop","bordered","title","size","label","name","Component","store"],"sourceRoot":""}
1
+ {"version":3,"file":"next.js","mappings":"oHAAAA,EAAOC,QAAUC,G,gBCAjBF,EAAOC,QAAUE,G,gBCAjBH,EAAOC,QAAUG,ICCbC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaP,QAGrB,IAAID,EAASK,EAAyBE,GAAY,CAGjDN,QAAS,IAOV,OAHAS,EAAoBH,GAAUP,EAAQA,EAAOC,QAASK,GAG/CN,EAAOC,QCpBfK,EAAoBK,EAAI,SAASX,GAChC,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,WAAa,OAAOb,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRN,EAAoBQ,EAAI,SAASb,EAASe,GACzC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEjB,EAASgB,IAC5EE,OAAOC,eAAenB,EAASgB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EX,EAAoBY,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/FlB,EAAoBsB,EAAI,SAAS3B,GACX,oBAAX4B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAenB,EAAS4B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAenB,EAAS,aAAc,CAAE8B,OAAO,K,qrCCGvD,MAKI,IAAIC,EAAAA,MAJNC,EADF,EACEA,YACAC,EAFF,EAEEA,QACAC,EAHF,EAGEA,SACAC,EAJF,EAIEA,SAGFH,EAAY,CAAEF,MAAO,I,UAEfM,EAAAA,SAAAA,I,muBAMJ,WACE,IAAQC,EAASC,KAAKC,MAAMC,OAApBH,KACAP,EAAUQ,KAAKC,MAAfT,MAER,OACE,kBAAC,EAAAW,aAAD,CACEC,MAAO,CAAEC,UAAW,IACpBC,UAAQ,EACRC,MAAM,iBACNC,KAAK,SAEL,kBAAC,EAAAL,aAAA,KAAD,CAAmBM,MAAM,SAASV,EAAKW,MACvC,kBAAC,EAAAP,aAAA,KAAD,CAAmBM,MAAM,SAASjB,S,mBAlBpCM,CAAUa,EAAAA,W,EAAVb,E,EAAAA,W,EAAAA,W,oCACc,WAAON,GAAP,sFACVoB,EAAQf,IACdD,EAAS,CAAEJ,MAAOA,EAAQoB,EAAMpB,QAAS,GAFzB,0C,kOADdM,G,6FAwBN,UAAeH,EAAQ,QAAvB,CAAgCG,G","sources":["webpack://@variousjs/create/external amd {\"root\":\"React\",\"amd\":\"react\"}","webpack://@variousjs/create/external amd {\"root\":\"antd\",\"amd\":\"antd\"}","webpack://@variousjs/create/external amd {\"root\":\"various\",\"amd\":\"@variousjs/various\"}","webpack://@variousjs/create/webpack/bootstrap","webpack://@variousjs/create/webpack/runtime/compat get default export","webpack://@variousjs/create/webpack/runtime/define property getters","webpack://@variousjs/create/webpack/runtime/hasOwnProperty shorthand","webpack://@variousjs/create/webpack/runtime/make namespace object","webpack://@variousjs/create/./src/components/next.tsx"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__161__;","module.exports = __WEBPACK_EXTERNAL_MODULE__937__;","module.exports = __WEBPACK_EXTERNAL_MODULE__437__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import React, { Component } from 'react'\nimport { ComponentProps, Store, Connect as CT } from '@variousjs/various'\nimport { Descriptions } from 'antd'\nimport { Store as GlobalStore } from '../types'\n\ntype S = { value: number }\ntype Connect = CT<S>\n\nconst {\n createStore,\n connect,\n dispatch,\n getStore,\n} = new Store<S>()\n\ncreateStore({ value: 0 })\n\nclass X extends Component<Connect & ComponentProps<GlobalStore>> {\n static setValue = async (value: number) => {\n const store = getStore()\n dispatch({ value: value + store.value }, true)\n }\n\n render() {\n const { user } = this.props.$store\n const { value } = this.props\n\n return (\n <Descriptions\n style={{ marginTop: 30 }}\n bordered\n title=\"Next Component\"\n size=\"small\"\n >\n <Descriptions.Item label=\"Store\">{user.name}</Descriptions.Item>\n <Descriptions.Item label=\"Value\">{value}</Descriptions.Item>\n </Descriptions>\n )\n }\n}\n\nexport default connect('value')(X)\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__161__","__WEBPACK_EXTERNAL_MODULE__937__","__WEBPACK_EXTERNAL_MODULE__437__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","Store","createStore","connect","dispatch","getStore","X","user","this","props","$store","Descriptions","style","marginTop","bordered","title","size","label","name","Component","store"],"sourceRoot":""}
package/demo/index.html CHANGED
@@ -4,13 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <title> VariousJS </title>
6
6
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@4.16.13/dist/antd.compact.min.css" />
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script src="https://cdn.jsdelivr.net/npm/requirejs@2.3.6/require.js"></script>
11
- <script src="https://cdn.jsdelivr.net/npm/@variousjs/various/dist/index.js"></script>
12
7
  <script>
13
- var config = {
8
+ var VARIOUS_CONFIG = {
14
9
  root: '#root',
15
10
  entry: './dist/entry.js',
16
11
  routerMode: 'hash',
@@ -18,8 +13,6 @@ var config = {
18
13
  // 内置依赖,如果不定义会默认使用 unpkg cdn 链接
19
14
  react: 'https://cdn.jsdelivr.net/npm/react@17.0.2/umd/react.production.min.js',
20
15
  'react-dom': 'https://cdn.jsdelivr.net/npm/react-dom@17.0.2/umd/react-dom.production.min.js',
21
- 'react-router-dom': 'https://cdn.jsdelivr.net/npm/react-router-dom@5.3.0/umd/react-router-dom.min.js',
22
- nycticorax: 'https://cdn.jsdelivr.net/npm/nycticorax@2.0.6/dist/umd/index.js',
23
16
 
24
17
  // 依赖定义
25
18
  moment: 'https://cdn.jsdelivr.net/npm/moment@2.29.1/min/moment.min.js',
@@ -57,16 +50,11 @@ var config = {
57
50
  },
58
51
  ],
59
52
  }
60
-
61
- var various = new window.Various(config)
62
-
63
- various.onError = function(e) {
64
- console.log(e)
65
- document.write(e.message)
66
- }
67
-
68
- various.start()
69
53
  </script>
70
-
54
+ </head>
55
+ <body>
56
+ <div id="root"></div>
57
+ <script src="https://cdn.jsdelivr.net/npm/requirejs@2.3.6/require.js"></script>
58
+ <script src="https://cdn.jsdelivr.net/npm/@variousjs/various@0.4.0/dist/index.js"></script>
71
59
  </body>
72
60
  </html>
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "@variousjs/create",
3
- "version": "0.1.1",
2
+ "name": "variousjs",
3
+ "version": "0.1.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -1275,12 +1275,6 @@
1275
1275
  "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==",
1276
1276
  "dev": true
1277
1277
  },
1278
- "@types/history": {
1279
- "version": "4.7.9",
1280
- "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.9.tgz",
1281
- "integrity": "sha512-MUc6zSmU3tEVnkQ78q0peeEjKWPUADMlC/t++2bI8WnAG2tvYRPIgHG8lWkXwqc8MsUF6Z2MOf+Mh5sazOmhiQ==",
1282
- "dev": true
1283
- },
1284
1278
  "@types/http-proxy": {
1285
1279
  "version": "1.17.7",
1286
1280
  "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.7.tgz",
@@ -1334,27 +1328,6 @@
1334
1328
  "@types/react": "*"
1335
1329
  }
1336
1330
  },
1337
- "@types/react-router": {
1338
- "version": "5.1.17",
1339
- "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.17.tgz",
1340
- "integrity": "sha512-RNSXOyb3VyRs/EOGmjBhhGKTbnN6fHWvy5FNLzWfOWOGjgVUKqJZXfpKzLmgoU8h6Hj8mpALj/mbXQASOb92wQ==",
1341
- "dev": true,
1342
- "requires": {
1343
- "@types/history": "*",
1344
- "@types/react": "*"
1345
- }
1346
- },
1347
- "@types/react-router-dom": {
1348
- "version": "5.3.1",
1349
- "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.1.tgz",
1350
- "integrity": "sha512-UvyRy73318QI83haXlaMwmklHHzV9hjl3u71MmM6wYNu0hOVk9NLTa0vGukf8zXUqnwz4O06ig876YSPpeK28A==",
1351
- "dev": true,
1352
- "requires": {
1353
- "@types/history": "*",
1354
- "@types/react": "*",
1355
- "@types/react-router": "*"
1356
- }
1357
- },
1358
1331
  "@types/retry": {
1359
1332
  "version": "0.12.1",
1360
1333
  "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz",
@@ -1472,10 +1445,14 @@
1472
1445
  }
1473
1446
  },
1474
1447
  "@variousjs/various": {
1475
- "version": "0.0.2",
1476
- "resolved": "https://registry.npmjs.org/@variousjs/various/-/various-0.0.2.tgz",
1477
- "integrity": "sha512-K3UEFqR/jJ5Nm4PYZsZjb3a0MX9sYQ/DLr0jN8omshlwrpaCAv/e6K8HbwMknF9MY4ExYLMmQAAFT0CfVIaqXw==",
1478
- "dev": true
1448
+ "version": "0.4.0",
1449
+ "resolved": "https://registry.npmjs.org/@variousjs/various/-/various-0.4.0.tgz",
1450
+ "integrity": "sha512-9tHPqMxUshsAaW90eIda+pFRur+t/ugIQlW/qXCaTVqJqBfeaKbZ/qIGYQTLOJ7EpPNen3IMr65tTlh4ko8+mQ==",
1451
+ "dev": true,
1452
+ "requires": {
1453
+ "nycticorax": "^2.0.6",
1454
+ "react-router-dom": "^5.3.0"
1455
+ }
1479
1456
  },
1480
1457
  "@webassemblyjs/ast": {
1481
1458
  "version": "1.11.1",
@@ -3568,6 +3545,29 @@
3568
3545
  "has-symbols": "^1.0.2"
3569
3546
  }
3570
3547
  },
3548
+ "history": {
3549
+ "version": "4.10.1",
3550
+ "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz",
3551
+ "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==",
3552
+ "dev": true,
3553
+ "requires": {
3554
+ "@babel/runtime": "^7.1.2",
3555
+ "loose-envify": "^1.2.0",
3556
+ "resolve-pathname": "^3.0.0",
3557
+ "tiny-invariant": "^1.0.2",
3558
+ "tiny-warning": "^1.0.0",
3559
+ "value-equal": "^1.0.1"
3560
+ }
3561
+ },
3562
+ "hoist-non-react-statics": {
3563
+ "version": "3.3.2",
3564
+ "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
3565
+ "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
3566
+ "dev": true,
3567
+ "requires": {
3568
+ "react-is": "^16.7.0"
3569
+ }
3570
+ },
3571
3571
  "hosted-git-info": {
3572
3572
  "version": "2.8.9",
3573
3573
  "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
@@ -4404,6 +4404,16 @@
4404
4404
  "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
4405
4405
  "dev": true
4406
4406
  },
4407
+ "mini-create-react-context": {
4408
+ "version": "0.4.1",
4409
+ "resolved": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz",
4410
+ "integrity": "sha512-YWCYEmd5CQeHGSAKrYvXgmzzkrvssZcuuQDDeqkT+PziKGMgE+0MCCtcKbROzocGBG1meBLl2FotlRwf4gAzbQ==",
4411
+ "dev": true,
4412
+ "requires": {
4413
+ "@babel/runtime": "^7.12.1",
4414
+ "tiny-warning": "^1.0.3"
4415
+ }
4416
+ },
4407
4417
  "minimalistic-assert": {
4408
4418
  "version": "1.0.1",
4409
4419
  "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
@@ -5142,6 +5152,56 @@
5142
5152
  "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
5143
5153
  "dev": true
5144
5154
  },
5155
+ "react-router": {
5156
+ "version": "5.2.1",
5157
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.2.1.tgz",
5158
+ "integrity": "sha512-lIboRiOtDLFdg1VTemMwud9vRVuOCZmUIT/7lUoZiSpPODiiH1UQlfXy+vPLC/7IWdFYnhRwAyNqA/+I7wnvKQ==",
5159
+ "dev": true,
5160
+ "requires": {
5161
+ "@babel/runtime": "^7.12.13",
5162
+ "history": "^4.9.0",
5163
+ "hoist-non-react-statics": "^3.1.0",
5164
+ "loose-envify": "^1.3.1",
5165
+ "mini-create-react-context": "^0.4.0",
5166
+ "path-to-regexp": "^1.7.0",
5167
+ "prop-types": "^15.6.2",
5168
+ "react-is": "^16.6.0",
5169
+ "tiny-invariant": "^1.0.2",
5170
+ "tiny-warning": "^1.0.0"
5171
+ },
5172
+ "dependencies": {
5173
+ "isarray": {
5174
+ "version": "0.0.1",
5175
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
5176
+ "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
5177
+ "dev": true
5178
+ },
5179
+ "path-to-regexp": {
5180
+ "version": "1.8.0",
5181
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz",
5182
+ "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==",
5183
+ "dev": true,
5184
+ "requires": {
5185
+ "isarray": "0.0.1"
5186
+ }
5187
+ }
5188
+ }
5189
+ },
5190
+ "react-router-dom": {
5191
+ "version": "5.3.0",
5192
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.0.tgz",
5193
+ "integrity": "sha512-ObVBLjUZsphUUMVycibxgMdh5jJ1e3o+KpAZBVeHcNQZ4W+uUGGWsokurzlF4YOldQYRQL4y6yFRWM4m3svmuQ==",
5194
+ "dev": true,
5195
+ "requires": {
5196
+ "@babel/runtime": "^7.12.13",
5197
+ "history": "^4.9.0",
5198
+ "loose-envify": "^1.3.1",
5199
+ "prop-types": "^15.6.2",
5200
+ "react-router": "5.2.1",
5201
+ "tiny-invariant": "^1.0.2",
5202
+ "tiny-warning": "^1.0.0"
5203
+ }
5204
+ },
5145
5205
  "read-pkg": {
5146
5206
  "version": "3.0.0",
5147
5207
  "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
@@ -5380,6 +5440,12 @@
5380
5440
  "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
5381
5441
  "dev": true
5382
5442
  },
5443
+ "resolve-pathname": {
5444
+ "version": "3.0.0",
5445
+ "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz",
5446
+ "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==",
5447
+ "dev": true
5448
+ },
5383
5449
  "retry": {
5384
5450
  "version": "0.13.1",
5385
5451
  "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz",
@@ -6029,6 +6095,18 @@
6029
6095
  "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
6030
6096
  "dev": true
6031
6097
  },
6098
+ "tiny-invariant": {
6099
+ "version": "1.2.0",
6100
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.2.0.tgz",
6101
+ "integrity": "sha512-1Uhn/aqw5C6RI4KejVeTg6mIS7IqxnLJ8Mv2tV5rTc0qWobay7pDUz6Wi392Cnc8ak1H0F2cjoRzb2/AW4+Fvg==",
6102
+ "dev": true
6103
+ },
6104
+ "tiny-warning": {
6105
+ "version": "1.0.3",
6106
+ "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
6107
+ "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==",
6108
+ "dev": true
6109
+ },
6032
6110
  "to-fast-properties": {
6033
6111
  "version": "2.0.0",
6034
6112
  "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
@@ -6234,6 +6312,12 @@
6234
6312
  "spdx-expression-parse": "^3.0.0"
6235
6313
  }
6236
6314
  },
6315
+ "value-equal": {
6316
+ "version": "1.0.1",
6317
+ "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz",
6318
+ "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==",
6319
+ "dev": true
6320
+ },
6237
6321
  "vary": {
6238
6322
  "version": "1.1.2",
6239
6323
  "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
@@ -6509,4 +6593,4 @@
6509
6593
  "dev": true
6510
6594
  }
6511
6595
  }
6512
- }
6596
+ }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@variousjs/create",
3
- "version": "0.1.1",
3
+ "version": "0.3.2",
4
4
  "description": "VariousJS boilerplate",
5
5
  "bin": "bin/create.js",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "scripts": {
10
- "lint": "eslint . --ext .ts,.tsx,.js",
11
- "start": "webpack --progress --config webpack.component.config.js & webpack serve --config webpack.entry.config.js --progress",
12
- "build": "webpack --progress --config webpack.base.config.js",
10
+ "lint": "tsc --noemit && eslint . --ext .ts,.tsx,.js",
11
+ "start": "webpack --progress --config ./webpack/component.js & webpack serve --config ./webpack/entry.js --progress",
12
+ "build": "webpack --progress --config ./webpack/base.js",
13
13
  "prepublishOnly": "node bin/copy.js"
14
14
  },
15
15
  "repository": {
@@ -33,10 +33,9 @@
33
33
  "@babel/preset-typescript": "^7.15.0",
34
34
  "@types/react": "^17.0.27",
35
35
  "@types/react-dom": "^17.0.9",
36
- "@types/react-router-dom": "^5.3.1",
37
36
  "@typescript-eslint/eslint-plugin": "^4.31.2",
38
37
  "@typescript-eslint/parser": "^4.31.2",
39
- "@variousjs/various": "0.0.2",
38
+ "@variousjs/various": "^0.4.0",
40
39
  "babel-loader": "^8.2.2",
41
40
  "css-loader": "^6.3.0",
42
41
  "eslint": "^7.32.0",
@@ -47,7 +46,6 @@
47
46
  "eslint-plugin-react-hooks": "^4.2.0",
48
47
  "less": "^4.1.1",
49
48
  "less-loader": "^10.0.1",
50
- "nycticorax": "^2.0.6",
51
49
  "style-loader": "^3.3.0",
52
50
  "typescript": "^4.4.3",
53
51
  "webpack": "^5.54.0",
package/package.json.copy CHANGED
@@ -3,9 +3,9 @@
3
3
  "version": "0.1.0",
4
4
  "description": "VariousJS boilerplate",
5
5
  "scripts": {
6
- "lint": "eslint . --ext .ts,.tsx,.js",
7
- "start": "webpack --progress --config webpack.component.config.js & webpack serve --config webpack.entry.config.js --progress",
8
- "build": "webpack --progress --config webpack.base.config.js"
6
+ "lint": "tsc --noemit && eslint . --ext .ts,.tsx,.js",
7
+ "start": "webpack --progress --config ./webpack/component.js & webpack serve --config ./webpack/entry.js --progress",
8
+ "build": "webpack --progress --config ./webpack/base.js"
9
9
  },
10
10
  "author": "LoeiFy <LoeiFy@gmail.com>",
11
11
  "license": "MIT",
@@ -16,10 +16,9 @@
16
16
  "@babel/preset-typescript": "^7.15.0",
17
17
  "@types/react": "^17.0.27",
18
18
  "@types/react-dom": "^17.0.9",
19
- "@types/react-router-dom": "^5.3.1",
20
19
  "@typescript-eslint/eslint-plugin": "^4.31.2",
21
20
  "@typescript-eslint/parser": "^4.31.2",
22
- "@variousjs/various": "0.0.2",
21
+ "@variousjs/various": "^0.4.0",
23
22
  "babel-loader": "^8.2.2",
24
23
  "css-loader": "^6.3.0",
25
24
  "eslint": "^7.32.0",
@@ -30,7 +29,6 @@
30
29
  "eslint-plugin-react-hooks": "^4.2.0",
31
30
  "less": "^4.1.1",
32
31
  "less-loader": "^10.0.1",
33
- "nycticorax": "^2.0.6",
34
32
  "style-loader": "^3.3.0",
35
33
  "typescript": "^4.4.3",
36
34
  "webpack": "^5.54.0",
@@ -1,18 +1,17 @@
1
1
  import React, { Component } from 'react'
2
- import Nycticorax, { Connect as CT } from 'nycticorax'
3
- import { ComponentProps } from '@variousjs/various'
2
+ import { ComponentProps, Store, Connect as CT } from '@variousjs/various'
4
3
  import { Descriptions } from 'antd'
5
4
  import { Store as GlobalStore } from '../types'
6
5
 
7
- type Store = { value: number }
8
- type Connect = CT<Store>
6
+ type S = { value: number }
7
+ type Connect = CT<S>
9
8
 
10
9
  const {
11
10
  createStore,
12
11
  connect,
13
12
  dispatch,
14
13
  getStore,
15
- } = new Nycticorax<Store>()
14
+ } = new Store<S>()
16
15
 
17
16
  createStore({ value: 0 })
18
17
 
@@ -1,6 +1,5 @@
1
1
  import React, { Component, ComponentType } from 'react'
2
- import { Route } from 'react-router-dom'
3
- import { ContainerProps } from '@variousjs/various'
2
+ import { ContainerProps, Router, Route } from '@variousjs/various'
4
3
  import { Radio, Badge, Button } from 'antd'
5
4
  import { Store, Config } from '../types'
6
5
  import csses from './entry.less'
@@ -20,7 +19,7 @@ class Container extends Component<ContainerProps<Store, Config>> {
20
19
  }
21
20
 
22
21
  render() {
23
- const { Router, $component, $config, $store } = this.props
22
+ const { $component, $config, $store } = this.props
24
23
 
25
24
  return (
26
25
  <div className={csses.container}>
@@ -3,14 +3,14 @@ const path = require('path')
3
3
  const config = {
4
4
  stats: 'minimal',
5
5
  entry: {
6
- entry: path.join(__dirname, './src/entry'),
6
+ entry: path.join(__dirname, '../src/entry'),
7
7
 
8
8
  // 组件入口定义
9
- card: path.join(__dirname, './src/components/card.tsx'),
10
- next: path.join(__dirname, './src/components/next.tsx'),
9
+ card: path.join(__dirname, '../src/components/card.tsx'),
10
+ next: path.join(__dirname, '../src/components/next.tsx'),
11
11
  },
12
12
  output: {
13
- path: path.resolve(__dirname, './demo/dist'),
13
+ path: path.resolve(__dirname, '../demo/dist'),
14
14
  publicPath: '/dist/',
15
15
  filename: '[name].js',
16
16
  libraryTarget: 'amd',
@@ -26,13 +26,9 @@ const config = {
26
26
  root: 'ReactDOM',
27
27
  amd: 'react-dom',
28
28
  },
29
- 'react-router-dom': {
30
- root: 'ReactRouterDOM',
31
- amd: 'react-router-dom',
32
- },
33
- nycticorax: {
34
- root: 'Nycticorax',
35
- amd: 'nycticorax',
29
+ '@variousjs/various': {
30
+ root: 'various',
31
+ amd: '@variousjs/various',
36
32
  },
37
33
 
38
34
  // 自定义
@@ -53,7 +49,7 @@ const config = {
53
49
  host: '0.0.0.0',
54
50
  https: true,
55
51
  static: {
56
- directory: path.join(__dirname, './demo'),
52
+ directory: path.join(__dirname, '../demo'),
57
53
  },
58
54
  // 监听文件构建后重新刷新页面,包括 html 文件
59
55
  watchFiles: ['demo'],
@@ -1,4 +1,4 @@
1
- const base = require('./webpack.base.config')
1
+ const base = require('./base')
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
4
  const { entry, ...rest } = base.entry
@@ -1,4 +1,4 @@
1
- const base = require('./webpack.base.config')
1
+ const base = require('./base')
2
2
 
3
3
  const { entry } = base.entry
4
4
  const config = {