@variousjs/create 3.0.1 → 3.1.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.
@@ -6,7 +6,7 @@
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@variousjs/create",
9
- "version": "3.0.1",
9
+ "version": "3.1.0",
10
10
  "license": "MIT",
11
11
  "bin": {
12
12
  "create": "bin/create.js"
@@ -24,7 +24,7 @@
24
24
  "@typescript-eslint/eslint-plugin": "^7.2.0",
25
25
  "@typescript-eslint/parser": "^7.2.0",
26
26
  "@variousjs/registry": "^0.1.5",
27
- "@variousjs/various": "^4.0.0",
27
+ "@variousjs/various": "^4.1.0",
28
28
  "babel-loader": "^8.2.2",
29
29
  "core-js": "^3.25.1",
30
30
  "css-loader": "^6.3.0",
@@ -2573,6 +2573,12 @@
2573
2573
  "@jridgewell/sourcemap-codec": "1.4.14"
2574
2574
  }
2575
2575
  },
2576
+ "node_modules/@leichtgewicht/ip-codec": {
2577
+ "version": "2.0.5",
2578
+ "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz",
2579
+ "integrity": "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==",
2580
+ "dev": true
2581
+ },
2576
2582
  "node_modules/@nodelib/fs.scandir": {
2577
2583
  "version": "2.1.5",
2578
2584
  "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@@ -2717,9 +2723,9 @@
2717
2723
  "dev": true
2718
2724
  },
2719
2725
  "node_modules/@types/http-proxy": {
2720
- "version": "1.17.8",
2721
- "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.8.tgz",
2722
- "integrity": "sha512-5kPLG5BKpWYkw/LVOGWpiq3nEVqxiN32rTgI53Sk12/xHFQ2rG3ehI9IO+O3W2QoKeyB92dJkoka8SUm6BX1pA==",
2726
+ "version": "1.17.15",
2727
+ "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.15.tgz",
2728
+ "integrity": "sha512-25g5atgiVNTIv0LBDTg1H74Hvayx0ajtJPLLcYE3whFv75J0pWNtOBzaXJQgDTmrX1bx5U9YC2w/n65BN1HwRQ==",
2723
2729
  "dev": true,
2724
2730
  "dependencies": {
2725
2731
  "@types/node": "*"
@@ -2749,6 +2755,15 @@
2749
2755
  "integrity": "sha512-4/Z9DMPKFexZj/Gn3LylFgamNKHm4K3QDi0gz9B26Uk0c8izYf97B5fxfpspMNkWlFupblKM/nV8+NA9Ffvr+w==",
2750
2756
  "dev": true
2751
2757
  },
2758
+ "node_modules/@types/node-forge": {
2759
+ "version": "1.3.11",
2760
+ "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz",
2761
+ "integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==",
2762
+ "dev": true,
2763
+ "dependencies": {
2764
+ "@types/node": "*"
2765
+ }
2766
+ },
2752
2767
  "node_modules/@types/prop-types": {
2753
2768
  "version": "15.7.5",
2754
2769
  "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
@@ -2855,9 +2870,9 @@
2855
2870
  }
2856
2871
  },
2857
2872
  "node_modules/@types/ws": {
2858
- "version": "8.2.2",
2859
- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
2860
- "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==",
2873
+ "version": "8.5.12",
2874
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz",
2875
+ "integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==",
2861
2876
  "dev": true,
2862
2877
  "dependencies": {
2863
2878
  "@types/node": "*"
@@ -3166,9 +3181,9 @@
3166
3181
  "dev": true
3167
3182
  },
3168
3183
  "node_modules/@variousjs/various": {
3169
- "version": "4.0.0",
3170
- "resolved": "https://registry.npmjs.org/@variousjs/various/-/various-4.0.0.tgz",
3171
- "integrity": "sha512-x1NmgSpw6tPxmdAJ/I3v3KxK/vH1PlC15Gsy+vcP/Kx+EqJxc6RSFVnDXg8Wimn29cMEWMtkqbJh7VQszrnllw==",
3184
+ "version": "4.1.0",
3185
+ "resolved": "https://registry.npmjs.org/@variousjs/various/-/various-4.1.0.tgz",
3186
+ "integrity": "sha512-NgMvMkOa9oCi5v4OWVKjpM9QlG/H0QMluhjmGd0jt4aCyq3a5M0Yq14cBdE+HaibGMhlFPJsHhS7EZrycSbZ1A==",
3172
3187
  "dev": true,
3173
3188
  "dependencies": {
3174
3189
  "@variousjs/requirejs": "0.0.2",
@@ -3412,19 +3427,6 @@
3412
3427
  "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
3413
3428
  }
3414
3429
  },
3415
- "node_modules/aggregate-error": {
3416
- "version": "3.1.0",
3417
- "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
3418
- "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
3419
- "dev": true,
3420
- "dependencies": {
3421
- "clean-stack": "^2.0.0",
3422
- "indent-string": "^4.0.0"
3423
- },
3424
- "engines": {
3425
- "node": ">=8"
3426
- }
3427
- },
3428
3430
  "node_modules/ajv": {
3429
3431
  "version": "6.12.6",
3430
3432
  "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -3501,18 +3503,6 @@
3501
3503
  "ansi-html": "bin/ansi-html"
3502
3504
  }
3503
3505
  },
3504
- "node_modules/ansi-regex": {
3505
- "version": "6.0.1",
3506
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",
3507
- "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",
3508
- "dev": true,
3509
- "engines": {
3510
- "node": ">=12"
3511
- },
3512
- "funding": {
3513
- "url": "https://github.com/chalk/ansi-regex?sponsor=1"
3514
- }
3515
- },
3516
3506
  "node_modules/ansi-styles": {
3517
3507
  "version": "3.2.1",
3518
3508
  "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
@@ -3569,12 +3559,6 @@
3569
3559
  "url": "https://github.com/sponsors/ljharb"
3570
3560
  }
3571
3561
  },
3572
- "node_modules/array-flatten": {
3573
- "version": "2.1.2",
3574
- "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz",
3575
- "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==",
3576
- "dev": true
3577
- },
3578
3562
  "node_modules/array-includes": {
3579
3563
  "version": "3.1.7",
3580
3564
  "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz",
@@ -3749,15 +3733,6 @@
3749
3733
  "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==",
3750
3734
  "dev": true
3751
3735
  },
3752
- "node_modules/async": {
3753
- "version": "2.6.4",
3754
- "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
3755
- "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",
3756
- "dev": true,
3757
- "dependencies": {
3758
- "lodash": "^4.17.14"
3759
- }
3760
- },
3761
3736
  "node_modules/available-typed-arrays": {
3762
3737
  "version": "1.0.7",
3763
3738
  "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
@@ -4057,18 +4032,14 @@
4057
4032
  "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
4058
4033
  "dev": true
4059
4034
  },
