@variousjs/create 0.5.0 → 1.0.0
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/demo/dist/card.js +1 -1
- package/demo/dist/card.js.map +1 -1
- package/demo/dist/next.js +1 -1
- package/demo/dist/next.js.map +1 -1
- package/demo/dist/top.js.map +1 -1
- package/demo/index.html +1 -1
- package/package-lock.json.copy +64 -22
- package/package.json +2 -2
- package/package.json.copy +1 -1
- package/src/components/card.tsx +8 -2
- package/src/components/i18n/en.json +3 -0
- package/src/components/i18n/zh.json +3 -0
- package/src/components/next.tsx +10 -2
- package/src/entry/actions.ts +3 -0
- package/src/entry/error.tsx +3 -3
- package/src/entry/store.ts +1 -0
- package/tsconfig.json +1 -0
package/demo/dist/card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["react","react-router-dom","antd"],(function(e,n
|
|
1
|
+
define(["react","react-router-dom","antd"],(function(e,t,n){return function(){"use strict";var r={233: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_Lng5c {\n margin-top: 30px;\n}\n","",{version:3,sources:["webpack://./src/components/card.less"],names:[],mappings:"AAAA;EACE,gBAAA;AACF",sourcesContent:[".container {\n margin-top: 30px;\n}\n"],sourceRoot:""}]),c.locals={container:"container_Lng5c"},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 s=this[i][0];null!=s&&(c[s]=!0)}for(var u=0;u<e.length;u++){var f=[].concat(e[u]);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 s=e[i],u=r.base?s[0]+r.base:s[0],f=a[u]||0,l="".concat(u," ").concat(f);a[u]=f+1;var p=n(l),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var v=o(d,r);r.byIndex=i,t.splice(i,0,{identifier:l,updater:v,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 s=r(e,o),u=0;u<a.length;u++){var f=n(a[u]);0===t[f].references&&(t[f].updater(),t.splice(f,1))}a=s}}},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},439:function(e){e.exports=t},937:function(e){e.exports=n}},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(){a.r(c),a.d(c,{default:function(){return S}});var e=a(161),t=a.n(e),n=a(439),r=a(937),o=a(379),i=a.n(o),s=a(795),u=a.n(s),f=a(569),l=a.n(f),p=a(565),d=a.n(p),v=a(216),m=a.n(v),h=a(589),y=a.n(h),g=a(233),b={};b.styleTagTransform=y(),b.setAttributes=d(),b.insert=l().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=m(),i()(g.Z,b);var x=g.Z&&g.Z.locals?g.Z.locals:void 0;function C(e,t,n,r,o,a,c){try{var i=e[a](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,o)}function A(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){C(a,r,o,c,i,"next",e)}function i(e){C(a,r,o,c,i,"throw",e)}c(void 0)}))}}var E=function(e){var o=(0,n.useParams)().id;return t().createElement("div",{className:x.container},t().createElement(r.Card,{hoverable:!0,style:{width:240},cover:t().createElement("img",{alt:"example",src:"https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"}),actions:[o?t().createElement(r.Button,{key:"next",onClick:function(){return e.$dispatch("next","setValue",1)}},"Next"):t().createElement(r.Button,{key:"locale",onClick:function(){return e.$dispatch("store","setLocale","zh"===e.$store.locale?"en":"zh")}},"locale"),t().createElement(r.Button,{key:"store",type:"primary",onClick:A(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$dispatch("store","setName","".concat(Math.random().toFixed(2)));case 2:r.message.info("changed");case 3:case"end":return t.stop()}}),t)})))},"Store")]},t().createElement(r.Card.Meta,{title:"Route Params",description:o||"none"})))};E.getName=function(e){return r.message.info(e.value)};var S=E}(),c}()}));
|
|
2
2
|
//# sourceMappingURL=card.js.map
|
package/demo/dist/card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","mappings":"qJAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,+C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js/create/./src/components/card.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/components/card.less?0fd9","webpack://@variousjs/create/./src/components/card.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_Lng5c {\\n margin-top: 30px;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/card.less\"],\"names\":[],\"mappings\":\"AAAA;EACE,gBAAA;AACF\",\"sourcesContent\":[\".container {\\n margin-top: 30px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": \"container_Lng5c\"\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};","\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]!./card.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]!./card.less\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { FC } from 'react'\nimport { ComponentProps, Invoker } from '@variousjs/various'\nimport { useParams } from 'react-router-dom'\nimport { Card, Button, message } from 'antd'\nimport csses from './card.less'\n\nconst H: FC<ComponentProps> & { getName: Invoker } = (props) => {\n const { id } = useParams<{ id: string }>()\n\n return (\n <div className={csses.container}>\n <Card\n hoverable\n style={{ width: 240 }}\n cover={<img alt=\"example\" src=\"https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png\" />}\n actions={[\n id ? <Button\n key=\"next\"\n onClick={() => props.$dispatch('next', 'setValue', 1)}\n >\n Next\n </Button> : null,\n <Button\n key=\"store\"\n type=\"primary\"\n onClick={async () => {\n await props.$dispatch('store', 'setName', `${Math.random().toFixed(2)}`)\n message.info('changed')\n }}\n >\n Store\n </Button>\n ]}\n >\n <Card.Meta\n title=\"Route Params\"\n description={id || 'none'}\n />\n </Card>\n </div>\n )\n}\n\nH.getName = (e) => message.info(e.value)\n\nexport default H\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","H","props","useParams","className","csses","Card","hoverable","width","cover","alt","src","actions","Button","onClick","$dispatch","type","Math","random","toFixed","message","title","description","getName"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"card.js","mappings":"qJAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,+CAAgD,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wCAAwC,MAAQ,GAAG,SAAW,uBAAuB,eAAiB,CAAC,0CAA0C,WAAa,MAElRH,EAAwBI,OAAS,CAChC,UAAa,mBAEd,K,kBCJAF,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,GAA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,MAAtB,EAEZ,O","sources":["webpack://@variousjs/create/./src/components/card.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/components/card.less?0fd9","webpack://@variousjs/create/./src/components/card.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_Lng5c {\\n margin-top: 30px;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/card.less\"],\"names\":[],\"mappings\":\"AAAA;EACE,gBAAA;AACF\",\"sourcesContent\":[\".container {\\n margin-top: 30px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": \"container_Lng5c\"\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};","\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]!./card.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]!./card.less\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { FC } from 'react'\nimport { ComponentProps, Invoker } from '@variousjs/various'\nimport { useParams } from 'react-router-dom'\nimport { Card, Button, message } from 'antd'\nimport { Store } from '../types'\nimport csses from './card.less'\n\nconst H: FC<ComponentProps<Store>> & { getName: Invoker } = (props) => {\n const { id } = useParams<{ id: string }>()\n\n return (\n <div className={csses.container}>\n <Card\n hoverable\n style={{ width: 240 }}\n cover={<img alt=\"example\" src=\"https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png\" />}\n actions={[\n id ? <Button\n key=\"next\"\n onClick={() => props.$dispatch('next', 'setValue', 1)}\n >\n Next\n </Button> : <Button\n key=\"locale\"\n onClick={() => props.$dispatch('store', 'setLocale', props.$store.locale === 'zh' ? 'en' : 'zh')}\n >\n locale\n </Button>,\n <Button\n key=\"store\"\n type=\"primary\"\n onClick={async () => {\n await props.$dispatch('store', 'setName', `${Math.random().toFixed(2)}`)\n message.info('changed')\n }}\n >\n Store\n </Button>\n ]}\n >\n <Card.Meta\n title=\"Route Params\"\n description={id || 'none'}\n />\n </Card>\n </div>\n )\n}\n\nH.getName = (e) => message.info(e.value)\n\nexport default H\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","H","props","useParams","className","csses","Card","hoverable","width","cover","alt","src","actions","Button","onClick","$dispatch","$store","locale","type","Math","random","toFixed","message","title","description","getName"],"sourceRoot":""}
|
package/demo/dist/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["react","@variousjs/various","antd"],(function(e,t,r){return function(){"use strict";var n={
|
|
1
|
+
define(["react","@variousjs/various","antd"],(function(e,t,r){return function(){"use strict";var n={563:function(e,t,r){r.r(t),r.d(t,{default:function(){return j}});var n=r(161),o=r.n(n),u=r(437),i=r(937),c={title:"标题"},a={title:"Title"};function f(e){return f="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},f(e)}function l(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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e,t){if(t&&("object"===f(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 b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=new u.Store,h=d.createStore,w=d.connect,O=d.emit,g=d.getStore;h({value:0});var 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&&y(e,t)}(a,e);var t,r,n,u,c=(n=a,u=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=b(n);if(u){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function a(){return s(this,a),c.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props.$store.user,t=this.props,r=t.value,n=t.$t;return o().createElement(i.Descriptions,{style:{marginTop:30},bordered:!0,title:"Next Component",size:"small"},o().createElement(i.Descriptions.Item,{label:"Store"},e.name),o().createElement(i.Descriptions.Item,{label:"Value"},r),o().createElement(i.Descriptions.Item,{label:"Title"},n("title")))}}])&&p(t.prototype,r),a}(n.Component);m(S,"setValue",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.value,n=g(),O({value:r+n.value},!0);case 3: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){l(u,n,o,i,c,"next",e)}function c(e){l(u,n,o,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}()),m(S,"$i18n",(function(){return{localeKey:"locale",resources:{zh:c,en:a}}}));var j=w("value")(S)},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}return 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})},u(563)}()}));
|
|
2
2
|
//# sourceMappingURL=next.js.map
|
package/demo/dist/next.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","mappings":"
|
|
1
|
+
{"version":3,"file":"next.js","mappings":"i9CAUA,MAKI,IAAIA,EAAAA,MAJNC,EADF,EACEA,YACAC,EAFF,EAEEA,QACAC,EAHF,EAGEA,KACAC,EAJF,EAIEA,SAGFH,EAAY,CAAEI,MAAO,I,IAEfC,EAAAA,SAAAA,I,muBAWJ,WACE,IAAQC,EAASC,K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D,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEjB,EAASgB,IAC5EE,OAAOC,eAAenB,EAASgB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAX,EAAoBY,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGlB,EAAoBsB,EAAI,SAAS3B,GACX,oBAAX4B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAenB,EAAS4B,OAAOC,YAAa,CAAEnD,MAAO,WAE7DwC,OAAOC,eAAenB,EAAS,aAAc,CAAEtB,OAAO,GACvD,ECH0B2B,EAAoB,I","sources":["webpack://@variousjs/create/./src/components/next.tsx","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/webpack/startup"],"sourcesContent":["import React, { Component } from 'react'\nimport { ComponentProps, Store, Connect as CT, Invoker, Ii8n } from '@variousjs/various'\nimport { Descriptions } from 'antd'\nimport { Store as GlobalStore } from '../types'\nimport zh from './i18n/zh.json'\nimport en from './i18n/en.json'\n\ntype S = { value: number }\ntype Connect = CT<S>\n\nconst {\n createStore,\n connect,\n emit,\n getStore,\n} = new Store<S>()\n\ncreateStore({ value: 0 })\n\nclass X extends Component<Connect & ComponentProps<GlobalStore>> {\n static setValue: Invoker = async ({ value }) => {\n const store = getStore()\n emit({ value: value + store.value }, true)\n }\n\n static $i18n: Ii8n = () => ({\n localeKey: 'locale',\n resources: { zh, en },\n })\n\n render() {\n const { user } = this.props.$store\n const { value, $t } = 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.Item label=\"Title\">{$t('title')}</Descriptions.Item>\n </Descriptions>\n )\n }\n}\n\nexport default connect('value')(X)\n","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};","// startup\n// Load entry module and return exports\n// This entry module doesn't tell about it's top-level declarations so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(563);\n"],"names":["Store","createStore","connect","emit","getStore","value","X","user","this","props","$store","$t","Descriptions","style","marginTop","bordered","title","size","label","name","Component","store","localeKey","resources","zh","en","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"],"sourceRoot":""}
|
package/demo/dist/top.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top.js","mappings":"kHAAAA,EAAOC,QAAUC,
|
|
1
|
+
{"version":3,"file":"top.js","mappings":"kHAAAA,EAAOC,QAAUC,C,kBCAjBF,EAAOC,QAAUE,C,kBCAjBH,EAAOC,QAAUG,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaP,QAGrB,IAAID,EAASK,EAAyBE,GAAY,CAGjDN,QAAS,CAAC,GAOX,OAHAS,EAAoBH,GAAUP,EAAQA,EAAOC,QAASK,GAG/CN,EAAOC,OACf,CCrBAK,EAAoBK,EAAI,SAASX,GAChC,IAAIY,EAASZ,GAAUA,EAAOa,WAC7B,WAAa,OAAOb,EAAgB,OAAG,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAM,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CACR,ECNAN,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,IAG3E,ECPAX,EAAoBY,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGlB,EAAoBsB,EAAI,SAAS3B,GACX,oBAAX4B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAenB,EAAS4B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAenB,EAAS,aAAc,CAAE8B,OAAO,GACvD,E,oLC+CA,UA/C6C,SAACC,GAC5C,I,IAAQC,GAAaC,EAAAA,EAAAA,eAAbD,SACFE,GAAUC,EAAAA,EAAAA,cAChB,G,GAAwBC,EAAAA,EAAAA,UAAS,I,EAAjC,E,8zBAAOC,EAAP,KAAaC,EAAb,KAWA,OATAC,EAAAA,EAAAA,YAAU,WACRD,EAAQN,EACT,GAAE,IAQD,oCACA,kBAAC,EAAAQ,MAAA,MAAD,CACEC,KAAK,QACLX,MAAOO,EACPK,SAVmB,SAACC,GACtBT,EAAQU,KAAKD,EAAEE,OAAOf,OACtBQ,EAAQK,EAAEE,OAAOf,MAClB,EAQGgB,YAAY,SAGVf,EAAMgB,QAAQC,MAAMC,KAAI,gBAAGZ,EAAH,EAAGA,KAAMa,EAAT,EAASA,KAAT,OACtB,kBAAC,EAAAV,MAAA,OAAD,CAAcxB,IAAKqB,EAAMP,MAAOO,GAC7Ba,EAFmB,KAO5B,sCAEE,kBAAC,EAAAC,MAAD,CACEC,MAAO,CAAEC,WAAY,IACrBC,MAAOvB,EAAMwB,OAAOC,KAAKN,OAEzB,kBAAC,EAAAO,OAAD,CACEL,MAAO,CAAEC,WAAY,IACrBK,QAAS,kBAAM3B,EAAM4B,UAAU,OAAQ,UAAW,OAAzC,GAFX,cASP,C","sources":["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/components/top.tsx"],"sourcesContent":["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\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, { FC, useState, useEffect } from 'react'\nimport { ComponentProps } from '@variousjs/various'\nimport { useLocation, useHistory } from 'react-router-dom'\nimport { Radio, Badge, Button } from 'antd'\nimport { Config, Store } from '../types'\n\nconst H: FC<ComponentProps<Store, Config>> = (props) => {\n const { pathname } = useLocation()\n const history = useHistory()\n const [path, setPath] = useState('')\n\n useEffect(() => {\n setPath(pathname)\n }, [])\n\n const onRouterChange = (e: any) => {\n history.push(e.target.value)\n setPath(e.target.value)\n }\n\n return (\n <>\n <Radio.Group\n size=\"large\"\n value={path}\n onChange={onRouterChange}\n buttonStyle=\"solid\"\n >\n {\n props.$config.links.map(({ path, name }) => (\n <Radio.Button key={path} value={path}>\n {name}\n </Radio.Button>\n ))\n }\n </Radio.Group>\n <div>\n Store:\n <Badge\n style={{ marginLeft: 10 }}\n count={props.$store.user.name}\n />\n <Button\n style={{ marginLeft: 10 }}\n onClick={() => props.$dispatch('card', 'getName', 'Card')}\n >\n Card Name\n </Button>\n </div>\n </>\n )\n}\n\nexport default H\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__161__","__WEBPACK_EXTERNAL_MODULE__439__","__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","props","pathname","useLocation","history","useHistory","useState","path","setPath","useEffect","Radio","size","onChange","e","push","target","buttonStyle","$config","links","map","name","Badge","style","marginLeft","count","$store","user","Button","onClick","$dispatch"],"sourceRoot":""}
|
package/demo/index.html
CHANGED
|
@@ -57,6 +57,6 @@ var VARIOUS_CONFIG = {
|
|
|
57
57
|
<body>
|
|
58
58
|
<div id="root"></div>
|
|
59
59
|
<script src="https://cdn.jsdelivr.net/npm/requirejs@2.3.6/require.js"></script>
|
|
60
|
-
<script src="https://cdn.jsdelivr.net/npm/@variousjs/various@1.
|
|
60
|
+
<script src="https://cdn.jsdelivr.net/npm/@variousjs/various@1.1.0/dist/index.js"></script>
|
|
61
61
|
</body>
|
|
62
62
|
</html>
|
package/package-lock.json.copy
CHANGED
|
@@ -1223,6 +1223,55 @@
|
|
|
1223
1223
|
"integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==",
|
|
1224
1224
|
"dev": true
|
|
1225
1225
|
},
|
|
1226
|
+
"@jridgewell/gen-mapping": {
|
|
1227
|
+
"version": "0.3.2",
|
|
1228
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
|
1229
|
+
"integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",
|
|
1230
|
+
"dev": true,
|
|
1231
|
+
"requires": {
|
|
1232
|
+
"@jridgewell/set-array": "^1.0.1",
|
|
1233
|
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
|
1234
|
+
"@jridgewell/trace-mapping": "^0.3.9"
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
"@jridgewell/resolve-uri": {
|
|
1238
|
+
"version": "3.1.0",
|
|
1239
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
|
|
1240
|
+
"integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
|
|
1241
|
+
"dev": true
|
|
1242
|
+
},
|
|
1243
|
+
"@jridgewell/set-array": {
|
|
1244
|
+
"version": "1.1.2",
|
|
1245
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
|
|
1246
|
+
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
|
|
1247
|
+
"dev": true
|
|
1248
|
+
},
|
|
1249
|
+
"@jridgewell/source-map": {
|
|
1250
|
+
"version": "0.3.2",
|
|
1251
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz",
|
|
1252
|
+
"integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==",
|
|
1253
|
+
"dev": true,
|
|
1254
|
+
"requires": {
|
|
1255
|
+
"@jridgewell/gen-mapping": "^0.3.0",
|
|
1256
|
+
"@jridgewell/trace-mapping": "^0.3.9"
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
"@jridgewell/sourcemap-codec": {
|
|
1260
|
+
"version": "1.4.14",
|
|
1261
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",
|
|
1262
|
+
"integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
|
|
1263
|
+
"dev": true
|
|
1264
|
+
},
|
|
1265
|
+
"@jridgewell/trace-mapping": {
|
|
1266
|
+
"version": "0.3.14",
|
|
1267
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz",
|
|
1268
|
+
"integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==",
|
|
1269
|
+
"dev": true,
|
|
1270
|
+
"requires": {
|
|
1271
|
+
"@jridgewell/resolve-uri": "^3.0.3",
|
|
1272
|
+
"@jridgewell/sourcemap-codec": "^1.4.10"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1226
1275
|
"@nodelib/fs.scandir": {
|
|
1227
1276
|
"version": "2.1.5",
|
|
1228
1277
|
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
|
@@ -1588,12 +1637,12 @@
|
|
|
1588
1637
|
}
|
|
1589
1638
|
},
|
|
1590
1639
|
"@variousjs/various": {
|
|
1591
|
-
"version": "1.
|
|
1592
|
-
"resolved": "https://registry.npmjs.org/@variousjs/various/-/various-1.
|
|
1593
|
-
"integrity": "sha512-
|
|
1640
|
+
"version": "1.1.0",
|
|
1641
|
+
"resolved": "https://registry.npmjs.org/@variousjs/various/-/various-1.1.0.tgz",
|
|
1642
|
+
"integrity": "sha512-uFJlcIG53BoJuZ9/Av0izh51qHEXcwNjvaXYVqYA9KrfoItSgL0ZMOABBhzSnLuTo8/2dSMP1ypT+G1FNdoSVQ==",
|
|
1594
1643
|
"dev": true,
|
|
1595
1644
|
"requires": {
|
|
1596
|
-
"nycticorax": "^3.0.
|
|
1645
|
+
"nycticorax": "^3.0.3"
|
|
1597
1646
|
}
|
|
1598
1647
|
},
|
|
1599
1648
|
"@webassemblyjs/ast": {
|
|
@@ -4674,9 +4723,9 @@
|
|
|
4674
4723
|
}
|
|
4675
4724
|
},
|
|
4676
4725
|
"nycticorax": {
|
|
4677
|
-
"version": "3.0.
|
|
4678
|
-
"resolved": "https://registry.npmjs.org/nycticorax/-/nycticorax-3.0.
|
|
4679
|
-
"integrity": "sha512-
|
|
4726
|
+
"version": "3.0.3",
|
|
4727
|
+
"resolved": "https://registry.npmjs.org/nycticorax/-/nycticorax-3.0.3.tgz",
|
|
4728
|
+
"integrity": "sha512-qEMyP43EjTpoIc4fOrHIrWFRNQZl8eYNaytHRUYbeiteSvpHcbmJi5HxuIOiUIMRmK9hnr8Mc9+WlbjJMlIdVg==",
|
|
4680
4729
|
"dev": true,
|
|
4681
4730
|
"requires": {
|
|
4682
4731
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -5784,9 +5833,9 @@
|
|
|
5784
5833
|
"dev": true
|
|
5785
5834
|
},
|
|
5786
5835
|
"source-map-support": {
|
|
5787
|
-
"version": "0.5.
|
|
5788
|
-
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.
|
|
5789
|
-
"integrity": "sha512-
|
|
5836
|
+
"version": "0.5.21",
|
|
5837
|
+
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
|
|
5838
|
+
"integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
|
|
5790
5839
|
"dev": true,
|
|
5791
5840
|
"requires": {
|
|
5792
5841
|
"buffer-from": "^1.0.0",
|
|
@@ -6043,22 +6092,15 @@
|
|
|
6043
6092
|
"dev": true
|
|
6044
6093
|
},
|
|
6045
6094
|
"terser": {
|
|
6046
|
-
"version": "5.
|
|
6047
|
-
"resolved": "https://registry.npmjs.org/terser/-/terser-5.
|
|
6048
|
-
"integrity": "sha512-
|
|
6095
|
+
"version": "5.14.2",
|
|
6096
|
+
"resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz",
|
|
6097
|
+
"integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==",
|
|
6049
6098
|
"dev": true,
|
|
6050
6099
|
"requires": {
|
|
6100
|
+
"@jridgewell/source-map": "^0.3.2",
|
|
6101
|
+
"acorn": "^8.5.0",
|
|
6051
6102
|
"commander": "^2.20.0",
|
|
6052
|
-
"source-map": "~0.7.2",
|
|
6053
6103
|
"source-map-support": "~0.5.20"
|
|
6054
|
-
},
|
|
6055
|
-
"dependencies": {
|
|
6056
|
-
"source-map": {
|
|
6057
|
-
"version": "0.7.3",
|
|
6058
|
-
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
|
|
6059
|
-
"integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",
|
|
6060
|
-
"dev": true
|
|
6061
|
-
}
|
|
6062
6104
|
}
|
|
6063
6105
|
},
|
|
6064
6106
|
"terser-webpack-plugin": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@variousjs/create",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "VariousJS boilerplate",
|
|
5
5
|
"bin": "bin/create.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/react-router-dom": "^5.3.3",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
|
38
38
|
"@typescript-eslint/parser": "^4.31.2",
|
|
39
|
-
"@variousjs/various": "^1.
|
|
39
|
+
"@variousjs/various": "^1.1.0",
|
|
40
40
|
"babel-loader": "^8.2.2",
|
|
41
41
|
"css-loader": "^6.3.0",
|
|
42
42
|
"eslint": "^7.32.0",
|
package/package.json.copy
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/react-router-dom": "^5.3.3",
|
|
20
20
|
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
|
21
21
|
"@typescript-eslint/parser": "^4.31.2",
|
|
22
|
-
"@variousjs/various": "^1.
|
|
22
|
+
"@variousjs/various": "^1.1.0",
|
|
23
23
|
"babel-loader": "^8.2.2",
|
|
24
24
|
"css-loader": "^6.3.0",
|
|
25
25
|
"eslint": "^7.32.0",
|
package/src/components/card.tsx
CHANGED
|
@@ -2,9 +2,10 @@ import React, { FC } from 'react'
|
|
|
2
2
|
import { ComponentProps, Invoker } from '@variousjs/various'
|
|
3
3
|
import { useParams } from 'react-router-dom'
|
|
4
4
|
import { Card, Button, message } from 'antd'
|
|
5
|
+
import { Store } from '../types'
|
|
5
6
|
import csses from './card.less'
|
|
6
7
|
|
|
7
|
-
const H: FC<ComponentProps
|
|
8
|
+
const H: FC<ComponentProps<Store>> & { getName: Invoker } = (props) => {
|
|
8
9
|
const { id } = useParams<{ id: string }>()
|
|
9
10
|
|
|
10
11
|
return (
|
|
@@ -19,7 +20,12 @@ const H: FC<ComponentProps> & { getName: Invoker } = (props) => {
|
|
|
19
20
|
onClick={() => props.$dispatch('next', 'setValue', 1)}
|
|
20
21
|
>
|
|
21
22
|
Next
|
|
22
|
-
</Button> :
|
|
23
|
+
</Button> : <Button
|
|
24
|
+
key="locale"
|
|
25
|
+
onClick={() => props.$dispatch('store', 'setLocale', props.$store.locale === 'zh' ? 'en' : 'zh')}
|
|
26
|
+
>
|
|
27
|
+
locale
|
|
28
|
+
</Button>,
|
|
23
29
|
<Button
|
|
24
30
|
key="store"
|
|
25
31
|
type="primary"
|
package/src/components/next.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { Component } from 'react'
|
|
2
|
-
import { ComponentProps, Store, Connect as CT, Invoker } from '@variousjs/various'
|
|
2
|
+
import { ComponentProps, Store, Connect as CT, Invoker, Ii8n } from '@variousjs/various'
|
|
3
3
|
import { Descriptions } from 'antd'
|
|
4
4
|
import { Store as GlobalStore } from '../types'
|
|
5
|
+
import zh from './i18n/zh.json'
|
|
6
|
+
import en from './i18n/en.json'
|
|
5
7
|
|
|
6
8
|
type S = { value: number }
|
|
7
9
|
type Connect = CT<S>
|
|
@@ -21,9 +23,14 @@ class X extends Component<Connect & ComponentProps<GlobalStore>> {
|
|
|
21
23
|
emit({ value: value + store.value }, true)
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
static $i18n: Ii8n = () => ({
|
|
27
|
+
localeKey: 'locale',
|
|
28
|
+
resources: { zh, en },
|
|
29
|
+
})
|
|
30
|
+
|
|
24
31
|
render() {
|
|
25
32
|
const { user } = this.props.$store
|
|
26
|
-
const { value } = this.props
|
|
33
|
+
const { value, $t } = this.props
|
|
27
34
|
|
|
28
35
|
return (
|
|
29
36
|
<Descriptions
|
|
@@ -34,6 +41,7 @@ class X extends Component<Connect & ComponentProps<GlobalStore>> {
|
|
|
34
41
|
>
|
|
35
42
|
<Descriptions.Item label="Store">{user.name}</Descriptions.Item>
|
|
36
43
|
<Descriptions.Item label="Value">{value}</Descriptions.Item>
|
|
44
|
+
<Descriptions.Item label="Title">{$t('title')}</Descriptions.Item>
|
|
37
45
|
</Descriptions>
|
|
38
46
|
)
|
|
39
47
|
}
|
package/src/entry/actions.ts
CHANGED
package/src/entry/error.tsx
CHANGED
|
@@ -2,16 +2,16 @@ import React, { FC } from 'react'
|
|
|
2
2
|
import { Alert, Button } from 'antd'
|
|
3
3
|
import { ErrorProps } from '@variousjs/various'
|
|
4
4
|
|
|
5
|
-
const errorComponent: FC<ErrorProps> = ({ reload, type, message }) => (
|
|
5
|
+
const errorComponent: FC<ErrorProps> = ({ $reload, $type, $message }) => (
|
|
6
6
|
<>
|
|
7
7
|
<Alert
|
|
8
8
|
message="Error"
|
|
9
|
-
description={`[${type}]
|
|
9
|
+
description={`[${$type}]: ${$message || '组件错误'}`}
|
|
10
10
|
type="error"
|
|
11
11
|
style={{ marginTop: 30 }}
|
|
12
12
|
/>
|
|
13
13
|
{
|
|
14
|
-
reload && <Button onClick={reload}>刷新</Button>
|
|
14
|
+
$reload && <Button onClick={$reload}>刷新</Button>
|
|
15
15
|
}
|
|
16
16
|
</>
|
|
17
17
|
)
|
package/src/entry/store.ts
CHANGED