mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 00:26:20 +08:00
Compare commits
1031 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
358b77fe96 | ||
![]() |
5e99463cd0 | ||
![]() |
5e4be0adbc | ||
![]() |
c2590cbfb5 | ||
![]() |
08d4e34b77 | ||
![]() |
7a8978dcff | ||
![]() |
af54b0fbc6 | ||
![]() |
4418eccfab | ||
![]() |
02d41197b6 | ||
![]() |
ba2415c3b4 | ||
![]() |
84a5fc1256 | ||
![]() |
8180b2d15f | ||
![]() |
699cf6d7af | ||
![]() |
fea323cff1 | ||
![]() |
dc39567a14 | ||
![]() |
ab74480083 | ||
![]() |
9579a45b3c | ||
![]() |
302afe5860 | ||
![]() |
7b21e9dc24 | ||
![]() |
f05b90f86b | ||
![]() |
1b30834eb3 | ||
![]() |
c5f97b9d9f | ||
![]() |
3a1ec7ac86 | ||
![]() |
4c63b1abb7 | ||
![]() |
5d8d9786e3 | ||
![]() |
2cca7e8bfb | ||
![]() |
74ded8aed7 | ||
![]() |
d620758c2f | ||
![]() |
f2ec2ca273 | ||
![]() |
b66a83c10f | ||
![]() |
7bbb86249b | ||
![]() |
b0a45d4739 | ||
![]() |
1095d44110 | ||
![]() |
e938e8e9a8 | ||
![]() |
3b0077dc73 | ||
![]() |
3de5b53bcd | ||
![]() |
d7f5dfeb9f | ||
![]() |
85bc1f2340 | ||
![]() |
edede25c8f | ||
![]() |
6da30edef5 | ||
![]() |
d9286b5345 | ||
![]() |
8d218ec8d5 | ||
![]() |
72dbe574d3 | ||
![]() |
4c91ac11e2 | ||
![]() |
ce480c5d66 | ||
![]() |
7f5e415da9 | ||
![]() |
714a351036 | ||
![]() |
a78c3a305b | ||
![]() |
bb8c2dea40 | ||
![]() |
dce3aba20d | ||
![]() |
256e0275fe | ||
![]() |
c70cf3cace | ||
![]() |
4f4bec0c22 | ||
![]() |
491941e4c5 | ||
![]() |
f1678a7cc0 | ||
![]() |
ed8cffb2a1 | ||
![]() |
8284d106e2 | ||
![]() |
de305ecd47 | ||
![]() |
a222404220 | ||
![]() |
5335ae7578 | ||
![]() |
f32d2715ef | ||
![]() |
fb73be0928 | ||
![]() |
c2a159155c | ||
![]() |
70ee1c8403 | ||
![]() |
7346988622 | ||
![]() |
d6fdfd9f93 | ||
![]() |
d88915bac3 | ||
![]() |
a1b9bbc2ce | ||
![]() |
64d6fece08 | ||
![]() |
be3d98fa3d | ||
![]() |
ce0f528ba8 | ||
![]() |
085929a9c0 | ||
![]() |
de4eaddffd | ||
![]() |
e1804bd866 | ||
![]() |
334a0ea8e5 | ||
![]() |
bce6cee53a | ||
![]() |
32daad6198 | ||
![]() |
a4a5a44009 | ||
![]() |
c5b39f2c16 | ||
![]() |
4c0f2038af | ||
![]() |
d25dfcc7c0 | ||
![]() |
8992ef472e | ||
![]() |
f7a1b02236 | ||
![]() |
0dc2f1496b | ||
![]() |
dab977ffbc | ||
![]() |
92cc603680 | ||
![]() |
d3ec7a58ad | ||
![]() |
83e529681a | ||
![]() |
4d6f24d053 | ||
![]() |
45b0be7f7e | ||
![]() |
c999abb236 | ||
![]() |
816fffe960 | ||
![]() |
0ad30503a7 | ||
![]() |
d02ab2d220 | ||
![]() |
6753e24b3d | ||
![]() |
b90d3572a9 | ||
![]() |
1657439569 | ||
![]() |
8dd8a5ed01 | ||
![]() |
f1717973c4 | ||
![]() |
0cc53558fb | ||
![]() |
7e77177ed8 | ||
![]() |
bb1fee5885 | ||
![]() |
53b2b23620 | ||
![]() |
4c67d8c388 | ||
![]() |
0ab2a541cb | ||
![]() |
4dc5385104 | ||
![]() |
26bd4aeba6 | ||
![]() |
61d6057fa4 | ||
![]() |
9090cee184 | ||
![]() |
31042de6bc | ||
![]() |
aabafe8610 | ||
![]() |
098621892d | ||
![]() |
582d7e7351 | ||
![]() |
ca487426a1 | ||
![]() |
2387dcdc6d | ||
![]() |
9435b480ab | ||
![]() |
8c2ba755c1 | ||
![]() |
c7639c4909 | ||
![]() |
6af828260e | ||
![]() |
5a9a8644d6 | ||
![]() |
0bb3b7f90d | ||
![]() |
87ee7cd27a | ||
![]() |
ce030d2d1d | ||
![]() |
43c8bf0d0b | ||
![]() |
bc099041ce | ||
![]() |
0629cc7b14 | ||
![]() |
4e16438494 | ||
![]() |
c5713c75ec | ||
![]() |
e7ac09cf39 | ||
![]() |
be4c98b980 | ||
![]() |
e013f04151 | ||
![]() |
3948ba1b01 | ||
![]() |
e74a9ed337 | ||
![]() |
750a50ebfd | ||
![]() |
6d1adce462 | ||
![]() |
d01c1b4d05 | ||
![]() |
6844f69c20 | ||
![]() |
057b82632b | ||
![]() |
908a2fbb3a | ||
![]() |
2d2a265418 | ||
![]() |
e05a009989 | ||
![]() |
7fad00cb77 | ||
![]() |
93d4655285 | ||
![]() |
448d21287c | ||
![]() |
31f489fa90 | ||
![]() |
640ac6217f | ||
![]() |
37c25a42f5 | ||
![]() |
cdb460897b | ||
![]() |
84df7a4bb2 | ||
![]() |
476b2b8acc | ||
![]() |
4041284345 | ||
![]() |
a12c5706e8 | ||
![]() |
6fa35521b7 | ||
![]() |
00c446efff | ||
![]() |
5539190c39 | ||
![]() |
384f929443 | ||
![]() |
9ba15705b5 | ||
![]() |
d16f6f8e44 | ||
![]() |
fc2e2c8789 | ||
![]() |
df0e0cbe69 | ||
![]() |
7dcb38cac6 | ||
![]() |
eda251a426 | ||
![]() |
17d16ae545 | ||
![]() |
9ae67bf9ca | ||
![]() |
8ba4fb2449 | ||
![]() |
1bafeb6638 | ||
![]() |
fd57b83db6 | ||
![]() |
513ccb9543 | ||
![]() |
e962fa039a | ||
![]() |
58b30aae9a | ||
![]() |
4f9cdc5634 | ||
![]() |
5292838fcd | ||
![]() |
fd9450304d | ||
![]() |
bc499744c0 | ||
![]() |
c8b169494f | ||
![]() |
c1d3a94371 | ||
![]() |
0eb1275c34 | ||
![]() |
e08a155c40 | ||
![]() |
c37a15fefb | ||
![]() |
7e4312ec1e | ||
![]() |
839271d70a | ||
![]() |
768fadbffb | ||
![]() |
9aa2cf3ebf | ||
![]() |
b1f78c6696 | ||
![]() |
dda27477af | ||
![]() |
1a8cdeb374 | ||
![]() |
5f0bf59a8b | ||
![]() |
1b7896c435 | ||
![]() |
d39e13270c | ||
![]() |
5cabd4a6eb | ||
![]() |
451371a812 | ||
![]() |
6faacd2d85 | ||
![]() |
61aefcaa65 | ||
![]() |
acfba7cccc | ||
![]() |
cb28986683 | ||
![]() |
a89ba204eb | ||
![]() |
a45208673a | ||
![]() |
39188780ea | ||
![]() |
99326342bc | ||
![]() |
dfe560a542 | ||
![]() |
692df33fd8 | ||
![]() |
9316d950b1 | ||
![]() |
5abb0f2b37 | ||
![]() |
e47c618b18 | ||
![]() |
2abc8275c6 | ||
![]() |
f1d42769ea | ||
![]() |
dac9301af4 | ||
![]() |
20c10df846 | ||
![]() |
b11df08aa4 | ||
![]() |
6e391af3fe | ||
![]() |
7925c1ea28 | ||
![]() |
442bd440ba | ||
![]() |
4a4321a77d | ||
![]() |
aee08b14fa | ||
![]() |
b9dee8595f | ||
![]() |
a753eb35cb | ||
![]() |
c001535b56 | ||
![]() |
9afb4318fd | ||
![]() |
baa42a57fd | ||
![]() |
6981b73ef6 | ||
![]() |
266c33819f | ||
![]() |
9c26ee1b9c | ||
![]() |
f305637366 | ||
![]() |
40071529d2 | ||
![]() |
6f5711b088 | ||
![]() |
bc55b92c9b | ||
![]() |
f1e8e241b1 | ||
![]() |
5833043d14 | ||
![]() |
35f2d074ae | ||
![]() |
c0e40fa01e | ||
![]() |
ddb678ddfa | ||
![]() |
91e13c4287 | ||
![]() |
de7279399d | ||
![]() |
a89e497e82 | ||
![]() |
0f50e0458e | ||
![]() |
4730b3af31 | ||
![]() |
740d160198 | ||
![]() |
aefde45ad5 | ||
![]() |
3cc72d6791 | ||
![]() |
fbcba766ae | ||
![]() |
1455eb48db | ||
![]() |
ba97f80d33 | ||
![]() |
0902de7504 | ||
![]() |
da8e0bdf91 | ||
![]() |
06236c9fe0 | ||
![]() |
2c536976e8 | ||
![]() |
c2e2ca9bed | ||
![]() |
02c469b17a | ||
![]() |
deff31bc5d | ||
![]() |
e09a797d05 | ||
![]() |
8a7d9bcd4d | ||
![]() |
934ccd34ea | ||
![]() |
85f1e58bcc | ||
![]() |
e073b4c944 | ||
![]() |
554f4615a1 | ||
![]() |
d21578ab33 | ||
![]() |
857af11ced | ||
![]() |
50468e9581 | ||
![]() |
19dc88b4e0 | ||
![]() |
cfbd52bbe7 | ||
![]() |
c0edd7b70e | ||
![]() |
fe5848cf21 | ||
![]() |
c3b5abc392 | ||
![]() |
a40332cbfe | ||
![]() |
42908a4535 | ||
![]() |
a0920d284d | ||
![]() |
419b7aea07 | ||
![]() |
e807539b80 | ||
![]() |
0634f2ca9e | ||
![]() |
d09e998ae7 | ||
![]() |
e097600003 | ||
![]() |
3ee7051950 | ||
![]() |
5ad93c6004 | ||
![]() |
ce7f382b9b | ||
![]() |
1832d0c07a | ||
![]() |
e05a40f680 | ||
![]() |
ee85839ba3 | ||
![]() |
d6a3eecbc2 | ||
![]() |
8932bf9a2d | ||
![]() |
9d4d78d2c9 | ||
![]() |
2d553f204a | ||
![]() |
3b86435766 | ||
![]() |
e3637e7af4 | ||
![]() |
b41e3939ac | ||
![]() |
23e0932883 | ||
![]() |
8f2008ac74 | ||
![]() |
2bf48e0f23 | ||
![]() |
c0441cf5c3 | ||
![]() |
b3f6b04981 | ||
![]() |
8d93e047d0 | ||
![]() |
fb43e54847 | ||
![]() |
1e0ede09a2 | ||
![]() |
823f7b3226 | ||
![]() |
28d73f95bd | ||
![]() |
418ca2405e | ||
![]() |
7c21eb9b3a | ||
![]() |
923ecdab3c | ||
![]() |
eb231120e1 | ||
![]() |
a343b49014 | ||
![]() |
28078d4263 | ||
![]() |
de266e538d | ||
![]() |
b85a11d0f0 | ||
![]() |
770574c9b0 | ||
![]() |
0c633ff67d | ||
![]() |
d31cb904db | ||
![]() |
a542317dc3 | ||
![]() |
e4305daf98 | ||
![]() |
10b59395b2 | ||
![]() |
1dca636521 | ||
![]() |
5db1250a8d | ||
![]() |
136cbb1e3b | ||
![]() |
78535bdd86 | ||
![]() |
aaa30fbf10 | ||
![]() |
9092c34cd5 | ||
![]() |
3d55b0d45b | ||
![]() |
573a443007 | ||
![]() |
79eb909c66 | ||
![]() |
927220933e | ||
![]() |
5a3a7633ac | ||
![]() |
414101613e | ||
![]() |
21bae3ad49 | ||
![]() |
b303f1bea3 | ||
![]() |
8f1bd4ae76 | ||
![]() |
5c24a1c4c4 | ||
![]() |
e91d757169 | ||
![]() |
4cda7c6fc1 | ||
![]() |
a23020b76d | ||
![]() |
af6ab98945 | ||
![]() |
ecc2135b5e | ||
![]() |
4e4ce944bc | ||
![]() |
b63f7d17de | ||
![]() |
67d514ad0e | ||
![]() |
929141be96 | ||
![]() |
e82bafa43e | ||
![]() |
5fc28f92d5 | ||
![]() |
5ac055be2f | ||
![]() |
266b566850 | ||
![]() |
a281631ae3 | ||
![]() |
f964533701 | ||
![]() |
dd158a17fe | ||
![]() |
c8d59a0bbc | ||
![]() |
2423aeab64 | ||
![]() |
1a43142252 | ||
![]() |
52e295f1d5 | ||
![]() |
de8ea59177 | ||
![]() |
1dc6faf3e6 | ||
![]() |
598ce5a1bf | ||
![]() |
8c607b38f1 | ||
![]() |
b84cc5eb06 | ||
![]() |
f015a874e2 | ||
![]() |
4f35b95b6b | ||
![]() |
46e28f0203 | ||
![]() |
aab6b4f393 | ||
![]() |
54ea44cdad | ||
![]() |
a462be0a5e | ||
![]() |
b639650397 | ||
![]() |
9217a12bcc | ||
![]() |
6b594aec53 | ||
![]() |
fa33c6b0d7 | ||
![]() |
a2b594c962 | ||
![]() |
0dafaa5972 | ||
![]() |
b0a0cbcd6a | ||
![]() |
f6e27aee16 | ||
![]() |
23b5538eae | ||
![]() |
ab62739fd1 | ||
![]() |
b70fade587 | ||
![]() |
05bad7b9dc | ||
![]() |
13d660bede | ||
![]() |
8523afd512 | ||
![]() |
8480454b73 | ||
![]() |
e024f6a6e7 | ||
![]() |
cb1759b257 | ||
![]() |
81560fd3c6 | ||
![]() |
170a4bceb1 | ||
![]() |
cfda62ef9c | ||
![]() |
16cd2438dd | ||
![]() |
2a667c9e7f | ||
![]() |
52257f061d | ||
![]() |
50cf2d0b8f | ||
![]() |
2aabbc788a | ||
![]() |
bc18ecb277 | ||
![]() |
413df9f5e1 | ||
![]() |
3fcfac1f37 | ||
![]() |
5fca9ce2c5 | ||
![]() |
dc4b05272f | ||
![]() |
b8411c9311 | ||
![]() |
4806aced85 | ||
![]() |
3b3f6c903a | ||
![]() |
b3c4002b69 | ||
![]() |
7e00488635 | ||
![]() |
090d844014 | ||
![]() |
013cb7f16b | ||
![]() |
c2b207dd51 | ||
![]() |
83921284a6 | ||
![]() |
59b309aa7e | ||
![]() |
49c890ebec | ||
![]() |
c8dd3b6c14 | ||
![]() |
9999650a9a | ||
![]() |
b5364fe546 | ||
![]() |
74b0dfd54f | ||
![]() |
642d48870c | ||
![]() |
3b63e41b68 | ||
![]() |
d6cdff97b6 | ||
![]() |
97fe8e2058 | ||
![]() |
5c491a4258 | ||
![]() |
5225345496 | ||
![]() |
a248e20013 | ||
![]() |
ed40b333f3 | ||
![]() |
b7813b9ba8 | ||
![]() |
dbcc40f5ea | ||
![]() |
acea184320 | ||
![]() |
0f44291c5c | ||
![]() |
83bce6c1d4 | ||
![]() |
85a68d5fc3 | ||
![]() |
a0165d1eee | ||
![]() |
8447331197 | ||
![]() |
787bc462e7 | ||
![]() |
89414f173e | ||
![]() |
34781d42e8 | ||
![]() |
456a661488 | ||
![]() |
5902886798 | ||
![]() |
7a1b6e74ab | ||
![]() |
b653412260 | ||
![]() |
a530ec867b | ||
![]() |
d6f65d476e | ||
![]() |
052eff91c4 | ||
![]() |
e1cbe23e96 | ||
![]() |
f3f56288af | ||
![]() |
473e56e4e0 | ||
![]() |
eac2fb4aaa | ||
![]() |
7d40773b5b | ||
![]() |
935d4fc12d | ||
![]() |
2849743a4d | ||
![]() |
437211107f | ||
![]() |
2f2526c564 | ||
![]() |
754d1986e9 | ||
![]() |
034e39ef06 | ||
![]() |
bfdbccfece | ||
![]() |
246c5f795b | ||
![]() |
902d38dc2f | ||
![]() |
1abf7fdf5f | ||
![]() |
96ce18c073 | ||
![]() |
f8102446d0 | ||
![]() |
07b17b9798 | ||
![]() |
452b2599f4 | ||
![]() |
7028e0031d | ||
![]() |
6e0c70f415 | ||
![]() |
01b667facf | ||
![]() |
a82a69d00d | ||
![]() |
8b00112d5a | ||
![]() |
853bde9275 | ||
![]() |
5af452754b | ||
![]() |
9c5f11a54b | ||
![]() |
6c08dae921 | ||
![]() |
02eabe1f9f | ||
![]() |
2875a97b70 | ||
![]() |
067753d490 | ||
![]() |
7b6d5e44a9 | ||
![]() |
e85649bde2 | ||
![]() |
cecdfbaf29 | ||
![]() |
84c7d516df | ||
![]() |
15ea0d2f53 | ||
![]() |
ba2c1a3bf5 | ||
![]() |
2346a90c08 | ||
![]() |
6544f84bc2 | ||
![]() |
2aa5e5da76 | ||
![]() |
44b21bfc6c | ||
![]() |
2820d5a627 | ||
![]() |
9640484895 | ||
![]() |
f87b0f2f5e | ||
![]() |
656ee4e5c9 | ||
![]() |
7593ef6a4f | ||
![]() |
b3307fe283 | ||
![]() |
73dc492b2a | ||
![]() |
0bb9c035f7 | ||
![]() |
9e9ea3f43d | ||
![]() |
996f2f3c22 | ||
![]() |
b90a9557a3 | ||
![]() |
7df9b51344 | ||
![]() |
c753d945e0 | ||
![]() |
83c1683bfd | ||
![]() |
044e2e4e86 | ||
![]() |
59a9087728 | ||
![]() |
3b6b4f7303 | ||
![]() |
5fa730c49a | ||
![]() |
6cadcf087d | ||
![]() |
95aca2ab8d | ||
![]() |
e00578c40a | ||
![]() |
6717fe654e | ||
![]() |
ee7c31db44 | ||
![]() |
a36825a6d4 | ||
![]() |
628e820684 | ||
![]() |
0f5ddbf1ec | ||
![]() |
1ddfc31c3c | ||
![]() |
d27633fb31 | ||
![]() |
30fa4cfa2a | ||
![]() |
6e7f6f82ed | ||
![]() |
466d4edcd0 | ||
![]() |
0b0a7ceef9 | ||
![]() |
99daecdb60 | ||
![]() |
c8017b1365 | ||
![]() |
d8362f084f | ||
![]() |
9f6822991c | ||
![]() |
56a966cfbf | ||
![]() |
2884e863ce | ||
![]() |
1235978ab2 | ||
![]() |
9dd9fcd334 | ||
![]() |
a426b9027e | ||
![]() |
455d109f71 | ||
![]() |
6e85795737 | ||
![]() |
d1f59b493d | ||
![]() |
edc3096565 | ||
![]() |
3a5d1a5757 | ||
![]() |
2c867b3d63 | ||
![]() |
fb43fad555 | ||
![]() |
8e01377481 | ||
![]() |
e7c96363a1 | ||
![]() |
93812f734e | ||
![]() |
e15b4f14db | ||
![]() |
a5ff59237f | ||
![]() |
65735926d4 | ||
![]() |
47a448b8ae | ||
![]() |
5138e447e7 | ||
![]() |
837a365885 | ||
![]() |
43658e2fb3 | ||
![]() |
8fa6015b1a | ||
![]() |
91cbe0a03b | ||
![]() |
72634ffe6e | ||
![]() |
c420174c1d | ||
![]() |
b7487675ce | ||
![]() |
1b577922e7 | ||
![]() |
3ba8a67647 | ||
![]() |
beb4ae92c1 | ||
![]() |
cc46935a82 | ||
![]() |
53e79a2d94 | ||
![]() |
8ff5c03d53 | ||
![]() |
c69996d073 | ||
![]() |
b07003e184 | ||
![]() |
45a8eb974a | ||
![]() |
2dd3d85448 | ||
![]() |
da12da9d8c | ||
![]() |
30c5fc63c8 | ||
![]() |
7971896383 | ||
![]() |
a8b18c2697 | ||
![]() |
5ae894a5c7 | ||
![]() |
bcfa338227 | ||
![]() |
b1f31762e3 | ||
![]() |
93f9a19aa1 | ||
![]() |
61d853e6a5 | ||
![]() |
1f55c4180f | ||
![]() |
4b6025cb9a | ||
![]() |
2f6d133b96 | ||
![]() |
9035fd191e | ||
![]() |
bb89c5059c | ||
![]() |
66feb779a8 | ||
![]() |
948219c576 | ||
![]() |
60577d6720 | ||
![]() |
953bfc6f1a | ||
![]() |
2052eb5a65 | ||
![]() |
019555be0c | ||
![]() |
33a335a3f5 | ||
![]() |
9d2231b1cd | ||
![]() |
6d5388aaf1 | ||
![]() |
b2d49cbbf8 | ||
![]() |
1bb5156923 | ||
![]() |
62f8468775 | ||
![]() |
8e5740e715 | ||
![]() |
f3cf162af1 | ||
![]() |
381943078f | ||
![]() |
26f251e1ed | ||
![]() |
1214b7c32c | ||
![]() |
c82040425d | ||
![]() |
5e17cc8802 | ||
![]() |
02e7756062 | ||
![]() |
72f953c8d3 | ||
![]() |
d76cfd7f80 | ||
![]() |
2fd0fd281e | ||
![]() |
be2d11d5d3 | ||
![]() |
88451565db | ||
![]() |
26d9476caf | ||
![]() |
ddd1893b11 | ||
![]() |
e8eefd1bca | ||
![]() |
8879ae8d77 | ||
![]() |
f2b8bb43a0 | ||
![]() |
d2c361803b | ||
![]() |
e2664f6002 | ||
![]() |
225bd4c39d | ||
![]() |
7e6a89ffeb | ||
![]() |
189bc6feb3 | ||
![]() |
a544dd3e58 | ||
![]() |
0065ab0b2d | ||
![]() |
e32789373e | ||
![]() |
c375e32305 | ||
![]() |
4c9e8564bd | ||
![]() |
bdf0be81b0 | ||
![]() |
e23bd2696d | ||
![]() |
98749ec6fe | ||
![]() |
98c206d9c9 | ||
![]() |
fe4eae3714 | ||
![]() |
14fb21d0b7 | ||
![]() |
dce3fb0f20 | ||
![]() |
a5a9b3fb34 | ||
![]() |
a07ab6d7aa | ||
![]() |
9b8f165a36 | ||
![]() |
e1c47233ed | ||
![]() |
956ed2e3f7 | ||
![]() |
8702965057 | ||
![]() |
cebc6a590e | ||
![]() |
525484e7a4 | ||
![]() |
350c85accf | ||
![]() |
202aa42b8d | ||
![]() |
8d185bb584 | ||
![]() |
27207a78ca | ||
![]() |
d1e0e8bcea | ||
![]() |
d3f08e37c5 | ||
![]() |
ee44d99c74 | ||
![]() |
9c4889f085 | ||
![]() |
59cf860564 | ||
![]() |
662b576ac2 | ||
![]() |
42812162c4 | ||
![]() |
9b7ede09b9 | ||
![]() |
8cf004a5f5 | ||
![]() |
32d64dbe81 | ||
![]() |
8b4b767f4c | ||
![]() |
341bd633d8 | ||
![]() |
571f28138f | ||
![]() |
4bb506fb1f | ||
![]() |
c734f6858d | ||
![]() |
596670dc88 | ||
![]() |
680ad0763c | ||
![]() |
7a7dab0c4b | ||
![]() |
59eb828d4d | ||
![]() |
52af1dd0d4 | ||
![]() |
897bed9729 | ||
![]() |
a764a95ae9 | ||
![]() |
535bdddf91 | ||
![]() |
18567e13a6 | ||
![]() |
03b17a8f8b | ||
![]() |
8832a074dc | ||
![]() |
61ce25be1b | ||
![]() |
d9d0071401 | ||
![]() |
f8440175f3 | ||
![]() |
5baaa58581 | ||
![]() |
f707541dda | ||
![]() |
b06a7ab77b | ||
![]() |
1b3058f825 | ||
![]() |
d81db890df | ||
![]() |
c1178027f0 | ||
![]() |
db7254a5e0 | ||
![]() |
dc51e6a8d4 | ||
![]() |
4b46a84c2b | ||
![]() |
87583c8b54 | ||
![]() |
1e63379088 | ||
![]() |
237e65eac9 | ||
![]() |
6350224a1b | ||
![]() |
ae7821e296 | ||
![]() |
a1d956d369 | ||
![]() |
35e1347029 | ||
![]() |
d95815b503 | ||
![]() |
0a3683a186 | ||
![]() |
f5e31febbd | ||
![]() |
6f830703a2 | ||
![]() |
bfb5ebd7b8 | ||
![]() |
012020e51c | ||
![]() |
aeebfc4d3d | ||
![]() |
c16be2c499 | ||
![]() |
0f28e803d0 | ||
![]() |
cad021c34b | ||
![]() |
5ceeefd17d | ||
![]() |
a9bbed1973 | ||
![]() |
0595a72da9 | ||
![]() |
c7c0a7e4c8 | ||
![]() |
05329ce950 | ||
![]() |
7b76945bff | ||
![]() |
540423ecf7 | ||
![]() |
9cf070dd63 | ||
![]() |
41e6d94b3b | ||
![]() |
17e47e074e | ||
![]() |
dafcdd898c | ||
![]() |
5bce6528ba | ||
![]() |
1e61da644f | ||
![]() |
9228282ae2 | ||
![]() |
45a94e41c1 | ||
![]() |
542121129e | ||
![]() |
cf840e3e73 | ||
![]() |
82eb72bbce | ||
![]() |
5f1a6cdc59 | ||
![]() |
02d3dca57e | ||
![]() |
faf5c9fd7e | ||
![]() |
d5d5c4b4bf | ||
![]() |
993e19dcc3 | ||
![]() |
808291b503 | ||
![]() |
d8c38207c0 | ||
![]() |
f4778431de | ||
![]() |
acacb32bb5 | ||
![]() |
186b274faa | ||
![]() |
f1c0e0c52b | ||
![]() |
735028c430 | ||
![]() |
c8c7615569 | ||
![]() |
c3b907656a | ||
![]() |
b96ea0753b | ||
![]() |
6cbac4b7ec | ||
![]() |
81cf441373 | ||
![]() |
48fcd7684c | ||
![]() |
791b323dbd | ||
![]() |
49f39de7b4 | ||
![]() |
8819af083c | ||
![]() |
73654b7862 | ||
![]() |
5fab267a69 | ||
![]() |
5637588fce | ||
![]() |
5a20df45ad | ||
![]() |
d52b0de83e | ||
![]() |
72ac240f28 | ||
![]() |
b5046f07a2 | ||
![]() |
ddf116da14 | ||
![]() |
5005e6e56b | ||
![]() |
3871204d08 | ||
![]() |
b4a3f936cd | ||
![]() |
16c5d327f1 | ||
![]() |
76a5f87c0c | ||
![]() |
49e72a8e76 | ||
![]() |
6f845b53bd | ||
![]() |
d509e897be | ||
![]() |
424b171e0d | ||
![]() |
9de6ac1119 | ||
![]() |
95c16a5d26 | ||
![]() |
cdb10cc4ac | ||
![]() |
749ba5c1da | ||
![]() |
d38ff6670a | ||
![]() |
e5f37885ff | ||
![]() |
d7b84c7874 | ||
![]() |
c99cf5e53f | ||
![]() |
df0f00085c | ||
![]() |
99829c79ab | ||
![]() |
bdae33e34a | ||
![]() |
e9e51b2fdc | ||
![]() |
1bde404121 | ||
![]() |
c7de65ebba | ||
![]() |
829b366cb2 | ||
![]() |
3dbbde2662 | ||
![]() |
f750ff435f | ||
![]() |
f9cda2e8c0 | ||
![]() |
913c22c84f | ||
![]() |
327d71b8fb | ||
![]() |
941ad59759 | ||
![]() |
d0b6c496d6 | ||
![]() |
20d7a25eb8 | ||
![]() |
59d3e8c80f | ||
![]() |
c73694ab8b | ||
![]() |
81a0f478af | ||
![]() |
d97aa92741 | ||
![]() |
480cfb914e | ||
![]() |
0e414ba3c1 | ||
![]() |
61d4efd55a | ||
![]() |
d5f9919b60 | ||
![]() |
aed622bd09 | ||
![]() |
e78af6f228 | ||
![]() |
4ae39c53b4 | ||
![]() |
fa64fc8a62 | ||
![]() |
a2a75a097f | ||
![]() |
a2d8be3ab2 | ||
![]() |
aec230ca19 | ||
![]() |
a6ef771fcc | ||
![]() |
4d8e39857e | ||
![]() |
c4b22a225d | ||
![]() |
60b80c96e8 | ||
![]() |
9298b3c988 | ||
![]() |
8d22231a5f | ||
![]() |
8eba7fb527 | ||
![]() |
c1525252e8 | ||
![]() |
893f3c79e7 | ||
![]() |
e8d6f8851e | ||
![]() |
7dce50cb1f | ||
![]() |
d3d620f4fc | ||
![]() |
ea6834aeec | ||
![]() |
4c89ea7474 | ||
![]() |
0d0708409c | ||
![]() |
b6d5b0796d | ||
![]() |
f6fe1dd62d | ||
![]() |
154ebc3d96 | ||
![]() |
0acc4ab2dd | ||
![]() |
d196340d27 | ||
![]() |
4f20d45f9d | ||
![]() |
e9064631c7 | ||
![]() |
513823bfbd | ||
![]() |
d683b0f1e8 | ||
![]() |
21c771b59c | ||
![]() |
49b66e83ac | ||
![]() |
ab2c7efe69 | ||
![]() |
655b743236 | ||
![]() |
a03d3cc60c | ||
![]() |
bbce002be1 | ||
![]() |
29b2d344ae | ||
![]() |
305630e3fd | ||
![]() |
3f6920f7a9 | ||
![]() |
fa828fd972 | ||
![]() |
bd2039accb | ||
![]() |
3b2c40bec8 | ||
![]() |
1c1755cf5b | ||
![]() |
639520ad5d | ||
![]() |
c7c95dd2af | ||
![]() |
6dbbdbac76 | ||
![]() |
b7c7c46853 | ||
![]() |
33cd8fe653 | ||
![]() |
c6b766d8ea | ||
![]() |
a222ec8553 | ||
![]() |
8e410fc640 | ||
![]() |
de12babd31 | ||
![]() |
b387681c00 | ||
![]() |
2c5351f9f4 | ||
![]() |
40008bc235 | ||
![]() |
00fca0fe6c | ||
![]() |
34a80542de | ||
![]() |
c5f2577f51 | ||
![]() |
7c1ffa3d23 | ||
![]() |
7b9cd09ad8 | ||
![]() |
55e9d9fc29 | ||
![]() |
84d9300e52 | ||
![]() |
df8cd86051 | ||
![]() |
448a4c2809 | ||
![]() |
f62f378f42 | ||
![]() |
6d5f9aa699 | ||
![]() |
21f7a854fe | ||
![]() |
8e4f486fcf | ||
![]() |
5212ea79b4 | ||
![]() |
cda0f9c10a | ||
![]() |
efce482b32 | ||
![]() |
bcad95d32a | ||
![]() |
125a7d1483 | ||
![]() |
966571bdcb | ||
![]() |
aee613034f | ||
![]() |
d677729acb | ||
![]() |
d81481c521 | ||
![]() |
19d8e01e11 | ||
![]() |
50f94bfee4 | ||
![]() |
ee384b1fa7 | ||
![]() |
4fd2051bc0 | ||
![]() |
a96cb2509c | ||
![]() |
8b6e07b768 | ||
![]() |
50207ad702 | ||
![]() |
4805ca2626 | ||
![]() |
437692869a | ||
![]() |
495b1da385 | ||
![]() |
fe2bcfc6f7 | ||
![]() |
808012b544 | ||
![]() |
40e3cb043c | ||
![]() |
6c4f947386 | ||
![]() |
fb6c76db53 | ||
![]() |
46899aa3cd | ||
![]() |
41854121f3 | ||
![]() |
b69dcd79d7 | ||
![]() |
4da3d2c534 | ||
![]() |
d62d0ca08c | ||
![]() |
808328dc7e | ||
![]() |
5d554f184f | ||
![]() |
f732b56904 | ||
![]() |
9e2aa20daa | ||
![]() |
1a429dd4d1 | ||
![]() |
d73d43ed91 | ||
![]() |
8a3f47d6b8 | ||
![]() |
eca8907a11 | ||
![]() |
e1123a2ccb | ||
![]() |
bbddf30e96 | ||
![]() |
5ddccf6ba2 | ||
![]() |
644dbe315b | ||
![]() |
aebad61b3d | ||
![]() |
b1cb863502 | ||
![]() |
132c7fb944 | ||
![]() |
9f5085c9f9 | ||
![]() |
9f4d1719ca | ||
![]() |
035f55af97 | ||
![]() |
9e5e630987 | ||
![]() |
70dcd60beb | ||
![]() |
3ed2339a6d | ||
![]() |
6edca1c19c | ||
![]() |
1ae636296d | ||
![]() |
b218f10e25 | ||
![]() |
834fa7eb9c | ||
![]() |
566280422d | ||
![]() |
3a16f2b80a | ||
![]() |
83c9cd7742 | ||
![]() |
ba2bebb406 | ||
![]() |
7e2ca79ece | ||
![]() |
8eaf575626 | ||
![]() |
d018363ddc | ||
![]() |
2066f66971 | ||
![]() |
93006c7dc7 | ||
![]() |
4f0d45f1df | ||
![]() |
905e5b714b | ||
![]() |
6ef62ba6ea | ||
![]() |
afa0eae829 | ||
![]() |
5465f058ce | ||
![]() |
d5b768929e | ||
![]() |
785732f438 | ||
![]() |
94a826d028 | ||
![]() |
6d626d5f00 | ||
![]() |
cd4b5e14c2 | ||
![]() |
765064a190 | ||
![]() |
bbf178f64b | ||
![]() |
8e3f84c3b7 | ||
![]() |
e3569b81b1 | ||
![]() |
7519a00ada | ||
![]() |
d8ff30d9ec | ||
![]() |
3ef5087be6 | ||
![]() |
2d3d04f547 | ||
![]() |
bb0d2e1c71 | ||
![]() |
5eee0ceb6e | ||
![]() |
9b2d41ea44 | ||
![]() |
3bb6d11ed1 | ||
![]() |
d7d6039876 | ||
![]() |
bc82d1a397 | ||
![]() |
f455fb97f9 | ||
![]() |
0e440f0793 | ||
![]() |
0112d6b313 | ||
![]() |
e4c3d0918a | ||
![]() |
c26dd03416 | ||
![]() |
336be680d3 | ||
![]() |
adff788de5 | ||
![]() |
d34467d3f4 | ||
![]() |
ec3d51d69b | ||
![]() |
4c16ffa383 | ||
![]() |
56d8af147e | ||
![]() |
a7c8c67c83 | ||
![]() |
ae3f8329c2 | ||
![]() |
2b76b88481 | ||
![]() |
9d19546272 | ||
![]() |
78191d6658 | ||
![]() |
a579b8456a | ||
![]() |
43e4c21950 | ||
![]() |
9cd293c283 | ||
![]() |
2f8b2183ec | ||
![]() |
1ff13bf459 | ||
![]() |
5724bc5b3b | ||
![]() |
bf365e26e5 | ||
![]() |
e80280fb81 | ||
![]() |
f4c9703ab9 | ||
![]() |
9e208411a2 | ||
![]() |
5a3861b9cf | ||
![]() |
7c41c8673c | ||
![]() |
5fae2b02ea | ||
![]() |
3ff70bb56f | ||
![]() |
6afee415a3 | ||
![]() |
8b2e0f665f | ||
![]() |
6a8820597f | ||
![]() |
b7ea68e6f8 | ||
![]() |
ccae5cd924 | ||
![]() |
cb35341b8f | ||
![]() |
16ecf71850 | ||
![]() |
ca717602a6 | ||
![]() |
6b7f688eaf | ||
![]() |
7f6f8eefe9 | ||
![]() |
e2ddf43699 | ||
![]() |
090c76ba20 | ||
![]() |
f0ae146ca0 | ||
![]() |
c639e493a5 | ||
![]() |
7e2668f667 | ||
![]() |
e689ee5fa6 | ||
![]() |
f4af231172 | ||
![]() |
38f5072695 | ||
![]() |
b92b8a3c6a | ||
![]() |
4f0c6fbcc7 | ||
![]() |
8c2491fcb6 | ||
![]() |
85b92a9add | ||
![]() |
bd83eccdc5 | ||
![]() |
94b2222c08 | ||
![]() |
502cc2701b | ||
![]() |
4a035478ca | ||
![]() |
5e36a8b575 | ||
![]() |
e1b30a5075 | ||
![]() |
0649011eba | ||
![]() |
a812685084 | ||
![]() |
c04e8943bc | ||
![]() |
e1bc33f5c5 | ||
![]() |
2576735ade | ||
![]() |
a863ad46b4 | ||
![]() |
7db37eedcc | ||
![]() |
6b47a8b930 | ||
![]() |
2cdf2c28c4 | ||
![]() |
c9089c3243 | ||
![]() |
6dd7d0f928 | ||
![]() |
021c6364fa | ||
![]() |
3c441a05da | ||
![]() |
26adbc92be | ||
![]() |
9a21b8b6a4 | ||
![]() |
663d13a67f | ||
![]() |
7e43d88f9c | ||
![]() |
51a9f6b3da | ||
![]() |
c77f7e62ab | ||
![]() |
640a2c1798 | ||
![]() |
37c5741601 | ||
![]() |
967b28c4c0 | ||
![]() |
2037293aa3 | ||
![]() |
215d8bab38 | ||
![]() |
700306bb45 | ||
![]() |
ee1c349858 | ||
![]() |
780a8a67b8 | ||
![]() |
96a49ba116 | ||
![]() |
af6d58eb26 | ||
![]() |
d2a1e1f0db | ||
![]() |
6b996229e1 | ||
![]() |
67a7a76b73 | ||
![]() |
64b6313b4e | ||
![]() |
1e669870cc | ||
![]() |
edc7525103 | ||
![]() |
5b8eb4a49a | ||
![]() |
f05cc6d34e | ||
![]() |
8b5cbca35a | ||
![]() |
3576d0b512 | ||
![]() |
f7499cdb0d | ||
![]() |
ee4829c15d | ||
![]() |
c030567b38 | ||
![]() |
6d6e0a1bfe | ||
![]() |
b54b794264 | ||
![]() |
8a14069e71 | ||
![]() |
b9b470f4df | ||
![]() |
1e4a250da1 | ||
![]() |
2e11ea677b | ||
![]() |
39d629a029 | ||
![]() |
37f6660c57 | ||
![]() |
2f99892d96 | ||
![]() |
bb67692cfd | ||
![]() |
0b66360cc9 | ||
![]() |
6bb19fb2d4 | ||
![]() |
782cbc0a0b | ||
![]() |
979058ad95 | ||
![]() |
3b3a7462f6 | ||
![]() |
411eef844c | ||
![]() |
b25ceb4201 | ||
![]() |
a98835e18b | ||
![]() |
5b4a41ced4 | ||
![]() |
e090689ef5 |
4
.browserslistrc
Normal file
4
.browserslistrc
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
|
not dead
|
||||||
|
not ie 11
|
107
.commitlintrc.js
Normal file
107
.commitlintrc.js
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
|
const scopes = fs
|
||||||
|
.readdirSync(path.resolve(__dirname, 'src'), { withFileTypes: true })
|
||||||
|
.filter((dirent) => dirent.isDirectory())
|
||||||
|
.map((dirent) => dirent.name.replace(/s$/, ''));
|
||||||
|
|
||||||
|
// precomputed scope
|
||||||
|
const scopeComplete = execSync('git status --porcelain || true')
|
||||||
|
.toString()
|
||||||
|
.trim()
|
||||||
|
.split('\n')
|
||||||
|
.find((r) => ~r.indexOf('M src'))
|
||||||
|
?.replace(/(\/)/g, '%%')
|
||||||
|
?.match(/src%%((\w|-)*)/)?.[1]
|
||||||
|
?.replace(/s$/, '');
|
||||||
|
|
||||||
|
/** @type {import('cz-git').UserConfig} */
|
||||||
|
module.exports = {
|
||||||
|
ignores: [(commit) => commit.includes('init')],
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'body-leading-blank': [2, 'always'],
|
||||||
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
'header-max-length': [2, 'always', 108],
|
||||||
|
'subject-empty': [2, 'never'],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'subject-case': [0],
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
[
|
||||||
|
'feat',
|
||||||
|
'fix',
|
||||||
|
'perf',
|
||||||
|
'style',
|
||||||
|
'docs',
|
||||||
|
'test',
|
||||||
|
'refactor',
|
||||||
|
'build',
|
||||||
|
'ci',
|
||||||
|
'chore',
|
||||||
|
'revert',
|
||||||
|
'wip',
|
||||||
|
'workflow',
|
||||||
|
'types',
|
||||||
|
'release',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
prompt: {
|
||||||
|
/** @use `yarn commit :f` */
|
||||||
|
alias: {
|
||||||
|
f: 'docs: fix typos',
|
||||||
|
r: 'docs: update README',
|
||||||
|
s: 'style: update code format',
|
||||||
|
b: 'build: bump dependencies',
|
||||||
|
c: 'chore: update config',
|
||||||
|
},
|
||||||
|
customScopesAlign: !scopeComplete ? 'top' : 'bottom',
|
||||||
|
defaultScope: scopeComplete,
|
||||||
|
scopes: [...scopes, 'mock'],
|
||||||
|
allowEmptyIssuePrefixs: false,
|
||||||
|
allowCustomIssuePrefixs: false,
|
||||||
|
|
||||||
|
// English
|
||||||
|
typesAppend: [
|
||||||
|
{ value: 'wip', name: 'wip: work in process' },
|
||||||
|
{ value: 'workflow', name: 'workflow: workflow improvements' },
|
||||||
|
{ value: 'types', name: 'types: type definition file changes' },
|
||||||
|
],
|
||||||
|
|
||||||
|
// 中英文对照版
|
||||||
|
// messages: {
|
||||||
|
// type: '选择你要提交的类型 :',
|
||||||
|
// scope: '选择一个提交范围 (可选):',
|
||||||
|
// customScope: '请输入自定义的提交范围 :',
|
||||||
|
// subject: '填写简短精炼的变更描述 :\n',
|
||||||
|
// body: '填写更加详细的变更描述 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// breaking: '列举非兼容性重大的变更 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// footerPrefixsSelect: '选择关联issue前缀 (可选):',
|
||||||
|
// customFooterPrefixs: '输入自定义issue前缀 :',
|
||||||
|
// footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
|
||||||
|
// confirmCommit: '是否提交或修改commit ?',
|
||||||
|
// },
|
||||||
|
// types: [
|
||||||
|
// { value: 'feat', name: 'feat: 新增功能' },
|
||||||
|
// { value: 'fix', name: 'fix: 修复缺陷' },
|
||||||
|
// { value: 'docs', name: 'docs: 文档变更' },
|
||||||
|
// { value: 'style', name: 'style: 代码格式' },
|
||||||
|
// { value: 'refactor', name: 'refactor: 代码重构' },
|
||||||
|
// { value: 'perf', name: 'perf: 性能优化' },
|
||||||
|
// { value: 'test', name: 'test: 添加疏漏测试或已有测试改动' },
|
||||||
|
// { value: 'build', name: 'build: 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)' },
|
||||||
|
// { value: 'ci', name: 'ci: 修改 CI 配置、脚本' },
|
||||||
|
// { value: 'revert', name: 'revert: 回滚 commit' },
|
||||||
|
// { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改 (不影响源文件、测试用例)' },
|
||||||
|
// { value: 'wip', name: 'wip: 正在开发中' },
|
||||||
|
// { value: 'workflow', name: 'workflow: 工作流程改进' },
|
||||||
|
// { value: 'types', name: 'types: 类型定义文件修改' },
|
||||||
|
// ],
|
||||||
|
// emptyScopesAlias: 'empty: 不填写',
|
||||||
|
// customScopesAlias: 'custom: 自定义',
|
||||||
|
},
|
||||||
|
};
|
3
.env
3
.env
@@ -1,6 +1,3 @@
|
|||||||
# port
|
|
||||||
VITE_PORT = 3100
|
|
||||||
|
|
||||||
# spa-title
|
# spa-title
|
||||||
VITE_GLOB_APP_TITLE = Vben Admin
|
VITE_GLOB_APP_TITLE = Vben Admin
|
||||||
|
|
||||||
|
23
.env.analyze
Normal file
23
.env.analyze
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Whether to open mock
|
||||||
|
VITE_USE_MOCK = true
|
||||||
|
|
||||||
|
# public path
|
||||||
|
VITE_PUBLIC_PATH = /
|
||||||
|
|
||||||
|
# Whether to enable gzip or brotli compression
|
||||||
|
# Optional: gzip | brotli | none
|
||||||
|
# If you need multiple forms, you can use `,` to separate
|
||||||
|
VITE_BUILD_COMPRESS = 'none'
|
||||||
|
|
||||||
|
|
||||||
|
# Basic interface address SPA
|
||||||
|
VITE_GLOB_API_URL=/basic-api
|
||||||
|
|
||||||
|
# File upload address, optional
|
||||||
|
# It can be forwarded by nginx or write the actual address directly
|
||||||
|
VITE_GLOB_UPLOAD_URL=/upload
|
||||||
|
|
||||||
|
# Interface prefix
|
||||||
|
VITE_GLOB_API_URL_PREFIX=
|
||||||
|
|
||||||
|
VITE_ENABLE_ANALYZE = true
|
@@ -1,5 +1,3 @@
|
|||||||
VITE_PORT = 3100
|
|
||||||
|
|
||||||
# Whether to open mock
|
# Whether to open mock
|
||||||
VITE_USE_MOCK = true
|
VITE_USE_MOCK = true
|
||||||
|
|
||||||
@@ -8,11 +6,7 @@ VITE_PUBLIC_PATH = /
|
|||||||
|
|
||||||
# Cross-domain proxy, you can configure multiple
|
# Cross-domain proxy, you can configure multiple
|
||||||
# Please note that no line breaks
|
# Please note that no line breaks
|
||||||
VITE_PROXY = [["/basic-api","http://localhost:3000"],["/upload","http://localhost:3001/upload"]]
|
VITE_PROXY = [["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
|
||||||
# VITE_PROXY=[["/api","https://vvbin.cn/test"]]
|
|
||||||
|
|
||||||
# Delete console
|
|
||||||
VITE_DROP_CONSOLE = false
|
|
||||||
|
|
||||||
# Basic interface address SPA
|
# Basic interface address SPA
|
||||||
VITE_GLOB_API_URL=/basic-api
|
VITE_GLOB_API_URL=/basic-api
|
||||||
|
@@ -4,14 +4,12 @@ VITE_USE_MOCK = true
|
|||||||
# public path
|
# public path
|
||||||
VITE_PUBLIC_PATH = /
|
VITE_PUBLIC_PATH = /
|
||||||
|
|
||||||
# Delete console
|
|
||||||
VITE_DROP_CONSOLE = true
|
|
||||||
|
|
||||||
# Whether to enable gzip or brotli compression
|
# Whether to enable gzip or brotli compression
|
||||||
# Optional: gzip | brotli | none
|
# Optional: gzip | brotli | none
|
||||||
# If you need multiple forms, you can use `,` to separate
|
# If you need multiple forms, you can use `,` to separate
|
||||||
VITE_BUILD_COMPRESS = 'none'
|
VITE_BUILD_COMPRESS = 'none'
|
||||||
|
|
||||||
|
|
||||||
# Basic interface address SPA
|
# Basic interface address SPA
|
||||||
VITE_GLOB_API_URL=/basic-api
|
VITE_GLOB_API_URL=/basic-api
|
||||||
|
|
||||||
@@ -21,12 +19,3 @@ VITE_GLOB_UPLOAD_URL=/upload
|
|||||||
|
|
||||||
# Interface prefix
|
# Interface prefix
|
||||||
VITE_GLOB_API_URL_PREFIX=
|
VITE_GLOB_API_URL_PREFIX=
|
||||||
|
|
||||||
# Whether to enable image compression
|
|
||||||
VITE_USE_IMAGEMIN= true
|
|
||||||
|
|
||||||
# use pwa
|
|
||||||
VITE_USE_PWA = false
|
|
||||||
|
|
||||||
# Is it compatible with older browsers
|
|
||||||
VITE_LEGACY = false
|
|
||||||
|
21
.env.test
Normal file
21
.env.test
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
NODE_ENV=production
|
||||||
|
# Whether to open mock
|
||||||
|
VITE_USE_MOCK = true
|
||||||
|
|
||||||
|
# public path
|
||||||
|
VITE_PUBLIC_PATH = /
|
||||||
|
|
||||||
|
# Whether to enable gzip or brotli compression
|
||||||
|
# Optional: gzip | brotli | none
|
||||||
|
# If you need multiple forms, you can use `,` to separate
|
||||||
|
VITE_BUILD_COMPRESS = 'none'
|
||||||
|
|
||||||
|
# Basic interface address SPA
|
||||||
|
VITE_GLOB_API_URL=/basic-api
|
||||||
|
|
||||||
|
# File upload address, optional
|
||||||
|
# It can be forwarded by nginx or write the actual address directly
|
||||||
|
VITE_GLOB_UPLOAD_URL=/upload
|
||||||
|
|
||||||
|
# Interface prefix
|
||||||
|
VITE_GLOB_API_URL_PREFIX=
|
74
.eslintrc.js
74
.eslintrc.js
@@ -1,76 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
env: {
|
extends: ['@vben'],
|
||||||
browser: true,
|
|
||||||
node: true,
|
|
||||||
es6: true,
|
|
||||||
},
|
|
||||||
parser: 'vue-eslint-parser',
|
|
||||||
parserOptions: {
|
|
||||||
parser: '@typescript-eslint/parser',
|
|
||||||
ecmaVersion: 2020,
|
|
||||||
sourceType: 'module',
|
|
||||||
jsxPragma: 'React',
|
|
||||||
ecmaFeatures: {
|
|
||||||
jsx: true,
|
|
||||||
tsx: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
extends: [
|
|
||||||
'plugin:vue/vue3-recommended',
|
|
||||||
'plugin:@typescript-eslint/recommended',
|
|
||||||
'prettier',
|
|
||||||
'plugin:prettier/recommended',
|
|
||||||
],
|
|
||||||
rules: {
|
|
||||||
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
||||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
|
||||||
'@typescript-eslint/no-var-requires': 'off',
|
|
||||||
'@typescript-eslint/no-empty-function': 'off',
|
|
||||||
'vue/custom-event-name-casing': 'off',
|
|
||||||
'no-use-before-define': 'off',
|
|
||||||
'@typescript-eslint/no-use-before-define': 'off',
|
|
||||||
'@typescript-eslint/ban-ts-comment': 'off',
|
|
||||||
'@typescript-eslint/ban-types': 'off',
|
|
||||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
||||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
||||||
'@typescript-eslint/no-unused-vars': [
|
|
||||||
'error',
|
|
||||||
{
|
|
||||||
argsIgnorePattern: '^_',
|
|
||||||
varsIgnorePattern: '^_',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'no-unused-vars': [
|
|
||||||
'error',
|
|
||||||
{
|
|
||||||
argsIgnorePattern: '^_',
|
|
||||||
varsIgnorePattern: '^_',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'space-before-function-paren': 'off',
|
|
||||||
|
|
||||||
'vue/attributes-order': 'off',
|
|
||||||
'vue/one-component-per-file': 'off',
|
|
||||||
'vue/html-closing-bracket-newline': 'off',
|
|
||||||
'vue/max-attributes-per-line': 'off',
|
|
||||||
'vue/multiline-html-element-content-newline': 'off',
|
|
||||||
'vue/singleline-html-element-content-newline': 'off',
|
|
||||||
'vue/attribute-hyphenation': 'off',
|
|
||||||
// 'vue/html-self-closing': 'off',
|
|
||||||
'vue/require-default-prop': 'off',
|
|
||||||
'vue/html-self-closing': [
|
|
||||||
'error',
|
|
||||||
{
|
|
||||||
html: {
|
|
||||||
void: 'always',
|
|
||||||
normal: 'never',
|
|
||||||
component: 'always',
|
|
||||||
},
|
|
||||||
svg: 'always',
|
|
||||||
math: 'always',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
11
.gitattributes
vendored
Normal file
11
.gitattributes
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
|
||||||
|
|
||||||
|
# Automatically normalize line endings (to LF) for all text-based files.
|
||||||
|
* text=auto eol=lf
|
||||||
|
|
||||||
|
# Declare files that will always have CRLF line endings on checkout.
|
||||||
|
*.{cmd,[cC][mM][dD]} text eol=crlf
|
||||||
|
*.{bat,[bB][aA][tT]} text eol=crlf
|
||||||
|
|
||||||
|
# Denote all files that are truly binary and should not be modified.
|
||||||
|
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary
|
28
.github/ISSUE_TEMPLATE/3-bug-cn.md
vendored
Normal file
28
.github/ISSUE_TEMPLATE/3-bug-cn.md
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
name: 🐛 Bug 报告
|
||||||
|
about: 向我们报告一个Bug以帮助我们改进
|
||||||
|
title: ''
|
||||||
|
labels: 'bug: pending triage'
|
||||||
|
assignees: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
**⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭**
|
||||||
|
|
||||||
|
- [ ] 已阅读 [文档](https://anncwb.github.io/vue-vben-admin-doc/).
|
||||||
|
- [ ] 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
|
||||||
|
- [ ] 已在 Issues 中搜索了相关的关键词
|
||||||
|
- [ ] 不是 ant design vue 组件库的 Bug
|
||||||
|
|
||||||
|
### 描述 Bug
|
||||||
|
|
||||||
|
请清晰地描述此 Bug 的具体表现。
|
||||||
|
|
||||||
|
### 复现 Bug
|
||||||
|
|
||||||
|
请描述在演示页面中复现 Bug 的详细步骤,以确保我们可以理解并定位问题。部分 Bug 如果未在 Demo 中涉及,请务必提供关键代码
|
||||||
|
|
||||||
|
## 系统信息
|
||||||
|
|
||||||
|
- 操作系统:
|
||||||
|
- Node 版本:
|
||||||
|
- 包管理器 (npm/yarn/pnpm) 及其版本:
|
44
.github/workflows/deploy.yml
vendored
44
.github/workflows/deploy.yml
vendored
@@ -55,32 +55,31 @@ jobs:
|
|||||||
# ARGS: --delete --verbose --parallel=80
|
# ARGS: --delete --verbose --parallel=80
|
||||||
|
|
||||||
push-to-gh-pages:
|
push-to-gh-pages:
|
||||||
if: "contains(github.event.head_commit.message, '[release]')"
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Sed Config Base
|
- name: Sed Config Base
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sed -i 's#VITE_PUBLIC_PATH\s*=.*#VITE_PUBLIC_PATH = /vue-vben-admin/#g' ./.env.production
|
|
||||||
sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
|
sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
|
||||||
|
sed -i "s#VITE_DROP_CONSOLE\s*=.*#VITE_DROP_CONSOLE = true#g" ./.env.production
|
||||||
cat ./.env.production
|
cat ./.env.production
|
||||||
|
|
||||||
- name: use Node.js 14
|
- name: use Node.js 16
|
||||||
uses: actions/setup-node@v2.1.2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
node-version: '16.x'
|
||||||
|
|
||||||
- name: Get yarn cache
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
@@ -94,25 +93,26 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan github.com > ~/.ssh/known_hosts
|
ssh-keyscan github.com > ~/.ssh/known_hosts
|
||||||
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
|
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
|
||||||
git config --local user.email "vbenadmin@163.com"
|
git config --global user.email "vbenadmin@163.com"
|
||||||
git config --local user.name "vbenAdmin"
|
git config --global user.name "vbenAdmin"
|
||||||
|
|
||||||
- name: Delete gh-pages branch
|
|
||||||
run: |
|
|
||||||
git push origin --delete gh-pages
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--max_old_space_size=4096'
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
yarn run build
|
yarn run build
|
||||||
touch dist/.nojekyll
|
touch dist/.nojekyll
|
||||||
cp dist/index.html dist/404.html
|
cp dist/index.html dist/404.html
|
||||||
|
|
||||||
|
- name: Delete gh-pages branch
|
||||||
|
run: |
|
||||||
|
git push origin --delete gh-pages
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v2.5.0
|
uses: peaceiris/actions-gh-pages@v3.9.0
|
||||||
env:
|
with:
|
||||||
ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
PUBLISH_BRANCH: gh-pages
|
PUBLISH_BRANCH: gh-pages
|
||||||
PUBLISH_DIR: ./dist
|
PUBLISH_DIR: ./dist
|
||||||
with:
|
CNAME: vben.vvbin.cn
|
||||||
forceOrphan: true
|
|
||||||
|
55
.github/workflows/ftp-schedule.yml
vendored
55
.github/workflows/ftp-schedule.yml
vendored
@@ -1,55 +0,0 @@
|
|||||||
name: schedule-push-to-ftp
|
|
||||||
|
|
||||||
# Timed deployment project
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 15 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
schedule-push-to-ftp:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Sed Config Base
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sed -i 's#VITE_PUBLIC_PATH\s*=.*#VITE_PUBLIC_PATH = /next/#g' ./.env.production
|
|
||||||
sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
|
|
||||||
cat ./.env.production
|
|
||||||
|
|
||||||
- name: use Node.js 14
|
|
||||||
uses: actions/setup-node@v2.1.2
|
|
||||||
with:
|
|
||||||
node-version: '14.x'
|
|
||||||
|
|
||||||
- name: Get yarn cache
|
|
||||||
id: yarn-cache
|
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
|
|
||||||
- name: Cache dependencies
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
yarn install
|
|
||||||
yarn run build
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
|
||||||
env:
|
|
||||||
FTP_SERVER: ${{ secrets.FTP_SERVER }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
METHOD: sftp
|
|
||||||
PORT: ${{ secrets.FTP_PORT }}
|
|
||||||
LOCAL_DIR: dist
|
|
||||||
REMOTE_DIR: /srv/www/vben-admin
|
|
||||||
ARGS: --delete --verbose --parallel=80
|
|
11
.gitignore
vendored
11
.gitignore
vendored
@@ -1,15 +1,17 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
dist
|
dist
|
||||||
.npmrc
|
|
||||||
.cache
|
.cache
|
||||||
|
.turbo
|
||||||
|
|
||||||
test/upload-server/static
|
tests/server/static
|
||||||
|
tests/server/static/upload
|
||||||
|
|
||||||
.local
|
.local
|
||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
# Log files
|
# Log files
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
@@ -25,3 +27,8 @@ pnpm-debug.log*
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
package-lock.json
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|
||||||
|
.history
|
||||||
|
@@ -2,5 +2,5 @@ ports:
|
|||||||
- port: 3344
|
- port: 3344
|
||||||
onOpen: open-preview
|
onOpen: open-preview
|
||||||
tasks:
|
tasks:
|
||||||
- init: yarn
|
- init: pnpm install
|
||||||
command: yarn dev
|
command: pnpm run dev
|
||||||
|
1
.husky/.gitignore
vendored
1
.husky/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
_
|
|
@@ -3,4 +3,6 @@
|
|||||||
# shellcheck source=./_/husky.sh
|
# shellcheck source=./_/husky.sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
PATH="/usr/local/bin:$PATH"
|
||||||
|
|
||||||
npx --no-install commitlint --edit "$1"
|
npx --no-install commitlint --edit "$1"
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
'*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'],
|
|
||||||
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --write--parser json'],
|
|
||||||
'package.json': ['prettier --write'],
|
|
||||||
'*.vue': ['prettier --write', 'stylelint --fix'],
|
|
||||||
'*.{scss,less,styl,css,html}': ['stylelint --fix', 'prettier --write'],
|
|
||||||
'*.md': ['prettier --write'],
|
|
||||||
};
|
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
[ -n "$CI" ] && exit 0
|
[ -n "$CI" ] && exit 0
|
||||||
|
|
||||||
# Format and submit code according to lintstagedrc.js configuration
|
PATH="/usr/local/bin:$PATH"
|
||||||
npm run lint:lint-staged
|
|
||||||
|
|
||||||
npm run lint:pretty
|
# Format and submit code according to lintstagedrc.js configuration
|
||||||
|
pnpm exec lint-staged
|
||||||
|
7
.npmrc
Normal file
7
.npmrc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
public-hoist-pattern[]=husky
|
||||||
|
public-hoist-pattern[]=*eslint*
|
||||||
|
public-hoist-pattern[]=*prettier*
|
||||||
|
public-hoist-pattern[]=lint-staged
|
||||||
|
public-hoist-pattern[]=*stylelint*
|
||||||
|
public-hoist-pattern[]=@commitlint/cli
|
||||||
|
public-hoist-pattern[]=@vben/eslint-config
|
@@ -1,9 +1,10 @@
|
|||||||
/dist/*
|
dist
|
||||||
.local
|
.local
|
||||||
.output.js
|
.output.js
|
||||||
/node_modules/**
|
node_modules
|
||||||
|
|
||||||
**/*.svg
|
**/*.svg
|
||||||
**/*.sh
|
**/*.sh
|
||||||
|
|
||||||
/public/*
|
public
|
||||||
|
.npmrc
|
||||||
|
19
.prettierrc.js
Normal file
19
.prettierrc.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
module.exports = {
|
||||||
|
printWidth: 100,
|
||||||
|
semi: true,
|
||||||
|
vueIndentScriptAndStyle: true,
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'all',
|
||||||
|
proseWrap: 'never',
|
||||||
|
htmlWhitespaceSensitivity: 'strict',
|
||||||
|
endOfLine: 'auto',
|
||||||
|
plugins: ['prettier-plugin-packagejson'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: '.*rc',
|
||||||
|
options: {
|
||||||
|
parser: 'json',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
@@ -1,2 +1,2 @@
|
|||||||
/dist/*
|
dist
|
||||||
/public/*
|
public
|
||||||
|
4
.stylelintrc.js
Normal file
4
.stylelintrc.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['@vben/stylelint-config'],
|
||||||
|
};
|
2
.vscode/extensions.json
vendored
2
.vscode/extensions.json
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"octref.vetur",
|
"vue.volar",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"stylelint.vscode-stylelint",
|
"stylelint.vscode-stylelint",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
|
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -8,6 +8,6 @@
|
|||||||
"url": "http://localhost:3100",
|
"url": "http://localhost:3100",
|
||||||
"webRoot": "${workspaceFolder}/src",
|
"webRoot": "${workspaceFolder}/src",
|
||||||
"sourceMaps": true
|
"sourceMaps": true
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
182
.vscode/settings.json
vendored
182
.vscode/settings.json
vendored
@@ -2,55 +2,9 @@
|
|||||||
"typescript.tsdk": "./node_modules/typescript/lib",
|
"typescript.tsdk": "./node_modules/typescript/lib",
|
||||||
"volar.tsPlugin": true,
|
"volar.tsPlugin": true,
|
||||||
"volar.tsPluginStatus": false,
|
"volar.tsPluginStatus": false,
|
||||||
//===========================================
|
"npm.packageManager": "pnpm",
|
||||||
//============= Editor ======================
|
|
||||||
//===========================================
|
|
||||||
"explorer.openEditors.visible": 0,
|
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
"editor.renderControlCharacters": true,
|
|
||||||
"editor.minimap.renderCharacters": false,
|
|
||||||
"editor.minimap.maxColumn": 300,
|
|
||||||
"editor.minimap.showSlider": "always",
|
|
||||||
"editor.cursorBlinking": "phase",
|
|
||||||
"editor.cursorSmoothCaretAnimation": true,
|
|
||||||
"editor.detectIndentation": false,
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"diffEditor.ignoreTrimWhitespace": false,
|
|
||||||
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
|
|
||||||
"editor.suggestSelection": "first",
|
|
||||||
"editor.trimAutoWhitespace": true,
|
|
||||||
"editor.quickSuggestions": {
|
|
||||||
"other": true,
|
|
||||||
"comments": true,
|
|
||||||
"strings": true
|
|
||||||
},
|
|
||||||
//===========================================
|
|
||||||
//============= Other =======================
|
|
||||||
//===========================================
|
|
||||||
"breadcrumbs.enabled": true,
|
|
||||||
"open-in-browser.default": "chrome",
|
|
||||||
//===========================================
|
|
||||||
//============= emmet =======================
|
|
||||||
//===========================================
|
|
||||||
"emmet.triggerExpansionOnTab": true,
|
|
||||||
"emmet.showAbbreviationSuggestions": true,
|
|
||||||
"emmet.showExpandedAbbreviation": "always",
|
|
||||||
"emmet.syntaxProfiles": {
|
|
||||||
"vue-html": "html",
|
|
||||||
"vue": "html",
|
|
||||||
"xml": {
|
|
||||||
"attr_quotes": "single"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"emmet.includeLanguages": {
|
|
||||||
"jsx-sublime-babel-tags": "javascriptreact"
|
|
||||||
},
|
|
||||||
//===========================================
|
|
||||||
//============= files =======================
|
|
||||||
//===========================================
|
|
||||||
"files.trimTrailingWhitespace": true,
|
|
||||||
"files.insertFinalNewline": true,
|
|
||||||
"files.trimFinalNewlines": true,
|
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
"search.exclude": {
|
"search.exclude": {
|
||||||
"**/node_modules": true,
|
"**/node_modules": true,
|
||||||
@@ -73,9 +27,14 @@
|
|||||||
"CHANGELOG.md": true,
|
"CHANGELOG.md": true,
|
||||||
"examples": true,
|
"examples": true,
|
||||||
"res": true,
|
"res": true,
|
||||||
"screenshots": true
|
"screenshots": true,
|
||||||
|
"yarn-error.log": true,
|
||||||
|
"**/.yarn": true
|
||||||
},
|
},
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
|
"**/.cache": true,
|
||||||
|
"**/.editorconfig": true,
|
||||||
|
"**/.eslintcache": true,
|
||||||
"**/bower_components": true,
|
"**/bower_components": true,
|
||||||
"**/.idea": true,
|
"**/.idea": true,
|
||||||
"**/tmp": true,
|
"**/tmp": true,
|
||||||
@@ -96,58 +55,10 @@
|
|||||||
"**/yarn.lock": true
|
"**/yarn.lock": true
|
||||||
},
|
},
|
||||||
"stylelint.enable": true,
|
"stylelint.enable": true,
|
||||||
"stylelint.packageManager": "yarn",
|
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
|
||||||
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
|
|
||||||
// ===========================================
|
|
||||||
// ================ Eslint ===================
|
|
||||||
// ===========================================
|
|
||||||
"eslint.alwaysShowStatus": true,
|
|
||||||
"eslint.options": {
|
|
||||||
"plugins": ["html", "vue", "javascript", "jsx", "typescript"],
|
|
||||||
"extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"]
|
|
||||||
},
|
|
||||||
"eslint.validate": [
|
|
||||||
"javascript",
|
|
||||||
"typescript",
|
|
||||||
"reacttypescript",
|
|
||||||
"reactjavascript",
|
|
||||||
"html",
|
|
||||||
"vue"
|
|
||||||
],
|
|
||||||
// ===========================================
|
|
||||||
// ================ Vetur ====================
|
|
||||||
// ===========================================
|
|
||||||
"vetur.experimental.templateInterpolationService": true,
|
|
||||||
"vetur.format.options.tabSize": 2,
|
|
||||||
"vetur.format.defaultFormatter.html": "js-beautify-html",
|
|
||||||
"vetur.format.defaultFormatter.scss": "prettier",
|
|
||||||
"vetur.format.defaultFormatter.css": "prettier",
|
|
||||||
"vetur.format.defaultFormatter.ts": "prettier-tslint",
|
|
||||||
"vetur.format.defaultFormatter.js": "prettier",
|
|
||||||
"vetur.languageFeatures.codeActions": false,
|
|
||||||
"vetur.format.defaultFormatterOptions": {
|
|
||||||
"js-beautify-html": {
|
|
||||||
"wrap_attributes": "force-expand-multiline"
|
|
||||||
},
|
|
||||||
"prettier": {
|
|
||||||
"eslintIntegration": true,
|
|
||||||
"arrowParens": "always",
|
|
||||||
"semi": false,
|
|
||||||
"singleQuote": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"javascript.updateImportsOnFileMove.enabled": "never",
|
|
||||||
"liveServer.settings.donotShowInfoMsg": true,
|
|
||||||
"terminal.integrated.rendererType": "dom",
|
|
||||||
"telemetry.enableCrashReporter": false,
|
|
||||||
"telemetry.enableTelemetry": false,
|
|
||||||
"workbench.settings.enableNaturalLanguageSearch": false,
|
|
||||||
"path-intellisense.mappings": {
|
"path-intellisense.mappings": {
|
||||||
"/@/": "${workspaceRoot}/src"
|
"/@/": "${workspaceRoot}/src"
|
||||||
},
|
},
|
||||||
"prettier.requireConfig": true,
|
|
||||||
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
||||||
"workbench.sideBar.location": "left",
|
|
||||||
"[javascriptreact]": {
|
"[javascriptreact]": {
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
},
|
},
|
||||||
@@ -173,11 +84,13 @@
|
|||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
},
|
},
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": true,
|
||||||
|
"source.fixAll.stylelint": true
|
||||||
},
|
},
|
||||||
"[vue]": {
|
"[vue]": {
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": false
|
"source.fixAll.eslint": true,
|
||||||
|
"source.fixAll.stylelint": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"i18n-ally.localesPaths": ["src/locales/lang"],
|
"i18n-ally.localesPaths": ["src/locales/lang"],
|
||||||
@@ -187,5 +100,74 @@
|
|||||||
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
|
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
|
||||||
"i18n-ally.enabledParsers": ["ts"],
|
"i18n-ally.enabledParsers": ["ts"],
|
||||||
"i18n-ally.sourceLanguage": "en",
|
"i18n-ally.sourceLanguage": "en",
|
||||||
"i18n-ally.enabledFrameworks": ["vue", "react"]
|
"i18n-ally.displayLanguage": "zh-CN",
|
||||||
|
"i18n-ally.enabledFrameworks": ["vue", "react"],
|
||||||
|
"cSpell.words": [
|
||||||
|
"vben",
|
||||||
|
"windi",
|
||||||
|
"browserslist",
|
||||||
|
"tailwindcss",
|
||||||
|
"esnext",
|
||||||
|
"antv",
|
||||||
|
"tinymce",
|
||||||
|
"qrcode",
|
||||||
|
"sider",
|
||||||
|
"pinia",
|
||||||
|
"sider",
|
||||||
|
"nprogress",
|
||||||
|
"INTLIFY",
|
||||||
|
"stylelint",
|
||||||
|
"esno",
|
||||||
|
"vitejs",
|
||||||
|
"sortablejs",
|
||||||
|
"mockjs",
|
||||||
|
"codemirror",
|
||||||
|
"iconify",
|
||||||
|
"commitlint",
|
||||||
|
"vditor",
|
||||||
|
"echarts",
|
||||||
|
"cropperjs",
|
||||||
|
"logicflow",
|
||||||
|
"vueuse",
|
||||||
|
"zxcvbn",
|
||||||
|
"lintstagedrc",
|
||||||
|
"brotli",
|
||||||
|
"tailwindcss",
|
||||||
|
"sider",
|
||||||
|
"pnpm",
|
||||||
|
"antd"
|
||||||
|
],
|
||||||
|
"vetur.format.scriptInitialIndent": true,
|
||||||
|
"vetur.format.styleInitialIndent": true,
|
||||||
|
"vetur.validation.script": false,
|
||||||
|
"MicroPython.executeButton": [
|
||||||
|
{
|
||||||
|
"text": "▶",
|
||||||
|
"tooltip": "运行",
|
||||||
|
"alignment": "left",
|
||||||
|
"command": "extension.executeFile",
|
||||||
|
"priority": 3.5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MicroPython.syncButton": [
|
||||||
|
{
|
||||||
|
"text": "$(sync)",
|
||||||
|
"tooltip": "同步",
|
||||||
|
"alignment": "left",
|
||||||
|
"command": "extension.execute",
|
||||||
|
"priority": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 控制相关文件嵌套展示
|
||||||
|
"explorer.fileNesting.enabled": true,
|
||||||
|
"explorer.fileNesting.expand": false,
|
||||||
|
"explorer.fileNesting.patterns": {
|
||||||
|
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
|
||||||
|
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
|
||||||
|
"*.env": "$(capture).env.*",
|
||||||
|
"CHANGELOG.md": "CHANGELOG*",
|
||||||
|
"package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc",
|
||||||
|
".eslintrc.js": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.js,.prettierrc.js,.stylelintrc.js"
|
||||||
|
},
|
||||||
|
"terminal.integrated.scrollback": 10000
|
||||||
}
|
}
|
||||||
|
48
.yarnclean
48
.yarnclean
@@ -1,48 +0,0 @@
|
|||||||
# test directories
|
|
||||||
__tests__
|
|
||||||
test
|
|
||||||
tests
|
|
||||||
powered-test
|
|
||||||
|
|
||||||
# asset directories
|
|
||||||
docs
|
|
||||||
doc
|
|
||||||
website
|
|
||||||
images
|
|
||||||
assets
|
|
||||||
|
|
||||||
# examples
|
|
||||||
example
|
|
||||||
examples
|
|
||||||
|
|
||||||
# code coverage directories
|
|
||||||
coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# build scripts
|
|
||||||
Makefile
|
|
||||||
Gulpfile.js
|
|
||||||
Gruntfile.js
|
|
||||||
|
|
||||||
# configs
|
|
||||||
appveyor.yml
|
|
||||||
circle.yml
|
|
||||||
codeship-services.yml
|
|
||||||
codeship-steps.yml
|
|
||||||
wercker.yml
|
|
||||||
.tern-project
|
|
||||||
.gitattributes
|
|
||||||
.editorconfig
|
|
||||||
.*ignore
|
|
||||||
.eslintrc
|
|
||||||
.jshintrc
|
|
||||||
.flowconfig
|
|
||||||
.documentup.json
|
|
||||||
.yarn-metadata.json
|
|
||||||
.travis.yml
|
|
||||||
|
|
||||||
# misc
|
|
||||||
*.md
|
|
||||||
|
|
||||||
!istanbul-reports/lib/html/assets
|
|
||||||
!istanbul-api/node_modules/istanbul-reports/lib/html/assets
|
|
@@ -1,3 +1,405 @@
|
|||||||
|
## 2.8.0(2021-11.03)
|
||||||
|
|
||||||
|
### Upgrade Instructions
|
||||||
|
|
||||||
|
- Package manager changed from `yarn` to `pnpm`
|
||||||
|
- Delete `node_modules` and `yarn.lock`, install `pnpm` globally
|
||||||
|
- Execute `pnpm install`
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Others**
|
||||||
|
- The `VITE_PROXY` configuration in the `.env` file supports single quotes
|
||||||
|
- Remove warnings during build
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **BasicTable**
|
||||||
|
- Fix the issue that editable cells cannot be submitted in some cases
|
||||||
|
- Fix the problem that the `inset` attribute does not work
|
||||||
|
- Fix the problem that the performance of `useTable` and `reload` method `await` of `BasicTable` instance are inconsistent
|
||||||
|
- Fix the issue that `clickToRowSelect` would ignore the disabled state of the row selection box
|
||||||
|
- Fix the problem that the page of `BasicTable` will be reset in some cases
|
||||||
|
- Modify the `deleteTableDataRecord` method
|
||||||
|
- **BasicModal**
|
||||||
|
- Fixed the problem that `Modal` could not be closed even when clicking on the mask and pressing the `Esc` key
|
||||||
|
- Fixed the issue that clicking the close button and the blank area next to the maximize button would also cause `Modal` to close
|
||||||
|
- **BasicTree** Fix the problem that the node slot does not work
|
||||||
|
- **CodeEditor** Fix the problem that may cause `Build` failure
|
||||||
|
- **BasicForm** Fix the problem that the content width of the custom FormItem component may be out of range
|
||||||
|
- **ApiTreeSelect** Fix the problem that the change of `params` failed to trigger the re-request of api data
|
||||||
|
- **Others** -Fixed an issue where multiple tabs would not jump to routing when closing tabs in some cases
|
||||||
|
- Fix the issue that some components may cause abnormal hot update
|
||||||
|
- Fix the problem that some sub-components of `antdv` will be reported in the build process when directly `import` part of the `antdv`, such as: TabPane, RadioGroup
|
||||||
|
|
||||||
|
## 2.7.2(2021-09-14)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **BasicForm** New `Divider` in the form component for dividing the area of longer forms
|
||||||
|
- **BasicTable**
|
||||||
|
- Cell editor adds submit callback, which will decide whether to submit data to the form based on the result returned by the callback function
|
||||||
|
- Add check method for row editing, allowing only check but not submit value, so asynchronously save data successfully before submit to table
|
||||||
|
- Fix the problem that the `rowClassName` property cannot be used at the same time as `striped`.
|
||||||
|
- New component **MarkdownViewer** for displaying rich text in Markdown format
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **CodeEditor** Fix JSON editor throwing exception when formatting invalid JSON text
|
||||||
|
- **Tinymce** fixes an issue where inline mode throws an exception in some scenarios
|
||||||
|
- **BasicTable**
|
||||||
|
- Repair the problem that the editing icon is not displayed when the content of editable cell is empty
|
||||||
|
- Repair the problem that the total row at the end of the table sometimes fails to align with the columns in the main part of the table.
|
||||||
|
- **MarkDown** Repair the problem that the value of initial value property does not work.
|
||||||
|
- **BasicUpload** Repair the problem that `accept` property does not support `MIME` and suffix name starting with dot.
|
||||||
|
- **ApiSelect** Fix the problem of type definition of `value` property.
|
||||||
|
- **Other**
|
||||||
|
- Repair the problem that some wrapper components give error when using slots.
|
||||||
|
- Repair the problem that `theme` parameter of `useECharts` does not work.
|
||||||
|
- Repair the problem that when `Token` is invalid, pressing F5 to refresh the page may cause abnormal page loading.
|
||||||
|
- Repair the problem that the improper call of `useRedo` may lead to `path` redirection abnormality.
|
||||||
|
- Repair the problem that `vite` custom mode name does not support underscore.
|
||||||
|
|
||||||
|
## 2.7.1(2021-08-16)
|
||||||
|
|
||||||
|
- Upgrade vue 3.2, if the operation fails, delete node_modules and reinstall it
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **BasicTree** Add search function related properties and methods
|
||||||
|
- **BasicForm** added `alwaysShowLines` to set the number of lines kept displayed when folding
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Cropper** Fix the problem of failure to destroy in time
|
||||||
|
- **BasicTable**
|
||||||
|
- Fix the problem that `CellFormat` cannot use `Map` type data
|
||||||
|
- Fixed an issue where the editable cell failed to display the `0` value correctly
|
||||||
|
- Fixed the issue that selection-change event failed to trigger correctly when unchecked
|
||||||
|
- Fix the problem that the background color of the full screen state under the light theme is incorrect
|
||||||
|
- Fix the problem of obtaining complete data when `getSelectRows` does not support remote data cross-page selection
|
||||||
|
- Fix the issue that the `size` property provided for editing components in `editComponentProps` is invalid
|
||||||
|
- **Qrcode** Fixed the problem that the QR code component could not be drawn in time when it was created
|
||||||
|
- **BasicModal** Fix the problem that the `helpMessage` property does not work
|
||||||
|
- **BasicButton** Fix the problem that the button style performance is inconsistent with the official antd
|
||||||
|
- **Others** Fix the problem that `useRedo` (reload the current route) will lose route `params` data
|
||||||
|
|
||||||
|
## 2.7.0(2021-08-03)
|
||||||
|
|
||||||
|
## (Breaking changes) Breaking changes
|
||||||
|
|
||||||
|
- Restore the project `tailwindcss` back to `windicss`, tried `tailwindcss`, there may be a lot of problems, first switch back to `windicss` to improve development efficiency and lower switching costs.
|
||||||
|
- There are currently incompatible areas of the project
|
||||||
|
- The wording of `xl:!m-4` needs to be changed to `!xl:m-4`, note that only `!` is incompatible. If you don’t use it, you don’t need to change it.
|
||||||
|
- The memory overflow problem may still exist (low frequency, just restart, restart vite faster)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Preview** Add new properties and events
|
||||||
|
- **Dark Theme** added support for tailwindcss night mode
|
||||||
|
- **Others** add setTip method for useLoading
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **ApiTreeSelect** Fixed the problem of failing to monitor `params` changes correctly
|
||||||
|
- **ImgRotateDragVerify** Fix the problem that the component `resume` method cannot be called
|
||||||
|
- **TableAction** Fix the problem that the stopButtonPropagation property does not work in some cases
|
||||||
|
- **PageWrapper** Fix the problem of invalid `class` attribute
|
||||||
|
- **BasicTree** Fix the problem that the `checkAll` method will affect the `disabled` state node
|
||||||
|
- **BasicTable**
|
||||||
|
- Fix the issue that editable cells do not support `ellipsis` configuration
|
||||||
|
- Fixed the problem that the pop-up layer of sub-components (popconfirm and edit components such as select and treeSelect) cannot be seen in full-screen mode
|
||||||
|
- Fixed an issue where when `expandRowByClick` is enabled, clicking non-expandable rows may cause style errors
|
||||||
|
- Fix the problem that the dynamic change of `pagination` property does not take effect
|
||||||
|
- Fix the problem that `getSelectRows` does not support the child data of the tree table -**Dark Theme** Fix the color matching problem under the dark theme
|
||||||
|
- Fix the background color of the selected node of the `Tree` component
|
||||||
|
- Fix the color configuration of the `Alert` component
|
||||||
|
- Fix the problem of the button color of `link` type in the disabled state
|
||||||
|
- Fix the style problem of checked checkboxes in `Tree` -**Others** Fix the problem that useScript failed to automatically remove the script node
|
||||||
|
|
||||||
|
## 2.6.1(2021-07-19)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **NoticeList** Add pagination, auto omit for overlength, title click event, title strikethrough, etc.
|
||||||
|
- **MixSider** Optimize the style of the bottom collapse button in the Mix menu layout to be consistent with the style of other menu layouts
|
||||||
|
- **ApiTreeSelect** Extend `TreeSelect` component of `antdv` to support remote data source, similar to `ApiSelect`.
|
||||||
|
- **BasicTable** New `ApiTreeSelect` editing component
|
||||||
|
- Different backend home pages can be specified for different users.
|
||||||
|
- Add `homePath` field (optional) to the user information returned by the `getUserInfo` interface to customize the home page path for the current user
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **BasicTable**
|
||||||
|
- Fix scrollbar style issue (removed scroll style patch)
|
||||||
|
- Fix the alignment problem of cells with expanded icons in tree tables
|
||||||
|
- Add `headerTop` slot.
|
||||||
|
- Fix the color display of the operation column button in disabled state.
|
||||||
|
- Repair the problem that the values of editable cells cannot be updated by modifying `dataSource` directly.
|
||||||
|
- Repair the problem of data replay when using `ApiSelect` to edit components.
|
||||||
|
- Repair the problem that editing components may report `onXXX` type error in some scenarios.
|
||||||
|
- **TableAction**
|
||||||
|
- Create Tooltip component only if `action.tooltip` exists.
|
||||||
|
- Fix the problem that the content of the round button inside the component is not centered
|
||||||
|
- **AppSearch** Fix the problem that the hidden menu may be searched.
|
||||||
|
- **BasicUpload** Repair the problem of error when handling non-`array` values.
|
||||||
|
- **Form** Repair the `suffix` slot style problem of `FormItem`.
|
||||||
|
- **Menu**
|
||||||
|
- Repair the hovering trigger logic of the left mixed menu
|
||||||
|
- Repair the problem that the top bar menu is wrong when displaying menu items that need to be hidden.
|
||||||
|
- Fix the left mixed menu in hover trigger mode will jump to route directly when there is no submenu and it is activated
|
||||||
|
- **Breadcrumb** Repair the problem that the menu with redirection cannot be jumped when clicked
|
||||||
|
- **Markdown** fixes an initialization exception and an issue where value was not set dynamically correctly
|
||||||
|
- **Modal** Make sure props are passed correctly
|
||||||
|
- **MultipleTab** fixes an issue that could accidentally create login route tabs
|
||||||
|
- **BasicTree** Fix the problem that the search function may cause `checkedKeys` to be lost
|
||||||
|
- **CodeEditor** Fix the problem that value does not support v-model usage.
|
||||||
|
- **CountdownInput** Fix the problem that `input` slot is not supported.
|
||||||
|
- **ApiSelect** Fix the problem that the `options-change` event parameter is not the standard `options` data used by `select
|
||||||
|
- **Other**
|
||||||
|
- Fix the problem that the configuration of default menu collapse does not work
|
||||||
|
- Repair the problem that `safari` browser reports an error and the website cannot be opened.
|
||||||
|
- Repair the problem that eslint keeps error due to endOfLine after pulling the code on window.
|
||||||
|
- Fix `Vue Router warn` caused by dynamic routing
|
||||||
|
|
||||||
|
### 🎫 Chores
|
||||||
|
|
||||||
|
- Add test environment test command
|
||||||
|
|
||||||
|
## 2.6.0(2021-07-04)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Axios** New `withToken` configuration to control whether the request carries a token or not
|
||||||
|
- **BasicUpload**
|
||||||
|
- New `preview-delete` event triggered when deleting a file in preview `Modal`.
|
||||||
|
- `value` supports `v-model` usage
|
||||||
|
- **Route configuration**
|
||||||
|
- Add `ignoreRoute` to generate menu only in `ROUTE_MAPPING` or `BACK` permission mode
|
||||||
|
- Add `hidePathForChildren` configuration to ignore this level `path` when generating menus for child items
|
||||||
|
- **TableAction** Add `tooltip` configuration to add tooltip hint for button
|
||||||
|
- **CropperAvatar**
|
||||||
|
- Added `value` to set the current avatar
|
||||||
|
- Added `onChange` to accept avatar cropping and upload success event
|
||||||
|
- New `btnText`, `btnProps` for customizing the text and properties of the upload button
|
||||||
|
- Add tooltips to the action buttons in `Modal` for cropping
|
||||||
|
- **Modal** Add tooltip for action button in top right corner
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Modal**
|
||||||
|
- Fix the problem that the mask cannot be closed by clicking on it.
|
||||||
|
- Fix `setModalProps` does not support setting `defaultFullscreen`.
|
||||||
|
- **Table**
|
||||||
|
- Fix the problem that `editComponentProps` doesn't support `onChange`.
|
||||||
|
- Fix the problem that `selection-change` event is not triggered when `clickToRowSelect` is enabled.
|
||||||
|
- Fix the problem that global configuration `fetchSetting` may be accidentally modified by local configuration.
|
||||||
|
- Fix the problem that the parameter of `handleSearchInfoFn` contains redundant blank keys.
|
||||||
|
- Repair the problem that when rowSelection.onChange is provided for table, the selected items of table cannot be changed manually.
|
||||||
|
- Fix the problem that the scrollbar continues to be displayed even when it is not needed to be displayed.
|
||||||
|
- **Icon** Repair the problem that SvgIcon is missing some styles.
|
||||||
|
- **Menu**
|
||||||
|
- Repair the problem that single-level menu refreshing will not be activated in route mapping mode.
|
||||||
|
- Repair the problem that the collapse customization at the bottom of the side menu is invalid.
|
||||||
|
- **Form** Repair the type definition of `submitButtonOptions` and `resetButtonOptions`.
|
||||||
|
- **PopConfirmButton** Remove the redundant `title` on `Button`.
|
||||||
|
- **Axios** Fix the problem that `params` and `data` data cannot be submitted at the same time when non-`GET` requests are made
|
||||||
|
- **Other**
|
||||||
|
- Repair the problem that the lock screen function can skip the lock state by refreshing the page or copying the URL to open a new browser tab
|
||||||
|
- Repair the problem that `Token` won't be synchronized when multiple windows open pages at the same time.
|
||||||
|
- Repair the problem that `hasPermission` does not work in `ROLE` permission mode.
|
||||||
|
- **Table** Repair the problem that the parameter of `handleSearchInfoFn` contains extra blank keys.
|
||||||
|
- **Tailwindcss** Remove console warning
|
||||||
|
|
||||||
|
## 2.5.2(2021-06-27)
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- **Icon** Remove the global registration of Icon components to prevent hot update issues under certain circumstances
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Menu** Added `permissionMode=PermissionModeEnum.ROUTE_MAPPING` mode
|
||||||
|
- The project is changed to this mode by default, and the original menu file is deleted
|
||||||
|
- If you have written the menu before, you can change to `PermissionModeEnum.ROLE` mode
|
||||||
|
|
||||||
|
## 2.5.1(2021-06-26)
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- Upgrade `vue` and `ant-design-vue` versions to solve compatibility issues
|
||||||
|
- **Tree** Performance optimization
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Table** Fix page jitter problem
|
||||||
|
- **Upload** Make sure to carry custom parameters
|
||||||
|
- **Dropdown** Fix the icon display problem of popConfirm
|
||||||
|
- **Table** Fix the problem that the editing event of the tree table is abnormal
|
||||||
|
- **Table** Fix the problem that when the table data is empty, the value returned by getDataSource is not the data source used by the table
|
||||||
|
|
||||||
|
## 2.5.0(2021-06-20)
|
||||||
|
|
||||||
|
## (Breaking changes) Breaking changes
|
||||||
|
|
||||||
|
- Change the project `windicss` to `tailwindcss` to solve the memory overflow problem
|
||||||
|
- There are currently incompatible areas of the project
|
||||||
|
- The wording of `!xl:m-4` needs to be changed to `xl:!m-4`, note that only `!` is incompatible. If you don’t use it, you don’t need to change it.
|
||||||
|
- The new features of `windicss` itself need to be adjusted, for example, `Attribute` mode is not compatible
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- Remove `useExpose` and use `expose` provided by the component itself instead
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- **Locale** merge multi-language files to reduce the number of files
|
||||||
|
- **Utils** Mitt default export is changed from `Class` to `Function`
|
||||||
|
- **Axios** `isTransformRequestResult` is renamed to `isTransformResponse`
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **CropperImage** `Cropper` Avatar cropping adds circular cropping function
|
||||||
|
- **CropperAvatar** Added avatar upload component
|
||||||
|
- **Drawer** `useDrawer` added `closeDrawer` function
|
||||||
|
- **Preview** Added `createImgPreview` picture preview function
|
||||||
|
- **Setup** New guide page example
|
||||||
|
- **Tests** Add jest test suite, Vue component single test is not currently supported
|
||||||
|
- **Axios** Added `authenticationScheme` configuration to specify the authentication scheme
|
||||||
|
- **Setting** Added `sessionTimeoutProcessing` project configuration item, used to configure how to deal with session timeout
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Modal** fix full screen height calculation error
|
||||||
|
- **Modal** Fix the problem that the shutdown event is triggered multiple times
|
||||||
|
- **PageWrapper** fix the height calculation problem
|
||||||
|
- **FlowChart** Repair drag and drop menu missing
|
||||||
|
- Fixed Iframe routing error in background mode
|
||||||
|
- **PageWrapper** Fix the height calculation problem when footer and global footer are opened at the same time
|
||||||
|
- **Menu** Fix the jitter problem of menu folding animation
|
||||||
|
- **Store** fixed type error after pinia version upgrade
|
||||||
|
|
||||||
|
## 2.4.2(2021-06-10)
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- `CountTo` component refactoring
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- `radioButtonGroup` supports `boolean` value
|
||||||
|
- `useModalInner` added `redoModalHeight` to reset the height of `Modal` inside Modal
|
||||||
|
- `useECharts` added `getInstance` to obtain instances of `echart`
|
||||||
|
- `TableAction` added `stopButtonPropagation` to prevent the action button click event from bubbling
|
||||||
|
- `BasicTable` in the row edit mode, you can get or set the value of other editing components in the column
|
||||||
|
- The `ApiSelect` component will automatically re-fetch the data after the `params` is changed
|
||||||
|
- `TableImg` component improvement
|
||||||
|
- `BasicTable` added `columns-change` event to monitor the user to change the sorting, display, and fixed status of columns
|
||||||
|
- `Tinymce` supports dynamic modification readonly
|
||||||
|
- `BasicTable` added `updateTableDataRecord` method to update the specified row data
|
||||||
|
- `useModal` added `closeModal` method to close `Modal`
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Fix the problem that `redoModalHeight` cannot reduce the height
|
||||||
|
- Fix the problem that the schema data of `BasicForm` does not take effect
|
||||||
|
- Fix the problem that multiple tags may cause `KeepAlive` to fail
|
||||||
|
- Fix the problem that the default `axios` interceptor cannot handle custom code
|
||||||
|
- Fix the height issue of the lock screen pop-up window
|
||||||
|
- Fixed the problem that the half-selected state of the `Column Display` checkbox of `BaiscTable` was incorrectly displayed
|
||||||
|
- Fixed the problem that the preview list of the `BasicUpload` component could not be displayed in some cases
|
||||||
|
- Fix the problem that the `options` setting of ` RadioButtonGroup``disabled ` does not take effect
|
||||||
|
- Fix the problem that the button for uploading pictures in the read-only mode of the `Tinymce` component is still available
|
||||||
|
- Fix the stuttering problem of `BasicForm` under certain circumstances
|
||||||
|
- Fix the problem that "directory" routing does not work
|
||||||
|
|
||||||
|
## 2.4.1(2021-06-01)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- Add `DatePicker` and `TimePicker` components to editable tables
|
||||||
|
- Added `defaultExpandLevel` configuration to `Tree` component
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
-Menu search default focus
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Fix known issues of `CodeEditor`
|
||||||
|
- Fix the issue of `i18n` console warning
|
||||||
|
- Fix the problem that the editable table `align` configuration does not take effect
|
||||||
|
- Ensure that `axios` only processes `Object` parameters
|
||||||
|
- Fix the failure of the `defaultExpandAll` configuration of the `Tree` component
|
||||||
|
- Fix the problem of missing dividing line in `TableAction`
|
||||||
|
- Fix the known issues of the table
|
||||||
|
- Fix that the lang attribute of HTML will not be set when reloading due to the first loading or changing the language
|
||||||
|
|
||||||
|
## 2.4.0 (2021-05-25)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
-New graphical editor example -New code editor (including Json editor) -Added `JsonPreview`Json data viewing component -The fields of the data column and actionColumn of the table can be controlled according to the authority and business. -Added an example of a permission control table (AuthColumn.vue) -Added user login expiration example
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
-Consolidate some language files to reduce the number of files
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
-Fix the flashing white screen when the dark theme refreshes -Fix the problem that other functions are invalid when the tab is closed -Fix known issues in the form -Fix the automatic lock screen failure
|
||||||
|
|
||||||
|
## 2.3.0 (2021-04-10)
|
||||||
|
|
||||||
|
## (Breaking changes) Breaking changes
|
||||||
|
|
||||||
|
- Use `pinia` to replace `vuex`, `vuex-module-decorators`.
|
||||||
|
|
||||||
|
-Impact, if you used vuex-module-decorators yourself before, you need to transform it to pinia.
|
||||||
|
|
||||||
|
- the reason: -pinia is basically similar to vuex5api and is easy to understand. -Subsequent switching to vuex5 has a very low cost and can also be used as a third-party state management library
|
||||||
|
|
||||||
|
- Remove `useKeyPress` and use `vueuse`-`onKeyStroke` instead
|
||||||
|
- Remove `useDebounceFn` and use `vueuse`-`useDebounceFn` instead
|
||||||
|
- Remove `useThrottle` and use `vueuse`-`useThrottleFn` instead
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- Tabs support persistent storage
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- Remove `useElResize`
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Login page style fix
|
||||||
|
- Fix the known problems of the menu
|
||||||
|
- Fix the problem of theme style switching
|
||||||
|
|
||||||
|
## 2.2.0 (2021-04-06)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- Added `headerTitle` slot
|
||||||
|
- New printing example
|
||||||
|
- Added about interface
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- Remove useFullScreen function
|
||||||
|
- tinymce changed from Cdn to npm (the package size is too large)
|
||||||
|
- Dashboard refactoring
|
||||||
|
- Remove ApexCharts and examples
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Make sure the breadcrumbs are displayed correctly
|
||||||
|
- Fixed the issue of tinymce upload button disappearing in full screen mode
|
||||||
|
- Make sure that the title changes normally after logging in again
|
||||||
|
- Ensure that the background mode login is normal
|
||||||
|
- Fix TableAction click event issue
|
||||||
|
|
||||||
## 2.1.1 (2021-03-26)
|
## 2.1.1 (2021-03-26)
|
||||||
|
|
||||||
### ✨ Features
|
### ✨ Features
|
||||||
|
1050
CHANGELOG.md
1050
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,422 @@
|
|||||||
|
## 2.8.0(2021-11.03)
|
||||||
|
|
||||||
|
### 升级说明
|
||||||
|
|
||||||
|
- 包管理器由`yarn`改为 `pnpm`
|
||||||
|
- 删除`node_modules`和`yarn.lock`,全局安装`pnpm`
|
||||||
|
- 执行`pnpm install`
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **其它**
|
||||||
|
- `.env`文件中的`VITE_PROXY`配置支持单引号
|
||||||
|
- 移除 build 过程中的警告
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **BasicTable**
|
||||||
|
- 修复可编辑单元格某些情况下无法提交的问题
|
||||||
|
- 修复`inset`属性不起作用的问题
|
||||||
|
- 修复`useTable`与`BasicTable`实例的`reload`方法`await`表现不一致的问题
|
||||||
|
- 修复`clickToRowSelect`会无视行选择框 disabled 状态的问题
|
||||||
|
- 修复`BasicTable`在某些情况下,分页会被重置的问题
|
||||||
|
- 修改 `deleteTableDataRecord` 方法
|
||||||
|
- **BasicModal**
|
||||||
|
- 修复点击遮罩、按下`Esc`键都不能关闭`Modal`的问题
|
||||||
|
- 修复点击关闭按钮、最大化按钮旁边的空白区域也会导致`Modal`关闭的问题
|
||||||
|
- **BasicTree** 修复节点插槽不起作用的问题
|
||||||
|
- **CodeEditor** 修复可能会造成的`Build`失败的问题
|
||||||
|
- **BasicForm** 修复自定义 FormItem 组件的内容宽度可能超出范围的问题
|
||||||
|
- **ApiTreeSelect** 修复`params`变化未能触发重新请求 api 数据的问题
|
||||||
|
- **其它**
|
||||||
|
- 修复多标签在某些情况下关闭页签不会跳转路由的问题
|
||||||
|
- 修复部分组件可能会造成热更新异常的问题
|
||||||
|
- 修复直接`import`部分`antdv`子组件时会在 build 过程中报错的问题,如:TabPane、RadioGroup
|
||||||
|
|
||||||
|
## 2.7.2(2021-09-14)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **BasicForm** 表单组件新增`Divider`,用于较长表单的区域分割
|
||||||
|
- **BasicTable**
|
||||||
|
- 单元格编辑新增提交回调,将根据回调函数返回的结果来决定是否将数据提交到表格
|
||||||
|
- 行编辑添加校验方法,允许只校验而不提交值,以便异步保存数据成功后才提交倒表格
|
||||||
|
- 修复`rowClassName`属性无法和`striped`同时使用的问题
|
||||||
|
- 新增组件 **MarkdownViewer** 用于显示 Markdown 格式的富文本
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **CodeEditor** 修复 JSON 编辑器在格式化无效 JSON 文本时会抛出异常的问题
|
||||||
|
- **Tinymce** 修复 inline 模式在一些场景下会出现异常的问题
|
||||||
|
- **BasicTable**
|
||||||
|
- 修复可编辑单元格的内容为空时,不会显示编辑图标的问题
|
||||||
|
- 修复表尾合计行与表格主体部分的列有时候未能对齐的问题
|
||||||
|
- **MarkDown** 修复初始 value 属性的值不起作用的问题
|
||||||
|
- **BasicUpload** 修复`accept`属性不支持`MIME`及点开头的后缀名的问题
|
||||||
|
- **ApiSelect** 修复`value`属性的类型定义问题
|
||||||
|
- **其它**
|
||||||
|
- 修复部分封装组件在使用插槽时报错的问题
|
||||||
|
- 修复`useECharts`的`theme`参数不起作用的问题
|
||||||
|
- 修复`Token`失效时,按 F5 刷新页面可能会出现页面加载异常的问题
|
||||||
|
- 修复`useRedo`的不当调用可能会导致重定向`path`异常的问题
|
||||||
|
- 修复`vite`自定义模式名称不支持下划线的问题
|
||||||
|
|
||||||
|
## 2.7.1(2021-08-16)
|
||||||
|
|
||||||
|
- 升级 vue 3.2,如果运行失败,删除 node_modules 后重装即可
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **BasicTree** 添加搜索功能相关属性和方法
|
||||||
|
- **BasicForm** 新增`alwaysShowLines`用于设置折叠时保留显示的行数
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Cropper** 修复未能及时销毁的问题
|
||||||
|
- **BasicTable**
|
||||||
|
- 修复`CellFormat`无法使用`Map`类型数据的问题
|
||||||
|
- 修复可编辑单元格未能正确显示`0`值的问题
|
||||||
|
- 修复 selection-change 事件在取消勾选时未能正确触发的问题
|
||||||
|
- 修复浅色主题下的全屏状态背景颜色不正确的问题
|
||||||
|
- 修复`getSelectRows`不支持远程数据跨页选择时获取完整数据的问题
|
||||||
|
- 修复在`editComponentProps`中为编辑组件提供的`size`属性无效的问题
|
||||||
|
- **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
|
||||||
|
- **BasicModal** 修复`helpMessage`属性不起作用的问题
|
||||||
|
- **BasicButton** 修复按钮样式表现与 antd 官方不一致的问题
|
||||||
|
- **其它** 修复`useRedo`(重新加载当前路由)会丢失路由`params`数据的问题
|
||||||
|
|
||||||
|
## 2.7.0(2021-08-03)
|
||||||
|
|
||||||
|
## (破坏性更新) Breaking changes
|
||||||
|
|
||||||
|
- 将项目`tailwindcss`还原回`windicss`,尝试了`tailwindcss`,问题可能还挺多,先切换回`windicss`提高开发效率,切换成本较低。
|
||||||
|
- 目前项目不兼容地方有
|
||||||
|
- `xl:!m-4` 之类的写法需要改为`!xl:m-4`,注意只有`!`这个不兼容,没用到则不用改
|
||||||
|
- 内存溢出问题可能还在(频率低,重启下即可,重启 vite 较快)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Preview** 添加新的属性及事件
|
||||||
|
- **Dark Theme** 新增对 tailwindcss 夜间模式的支持
|
||||||
|
- **其它** 为 useLoading 添加 setTip 方法
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **ApiTreeSelect** 修复未能正确监听`params`变化的问题
|
||||||
|
- **ImgRotateDragVerify** 修复组件`resume`方法无法调用的问题
|
||||||
|
- **TableAction** 修复 stopButtonPropagation 属性某些情况下不起作用的问题
|
||||||
|
- **PageWrapper** 修复`class`属性无效的问题
|
||||||
|
- **BasicTree** 修复`checkAll`方法会影响到`disabled`状态节点的问题
|
||||||
|
- **BasicTable**
|
||||||
|
- 修复可编辑单元格不支持`ellipsis`配置的问题
|
||||||
|
- 修复全屏模式下看不到子组件弹出层(popconfirm 以及 select、treeSelect 等编辑组件)的问题
|
||||||
|
- 修复启用`expandRowByClick`时,点击不可展开的行可能会导致样式错误的问题
|
||||||
|
- 修复`pagination`属性动态改变不生效的问题
|
||||||
|
- 修复`getSelectRows`不支持树形表格子级数据的问题
|
||||||
|
- **Dark Theme** 黑暗主题下的配色问题修正
|
||||||
|
- 修复`Tree`组件被选中节点的背景颜色
|
||||||
|
- 修复`Alert`组件的颜色配置
|
||||||
|
- 修复禁用状态下的`link`类型的按钮颜色问题
|
||||||
|
- 修复`Tree`已勾选的复选框的样式问题
|
||||||
|
- **其它** 修复 useScript 未能自动移除 script 节点的问题
|
||||||
|
|
||||||
|
## 2.6.1(2021-07-19)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **NoticeList** 添加分页、超长自动省略、标题点击事件、标题删除线等功能
|
||||||
|
- **MixSider** 优化 Mix 菜单布局时 底部折叠按钮 的样式,与其它菜单布局时的风格保持一致
|
||||||
|
- **ApiTreeSelect** 扩展`antdv`的`TreeSelect`组件,支持远程数据源,用法类似`ApiSelect`
|
||||||
|
- **BasicTable**
|
||||||
|
- 新增`ApiTreeSelect`编辑组件
|
||||||
|
- 新增`headerTop`插槽
|
||||||
|
- **其它** 可以为不同的用户指定不同的后台首页:
|
||||||
|
- 在`getUserInfo`接口返回的用户信息中增加`homePath`字段(可选)即可为当前用户定制首页路径
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **BasicTable**
|
||||||
|
- 修复滚动条样式问题(移除了滚动样式补丁)
|
||||||
|
- 修复树形表格的带有展开图标的单元格的内容对齐问题
|
||||||
|
- 修复操作列的按钮在 disabled 状态下的颜色显示
|
||||||
|
- 修复可编辑单元格的值不能直接通过修改`dataSource`来更新显示的问题
|
||||||
|
- 修复使用`ApiSelect`编辑组件时的数据回显问题
|
||||||
|
- 修复在部分场景下编辑组件可能会报`onXXX`类型错误的问题
|
||||||
|
- **TableAction**
|
||||||
|
- 仅在 `action.tooltip`存在的情况下 才创建 Tooltip 组件
|
||||||
|
- 修复组件内的圆形按钮内容没有居中的问题
|
||||||
|
- **AppSearch** 修复可能会搜索隐藏菜单的问题
|
||||||
|
- **BasicUpload** 修复处理非`array`值时报错的问题
|
||||||
|
- **Form** 修复`FormItem`的`suffix`插槽样式问题
|
||||||
|
- **Menu**
|
||||||
|
- 修复左侧混合菜单的悬停触发逻辑
|
||||||
|
- 修复顶栏菜单在显示包含需要隐藏的菜单项目时出错的问题
|
||||||
|
- 修复悬停触发模式下左侧混合菜单会在没有子菜单且被激活时直接跳转路由
|
||||||
|
- **Breadcrumb** 修复带有重定向的菜单点击无法跳转的问题
|
||||||
|
- **Markdown** 修复初始化异常以及不能正确地动态设置 value 的问题
|
||||||
|
- **Modal** 确保 props 正确被传递
|
||||||
|
- **MultipleTab** 修复可能会意外创建登录路由标签的问题
|
||||||
|
- **BasicTree** 修复搜索功能可能导致`checkedKeys`丢失的问题
|
||||||
|
- **CodeEditor** 修复 value 不支持 v-model 用法的问题
|
||||||
|
- **CountdownInput** 修复不支持`input`插槽的问题
|
||||||
|
- **ApiSelect** 修复`options-change`事件参数不是`select`所使用的标准`options`数据的问题
|
||||||
|
- **其它**
|
||||||
|
- 修复菜单默认折叠的配置不起作用的问题
|
||||||
|
- 修复`safari`浏览器报错导致网站打不开
|
||||||
|
- 修复在 window 上,拉取代码后 eslint 因 endOfLine 而报错问题
|
||||||
|
- 修复因动态路由而产生的 `Vue Router warn`
|
||||||
|
|
||||||
|
### 🎫 Chores
|
||||||
|
|
||||||
|
- 添加 test 环境测试命令
|
||||||
|
|
||||||
|
## 2.6.0(2021-07-04)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Axios** 新增`withToken`配置,用于控制请求是否携带 token
|
||||||
|
- **BasicUpload**
|
||||||
|
- 新增在预览 `Modal` 中删除文件时触发`preview-delete` 事件
|
||||||
|
- `value` 支持 `v-model` 用法
|
||||||
|
- **Route 配置**
|
||||||
|
- 增加`ignoreRoute`用于在`ROUTE_MAPPING`或`BACK`权限模式下仅生成菜单
|
||||||
|
- 增加`hidePathForChildren`配置,标识为子项目生成菜单时忽略本级`path`
|
||||||
|
- **TableAction** 新增`tooltip`配置,可以为按钮增加 tooltip 提示
|
||||||
|
- **CropperAvatar**
|
||||||
|
- 新增`value`用于设置当前头像
|
||||||
|
- 新增`onChange`用于接受头像剪裁并上传成功事件
|
||||||
|
- 新增`btnText`、`btnProps` 用于自定义上传按钮文案和属性
|
||||||
|
- 为剪裁`Modal`内的操作按钮添加工具提示
|
||||||
|
- **Modal** 为右上角的操作按钮添加工具提示
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Modal**
|
||||||
|
- 修复点击遮罩不能关闭的问题
|
||||||
|
- 修复 `setModalProps` 不支持设置 `defaultFullscreen` 的问题
|
||||||
|
- **Table**
|
||||||
|
- 修复 `editComponentProps` 不支持 `onChange`的问题
|
||||||
|
- 修复启用`clickToRowSelect`时,点击行不会触发`selection-change`事件的问题
|
||||||
|
- 修复全局配置`fetchSetting`可能会被局部配置意外修改的问题
|
||||||
|
- 修复`handleSearchInfoFn`的参数包含多余空白键的问题
|
||||||
|
- 修复为 table 提供 rowSelection.onChange 时,无法手动变更 table 的选中项的问题
|
||||||
|
- 修复滚动条在无需显示的时候仍然持续显示的问题
|
||||||
|
- **Icon** 修复 SvgIcon 缺少部分样式的问题
|
||||||
|
- **Menu**
|
||||||
|
- 修复路由映射模式下,单级菜单刷新不会激活
|
||||||
|
- 修复侧边菜单底部的折叠自定义失效的问题
|
||||||
|
- **Form** 修复`submitButtonOptions`和`resetButtonOptions`的类型定义
|
||||||
|
- **PopConfirmButton** 移除`Button`上多余的`title`
|
||||||
|
- **Axios** 修复非`GET`请求时,无法同时提交`params`和`data`数据的问题
|
||||||
|
- **其它**
|
||||||
|
- 修复锁屏功能可以通过刷新页面或复制 URL 打开新的浏览器标签来跳过锁定状态的问题
|
||||||
|
- 修复多个窗口同时打开页面时,`Token` 不会同步的问题
|
||||||
|
- 修复`ROLE`权限模式下`hasPermission`不工作的问题
|
||||||
|
- **Table** 修复`handleSearchInfoFn`的参数包含多余空白键的问题
|
||||||
|
- **Tailwindcss** 移除控制台警告
|
||||||
|
|
||||||
|
## 2.5.2(2021-06-27)
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- **Icon** 移除 Icon 组件全局注册,防止特定情况下热更新问题
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **Menu** 新增 `permissionMode=PermissionModeEnum.ROUTE_MAPPING`模式
|
||||||
|
- 项目默认改为该模式,删除原有菜单文件
|
||||||
|
- 如果之前已经写好了菜单,可以更改为`PermissionModeEnum.ROLE`模式即可
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Drawer** 修复`visible`状态异常
|
||||||
|
|
||||||
|
## 2.5.1(2021-06-26)
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- 升级`vue`与`ant-design-vue`版本,解决兼容问题
|
||||||
|
- **Tree** 性能优化
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Table** 修复分页抖动问题
|
||||||
|
- **Upload** 确保携带自定义参数
|
||||||
|
- **Dropdown** 修复 popConfirm 的图标显示问题
|
||||||
|
- **Table** 修复树形表格的编辑事件不正常的问题
|
||||||
|
- **Table** 修复当表格数据为空时,getDataSource 返回的值不是表格所使用的数据源的问题
|
||||||
|
|
||||||
|
## 2.5.0(2021-06-20)
|
||||||
|
|
||||||
|
## (破坏性更新) Breaking changes
|
||||||
|
|
||||||
|
- 将项目`windicss`改为`tailwindcss`,解决内存溢出问题
|
||||||
|
- 目前项目不兼容地方有
|
||||||
|
- `!xl:m-4` 之类的写法需要改为`xl:!m-4`,注意只有`!`这个不兼容,没用到则不用改
|
||||||
|
- `windicss`自身新增的特性需要调整,比如`Attribute`模式不兼容
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- 移除`useExpose`,使用组件自身提供的`expose`代替
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- **Locale** 合并多语言文件,减少文件数量
|
||||||
|
- **Utils** Mitt 默认导出由 `Class` 改为 `Function`
|
||||||
|
- **Axios** `isTransformRequestResult`更名为`isTransformResponse`
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- **CropperImage** `Cropper` 头像裁剪新增圆形裁剪功能
|
||||||
|
- **CropperAvatar** 新增头像上传组件
|
||||||
|
- **Drawer** `useDrawer`新增`closeDrawer`函数
|
||||||
|
- **Preview** 新增`createImgPreview`图片预览函数
|
||||||
|
- **Setup** 新增引导页示例
|
||||||
|
- **Tests** 添加 jest 测试套件,暂不支持 Vue 组件单测
|
||||||
|
- **Axios** 新增`authenticationScheme`配置,用于指定认证方案
|
||||||
|
- **Setting** 新增 `sessionTimeoutProcessing` 项目配置项,用于配置会话超时如何处理
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Modal** 修复全屏高度计算错误
|
||||||
|
- **Modal** 修复关闭事件触发多次问题
|
||||||
|
- **PageWrapper** 修复高度计算问题
|
||||||
|
- **FlowChart** 修复拖放菜单丢失
|
||||||
|
- 修复后台模式下,Iframe 路由错误
|
||||||
|
- **PageWrapper** 修复 footer 与全局页脚同时开启时的高度计算问题
|
||||||
|
- **Menu** 修复菜单折叠动画抖动问题
|
||||||
|
- **Store**修复 pinia 版本升级之后类型错误
|
||||||
|
|
||||||
|
## 2.4.2(2021-06-10)
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- `CountTo`组件重构
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- `radioButtonGroup` 支持`boolean`值
|
||||||
|
- `useModalInner` 新增 `redoModalHeight`用于在 Modal 内部重设`Modal`高度
|
||||||
|
- `useECharts` 新增`getInstance`用于获取`echart`实例
|
||||||
|
- `TableAction` 新增 `stopButtonPropagation` 阻止操作按钮点击事件冒泡
|
||||||
|
- `BasicTable` 在行编辑模式下,可以获取或设置其它处于列的编辑组件的值
|
||||||
|
- `ApiSelect` 组件在`params`改变后会自动重新`fetch`数据
|
||||||
|
- `TableImg` 组件改进
|
||||||
|
- `BasicTable` 新增 `columns-change` 事件用于监听用户改变列排序、展示、固定状态
|
||||||
|
- `Tinymce`支持动态修改 readonly
|
||||||
|
- `BasicTable`新增`updateTableDataRecord`方法用于更新指定行数据
|
||||||
|
- `useModal`新增`closeModal`方法用于关闭`Modal`
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- 修复`redoModalHeight`不能减小高度的问题
|
||||||
|
- 修复 `BasicForm`设置 schemas 数据不生效的问题
|
||||||
|
- 修复多标签可能导致`KeepAlive`失效的问题
|
||||||
|
- 修复默认的`axios`拦截器不能处理自定义 code 的问题
|
||||||
|
- 修复锁屏弹窗的高度问题
|
||||||
|
- 修复`BaiscTable`的`列展示`复选框的半选状态显示不正确的问题
|
||||||
|
- 修复`BasicUpload`组件的预览列表某些情况下不能显示的问题
|
||||||
|
- 修复`RadioButtonGroup`的`options`设置`disabled`不生效的问题
|
||||||
|
- 修复`Tinymce`组件在只读模式下上传图片的按钮仍然可用的问题
|
||||||
|
- 修复`BasicForm`特定情况下的卡顿问题
|
||||||
|
- 修复"目录"路由不起作用的问题
|
||||||
|
|
||||||
|
## 2.4.1(2021-06-01)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- 可编辑表格新增`DatePicker`和`TimePicker`组件
|
||||||
|
- `Tree` 组件新增`defaultExpandLevel`配置
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- 菜单搜索默认聚焦
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- 修复`CodeEditor`已知问题
|
||||||
|
- 修复`i18n`控制台警告问题
|
||||||
|
- 修复可编辑表格`align`配置不生效问题
|
||||||
|
- 确保`axios`只对`Object`参数进行处理
|
||||||
|
- 修复`Tree`组件 `defaultExpandAll` 配置失效
|
||||||
|
- 修复`TableAction` 分割线丢失问题
|
||||||
|
- 修复表格已知问题
|
||||||
|
- 修复首次加载或改变语言导致重载时,不会设置 HTML 的 lang 属性
|
||||||
|
|
||||||
|
## 2.4.0 (2021-05-25)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- 新增图形编辑器示例
|
||||||
|
- 新增代码编辑器(包含 Json 编辑器)
|
||||||
|
- 新增 `JsonPreview`Json 数据查看组件
|
||||||
|
- 表格的数据列(column)和操作列(actionColumn)的字段可以根据权限和业务来控制是否显示
|
||||||
|
- 新增权限控制表格示例(AuthColumn.vue)
|
||||||
|
- 新增用户登录过期示例
|
||||||
|
|
||||||
|
### ⚡ Performance Improvements
|
||||||
|
|
||||||
|
- 合并部分语言文件,减少文件数量
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- 修复黑暗主题刷新闪烁的白屏
|
||||||
|
- 修复标签页关闭其他功能失效问题
|
||||||
|
- 修复表单已知问题
|
||||||
|
- 修复自动锁屏失效
|
||||||
|
|
||||||
|
## 2.3.0 (2021-04-10)
|
||||||
|
|
||||||
|
## (破坏性更新) Breaking changes
|
||||||
|
|
||||||
|
- 使用 `pinia` 替换 `vuex`,`vuex-module-decorators`。
|
||||||
|
|
||||||
|
- 影响,之前如果有自己使用 vuex-module-decorators,需要改造为 pinia。
|
||||||
|
- 原因:
|
||||||
|
- pinia 于 vuex5api 基本类似,且简单易懂。
|
||||||
|
- 后续切换 vuex5 成本非常低,也可以当作第三方状态管理库使用
|
||||||
|
|
||||||
|
- 移除 `useKeyPress` 使用`vueuse`-`onKeyStroke`代替
|
||||||
|
- 移除 `useDebounceFn` 使用`vueuse`-`useDebounceFn`代替
|
||||||
|
- 移除 `useThrottle` 使用`vueuse`-`useThrottleFn`代替
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- 标签页支持持久化保存
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- 移除 `useElResize`
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- 登录页样式修复
|
||||||
|
- 修复菜单已知问题
|
||||||
|
- 修复主题样式切换问题
|
||||||
|
|
||||||
|
## 2.2.0 (2021-04-06)
|
||||||
|
|
||||||
|
### ✨ Features
|
||||||
|
|
||||||
|
- 新增`headerTitle` slot
|
||||||
|
- 新增打印示例
|
||||||
|
- 新增关于界面
|
||||||
|
|
||||||
|
### ✨ Refactor
|
||||||
|
|
||||||
|
- 移除 useFullScreen 函数
|
||||||
|
- tinymce 由 Cdn 改为 npm(打包体积偏大)
|
||||||
|
- Dashboard 重构
|
||||||
|
- 移除 ApexCharts 及示例
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- 确保面包屑正确的显示图标
|
||||||
|
- 修复 tinymce 上传按钮全屏模式下消失问题
|
||||||
|
- 确保 title 在重新登录后正常改变
|
||||||
|
- 确保后台模式登录正常
|
||||||
|
- 修复 TableAction 点击事件问题
|
||||||
|
|
||||||
## 2.1.1 (2021-03-26)
|
## 2.1.1 (2021-03-26)
|
||||||
|
|
||||||
### ✨ Features
|
### ✨ Features
|
||||||
|
17
README.md
17
README.md
@@ -21,11 +21,11 @@ Vue Vben Admin is a free and open source middle and back-end template. Using the
|
|||||||
- **Authority** Built-in complete dynamic routing permission generation scheme.
|
- **Authority** Built-in complete dynamic routing permission generation scheme.
|
||||||
- **Component** Multiple commonly used components are encapsulated twice
|
- **Component** Multiple commonly used components are encapsulated twice
|
||||||
|
|
||||||
## 预览
|
## Preview
|
||||||
|
|
||||||
- [vue-vben-admin](https://vvbin.cn/next/) - Full version Chinese site
|
- [vue-vben-admin](https://vben.vvbin.cn/) - Full version Chinese site
|
||||||
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - Full version of the github site
|
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - Full version of the github site
|
||||||
- [vben-admin-thin-next](https://vvbin.cn/thin/next/) - Simplified Chinese site
|
- [vben-admin-thin-next](https://vben.vvbin.cn/thin/next/) - Simplified Chinese site
|
||||||
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) -Simplified github site
|
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) -Simplified github site
|
||||||
|
|
||||||
Test account: vben/123456
|
Test account: vben/123456
|
||||||
@@ -44,7 +44,7 @@ Open the project in Gitpod (free online dev environment for GitHub) and start co
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
[Document](https://vvbin.cn/doc-next/)
|
[Document](https://doc.vvbin.cn/)
|
||||||
|
|
||||||
## Preparation
|
## Preparation
|
||||||
|
|
||||||
@@ -70,20 +70,20 @@ git clone https://github.com/anncwb/vue-vben-admin.git
|
|||||||
```bash
|
```bash
|
||||||
cd vue-vben-admin
|
cd vue-vben-admin
|
||||||
|
|
||||||
yarn install
|
pnpm install
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- run
|
- run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn serve
|
pnpm serve
|
||||||
```
|
```
|
||||||
|
|
||||||
- build
|
- build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn build
|
pnpm build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Change Log
|
## Change Log
|
||||||
@@ -131,9 +131,6 @@ If these plugins are helpful to you, you can give a star support
|
|||||||
|
|
||||||
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - Used for local and development environment data mock
|
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - Used for local and development environment data mock
|
||||||
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - Used for html template conversion and compression
|
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - Used for html template conversion and compression
|
||||||
- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - Used for component library style introduction on demand
|
|
||||||
- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - Used for online switching of theme colors and other color-related configurations
|
|
||||||
- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - Used to pack compressed image resources
|
|
||||||
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - Used to pack input .gz|.brotil files
|
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - Used to pack input .gz|.brotil files
|
||||||
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - Used to quickly generate svg sprite
|
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - Used to quickly generate svg sprite
|
||||||
|
|
||||||
|
@@ -23,9 +23,9 @@ Vue Vben Admin 是一个免费开源的中后台模版。使用了最新的`vue3
|
|||||||
|
|
||||||
## 预览
|
## 预览
|
||||||
|
|
||||||
- [vue-vben-admin](https://vvbin.cn/next/) - 完整版中文站点
|
- [vue-vben-admin](https://vben.vvbin.cn/) - 完整版中文站点
|
||||||
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - 完整版 github 站点
|
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - 完整版 github 站点
|
||||||
- [vben-admin-thin-next](https://vvbin.cn/thin/next/) - 简化版中文站点
|
- [vben-admin-thin-next](https://vben.vvbin.cn/thin/next/) - 简化版中文站点
|
||||||
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) - 简化版 github 站点
|
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) - 简化版 github 站点
|
||||||
|
|
||||||
测试账号: vben/123456
|
测试账号: vben/123456
|
||||||
@@ -44,7 +44,7 @@ Vue Vben Admin 是一个免费开源的中后台模版。使用了最新的`vue3
|
|||||||
|
|
||||||
## 文档
|
## 文档
|
||||||
|
|
||||||
[文档地址](https://vvbin.cn/doc-next/)
|
[文档地址](https://doc.vvbin.cn/)
|
||||||
|
|
||||||
## 准备
|
## 准备
|
||||||
|
|
||||||
@@ -70,20 +70,20 @@ git clone https://github.com/anncwb/vue-vben-admin.git
|
|||||||
```bash
|
```bash
|
||||||
cd vue-vben-admin
|
cd vue-vben-admin
|
||||||
|
|
||||||
yarn install
|
pnpm install
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- 运行
|
- 运行
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn serve
|
pnpm serve
|
||||||
```
|
```
|
||||||
|
|
||||||
- 打包
|
- 打包
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn build
|
pnpm build
|
||||||
```
|
```
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
@@ -141,15 +141,13 @@ yarn build
|
|||||||
|
|
||||||
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock
|
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock
|
||||||
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩
|
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩
|
||||||
- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - 用于组件库样式按需引入
|
|
||||||
- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于在线切换主题色等颜色相关配置
|
|
||||||
- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于打包压缩图片资源
|
|
||||||
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输出.gz|.brotil 文件
|
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输出.gz|.brotil 文件
|
||||||
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图
|
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图
|
||||||
|
|
||||||
## 后台整合示例
|
## 后台整合示例
|
||||||
|
|
||||||
- [lamp-cloud](https://github.com/zuihou/lamp-cloud) - 基于 SpringCloud Alibaba 的微服务中后台快速开发平台
|
- [lamp-cloud](https://github.com/zuihou/lamp-cloud) - 基于 SpringCloud Alibaba 的微服务中后台快速开发平台
|
||||||
|
- [matecloud](https://github.com/matevip/matecloud) - MateCloud 微服务脚手架,基于 Spring Cloud 2020.0.3、SpringBoot 2.5.3 的全开源平台
|
||||||
|
|
||||||
## 维护者
|
## 维护者
|
||||||
|
|
||||||
|
0
apps/portal-view/.gitkeep
Normal file
0
apps/portal-view/.gitkeep
Normal file
15
apps/test-server/README.md
Normal file
15
apps/test-server/README.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Test Server
|
||||||
|
|
||||||
|
It is used to start the test interface service, which can test the upload, websocket, login and other interfaces.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
|
cd ./test/server
|
||||||
|
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
pnpm run start
|
||||||
|
|
||||||
|
```
|
18
apps/test-server/controller/FileController.ts
Normal file
18
apps/test-server/controller/FileController.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import FileService from '../service/FileService';
|
||||||
|
|
||||||
|
class FileController {
|
||||||
|
private service: FileService = new FileService();
|
||||||
|
|
||||||
|
upload = async (ctx) => {
|
||||||
|
const files = ctx.request.files.file;
|
||||||
|
console.log(files);
|
||||||
|
|
||||||
|
if (files.length === undefined) {
|
||||||
|
this.service.upload(ctx, files, false);
|
||||||
|
} else {
|
||||||
|
this.service.upload(ctx, files, true);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export default new FileController();
|
15
apps/test-server/controller/UserController.ts
Normal file
15
apps/test-server/controller/UserController.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import UserService from '../service/UserService';
|
||||||
|
|
||||||
|
class UserController {
|
||||||
|
private service: UserService = new UserService();
|
||||||
|
|
||||||
|
login = async (ctx) => {
|
||||||
|
ctx.body = await this.service.login();
|
||||||
|
};
|
||||||
|
|
||||||
|
getUserInfoById = async (ctx) => {
|
||||||
|
ctx.body = await this.service.getUserInfoById();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export default new UserController();
|
18
apps/test-server/ecosystem.config.js
Normal file
18
apps/test-server/ecosystem.config.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
const { name } = require('./package.json');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
apps: [
|
||||||
|
{
|
||||||
|
name,
|
||||||
|
script: path.resolve(__dirname, './dist/index.js'),
|
||||||
|
instances: require('os').cpus().length,
|
||||||
|
autorestart: true,
|
||||||
|
watch: true,
|
||||||
|
env_production: {
|
||||||
|
NODE_ENV: 'production',
|
||||||
|
PORT: 8080,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
63
apps/test-server/index.ts
Normal file
63
apps/test-server/index.ts
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
import Koa from 'koa';
|
||||||
|
import path from 'path';
|
||||||
|
import Router from 'koa-router';
|
||||||
|
import body from 'koa-body';
|
||||||
|
import cors from 'koa2-cors';
|
||||||
|
import koaStatic from 'koa-static';
|
||||||
|
import websockify from 'koa-websocket';
|
||||||
|
import route from 'koa-route';
|
||||||
|
|
||||||
|
import AppRoutes from './routes';
|
||||||
|
|
||||||
|
const PORT = 3300;
|
||||||
|
|
||||||
|
const app = websockify(new Koa());
|
||||||
|
|
||||||
|
app.ws.use(function (ctx, next) {
|
||||||
|
ctx.websocket.send('connection succeeded!');
|
||||||
|
return next(ctx);
|
||||||
|
});
|
||||||
|
|
||||||
|
app.ws.use(
|
||||||
|
route.all('/test', function (ctx) {
|
||||||
|
// ctx.websocket.send('Hello World');
|
||||||
|
ctx.websocket.on('message', function (message) {
|
||||||
|
// do something with the message from client
|
||||||
|
|
||||||
|
if (message !== 'ping') {
|
||||||
|
const data = JSON.stringify({
|
||||||
|
id: Math.ceil(Math.random() * 1000),
|
||||||
|
time: new Date().getTime(),
|
||||||
|
res: `${message}`,
|
||||||
|
});
|
||||||
|
ctx.websocket.send(data);
|
||||||
|
}
|
||||||
|
console.log(message);
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
const router = new Router();
|
||||||
|
|
||||||
|
// router
|
||||||
|
AppRoutes.forEach((route) => router[route.method](route.path, route.action));
|
||||||
|
|
||||||
|
app.use(cors());
|
||||||
|
app.use(
|
||||||
|
body({
|
||||||
|
encoding: 'gzip',
|
||||||
|
multipart: true,
|
||||||
|
formidable: {
|
||||||
|
// uploadDir: path.join(__dirname, '/upload/'), // 设置文件上传目录
|
||||||
|
keepExtensions: true,
|
||||||
|
maxFieldsSize: 20 * 1024 * 1024,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
app.use(router.routes());
|
||||||
|
app.use(router.allowedMethods());
|
||||||
|
app.use(koaStatic(path.join(__dirname)));
|
||||||
|
|
||||||
|
app.listen(PORT, () => {
|
||||||
|
console.log(`Application started successfully: http://localhost:${PORT}`);
|
||||||
|
});
|
8
apps/test-server/nodemon.json
Normal file
8
apps/test-server/nodemon.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"watch": ["src"],
|
||||||
|
"ext": "ts",
|
||||||
|
"exec": "ts-node -r tsconfig-paths/register index.ts",
|
||||||
|
"events": {
|
||||||
|
"restart": "clear"
|
||||||
|
}
|
||||||
|
}
|
36
apps/test-server/package.json
Normal file
36
apps/test-server/package.json
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"name": "server",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"compile": "rimraf ./dist && tsup ./index.ts --dts --format cjs,esm ",
|
||||||
|
"prod": "npx pm2 start ecosystem.config.js --env production",
|
||||||
|
"restart": "pm2 restart ecosystem.config.js --env production",
|
||||||
|
"start": "nodemon",
|
||||||
|
"stop": "npx pm2 stop ecosystem.config.js"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"fs-extra": "^11.1.1",
|
||||||
|
"koa": "^2.14.1",
|
||||||
|
"koa-body": "^6.0.1",
|
||||||
|
"koa-bodyparser": "^4.4.0",
|
||||||
|
"koa-route": "^3.2.0",
|
||||||
|
"koa-router": "^12.0.0",
|
||||||
|
"koa-static": "^5.0.0",
|
||||||
|
"koa-websocket": "^7.0.0",
|
||||||
|
"koa2-cors": "^2.0.6"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/koa": "^2.13.6",
|
||||||
|
"@types/koa-bodyparser": "^5.0.2",
|
||||||
|
"@types/koa-router": "^7.4.4",
|
||||||
|
"@types/node": "^18.15.11",
|
||||||
|
"nodemon": "^2.0.22",
|
||||||
|
"pm2": "^5.3.0",
|
||||||
|
"rimraf": "^4.4.1",
|
||||||
|
"ts-node": "^10.9.1",
|
||||||
|
"tsconfig-paths": "^4.2.0",
|
||||||
|
"tsup": "^6.7.0",
|
||||||
|
"typescript": "^5.0.3"
|
||||||
|
}
|
||||||
|
}
|
23
apps/test-server/routes.ts
Normal file
23
apps/test-server/routes.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import UserController from './controller/UserController';
|
||||||
|
import FileController from './controller/FileController';
|
||||||
|
|
||||||
|
export default [
|
||||||
|
// user
|
||||||
|
{
|
||||||
|
path: '/login',
|
||||||
|
method: 'post',
|
||||||
|
action: UserController.login,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/getUserInfoById',
|
||||||
|
method: 'get',
|
||||||
|
action: UserController.getUserInfoById,
|
||||||
|
},
|
||||||
|
|
||||||
|
// file
|
||||||
|
{
|
||||||
|
path: '/upload',
|
||||||
|
method: 'post',
|
||||||
|
action: FileController.upload,
|
||||||
|
},
|
||||||
|
];
|
54
apps/test-server/service/FileService.ts
Normal file
54
apps/test-server/service/FileService.ts
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
import path from 'path';
|
||||||
|
import fs from 'fs-extra';
|
||||||
|
|
||||||
|
const uploadUrl = 'http://localhost:3300/static/upload';
|
||||||
|
const filePath = path.join(__dirname, '../static/upload/');
|
||||||
|
|
||||||
|
fs.ensureDir(filePath);
|
||||||
|
export default class UserService {
|
||||||
|
async upload(ctx, files, isMultiple) {
|
||||||
|
let fileReader, fileResource, writeStream;
|
||||||
|
|
||||||
|
const fileFunc = function (file) {
|
||||||
|
fileReader = fs.createReadStream(file.path);
|
||||||
|
fileResource = filePath + `/${file.name}`;
|
||||||
|
console.log(fileResource);
|
||||||
|
|
||||||
|
writeStream = fs.createWriteStream(fileResource);
|
||||||
|
fileReader.pipe(writeStream);
|
||||||
|
};
|
||||||
|
|
||||||
|
const returnFunc = function (flag) {
|
||||||
|
if (flag) {
|
||||||
|
let url = '';
|
||||||
|
for (let i = 0; i < files.length; i++) {
|
||||||
|
url += uploadUrl + `/${files[i].name},`;
|
||||||
|
}
|
||||||
|
url = url.replace(/,$/gi, '');
|
||||||
|
ctx.body = {
|
||||||
|
url: url,
|
||||||
|
code: 0,
|
||||||
|
message: 'upload Success!',
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
ctx.body = {
|
||||||
|
url: uploadUrl + `/${files.name}`,
|
||||||
|
code: 0,
|
||||||
|
message: 'upload Success!',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
console.log(isMultiple, files.length);
|
||||||
|
|
||||||
|
if (isMultiple) {
|
||||||
|
for (let i = 0; i < files.length; i++) {
|
||||||
|
const f1 = files[i];
|
||||||
|
fileFunc(f1);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fileFunc(files);
|
||||||
|
}
|
||||||
|
fs.ensureDir(filePath);
|
||||||
|
returnFunc(isMultiple);
|
||||||
|
}
|
||||||
|
}
|
25
apps/test-server/service/UserService.ts
Normal file
25
apps/test-server/service/UserService.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import { Result } from '../utils';
|
||||||
|
|
||||||
|
const fakeUserInfo = {
|
||||||
|
userId: '1',
|
||||||
|
username: 'vben',
|
||||||
|
realName: 'Vben Admin',
|
||||||
|
desc: 'manager',
|
||||||
|
password: '123456',
|
||||||
|
token: 'fakeToken1',
|
||||||
|
roles: [
|
||||||
|
{
|
||||||
|
roleName: 'Super Admin',
|
||||||
|
value: 'super',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
export default class UserService {
|
||||||
|
async login() {
|
||||||
|
return Result.success(fakeUserInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
async getUserInfoById() {
|
||||||
|
return Result.success(fakeUserInfo);
|
||||||
|
}
|
||||||
|
}
|
7
apps/test-server/tsconfig.json
Normal file
7
apps/test-server/tsconfig.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"extends": "@vben/ts-config/node-server.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"noImplicitAny": false
|
||||||
|
}
|
||||||
|
}
|
9
apps/test-server/utils.ts
Normal file
9
apps/test-server/utils.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
export class Result {
|
||||||
|
static success(data: any) {
|
||||||
|
return {
|
||||||
|
code: 0,
|
||||||
|
success: true,
|
||||||
|
result: data,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
@@ -1,104 +0,0 @@
|
|||||||
import { generate } from '@ant-design/colors';
|
|
||||||
|
|
||||||
export const primaryColor = '#0960bd';
|
|
||||||
|
|
||||||
export const themeMode = 'light';
|
|
||||||
|
|
||||||
export type ThemeMode = 'dark' | 'light';
|
|
||||||
|
|
||||||
type Fn = (...arg: any) => any;
|
|
||||||
|
|
||||||
export interface GenerateColorsParams {
|
|
||||||
mixLighten: Fn;
|
|
||||||
mixDarken: Fn;
|
|
||||||
tinycolor: any;
|
|
||||||
color?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function generateAntColors(color: string, mode: ThemeMode) {
|
|
||||||
return generate(color, {
|
|
||||||
theme: mode == 'dark' ? 'dark' : 'default',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getThemeColors(color?: string, theme?: ThemeMode) {
|
|
||||||
const tc = color || primaryColor;
|
|
||||||
const tm = theme || themeMode;
|
|
||||||
const colors = generateAntColors(tc, tm);
|
|
||||||
const primary = colors[5];
|
|
||||||
const modeColors = generateAntColors(primary, tm === 'dark' ? 'light' : 'dark');
|
|
||||||
|
|
||||||
return [...colors, ...modeColors];
|
|
||||||
}
|
|
||||||
|
|
||||||
export function generateColors({
|
|
||||||
color = primaryColor,
|
|
||||||
mixLighten,
|
|
||||||
mixDarken,
|
|
||||||
tinycolor,
|
|
||||||
}: GenerateColorsParams) {
|
|
||||||
const arr = new Array(19).fill(0);
|
|
||||||
const lightens = arr.map((_t, i) => {
|
|
||||||
return mixLighten(color, i / 5);
|
|
||||||
});
|
|
||||||
|
|
||||||
const darkens = arr.map((_t, i) => {
|
|
||||||
return mixDarken(color, i / 5);
|
|
||||||
});
|
|
||||||
|
|
||||||
const alphaColors = arr.map((_t, i) => {
|
|
||||||
return tinycolor(color)
|
|
||||||
.setAlpha(i / 20)
|
|
||||||
.toRgbString();
|
|
||||||
});
|
|
||||||
|
|
||||||
const tinycolorLightens = arr
|
|
||||||
.map((_t, i) => {
|
|
||||||
return tinycolor(color)
|
|
||||||
.lighten(i * 5)
|
|
||||||
.toHexString();
|
|
||||||
})
|
|
||||||
.filter((item) => item !== '#ffffff');
|
|
||||||
|
|
||||||
const tinycolorDarkens = arr
|
|
||||||
.map((_t, i) => {
|
|
||||||
return tinycolor(color)
|
|
||||||
.darken(i * 5)
|
|
||||||
.toHexString();
|
|
||||||
})
|
|
||||||
.filter((item) => item !== '#000000');
|
|
||||||
return [...lightens, ...darkens, ...alphaColors, ...tinycolorDarkens, ...tinycolorLightens];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* less global variable
|
|
||||||
*/
|
|
||||||
export function generateModifyVars() {
|
|
||||||
const palettes = generateAntColors(primaryColor, themeMode);
|
|
||||||
const primary = palettes[5];
|
|
||||||
|
|
||||||
const primaryColorObj: Record<string, string> = {};
|
|
||||||
|
|
||||||
for (let index = 0; index < 10; index++) {
|
|
||||||
primaryColorObj[`primary-${index + 1}`] = palettes[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
'primary-color': primary,
|
|
||||||
...primaryColorObj,
|
|
||||||
'info-color': primary,
|
|
||||||
'processing-color': primary,
|
|
||||||
'success-color': '#55D187', // Success color
|
|
||||||
'error-color': '#ED6F6F', // False color
|
|
||||||
'warning-color': '#EFBD47', // Warning color
|
|
||||||
'disabled-color': 'rgba(0, 0, 0, 0.25)', // Failure color
|
|
||||||
'heading-color': 'rgba(0, 0, 0, 0.85)', // Title color
|
|
||||||
'text-color': 'rgba(0, 0, 0, 0.85)', // Main text color
|
|
||||||
'text-color-secondary': 'rgba(0, 0, 0, 0.45)', // Subtext color
|
|
||||||
'font-size-base': '14px', // Main font size
|
|
||||||
'box-shadow-base': '0 2px 8px rgba(0, 0, 0, 0.15)', // Floating shadow
|
|
||||||
'border-color-base': '#d9d9d9', // Border color,
|
|
||||||
'border-radius-base': '2px', // Component/float fillet
|
|
||||||
'link-color': primary, // Link color
|
|
||||||
};
|
|
||||||
}
|
|
@@ -1,6 +0,0 @@
|
|||||||
/**
|
|
||||||
* The name of the configuration file entered in the production environment
|
|
||||||
*/
|
|
||||||
export const GLOB_CONFIG_FILE_NAME = '_app.config.js';
|
|
||||||
|
|
||||||
export const OUTPUT_DIR = 'dist';
|
|
@@ -1,72 +0,0 @@
|
|||||||
import path from 'path';
|
|
||||||
import fs from 'fs-extra';
|
|
||||||
import inquirer from 'inquirer';
|
|
||||||
import chalk from 'chalk';
|
|
||||||
import pkg from '../../../package.json';
|
|
||||||
|
|
||||||
async function generateIcon() {
|
|
||||||
const dir = path.resolve(process.cwd(), 'node_modules/@iconify/json');
|
|
||||||
|
|
||||||
const raw = await fs.readJSON(path.join(dir, 'collections.json'));
|
|
||||||
|
|
||||||
const collections = Object.entries(raw).map(([id, v]) => ({
|
|
||||||
...(v as any),
|
|
||||||
id,
|
|
||||||
}));
|
|
||||||
|
|
||||||
const choices = collections.map((item) => ({ key: item.id, value: item.id, name: item.name }));
|
|
||||||
|
|
||||||
inquirer
|
|
||||||
.prompt([
|
|
||||||
{
|
|
||||||
type: 'list',
|
|
||||||
name: 'useType',
|
|
||||||
choices: [
|
|
||||||
{ key: 'local', value: 'local', name: 'Local' },
|
|
||||||
{ key: 'onLine', value: 'onLine', name: 'OnLine' },
|
|
||||||
],
|
|
||||||
message: 'How to use icons?',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'list',
|
|
||||||
name: 'iconSet',
|
|
||||||
choices: choices,
|
|
||||||
message: 'Select the icon set that needs to be generated?',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'input',
|
|
||||||
name: 'output',
|
|
||||||
message: 'Select the icon set that needs to be generated?',
|
|
||||||
default: 'src/components/Icon/data',
|
|
||||||
},
|
|
||||||
])
|
|
||||||
.then(async (answers) => {
|
|
||||||
const { iconSet, output, useType } = answers;
|
|
||||||
const outputDir = path.resolve(process.cwd(), output);
|
|
||||||
fs.ensureDir(outputDir);
|
|
||||||
const genCollections = collections.filter((item) => [iconSet].includes(item.id));
|
|
||||||
const prefixSet: string[] = [];
|
|
||||||
for (const info of genCollections) {
|
|
||||||
const data = await fs.readJSON(path.join(dir, 'json', `${info.id}.json`));
|
|
||||||
if (data) {
|
|
||||||
const { prefix } = data;
|
|
||||||
const isLocal = useType === 'local';
|
|
||||||
const icons = Object.keys(data.icons).map(
|
|
||||||
(item) => `${isLocal ? prefix + ':' : ''}${item}`
|
|
||||||
);
|
|
||||||
|
|
||||||
await fs.writeFileSync(
|
|
||||||
path.join(output, `icons.data.ts`),
|
|
||||||
`export default ${isLocal ? JSON.stringify(icons) : JSON.stringify({ prefix, icons })}`
|
|
||||||
);
|
|
||||||
prefixSet.push(prefix);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fs.emptyDir(path.join(process.cwd(), 'node_modules/.vite'));
|
|
||||||
console.log(
|
|
||||||
`✨ ${chalk.cyan(`[${pkg.name}]`)}` + ' - Icon generated successfully:' + `[${prefixSet}]`
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
generateIcon();
|
|
@@ -1,9 +0,0 @@
|
|||||||
/**
|
|
||||||
* Get the configuration file variable name
|
|
||||||
* @param env
|
|
||||||
*/
|
|
||||||
export const getConfigFileName = (env: Record<string, any>) => {
|
|
||||||
return `__PRODUCTION__${env.VITE_GLOB_APP_SHORT_NAME || '__APP'}__CONF__`
|
|
||||||
.toUpperCase()
|
|
||||||
.replace(/\s/g, '');
|
|
||||||
};
|
|
@@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
* Generate additional configuration files when used for packaging. The file can be configured with some global variables, so that it can be changed directly externally without repackaging
|
|
||||||
*/
|
|
||||||
import { GLOB_CONFIG_FILE_NAME, OUTPUT_DIR } from '../constant';
|
|
||||||
import fs, { writeFileSync } from 'fs-extra';
|
|
||||||
import chalk from 'chalk';
|
|
||||||
|
|
||||||
import { getRootPath, getEnvConfig } from '../utils';
|
|
||||||
import { getConfigFileName } from '../getConfigFileName';
|
|
||||||
|
|
||||||
import pkg from '../../package.json';
|
|
||||||
|
|
||||||
function createConfig(
|
|
||||||
{
|
|
||||||
configName,
|
|
||||||
config,
|
|
||||||
configFileName = GLOB_CONFIG_FILE_NAME,
|
|
||||||
}: { configName: string; config: any; configFileName?: string } = { configName: '', config: {} }
|
|
||||||
) {
|
|
||||||
try {
|
|
||||||
const windowConf = `window.${configName}`;
|
|
||||||
// Ensure that the variable will not be modified
|
|
||||||
const configStr = `${windowConf}=${JSON.stringify(config)};
|
|
||||||
Object.freeze(${windowConf});
|
|
||||||
Object.defineProperty(window, "${configName}", {
|
|
||||||
configurable: false,
|
|
||||||
writable: false,
|
|
||||||
});
|
|
||||||
`.replace(/\s/g, '');
|
|
||||||
fs.mkdirp(getRootPath(OUTPUT_DIR));
|
|
||||||
writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr);
|
|
||||||
|
|
||||||
console.log(chalk.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`);
|
|
||||||
console.log(chalk.gray(OUTPUT_DIR + '/' + chalk.green(configFileName)) + '\n');
|
|
||||||
} catch (error) {
|
|
||||||
console.log(chalk.red('configuration file configuration file failed to package:\n' + error));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function runBuildConfig() {
|
|
||||||
const config = getEnvConfig();
|
|
||||||
const configFileName = getConfigFileName(config);
|
|
||||||
createConfig({ config, configName: configFileName });
|
|
||||||
}
|
|
@@ -1,24 +0,0 @@
|
|||||||
// #!/usr/bin/env node
|
|
||||||
|
|
||||||
import { argv } from 'yargs';
|
|
||||||
import { runBuildConfig } from './buildConf';
|
|
||||||
import chalk from 'chalk';
|
|
||||||
|
|
||||||
import pkg from '../../package.json';
|
|
||||||
|
|
||||||
export const runBuild = async () => {
|
|
||||||
try {
|
|
||||||
const argvList = argv._;
|
|
||||||
|
|
||||||
// Generate configuration file
|
|
||||||
if (!argvList.includes('no-conf')) {
|
|
||||||
await runBuildConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`✨ ${chalk.cyan(`[${pkg.name}]`)}` + ' - build successfully!');
|
|
||||||
} catch (error) {
|
|
||||||
console.log(chalk.red('vite build error:\n' + error));
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
runBuild();
|
|
@@ -1,71 +0,0 @@
|
|||||||
import fs from 'fs';
|
|
||||||
import path from 'path';
|
|
||||||
import dotenv from 'dotenv';
|
|
||||||
|
|
||||||
export function isDevFn(mode: string): boolean {
|
|
||||||
return mode === 'development';
|
|
||||||
}
|
|
||||||
|
|
||||||
export function isProdFn(mode: string): boolean {
|
|
||||||
return mode === 'production';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to generate package preview
|
|
||||||
*/
|
|
||||||
export function isReportMode(): boolean {
|
|
||||||
return process.env.REPORT === 'true';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read all environment variable configuration files to process.env
|
|
||||||
export function wrapperEnv(envConf: Recordable): ViteEnv {
|
|
||||||
const ret: any = {};
|
|
||||||
|
|
||||||
for (const envName of Object.keys(envConf)) {
|
|
||||||
let realName = envConf[envName].replace(/\\n/g, '\n');
|
|
||||||
realName = realName === 'true' ? true : realName === 'false' ? false : realName;
|
|
||||||
|
|
||||||
if (envName === 'VITE_PORT') {
|
|
||||||
realName = Number(realName);
|
|
||||||
}
|
|
||||||
if (envName === 'VITE_PROXY') {
|
|
||||||
try {
|
|
||||||
realName = JSON.parse(realName);
|
|
||||||
} catch (error) {}
|
|
||||||
}
|
|
||||||
ret[envName] = realName;
|
|
||||||
process.env[envName] = realName;
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the environment variables starting with the specified prefix
|
|
||||||
* @param match prefix
|
|
||||||
* @param confFiles ext
|
|
||||||
*/
|
|
||||||
export function getEnvConfig(match = 'VITE_GLOB_', confFiles = ['.env', '.env.production']) {
|
|
||||||
let envConfig = {};
|
|
||||||
confFiles.forEach((item) => {
|
|
||||||
try {
|
|
||||||
const env = dotenv.parse(fs.readFileSync(path.resolve(process.cwd(), item)));
|
|
||||||
envConfig = { ...envConfig, ...env };
|
|
||||||
} catch (error) {}
|
|
||||||
});
|
|
||||||
|
|
||||||
Object.keys(envConfig).forEach((key) => {
|
|
||||||
const reg = new RegExp(`^(${match})`);
|
|
||||||
if (!reg.test(key)) {
|
|
||||||
Reflect.deleteProperty(envConfig, key);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return envConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get user root directory
|
|
||||||
* @param dir file path
|
|
||||||
*/
|
|
||||||
export function getRootPath(...dir: string[]) {
|
|
||||||
return path.resolve(process.cwd(), ...dir);
|
|
||||||
}
|
|
@@ -1,16 +0,0 @@
|
|||||||
import { resolve } from 'path';
|
|
||||||
import type { Alias } from 'vite';
|
|
||||||
|
|
||||||
function pathResolve(dir: string) {
|
|
||||||
return resolve(__dirname, '.', dir);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function createAlias(alias: [string, string][]): Alias[] {
|
|
||||||
return alias.map((item) => {
|
|
||||||
const [alia, src] = item;
|
|
||||||
return {
|
|
||||||
find: new RegExp(alia),
|
|
||||||
replacement: pathResolve(src) + '/',
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
@@ -1,21 +0,0 @@
|
|||||||
// TODO
|
|
||||||
import type { GetManualChunk } from 'rollup';
|
|
||||||
|
|
||||||
//
|
|
||||||
const vendorLibs: { match: string[]; output: string }[] = [
|
|
||||||
// {
|
|
||||||
// match: ['xlsx'],
|
|
||||||
// output: 'xlsx',
|
|
||||||
// },
|
|
||||||
];
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
export const configManualChunk: GetManualChunk = (id: string) => {
|
|
||||||
if (/[\\/]node_modules[\\/]/.test(id)) {
|
|
||||||
const matchItem = vendorLibs.find((item) => {
|
|
||||||
const reg = new RegExp(`[\\/]node_modules[\\/]_?(${item.match.join('|')})(.*)`, 'ig');
|
|
||||||
return reg.test(id);
|
|
||||||
});
|
|
||||||
return matchItem ? matchItem.output : null;
|
|
||||||
}
|
|
||||||
};
|
|
@@ -1,21 +0,0 @@
|
|||||||
import type { Plugin } from 'vite';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* TODO
|
|
||||||
* Temporarily solve the Vite circular dependency problem, and wait for a better solution to fix it later. I don't know what problems this writing will bring.
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
|
|
||||||
export function configHmrPlugin(): Plugin {
|
|
||||||
return {
|
|
||||||
name: 'singleHMR',
|
|
||||||
handleHotUpdate({ modules, file }) {
|
|
||||||
if (file.match(/xml$/)) return [];
|
|
||||||
modules.forEach((m) => {
|
|
||||||
m.importedModules = new Set();
|
|
||||||
m.importers = new Set();
|
|
||||||
});
|
|
||||||
return modules;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
@@ -1,42 +0,0 @@
|
|||||||
/**
|
|
||||||
* Plugin to minimize and use ejs template syntax in index.html.
|
|
||||||
* https://github.com/anncwb/vite-plugin-html
|
|
||||||
*/
|
|
||||||
import type { Plugin } from 'vite';
|
|
||||||
|
|
||||||
import html from 'vite-plugin-html';
|
|
||||||
|
|
||||||
import pkg from '../../../package.json';
|
|
||||||
import { GLOB_CONFIG_FILE_NAME } from '../../constant';
|
|
||||||
|
|
||||||
export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) {
|
|
||||||
const { VITE_GLOB_APP_TITLE, VITE_PUBLIC_PATH } = env;
|
|
||||||
|
|
||||||
const path = VITE_PUBLIC_PATH.endsWith('/') ? VITE_PUBLIC_PATH : `${VITE_PUBLIC_PATH}/`;
|
|
||||||
|
|
||||||
const getAppConfigSrc = () => {
|
|
||||||
return `${path || '/'}${GLOB_CONFIG_FILE_NAME}?v=${pkg.version}-${new Date().getTime()}`;
|
|
||||||
};
|
|
||||||
|
|
||||||
const htmlPlugin: Plugin[] = html({
|
|
||||||
minify: isBuild,
|
|
||||||
inject: {
|
|
||||||
// Inject data into ejs template
|
|
||||||
injectData: {
|
|
||||||
title: VITE_GLOB_APP_TITLE,
|
|
||||||
},
|
|
||||||
// Embed the generated app.config.js file
|
|
||||||
tags: isBuild
|
|
||||||
? [
|
|
||||||
{
|
|
||||||
tag: 'script',
|
|
||||||
attrs: {
|
|
||||||
src: getAppConfigSrc(),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]
|
|
||||||
: [],
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return htmlPlugin;
|
|
||||||
}
|
|
@@ -1,37 +0,0 @@
|
|||||||
// Image resource files used to compress the output of the production environment
|
|
||||||
// https://github.com/anncwb/vite-plugin-imagemin
|
|
||||||
|
|
||||||
import viteImagemin from 'vite-plugin-imagemin';
|
|
||||||
|
|
||||||
export function configImageminPlugin() {
|
|
||||||
const plugin = viteImagemin({
|
|
||||||
gifsicle: {
|
|
||||||
optimizationLevel: 7,
|
|
||||||
interlaced: false,
|
|
||||||
},
|
|
||||||
optipng: {
|
|
||||||
optimizationLevel: 7,
|
|
||||||
},
|
|
||||||
webp: {
|
|
||||||
quality: 75,
|
|
||||||
},
|
|
||||||
mozjpeg: {
|
|
||||||
quality: 8,
|
|
||||||
},
|
|
||||||
pngquant: {
|
|
||||||
quality: [0.8, 0.9],
|
|
||||||
speed: 4,
|
|
||||||
},
|
|
||||||
svgo: {
|
|
||||||
plugins: [
|
|
||||||
{
|
|
||||||
removeViewBox: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
removeEmptyAttrs: false,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return plugin;
|
|
||||||
}
|
|
@@ -1,74 +0,0 @@
|
|||||||
import type { Plugin } from 'vite';
|
|
||||||
|
|
||||||
import vue from '@vitejs/plugin-vue';
|
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
||||||
import legacy from '@vitejs/plugin-legacy';
|
|
||||||
|
|
||||||
import PurgeIcons from 'vite-plugin-purge-icons';
|
|
||||||
|
|
||||||
import { configHtmlPlugin } from './html';
|
|
||||||
import { configPwaConfig } from './pwa';
|
|
||||||
import { configMockPlugin } from './mock';
|
|
||||||
import { configCompressPlugin } from './compress';
|
|
||||||
import { configStyleImportPlugin } from './styleImport';
|
|
||||||
import { configVisualizerConfig } from './visualizer';
|
|
||||||
import { configThemePlugin } from './theme';
|
|
||||||
import { configImageminPlugin } from './imagemin';
|
|
||||||
import { configWindiCssPlugin } from './windicss';
|
|
||||||
import { configSvgIconsPlugin } from './svgSprite';
|
|
||||||
import { configHmrPlugin } from './hmr';
|
|
||||||
|
|
||||||
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
|
|
||||||
const { VITE_USE_IMAGEMIN, VITE_USE_MOCK, VITE_LEGACY, VITE_BUILD_COMPRESS } = viteEnv;
|
|
||||||
|
|
||||||
const vitePlugins: (Plugin | Plugin[])[] = [
|
|
||||||
// have to
|
|
||||||
vue(),
|
|
||||||
// have to
|
|
||||||
vueJsx(),
|
|
||||||
];
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
!isBuild && vitePlugins.push(configHmrPlugin());
|
|
||||||
|
|
||||||
// @vitejs/plugin-legacy
|
|
||||||
VITE_LEGACY && isBuild && vitePlugins.push(legacy());
|
|
||||||
|
|
||||||
// vite-plugin-html
|
|
||||||
vitePlugins.push(configHtmlPlugin(viteEnv, isBuild));
|
|
||||||
|
|
||||||
// vite-plugin-svg-icons
|
|
||||||
vitePlugins.push(configSvgIconsPlugin(isBuild));
|
|
||||||
|
|
||||||
// vite-plugin-windicss
|
|
||||||
vitePlugins.push(configWindiCssPlugin());
|
|
||||||
|
|
||||||
// vite-plugin-mock
|
|
||||||
VITE_USE_MOCK && vitePlugins.push(configMockPlugin(isBuild));
|
|
||||||
|
|
||||||
// vite-plugin-purge-icons
|
|
||||||
vitePlugins.push(PurgeIcons());
|
|
||||||
|
|
||||||
// vite-plugin-style-import
|
|
||||||
vitePlugins.push(configStyleImportPlugin(isBuild));
|
|
||||||
|
|
||||||
// rollup-plugin-visualizer
|
|
||||||
vitePlugins.push(configVisualizerConfig());
|
|
||||||
|
|
||||||
//vite-plugin-theme
|
|
||||||
vitePlugins.push(configThemePlugin());
|
|
||||||
|
|
||||||
// The following plugins only work in the production environment
|
|
||||||
if (isBuild) {
|
|
||||||
//vite-plugin-imagemin
|
|
||||||
VITE_USE_IMAGEMIN && vitePlugins.push(configImageminPlugin());
|
|
||||||
|
|
||||||
// rollup-plugin-gzip
|
|
||||||
vitePlugins.push(configCompressPlugin(VITE_BUILD_COMPRESS));
|
|
||||||
|
|
||||||
// vite-plugin-pwa
|
|
||||||
vitePlugins.push(configPwaConfig(viteEnv));
|
|
||||||
}
|
|
||||||
|
|
||||||
return vitePlugins;
|
|
||||||
}
|
|
@@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* Zero-config PWA for Vite
|
|
||||||
* https://github.com/antfu/vite-plugin-pwa
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { VitePWA } from 'vite-plugin-pwa';
|
|
||||||
|
|
||||||
export function configPwaConfig(env: ViteEnv) {
|
|
||||||
const { VITE_USE_PWA, VITE_GLOB_APP_TITLE, VITE_GLOB_APP_SHORT_NAME } = env;
|
|
||||||
|
|
||||||
if (VITE_USE_PWA) {
|
|
||||||
// vite-plugin-pwa
|
|
||||||
const pwaPlugin = VitePWA({
|
|
||||||
manifest: {
|
|
||||||
name: VITE_GLOB_APP_TITLE,
|
|
||||||
short_name: VITE_GLOB_APP_SHORT_NAME,
|
|
||||||
icons: [
|
|
||||||
{
|
|
||||||
src: './resource/img/pwa-192x192.png',
|
|
||||||
sizes: '192x192',
|
|
||||||
type: 'image/png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: './resource/img/pwa-512x512.png',
|
|
||||||
sizes: '512x512',
|
|
||||||
type: 'image/png',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return pwaPlugin;
|
|
||||||
}
|
|
||||||
return [];
|
|
||||||
}
|
|
@@ -1,22 +0,0 @@
|
|||||||
/**
|
|
||||||
* Introduces component library styles on demand.
|
|
||||||
* https://github.com/anncwb/vite-plugin-style-import
|
|
||||||
*/
|
|
||||||
|
|
||||||
import styleImport from 'vite-plugin-style-import';
|
|
||||||
|
|
||||||
export function configStyleImportPlugin(isBuild: boolean) {
|
|
||||||
if (!isBuild) return [];
|
|
||||||
const pwaPlugin = styleImport({
|
|
||||||
libs: [
|
|
||||||
{
|
|
||||||
libraryName: 'ant-design-vue',
|
|
||||||
esModule: true,
|
|
||||||
resolveStyle: (name) => {
|
|
||||||
return `ant-design-vue/es/${name}/style/index`;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
});
|
|
||||||
return pwaPlugin;
|
|
||||||
}
|
|
@@ -1,17 +0,0 @@
|
|||||||
/**
|
|
||||||
* Vite Plugin for fast creating SVG sprites.
|
|
||||||
* https://github.com/anncwb/vite-plugin-svg-icons
|
|
||||||
*/
|
|
||||||
|
|
||||||
import SvgIconsPlugin from 'vite-plugin-svg-icons';
|
|
||||||
import path from 'path';
|
|
||||||
|
|
||||||
export function configSvgIconsPlugin(isBuild: boolean) {
|
|
||||||
const svgIconsPlugin = SvgIconsPlugin({
|
|
||||||
iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
|
|
||||||
svgoOptions: isBuild,
|
|
||||||
// default
|
|
||||||
symbolId: 'icon-[dir]-[name]',
|
|
||||||
});
|
|
||||||
return svgIconsPlugin;
|
|
||||||
}
|
|
@@ -1,19 +0,0 @@
|
|||||||
/**
|
|
||||||
* Vite plugin for website theme color switching
|
|
||||||
* https://github.com/anncwb/vite-plugin-theme
|
|
||||||
*/
|
|
||||||
import { viteThemePlugin, mixLighten, mixDarken, tinycolor } from 'vite-plugin-theme';
|
|
||||||
import { getThemeColors, generateColors } from '../../config/themeConfig';
|
|
||||||
|
|
||||||
export function configThemePlugin() {
|
|
||||||
const colors = generateColors({
|
|
||||||
mixDarken,
|
|
||||||
mixLighten,
|
|
||||||
tinycolor,
|
|
||||||
});
|
|
||||||
|
|
||||||
const plugin = viteThemePlugin({
|
|
||||||
colorVariables: [...getThemeColors(), ...colors],
|
|
||||||
});
|
|
||||||
return plugin;
|
|
||||||
}
|
|
@@ -1,19 +0,0 @@
|
|||||||
/**
|
|
||||||
* Package file volume analysis
|
|
||||||
*/
|
|
||||||
import visualizer from 'rollup-plugin-visualizer';
|
|
||||||
import { isReportMode } from '../../utils';
|
|
||||||
|
|
||||||
export function configVisualizerConfig() {
|
|
||||||
if (isReportMode()) {
|
|
||||||
return visualizer({
|
|
||||||
filename: './node_modules/.cache/visualizer/stats.html',
|
|
||||||
open: true,
|
|
||||||
// @ts-ignore
|
|
||||||
gzipSize: true,
|
|
||||||
// @ts-ignore
|
|
||||||
brotliSize: true,
|
|
||||||
}) as Plugin;
|
|
||||||
}
|
|
||||||
return [];
|
|
||||||
}
|
|
@@ -1,12 +0,0 @@
|
|||||||
import type { Plugin } from 'vite';
|
|
||||||
|
|
||||||
import windiCSS from 'vite-plugin-windicss';
|
|
||||||
|
|
||||||
export function configWindiCssPlugin(): Plugin[] {
|
|
||||||
return windiCSS({
|
|
||||||
safelist: 'no-select',
|
|
||||||
preflight: {
|
|
||||||
enableAll: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
@@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* Used to parse the .env.development proxy configuration
|
|
||||||
*/
|
|
||||||
import type { ServerOptions } from 'http-proxy';
|
|
||||||
|
|
||||||
type ProxyItem = [string, string];
|
|
||||||
|
|
||||||
type ProxyList = ProxyItem[];
|
|
||||||
|
|
||||||
type ProxyTargetList = Record<string, ServerOptions & { rewrite: (path: string) => string }>;
|
|
||||||
|
|
||||||
const httpsRE = /^https:\/\//;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generate proxy
|
|
||||||
* @param list
|
|
||||||
*/
|
|
||||||
export function createProxy(list: ProxyList = []) {
|
|
||||||
const ret: ProxyTargetList = {};
|
|
||||||
for (const [prefix, target] of list) {
|
|
||||||
const isHttps = httpsRE.test(target);
|
|
||||||
|
|
||||||
// https://github.com/http-party/node-http-proxy#options
|
|
||||||
ret[prefix] = {
|
|
||||||
target: target,
|
|
||||||
changeOrigin: true,
|
|
||||||
ws: true,
|
|
||||||
rewrite: (path) => path.replace(new RegExp(`^${prefix}`), ''),
|
|
||||||
// https is require secure=false
|
|
||||||
...(isHttps ? { secure: false } : {}),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
@@ -1,56 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
ignores: [(commit) => commit.includes('init')],
|
|
||||||
extends: ['@commitlint/config-conventional'],
|
|
||||||
parserPreset: {
|
|
||||||
parserOpts: {
|
|
||||||
headerPattern: /^(\w*|[\u4e00-\u9fa5]*)(?:[\(\(](.*)[\)\)])?[\:\:] (.*)/,
|
|
||||||
headerCorrespondence: ['type', 'scope', 'subject'],
|
|
||||||
referenceActions: [
|
|
||||||
'close',
|
|
||||||
'closes',
|
|
||||||
'closed',
|
|
||||||
'fix',
|
|
||||||
'fixes',
|
|
||||||
'fixed',
|
|
||||||
'resolve',
|
|
||||||
'resolves',
|
|
||||||
'resolved',
|
|
||||||
],
|
|
||||||
issuePrefixes: ['#'],
|
|
||||||
noteKeywords: ['BREAKING CHANGE', '不兼容变更'],
|
|
||||||
fieldPattern: /^-(.*?)-$/,
|
|
||||||
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,
|
|
||||||
revertCorrespondence: ['header', 'hash'],
|
|
||||||
warn() {},
|
|
||||||
mergePattern: null,
|
|
||||||
mergeCorrespondence: null,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'body-leading-blank': [2, 'always'],
|
|
||||||
'footer-leading-blank': [1, 'always'],
|
|
||||||
'header-max-length': [2, 'always', 108],
|
|
||||||
'subject-empty': [2, 'never'],
|
|
||||||
'type-empty': [2, 'never'],
|
|
||||||
'type-enum': [
|
|
||||||
2,
|
|
||||||
'always',
|
|
||||||
[
|
|
||||||
'feat',
|
|
||||||
'fix',
|
|
||||||
'perf',
|
|
||||||
'style',
|
|
||||||
'docs',
|
|
||||||
'test',
|
|
||||||
'refactor',
|
|
||||||
'build',
|
|
||||||
'ci',
|
|
||||||
'chore',
|
|
||||||
'revert',
|
|
||||||
'wip',
|
|
||||||
'workflow',
|
|
||||||
'types',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
},
|
|
||||||
};
|
|
81
index.html
81
index.html
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" id="htmlRoot">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
@@ -8,49 +8,55 @@
|
|||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
||||||
/>
|
/>
|
||||||
|
<title><%= VITE_GLOB_APP_TITLE %></title>
|
||||||
<title><%= title %></title>
|
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<style>
|
<style>
|
||||||
|
html[data-theme='dark'] .app-loading {
|
||||||
|
background-color: #2c344a;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme='dark'] .app-loading .app-loading-title {
|
||||||
|
color: rgb(255 255 255 / 85%);
|
||||||
|
}
|
||||||
|
|
||||||
.app-loading {
|
.app-loading {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
justify-content: center;
|
background-color: #f4f7f9;
|
||||||
align-items: center;
|
|
||||||
flex-direction: column;
|
|
||||||
background: #f4f7f9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-wrap {
|
.app-loading .app-loading-wrap {
|
||||||
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
display: flex;
|
|
||||||
-webkit-transform: translate3d(-50%, -50%, 0);
|
|
||||||
transform: translate3d(-50%, -50%, 0);
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transform: translate3d(-50%, -50%, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .dots {
|
.app-loading .dots {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 98px;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 98px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-title {
|
.app-loading .app-loading-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 30px;
|
|
||||||
font-size: 30px;
|
|
||||||
color: rgba(0, 0, 0, 0.85);
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-top: 30px;
|
||||||
|
color: rgb(0 0 0 / 85%);
|
||||||
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-loading .app-loading-logo {
|
.app-loading .app-loading-logo {
|
||||||
@@ -61,28 +67,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dot {
|
.dot {
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
box-sizing: border-box;
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
font-size: 32px;
|
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
box-sizing: border-box;
|
animation: ant-rotate 1.2s infinite linear;
|
||||||
animation: antRotate 1.2s infinite linear;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot i {
|
.dot i {
|
||||||
position: absolute;
|
|
||||||
display: block;
|
display: block;
|
||||||
|
position: absolute;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
background-color: #0065cc;
|
transform: scale(0.75);
|
||||||
|
transform-origin: 50% 50%;
|
||||||
|
animation: ant-spin-move 1s infinite linear alternate;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
transform: scale(0.75);
|
background-color: #0065cc;
|
||||||
animation: antSpinMove 1s infinite linear alternate;
|
|
||||||
transform-origin: 50% 50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot i:nth-child(1) {
|
.dot i:nth-child(1) {
|
||||||
@@ -93,41 +99,40 @@
|
|||||||
.dot i:nth-child(2) {
|
.dot i:nth-child(2) {
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
-webkit-animation-delay: 0.4s;
|
|
||||||
animation-delay: 0.4s;
|
animation-delay: 0.4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot i:nth-child(3) {
|
.dot i:nth-child(3) {
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
-webkit-animation-delay: 0.8s;
|
|
||||||
animation-delay: 0.8s;
|
animation-delay: 0.8s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot i:nth-child(4) {
|
.dot i:nth-child(4) {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
-webkit-animation-delay: 1.2s;
|
|
||||||
animation-delay: 1.2s;
|
animation-delay: 1.2s;
|
||||||
}
|
}
|
||||||
@keyframes antRotate {
|
|
||||||
|
@keyframes ant-rotate {
|
||||||
to {
|
to {
|
||||||
-webkit-transform: rotate(405deg);
|
|
||||||
transform: rotate(405deg);
|
transform: rotate(405deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@-webkit-keyframes antRotate {
|
|
||||||
|
@keyframes ant-rotate {
|
||||||
to {
|
to {
|
||||||
-webkit-transform: rotate(405deg);
|
|
||||||
transform: rotate(405deg);
|
transform: rotate(405deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@keyframes antSpinMove {
|
|
||||||
|
@keyframes ant-spin-move {
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@-webkit-keyframes antSpinMove {
|
|
||||||
|
@keyframes ant-spin-move {
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
@@ -135,11 +140,11 @@
|
|||||||
</style>
|
</style>
|
||||||
<div class="app-loading">
|
<div class="app-loading">
|
||||||
<div class="app-loading-wrap">
|
<div class="app-loading-wrap">
|
||||||
<img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
|
<img src="/logo.png" class="app-loading-logo" alt="Logo" />
|
||||||
<div class="app-loading-dots">
|
<div class="app-loading-dots">
|
||||||
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
|
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-loading-title"><%= title %></div>
|
<div class="app-loading-title"><%= VITE_GLOB_APP_TITLE %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
107
internal/eslint-config/.commitlintrc.js
Normal file
107
internal/eslint-config/.commitlintrc.js
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
|
const scopes = fs
|
||||||
|
.readdirSync(path.resolve(__dirname, 'src'), { withFileTypes: true })
|
||||||
|
.filter((dirent) => dirent.isDirectory())
|
||||||
|
.map((dirent) => dirent.name.replace(/s$/, ''));
|
||||||
|
|
||||||
|
// precomputed scope
|
||||||
|
const scopeComplete = execSync('git status --porcelain || true')
|
||||||
|
.toString()
|
||||||
|
.trim()
|
||||||
|
.split('\n')
|
||||||
|
.find((r) => ~r.indexOf('M src'))
|
||||||
|
?.replace(/(\/)/g, '%%')
|
||||||
|
?.match(/src%%((\w|-)*)/)?.[1]
|
||||||
|
?.replace(/s$/, '');
|
||||||
|
|
||||||
|
/** @type {import('cz-git').UserConfig} */
|
||||||
|
module.exports = {
|
||||||
|
ignores: [(commit) => commit.includes('init')],
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'body-leading-blank': [2, 'always'],
|
||||||
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
'header-max-length': [2, 'always', 108],
|
||||||
|
'subject-empty': [2, 'never'],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'subject-case': [0],
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
[
|
||||||
|
'feat',
|
||||||
|
'fix',
|
||||||
|
'perf',
|
||||||
|
'style',
|
||||||
|
'docs',
|
||||||
|
'test',
|
||||||
|
'refactor',
|
||||||
|
'build',
|
||||||
|
'ci',
|
||||||
|
'chore',
|
||||||
|
'revert',
|
||||||
|
'wip',
|
||||||
|
'workflow',
|
||||||
|
'types',
|
||||||
|
'release',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
prompt: {
|
||||||
|
/** @use `yarn commit :f` */
|
||||||
|
alias: {
|
||||||
|
f: 'docs: fix typos',
|
||||||
|
r: 'docs: update README',
|
||||||
|
s: 'style: update code format',
|
||||||
|
b: 'build: bump dependencies',
|
||||||
|
c: 'chore: update config',
|
||||||
|
},
|
||||||
|
customScopesAlign: !scopeComplete ? 'top' : 'bottom',
|
||||||
|
defaultScope: scopeComplete,
|
||||||
|
scopes: [...scopes, 'mock'],
|
||||||
|
allowEmptyIssuePrefixs: false,
|
||||||
|
allowCustomIssuePrefixs: false,
|
||||||
|
|
||||||
|
// English
|
||||||
|
typesAppend: [
|
||||||
|
{ value: 'wip', name: 'wip: work in process' },
|
||||||
|
{ value: 'workflow', name: 'workflow: workflow improvements' },
|
||||||
|
{ value: 'types', name: 'types: type definition file changes' },
|
||||||
|
],
|
||||||
|
|
||||||
|
// 中英文对照版
|
||||||
|
// messages: {
|
||||||
|
// type: '选择你要提交的类型 :',
|
||||||
|
// scope: '选择一个提交范围 (可选):',
|
||||||
|
// customScope: '请输入自定义的提交范围 :',
|
||||||
|
// subject: '填写简短精炼的变更描述 :\n',
|
||||||
|
// body: '填写更加详细的变更描述 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// breaking: '列举非兼容性重大的变更 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// footerPrefixsSelect: '选择关联issue前缀 (可选):',
|
||||||
|
// customFooterPrefixs: '输入自定义issue前缀 :',
|
||||||
|
// footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
|
||||||
|
// confirmCommit: '是否提交或修改commit ?',
|
||||||
|
// },
|
||||||
|
// types: [
|
||||||
|
// { value: 'feat', name: 'feat: 新增功能' },
|
||||||
|
// { value: 'fix', name: 'fix: 修复缺陷' },
|
||||||
|
// { value: 'docs', name: 'docs: 文档变更' },
|
||||||
|
// { value: 'style', name: 'style: 代码格式' },
|
||||||
|
// { value: 'refactor', name: 'refactor: 代码重构' },
|
||||||
|
// { value: 'perf', name: 'perf: 性能优化' },
|
||||||
|
// { value: 'test', name: 'test: 添加疏漏测试或已有测试改动' },
|
||||||
|
// { value: 'build', name: 'build: 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)' },
|
||||||
|
// { value: 'ci', name: 'ci: 修改 CI 配置、脚本' },
|
||||||
|
// { value: 'revert', name: 'revert: 回滚 commit' },
|
||||||
|
// { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改 (不影响源文件、测试用例)' },
|
||||||
|
// { value: 'wip', name: 'wip: 正在开发中' },
|
||||||
|
// { value: 'workflow', name: 'workflow: 工作流程改进' },
|
||||||
|
// { value: 'types', name: 'types: 类型定义文件修改' },
|
||||||
|
// ],
|
||||||
|
// emptyScopesAlias: 'empty: 不填写',
|
||||||
|
// customScopesAlias: 'custom: 自定义',
|
||||||
|
},
|
||||||
|
};
|
15
internal/eslint-config/.eslintignore
Normal file
15
internal/eslint-config/.eslintignore
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
*.sh
|
||||||
|
node_modules
|
||||||
|
*.md
|
||||||
|
*.woff
|
||||||
|
*.ttf
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
dist
|
||||||
|
/public
|
||||||
|
/docs
|
||||||
|
.husky
|
||||||
|
.local
|
||||||
|
/bin
|
||||||
|
Dockerfile
|
4
internal/eslint-config/.eslintrc.js
Normal file
4
internal/eslint-config/.eslintrc.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['@vben'],
|
||||||
|
};
|
10
internal/eslint-config/.prettierignore
Normal file
10
internal/eslint-config/.prettierignore
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
dist
|
||||||
|
.local
|
||||||
|
.output.js
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
**/*.svg
|
||||||
|
**/*.sh
|
||||||
|
|
||||||
|
public
|
||||||
|
.npmrc
|
19
internal/eslint-config/.prettierrc.js
Normal file
19
internal/eslint-config/.prettierrc.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
module.exports = {
|
||||||
|
printWidth: 100,
|
||||||
|
semi: true,
|
||||||
|
vueIndentScriptAndStyle: true,
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'all',
|
||||||
|
proseWrap: 'never',
|
||||||
|
htmlWhitespaceSensitivity: 'strict',
|
||||||
|
endOfLine: 'auto',
|
||||||
|
plugins: ['prettier-plugin-packagejson'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: '.*rc',
|
||||||
|
options: {
|
||||||
|
parser: 'json',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
2
internal/eslint-config/.stylelintignore
Normal file
2
internal/eslint-config/.stylelintignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
dist
|
||||||
|
public
|
4
internal/eslint-config/.stylelintrc.js
Normal file
4
internal/eslint-config/.stylelintrc.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['@vben/stylelint-config'],
|
||||||
|
};
|
10
internal/eslint-config/build.config.ts
Normal file
10
internal/eslint-config/build.config.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { defineBuildConfig } from 'unbuild';
|
||||||
|
|
||||||
|
export default defineBuildConfig({
|
||||||
|
clean: true,
|
||||||
|
entries: ['src/index'],
|
||||||
|
declaration: true,
|
||||||
|
rollup: {
|
||||||
|
emitCJS: true,
|
||||||
|
},
|
||||||
|
});
|
42
internal/eslint-config/package.json
Normal file
42
internal/eslint-config/package.json
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"name": "@vben/eslint-config",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"private": true,
|
||||||
|
"homepage": "https://github.com/vbenjs/vue-vben-admin",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/vbenjs/vue-vben-admin/issues"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
|
"directory": "internal/eslint-config"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"import": "./dist/index.mjs",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"main": "./dist/index.cjs",
|
||||||
|
"module": "./dist/index.mjs",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"clean": "pnpm rimraf .turbo node_modules dist",
|
||||||
|
"lint": "pnpm eslint .",
|
||||||
|
"stub": "pnpm unbuild --stub"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
||||||
|
"@typescript-eslint/parser": "^5.57.1",
|
||||||
|
"eslint": "^8.37.0",
|
||||||
|
"eslint-config-prettier": "^8.8.0",
|
||||||
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"eslint-plugin-vue": "^9.10.0",
|
||||||
|
"vue-eslint-parser": "^9.1.1"
|
||||||
|
}
|
||||||
|
}
|
82
internal/eslint-config/src/index.ts
Normal file
82
internal/eslint-config/src/index.ts
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
export default {
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
node: true,
|
||||||
|
es6: true,
|
||||||
|
},
|
||||||
|
parser: 'vue-eslint-parser',
|
||||||
|
parserOptions: {
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
ecmaVersion: 2020,
|
||||||
|
sourceType: 'module',
|
||||||
|
jsxPragma: 'React',
|
||||||
|
ecmaFeatures: {
|
||||||
|
jsx: true,
|
||||||
|
},
|
||||||
|
project: './tsconfig.*?.json',
|
||||||
|
createDefaultProgram: false,
|
||||||
|
extraFileExtensions: ['.vue'],
|
||||||
|
},
|
||||||
|
plugins: ['vue', '@typescript-eslint'],
|
||||||
|
extends: [
|
||||||
|
'eslint:recommended',
|
||||||
|
'plugin:vue/vue3-recommended',
|
||||||
|
'plugin:@typescript-eslint/recommended',
|
||||||
|
'plugin:prettier/recommended',
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'no-case-declarations': 'off',
|
||||||
|
'vue/script-setup-uses-vars': 'error',
|
||||||
|
'vue/no-reserved-component-names': 'off',
|
||||||
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
||||||
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
'@typescript-eslint/no-var-requires': 'off',
|
||||||
|
'@typescript-eslint/no-empty-function': 'off',
|
||||||
|
'vue/custom-event-name-casing': 'off',
|
||||||
|
'no-use-before-define': 'off',
|
||||||
|
'@typescript-eslint/no-use-before-define': 'off',
|
||||||
|
'@typescript-eslint/ban-ts-comment': 'off',
|
||||||
|
'@typescript-eslint/ban-types': 'off',
|
||||||
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||||
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
argsIgnorePattern: '^_',
|
||||||
|
varsIgnorePattern: '^_',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'no-unused-vars': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
argsIgnorePattern: '^_',
|
||||||
|
varsIgnorePattern: '^_',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'space-before-function-paren': 'off',
|
||||||
|
|
||||||
|
'vue/attributes-order': 'off',
|
||||||
|
'vue/one-component-per-file': 'off',
|
||||||
|
'vue/html-closing-bracket-newline': 'off',
|
||||||
|
'vue/max-attributes-per-line': 'off',
|
||||||
|
'vue/multiline-html-element-content-newline': 'off',
|
||||||
|
'vue/singleline-html-element-content-newline': 'off',
|
||||||
|
'vue/attribute-hyphenation': 'off',
|
||||||
|
'vue/require-default-prop': 'off',
|
||||||
|
'vue/require-explicit-emits': 'off',
|
||||||
|
'vue/html-self-closing': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
html: {
|
||||||
|
void: 'always',
|
||||||
|
normal: 'never',
|
||||||
|
component: 'always',
|
||||||
|
},
|
||||||
|
svg: 'always',
|
||||||
|
math: 'always',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'vue/multi-word-component-names': 'off',
|
||||||
|
},
|
||||||
|
};
|
5
internal/eslint-config/tsconfig.json
Normal file
5
internal/eslint-config/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"extends": "@vben/ts-config/node.json",
|
||||||
|
"include": ["src"]
|
||||||
|
}
|
107
internal/stylelint-config/.commitlintrc.js
Normal file
107
internal/stylelint-config/.commitlintrc.js
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
|
const scopes = fs
|
||||||
|
.readdirSync(path.resolve(__dirname, 'src'), { withFileTypes: true })
|
||||||
|
.filter((dirent) => dirent.isDirectory())
|
||||||
|
.map((dirent) => dirent.name.replace(/s$/, ''));
|
||||||
|
|
||||||
|
// precomputed scope
|
||||||
|
const scopeComplete = execSync('git status --porcelain || true')
|
||||||
|
.toString()
|
||||||
|
.trim()
|
||||||
|
.split('\n')
|
||||||
|
.find((r) => ~r.indexOf('M src'))
|
||||||
|
?.replace(/(\/)/g, '%%')
|
||||||
|
?.match(/src%%((\w|-)*)/)?.[1]
|
||||||
|
?.replace(/s$/, '');
|
||||||
|
|
||||||
|
/** @type {import('cz-git').UserConfig} */
|
||||||
|
module.exports = {
|
||||||
|
ignores: [(commit) => commit.includes('init')],
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'body-leading-blank': [2, 'always'],
|
||||||
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
'header-max-length': [2, 'always', 108],
|
||||||
|
'subject-empty': [2, 'never'],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'subject-case': [0],
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
[
|
||||||
|
'feat',
|
||||||
|
'fix',
|
||||||
|
'perf',
|
||||||
|
'style',
|
||||||
|
'docs',
|
||||||
|
'test',
|
||||||
|
'refactor',
|
||||||
|
'build',
|
||||||
|
'ci',
|
||||||
|
'chore',
|
||||||
|
'revert',
|
||||||
|
'wip',
|
||||||
|
'workflow',
|
||||||
|
'types',
|
||||||
|
'release',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
prompt: {
|
||||||
|
/** @use `yarn commit :f` */
|
||||||
|
alias: {
|
||||||
|
f: 'docs: fix typos',
|
||||||
|
r: 'docs: update README',
|
||||||
|
s: 'style: update code format',
|
||||||
|
b: 'build: bump dependencies',
|
||||||
|
c: 'chore: update config',
|
||||||
|
},
|
||||||
|
customScopesAlign: !scopeComplete ? 'top' : 'bottom',
|
||||||
|
defaultScope: scopeComplete,
|
||||||
|
scopes: [...scopes, 'mock'],
|
||||||
|
allowEmptyIssuePrefixs: false,
|
||||||
|
allowCustomIssuePrefixs: false,
|
||||||
|
|
||||||
|
// English
|
||||||
|
typesAppend: [
|
||||||
|
{ value: 'wip', name: 'wip: work in process' },
|
||||||
|
{ value: 'workflow', name: 'workflow: workflow improvements' },
|
||||||
|
{ value: 'types', name: 'types: type definition file changes' },
|
||||||
|
],
|
||||||
|
|
||||||
|
// 中英文对照版
|
||||||
|
// messages: {
|
||||||
|
// type: '选择你要提交的类型 :',
|
||||||
|
// scope: '选择一个提交范围 (可选):',
|
||||||
|
// customScope: '请输入自定义的提交范围 :',
|
||||||
|
// subject: '填写简短精炼的变更描述 :\n',
|
||||||
|
// body: '填写更加详细的变更描述 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// breaking: '列举非兼容性重大的变更 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// footerPrefixsSelect: '选择关联issue前缀 (可选):',
|
||||||
|
// customFooterPrefixs: '输入自定义issue前缀 :',
|
||||||
|
// footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
|
||||||
|
// confirmCommit: '是否提交或修改commit ?',
|
||||||
|
// },
|
||||||
|
// types: [
|
||||||
|
// { value: 'feat', name: 'feat: 新增功能' },
|
||||||
|
// { value: 'fix', name: 'fix: 修复缺陷' },
|
||||||
|
// { value: 'docs', name: 'docs: 文档变更' },
|
||||||
|
// { value: 'style', name: 'style: 代码格式' },
|
||||||
|
// { value: 'refactor', name: 'refactor: 代码重构' },
|
||||||
|
// { value: 'perf', name: 'perf: 性能优化' },
|
||||||
|
// { value: 'test', name: 'test: 添加疏漏测试或已有测试改动' },
|
||||||
|
// { value: 'build', name: 'build: 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)' },
|
||||||
|
// { value: 'ci', name: 'ci: 修改 CI 配置、脚本' },
|
||||||
|
// { value: 'revert', name: 'revert: 回滚 commit' },
|
||||||
|
// { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改 (不影响源文件、测试用例)' },
|
||||||
|
// { value: 'wip', name: 'wip: 正在开发中' },
|
||||||
|
// { value: 'workflow', name: 'workflow: 工作流程改进' },
|
||||||
|
// { value: 'types', name: 'types: 类型定义文件修改' },
|
||||||
|
// ],
|
||||||
|
// emptyScopesAlias: 'empty: 不填写',
|
||||||
|
// customScopesAlias: 'custom: 自定义',
|
||||||
|
},
|
||||||
|
};
|
15
internal/stylelint-config/.eslintignore
Normal file
15
internal/stylelint-config/.eslintignore
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
*.sh
|
||||||
|
node_modules
|
||||||
|
*.md
|
||||||
|
*.woff
|
||||||
|
*.ttf
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
dist
|
||||||
|
/public
|
||||||
|
/docs
|
||||||
|
.husky
|
||||||
|
.local
|
||||||
|
/bin
|
||||||
|
Dockerfile
|
4
internal/stylelint-config/.eslintrc.js
Normal file
4
internal/stylelint-config/.eslintrc.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['@vben'],
|
||||||
|
};
|
10
internal/stylelint-config/.prettierignore
Normal file
10
internal/stylelint-config/.prettierignore
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
dist
|
||||||
|
.local
|
||||||
|
.output.js
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
**/*.svg
|
||||||
|
**/*.sh
|
||||||
|
|
||||||
|
public
|
||||||
|
.npmrc
|
19
internal/stylelint-config/.prettierrc.js
Normal file
19
internal/stylelint-config/.prettierrc.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
module.exports = {
|
||||||
|
printWidth: 100,
|
||||||
|
semi: true,
|
||||||
|
vueIndentScriptAndStyle: true,
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'all',
|
||||||
|
proseWrap: 'never',
|
||||||
|
htmlWhitespaceSensitivity: 'strict',
|
||||||
|
endOfLine: 'auto',
|
||||||
|
plugins: ['prettier-plugin-packagejson'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: '.*rc',
|
||||||
|
options: {
|
||||||
|
parser: 'json',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
2
internal/stylelint-config/.stylelintignore
Normal file
2
internal/stylelint-config/.stylelintignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
dist
|
||||||
|
public
|
4
internal/stylelint-config/.stylelintrc.js
Normal file
4
internal/stylelint-config/.stylelintrc.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['@vben/stylelint-config'],
|
||||||
|
};
|
10
internal/stylelint-config/build.config.ts
Normal file
10
internal/stylelint-config/build.config.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import { defineBuildConfig } from 'unbuild';
|
||||||
|
|
||||||
|
export default defineBuildConfig({
|
||||||
|
clean: true,
|
||||||
|
entries: ['src/index'],
|
||||||
|
declaration: true,
|
||||||
|
rollup: {
|
||||||
|
emitCJS: true,
|
||||||
|
},
|
||||||
|
});
|
49
internal/stylelint-config/package.json
Normal file
49
internal/stylelint-config/package.json
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"name": "@vben/stylelint-config",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"private": true,
|
||||||
|
"homepage": "https://github.com/vbenjs/vue-vben-admin",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/vbenjs/vue-vben-admin/issues"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
|
"directory": "internal/stylelint-config"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"import": "./dist/index.mjs",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"main": "./dist/index.cjs",
|
||||||
|
"module": "./dist/index.mjs",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"clean": "pnpm rimraf .turbo node_modules dist",
|
||||||
|
"lint": "pnpm eslint .",
|
||||||
|
"stub": "pnpm unbuild --stub"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"postcss": "^8.4.21",
|
||||||
|
"postcss-html": "^1.5.0",
|
||||||
|
"postcss-less": "^6.0.0",
|
||||||
|
"postcss-scss": "^4.0.6",
|
||||||
|
"prettier": "^2.8.7",
|
||||||
|
"stylelint": "^15.4.0",
|
||||||
|
"stylelint-config-property-sort-order-smacss": "^9.1.0",
|
||||||
|
"stylelint-config-recommended": "^11.0.0",
|
||||||
|
"stylelint-config-recommended-scss": "^9.0.1",
|
||||||
|
"stylelint-config-recommended-vue": "^1.4.0",
|
||||||
|
"stylelint-config-standard": "^32.0.0",
|
||||||
|
"stylelint-config-standard-scss": "^7.0.1",
|
||||||
|
"stylelint-order": "^6.0.3",
|
||||||
|
"stylelint-prettier": "^3.0.0"
|
||||||
|
}
|
||||||
|
}
|
89
internal/stylelint-config/src/index.ts
Normal file
89
internal/stylelint-config/src/index.ts
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
export default {
|
||||||
|
extends: ['stylelint-config-standard', 'stylelint-config-property-sort-order-smacss'],
|
||||||
|
plugins: ['stylelint-order', 'stylelint-prettier'],
|
||||||
|
// customSyntax: 'postcss-html',
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['**/*.(css|html|vue)'],
|
||||||
|
customSyntax: 'postcss-html',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['*.less', '**/*.less'],
|
||||||
|
customSyntax: 'postcss-less',
|
||||||
|
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['*.scss', '**/*.scss'],
|
||||||
|
customSyntax: 'postcss-scss',
|
||||||
|
extends: ['stylelint-config-standard-scss', 'stylelint-config-recommended-vue/scss'],
|
||||||
|
rule: {
|
||||||
|
'scss/percent-placeholder-pattern': null,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'function-no-unknown': null,
|
||||||
|
'selector-class-pattern': null,
|
||||||
|
'selector-pseudo-class-no-unknown': [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
ignorePseudoClasses: ['global', 'deep'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'selector-pseudo-element-no-unknown': [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
ignorePseudoElements: ['v-deep'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'at-rule-no-unknown': [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
ignoreAtRules: [
|
||||||
|
'tailwind',
|
||||||
|
'apply',
|
||||||
|
'variants',
|
||||||
|
'responsive',
|
||||||
|
'screen',
|
||||||
|
'function',
|
||||||
|
'if',
|
||||||
|
'each',
|
||||||
|
'include',
|
||||||
|
'mixin',
|
||||||
|
'extend',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'no-empty-source': null,
|
||||||
|
'string-quotes': null,
|
||||||
|
'named-grid-areas-no-invalid': null,
|
||||||
|
'no-descending-specificity': null,
|
||||||
|
'font-family-no-missing-generic-family-keyword': null,
|
||||||
|
'rule-empty-line-before': [
|
||||||
|
'always',
|
||||||
|
{
|
||||||
|
ignore: ['after-comment', 'first-nested'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'unit-no-unknown': [true, { ignoreUnits: ['rpx'] }],
|
||||||
|
'order/order': [
|
||||||
|
[
|
||||||
|
'dollar-variables',
|
||||||
|
'custom-properties',
|
||||||
|
'at-rules',
|
||||||
|
'declarations',
|
||||||
|
{
|
||||||
|
type: 'at-rule',
|
||||||
|
name: 'supports',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'at-rule',
|
||||||
|
name: 'media',
|
||||||
|
},
|
||||||
|
'rules',
|
||||||
|
],
|
||||||
|
{ severity: 'error' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
|
||||||
|
};
|
5
internal/stylelint-config/tsconfig.json
Normal file
5
internal/stylelint-config/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"extends": "@vben/ts-config/node.json",
|
||||||
|
"include": ["src"]
|
||||||
|
}
|
27
internal/ts-config/base.json
Normal file
27
internal/ts-config/base.json
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"display": "Base",
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"strict": true,
|
||||||
|
"declaration": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"useUnknownInCatchVariables": false,
|
||||||
|
"composite": false,
|
||||||
|
"declarationMap": false,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"inlineSources": false,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"noUnusedParameters": false,
|
||||||
|
"preserveWatchOutput": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"removeComments": true
|
||||||
|
},
|
||||||
|
"exclude": ["**/node_modules/**", "**/dist/**"]
|
||||||
|
}
|
18
internal/ts-config/node-server.json
Normal file
18
internal/ts-config/node-server.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"display": "Node Server Config",
|
||||||
|
"extends": "./base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"declaration": false,
|
||||||
|
"removeComments": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"target": "es6",
|
||||||
|
"sourceMap": false,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"outDir": "./dist",
|
||||||
|
"baseUrl": "./"
|
||||||
|
},
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
12
internal/ts-config/node.json
Normal file
12
internal/ts-config/node.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"display": "Node Config",
|
||||||
|
"extends": "./base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"lib": ["ESNext"],
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"baseUrl": "./"
|
||||||
|
}
|
||||||
|
}
|
24
internal/ts-config/package.json
Normal file
24
internal/ts-config/package.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "@vben/ts-config",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"private": true,
|
||||||
|
"homepage": "https://github.com/vbenjs/vue-vben-admin",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/vbenjs/vue-vben-admin/issues"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
|
||||||
|
"directory": "internal/ts-config"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"files": [
|
||||||
|
"base.json",
|
||||||
|
"node.json",
|
||||||
|
"vue.json",
|
||||||
|
"node-server.json"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "^18.15.11"
|
||||||
|
}
|
||||||
|
}
|
10
internal/ts-config/vue.json
Normal file
10
internal/ts-config/vue.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"display": "Vue Library",
|
||||||
|
"extends": "./base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"jsx": "preserve",
|
||||||
|
"lib": ["ESNext", "DOM"],
|
||||||
|
"noImplicitAny": false
|
||||||
|
}
|
||||||
|
}
|
107
internal/vite-config/.commitlintrc.js
Normal file
107
internal/vite-config/.commitlintrc.js
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
|
const scopes = fs
|
||||||
|
.readdirSync(path.resolve(__dirname, 'src'), { withFileTypes: true })
|
||||||
|
.filter((dirent) => dirent.isDirectory())
|
||||||
|
.map((dirent) => dirent.name.replace(/s$/, ''));
|
||||||
|
|
||||||
|
// precomputed scope
|
||||||
|
const scopeComplete = execSync('git status --porcelain || true')
|
||||||
|
.toString()
|
||||||
|
.trim()
|
||||||
|
.split('\n')
|
||||||
|
.find((r) => ~r.indexOf('M src'))
|
||||||
|
?.replace(/(\/)/g, '%%')
|
||||||
|
?.match(/src%%((\w|-)*)/)?.[1]
|
||||||
|
?.replace(/s$/, '');
|
||||||
|
|
||||||
|
/** @type {import('cz-git').UserConfig} */
|
||||||
|
module.exports = {
|
||||||
|
ignores: [(commit) => commit.includes('init')],
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'body-leading-blank': [2, 'always'],
|
||||||
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
'header-max-length': [2, 'always', 108],
|
||||||
|
'subject-empty': [2, 'never'],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'subject-case': [0],
|
||||||
|
'type-enum': [
|
||||||
|
2,
|
||||||
|
'always',
|
||||||
|
[
|
||||||
|
'feat',
|
||||||
|
'fix',
|
||||||
|
'perf',
|
||||||
|
'style',
|
||||||
|
'docs',
|
||||||
|
'test',
|
||||||
|
'refactor',
|
||||||
|
'build',
|
||||||
|
'ci',
|
||||||
|
'chore',
|
||||||
|
'revert',
|
||||||
|
'wip',
|
||||||
|
'workflow',
|
||||||
|
'types',
|
||||||
|
'release',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
prompt: {
|
||||||
|
/** @use `yarn commit :f` */
|
||||||
|
alias: {
|
||||||
|
f: 'docs: fix typos',
|
||||||
|
r: 'docs: update README',
|
||||||
|
s: 'style: update code format',
|
||||||
|
b: 'build: bump dependencies',
|
||||||
|
c: 'chore: update config',
|
||||||
|
},
|
||||||
|
customScopesAlign: !scopeComplete ? 'top' : 'bottom',
|
||||||
|
defaultScope: scopeComplete,
|
||||||
|
scopes: [...scopes, 'mock'],
|
||||||
|
allowEmptyIssuePrefixs: false,
|
||||||
|
allowCustomIssuePrefixs: false,
|
||||||
|
|
||||||
|
// English
|
||||||
|
typesAppend: [
|
||||||
|
{ value: 'wip', name: 'wip: work in process' },
|
||||||
|
{ value: 'workflow', name: 'workflow: workflow improvements' },
|
||||||
|
{ value: 'types', name: 'types: type definition file changes' },
|
||||||
|
],
|
||||||
|
|
||||||
|
// 中英文对照版
|
||||||
|
// messages: {
|
||||||
|
// type: '选择你要提交的类型 :',
|
||||||
|
// scope: '选择一个提交范围 (可选):',
|
||||||
|
// customScope: '请输入自定义的提交范围 :',
|
||||||
|
// subject: '填写简短精炼的变更描述 :\n',
|
||||||
|
// body: '填写更加详细的变更描述 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// breaking: '列举非兼容性重大的变更 (可选)。使用 "|" 换行 :\n',
|
||||||
|
// footerPrefixsSelect: '选择关联issue前缀 (可选):',
|
||||||
|
// customFooterPrefixs: '输入自定义issue前缀 :',
|
||||||
|
// footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
|
||||||
|
// confirmCommit: '是否提交或修改commit ?',
|
||||||
|
// },
|
||||||
|
// types: [
|
||||||
|
// { value: 'feat', name: 'feat: 新增功能' },
|
||||||
|
// { value: 'fix', name: 'fix: 修复缺陷' },
|
||||||
|
// { value: 'docs', name: 'docs: 文档变更' },
|
||||||
|
// { value: 'style', name: 'style: 代码格式' },
|
||||||
|
// { value: 'refactor', name: 'refactor: 代码重构' },
|
||||||
|
// { value: 'perf', name: 'perf: 性能优化' },
|
||||||
|
// { value: 'test', name: 'test: 添加疏漏测试或已有测试改动' },
|
||||||
|
// { value: 'build', name: 'build: 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)' },
|
||||||
|
// { value: 'ci', name: 'ci: 修改 CI 配置、脚本' },
|
||||||
|
// { value: 'revert', name: 'revert: 回滚 commit' },
|
||||||
|
// { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改 (不影响源文件、测试用例)' },
|
||||||
|
// { value: 'wip', name: 'wip: 正在开发中' },
|
||||||
|
// { value: 'workflow', name: 'workflow: 工作流程改进' },
|
||||||
|
// { value: 'types', name: 'types: 类型定义文件修改' },
|
||||||
|
// ],
|
||||||
|
// emptyScopesAlias: 'empty: 不填写',
|
||||||
|
// customScopesAlias: 'custom: 自定义',
|
||||||
|
},
|
||||||
|
};
|
15
internal/vite-config/.eslintignore
Normal file
15
internal/vite-config/.eslintignore
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
*.sh
|
||||||
|
node_modules
|
||||||
|
*.md
|
||||||
|
*.woff
|
||||||
|
*.ttf
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
dist
|
||||||
|
/public
|
||||||
|
/docs
|
||||||
|
.husky
|
||||||
|
.local
|
||||||
|
/bin
|
||||||
|
Dockerfile
|
4
internal/vite-config/.eslintrc.js
Normal file
4
internal/vite-config/.eslintrc.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: ['@vben'],
|
||||||
|
};
|
10
internal/vite-config/.prettierignore
Normal file
10
internal/vite-config/.prettierignore
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
dist
|
||||||
|
.local
|
||||||
|
.output.js
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
**/*.svg
|
||||||
|
**/*.sh
|
||||||
|
|
||||||
|
public
|
||||||
|
.npmrc
|
19
internal/vite-config/.prettierrc.js
Normal file
19
internal/vite-config/.prettierrc.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
module.exports = {
|
||||||
|
printWidth: 100,
|
||||||
|
semi: true,
|
||||||
|
vueIndentScriptAndStyle: true,
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'all',
|
||||||
|
proseWrap: 'never',
|
||||||
|
htmlWhitespaceSensitivity: 'strict',
|
||||||
|
endOfLine: 'auto',
|
||||||
|
plugins: ['prettier-plugin-packagejson'],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: '.*rc',
|
||||||
|
options: {
|
||||||
|
parser: 'json',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user