4060
- "node_modules/bonjour": {
4061
- "version": "3.5.0",
4062
- "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz",
4063
- "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=",
4035
+ "node_modules/bonjour-service": {
4036
+ "version": "1.2.1",
4037
+ "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.2.1.tgz",
4038
+ "integrity": "sha512-oSzCS2zV14bh2kji6vNe7vrpJYCHGvcZnlffFQ1MEoX/WOeQ/teD8SYWKR942OI3INjq8OMNJlbPK5LLLUxFDw==",
4064
4039
  "dev": true,
4065
4040
  "dependencies": {
4066
- "array-flatten": "^2.1.0",
4067
- "deep-equal": "^1.0.1",
4068
- "dns-equal": "^1.0.0",
4069
- "dns-txt": "^2.0.2",
4070
- "multicast-dns": "^6.0.1",
4071
- "multicast-dns-service-types": "^1.1.0"
4041
+ "fast-deep-equal": "^3.1.3",
4042
+ "multicast-dns": "^7.2.5"
4072
4043
  }
4073
4044
  },
4074
4045
  "node_modules/boolbase": {
@@ -4088,12 +4059,12 @@
4088
4059
  }
4089
4060
  },
4090
4061
  "node_modules/braces": {
4091
- "version": "3.0.2",
4092
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
4093
- "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
4062
+ "version": "3.0.3",
4063
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
4064
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
4094
4065
  "dev": true,
4095
4066
  "dependencies": {
4096
- "fill-range": "^7.0.1"
4067
+ "fill-range": "^7.1.1"
4097
4068
  },
4098
4069
  "engines": {
4099
4070
  "node": ">=8"
@@ -4137,12 +4108,6 @@
4137
4108
  "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
4138
4109
  "dev": true
4139
4110
  },
4140
- "node_modules/buffer-indexof": {
4141
- "version": "1.1.1",
4142
- "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz",
4143
- "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==",
4144
- "dev": true
4145
- },
4146
4111
  "node_modules/bytes": {
4147
4112
  "version": "3.0.0",
4148
4113
  "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
@@ -4281,15 +4246,6 @@
4281
4246
  "node": ">=0.10.0"
4282
4247
  }
4283
4248
  },
4284
- "node_modules/clean-stack": {
4285
- "version": "2.2.0",
4286
- "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
4287
- "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
4288
- "dev": true,
4289
- "engines": {
4290
- "node": ">=6"
4291
- }
4292
- },
4293
4249
  "node_modules/clone-deep": {
4294
4250
  "version": "4.0.1",
4295
4251
  "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz",
@@ -4389,9 +4345,9 @@
4389
4345
  "dev": true
4390
4346
  },
4391
4347
  "node_modules/connect-history-api-fallback": {
4392
- "version": "1.6.0",
4393
- "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz",
4394
- "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==",
4348
+ "version": "2.0.0",
4349
+ "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz",
4350
+ "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==",
4395
4351
  "dev": true,
4396
4352
  "engines": {
4397
4353
  "node": ">=0.8"
@@ -4676,23 +4632,6 @@
4676
4632
  }
4677
4633
  }
4678
4634
  },
4679
- "node_modules/deep-equal": {
4680
- "version": "1.1.1",
4681
- "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz",
4682
- "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==",
4683
- "dev": true,
4684
- "dependencies": {
4685
- "is-arguments": "^1.0.4",
4686
- "is-date-object": "^1.0.1",
4687
- "is-regex": "^1.0.4",
4688
- "object-is": "^1.0.1",
4689
- "object-keys": "^1.1.1",
4690
- "regexp.prototype.flags": "^1.2.0"
4691
- },
4692
- "funding": {
4693
- "url": "https://github.com/sponsors/ljharb"
4694
- }
4695
- },
4696
4635
  "node_modules/deep-is": {
4697
4636
  "version": "0.1.4",
4698
4637
  "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -4754,28 +4693,6 @@
4754
4693
  "url": "https://github.com/sponsors/ljharb"
4755
4694
  }
4756
4695
  },
4757
- "node_modules/del": {
4758
- "version": "6.0.0",
4759
- "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz",
4760
- "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==",
4761
- "dev": true,
4762
- "dependencies": {
4763
- "globby": "^11.0.1",
4764
- "graceful-fs": "^4.2.4",
4765
- "is-glob": "^4.0.1",
4766
- "is-path-cwd": "^2.2.0",
4767
- "is-path-inside": "^3.0.2",
4768
- "p-map": "^4.0.0",
4769
- "rimraf": "^3.0.2",
4770
- "slash": "^3.0.0"
4771
- },
4772
- "engines": {
4773
- "node": ">=10"
4774
- },
4775
- "funding": {
4776
- "url": "https://github.com/sponsors/sindresorhus"
4777
- }
4778
- },
4779
4696
  "node_modules/depd": {
4780
4697
  "version": "1.1.2",
4781
4698
  "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
@@ -4822,29 +4739,16 @@
4822
4739
  "node": ">=8"
4823
4740
  }
4824
4741
  },
4825
- "node_modules/dns-equal": {
4826
- "version": "1.0.0",
4827
- "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
4828
- "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=",
4829
- "dev": true
4830
- },
4831
4742
  "node_modules/dns-packet": {
4832
- "version": "1.3.4",
4833
- "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz",
4834
- "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==",
4743
+ "version": "5.6.1",
4744
+ "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz",
4745
+ "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==",
4835
4746
  "dev": true,
4836
4747
  "dependencies": {
4837
- "ip": "^1.1.0",
4838
- "safe-buffer": "^5.0.1"
4839
- }
4840
- },
4841
- "node_modules/dns-txt": {
4842
- "version": "2.0.2",
4843
- "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz",
4844
- "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=",
4845
- "dev": true,
4846
- "dependencies": {
4847
- "buffer-indexof": "^1.0.0"
4748
+ "@leichtgewicht/ip-codec": "^2.0.1"
4749
+ },
4750
+ "engines": {
4751
+ "node": ">=6"
4848
4752
  }
4849
4753
  },
4850
4754
  "node_modules/doctrine": {
@@ -6150,9 +6054,9 @@
6150
6054
  }
6151
6055
  },
6152
6056
  "node_modules/fill-range": {
6153
- "version": "7.0.1",
6154
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
6155
- "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
6057
+ "version": "7.1.1",
6058
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
6059
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
6156
6060
  "dev": true,
6157
6061
  "dependencies": {
6158
6062
  "to-regex-range": "^5.0.1"
@@ -6766,12 +6670,12 @@
6766
6670
  }
6767
6671
  },
6768
6672
  "node_modules/http-proxy-middleware": {
6769
- "version": "2.0.1",
6770
- "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.1.tgz",
6771
- "integrity": "sha512-cfaXRVoZxSed/BmkA7SwBVNI9Kj7HFltaE5rqYOub5kWzWZ+gofV2koVN1j2rMW7pEfSSlCHGJ31xmuyFyfLOg==",
6673
+ "version": "2.0.6",
6674
+ "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz",
6675
+ "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==",
6772
6676
  "dev": true,
6773
6677
  "dependencies": {
6774
- "@types/http-proxy": "^1.17.5",
6678
+ "@types/http-proxy": "^1.17.8",
6775
6679
  "http-proxy": "^1.18.1",
6776
6680
  "is-glob": "^4.0.1",
6777
6681
  "is-plain-obj": "^3.0.0",
@@ -6779,6 +6683,14 @@
6779
6683
  },
6780
6684
  "engines": {
6781
6685
  "node": ">=12.0.0"
6686
+ },
6687
+ "peerDependencies": {
6688
+ "@types/express": "^4.17.13"
6689
+ },
6690
+ "peerDependenciesMeta": {
6691
+ "@types/express": {
6692
+ "optional": true
6693
+ }
6782
6694
  }
6783
6695
  },
