@variousjs/create 3.2.0 → 3.3.1
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/babel.config.js +7 -1
- package/package-lock.json.copy +215 -87
- package/package.json +4 -4
- package/package.json.copy +3 -3
- package/public/dist/app.js +1 -1
- package/public/dist/app.js.map +1 -1
- package/public/dist/next.js +1 -1
- package/public/dist/next.js.map +1 -1
- package/public/dist/top.js +1 -1
- package/public/dist/top.js.map +1 -1
- package/public/index.html +3 -2
- package/src/components/app/error.tsx +3 -5
- package/src/components/app/index.ts +3 -3
- package/src/components/next/index.tsx +1 -1
- package/src/components/top/index.tsx +5 -2
- package/src/index.html +1 -1
- package/various.config.js +1 -0
- package/webpack/base.js +1 -0
package/babel.config.js
CHANGED
package/package-lock.json.copy
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@variousjs/create",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.3.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"bin": {
|
|
12
12
|
"create": "bin/create.js"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@types/react-router-dom": "^5.3.3",
|
|
24
24
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
25
25
|
"@typescript-eslint/parser": "^7.2.0",
|
|
26
|
-
"@variousjs/registry": "^0.1.
|
|
27
|
-
"@variousjs/various": "^
|
|
26
|
+
"@variousjs/registry": "^0.1.8",
|
|
27
|
+
"@variousjs/various": "^5.1.1",
|
|
28
28
|
"babel-loader": "^8.2.2",
|
|
29
29
|
"core-js": "^3.25.1",
|
|
30
30
|
"css-loader": "^6.3.0",
|
|
@@ -427,9 +427,9 @@
|
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
"node_modules/@babel/helper-validator-identifier": {
|
|
430
|
-
"version": "7.
|
|
431
|
-
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.
|
|
432
|
-
"integrity": "sha512-
|
|
430
|
+
"version": "7.28.5",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
|
|
432
|
+
"integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
|
|
433
433
|
"dev": true,
|
|
434
434
|
"engines": {
|
|
435
435
|
"node": ">=6.9.0"
|
|
@@ -472,12 +472,12 @@
|
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
"node_modules/@babel/parser": {
|
|
475
|
-
"version": "7.28.
|
|
476
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.
|
|
477
|
-
"integrity": "sha512-
|
|
475
|
+
"version": "7.28.5",
|
|
476
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",
|
|
477
|
+
"integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",
|
|
478
478
|
"dev": true,
|
|
479
479
|
"dependencies": {
|
|
480
|
-
"@babel/types": "^7.28.
|
|
480
|
+
"@babel/types": "^7.28.5"
|
|
481
481
|
},
|
|
482
482
|
"bin": {
|
|
483
483
|
"parser": "bin/babel-parser.js"
|
|
@@ -2362,13 +2362,13 @@
|
|
|
2362
2362
|
}
|
|
2363
2363
|
},
|
|
2364
2364
|
"node_modules/@babel/types": {
|
|
2365
|
-
"version": "7.28.
|
|
2366
|
-
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.
|
|
2367
|
-
"integrity": "sha512-
|
|
2365
|
+
"version": "7.28.5",
|
|
2366
|
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",
|
|
2367
|
+
"integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",
|
|
2368
2368
|
"dev": true,
|
|
2369
2369
|
"dependencies": {
|
|
2370
2370
|
"@babel/helper-string-parser": "^7.27.1",
|
|
2371
|
-
"@babel/helper-validator-identifier": "^7.
|
|
2371
|
+
"@babel/helper-validator-identifier": "^7.28.5"
|
|
2372
2372
|
},
|
|
2373
2373
|
"engines": {
|
|
2374
2374
|
"node": ">=6.9.0"
|
|
@@ -2530,9 +2530,9 @@
|
|
|
2530
2530
|
}
|
|
2531
2531
|
},
|
|
2532
2532
|
"node_modules/@jridgewell/sourcemap-codec": {
|
|
2533
|
-
"version": "1.
|
|
2534
|
-
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.
|
|
2535
|
-
"integrity": "sha512-
|
|
2533
|
+
"version": "1.5.5",
|
|
2534
|
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
|
2535
|
+
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
|
2536
2536
|
"dev": true
|
|
2537
2537
|
},
|
|
2538
2538
|
"node_modules/@jridgewell/trace-mapping": {
|
|
@@ -2755,9 +2755,9 @@
|
|
|
2755
2755
|
"dev": true
|
|
2756
2756
|
},
|
|
2757
2757
|
"node_modules/@types/react": {
|
|
2758
|
-
"version": "18.0
|
|
2759
|
-
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.
|
|
2760
|
-
"integrity": "sha512-
|
|
2758
|
+
"version": "18.2.0",
|
|
2759
|
+
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.0.tgz",
|
|
2760
|
+
"integrity": "sha512-0FLj93y5USLHdnhIhABk83rm8XEGA7kH3cr+YUlvxoUGp1xNt/DINUMvqPxLyOQMzLmZe8i4RTHbvb8MC7NmrA==",
|
|
2761
2761
|
"dev": true,
|
|
2762
2762
|
"dependencies": {
|
|
2763
2763
|
"@types/prop-types": "*",
|
|
@@ -2766,9 +2766,9 @@
|
|
|
2766
2766
|
}
|
|
2767
2767
|
},
|
|
2768
2768
|
"node_modules/@types/react-dom": {
|
|
2769
|
-
"version": "18.0
|
|
2770
|
-
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.
|
|
2771
|
-
"integrity": "sha512
|
|
2769
|
+
"version": "18.2.0",
|
|
2770
|
+
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.0.tgz",
|
|
2771
|
+
"integrity": "sha512-8yQrvS6sMpSwIovhPOwfyNf2Wz6v/B62LFSVYQ85+Rq3tLsBIG7rP5geMxaijTUxSkrO6RzN/IRuIAADYQsleA==",
|
|
2772
2772
|
"dev": true,
|
|
2773
2773
|
"dependencies": {
|
|
2774
2774
|
"@types/react": "*"
|
|
@@ -3116,52 +3116,150 @@
|
|
|
3116
3116
|
"dev": true
|
|
3117
3117
|
},
|
|
3118
3118
|
"node_modules/@variousjs/registry": {
|
|
3119
|
-
"version": "0.1.
|
|
3120
|
-
"resolved": "https://registry.npmjs.org/@variousjs/registry/-/registry-0.1.
|
|
3121
|
-
"integrity": "sha512-
|
|
3119
|
+
"version": "0.1.8",
|
|
3120
|
+
"resolved": "https://registry.npmjs.org/@variousjs/registry/-/registry-0.1.8.tgz",
|
|
3121
|
+
"integrity": "sha512-YumD+0mW0Pkn48j8vl9EYKM5FHYg1avW2gq1nl09njxnC/bdtOnCa9o7tRC+vLRw+EEu6GLVWvlMgt4BXtLbQA==",
|
|
3122
3122
|
"dev": true,
|
|
3123
3123
|
"dependencies": {
|
|
3124
3124
|
"@types/react": "18.2.0",
|
|
3125
3125
|
"@types/react-dom": "18.2.0",
|
|
3126
|
-
"react-router-dom": "6.22.1"
|
|
3126
|
+
"react-router-dom": "6.22.1",
|
|
3127
|
+
"vue": "3.5.22"
|
|
3128
|
+
},
|
|
3129
|
+
"engines": {
|
|
3130
|
+
"node": ">=18"
|
|
3127
3131
|
}
|
|
3128
3132
|
},
|
|
3129
|
-
"node_modules/@variousjs/
|
|
3130
|
-
"version": "
|
|
3131
|
-
"resolved": "https://registry.npmjs.org/@
|
|
3132
|
-
"integrity": "sha512-
|
|
3133
|
+
"node_modules/@variousjs/requirejs": {
|
|
3134
|
+
"version": "0.0.2",
|
|
3135
|
+
"resolved": "https://registry.npmjs.org/@variousjs/requirejs/-/requirejs-0.0.2.tgz",
|
|
3136
|
+
"integrity": "sha512-ztNDst1gb8u9Aweqm6EKM6A+MhSJW3hbACCzLnARNaQHCR6GX2+E0SzGlWHgQDcdIlgiR5kO3QBUvubHKrtQeQ==",
|
|
3133
3137
|
"dev": true,
|
|
3138
|
+
"license": "MIT"
|
|
3139
|
+
},
|
|
3140
|
+
"node_modules/@variousjs/various": {
|
|
3141
|
+
"version": "5.1.1",
|
|
3142
|
+
"resolved": "https://registry.npmjs.org/@variousjs/various/-/various-5.1.1.tgz",
|
|
3143
|
+
"integrity": "sha512-VzHiUKXrbBowx0tLGApZHH6MtlPintsPFFqCeOX5noB16bxTcC0Oh4znaLbalnm3cS3DYheTRZcBon2Avowzyg==",
|
|
3144
|
+
"dev": true,
|
|
3145
|
+
"license": "MIT",
|
|
3134
3146
|
"dependencies": {
|
|
3135
|
-
"@
|
|
3136
|
-
"
|
|
3137
|
-
"csstype": "^3.0.2"
|
|
3147
|
+
"@variousjs/requirejs": "0.0.2",
|
|
3148
|
+
"nycticorax": "^4.1.4"
|
|
3138
3149
|
}
|
|
3139
3150
|
},
|
|
3140
|
-
"node_modules/@
|
|
3141
|
-
"version": "
|
|
3142
|
-
"resolved": "https://registry.npmjs.org/@
|
|
3143
|
-
"integrity": "sha512-
|
|
3151
|
+
"node_modules/@vue/compiler-core": {
|
|
3152
|
+
"version": "3.5.22",
|
|
3153
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.22.tgz",
|
|
3154
|
+
"integrity": "sha512-jQ0pFPmZwTEiRNSb+i9Ow/I/cHv2tXYqsnHKKyCQ08irI2kdF5qmYedmF8si8mA7zepUFmJ2hqzS8CQmNOWOkQ==",
|
|
3144
3155
|
"dev": true,
|
|
3145
3156
|
"dependencies": {
|
|
3146
|
-
"@
|
|
3157
|
+
"@babel/parser": "^7.28.4",
|
|
3158
|
+
"@vue/shared": "3.5.22",
|
|
3159
|
+
"entities": "^4.5.0",
|
|
3160
|
+
"estree-walker": "^2.0.2",
|
|
3161
|
+
"source-map-js": "^1.2.1"
|
|
3147
3162
|
}
|
|
3148
3163
|
},
|
|
3149
|
-
"node_modules/@
|
|
3150
|
-
"version": "
|
|
3151
|
-
"resolved": "https://registry.npmjs.org
|
|
3152
|
-
"integrity": "sha512-
|
|
3153
|
-
"dev": true
|
|
3164
|
+
"node_modules/@vue/compiler-core/node_modules/entities": {
|
|
3165
|
+
"version": "4.5.0",
|
|
3166
|
+
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
|
3167
|
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
|
3168
|
+
"dev": true,
|
|
3169
|
+
"engines": {
|
|
3170
|
+
"node": ">=0.12"
|
|
3171
|
+
},
|
|
3172
|
+
"funding": {
|
|
3173
|
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
|
3174
|
+
}
|
|
3154
3175
|
},
|
|
3155
|
-
"node_modules/@
|
|
3156
|
-
"version": "
|
|
3157
|
-
"resolved": "https://registry.npmjs.org/@
|
|
3158
|
-
"integrity": "sha512-
|
|
3176
|
+
"node_modules/@vue/compiler-dom": {
|
|
3177
|
+
"version": "3.5.22",
|
|
3178
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.22.tgz",
|
|
3179
|
+
"integrity": "sha512-W8RknzUM1BLkypvdz10OVsGxnMAuSIZs9Wdx1vzA3mL5fNMN15rhrSCLiTm6blWeACwUwizzPVqGJgOGBEN/hA==",
|
|
3159
3180
|
"dev": true,
|
|
3160
3181
|
"dependencies": {
|
|
3161
|
-
"@
|
|
3162
|
-
"
|
|
3182
|
+
"@vue/compiler-core": "3.5.22",
|
|
3183
|
+
"@vue/shared": "3.5.22"
|
|
3163
3184
|
}
|
|
3164
3185
|
},
|
|
3186
|
+
"node_modules/@vue/compiler-sfc": {
|
|
3187
|
+
"version": "3.5.22",
|
|
3188
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.22.tgz",
|
|
3189
|
+
"integrity": "sha512-tbTR1zKGce4Lj+JLzFXDq36K4vcSZbJ1RBu8FxcDv1IGRz//Dh2EBqksyGVypz3kXpshIfWKGOCcqpSbyGWRJQ==",
|
|
3190
|
+
"dev": true,
|
|
3191
|
+
"dependencies": {
|
|
3192
|
+
"@babel/parser": "^7.28.4",
|
|
3193
|
+
"@vue/compiler-core": "3.5.22",
|
|
3194
|
+
"@vue/compiler-dom": "3.5.22",
|
|
3195
|
+
"@vue/compiler-ssr": "3.5.22",
|
|
3196
|
+
"@vue/shared": "3.5.22",
|
|
3197
|
+
"estree-walker": "^2.0.2",
|
|
3198
|
+
"magic-string": "^0.30.19",
|
|
3199
|
+
"postcss": "^8.5.6",
|
|
3200
|
+
"source-map-js": "^1.2.1"
|
|
3201
|
+
}
|
|
3202
|
+
},
|
|
3203
|
+
"node_modules/@vue/compiler-ssr": {
|
|
3204
|
+
"version": "3.5.22",
|
|
3205
|
+
"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.22.tgz",
|
|
3206
|
+
"integrity": "sha512-GdgyLvg4R+7T8Nk2Mlighx7XGxq/fJf9jaVofc3IL0EPesTE86cP/8DD1lT3h1JeZr2ySBvyqKQJgbS54IX1Ww==",
|
|
3207
|
+
"dev": true,
|
|
3208
|
+
"dependencies": {
|
|
3209
|
+
"@vue/compiler-dom": "3.5.22",
|
|
3210
|
+
"@vue/shared": "3.5.22"
|
|
3211
|
+
}
|
|
3212
|
+
},
|
|
3213
|
+
"node_modules/@vue/reactivity": {
|
|
3214
|
+
"version": "3.5.22",
|
|
3215
|
+
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.22.tgz",
|
|
3216
|
+
"integrity": "sha512-f2Wux4v/Z2pqc9+4SmgZC1p73Z53fyD90NFWXiX9AKVnVBEvLFOWCEgJD3GdGnlxPZt01PSlfmLqbLYzY/Fw4A==",
|
|
3217
|
+
"dev": true,
|
|
3218
|
+
"dependencies": {
|
|
3219
|
+
"@vue/shared": "3.5.22"
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
"node_modules/@vue/runtime-core": {
|
|
3223
|
+
"version": "3.5.22",
|
|
3224
|
+
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.22.tgz",
|
|
3225
|
+
"integrity": "sha512-EHo4W/eiYeAzRTN5PCextDUZ0dMs9I8mQ2Fy+OkzvRPUYQEyK9yAjbasrMCXbLNhF7P0OUyivLjIy0yc6VrLJQ==",
|
|
3226
|
+
"dev": true,
|
|
3227
|
+
"dependencies": {
|
|
3228
|
+
"@vue/reactivity": "3.5.22",
|
|
3229
|
+
"@vue/shared": "3.5.22"
|
|
3230
|
+
}
|
|
3231
|
+
},
|
|
3232
|
+
"node_modules/@vue/runtime-dom": {
|
|
3233
|
+
"version": "3.5.22",
|
|
3234
|
+
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.22.tgz",
|
|
3235
|
+
"integrity": "sha512-Av60jsryAkI023PlN7LsqrfPvwfxOd2yAwtReCjeuugTJTkgrksYJJstg1e12qle0NarkfhfFu1ox2D+cQotww==",
|
|
3236
|
+
"dev": true,
|
|
3237
|
+
"dependencies": {
|
|
3238
|
+
"@vue/reactivity": "3.5.22",
|
|
3239
|
+
"@vue/runtime-core": "3.5.22",
|
|
3240
|
+
"@vue/shared": "3.5.22",
|
|
3241
|
+
"csstype": "^3.1.3"
|
|
3242
|
+
}
|
|
3243
|
+
},
|
|
3244
|
+
"node_modules/@vue/server-renderer": {
|
|
3245
|
+
"version": "3.5.22",
|
|
3246
|
+
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.22.tgz",
|
|
3247
|
+
"integrity": "sha512-gXjo+ao0oHYTSswF+a3KRHZ1WszxIqO7u6XwNHqcqb9JfyIL/pbWrrh/xLv7jeDqla9u+LK7yfZKHih1e1RKAQ==",
|
|
3248
|
+
"dev": true,
|
|
3249
|
+
"dependencies": {
|
|
3250
|
+
"@vue/compiler-ssr": "3.5.22",
|
|
3251
|
+
"@vue/shared": "3.5.22"
|
|
3252
|
+
},
|
|
3253
|
+
"peerDependencies": {
|
|
3254
|
+
"vue": "3.5.22"
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
"node_modules/@vue/shared": {
|
|
3258
|
+
"version": "3.5.22",
|
|
3259
|
+
"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.22.tgz",
|
|
3260
|
+
"integrity": "sha512-F4yc6palwq3TT0u+FYf0Ns4Tfl9GRFURDN2gWG7L1ecIaS/4fCIuFOjMTnCyjsu/OK6vaDKLCrGAa+KvvH+h4w==",
|
|
3261
|
+
"dev": true
|
|
3262
|
+
},
|
|
3165
3263
|
"node_modules/@webassemblyjs/ast": {
|
|
3166
3264
|
"version": "1.14.1",
|
|
3167
3265
|
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz",
|
|
@@ -4536,9 +4634,9 @@
|
|
|
4536
4634
|
}
|
|
4537
4635
|
},
|
|
4538
4636
|
"node_modules/csstype": {
|
|
4539
|
-
"version": "3.1.
|
|
4540
|
-
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.
|
|
4541
|
-
"integrity": "sha512-
|
|
4637
|
+
"version": "3.1.3",
|
|
4638
|
+
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
|
|
4639
|
+
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
|
|
4542
4640
|
"dev": true
|
|
4543
4641
|
},
|
|
4544
4642
|
"node_modules/damerau-levenshtein": {
|
|
@@ -5705,6 +5803,12 @@
|
|
|
5705
5803
|
"node": ">=4.0"
|
|
5706
5804
|
}
|
|
5707
5805
|
},
|
|
5806
|
+
"node_modules/estree-walker": {
|
|
5807
|
+
"version": "2.0.2",
|
|
5808
|
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
|
5809
|
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
|
|
5810
|
+
"dev": true
|
|
5811
|
+
},
|
|
5708
5812
|
"node_modules/esutils": {
|
|
5709
5813
|
"version": "2.0.3",
|
|
5710
5814
|
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
|
@@ -7659,6 +7763,15 @@
|
|
|
7659
7763
|
"node": ">=10"
|
|
7660
7764
|
}
|
|
7661
7765
|
},
|
|
7766
|
+
"node_modules/magic-string": {
|
|
7767
|
+
"version": "0.30.21",
|
|
7768
|
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
|
|
7769
|
+
"integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
|
|
7770
|
+
"dev": true,
|
|
7771
|
+
"dependencies": {
|
|
7772
|
+
"@jridgewell/sourcemap-codec": "^1.5.5"
|
|
7773
|
+
}
|
|
7774
|
+
},
|
|
7662
7775
|
"node_modules/make-dir": {
|
|
7663
7776
|
"version": "3.1.0",
|
|
7664
7777
|
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
|
|
@@ -7965,6 +8078,7 @@
|
|
|
7965
8078
|
"resolved": "https://registry.npmjs.org/nycticorax/-/nycticorax-4.1.4.tgz",
|
|
7966
8079
|
"integrity": "sha512-hj0I7YErV6IZZQFjP8hyk2k+1XLeoL9laJC9vhvSjPkIJ6YbcyM721zF4BwYt4uljwZr2Fm0iilou6bsmohghg==",
|
|
7967
8080
|
"dev": true,
|
|
8081
|
+
"license": "MIT",
|
|
7968
8082
|
"peerDependencies": {
|
|
7969
8083
|
"react": ">=16.8.0"
|
|
7970
8084
|
}
|
|
@@ -8373,9 +8487,9 @@
|
|
|
8373
8487
|
}
|
|
8374
8488
|
},
|
|
8375
8489
|
"node_modules/postcss": {
|
|
8376
|
-
"version": "8.
|
|
8377
|
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.
|
|
8378
|
-
"integrity": "sha512-
|
|
8490
|
+
"version": "8.5.6",
|
|
8491
|
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
|
|
8492
|
+
"integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
|
|
8379
8493
|
"dev": true,
|
|
8380
8494
|
"funding": [
|
|
8381
8495
|
{
|
|
@@ -8392,9 +8506,9 @@
|
|
|
8392
8506
|
}
|
|
8393
8507
|
],
|
|
8394
8508
|
"dependencies": {
|
|
8395
|
-
"nanoid": "^3.3.
|
|
8396
|
-
"picocolors": "^1.
|
|
8397
|
-
"source-map-js": "^1.
|
|
8509
|
+
"nanoid": "^3.3.11",
|
|
8510
|
+
"picocolors": "^1.1.1",
|
|
8511
|
+
"source-map-js": "^1.2.1"
|
|
8398
8512
|
},
|
|
8399
8513
|
"engines": {
|
|
8400
8514
|
"node": "^10 || ^12 || >=14"
|
|
@@ -8478,15 +8592,6 @@
|
|
|
8478
8592
|
"integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==",
|
|
8479
8593
|
"dev": true
|
|
8480
8594
|
},
|
|
8481
|
-
"node_modules/postcss/node_modules/source-map-js": {
|
|
8482
|
-
"version": "1.0.2",
|
|
8483
|
-
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
|
|
8484
|
-
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
|
8485
|
-
"dev": true,
|
|
8486
|
-
"engines": {
|
|
8487
|
-
"node": ">=0.10.0"
|
|
8488
|
-
}
|
|
8489
|
-
},
|
|
8490
8595
|
"node_modules/prelude-ls": {
|
|
8491
8596
|
"version": "1.2.1",
|
|
8492
8597
|
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
|
@@ -8630,30 +8735,26 @@
|
|
|
8630
8735
|
}
|
|
8631
8736
|
},
|
|
8632
8737
|
"node_modules/react": {
|
|
8633
|
-
"version": "
|
|
8634
|
-
"resolved": "https://registry.npmjs.org/react/-/react-
|
|
8635
|
-
"integrity": "sha512
|
|
8738
|
+
"version": "19.2.0",
|
|
8739
|
+
"resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
|
|
8740
|
+
"integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
|
|
8636
8741
|
"dev": true,
|
|
8637
8742
|
"peer": true,
|
|
8638
|
-
"dependencies": {
|
|
8639
|
-
"loose-envify": "^1.1.0"
|
|
8640
|
-
},
|
|
8641
8743
|
"engines": {
|
|
8642
8744
|
"node": ">=0.10.0"
|
|
8643
8745
|
}
|
|
8644
8746
|
},
|
|
8645
8747
|
"node_modules/react-dom": {
|
|
8646
|
-
"version": "
|
|
8647
|
-
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-
|
|
8648
|
-
"integrity": "sha512-
|
|
8748
|
+
"version": "19.2.0",
|
|
8749
|
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
|
|
8750
|
+
"integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
|
|
8649
8751
|
"dev": true,
|
|
8650
8752
|
"peer": true,
|
|
8651
8753
|
"dependencies": {
|
|
8652
|
-
"
|
|
8653
|
-
"scheduler": "^0.23.0"
|
|
8754
|
+
"scheduler": "^0.27.0"
|
|
8654
8755
|
},
|
|
8655
8756
|
"peerDependencies": {
|
|
8656
|
-
"react": "^
|
|
8757
|
+
"react": "^19.2.0"
|
|
8657
8758
|
}
|
|
8658
8759
|
},
|
|
8659
8760
|
"node_modules/react-is": {
|
|
@@ -9055,14 +9156,11 @@
|
|
|
9055
9156
|
"optional": true
|
|
9056
9157
|
},
|
|
9057
9158
|
"node_modules/scheduler": {
|
|
9058
|
-
"version": "0.
|
|
9059
|
-
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.
|
|
9060
|
-
"integrity": "sha512-
|
|
9159
|
+
"version": "0.27.0",
|
|
9160
|
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
|
9161
|
+
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
|
9061
9162
|
"dev": true,
|
|
9062
|
-
"peer": true
|
|
9063
|
-
"dependencies": {
|
|
9064
|
-
"loose-envify": "^1.1.0"
|
|
9065
|
-
}
|
|
9163
|
+
"peer": true
|
|
9066
9164
|
},
|
|
9067
9165
|
"node_modules/schema-utils": {
|
|
9068
9166
|
"version": "2.7.1",
|
|
@@ -9453,6 +9551,15 @@
|
|
|
9453
9551
|
"node": ">=0.10.0"
|
|
9454
9552
|
}
|
|
9455
9553
|
},
|
|
9554
|
+
"node_modules/source-map-js": {
|
|
9555
|
+
"version": "1.2.1",
|
|
9556
|
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
|
9557
|
+
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
|
9558
|
+
"dev": true,
|
|
9559
|
+
"engines": {
|
|
9560
|
+
"node": ">=0.10.0"
|
|
9561
|
+
}
|
|
9562
|
+
},
|
|
9456
9563
|
"node_modules/source-map-support": {
|
|
9457
9564
|
"version": "0.5.21",
|
|
9458
9565
|
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
|
|
@@ -10118,6 +10225,27 @@
|
|
|
10118
10225
|
"node": ">= 0.8"
|
|
10119
10226
|
}
|
|
10120
10227
|
},
|
|
10228
|
+
"node_modules/vue": {
|
|
10229
|
+
"version": "3.5.22",
|
|
10230
|
+
"resolved": "https://registry.npmjs.org/vue/-/vue-3.5.22.tgz",
|
|
10231
|
+
"integrity": "sha512-toaZjQ3a/G/mYaLSbV+QsQhIdMo9x5rrqIpYRObsJ6T/J+RyCSFwN2LHNVH9v8uIcljDNa3QzPVdv3Y6b9hAJQ==",
|
|
10232
|
+
"dev": true,
|
|
10233
|
+
"dependencies": {
|
|
10234
|
+
"@vue/compiler-dom": "3.5.22",
|
|
10235
|
+
"@vue/compiler-sfc": "3.5.22",
|
|
10236
|
+
"@vue/runtime-dom": "3.5.22",
|
|
10237
|
+
"@vue/server-renderer": "3.5.22",
|
|
10238
|
+
"@vue/shared": "3.5.22"
|
|
10239
|
+
},
|
|
10240
|
+
"peerDependencies": {
|
|
10241
|
+
"typescript": "*"
|
|
10242
|
+
},
|
|
10243
|
+
"peerDependenciesMeta": {
|
|
10244
|
+
"typescript": {
|
|
10245
|
+
"optional": true
|
|
10246
|
+
}
|
|
10247
|
+
}
|
|
10248
|
+
},
|
|
10121
10249
|
"node_modules/watchpack": {
|
|
10122
10250
|
"version": "2.4.4",
|
|
10123
10251
|
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@variousjs/create",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "VariousJS boilerplate",
|
|
5
5
|
"bin": "bin/create.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "tsc --skipLibCheck --noemit && eslint . --ext .ts,.tsx,.js",
|
|
14
|
-
"start": "NODE_ENV=development webpack --progress --config ./webpack/component.js & webpack serve --config ./webpack/app.js --progress",
|
|
14
|
+
"start": "NODE_ENV=development webpack --progress --config ./webpack/component.js & NODE_ENV=development webpack serve --config ./webpack/app.js --progress",
|
|
15
15
|
"build": "webpack --progress --config ./webpack/base.js",
|
|
16
16
|
"prepublishOnly": "node bin/copy.js"
|
|
17
17
|
},
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@types/react-router-dom": "^5.3.3",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
43
43
|
"@typescript-eslint/parser": "^7.2.0",
|
|
44
|
-
"@variousjs/registry": "^0.1.
|
|
45
|
-
"@variousjs/various": "^
|
|
44
|
+
"@variousjs/registry": "^0.1.8",
|
|
45
|
+
"@variousjs/various": "^5.1.1",
|
|
46
46
|
"babel-loader": "^8.2.2",
|
|
47
47
|
"core-js": "^3.25.1",
|
|
48
48
|
"css-loader": "^6.3.0",
|
package/package.json.copy
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"lint": "tsc --skipLibCheck --noemit && eslint . --ext .ts,.tsx,.js",
|
|
10
|
-
"start": "NODE_ENV=development webpack --progress --config ./webpack/component.js & webpack serve --config ./webpack/app.js --progress",
|
|
10
|
+
"start": "NODE_ENV=development webpack --progress --config ./webpack/component.js & NODE_ENV=development webpack serve --config ./webpack/app.js --progress",
|
|
11
11
|
"build": "webpack --progress --config ./webpack/base.js"
|
|
12
12
|
},
|
|
13
13
|
"author": "LoeiFy <LoeiFy@gmail.com>",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@types/react-router-dom": "^5.3.3",
|
|
25
25
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
26
26
|
"@typescript-eslint/parser": "^7.2.0",
|
|
27
|
-
"@variousjs/registry": "^0.1.
|
|
28
|
-
"@variousjs/various": "^
|
|
27
|
+
"@variousjs/registry": "^0.1.8",
|
|
28
|
+
"@variousjs/various": "^5.1.1",
|
|
29
29
|
"babel-loader": "^8.2.2",
|
|
30
30
|
"core-js": "^3.25.1",
|
|
31
31
|
"css-loader": "^6.3.0",
|
package/public/dist/app.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["react","@variousjs/various","react-router-dom"],function(e,n,t){return function(){"use strict";var r={56:function(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},72:function(e){var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}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],l=a[u]||0,p="".concat(u," ").concat(l);a[u]=l+1;var d=t(p),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var m=o(f,r);r.byIndex=i,n.splice(i,0,{identifier:p,updater:m,references:1})}c.push(p)}return c}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.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=t(a[c]);n[i].references--}for(var s=r(e,o),u=0;u<a.length;u++){var l=t(a[u]);0===n[l].references&&(n[l].updater(),n.splice(l,1))}a=s}}},113:function(e){e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},220:function(e){e.exports=n},314:function(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t}).join("")},n.i=function(e,t,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 l=[].concat(e[u]);r&&c[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),t&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=t):l[2]=t),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),n.push(l))}},n}},540:function(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},593:function(e,n,t){var r=t(601),o=t.n(r),a=t(314),c=t.n(a)()(o());c.push([e.id,".container_DNuWK {\n background: #fff;\n padding: 30px;\n max-width: 800px;\n}\n.top_plVtj {\n display: flex;\n justify-content: space-between;\n margin-bottom: 30px;\n}\n.com_B_w1z {\n width: 300px;\n display: inline-block;\n vertical-align: top;\n margin-right: 30px;\n border: 3px solid #ddd;\n border-radius: 4px;\n padding: 20px;\n}\n.com_B_w1z p,\n.com_B_w1z li {\n font-size: 14px;\n color: #666;\n margin: 20px 0 12px;\n}\n.com_B_w1z ul {\n margin: 20px 0 12px 16px;\n}\n.com_B_w1z li {\n margin: 5px 0;\n}\n.btn {\n display: inline-block;\n border-radius: 4px;\n padding: 3px 8px;\n font-size: 14px;\n background: #eee;\n margin-right: 10px;\n cursor: pointer;\n}\n",""]),c.locals={container:"container_DNuWK",top:"top_plVtj",com:"com_B_w1z"},n.A=c},601:function(e){e.exports=function(e){return e[1]}},659:function(e){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[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(t)}},806:function(e){e.exports=t},825:function(e){e.exports=function(e){var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},959:function(n){n.exports=e}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,{a:n}),n},a.d=function(e,n){for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var c={};a.r(c),a.d(c,{default:function(){return
|
|
1
|
+
define(["react","@variousjs/various","react-router-dom"],function(e,n,t){return function(){"use strict";var r={56:function(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},72:function(e){var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}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],l=a[u]||0,p="".concat(u," ").concat(l);a[u]=l+1;var d=t(p),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var m=o(f,r);r.byIndex=i,n.splice(i,0,{identifier:p,updater:m,references:1})}c.push(p)}return c}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.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=t(a[c]);n[i].references--}for(var s=r(e,o),u=0;u<a.length;u++){var l=t(a[u]);0===n[l].references&&(n[l].updater(),n.splice(l,1))}a=s}}},113:function(e){e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},220:function(e){e.exports=n},314:function(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t}).join("")},n.i=function(e,t,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 l=[].concat(e[u]);r&&c[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),t&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=t):l[2]=t),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),n.push(l))}},n}},540:function(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},593:function(e,n,t){var r=t(601),o=t.n(r),a=t(314),c=t.n(a)()(o());c.push([e.id,".container_DNuWK {\n background: #fff;\n padding: 30px;\n max-width: 800px;\n}\n.top_plVtj {\n display: flex;\n justify-content: space-between;\n margin-bottom: 30px;\n}\n.com_B_w1z {\n width: 300px;\n display: inline-block;\n vertical-align: top;\n margin-right: 30px;\n border: 3px solid #ddd;\n border-radius: 4px;\n padding: 20px;\n}\n.com_B_w1z p,\n.com_B_w1z li {\n font-size: 14px;\n color: #666;\n margin: 20px 0 12px;\n}\n.com_B_w1z ul {\n margin: 20px 0 12px 16px;\n}\n.com_B_w1z li {\n margin: 5px 0;\n}\n.btn {\n display: inline-block;\n border-radius: 4px;\n padding: 3px 8px;\n font-size: 14px;\n background: #eee;\n margin-right: 10px;\n cursor: pointer;\n}\n",""]),c.locals={container:"container_DNuWK",top:"top_plVtj",com:"com_B_w1z"},n.A=c},601:function(e){e.exports=function(e){return e[1]}},659:function(e){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[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(t)}},806:function(e){e.exports=t},825:function(e){e.exports=function(e){var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},959:function(n){n.exports=e}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={id:e,exports:{}};return r[e](t,t.exports,a),t.exports}a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,{a:n}),n},a.d=function(e,n){for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var c={};a.r(c),a.d(c,{default:function(){return A}});var i={async setName({emit:e,getStore:n},t){await new Promise(e=>setTimeout(e,1e3));const r=n("user");r.name=t,e({user:r})},async getName({getStore:e}){const{user:n}=e();return n.name},async setLocale({emit:e},n){e({locale:n})}},s=a(959),u=a.n(s),l=a(220),p=a(806),d=a(72),f=a.n(d),m=a(825),v=a.n(m),g=a(659),h=a.n(g),y=a(56),x=a.n(y),b=a(540),E=a.n(b),_=a(113),w=a.n(_),S=a(593),C={};C.styleTagTransform=w(),C.setAttributes=x(),C.insert=h().bind(null,"head"),C.domAPI=v(),C.insertStyleElement=E(),f()(S.A,C);var T=S.A&&S.A.locals?S.A.locals:void 0;const N=(0,l.createComponent)({name:"top",module:"H"}),j=(0,l.createComponent)({name:"top",module:"S"},["user"]);class k extends s.Component{config=(0,l.getConfig)();components=this.config.pages.reduce((e,n)=>(n.components.forEach(n=>{e[n]=(0,s.memo)((0,l.createComponent)({name:n}))}),e),{});render(){const e=this.config;return u().createElement("div",{className:T.container},u().createElement(p.HashRouter,null,u().createElement("div",{className:T.top},u().createElement(N,null),u().createElement(j,null)),u().createElement(p.Routes,null,e.pages.map(({path:e,components:n})=>{const t=n.map(e=>{const n=this.components[e];return u().createElement("div",{className:T.com,key:e},u().createElement(n,null))});return u().createElement(p.Route,{key:e,path:e,element:t})}))))}}var A={store:{user:{name:"various"},locale:"zh"},Root:k,Fallback:function(){return u().createElement("p",null,"loading...")},ErrorFallback:({$reload:e,$error:n})=>u().createElement(u().Fragment,null,u().createElement("h3",null,`[${n.type}]: ${n.message||"组件错误"}`),u().createElement("button",{onClick:e},"刷新")),actions:i};return c}()});
|
|
2
2
|
//# sourceMappingURL=app.js.map
|
package/public/dist/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","mappings":"kIAWAA,EAAOC,QARP,SAAwCC,GACtC,IAAIC,EAAmD,KAEnDA,GACFD,EAAaE,aAAa,QAASD,EAEvC,C,iBCPA,IAAIE,EAAc,GAElB,SAASC,EAAqBC,GAG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,OAAMb,iBACzB,MAAMc,EAAKd,EAAWnF,IAAKwE,IACzB,MAAM0B,EAAInG,KAAKoF,WAAWX,GAC1B,OAAQ,yBAAKmB,UAAWC,EAAMO,IAAKhD,IAAKqB,GACtC,kBAAC0B,EAAD,SAIJ,OACE,kBAAC,EAAAE,MAAD,CACEjD,IAAK6C,EACLA,KAAMA,EACNvF,QAASwF,QASxB,ECrCH,MARiC,CAC/BI,MCRF,CACE9B,KAAM,CACJC,KAAM,WAERG,OAAQ,MDKRI,UD8CF,EC7CEuB,OERa,WACb,OACE,2BAAG,aAEN,EFKC3E,MGPuC,EAAG4E,UAASC,YACnD,oCACE,4BAAM,IAAGA,EAAOC,UAAUD,EAAOE,SAAW,UAE1CH,GAAW,4BAAQI,QAASJ,GAAS,OHIzCK,QAAOA,G","sources":["webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@variousjs/create/external amd \"@variousjs/various\"","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/api.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@variousjs/create/./src/components/app/container.less","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@variousjs/create/external amd \"react-router-dom\"","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@variousjs/create/external amd \"react\"","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/runtime/nonce","webpack://@variousjs/create/./src/components/app/actions.ts","webpack://@variousjs/create/./src/components/app/container.less?0247","webpack://@variousjs/create/./src/components/app/container.tsx","webpack://@variousjs/create/./src/components/app/index.ts","webpack://@variousjs/create/./src/components/app/store.ts","webpack://@variousjs/create/./src/components/app/loader.tsx","webpack://@variousjs/create/./src/components/app/error.tsx"],"sourcesContent":["\"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\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\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__220__;","\"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\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;","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.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_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".container_DNuWK {\\n background: #fff;\\n padding: 30px;\\n max-width: 800px;\\n}\\n.top_plVtj {\\n display: flex;\\n justify-content: space-between;\\n margin-bottom: 30px;\\n}\\n.com_B_w1z {\\n width: 300px;\\n display: inline-block;\\n vertical-align: top;\\n margin-right: 30px;\\n border: 3px solid #ddd;\\n border-radius: 4px;\\n padding: 20px;\\n}\\n.com_B_w1z p,\\n.com_B_w1z li {\\n font-size: 14px;\\n color: #666;\\n margin: 20px 0 12px;\\n}\\n.com_B_w1z ul {\\n margin: 20px 0 12px 16px;\\n}\\n.com_B_w1z li {\\n margin: 5px 0;\\n}\\n.btn {\\n display: inline-block;\\n border-radius: 4px;\\n padding: 3px 8px;\\n font-size: 14px;\\n background: #eee;\\n margin-right: 10px;\\n cursor: pointer;\\n}\\n\", \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": \"container_DNuWK\",\n\t\"top\": \"top_plVtj\",\n\t\"com\": \"com_B_w1z\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\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;","module.exports = __WEBPACK_EXTERNAL_MODULE__806__;","\"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;","module.exports = __WEBPACK_EXTERNAL_MODULE__959__;","// 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};","__webpack_require__.nc = undefined;","import { Dispatch } from '@variousjs/various'\nimport { Store } from '../../types'\n\nconst actions: Record<string, Dispatch<Store>> = {\n async setName({ emit, getStore }, value) {\n await new Promise((r) => setTimeout(r, 1000))\n const user = getStore('user')\n user.name = value\n emit({ user })\n },\n async getName({ getStore }) {\n const { user } = getStore()\n return user.name\n },\n async setLocale({ emit }, value) {\n emit({ locale: value })\n }\n}\n\nexport default actions\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]!./container.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]!./container.less\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { Component, memo } from 'react'\nimport { createComponent, getConfig } from '@variousjs/various'\nimport { HashRouter as Router, Route, Routes } from 'react-router-dom'\nimport { Config, Store } from '../../types'\nimport csses from './container.less'\n\nconst Header = createComponent({ name: 'top', module: 'H' })\nconst Name = createComponent<Store>({ name: 'top', module: 'S' }, ['user'])\n\nclass Container extends Component {\n config = getConfig() as Config\n\n components = this.config.pages.reduce((prev, current) => {\n current.components.forEach((item) => {\n prev[item] = memo(createComponent({ name: item }))\n })\n return prev\n }, {} as Record<string, ReturnType<typeof createComponent>>)\n\n render() {\n const $config = this.config\n\n return (\n <div className={csses.container}>\n <Router>\n <div className={csses.top}>\n <Header />\n <Name />\n </div>\n <Routes>\n {\n $config.pages.map(({ path, components }) => {\n const CS = components.map((name) => {\n const C = this.components[name]\n return (<div className={csses.com} key={name}>\n <C />\n </div>)\n })\n\n return (\n <Route\n key={path}\n path={path}\n element={CS}\n />\n )\n })\n }\n </Routes>\n </Router>\n </div>\n )\n }\n}\n\nexport default Container\n","import { App } from '@variousjs/various'\nimport actions from './actions'\nimport store from './store'\nimport Container from './container'\nimport Loader from './loader'\nimport Error from './error'\n\nconst entry: App<typeof store> = {\n store,\n Container,\n Loader,\n Error,\n actions,\n}\n\nexport default entry\n","export default {\n user: {\n name: 'various',\n },\n locale: 'zh',\n}\n","import React from 'react'\n\nexport default function Loader() {\n return (\n <p>loading...</p>\n )\n}\n","import React from 'react'\nimport { ErrorNode } from '@variousjs/various'\nimport { Store } from '../../types'\n\nconst errorComponent: ErrorNode<Store> = ({ $reload, $error }) => (\n <>\n <h3>{`[${$error.type}]: ${$error.message || '组件错误'}`}</h3>\n {\n $reload && <button onClick={$reload}>刷新</button>\n }\n </>\n)\n\nexport default errorComponent\n"],"names":["module","exports","styleElement","nonce","setAttribute","stylesInDOM","getIndexByIdentifier","identifier","result","i","length","modulesToDom","list","options","idCountMap","identifiers","item","id","base","count","concat","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","push","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","styleSheet","cssText","firstChild","removeChild","appendChild","document","createTextNode","__WEBPACK_EXTERNAL_MODULE__220__","cssWithMappingToString","toString","this","map","content","needLayer","join","modules","dedupe","undefined","alreadyImportedModules","_i2","element","createElement","setAttributes","attributes","insert","___CSS_LOADER_EXPORT___","locals","memo","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","__WEBPACK_EXTERNAL_MODULE__806__","insertStyleElement","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeStyleElement","__WEBPACK_EXTERNAL_MODULE__959__","__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","nc","setName","emit","getStore","Promise","setTimeout","user","name","getName","setLocale","locale","Header","createComponent","Name","Container","Component","config","getConfig","components","pages","reduce","prev","current","forEach","render","$config","className","csses","container","top","Routes","path","CS","C","com","Route","store","Loader","$reload","$error","type","message","onClick","actions"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"app.js","mappings":"kIAWAA,EAAOC,QARP,SAAwCC,GACtC,IAAIC,EAAmD,KAEnDA,GACFD,EAAaE,aAAa,QAASD,EAEvC,C,iBCPA,IAAIE,EAAc,GAElB,SAASC,EAAqBC,GAG5B,IAFA,IAAIC,GAAU,EAELC,EAAI,EAAGA,EAAIJ,EAAYK,OAAQD,IACtC,GAAIJ,EAAYI,GAAGF,aAAeA,EAAY,CAC5CC,E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AAMO,IAAKhD,IAAKqB,GACtC,kBAAC0B,EAAD,SAIJ,OACE,kBAAC,EAAAE,MAAD,CACEjD,IAAK6C,EACLA,KAAMA,EACNvF,QAASwF,QASxB,ECrCH,MARiC,CAC/BI,MCRF,CACE9B,KAAM,CACJC,KAAM,WAERG,OAAQ,MDKR2B,KD8CF,EC7CEC,SERa,WACb,OACE,2BAAG,aAEN,EFKCC,cGP+C,EAAGC,UAASC,YAC3D,oCACE,4BAAM,IAAGA,EAAOC,UAAUD,EAAOE,SAAW,UAC5C,4BAAQC,QAASJ,GAAS,OHK5BK,QAAOA,G","sources":["webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@variousjs/create/external amd \"@variousjs/various\"","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/api.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@variousjs/create/./src/components/app/container.less","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@variousjs/create/external amd \"react-router-dom\"","webpack://@variousjs/create/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@variousjs/create/external amd \"react\"","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/runtime/nonce","webpack://@variousjs/create/./src/components/app/actions.ts","webpack://@variousjs/create/./src/components/app/container.less?0247","webpack://@variousjs/create/./src/components/app/container.tsx","webpack://@variousjs/create/./src/components/app/index.ts","webpack://@variousjs/create/./src/components/app/store.ts","webpack://@variousjs/create/./src/components/app/loader.tsx","webpack://@variousjs/create/./src/components/app/error.tsx"],"sourcesContent":["\"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\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\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__220__;","\"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\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;","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/noSourceMaps.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_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".container_DNuWK {\\n background: #fff;\\n padding: 30px;\\n max-width: 800px;\\n}\\n.top_plVtj {\\n display: flex;\\n justify-content: space-between;\\n margin-bottom: 30px;\\n}\\n.com_B_w1z {\\n width: 300px;\\n display: inline-block;\\n vertical-align: top;\\n margin-right: 30px;\\n border: 3px solid #ddd;\\n border-radius: 4px;\\n padding: 20px;\\n}\\n.com_B_w1z p,\\n.com_B_w1z li {\\n font-size: 14px;\\n color: #666;\\n margin: 20px 0 12px;\\n}\\n.com_B_w1z ul {\\n margin: 20px 0 12px 16px;\\n}\\n.com_B_w1z li {\\n margin: 5px 0;\\n}\\n.btn {\\n display: inline-block;\\n border-radius: 4px;\\n padding: 3px 8px;\\n font-size: 14px;\\n background: #eee;\\n margin-right: 10px;\\n cursor: pointer;\\n}\\n\", \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"container\": \"container_DNuWK\",\n\t\"top\": \"top_plVtj\",\n\t\"com\": \"com_B_w1z\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\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;","module.exports = __WEBPACK_EXTERNAL_MODULE__806__;","\"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;","module.exports = __WEBPACK_EXTERNAL_MODULE__959__;","// 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};","__webpack_require__.nc = undefined;","import { Dispatch } from '@variousjs/various'\nimport { Store } from '../../types'\n\nconst actions: Record<string, Dispatch<Store>> = {\n async setName({ emit, getStore }, value) {\n await new Promise((r) => setTimeout(r, 1000))\n const user = getStore('user')\n user.name = value\n emit({ user })\n },\n async getName({ getStore }) {\n const { user } = getStore()\n return user.name\n },\n async setLocale({ emit }, value) {\n emit({ locale: value })\n }\n}\n\nexport default actions\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]!./container.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]!./container.less\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { Component, memo } from 'react'\nimport { createComponent, getConfig } from '@variousjs/various'\nimport { HashRouter as Router, Route, Routes } from 'react-router-dom'\nimport { Config, Store } from '../../types'\nimport csses from './container.less'\n\nconst Header = createComponent({ name: 'top', module: 'H' })\nconst Name = createComponent<Store>({ name: 'top', module: 'S' }, ['user'])\n\nclass Container extends Component {\n config = getConfig() as Config\n\n components = this.config.pages.reduce((prev, current) => {\n current.components.forEach((item) => {\n prev[item] = memo(createComponent({ name: item }))\n })\n return prev\n }, {} as Record<string, ReturnType<typeof createComponent>>)\n\n render() {\n const $config = this.config\n\n return (\n <div className={csses.container}>\n <Router>\n <div className={csses.top}>\n <Header />\n <Name />\n </div>\n <Routes>\n {\n $config.pages.map(({ path, components }) => {\n const CS = components.map((name) => {\n const C = this.components[name]\n return (<div className={csses.com} key={name}>\n <C />\n </div>)\n })\n\n return (\n <Route\n key={path}\n path={path}\n element={CS}\n />\n )\n })\n }\n </Routes>\n </Router>\n </div>\n )\n }\n}\n\nexport default Container\n","import { App } from '@variousjs/various'\nimport actions from './actions'\nimport store from './store'\nimport Container from './container'\nimport Loader from './loader'\nimport Error from './error'\n\nconst entry: App<typeof store> = {\n store,\n Root: Container,\n Fallback: Loader,\n ErrorFallback: Error,\n actions,\n}\n\nexport default entry\n","export default {\n user: {\n name: 'various',\n },\n locale: 'zh',\n}\n","import React from 'react'\n\nexport default function Loader() {\n return (\n <p>loading...</p>\n )\n}\n","import React from 'react'\nimport { ErrorFallbackNode } from '@variousjs/various'\nimport { Store } from '../../types'\n\nconst errorComponent: ErrorFallbackNode<Store> = ({ $reload, $error }) => (\n <>\n <h3>{`[${$error.type}]: ${$error.message || '组件错误'}`}</h3>\n <button onClick={$reload}>刷新</button>\n </>\n)\n\nexport default errorComponent\n"],"names":["module","exports","styleElement","nonce","setAttribute","stylesInDOM","getIndexByIdentifier","identifier","result","i","length","modulesToDom","list","options","idCountMap","identifiers","item","id","base","count","concat","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","push","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","styleSheet","cssText","firstChild","removeChild","appendChild","document","createTextNode","__WEBPACK_EXTERNAL_MODULE__220__","cssWithMappingToString","toString","this","map","content","needLayer","join","modules","dedupe","undefined","alreadyImportedModules","_i2","element","createElement","setAttributes","attributes","insert","___CSS_LOADER_EXPORT___","locals","memo","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","__WEBPACK_EXTERNAL_MODULE__806__","insertStyleElement","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeStyleElement","__WEBPACK_EXTERNAL_MODULE__959__","__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","nc","setName","emit","getStore","Promise","setTimeout","user","name","getName","setLocale","locale","Header","createComponent","Name","Container","Component","config","getConfig","components","pages","reduce","prev","current","forEach","render","$config","className","csses","container","top","Routes","path","CS","C","com","Route","store","Root","Fallback","ErrorFallback","$reload","$error","type","message","onClick","actions"],"sourceRoot":""}
|
package/public/dist/next.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["react","@variousjs/various"],function(e,t){return function(){"use strict";var n={220:function(e){e.exports=t},959:function(t){t.exports=e}},r={};function
|
|
1
|
+
define(["react","@variousjs/various"],function(e,t){return function(){"use strict";var n={220:function(e){e.exports=t},959:function(t){t.exports=e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};o.r(a),o.d(a,{default:function(){return y}});var l=o(959),u=o.n(l),c=o(220),i=JSON.parse('{"title":"标题,{name}"}'),s=JSON.parse('{"title":"Title, {name}"}');const{createStore:m,connect:v,emit:d,getStore:f}=new c.Nycticorax;m({value:0});class p extends l.Component{static setValue=async e=>{const t=f();d({value:e+t.value},!0)};static $i18n=()=>({lngStoreKey:"locale",resources:{zh:i,en:s}});render(){const{user:e}=this.props.$store,{value:t,$t:n,$dispatch:r}=this.props;return u().createElement(u().Fragment,null,u().createElement("h3",null,"Next"),u().createElement("div",null,u().createElement("ul",null,u().createElement("li",null,"Store: ",e.name),u().createElement("li",null,"Value: ",t),u().createElement("li",null,"Locale: ",n("title",{name:"various"}))),u().createElement("div",{className:"btn",onClick:()=>r({name:"card",action:"logName",value:void 0})},"Name")))}}var y=v("value")(p);return a}()});
|
|
2
2
|
//# sourceMappingURL=next.js.map
|
package/public/dist/next.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","mappings":"0GAAAA,EAAOC,QAAUC,C,kBCAjBF,EAAOC,QAAUE,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaN,QAGrB,IAAID,EAASI,EAAyBE,GAAY,CAGjDL,QAAS,CAAC,GAOX,OAHAQ,EAAoBH,GAAUN,EAAQA,EAAOC,QAASI,GAG/CL,EAAOC,OACf,CCrBAI,EAAoBK,EAAI,SAASV,GAChC,IAAIW,EAASX,GAAUA,EAAOY,WAC7B,WAAa,OAAOZ,EAAgB,OAAG,E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variousjs/create/external amd \"@variousjs/various\"","webpack://@variousjs/create/external amd \"react\"","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/index.tsx"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__220__;","module.exports = __WEBPACK_EXTERNAL_MODULE__959__;","// 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, Nycticorax, PublicAction, I18n } from '@variousjs/various'\nimport { Store } from '../../types'\nimport zh from './i18n/zh.json'\nimport en from './i18n/en.json'\n\ntype S = { value: number }\n\nconst {\n createStore,\n connect,\n emit,\n getStore,\n} = new Nycticorax<S>()\n\ncreateStore({ value: 0 })\n\nclass X extends Component<S & ComponentProps<Store>> {\n static setValue: PublicAction = async (value) => {\n const store = getStore()\n emit({ value: value + store.value }, true)\n }\n\n static $i18n: I18n = () => ({\n lngStoreKey: 'locale',\n resources: { zh, en },\n })\n\n render() {\n const { user } = this.props.$store\n const { value, $t, $dispatch } = this.props\n\n return (\n <>\n <h3>Next</h3>\n <div>\n <ul>\n <li>Store: {user.name}</li>\n <li>Value: {value}</li>\n <li>Locale: {$t('title', { name: 'various' })}</li>\n </ul>\n <div\n className=\"btn\"\n onClick={() => $dispatch({\n name: 'card',\n action: 'logName',\n value: undefined,\n })}\n >\n Name\n </div>\n </div>\n </>\n )\n }\n}\n\nexport default connect('value')(X)\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__220__","__WEBPACK_EXTERNAL_MODULE__959__","__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","createStore","connect","emit","getStore","Nycticorax","X","Component","async","store","lngStoreKey","resources","zh","en","render","user","this","props","$store","$t","$dispatch","name","className","onClick","action"],"sourceRoot":""}
|
package/public/dist/top.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["react","@variousjs/various","react-router-dom"],function(e,t
|
|
1
|
+
define(["react","@variousjs/various","react-router-dom"],function(e,n,t){return function(){"use strict";var r={220:function(e){e.exports=n},806:function(e){e.exports=t},959:function(n){n.exports=e}},o={};function u(e){var n=o[e];if(void 0!==n)return n.exports;var t=o[e]={exports:{}};return r[e](t,t.exports,u),t.exports}u.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(n,{a:n}),n},u.d=function(e,n){for(var t in n)u.o(n,t)&&!u.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},u.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};u.r(i),u.d(i,{H:function(){return f},S:function(){return d}});var a=u(959),c=u.n(a),l=u(220),s=u(806);const f=()=>{const e=(0,l.getConfig)(),n=(0,s.useNavigate)();return c().createElement("div",null,e.links.map(({path:e,name:t})=>c().createElement("div",{className:"btn",onClick:()=>{n(e)},key:e},t)))},d=e=>c().createElement("div",null,c().createElement("p",null,"Srore: ",e.$store.user.name),c().createElement("p",null,"Version: ",l.version));return i}()});
|
|
2
2
|
//# sourceMappingURL=top.js.map
|
package/public/dist/top.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top.js","mappings":"+HAAAA,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,IA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ASe,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,+GCDO,MAAMC,EAA+B,KAC1C,MAAMC,GAAUC,EAAAA,EAAAA,aACVC,GAAWC,EAAAA,EAAAA,eAMjB,OACE,6BACGH,EAAQI,MAAMC,IAAI,EAAGC,OAAMC,UAC1B,yBAAKC,UAAU,MAAMC,QAAS,KANlCP,EAMuDI,IAAOtB,IAAKsB,GAC5DC,MAOEG,EAAMC,GAEf,6BACE,2BAAG,UAAQA,EAAMC,OAAOC,KAAKN,MAC7B,2BAAG,YAAUO,EAAAA,U","sources":["webpack://@variousjs/create/external amd \"@variousjs/various\"","webpack://@variousjs/create/external amd \"react-router-dom\"","webpack://@variousjs/create/external amd \"react\"","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/index.tsx"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__220__;","module.exports = __WEBPACK_EXTERNAL_MODULE__806__;","module.exports = __WEBPACK_EXTERNAL_MODULE__959__;","// 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 } from 'react'\nimport { ComponentProps, getConfig, ComponentNode, version } from '@variousjs/various'\nimport { useNavigate } from 'react-router-dom'\nimport { Config, Store } from '../../types'\n\nexport const H: FC<ComponentProps<Store>> = () => {\n const $config = getConfig() as Config\n const navigate = useNavigate()\n\n const onRouterChange = (p: string) => {\n navigate(p)\n }\n\n return (\n <div>\n {$config.links.map(({ path, name }) => (\n <div className=\"btn\" onClick={() => onRouterChange(path)} key={path}>\n {name}\n </div>\n ))}\n </div>\n )\n}\n\nexport const S = ((props) => {\n return (\n <div>\n <p>Srore: {props.$store.user.name}</p>\n <p>Version: {version}</p>\n </div>\n )\n}) as ComponentNode<Store>\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__220__","__WEBPACK_EXTERNAL_MODULE__806__","__WEBPACK_EXTERNAL_MODULE__959__","__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","H","$config","getConfig","navigate","useNavigate","links","map","path","name","className","onClick","S","props","$store","user","version"],"sourceRoot":""}
|
package/public/index.html
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"react": "https://cdn.jsdelivr.net/npm/react@18.2.0/umd/react.production.min.js",
|
|
5
5
|
"react-dom": "https://cdn.jsdelivr.net/npm/react-dom@18.2.0/umd/react-dom.production.min.js",
|
|
6
|
-
"react-router-dom": "https://cdn.jsdelivr.net/npm/@variousjs/registry@0.1.
|
|
6
|
+
"react-router-dom": "https://cdn.jsdelivr.net/npm/@variousjs/registry@0.1.8/dist/react-router-dom/6.22.1/index.js",
|
|
7
|
+
"vue": "https://cdn.jsdelivr.net/npm/vue@3.5.22/dist/vue.global.prod.js",
|
|
7
8
|
"app": "./dist/app.js",
|
|
8
9
|
"card": "./dist/card.js",
|
|
9
10
|
"next": "./dist/next.js",
|
|
@@ -45,4 +46,4 @@
|
|
|
45
46
|
"path": "/error"
|
|
46
47
|
}
|
|
47
48
|
]
|
|
48
|
-
}</script></head><body><div id="root"></div><script src="https://cdn.jsdelivr.net/npm/@variousjs/various@
|
|
49
|
+
}</script></head><body><div id="root"></div><script src="https://cdn.jsdelivr.net/npm/@variousjs/various@5/dist/loader.js"></script></body></html>
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { ErrorFallbackNode } from '@variousjs/various'
|
|
3
3
|
import { Store } from '../../types'
|
|
4
4
|
|
|
5
|
-
const errorComponent:
|
|
5
|
+
const errorComponent: ErrorFallbackNode<Store> = ({ $reload, $error }) => (
|
|
6
6
|
<>
|
|
7
7
|
<h3>{`[${$error.type}]: ${$error.message || '组件错误'}`}</h3>
|
|
8
|
-
{
|
|
9
|
-
$reload && <button onClick={$reload}>刷新</button>
|
|
10
|
-
}
|
|
8
|
+
<button onClick={$reload}>刷新</button>
|
|
11
9
|
</>
|
|
12
10
|
)
|
|
13
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react'
|
|
2
|
-
import { ComponentProps, getConfig, ComponentNode } from '@variousjs/various'
|
|
2
|
+
import { ComponentProps, getConfig, ComponentNode, version } from '@variousjs/various'
|
|
3
3
|
import { useNavigate } from 'react-router-dom'
|
|
4
4
|
import { Config, Store } from '../../types'
|
|
5
5
|
|
|
@@ -24,6 +24,9 @@ export const H: FC<ComponentProps<Store>> = () => {
|
|
|
24
24
|
|
|
25
25
|
export const S = ((props) => {
|
|
26
26
|
return (
|
|
27
|
-
<div>
|
|
27
|
+
<div>
|
|
28
|
+
<p>Srore: {props.$store.user.name}</p>
|
|
29
|
+
<p>Version: {version}</p>
|
|
30
|
+
</div>
|
|
28
31
|
)
|
|
29
32
|
}) as ComponentNode<Store>
|
package/src/index.html
CHANGED
|
@@ -9,6 +9,6 @@ var VARIOUS_CONFIG = <%= htmlWebpackPlugin.options.config %>
|
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
|
12
|
-
<script src="https://cdn.jsdelivr.net/npm/@variousjs/various@
|
|
12
|
+
<script src="https://cdn.jsdelivr.net/npm/@variousjs/various@5/dist/loader.js"></script>
|
|
13
13
|
</body>
|
|
14
14
|
</html>
|
package/various.config.js
CHANGED