6784
6696
  "node_modules/human-signals": {
@@ -6886,15 +6798,6 @@
6886
6798
  "node": ">=0.8.19"
6887
6799
  }
6888
6800
  },
6889
- "node_modules/indent-string": {
6890
- "version": "4.0.0",
6891
- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
6892
- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
6893
- "dev": true,
6894
- "engines": {
6895
- "node": ">=8"
6896
- }
6897
- },
6898
6801
  "node_modules/inflight": {
6899
6802
  "version": "1.0.6",
6900
6803
  "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -6934,12 +6837,6 @@
6934
6837
  "node": ">= 0.10"
6935
6838
  }
6936
6839
  },
6937
- "node_modules/ip": {
6938
- "version": "1.1.9",
6939
- "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz",
6940
- "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==",
6941
- "dev": true
6942
- },
6943
6840
  "node_modules/ipaddr.js": {
6944
6841
  "version": "2.0.1",
6945
6842
  "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz",
@@ -6949,22 +6846,6 @@
6949
6846
  "node": ">= 10"
6950
6847
  }
6951
6848
  },
6952
- "node_modules/is-arguments": {
6953
- "version": "1.1.1",
6954
- "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",
6955
- "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",
6956
- "dev": true,
6957
- "dependencies": {
6958
- "call-bind": "^1.0.2",
6959
- "has-tostringtag": "^1.0.0"
6960
- },
6961
- "engines": {
6962
- "node": ">= 0.4"
6963
- },
6964
- "funding": {
6965
- "url": "https://github.com/sponsors/ljharb"
6966
- }
6967
- },
6968
6849
  "node_modules/is-array-buffer": {
6969
6850
  "version": "3.0.4",
6970
6851
  "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz",
@@ -7201,15 +7082,6 @@
7201
7082
  "url": "https://github.com/sponsors/ljharb"
7202
7083
  }
7203
7084
  },
7204
- "node_modules/is-path-cwd": {
7205
- "version": "2.2.0",
7206
- "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz",
7207
- "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==",
7208
- "dev": true,
7209
- "engines": {
7210
- "node": ">=6"
7211
- }
7212
- },
7213
7085
  "node_modules/is-path-inside": {
7214
7086
  "version": "3.0.3",
7215
7087
  "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
@@ -7599,6 +7471,16 @@
7599
7471
  "node": ">=0.10"
7600
7472
  }
7601
7473
  },
7474
+ "node_modules/launch-editor": {
7475
+ "version": "2.8.1",
7476
+ "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.8.1.tgz",
7477
+ "integrity": "sha512-elBx2l/tp9z99X5H/qev8uyDywVh0VXAwEbjk8kJhnc5grOFkGh7aW6q55me9xnYbss261XtnUrysZ+XvGbhQA==",
7478
+ "dev": true,
7479
+ "dependencies": {
7480
+ "picocolors": "^1.0.0",
7481
+ "shell-quote": "^1.8.1"
7482
+ }
7483
+ },
7602
7484
  "node_modules/less": {
7603
7485
  "version": "4.1.1",
7604
7486
  "resolved": "https://registry.npmjs.org/less/-/less-4.1.1.tgz",
@@ -7941,18 +7823,6 @@
7941
7823
  "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
7942
7824
  "dev": true
7943
7825
  },
7944
- "node_modules/mkdirp": {
7945
- "version": "0.5.5",
7946
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
7947
- "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
7948
- "dev": true,
7949
- "dependencies": {
7950
- "minimist": "^1.2.5"
7951
- },
7952
- "bin": {
7953
- "mkdirp": "bin/cmd.js"
7954
- }
7955
- },
7956
7826
  "node_modules/ms": {
7957
7827
  "version": "2.1.2",
7958
7828
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@@ -7960,24 +7830,18 @@
7960
7830
  "dev": true
7961
7831
  },
7962
7832
  "node_modules/multicast-dns": {
7963
- "version": "6.2.3",
7964
- "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz",
7965
- "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==",
7833
+ "version": "7.2.5",
7834
+ "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz",
7835
+ "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==",
7966
7836
  "dev": true,
7967
7837
  "dependencies": {
7968
- "dns-packet": "^1.3.1",
7838
+ "dns-packet": "^5.2.2",
7969
7839
  "thunky": "^1.0.2"
7970
7840
  },
7971
7841
  "bin": {
7972
7842
  "multicast-dns": "cli.js"
7973
7843
  }
7974
7844
  },
7975
- "node_modules/multicast-dns-service-types": {
7976
- "version": "1.1.0",
7977
- "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz",
7978
- "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=",
7979
- "dev": true
7980
- },
7981
7845
  "node_modules/natural-compare": {
7982
7846
  "version": "1.4.0",
7983
7847
  "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
@@ -8112,22 +7976,6 @@
8112
7976
  "url": "https://github.com/sponsors/ljharb"
8113
7977
  }
8114
7978
  },
8115
- "node_modules/object-is": {
8116
- "version": "1.1.5",
8117
- "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz",
8118
- "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==",
8119
- "dev": true,
8120
- "dependencies": {
8121
- "call-bind": "^1.0.2",
8122
- "define-properties": "^1.1.3"
8123
- },
8124
- "engines": {
8125
- "node": ">= 0.4"
8126
- },
8127
- "funding": {
8128
- "url": "https://github.com/sponsors/ljharb"
8129
- }
8130
- },
8131
7979
  "node_modules/object-keys": {
8132
7980
  "version": "1.1.1",
8133
7981
  "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
@@ -8341,21 +8189,6 @@
8341
8189
  "node": ">=8"
8342
8190
  }
8343
8191
  },
8344
- "node_modules/p-map": {
8345
- "version": "4.0.0",
8346
- "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
8347
- "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
8348
- "dev": true,
8349
- "dependencies": {
8350
- "aggregate-error": "^3.0.0"
8351
- },
8352
- "engines": {
8353
- "node": ">=10"
8354
- },
8355
- "funding": {
8356
- "url": "https://github.com/sponsors/sindresorhus"
8357
- }
8358
- },
8359
8192
  "node_modules/p-retry": {
8360
8193
  "version": "4.6.1",
8361
8194
  "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.1.tgz",
@@ -8516,29 +8349,6 @@
8516
8349
  "node": ">=8"
8517
8350
  }
8518
8351
  },
8519
- "node_modules/portfinder": {
8520
- "version": "1.0.28",
8521
- "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz",
8522
- "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==",
8523
- "dev": true,
8524
- "dependencies": {
8525
- "async": "^2.6.2",
8526
- "debug": "^3.1.1",
8527
- "mkdirp": "^0.5.5"
8528
- },
8529
- "engines": {
8530
- "node": ">= 0.12.0"
8531
- }
8532
- },
8533
- "node_modules/portfinder/node_modules/debug": {
8534
- "version": "3.2.7",
8535
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
8536
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
8537
- "dev": true,
8538
- "dependencies": {
8539
- "ms": "^2.1.1"
8540
- }
8541
- },
8542
8352
  "node_modules/possible-typed-array-names": {
8543
8353
  "version": "1.0.0",
8544
8354
  "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",
@@ -9100,7 +8910,7 @@
9100
8910
  "node_modules/requires-port": {
9101
8911
  "version": "1.0.0",
9102
8912
  "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
9103
- "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=",
8913
+ "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
9104
8914
  "dev": true
9105
8915
  },
9106
8916
  "node_modules/resolve": {
@@ -9298,12 +9108,13 @@
9298
9108
  "dev": true
9299
9109
  },
9300
9110
  "node_modules/selfsigned": {
9301
- "version": "2.0.0",
9302
- "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.0.0.tgz",
9303
- "integrity": "sha512-cUdFiCbKoa1mZ6osuJs2uDHrs0k0oprsKveFiiaBKCNq3SYyb5gs2HxhQyDNLCmL51ZZThqi4YNDpCK6GOP1iQ==",
9111
+ "version": "2.4.1",
9112
+ "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz",
9113
+ "integrity": "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==",
9304
9114
  "dev": true,
9305
9115
  "dependencies": {
9306
- "node-forge": "^1.2.0"
9116
+ "@types/node-forge": "^1.3.0",
9117
+ "node-forge": "^1"
9307
9118
  },
9308
9119
  "engines": {
9309
9120
  "node": ">=10"
@@ -9458,6 +9269,15 @@
9458
9269
  "node": ">=8"
9459
9270
  }
9460
9271
  },
9272
+ "node_modules/shell-quote": {
9273
+ "version": "1.8.1",
9274
+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz",
9275
+ "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==",
9276
+ "dev": true,
9277
+ "funding": {
9278
+ "url": "https://github.com/sponsors/ljharb"
9279
+ }
9280
+ },
9461
9281
  "node_modules/side-channel": {
9462
9282
  "version": "1.0.4",
9463
9283
  "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
@@ -9639,21 +9459,6 @@
9639
9459
  "url": "https://github.com/sponsors/ljharb"
9640
9460
  }
9641
9461
  },
9642
- "node_modules/strip-ansi": {
9643
- "version": "7.0.1",
9644
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz",
9645
- "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==",
9646
- "dev": true,
9647
- "dependencies": {
9648
- "ansi-regex": "^6.0.1"
9649
- },
9650
- "engines": {
9651
- "node": ">=12"
9652
- },
9653
- "funding": {
9654
- "url": "https://github.com/chalk/strip-ansi?sponsor=1"
9655
- }
9656
- },
9657
9462
  "node_modules/strip-bom": {
9658
9463
  "version": "3.0.0",
9659
9464
  "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
@@ -10363,40 +10168,41 @@
10363
10168
  }
10364
10169
  },
10365
10170
  "node_modules/webpack-dev-server": {
10366
- "version": "4.7.3",
10367
- "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.7.3.tgz",
10368
- "integrity": "sha512-mlxq2AsIw2ag016nixkzUkdyOE8ST2GTy34uKSABp1c4nhjZvH90D5ZRR+UOLSsG4Z3TFahAi72a3ymRtfRm+Q==",
10171
+ "version": "4.15.2",
10172
+ "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.2.tgz",
10173
+ "integrity": "sha512-0XavAZbNJ5sDrCbkpWL8mia0o5WPOd2YGtxrEiZkBK9FjLppIUK2TgxK6qGD2P3hUXTJNNPVibrerKcx5WkR1g==",
10369
10174
  "dev": true,
10370
10175
  "dependencies": {
10371
10176
  "@types/bonjour": "^3.5.9",
10372
10177
  "@types/connect-history-api-fallback": "^1.3.5",
10178
+ "@types/express": "^4.17.13",
10373
10179
  "@types/serve-index": "^1.9.1",
10180
+ "@types/serve-static": "^1.13.10",
10374
10181
  "@types/sockjs": "^0.3.33",
10375
- "@types/ws": "^8.2.2",
10182
+ "@types/ws": "^8.5.5",
10376
10183
  "ansi-html-community": "^0.0.8",
10377
- "bonjour": "^3.5.0",
10378
- "chokidar": "^3.5.2",
10184
+ "bonjour-service": "^1.0.11",
10185
+ "chokidar": "^3.5.3",
10379
10186
  "colorette": "^2.0.10",
10380
10187
  "compression": "^1.7.4",
10381
- "connect-history-api-fallback": "^1.6.0",
10188
+ "connect-history-api-fallback": "^2.0.0",
10382
10189
  "default-gateway": "^6.0.3",
10383
- "del": "^6.0.0",
10384
- "express": "^4.17.1",
10190
+ "express": "^4.17.3",
10385
10191
  "graceful-fs": "^4.2.6",
10386
10192
  "html-entities": "^2.3.2",
10387
- "http-proxy-middleware": "^2.0.0",
10193
+ "http-proxy-middleware": "^2.0.3",
10388
10194
  "ipaddr.js": "^2.0.1",
10195
+ "launch-editor": "^2.6.0",
10389
10196
  "open": "^8.0.9",
10390
10197
  "p-retry": "^4.5.0",
10391
- "portfinder": "^1.0.28",
10198
+ "rimraf": "^3.0.2",
10392
10199
  "schema-utils": "^4.0.0",
10393
- "selfsigned": "^2.0.0",
10200
+ "selfsigned": "^2.1.1",
10394
10201
  "serve-index": "^1.9.1",
10395
- "sockjs": "^0.3.21",
10202
+ "sockjs": "^0.3.24",
10396
10203
  "spdy": "^4.0.2",
10397
- "strip-ansi": "^7.0.0",
10398
- "webpack-dev-middleware": "^5.3.0",
10399
- "ws": "^8.1.0"
10204
+ "webpack-dev-middleware": "^5.3.4",
10205
+ "ws": "^8.13.0"
10400
10206
  },
10401
10207
  "bin": {
10402
10208
  "webpack-dev-server": "bin/webpack-dev-server.js"
@@ -10404,10 +10210,17 @@
10404
10210
  "engines": {
10405
10211
  "node": ">= 12.13.0"
10406
10212
  },
10213
+ "funding": {
10214
+ "type": "opencollective",
10215
+ "url": "https://opencollective.com/webpack"
10216
+ },
10407
10217
  "peerDependencies": {
10408
10218
  "webpack": "^4.37.0 || ^5.0.0"
10409
10219
  },
10410
10220
  "peerDependenciesMeta": {
10221
+ "webpack": {
10222
+ "optional": true
10223
+ },
10411
10224
  "webpack-cli": {
10412
10225
  "optional": true
10413
10226
  }
@@ -10654,16 +10467,16 @@
10654
10467
  "dev": true
10655
10468
  },
10656
10469
  "node_modules/ws": {
10657
- "version": "8.4.2",
10658
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz",
10659
- "integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==",
10470
+ "version": "8.18.0",
10471
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
10472
+ "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
10660
10473
  "dev": true,
10661
10474
  "engines": {
10662
10475
  "node": ">=10.0.0"
10663
10476
  },
10664
10477
  "peerDependencies": {
10665
10478
  "bufferutil": "^4.0.1",
10666
- "utf-8-validate": "^5.0.2"
10479
+ "utf-8-validate": ">=5.0.2"
10667
10480
  },
10668
10481
  "peerDependenciesMeta": {
10669
10482
  "bufferutil": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variousjs/create",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "VariousJS boilerplate",
5
5
  "bin": "bin/create.js",
6
6
  "publishConfig": {
@@ -10,7 +10,7 @@
10
10
  "node": ">=18"
11
11
  },
12
12
  "scripts": {
13
- "lint": "tsc --noemit && eslint . --ext .ts,.tsx,.js",
13
+ "lint": "tsc --skipLibCheck --noemit && eslint . --ext .ts,.tsx,.js",
14
14
  "start": "NODE_ENV=development webpack --progress --config ./webpack/component.js & webpack serve --config ./webpack/app.js --progress",
15
15
  "build": "webpack --progress --config ./webpack/base.js",
16
16
  "prepublishOnly": "node bin/copy.js"
@@ -42,7 +42,7 @@
42
42
  "@typescript-eslint/eslint-plugin": "^7.2.0",
43
43
  "@typescript-eslint/parser": "^7.2.0",
44
44
  "@variousjs/registry": "^0.1.5",
45
- "@variousjs/various": "^4.0.0",
45
+ "@variousjs/various": "^4.1.0",
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
@@ -6,7 +6,7 @@
6
6
  "node": ">=18"
7
7
  },
8
8
  "scripts": {
9
- "lint": "tsc --noemit && eslint . --ext .ts,.tsx,.js",
9
+ "lint": "tsc --skipLibCheck --noemit && eslint . --ext .ts,.tsx,.js",
10
10
  "start": "NODE_ENV=development webpack --progress --config ./webpack/component.js & webpack serve --config ./webpack/app.js --progress",
11
11
  "build": "webpack --progress --config ./webpack/base.js"
12
12
  },
@@ -25,7 +25,7 @@
25
25
  "@typescript-eslint/eslint-plugin": "^7.2.0",
26
26
  "@typescript-eslint/parser": "^7.2.0",
27
27
  "@variousjs/registry": "^0.1.5",
28
- "@variousjs/various": "^4.0.0",
28
+ "@variousjs/various": "^4.1.0",
29
29
  "babel-loader": "^8.2.2",
30
30
  "core-js": "^3.25.1",
31
31
  "css-loader": "^6.3.0",
@@ -1,2 +1,2 @@
1
- define(["react","@variousjs/various","react-router-dom"],(function(e,n,t){return function(){"use strict";var r={691:function(e,n,t){var r=t(81),o=t.n(r),a=t(645),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.Z=c},645: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}},81:function(e){e.exports=function(e){return e[1]}},379: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}}},569: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)}},216:function(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},565:function(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},795: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)}}}},589: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))}}},597:function(e){e.exports=n},650:function(n){n.exports=e},814:function(e){e.exports=t}},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={};return function(){a.r(c),a.d(c,{default:function(){return S}});var e={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})}},n=a(650),t=a.n(n),r=a(597),o=a(814),i=a(379),s=a.n(i),u=a(795),l=a.n(u),p=a(569),d=a.n(p),f=a(565),m=a.n(f),v=a(216),g=a.n(v),h=a(589),y=a.n(h),x=a(691),b={};b.styleTagTransform=y(),b.setAttributes=m(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=g(),s()(x.Z,b);var E=x.Z&&x.Z.locals?x.Z.locals:void 0;const _=(0,r.createComponent)("top.H"),w=(0,r.createComponent)("top.S",["user"]);class C extends n.Component{config=(0,r.getConfig)();components=this.config.pages.reduce(((e,t)=>(t.components.forEach((t=>{e[t]=(0,n.memo)((0,r.createComponent)(t))})),e)),{});render(){const e=this.config;return t().createElement("div",{className:E.container},t().createElement(o.HashRouter,null,t().createElement("div",{className:E.top},t().createElement(_,null),t().createElement(w,null)),t().createElement(o.Routes,null,e.pages.map((({path:e,components:n})=>{const r=n.map((e=>{const n=this.components[e];return t().createElement("div",{className:E.com,key:e},t().createElement(n,null))}));return t().createElement(o.Route,{key:e,path:e,element:r})})))))}}var S={store:{user:{name:"various"},locale:"zh"},Container:C,Loader:function(){return t().createElement("p",null,"loading...")},Error:({$reload:e,$type:n,$message:r})=>t().createElement(t().Fragment,null,t().createElement("h3",null,`[${n}]: ${r||"组件错误"}`),e&&t().createElement("button",{onClick:e},"刷新")),actions:e}}(),c}()}));
1
+ define(["react","@variousjs/various","react-router-dom"],(function(e,n,t){return function(){"use strict";var r={691:function(e,n,t){var r=t(81),o=t.n(r),a=t(645),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.Z=c},645: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}},81:function(e){e.exports=function(e){return e[1]}},379: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}}},569: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)}},216:function(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},565:function(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},795: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)}}}},589: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))}}},597:function(e){e.exports=n},650:function(n){n.exports=e},814:function(e){e.exports=t}},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={};return function(){a.r(c),a.d(c,{default:function(){return S}});var e={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})}},n=a(650),t=a.n(n),r=a(597),o=a(814),i=a(379),s=a.n(i),u=a(795),l=a.n(u),p=a(569),d=a.n(p),f=a(565),m=a.n(f),v=a(216),g=a.n(v),h=a(589),y=a.n(h),x=a(691),b={};b.styleTagTransform=y(),b.setAttributes=m(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=g(),s()(x.Z,b);var E=x.Z&&x.Z.locals?x.Z.locals:void 0;const _=(0,r.createComponent)({name:"top",module:"H"}),w=(0,r.createComponent)({name:"top",module:"S"},["user"]);class C extends n.Component{config=(0,r.getConfig)();components=this.config.pages.reduce(((e,t)=>(t.components.forEach((t=>{e[t]=(0,n.memo)((0,r.createComponent)({name:t}))})),e)),{});render(){const e=this.config;return t().createElement("div",{className:E.container},t().createElement(o.HashRouter,null,t().createElement("div",{className:E.top},t().createElement(_,null),t().createElement(w,null)),t().createElement(o.Routes,null,e.pages.map((({path:e,components:n})=>{const r=n.map((e=>{const n=this.components[e];return t().createElement("div",{className:E.com,key:e},t().createElement(n,null))}));return t().createElement(o.Route,{key:e,path:e,element:r})})))))}}var S={store:{user:{name:"various"},locale:"zh"},Container:C,Loader:function(){return t().createElement("p",null,"loading...")},Error:({$reload:e,$error:n})=>t().createElement(t().Fragment,null,t().createElement("h3",null,`[${n.type}]: ${n.message||"组件错误"}`),e&&t().createElement("button",{onClick:e},"刷新")),actions:e}}(),c}()}));
2
2
  //# sourceMappingURL=app.js.map
@@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MAAMhI,KAAI,EAAG0I,OAAMX,iBACzB,MAAMY,EAAKZ,EAAW/H,KAAKsH,IACzB,MAAMsB,EAAI7I,KAAKgI,WAAWT,GAC1B,OAAQ,yBAAKiB,UAAWC,EAAAA,IAAWvC,IAAKqB,GACtC,kBAACsB,EAAD,MADF,IAKF,OACE,kBAAC,EAAAC,MAAD,CACE5C,IAAKyC,EACLA,KAAMA,EACN7E,QAAS8E,GAJb,MAaX,ECrCH,MARiC,CAC/BG,MCRF,CACEzB,KAAM,CACJC,KAAM,WAERC,OAAQ,MDKRI,UD8CF,EC7CEoB,OERa,WACb,OACE,2BAAG,aAEN,EFKCpF,MGPuC,EAAGqF,UAASC,QAAOC,cAC1D,oCACE,4BAAM,IAAGD,OAAWC,GAAY,UAE9BF,GAAW,4BAAQG,QAASH,GAAS,OHIzCI,QAAOA,E","sources":["webpack://@variousjs/create/./src/components/app/container.less","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/api.js","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/noSourceMaps.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 \"@variousjs/various\"","webpack://@variousjs/create/external amd \"react\"","webpack://@variousjs/create/external amd \"react-router-dom\"","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":["// 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\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 (i) {\n return i[1];\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__597__;","module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","module.exports = __WEBPACK_EXTERNAL_MODULE__814__;","// 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 { Actions } from '@variousjs/various'\nimport { Store } from '../../types'\n\nconst actions: Actions<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('top.H')\nconst Name = createComponent<Store>('top.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(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, $type, $message }) => (\n <>\n <h3>{`[${$type}]: ${$message || '组件错误'}`}</h3>\n {\n $reload && <button onClick={$reload}>刷新</button>\n }\n </>\n)\n\nexport default errorComponent\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","_i","_i2","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","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","__WEBPACK_EXTERNAL_MODULE__597__","__WEBPACK_EXTERNAL_MODULE__650__","__WEBPACK_EXTERNAL_MODULE__814__","__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","async","emit","getStore","Promise","setTimeout","user","name","locale","Header","createComponent","Name","Container","Component","config","getConfig","components","pages","reduce","prev","current","forEach","render","$config","className","csses","Routes","path","CS","C","Route","store","Loader","$reload","$type","$message","onClick","actions"],"sourceRoot":""}
1
+ {"version":3,"file":"app.js","mappings":"kKAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,8rBAA+rB,KAExuBH,EAAwBI,OAAS,CAChC,UAAa,kBACb,IAAO,YACP,IAAO,aAER,K,kBCNAF,EAAOG,QAAU,SAAUC,GACzB,IAAIC,EAAO,GA6FX,OA3FAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,OAA+B,IAAZF,EAAK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S8E,GAJb,MAaX,ECrCH,MARiC,CAC/BG,MCRF,CACEzB,KAAM,CACJC,KAAM,WAERC,OAAQ,MDKRI,UD8CF,EC7CEoB,OERa,WACb,OACE,2BAAG,aAEN,EFKCpF,MGPuC,EAAGqF,UAASC,YACnD,oCACE,4BAAM,IAAGA,EAAOC,UAAUD,EAAOE,SAAW,UAE1CH,GAAW,4BAAQI,QAASJ,GAAS,OHIzCK,QAAOA,E","sources":["webpack://@variousjs/create/./src/components/app/container.less","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/api.js","webpack://@variousjs/create/./node_modules/css-loader/dist/runtime/noSourceMaps.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 \"@variousjs/various\"","webpack://@variousjs/create/external amd \"react\"","webpack://@variousjs/create/external amd \"react-router-dom\"","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":["// 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\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 (i) {\n return i[1];\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__597__;","module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","module.exports = __WEBPACK_EXTERNAL_MODULE__814__;","// 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":["___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","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","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","__WEBPACK_EXTERNAL_MODULE__597__","__WEBPACK_EXTERNAL_MODULE__650__","__WEBPACK_EXTERNAL_MODULE__814__","__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","async","emit","getStore","Promise","setTimeout","user","name","locale","Header","createComponent","Name","Container","Component","config","getConfig","components","pages","reduce","prev","current","forEach","render","$config","className","csses","Routes","path","CS","C","Route","store","Loader","$reload","$error","type","message","onClick","actions"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- define(["react","react-router-dom"],(function(e,t){return function(){"use strict";var n={650:function(t){t.exports=e},814:function(e){e.exports=t}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,a),o.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 o={};return function(){a.r(o);var e=a(650),t=a.n(e),n=a(814);const r=e=>{const{id:r}=(0,n.useParams)();return t().createElement(t().Fragment,null,t().createElement("h3",null,"Card"),t().createElement("p",null,"Route params: ",r||"empty"),t().createElement("div",null,t().createElement("div",{className:"btn",onClick:()=>e.$dispatch("next","setValue",1)},"Value"),t().createElement("div",{className:"btn",onClick:()=>e.$dispatch("app","setLocale","zh"===e.$store.locale?"en":"zh")},"Locale"),t().createElement("div",{className:"btn",onClick:async()=>{const t=`${Math.random().toFixed(2)}`;await e.$dispatch("app","setName",t)}},"Store")))};r.logName=()=>alert("Card"),o.default=r}(),o}()}));
1
+ define(["react","react-router-dom"],(function(e,t){return function(){"use strict";var n={650:function(t){t.exports=e},814:function(e){e.exports=t}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,a),o.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 o={};return function(){a.r(o);var e=a(650),t=a.n(e),n=a(814);const r=e=>{const{id:r}=(0,n.useParams)();return t().createElement(t().Fragment,null,t().createElement("h3",null,"Card"),t().createElement("p",null,"Route params: ",r||"empty"),t().createElement("div",null,t().createElement("div",{className:"btn",onClick:()=>e.$dispatch({name:"next",action:"setValue",value:1})},"Value"),t().createElement("div",{className:"btn",onClick:()=>e.$dispatch({name:"app",action:"setLocale",value:"zh"===e.$store.locale?"en":"zh"})},"Locale"),t().createElement("div",{className:"btn",onClick:async()=>{const t=`${Math.random().toFixed(2)}`;await e.$dispatch({name:"app",action:"setName",value:t})}},"Store")))};r.logName=()=>alert("Card"),o.default=r}(),o}()}));
2
2
  //# sourceMappingURL=card.js.map
@@ -1 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O,YAAqC,OAAxBL,EAAMM,OAAOC,OAAkB,KAAO,OAC1F,UAGD,yBACEJ,UAAU,MACVC,QAASI,UACP,MAAM1B,EAAK,GAAE2B,KAAKC,SAASC,QAAQ,WAC7BX,EAAMK,UAAU,MAAO,UAAWvB,EAAxC,GAEH,UAvBP,EA+BFiB,EAAEa,QAAU,IAAMC,MAAM,QAExB,W","sources":["webpack://@variousjs/create/external amd \"react\"","webpack://@variousjs/create/external amd \"react-router-dom\"","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/index.tsx"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","module.exports = __WEBPACK_EXTERNAL_MODULE__814__;","// 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 from 'react'\nimport { ComponentNode } from '@variousjs/various'\nimport { useParams } from 'react-router-dom'\nimport { Store } from '../../types'\n\nconst H = ((props) => {\n const { id } = useParams<{ id: string }>()\n\n return (\n <>\n <h3>Card</h3>\n <p>Route params: {id || 'empty'}</p>\n <div>\n <div\n className=\"btn\"\n onClick={() => props.$dispatch('next', 'setValue', 1)}\n >\n Value\n </div>\n <div\n className=\"btn\"\n onClick={() => props.$dispatch('app', 'setLocale', props.$store.locale === 'zh' ? 'en' : 'zh')}\n >\n Locale\n </div>\n <div\n className=\"btn\"\n onClick={async () => {\n const a = `${Math.random().toFixed(2)}`\n await props.$dispatch('app', 'setName', a)\n }}\n >\n Store\n </div>\n </div>\n </>\n )\n}) as ComponentNode<Store>\n\nH.logName = () => alert('Card')\n\nexport default H\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__650__","__WEBPACK_EXTERNAL_MODULE__814__","__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","props","id","useParams","className","onClick","$dispatch","$store","locale","async","Math","random","toFixed","logName","alert"],"sourceRoot":""}
1
+ {"version":3,"file":"card.js","mappings":"yGAAAA,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,EAA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M,MACNC,OAAQ,UACRT,MAAOhB,GAHT,GAMH,UA/BP,EAuCFiB,EAAEe,QAAU,IAAMC,MAAM,QAExB,W","sources":["webpack://@variousjs/create/external amd \"react\"","webpack://@variousjs/create/external amd \"react-router-dom\"","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/index.tsx"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","module.exports = __WEBPACK_EXTERNAL_MODULE__814__;","// 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 from 'react'\nimport { ComponentNode } from '@variousjs/various'\nimport { useParams } from 'react-router-dom'\nimport { Store } from '../../types'\n\nconst H = ((props) => {\n const { id } = useParams<{ id: string }>()\n\n return (\n <>\n <h3>Card</h3>\n <p>Route params: {id || 'empty'}</p>\n <div>\n <div\n className=\"btn\"\n onClick={() => props.$dispatch({ name: 'next', action: 'setValue', value: 1 })}\n >\n Value\n </div>\n <div\n className=\"btn\"\n onClick={() => props.$dispatch({\n name: 'app',\n action: 'setLocale',\n value: props.$store.locale === 'zh' ? 'en' : 'zh',\n })}\n >\n Locale\n </div>\n <div\n className=\"btn\"\n onClick={async () => {\n const a = `${Math.random().toFixed(2)}`\n await props.$dispatch({\n name: 'app',\n action: 'setName',\n value: a,\n })\n }}\n >\n Store\n </div>\n </div>\n </>\n )\n}) as ComponentNode<Store>\n\nH.logName = () => alert('Card')\n\nexport default H\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__650__","__WEBPACK_EXTERNAL_MODULE__814__","__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","props","id","useParams","className","onClick","$dispatch","name","action","$store","locale","async","Math","random","toFixed","logName","alert"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- define(["react","@variousjs/various"],(function(e,t){return function(){"use strict";var n={597:function(e){e.exports=t},650: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={};return function(){o.r(a),o.d(a,{default:function(){return m}});var e=o(650),t=o.n(e),n=o(597),r=JSON.parse('{"title":"标题,{name}"}'),l=JSON.parse('{"title":"Title, {name}"}');const{createStore:u,connect:c,emit:i,getStore:s}=new n.Nycticorax;u({value:0});class f extends e.Component{static setValue=async e=>{const t=s();i({value:e+t.value},!0)};static $i18n=()=>({localeKey:"locale",resources:{zh:r,en:l}});render(){const{user:e}=this.props.$store,{value:n,$t:r,$dispatch:o}=this.props;return t().createElement(t().Fragment,null,t().createElement("h3",null,"Next"),t().createElement("div",null,t().createElement("ul",null,t().createElement("li",null,"Store: ",e.name),t().createElement("li",null,"Value: ",n),t().createElement("li",null,"Locale: ",r("title",{name:"various"}))),t().createElement("div",{className:"btn",onClick:()=>o("card","logName")},"Name")))}}var m=c("value")(f)}(),a}()}));
1
+ define(["react","@variousjs/various"],(function(e,t){return function(){"use strict";var n={597:function(e){e.exports=t},650: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={};return function(){o.r(a),o.d(a,{default:function(){return m}});var e=o(650),t=o.n(e),n=o(597),r=JSON.parse('{"title":"标题,{name}"}'),l=JSON.parse('{"title":"Title, {name}"}');const{createStore:u,connect:c,emit:i,getStore:s}=new n.Nycticorax;u({value:0});class f extends e.Component{static setValue=async e=>{const t=s();i({value:e+t.value},!0)};static $i18n=()=>({localeKey:"locale",resources:{zh:r,en:l}});render(){const{user:e}=this.props.$store,{value:n,$t:r,$dispatch:o}=this.props;return t().createElement(t().Fragment,null,t().createElement("h3",null,"Next"),t().createElement("div",null,t().createElement("ul",null,t().createElement("li",null,"Store: ",e.name),t().createElement("li",null,"Value: ",n),t().createElement("li",null,"Locale: ",r("title",{name:"various"}))),t().createElement("div",{className:"btn",onClick:()=>o({name:"card",action:"logName",value:void 0})},"Name")))}}var m=c("value")(f)}(),a}()}));
2
2
  //# sourceMappingURL=next.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","mappings":"2GAAAA,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,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAK,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CACR,ECNAN,EAAoBQ,EAAI,SAASZ,EAASc,GACzC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEhB,EAASe,IAC5EE,OAAOC,eAAelB,EAASe,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAX,EAAoBY,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGlB,EAAoBsB,EAAI,SAAS1B,GACX,oBAAX2B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAelB,EAAS2B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAelB,EAAS,aAAc,CAAE6B,OAAO,GACvD,E,uLCEA,MAAM,YACJC,EADI,QAEJC,EAFI,KAGJC,EAHI,SAIJC,GACE,IAAIC,EAAAA,WAERJ,EAAY,CAAED,MAAO,IAErB,MAAMM,UAAUC,EAAAA,UACC,gBAAYC,UACzB,MAAMC,EAAQL,IACdD,EAAK,CAAEH,MAAOA,EAAQS,EAAMT,QAAS,EAArC,EAGU,aAAS,KAAM,CACzBU,UAAW,SACXC,UAAW,CAAEC,GAAF,EAAMC,GAAEA,KAGrBC,SACE,MAAM,KAAEC,GAASC,KAAKC,MAAMC,QACtB,MAAElB,EAAF,GAASmB,EAAT,UAAaC,GAAcJ,KAAKC,MAEtC,OACE,oCACE,4BAAI,QACJ,6BACE,4BACE,4BAAI,UAAQF,EAAKM,MACjB,4BAAI,UAAQrB,GACZ,4BAAI,WAASmB,EAAG,QAAS,CAAEE,KAAM,cAEnC,yBACEC,UAAU,MACVC,QAAS,IAAMH,EAAU,OAAQ,YAClC,SAMR,EAGH,MAAelB,EAAQ,QAAvB,CAAgCI,E","sources":["webpack://@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__597__;","module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","// 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, Invoker, 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: Invoker = async (value) => {\n const store = getStore()\n emit({ value: value + store.value }, true)\n }\n\n static $i18n: I18n = () => ({\n localeKey: '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('card', 'logName')}\n >\n Name\n </div>\n </div>\n </>\n )\n }\n}\n\nexport default connect('value')(X)\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__597__","__WEBPACK_EXTERNAL_MODULE__650__","__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","localeKey","resources","zh","en","render","user","this","props","$store","$t","$dispatch","name","className","onClick"],"sourceRoot":""}
1
+ {"version":3,"file":"next.js","mappings":"2GAAAA,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,EACvC,WAAa,OAAOA,CAAQ,EAE7B,OADAK,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CACR,ECNAN,EAAoBQ,EAAI,SAASZ,EAASc,GACzC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEhB,EAASe,IAC5EE,OAAOC,eAAelB,EAASe,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAX,EAAoBY,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGlB,EAAoBsB,EAAI,SAAS1B,GACX,oBAAX2B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAelB,EAAS2B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAelB,EAAS,aAAc,CAAE6B,OAAO,GACvD,E,uLCEA,MAAM,YACJC,EADI,QAEJC,EAFI,KAGJC,EAHI,SAIJC,GACE,IAAIC,EAAAA,WAERJ,EAAY,CAAED,MAAO,IAErB,MAAMM,UAAUC,EAAAA,UACC,gBAAiBC,UAC9B,MAAMC,EAAQL,IACdD,EAAK,CAAEH,MAAOA,EAAQS,EAAMT,QAAS,EAArC,EAGU,aAAS,KAAM,CACzBU,UAAW,SACXC,UAAW,CAAEC,GAAF,EAAMC,GAAEA,KAGrBC,SACE,MAAM,KAAEC,GAASC,KAAKC,MAAMC,QACtB,MAAElB,EAAF,GAASmB,EAAT,UAAaC,GAAcJ,KAAKC,MAEtC,OACE,oCACE,4BAAI,QACJ,6BACE,4BACE,4BAAI,UAAQF,EAAKM,MACjB,4BAAI,UAAQrB,GACZ,4BAAI,WAASmB,EAAG,QAAS,CAAEE,KAAM,cAEnC,yBACEC,UAAU,MACVC,QAAS,IAAMH,EAAU,CACvBC,KAAM,OACNG,OAAQ,UACRxB,WAAOtB,KAEV,SAMR,EAGH,MAAewB,EAAQ,QAAvB,CAAgCI,E","sources":["webpack://@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__597__;","module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","// 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 localeKey: '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__597__","__WEBPACK_EXTERNAL_MODULE__650__","__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","localeKey","resources","zh","en","render","user","this","props","$store","$t","$dispatch","name","className","onClick","action"],"sourceRoot":""}
package/public/index.html CHANGED
@@ -45,4 +45,4 @@
45
45
  "path": "/error"
46
46
  }
47
47
  ]
48
- }</script></head><body><div id="root"></div><script src="https://cdn.jsdelivr.net/npm/@variousjs/various@4.0.0/dist/loader.js"></script></body></html>
48
+ }</script></head><body><div id="root"></div><script src="https://cdn.jsdelivr.net/npm/@variousjs/various@4.1.0/dist/loader.js"></script></body></html>
@@ -1,7 +1,7 @@
1
- import { Actions } from '@variousjs/various'
1
+ import { Dispatch } from '@variousjs/various'
2
2
  import { Store } from '../../types'
3
3
 
4
- const actions: Actions<Store> = {
4
+ const actions: Record<string, Dispatch<Store>> = {
5
5
  async setName({ emit, getStore }, value) {
6
6
  await new Promise((r) => setTimeout(r, 1000))
7
7
  const user = getStore('user')
@@ -4,15 +4,15 @@ import { HashRouter as Router, Route, Routes } from 'react-router-dom'
4
4
  import { Config, Store } from '../../types'
5
5
  import csses from './container.less'
6
6
 
7
- const Header = createComponent('top.H')
8
- const Name = createComponent<Store>('top.S', ['user'])
7
+ const Header = createComponent({ name: 'top', module: 'H' })
8
+ const Name = createComponent<Store>({ name: 'top', module: 'S' }, ['user'])
9
9
 
10
10
  class Container extends Component {
11
11
  config = getConfig() as Config
12
12
 
13
13
  components = this.config.pages.reduce((prev, current) => {
14
14
  current.components.forEach((item) => {
15
- prev[item] = memo(createComponent(item))
15
+ prev[item] = memo(createComponent({ name: item }))
16
16
  })
17
17
  return prev
18
18
  }, {} as Record<string, ReturnType<typeof createComponent>>)
@@ -2,9 +2,9 @@ import React from 'react'
2
2
  import { ErrorNode } from '@variousjs/various'
3
3
  import { Store } from '../../types'
4
4
 
5
- const errorComponent: ErrorNode<Store> = ({ $reload, $type, $message }) => (
5
+ const errorComponent: ErrorNode<Store> = ({ $reload, $error }) => (
6
6
  <>
7
- <h3>{`[${$type}]: ${$message || '组件错误'}`}</h3>
7
+ <h3>{`[${$error.type}]: ${$error.message || '组件错误'}`}</h3>
8
8
  {
9
9
  $reload && <button onClick={$reload}>刷新</button>
10
10
  }
@@ -13,13 +13,17 @@ const H = ((props) => {
13
13
  <div>
14
14
  <div
15
15
  className="btn"
16
- onClick={() => props.$dispatch('next', 'setValue', 1)}
16
+ onClick={() => props.$dispatch({ name: 'next', action: 'setValue', value: 1 })}
17
17
  >
18
18
  Value
19
19
  </div>
20
20
  <div
21
21
  className="btn"
22
- onClick={() => props.$dispatch('app', 'setLocale', props.$store.locale === 'zh' ? 'en' : 'zh')}
22
+ onClick={() => props.$dispatch({
23
+ name: 'app',
24
+ action: 'setLocale',
25
+ value: props.$store.locale === 'zh' ? 'en' : 'zh',
26
+ })}
23
27
  >
24
28
  Locale
25
29
  </div>
@@ -27,7 +31,11 @@ const H = ((props) => {
27
31
  className="btn"
28
32
  onClick={async () => {
29
33
  const a = `${Math.random().toFixed(2)}`
30
- await props.$dispatch('app', 'setName', a)
34
+ await props.$dispatch({
35
+ name: 'app',
36
+ action: 'setName',
37
+ value: a,
38
+ })
31
39
  }}
32
40
  >
33
41
  Store
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react'
2
- import { ComponentProps, Nycticorax, Invoker, I18n } from '@variousjs/various'
2
+ import { ComponentProps, Nycticorax, PublicAction, I18n } from '@variousjs/various'
3
3
  import { Store } from '../../types'
4
4
  import zh from './i18n/zh.json'
5
5
  import en from './i18n/en.json'
@@ -16,7 +16,7 @@ const {
16
16
  createStore({ value: 0 })
17
17
 
18
18
  class X extends Component<S & ComponentProps<Store>> {
19
- static setValue: Invoker = async (value) => {
19
+ static setValue: PublicAction = async (value) => {
20
20
  const store = getStore()
21
21
  emit({ value: value + store.value }, true)
22
22
  }
@@ -41,7 +41,11 @@ class X extends Component<S & ComponentProps<Store>> {
41
41
  </ul>
42
42
  <div
43
43
  className="btn"
44
- onClick={() => $dispatch('card', 'logName')}
44
+ onClick={() => $dispatch({
45
+ name: 'card',
46
+ action: 'logName',
47
+ value: undefined,
48
+ })}
45
49
  >
46
50
  Name
47
51
  </div>
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@4.0.0/dist/loader.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/@variousjs/various@4.1.0/dist/loader.js"></script>
13
13
  </body>
14
14
  </html>