Compare commits
1647 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d893964947 | ||
|
13838f66a9 | ||
|
6dccdae9b4 | ||
|
3f31fa9810 | ||
|
a17025bd3a | ||
|
f08ce0ee1a | ||
|
60634349ae | ||
|
14ce39116b | ||
|
edb6be1d51 | ||
|
8e2f79aea1 | ||
|
d6c4a9d2f6 | ||
|
d16a9f9d46 | ||
|
b817c7ac27 | ||
|
7a48949461 | ||
|
f1bad07c67 | ||
|
d2469f6313 | ||
|
f0ff8f7370 | ||
|
37cf3d6b1a | ||
|
8bda898480 | ||
|
4ca26c9104 | ||
|
265b95fc9e | ||
|
44619725c6 | ||
|
41ec908f37 | ||
|
b5ea5b21fd | ||
|
85763fa409 | ||
|
803c3cad7a | ||
|
2323008079 | ||
|
dcdcc5c557 | ||
|
a20d20dfce | ||
|
8a72826050 | ||
|
5c4aa457fa | ||
|
989b4d5695 | ||
|
0e89b8ac3f | ||
|
efebf795e4 | ||
|
fbdcd541e1 | ||
|
8e7d8370a1 | ||
|
73c593cc4e | ||
|
5b627350d8 | ||
|
d634c76040 | ||
|
55f7855cf8 | ||
|
f157ab9453 | ||
|
49c80cd76b | ||
|
cad15986bf | ||
|
9a0158da3a | ||
|
deea38c704 | ||
|
bc4fb455a3 | ||
|
411317194c | ||
|
42e9fac6f0 | ||
|
82d618cc03 | ||
|
9ebefdb1e8 | ||
|
5943158b3b | ||
|
e8fe386c1b | ||
|
5766833bd2 | ||
|
56f05e09ca | ||
|
b4ba209a8b | ||
|
75e2ed71be | ||
|
1e0f0cc5c7 | ||
|
e3626c2f9e | ||
|
6a13526c87 | ||
|
5f1b71520f | ||
|
bf687802d0 | ||
|
9b127470e2 | ||
|
7cfb1c6ee7 | ||
|
bcd96c08cf | ||
|
26f5516398 | ||
|
67eb359f15 | ||
|
60163a6026 | ||
|
cebbcd3c6c | ||
|
03d1e9a881 | ||
|
6fa4efaa5f | ||
|
52ca8f55a2 | ||
|
8b1c964082 | ||
|
171ab3a1ec | ||
|
1b3e97512b | ||
|
92a863b078 | ||
|
e693353d49 | ||
|
025487a5eb | ||
|
e19c0090de | ||
|
c6568f57fe | ||
|
d5d9f8024c | ||
|
292aad0d59 | ||
|
39c0ae8cf7 | ||
|
5ac386d56d | ||
|
a3ff882847 | ||
|
2cd6682cdf | ||
|
a3f17ea4d3 | ||
|
1b8c5e66bc | ||
|
0777ecd818 | ||
|
e309d7e049 | ||
|
61bb8c07c4 | ||
|
a3a875bc28 | ||
|
4e72e955ed | ||
|
24483ade28 | ||
|
38fee74250 | ||
|
f34da5afe5 | ||
|
08c26a461e | ||
|
7f8f2d9dda | ||
|
0a7704c06c | ||
|
a45d86c568 | ||
|
99e7ebee99 | ||
|
ec7ac4a036 | ||
|
9e5059fb38 | ||
|
9af896898e | ||
|
1259052b68 | ||
|
80976b4141 | ||
|
af1f14f293 | ||
|
cd175d50c1 | ||
|
17a1026696 | ||
|
ce4c09c373 | ||
|
105aca42a6 | ||
|
a54190adfc | ||
|
eda3eaa9a6 | ||
|
47366b3cf0 | ||
|
6e2c591822 | ||
|
5740ecd49c | ||
|
4c6d63bde8 | ||
|
a31e2295ee | ||
|
c0ff9a8502 | ||
|
6bcf8b1b15 | ||
|
8a836faa25 | ||
|
5a2028786a | ||
|
8a0f642d95 | ||
|
59a2180f2c | ||
|
2519edc6a7 | ||
|
42560d6603 | ||
|
9cbdfacfd2 | ||
|
2dec820a0a | ||
|
84a66d8c5a | ||
|
6eedfe994e | ||
|
f1982c2d8f | ||
|
4dac455575 | ||
|
affb9e405e | ||
|
2bf8090b60 | ||
|
266ddc7b51 | ||
|
5831940be0 | ||
|
8ae747b9a5 | ||
|
8b69f25e7b | ||
|
883d44cede | ||
|
024051df76 | ||
|
564e530a96 | ||
|
d3a0f69b4c | ||
|
69f263e491 | ||
|
ad82040a54 | ||
|
d994c60378 | ||
|
d7fddf405f | ||
|
ad9660b1f2 | ||
|
8a5c60a9bc | ||
|
1782c8af74 | ||
|
ad55f6f6a6 | ||
|
377d17b19d | ||
|
51e8b82bbf | ||
|
881e2d05c7 | ||
|
44c39de459 | ||
|
e2f87e62f2 | ||
|
f27d6f0e97 | ||
|
42d8414834 | ||
|
138bdad7ef | ||
|
9575936849 | ||
|
de3338c3f1 | ||
|
f95a78bec1 | ||
|
4be9e048e1 | ||
|
4f70bf770c | ||
|
3361b00bd1 | ||
|
ac6a0f49da | ||
|
c08f446464 | ||
|
849d2829f4 | ||
|
5d6b48831c | ||
|
d557957b34 | ||
|
08821663ce | ||
|
3d5ea46930 | ||
|
06c87b05cf | ||
|
24ba0e38c1 | ||
|
adc80ce74a | ||
|
d03fe5d95a | ||
|
05499d6430 | ||
|
74f619c961 | ||
|
b0aec69060 | ||
|
d7b7704b21 | ||
|
2f8480eea6 | ||
|
bdb5c83814 | ||
|
082ecb15f7 | ||
|
8981a8f74f | ||
|
b8efbf1e82 | ||
|
f7520b87bf | ||
|
a146c26e20 | ||
|
d0b8efc796 | ||
|
61e5b061e9 | ||
|
84bbe4de8b | ||
|
7c20d08ce2 | ||
|
1d288f6212 | ||
|
7664487a1c | ||
|
4502375ed0 | ||
|
6aab902762 | ||
|
597b5ac4cf | ||
|
e26fecfee8 | ||
|
661fc3a3d8 | ||
|
f601e25302 | ||
|
63e4776355 | ||
|
d67d275ae3 | ||
|
a8a1a56f3d | ||
|
f730611102 | ||
|
2344203563 | ||
|
f1a79cc36d | ||
|
194ea09cab | ||
|
b672288725 | ||
|
25974c7cf1 | ||
|
155da5aecd | ||
|
7c72bcf84a | ||
|
5a40280baa | ||
|
1254a4105a | ||
|
9a868ec50a | ||
|
534f784fda | ||
|
6d83b868ed | ||
|
e37b813028 | ||
|
01d44bc84e | ||
|
fa5f4348ea | ||
|
90b481c71d | ||
|
6e8b9b4df8 | ||
|
52ef1daa25 | ||
|
7902a8f038 | ||
|
3cef144119 | ||
|
555210547b | ||
|
72e08adfc1 | ||
|
266e46ebfa | ||
|
449f3d334d | ||
|
aa8c2da715 | ||
|
9262ce56d1 | ||
|
3198517b75 | ||
|
77ba87c66c | ||
|
e116dcc230 | ||
|
28a4d4761a | ||
|
5a2f430815 | ||
|
7ecbff79c7 | ||
|
420145a12b | ||
|
3090f6dbc8 | ||
|
9d587610e8 | ||
|
2254ad80b4 | ||
|
2896dfe3b1 | ||
|
5e12e7ea84 | ||
|
446cb0b85e | ||
|
aaad6b8380 | ||
|
367320eef9 | ||
|
09836df9fa | ||
|
804006f853 | ||
|
18690688be | ||
|
45970cc61b | ||
|
f140efd326 | ||
|
33568859cd | ||
|
70c0433d32 | ||
|
50bcf018d2 | ||
|
220c621a40 | ||
|
825cf0ae46 | ||
|
22cef8ef10 | ||
|
727b5c3268 | ||
|
f416341fd1 | ||
|
f2f3918b22 | ||
|
812ee32584 | ||
|
e9bb18ec2f | ||
|
dd1a4a5c18 | ||
|
f6779e8ca9 | ||
|
4236405db5 | ||
|
41f5c6cbb7 | ||
|
d7e2ac6e5f | ||
|
a3357ce26c | ||
|
9d11231402 | ||
|
38dcffba2a | ||
|
95b703645a | ||
|
339876b7a3 | ||
|
edeffe2de2 | ||
|
cdb669eb81 | ||
|
e33027e03f | ||
|
61f822856c | ||
|
61a742b64e | ||
|
721f6f5e15 | ||
|
928b7c79a7 | ||
|
8d654cae33 | ||
|
5c957a6c46 | ||
|
299b06a6ea | ||
|
7ede31b978 | ||
|
7c1d1278f6 | ||
|
637a427d76 | ||
|
05e3128dbc | ||
|
821fe9cb3e | ||
|
1fe99ff18b | ||
|
239abdc9b0 | ||
|
49cea9616a | ||
|
cdbee9649b | ||
|
f141e9c748 | ||
|
ae8292ebb3 | ||
|
e74435df1b | ||
|
952740a916 | ||
|
8a062d0c9a | ||
|
55454eb671 | ||
|
d3ee790186 | ||
|
203e984144 | ||
|
8a0cb6d0b4 | ||
|
ef1442fde9 | ||
|
1c8ef3250b | ||
|
64bf8a9ec6 | ||
|
ed93642ec5 | ||
|
5fe00b4061 | ||
|
8b9229b906 | ||
|
858cfbec27 | ||
|
c419c47c13 | ||
|
29ed35f94f | ||
|
a106b5e199 | ||
|
80973de095 | ||
|
ad02a57c0a | ||
|
7e624b4b49 | ||
|
5a32d2359f | ||
|
b2b1660232 | ||
|
1d667ee1b9 | ||
|
51e83f5bbc | ||
|
62f482bb63 | ||
|
fcee27b8df | ||
|
1337b0ff34 | ||
|
22170c18f8 | ||
|
a6210c9add | ||
|
278c5996f1 | ||
|
bef704750e | ||
|
ae7e4b6ddf | ||
|
13318bd642 | ||
|
d4bcfb3750 | ||
|
9db715e375 | ||
|
1121af7441 | ||
|
bfab828813 | ||
|
9f0682638b | ||
|
2d56ee7912 | ||
|
be5be83dfc | ||
|
9a8629aeb2 | ||
|
702d26822b | ||
|
d809a13b67 | ||
|
f7202ae5fa | ||
|
b1101efe0e | ||
|
23fefd54ff | ||
|
792950db48 | ||
|
777c30c247 | ||
|
eb6d6b11e5 | ||
|
f365282755 | ||
|
eb1c0cdc7a | ||
|
de427b7f20 | ||
|
25b60c1f2b | ||
|
f4ccd38f07 | ||
|
6a9d51c859 | ||
|
4143c2dfbe | ||
|
6ebc02825e | ||
|
36f6c161b4 | ||
|
34480648d7 | ||
|
cf363bf061 | ||
|
598b053841 | ||
|
a03a1c17fe | ||
|
5ff46a3757 | ||
|
82a4dd5b3b | ||
|
72a0a200a8 | ||
|
156715ede5 | ||
|
880c44fdaa | ||
|
2a0f6dc1df | ||
|
dadfc9a240 | ||
|
598d3803dc | ||
|
f5bd0f0533 | ||
|
63db09a22f | ||
|
6c6399abc0 | ||
|
0968a4d7ef | ||
|
c5bc1ab833 | ||
|
819bbae3e5 | ||
|
0dd11735fc | ||
|
972e420354 | ||
|
2da3b2ac75 | ||
|
1fdfd8e2d8 | ||
|
48662ed9f4 | ||
|
485f45a2ea | ||
|
fa93f52f87 | ||
|
f0b332a269 | ||
|
f61a535454 | ||
|
f6b0b04ad2 | ||
|
ebebfcd03e | ||
|
3ac0ce7429 | ||
|
a34b2c7074 | ||
|
88a66039ce | ||
|
c637f0e93a | ||
|
f3792720b7 | ||
|
4a1f4c88cf | ||
|
8546f9f735 | ||
|
cc4b5183ea | ||
|
e361bcbf42 | ||
|
8e461e8aed | ||
|
b6ae2aa2f8 | ||
|
f985c75fc5 | ||
|
c2b176376f | ||
|
3d0e6fc3d1 | ||
|
3752d23b42 | ||
|
ace605884e | ||
|
e8e3ca123b | ||
|
137c59a1e1 | ||
|
b0d989e1da | ||
|
bd4b5ec0c3 | ||
|
f13e7fd1d0 | ||
|
8be5c22ae4 | ||
|
4722384741 | ||
|
0952a571b3 | ||
|
1dd00bbfa7 | ||
|
79a1a1faef | ||
|
8ef4b466d7 | ||
|
4ccc7ac56b | ||
|
7fb24cadea | ||
|
e89be5f278 | ||
|
b746e1d553 | ||
|
b8b764c04c | ||
|
45532a3eb6 | ||
|
ffee484d6c | ||
|
9e4afd5271 | ||
|
d5099c3a04 | ||
|
2558cfa4c2 | ||
|
6357056600 | ||
|
c1b60e6298 | ||
|
f2b45c5084 | ||
|
a451f38701 | ||
|
e6efd91414 | ||
|
19469508f7 | ||
|
5166287b0e | ||
|
494c4c5753 | ||
|
27e2d34171 | ||
|
eddff3d75b | ||
|
910bef6695 | ||
|
fa2faecb7c | ||
|
e6cd2306c9 | ||
|
59945ad798 | ||
|
ded7920a8a | ||
|
60b8748b95 | ||
|
f1956b4982 | ||
|
5708aa25c4 | ||
|
f2e6f89c08 | ||
|
1c222c3ce0 | ||
|
d6c28b8286 | ||
|
0cd9f6dcd6 | ||
|
b2abee724d | ||
|
3e3cb309ce | ||
|
55c8dfa549 | ||
|
9740c58291 | ||
|
77558186a4 | ||
|
d94752a021 | ||
|
b524848742 | ||
|
339c1ab227 | ||
|
1bdc27ea98 | ||
|
19dc42cd2c | ||
|
7375dc58a3 | ||
|
ee678289d4 | ||
|
c932fbb5f3 | ||
|
768cae7abc | ||
|
5abb8a867f | ||
|
c4bba7e74d | ||
|
e365f874bc | ||
|
f54e2c8ddc | ||
|
e93979ab5f | ||
|
5d5e87595b | ||
|
ff769179a8 | ||
|
8546388439 | ||
|
7dcecd4421 | ||
|
4bc039185c | ||
|
efef672157 | ||
|
ec8c8e7d4b | ||
|
c14970e232 | ||
|
bee45ee7a0 | ||
|
7bfc0ee507 | ||
|
9e768f4ef4 | ||
|
0e53d7e657 | ||
|
906a1accd1 | ||
|
1e381b06ee | ||
|
731ae82bc5 | ||
|
8019ee550e | ||
|
d7affe1034 | ||
|
5f35e0bb94 | ||
|
75b70d33ee | ||
|
e3c17ef96d | ||
|
0f6ae3f626 | ||
|
175b819e8e | ||
|
9933f68ba9 | ||
|
44e05e7f80 | ||
|
f518e4cb10 | ||
|
b127849388 | ||
|
7524b6f895 | ||
|
0a96331218 | ||
|
caf34a96e6 | ||
|
5645d253e5 | ||
|
e2ad3f3749 | ||
|
b1137249f1 | ||
|
369247d987 | ||
|
fe8f594cb4 | ||
|
64db1176a6 | ||
|
27d175a06e | ||
|
3b96b3c90b | ||
|
32183336a2 | ||
|
fb9d9d6480 | ||
|
7394ff27a5 | ||
|
6093d8915c | ||
|
83bb13b806 | ||
|
c9062a9e26 | ||
|
6dc7cc0b37 | ||
|
aa631678f8 | ||
|
1c36d1b3c6 | ||
|
90050bf87d | ||
|
58bb69c252 | ||
|
14c3b249a7 | ||
|
4589c4abaf | ||
|
94f1959d40 | ||
|
e7c63b2d41 | ||
|
e2904acff6 | ||
|
3d1a2d6833 | ||
|
d1e340f104 | ||
|
d1a48a2e56 | ||
|
6d8f159975 | ||
|
5925ac448e | ||
|
fdb1dd886b | ||
|
7075b5c90a | ||
|
66b3018ace | ||
|
87ae6242a1 | ||
|
de5f1a8bd1 | ||
|
9cefe70061 | ||
|
73cbd4d8d2 | ||
|
02d9f6b116 | ||
|
1f5cc25b86 | ||
|
63200bca26 | ||
|
305029649e | ||
|
cfb7292f36 | ||
|
582b83d4f5 | ||
|
42eaa4996d | ||
|
df465eef29 | ||
|
b3f8c61df0 | ||
|
6f57ef5bcf | ||
|
7ca47d9015 | ||
|
b9a0bbf12d | ||
|
4a8c84ee9d | ||
|
2f9ad17b1f | ||
|
e8e1b35cd3 | ||
|
edd85e700e | ||
|
a7378d297f | ||
|
dd75e160c3 | ||
|
84c78f993b | ||
|
25ba669f67 | ||
|
3bb3361e2f | ||
|
d82e557fd1 | ||
|
3c9de27e66 | ||
|
276b1a7255 | ||
|
25c7d0a372 | ||
|
31c630ca25 | ||
|
e5eaa05bdb | ||
|
2431755f2b | ||
|
29f35d590e | ||
|
ac9451dd1c | ||
|
b4ee023b93 | ||
|
28e7321754 | ||
|
daab079e3c | ||
|
a32f818abd | ||
|
d8980e66e3 | ||
|
46898d2419 | ||
|
153c29fbcc | ||
|
feb3dbabc2 | ||
|
0ac1e0d75a | ||
|
572e61046f | ||
|
9f47b50dac | ||
|
5022ca9075 | ||
|
fee2123b49 | ||
|
78e6d4e367 | ||
|
a5b8d51747 | ||
|
e9245dfd19 | ||
|
f605192fe1 | ||
|
504adad9fe | ||
|
cd82d8ee92 | ||
|
d97dbc612c | ||
|
368bad6771 | ||
|
41cc618a49 | ||
|
4f0f1b372e | ||
|
acfac6d45f | ||
|
1a3f483654 | ||
|
559177ea32 | ||
|
c9f9264c87 | ||
|
8fabd32426 | ||
|
6a34bb426c | ||
|
a1edc55ca0 | ||
|
d1366f161d | ||
|
b58754b6c5 | ||
|
ee3e68f3ac | ||
|
3a0af18f74 | ||
|
24f30ab198 | ||
|
72b9447b12 | ||
|
7e24454743 | ||
|
48d81dbd19 | ||
|
cdf0a9eed1 | ||
|
59cf22a421 | ||
|
41a34fb2d7 | ||
|
4164ea4086 | ||
|
a2db27163e | ||
|
5a0b4ec6aa | ||
|
4cfb1a6f37 | ||
|
e2f7fd0d77 | ||
|
80d530a2ed | ||
|
a1a06e1cbf | ||
|
6bec731396 | ||
|
ac40823319 | ||
|
ef063898ca | ||
|
b27a801b04 | ||
|
4bcee2fc2d | ||
|
b0672bb543 | ||
|
7b0ea02ad4 | ||
|
eaf7ba5f43 | ||
|
28b4aa0d55 | ||
|
d9ec7917f3 | ||
|
ac6040177a | ||
|
f2ac6a61ab | ||
|
5f904f99b6 | ||
|
6fbef03b33 | ||
|
98aa11bb64 | ||
|
fba83f39bd | ||
|
c3a2c3c23d | ||
|
5125038e9c | ||
|
42ca29bdaf | ||
|
48e4027525 | ||
|
1c4893bc22 | ||
|
2955b4800f | ||
|
5a26589052 | ||
|
4c2cdc1232 | ||
|
cb6e40bea7 | ||
|
4c61a84652 | ||
|
ffaca80b21 | ||
|
395b204da3 | ||
|
0f5f6b860b | ||
|
a9ba931bba | ||
|
23fae59411 | ||
|
320613d15d | ||
|
57ea32e785 | ||
|
3e3f80c59b | ||
|
c15ba5b078 | ||
|
651888faab | ||
|
71ebd6bf56 | ||
|
0494ce7f5b | ||
|
fdf869cd46 | ||
|
7dfca604c2 | ||
|
d220047fe2 | ||
|
bbe80f0292 | ||
|
41e73a2c9b | ||
|
7d89cf9f45 | ||
|
b4abcd4c90 | ||
|
8a048f692f | ||
|
70777f8335 | ||
|
800317346c | ||
|
d62c87b858 | ||
|
4a1e2db7ca | ||
|
743187b4b3 | ||
|
5c1f24af6a | ||
|
6702d94ba1 | ||
|
9477bfa2c1 | ||
|
1ba58f476f | ||
|
02600d7a1b | ||
|
a87d04fb9d | ||
|
2126c92e07 | ||
|
367db0daf1 | ||
|
af774a8835 | ||
|
b93fad1f91 | ||
|
ef43be0cb7 | ||
|
583b28a6c4 | ||
|
8b6eea0267 | ||
|
d0da22738f | ||
|
ec5f2e69eb | ||
|
d058f0e777 | ||
|
89befaad43 | ||
|
18eda16851 | ||
|
610e9b9efa | ||
|
a0c7d60719 | ||
|
60ba0d8f02 | ||
|
b9afb05f1b | ||
|
fcf9ea2b79 | ||
|
430b1117c9 | ||
|
a65023c8f7 | ||
|
d6de85ffdd | ||
|
5f11d8b54f | ||
|
c7ce602d4c | ||
|
d0988da277 | ||
|
7f13ef35a7 | ||
|
548d0e0670 | ||
|
44348de4ab | ||
|
be82fe1bde | ||
|
2e472dad93 | ||
|
7b862ee0e1 | ||
|
bbfb237f23 | ||
|
d4e37e9418 | ||
|
b53b1d1e58 | ||
|
390224613a | ||
|
7e0c677ad3 | ||
|
9936f2b806 | ||
|
bfde8bd28b | ||
|
4b309d950c | ||
|
688f06ebac | ||
|
6fb3b552eb | ||
|
f27e7bdad4 | ||
|
2ee139c92b | ||
|
7a6c156aaa | ||
|
0342c73f07 | ||
|
727d9037d1 | ||
|
11d40b4be1 | ||
|
b772580f99 | ||
|
fafdb6be5b | ||
|
2f984530e3 | ||
|
b24c244186 | ||
|
d365aea6a0 | ||
|
115f1171ad | ||
|
b2b477d4e0 | ||
|
1e37ecff11 | ||
|
68b39bbc3d | ||
|
d21dc57305 | ||
|
9cf87404be | ||
|
2e51b0dea1 | ||
|
a1f20c6f92 | ||
|
6b6a60b84f | ||
|
c58d826898 | ||
|
7e80361635 | ||
|
4e999176ed | ||
|
76ff273ec7 | ||
|
475a77497f | ||
|
5d1301c871 | ||
|
772f40e13d | ||
|
1b2f7ad28c | ||
|
84778881f6 | ||
|
d6d0338666 | ||
|
de6f477d05 | ||
|
03e07ee280 | ||
|
35e2273603 | ||
|
7a138388b2 | ||
|
b1f42dd6bf | ||
|
2eeba4ee4f | ||
|
d91579e848 | ||
|
13751f14f3 | ||
|
b25d2016a6 | ||
|
7ea00e17bd | ||
|
ec78370ecc | ||
|
636630fe57 | ||
|
e18726efc2 | ||
|
c9f62ae5d3 | ||
|
b80b69dd26 | ||
|
ac49415061 | ||
|
823c26aa5e | ||
|
c0c9d56408 | ||
|
9edb64837d | ||
|
671fa65930 | ||
|
0da81ea60d | ||
|
c610d396d6 | ||
|
ff4adde897 | ||
|
0ed02ca7f7 | ||
|
c22981e2c1 | ||
|
b0af35a4b9 | ||
|
45ae7cab21 | ||
|
1d16a165a5 | ||
|
f1f4242ad6 | ||
|
bff8f10cd5 | ||
|
429f5aed90 | ||
|
d8999ffc06 | ||
|
fd745f0a26 | ||
|
322d12f27f | ||
|
305e44ea1c | ||
|
a1bc8ac5bc | ||
|
9271cb2e1a | ||
|
0e7c682f72 | ||
|
c0b4029917 | ||
|
b1acb62889 | ||
|
26fd9b1813 | ||
|
4fabdfdc5f | ||
|
6e894c31a1 | ||
|
d8a6fd96ce | ||
|
7c5c5f966d | ||
|
a636bb2037 | ||
|
9b6f54c1ed | ||
|
611341307b | ||
|
f8479c53ff | ||
|
8b25fd198e | ||
|
e25bf46659 | ||
|
6d07307e56 | ||
|
6fb7fe8fa1 | ||
|
762fa4c17e | ||
|
19cd497095 | ||
|
73cc319e7b | ||
|
d858489367 | ||
|
d90aba37cf | ||
|
341a30ba06 | ||
|
d775ffa501 | ||
|
e8cf8347e9 | ||
|
8390fb7429 | ||
|
5389f1d011 | ||
|
bde642570f | ||
|
3e7b970fe7 | ||
|
7ff1da71d4 | ||
|
2421e822b4 | ||
|
b2e474e3f6 | ||
|
a23a0d0197 | ||
|
541836390a | ||
|
bb92e3f22b | ||
|
c9ad797b40 | ||
|
2a08310efc | ||
|
3b2803b9a1 | ||
|
1b8ac9112e | ||
|
9cc3dd4de9 | ||
|
120ef70eb1 | ||
|
541f4ebc62 | ||
|
a47636abc7 | ||
|
78f6f4b36a | ||
|
5abc0b77cf | ||
|
464638e782 | ||
|
37cfeb2077 | ||
|
44e297f01a | ||
|
febc283e36 | ||
|
dae33f55e8 | ||
|
c62cd27690 | ||
|
83443f8187 | ||
|
cb46f393e0 | ||
|
ddf5ac2151 | ||
|
88173f852a | ||
|
d5f16e90e2 | ||
|
d1c0aca4ff | ||
|
a42edf17ec | ||
|
dac5dfcd1c | ||
|
8e6ca146e1 | ||
|
9c06d36eab | ||
|
ab7bd574f8 | ||
|
6007dc8621 | ||
|
a0e7c48dc9 | ||
|
71dea791bf | ||
|
e1b9184f41 | ||
|
730d47f02a | ||
|
e82ec68935 | ||
|
e8e5975d7f | ||
|
3cb9dec978 | ||
|
c025441075 | ||
|
050b50fa74 | ||
|
e26befabc3 | ||
|
8545fc6136 | ||
|
1477712c78 | ||
|
e343e0df9d | ||
|
74519e6f3c | ||
|
1305f90372 | ||
|
bbc3f53c0a | ||
|
aa605adbc7 | ||
|
49ea7d0969 | ||
|
4221bdb2ab | ||
|
77a0100add | ||
|
833e44024f | ||
|
af4010e299 | ||
|
9b7c4ed353 | ||
|
879df90503 | ||
|
41f841532f | ||
|
0b9f47dd84 | ||
|
d32a376e8c | ||
|
0f8a8845df | ||
|
8bb2c66b99 | ||
|
b3d0be2f60 | ||
|
5a94ddd976 | ||
|
7b9627a80b | ||
|
5fcfecc060 | ||
|
f4d7a2283c | ||
|
40bb8410d3 | ||
|
45344ac620 | ||
|
5b894c9667 | ||
|
d89bd15b6d | ||
|
5e640dd45c | ||
|
09aa750794 | ||
|
744b215800 | ||
|
f4e11da053 | ||
|
2e6b5706d5 | ||
|
440a5b27ef | ||
|
932e16844e | ||
|
aff2e439dd | ||
|
a618794c14 | ||
|
8dd66c400a | ||
|
ac3ce464b7 | ||
|
4d01c6dabe | ||
|
47eeac23eb | ||
|
592f783245 | ||
|
c34ac6a56f | ||
|
9a7162cc9e | ||
|
5edf2f34dd | ||
|
859d824195 | ||
|
c382cc633e | ||
|
653e24773f | ||
|
ae489610ee | ||
|
b5e85c66e4 | ||
|
4060fa4c4a | ||
|
9630b79daa | ||
|
ad93917387 | ||
|
691590da7b | ||
|
71828fd78b | ||
|
5a45f31ac4 | ||
|
44901eee23 | ||
|
2d91fa107d | ||
|
7a6ade4bd9 | ||
|
951778668f | ||
|
0aca23bf38 | ||
|
9b97dc9a74 | ||
|
32cd030479 | ||
|
607bb476db | ||
|
1d676ec9b7 | ||
|
614ebb4121 | ||
|
8c2719a95d | ||
|
c6b0a958a6 | ||
|
3edebf3f4f | ||
|
f63405978e | ||
|
c582c8de98 | ||
|
c44e79ed3b | ||
|
fc7d5b9c29 | ||
|
335febd4a5 | ||
|
5ea2918fe7 | ||
|
7668d10ba5 | ||
|
df15d141da | ||
|
e2f4bbde79 | ||
|
3ca7de42af | ||
|
e6a577ba9b | ||
|
6290179460 | ||
|
4f3c9e9353 | ||
|
aa28a8f765 | ||
|
98d0a52fa2 | ||
|
8d9e1ffadb | ||
|
b3be312a4d | ||
|
7c41d148aa | ||
|
6dee911642 | ||
|
6dd35e5173 | ||
|
fdaa33f68d | ||
|
0b813bb719 | ||
|
7ba6b8d4e4 | ||
|
ef99e25fde | ||
|
d1e7b907e3 | ||
|
83f7dda5e7 | ||
|
80f929fdea | ||
|
1ec3d02933 | ||
|
fdf148cc2b | ||
|
c9e6ef89dc | ||
|
59f9f88f8b | ||
|
16417ae843 | ||
|
58bd0a17c8 | ||
|
c4a1eb6938 | ||
|
b7d9031889 | ||
|
96b29a9dc2 | ||
|
336e176639 | ||
|
2df4a9d66d | ||
|
45a102cff1 | ||
|
57ebfa0812 | ||
|
4e9dd57efe | ||
|
3fcc4ca160 | ||
|
958760811c | ||
|
b60e0251c2 | ||
|
3db0ed756e | ||
|
453c4b1e4e | ||
|
bf4d8ce7a6 | ||
|
34effdbe15 | ||
|
274db466f2 | ||
|
cbe697f9dc | ||
|
fb7acb100e | ||
|
ebb36847df | ||
|
beba4f1994 | ||
|
452796e3f5 | ||
|
02a7969d90 | ||
|
798dbec151 | ||
|
0e11a56e37 | ||
|
be5344344c | ||
|
e75d711e0a | ||
|
46ee116f3e | ||
|
f4b304338f | ||
|
e93e78307c | ||
|
d22079446f | ||
|
d57b99b00c | ||
|
e7321356af | ||
|
a0edc2c527 | ||
|
10ebcfd64d | ||
|
a3fedb9697 | ||
|
1eb8a18c66 | ||
|
f491c57c34 | ||
|
50b7f54652 | ||
|
5bf298a5bf | ||
|
124ff9a8c2 | ||
|
387ab4f1b3 | ||
|
d6fbdfa7ea | ||
|
cd4260fd8d | ||
|
baeece62d3 | ||
|
576c8f5891 | ||
|
5e97600807 | ||
|
4e2eb3a37d | ||
|
e92173f8e8 | ||
|
412d9c804e | ||
|
b84a725d4a | ||
|
58b39743e0 | ||
|
7651443c25 | ||
|
8d64e331d1 | ||
|
f873254248 | ||
|
c569d0c21c | ||
|
95d1e23cf8 | ||
|
a976948388 | ||
|
38aadbd8e4 | ||
|
257ddd9517 | ||
|
2630eddb41 | ||
|
5d84b7c874 | ||
|
017884e7cc | ||
|
682528367d | ||
|
d1b343dfd4 | ||
|
1e120f6b77 | ||
|
e59c129e50 | ||
|
4ad17c33a5 | ||
|
31179d665e | ||
|
8476cd3dd9 | ||
|
d442f9bc7d | ||
|
f7c48072c4 | ||
|
2690f1904b | ||
|
6d72a5af4a | ||
|
c4ddfb7d64 | ||
|
d388cb3059 | ||
|
07223c0e31 | ||
|
6a492a83bf | ||
|
1f6346dbe1 | ||
|
4ab788364e | ||
|
9849c0e47b | ||
|
3d86e75bc8 | ||
|
265466c549 | ||
|
7e3808c4b9 | ||
|
7c141b5183 | ||
|
cccec1aa1b | ||
|
7c3effe1d9 | ||
|
4717b21abb | ||
|
44bd9cb8c7 | ||
|
117bccc520 | ||
|
fb86ac4060 | ||
|
dae1fef629 | ||
|
455496adcf | ||
|
3b50431e57 | ||
|
27765ca866 | ||
|
9dad31c75a | ||
|
04067f5729 | ||
|
edcff7d640 | ||
|
1b5f20f9e4 | ||
|
add8bd0f01 | ||
|
83c5cf4231 | ||
|
fc4ffe53a5 | ||
|
92e66981a8 | ||
|
98153ff98c | ||
|
89246186d0 | ||
|
31faca5d3f | ||
|
ed371dba4f | ||
|
0ac4337f98 | ||
|
526a2eb1d8 | ||
|
9ce7ebd600 | ||
|
3e00c06766 | ||
|
2c9e1f6d3a | ||
|
0a57f3afc7 | ||
|
ee31b501af | ||
|
4e79074cef | ||
|
ada6479177 | ||
|
32585e4abc | ||
|
861bce244e | ||
|
5412647971 | ||
|
887496fe51 | ||
|
1f3d29560d | ||
|
d3c018dc4a | ||
|
8a7f358b06 | ||
|
42ea79858f | ||
|
e60dd28212 | ||
|
4eefb448ed | ||
|
918b6dbe8e | ||
|
34154178e2 | ||
|
060fc4719c | ||
|
ea44fe7c13 | ||
|
6264caf8a8 | ||
|
2b3537ac7e | ||
|
86efbbcd82 | ||
|
40b8b3f739 | ||
|
40a18d7efb | ||
|
517917947a | ||
|
b6b97cb3a5 | ||
|
46a8e53c51 | ||
|
0a6a628be5 | ||
|
1238a62a3c | ||
|
aaff23d261 | ||
|
9df71344ed | ||
|
7acf008adc | ||
|
7f2bab1a30 | ||
|
6eaa8b9a85 | ||
|
ea9f067f35 | ||
|
564b04850a | ||
|
3f42ad7d18 | ||
|
1b7ffaeda3 | ||
|
8fad0019f8 | ||
|
f06d28dab1 | ||
|
5b3d20972a | ||
|
20f97f96b8 | ||
|
a952c0b216 | ||
|
1edb374a90 | ||
|
39b43d6eff | ||
|
0b3eb69749 | ||
|
440a3fa7fe | ||
|
16e9bf37ea | ||
|
448e4fac32 | ||
|
e819bc5aee | ||
|
662e29c4c7 | ||
|
195f0cd69a | ||
|
d4fff004c9 | ||
|
de89e7e80a | ||
|
cd94116465 | ||
|
78706a0fb6 | ||
|
bee96b9e09 | ||
|
47b5e4ba90 | ||
|
6583c27600 | ||
|
ebba329a0d | ||
|
0aadfe5d24 | ||
|
5e7e4151a3 | ||
|
4d418221d6 | ||
|
2d81cc857b | ||
|
b0ab3bf434 | ||
|
8eb381b81c | ||
|
2e7611ad92 | ||
|
7955afcf35 | ||
|
8e8ee7c495 | ||
|
f3f1da452e | ||
|
3efe6efa0b | ||
|
37453aaa11 | ||
|
47c26e93df | ||
|
e3f5f948c3 | ||
|
17d0dab859 | ||
|
02f5f4261e | ||
|
fc4f10a7ea | ||
|
6d127bdee7 | ||
|
00c5968380 | ||
|
0f8e02c738 | ||
|
77c1af3dcf | ||
|
ad52d17bda | ||
|
d45e18fac6 | ||
|
5432306b1a | ||
|
b1000227c0 | ||
|
9d86a63b52 | ||
|
32d6fc95be | ||
|
d7ff7c8038 | ||
|
b042bf4b55 | ||
|
b315f65bcd | ||
|
ead06c5eae | ||
|
b8b488274f | ||
|
e54ac05df2 | ||
|
6146ffc9c3 | ||
|
0fcd8c134d | ||
|
ccac4745ea | ||
|
70dba5a317 | ||
|
f6adb3b1c3 | ||
|
0b4b551d56 | ||
|
cd1e371acb | ||
|
8e0117a100 | ||
|
1b0bb1a711 | ||
|
392d150396 | ||
|
c3114609f5 | ||
|
1e82ca3f66 | ||
|
e4c7b1d8cf | ||
|
942b74be8e | ||
|
7841669db7 | ||
|
a0382dc984 | ||
|
fdb52fb4f4 | ||
|
38aa42ff9b | ||
|
802bf6f1e3 | ||
|
ae9312983a | ||
|
c156250c90 | ||
|
5dcdbb702f | ||
|
4750f8388a | ||
|
3fb47fb6ea | ||
|
eba323fb64 | ||
|
53b00421d2 | ||
|
cc77c1ebaf | ||
|
5ea3ae3a0c | ||
|
76b6aebac4 | ||
|
1e1f2f3bd9 | ||
|
085b11e262 | ||
|
4eb556e1bb | ||
|
e4a0ef311b | ||
|
9073e9fa68 | ||
|
29ceb66837 | ||
|
5184252e5f | ||
|
cad65469a4 | ||
|
03051c6a8f | ||
|
a25392f934 | ||
|
ba4fc027e6 | ||
|
3b21e8f858 | ||
|
31a2a97bee | ||
|
bf1ae6570c | ||
|
29ddc06c4b | ||
|
8a6d56e09f | ||
|
b739d3f435 | ||
|
82d2c06eff | ||
|
adf8617abf | ||
|
286275142a | ||
|
1b0d46bdfb | ||
|
d9864afa8c | ||
|
c0beb480d4 | ||
|
20b7b87cff | ||
|
e374906dee | ||
|
3459529d08 | ||
|
4d67c7e2ff | ||
|
6cbec0c39e | ||
|
8c074a9f9a | ||
|
e37ca4c34f | ||
|
a8c85826de | ||
|
91ed7636ff | ||
|
8db03bf315 | ||
|
793ced1758 | ||
|
9ef07fb494 | ||
|
349c5116ea | ||
|
93949d9fd7 | ||
|
eedcad947e | ||
|
5e17b74684 | ||
|
99f027e0ee | ||
|
04de130e02 | ||
|
30444565a8 | ||
|
c9b72491b6 | ||
|
86b687d27b | ||
|
03b0219a1e | ||
|
8ddc2cda92 | ||
|
c3d9da1186 | ||
|
b1b28f93c5 | ||
|
a465a093c9 | ||
|
3d362db71a | ||
|
3ea506adca | ||
|
bb37dde0e0 | ||
|
c1e21905df | ||
|
9445ac1efe | ||
|
0f6e12f80b | ||
|
94181dbb46 | ||
|
988eec7224 | ||
|
4a604f4f6a | ||
|
cc244c6af6 | ||
|
b97ef23bf8 | ||
|
0952e9e9ae | ||
|
7391c9e675 | ||
|
757184c459 | ||
|
85a4247d9b | ||
|
9b36f51015 | ||
|
60d8f00723 | ||
|
d9d0f922bb | ||
|
040d049742 | ||
|
53044e0551 | ||
|
59f0a16544 | ||
|
60f44c6759 | ||
|
2cb1ae1ab7 | ||
|
bf8e6118c2 | ||
|
a561a62ef5 | ||
|
982f9e5635 | ||
|
ca57e8106b | ||
|
d0ae764ab6 | ||
|
104e711aec | ||
|
1dde0cba15 | ||
|
3981570360 | ||
|
bba9951b9b | ||
|
f3e55a58ce | ||
|
f706d38e2d | ||
|
e88f84e438 | ||
|
9ca80bda50 | ||
|
19c71d4ddd | ||
|
601acb63bb | ||
|
4f3a1cac43 | ||
|
c1085cce70 | ||
|
8331e8b58c | ||
|
8e81a9fca4 | ||
|
df11f56a40 | ||
|
71b21f78e1 | ||
|
174117161e | ||
|
affdcc3225 | ||
|
165d5dfef3 | ||
|
94ae70a2c2 | ||
|
acef2eff3a | ||
|
7d7208a1bf | ||
|
56f66a169c | ||
|
4caf3b2f86 | ||
|
e58911d9cf | ||
|
c03c9dac30 | ||
|
19858a4467 | ||
|
1b5b4188b5 | ||
|
689b25b743 | ||
|
5ee2ed14af | ||
|
eecfebe66f | ||
|
e1d48a62e2 | ||
|
00bd0e52ef | ||
|
aa3c9762c9 | ||
|
6fac279db7 | ||
|
0f013cd7a0 | ||
|
dac84749fd | ||
|
b2f650cab0 | ||
|
a3a58040a0 | ||
|
659a3864f7 | ||
|
a1a5dfdbfd | ||
|
a89c32e668 | ||
|
903a1ecda4 | ||
|
3802520958 | ||
|
54acd85586 | ||
|
3c41aa44eb | ||
|
b830674abc | ||
|
1949d76654 | ||
|
82689b48ba | ||
|
455f732250 | ||
|
5494bec24a | ||
|
1eedf42be0 | ||
|
5d0c8535f2 | ||
|
a0c9a72c1d | ||
|
7fbbb75fed | ||
|
897198b785 | ||
|
04e7d66667 | ||
|
b6c81dacf7 | ||
|
f4c9637949 | ||
|
141d4208e1 | ||
|
46d1969254 | ||
|
0cf0e04705 | ||
|
e6a3b1e9e1 | ||
|
35fa8ed374 | ||
|
38856deaa7 | ||
|
f573a3a7ab | ||
|
500d3e15c3 | ||
|
bbee6cafdf | ||
|
5053b0a89a | ||
|
024e4a1d96 | ||
|
f791a2cfcf | ||
|
962bad10aa | ||
|
288c6af300 | ||
|
7eb5be9081 | ||
|
fcd049721d | ||
|
efaec831e8 | ||
|
d2f9256fb0 | ||
|
4811b4af5b | ||
|
bf2e9d4471 | ||
|
15978c968e | ||
|
b46fc915f3 | ||
|
a12e17b39c | ||
|
1cc8b626a6 | ||
|
f13f5e455b | ||
|
7de34ac9a2 | ||
|
fb38ba1c9d | ||
|
5d6a58421f | ||
|
3cc89b8469 | ||
|
c9826a7520 | ||
|
2b7a874c1e | ||
|
a8a79df6b4 | ||
|
f07e14e62f | ||
|
ee1b38a88d | ||
|
32af035674 | ||
|
6cbc7d0220 | ||
|
bfa3836cc2 | ||
|
c8f6d0b595 | ||
|
f6ddd44ccb | ||
|
e813ce3fef | ||
|
8234ea338b | ||
|
7ba78302b0 | ||
|
4143c2c32d | ||
|
68fa8f30c0 | ||
|
e0f9b819d2 | ||
|
9b9b096749 | ||
|
c03c8b2299 | ||
|
2e78e5e5c6 | ||
|
d2fc125642 | ||
|
51fb493462 | ||
|
838f6e06b5 | ||
|
ebe131d4a4 | ||
|
ccd739d570 | ||
|
503a2ed934 | ||
|
d1f59f2bde | ||
|
48daa0f04a | ||
|
28a2248491 | ||
|
c4433592f4 | ||
|
576c51fcac | ||
|
aaf8b3ea51 | ||
|
d8ba39ebf2 | ||
|
e9e63cd11b | ||
|
5fc23c15f0 | ||
|
8015ceeed5 | ||
|
5068a126be | ||
|
5996d89e4c | ||
|
23f6502d99 | ||
|
c4a13e06e5 | ||
|
080565bea6 | ||
|
f7ab833cb8 | ||
|
b8025ae5bb | ||
|
9247c6c4f3 | ||
|
061981688d | ||
|
d2e07bcf69 | ||
|
d44d209c21 | ||
|
3672716ee6 | ||
|
1ef850a09f | ||
|
ce4b3f2a35 | ||
|
8f229001aa | ||
|
035597d330 | ||
|
4f0ec2e6e3 | ||
|
ebe4cce3ac | ||
|
4a0af806f5 | ||
|
51b26395ad | ||
|
73f75e6515 | ||
|
771c3f5516 | ||
|
fd9d08eb0c | ||
|
44bfaad9cb | ||
|
8931331466 | ||
|
a450c8d3dc | ||
|
1151d501f5 | ||
|
b6b042407d | ||
|
4f215cbc49 | ||
|
dd7329930c | ||
|
acfc1fc942 | ||
|
aed40c518e | ||
|
2d7fae677b | ||
|
50077dd0ac | ||
|
5dafd7217e | ||
|
2ffcf7bd26 | ||
|
334fb0c6e9 | ||
|
51ffebb04f | ||
|
9754395e62 | ||
|
bb5766c85d | ||
|
fc27497535 | ||
|
31221c1d6e | ||
|
1cf2ef60e8 | ||
|
13cad16712 | ||
|
7c2f13f883 | ||
|
cbaef4cc6c | ||
|
37182779f9 | ||
|
cc97affc16 | ||
|
af5d3778c3 | ||
|
ef25720797 | ||
|
20a08e650d | ||
|
fe8c610f3d | ||
|
a33f907ba5 | ||
|
e78569b325 | ||
|
f6cb3fb118 | ||
|
7798ae79d7 | ||
|
c8d1bb0276 | ||
|
ce2a62d198 | ||
|
fd0e1a7b5e | ||
|
c93fed32ef | ||
|
4023537b8a | ||
|
e2712005e4 | ||
|
aea72bcc6e | ||
|
40ef074522 | ||
|
6aa021e4a6 | ||
|
ac97dbf8ba | ||
|
87d7a291f0 | ||
|
e8f3950072 | ||
|
2fd2fc5f62 | ||
|
145e6db3ec | ||
|
63d1983914 | ||
|
333c68e33f | ||
|
739ce9da27 | ||
|
aadc032b31 | ||
|
2b90faa98e | ||
|
e68e4b2a24 | ||
|
2c541d465c | ||
|
329a02bf07 | ||
|
2c7d662c22 | ||
|
920eeded4d | ||
|
740b51d405 | ||
|
cee00b0382 | ||
|
4bbd59787a | ||
|
acdc7c6e49 | ||
|
a5f190685b | ||
|
fd53727f12 | ||
|
cea843bcbc | ||
|
dda5e79a77 | ||
|
f9dd7bd74b | ||
|
2ef68977bd | ||
|
673d2e3ef2 | ||
|
17b172e3f1 | ||
|
acde080e48 | ||
|
b139d8d049 | ||
|
1c39041de2 | ||
|
cd6d9e1687 | ||
|
57746a9daf | ||
|
2e961e7875 | ||
|
5fc368c86b | ||
|
37abeb5735 | ||
|
e34d34526f | ||
|
3eb249dcfd | ||
|
3f96888e1a | ||
|
59df06676d | ||
|
26a0f39ee8 | ||
|
b63df1eee3 | ||
|
fdd906c982 | ||
|
0f9d5b94ff | ||
|
98b222a9bf | ||
|
6c0c1aa9d4 | ||
|
6f41ed1c27 | ||
|
8b773e9899 | ||
|
b51acbd268 | ||
|
6e66a17fe3 | ||
|
88855305e1 | ||
|
53f61ad31b | ||
|
650b1c0102 | ||
|
77be9ddf8d | ||
|
ad7527c4ae | ||
|
68563a198d | ||
|
8a6459e828 | ||
|
846f3c6c5b | ||
|
f843dde3d6 | ||
|
ef7db30658 | ||
|
b6f430c0db | ||
|
8b07b6ca5d | ||
|
f1171d06a8 | ||
|
e01201be81 | ||
|
1e21a5fb05 | ||
|
df0e7ee6ae | ||
|
d30066bcf9 | ||
|
0ca7d3a2ad | ||
|
2b9af5070b | ||
|
94065bb38c | ||
|
63c02eb14a | ||
|
a3c387d445 | ||
|
9abca0ea0d | ||
|
b1c43d0b04 | ||
|
a1fcdb39b9 | ||
|
077ea93bc3 | ||
|
82b14b6542 | ||
|
6ef985207c | ||
|
13d0c99e8c | ||
|
0c7051eac0 | ||
|
b14c636f94 | ||
|
049cd35a1c | ||
|
e7986b57b2 | ||
|
3dbac1fe2e | ||
|
42425dc61b | ||
|
5261dce34f | ||
|
1ef34efed6 | ||
|
593c97c165 | ||
|
6540c0a165 | ||
|
411051f921 | ||
|
907e3ba729 | ||
|
afa1a9fd9f | ||
|
07afdbe0f8 | ||
|
dcd59ca69f | ||
|
98ae943db0 | ||
|
8e06dde724 | ||
|
71ca5a87f1 | ||
|
c9b1d2fb5b | ||
|
981fe00c5f | ||
|
373661d35a | ||
|
1be5f23204 | ||
|
723123fa50 | ||
|
7bf1c2056c | ||
|
74c0a562e9 | ||
|
65856db131 | ||
|
5d67012121 | ||
|
573cf454ce | ||
|
0d81b7839b | ||
|
5b00ab795d | ||
|
86709e3604 | ||
|
38a9468fd2 | ||
|
cf3ba419f4 | ||
|
c94fad4145 | ||
|
f371a968b7 | ||
|
e163318c5a | ||
|
bb6be97bee | ||
|
cb454d83a1 | ||
|
6b5d13e8b8 | ||
|
5f9b124a7b | ||
|
f7a48c04b8 | ||
|
9315dab053 | ||
|
274d14d905 | ||
|
9625dbf3ed | ||
|
eef16080d4 | ||
|
66cf423598 | ||
|
53187cb8aa | ||
|
a8cdbc0b22 | ||
|
7845a1901b | ||
|
e3d8476396 | ||
|
88d9238c17 | ||
|
fdb35eafc1 | ||
|
2bbd785ada | ||
|
f30294c2ae | ||
|
95267a5581 | ||
|
a860cf1a13 | ||
|
f2cf4fb4a0 | ||
|
3323a39767 | ||
|
9ed323321a | ||
|
968089201a | ||
|
d232d61350 | ||
|
3cc2be8874 | ||
|
cd1d0c3746 | ||
|
780c55e99e | ||
|
2b9e508a5c | ||
|
a68328ae83 | ||
|
f9cd35ac74 | ||
|
06cfed009a | ||
|
dc94ff58c3 | ||
|
6b87a2ad31 | ||
|
9c7606e59b | ||
|
5f0fdf326b | ||
|
cd550054d8 | ||
|
cb634bea1e | ||
|
3d93f708be | ||
|
6c315e1669 | ||
|
0fee313f18 | ||
|
bcb817b30d | ||
|
33c75915ca | ||
|
89ed35815c | ||
|
69d244b227 | ||
|
047ed5a6f8 | ||
|
61acec17ee | ||
|
2438c2fd04 | ||
|
5f06b7bde9 | ||
|
59bb23232f | ||
|
64eacb5237 | ||
|
7804d741a0 | ||
|
31b9158e3d | ||
|
a5bd2965d0 | ||
|
191143fb17 | ||
|
8be48c87a8 | ||
|
5aeb57fb61 | ||
|
b0ae5d4299 | ||
|
fb6ac84fb3 | ||
|
e32c44aaa3 | ||
|
4baf71d8dc | ||
|
8b0d7bb422 | ||
|
80e44e302f | ||
|
009770bb04 | ||
|
e2d7d8edd8 | ||
|
2d9b4ddd0b | ||
|
a58ed5e1a9 | ||
|
2595b8bc8e | ||
|
ee270f419c | ||
|
4b6c9d7705 | ||
|
445eb31db1 | ||
|
c8151d94ba | ||
|
8dd5ca8bc8 | ||
|
8a6f0b57d4 | ||
|
7b91c26689 | ||
|
6083a2a9aa | ||
|
31608ce4ee | ||
|
5e36cddca3 | ||
|
56bae6ee84 | ||
|
0d870b62de | ||
|
c453134fa3 | ||
|
8012a5783e | ||
|
c9d231f8f4 | ||
|
97b182f06e | ||
|
82b33b5ab4 | ||
|
2f7d5336e2 | ||
|
f425da1555 | ||
|
2d5278aa80 | ||
|
ed91112531 | ||
|
e224f30de6 | ||
|
bb66fe6e98 | ||
|
9d096dd994 | ||
|
c0d4ec7dba | ||
|
b91287a974 | ||
|
94bf737584 | ||
|
6960ff471c | ||
|
5bad1f397d | ||
|
327ebeaa53 | ||
|
ea87c9d148 | ||
|
2853b48144 | ||
|
3eb113a5cb | ||
|
1b60735808 |
@ -22,5 +22,6 @@ VUE_APP_LOGOUT_PATH = '/core/auth/logout/'
|
|||||||
# Dev server for core proxy
|
# Dev server for core proxy
|
||||||
VUE_APP_CORE_HOST = 'http://localhost:8080'
|
VUE_APP_CORE_HOST = 'http://localhost:8080'
|
||||||
VUE_APP_CORE_WS = 'ws://localhost:8080'
|
VUE_APP_CORE_WS = 'ws://localhost:8080'
|
||||||
VUE_APP_KAEL_HOST = 'http://localhost:8083'
|
VUE_APP_KOKO_HOST = 'http://localhost:5000'
|
||||||
|
VUE_APP_KOKO_WS = 'ws://localhost:5000'
|
||||||
VUE_APP_ENV = 'development'
|
VUE_APP_ENV = 'development'
|
||||||
|
28
.github/workflows/.github/workflows/llm-code-review.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: LLM Code Review
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
llm-code-review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: fit2cloud/LLM-CodeReview-Action@main
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.FIT2CLOUDRD_LLM_CODE_REVIEW_TOKEN }}
|
||||||
|
OPENAI_API_KEY: ${{ secrets.ALIYUN_LLM_API_KEY }}
|
||||||
|
LANGUAGE: English
|
||||||
|
OPENAI_API_ENDPOINT: https://dashscope.aliyuncs.com/compatible-mode/v1
|
||||||
|
MODEL: qwen2-1.5b-instruct
|
||||||
|
PROMPT: "Please check the following code differences for any irregularities, potential issues, or optimization suggestions, and provide your answers in English."
|
||||||
|
top_p: 1
|
||||||
|
temperature: 1
|
||||||
|
# max_tokens: 10000
|
||||||
|
MAX_PATCH_LENGTH: 10000
|
||||||
|
IGNORE_PATTERNS: "/node_modules,*.md,/dist,/.github"
|
||||||
|
FILE_PATTERNS: "*.java,*.go,*.py,*.vue,*.ts,*.js,*.css,*.scss,*.html"
|
72
.github/workflows/build-base-image.yml
vendored
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
name: Build and Push Base Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'pr*'
|
||||||
|
paths:
|
||||||
|
- 'package.json'
|
||||||
|
- 'package-lock.json'
|
||||||
|
- 'yarn.lock'
|
||||||
|
- 'Dockerfile-base'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Lock Pull Request
|
||||||
|
run: |
|
||||||
|
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
-d '{"state":"pending", "description":"Action running, merge disabled", "context":"Lock PR"}' \
|
||||||
|
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }}"
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract date
|
||||||
|
id: vars
|
||||||
|
run: echo "IMAGE_TAG=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Extract repository name
|
||||||
|
id: repo
|
||||||
|
run: echo "REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build and push multi-arch image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
file: Dockerfile-base
|
||||||
|
tags: jumpserver/${{ env.REPO }}-base:${{ env.IMAGE_TAG }}
|
||||||
|
|
||||||
|
- name: Update Dockerfile
|
||||||
|
run: |
|
||||||
|
sed -i 's|-base:.* AS stage-build|-base:${{ env.IMAGE_TAG }} AS stage-build|' Dockerfile
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
run: |
|
||||||
|
git config --global user.name 'github-actions[bot]'
|
||||||
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
git add Dockerfile
|
||||||
|
git commit -m "perf: Update Dockerfile with new base image tag"
|
||||||
|
git push
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Unlock Pull Request
|
||||||
|
run: |
|
||||||
|
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
-d '{"state":"success", "description":"Action running, merge disabled", "context":"Lock PR"}' \
|
||||||
|
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }}"
|
32
.github/workflows/jms-build-test.yml
vendored
@ -1,32 +0,0 @@
|
|||||||
name: "Run Build Test"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- pr@*
|
|
||||||
- repr@*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v2
|
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v2
|
|
||||||
|
|
||||||
- uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: false
|
|
||||||
tags: jumpserver/lina:test
|
|
||||||
file: Dockerfile
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
|
|
||||||
- uses: LouisBrunner/checks-action@v1.5.0
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
name: Check Build
|
|
||||||
conclusion: ${{ job.status }}
|
|
46
.github/workflows/jms-build-test.yml.disabled
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
name: "Run Build Test"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'Dockerfile'
|
||||||
|
- 'Dockerfile*'
|
||||||
|
- 'package.json'
|
||||||
|
- 'yarn.lock'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
component: [ lina ]
|
||||||
|
version: [ v4 ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Prepare Build
|
||||||
|
run: |
|
||||||
|
sed -i 's@registry.npmmirror.com@registry.yarnpkg.com@g' yarn.lock
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build Image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
file: Dockerfile
|
||||||
|
tags: ghcr.io/jumpserver/${{ matrix.component }}:${{ matrix.version }}
|
||||||
|
platforms: linux/amd64
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ matrix.version }}
|
||||||
|
APT_MIRROR=http://deb.debian.org
|
||||||
|
NPM_REGISTRY=https://registry.yarnpkg.com
|
||||||
|
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
28
.github/workflows/llm-code-review.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: LLM Code Review
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
llm-code-review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: fit2cloud/LLM-CodeReview-Action@main
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.FIT2CLOUDRD_LLM_CODE_REVIEW_TOKEN }}
|
||||||
|
OPENAI_API_KEY: ${{ secrets.ALIYUN_LLM_API_KEY }}
|
||||||
|
LANGUAGE: English
|
||||||
|
OPENAI_API_ENDPOINT: https://dashscope.aliyuncs.com/compatible-mode/v1
|
||||||
|
MODEL: qwen2-1.5b-instruct
|
||||||
|
PROMPT: "Please check the following code differences for any irregularities, potential issues, or optimization suggestions, and provide your answers in English."
|
||||||
|
top_p: 1
|
||||||
|
temperature: 1
|
||||||
|
# max_tokens: 10000
|
||||||
|
MAX_PATCH_LENGTH: 10000
|
||||||
|
IGNORE_PATTERNS: "/node_modules,*.md,/dist,/.github"
|
||||||
|
FILE_PATTERNS: "*.java,*.go,*.py,*.vue,*.ts,*.js,*.css,*.scss,*.html"
|
2
.github/workflows/release-drafter.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
tag: ${{ steps.get_version.outputs.TAG }}
|
tag: ${{ steps.get_version.outputs.TAG }}
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.20'
|
node-version: '20.15'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: Build web
|
- name: Build web
|
||||||
|
2
.gitignore
vendored
@ -17,3 +17,5 @@ tests/**/coverage/
|
|||||||
*.sln
|
*.sln
|
||||||
.env.development
|
.env.development
|
||||||
.python-version
|
.python-version
|
||||||
|
|
||||||
|
helper.json
|
33
Dockerfile
@ -1,36 +1,11 @@
|
|||||||
FROM node:16.20-bullseye-slim as stage-build
|
FROM jumpserver/lina-base:20250508_085854 AS stage-build
|
||||||
ARG TARGETARCH
|
|
||||||
|
|
||||||
ARG DEPENDENCIES=" \
|
|
||||||
g++ \
|
|
||||||
make \
|
|
||||||
python3"
|
|
||||||
|
|
||||||
ARG APT_MIRROR=http://mirrors.ustc.edu.cn
|
|
||||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=lina \
|
|
||||||
sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \
|
|
||||||
&& rm -f /etc/apt/apt.conf.d/docker-clean \
|
|
||||||
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends ${DEPENDENCIES} \
|
|
||||||
&& echo "no" | dpkg-reconfigure dash \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ARG NPM_REGISTRY="https://registry.npmmirror.com"
|
|
||||||
RUN set -ex \
|
|
||||||
&& npm config set registry ${NPM_REGISTRY} \
|
|
||||||
&& yarn config set registry ${NPM_REGISTRY}
|
|
||||||
|
|
||||||
WORKDIR /data
|
|
||||||
|
|
||||||
ADD package.json yarn.lock /data
|
|
||||||
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
|
|
||||||
yarn install
|
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ENV VERSION=$VERSION
|
ENV VERSION=$VERSION
|
||||||
|
|
||||||
ADD . /data
|
ADD . /data
|
||||||
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
|
|
||||||
|
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked \
|
||||||
sed -i "s@version-dev@${VERSION}@g" src/layout/components/NavHeader/About.vue \
|
sed -i "s@version-dev@${VERSION}@g" src/layout/components/NavHeader/About.vue \
|
||||||
&& yarn build
|
&& yarn build
|
||||||
|
|
||||||
|
22
Dockerfile-base
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
FROM node:20.15-bullseye-slim
|
||||||
|
|
||||||
|
ARG DEPENDENCIES=" \
|
||||||
|
g++ \
|
||||||
|
make \
|
||||||
|
python3"
|
||||||
|
|
||||||
|
RUN set -ex \
|
||||||
|
&& rm -f /etc/apt/apt.conf.d/docker-clean \
|
||||||
|
&& echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get -y install --no-install-recommends ${DEPENDENCIES} \
|
||||||
|
&& echo "no" | dpkg-reconfigure dash
|
||||||
|
|
||||||
|
WORKDIR /data
|
||||||
|
|
||||||
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
|
ARG NPM_MIRROR="https://registry.npmjs.org"
|
||||||
|
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=yarn-cache \
|
||||||
|
sed -i "s|https://registry.npmmirror.com|${NPM_MIRROR}|g" yarn.lock \
|
||||||
|
&& yarn install
|
@ -5,5 +5,6 @@
|
|||||||
"@/*": ["src/*"]
|
"@/*": ["src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
}
|
}
|
||||||
|
287
package.json
@ -1,142 +1,149 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-admin-template",
|
"name": "lina",
|
||||||
"version": "4.2.1",
|
"version": "v4.0.0",
|
||||||
"description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
|
"description": "JumpServer Web UI",
|
||||||
"author": "Pan <panfree23@gmail.com>",
|
"author": "JumpServer Team <support@lxware.hk>",
|
||||||
"license": "MIT",
|
"license": "GPL-3.0-or-later",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vue-cli-service serve",
|
"dev": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
|
||||||
"build:prod": "vue-cli-service build",
|
"build:prod": "vue-cli-service build",
|
||||||
"build:stage": "vue-cli-service build --mode staging",
|
"build:stage": "vue-cli-service build --mode staging",
|
||||||
"preview": "node build/index.js --preview",
|
"preview": "node build/index.js --preview",
|
||||||
"lint": "eslint --ext .js,.vue src",
|
"lint": "eslint --ext .js,.vue src",
|
||||||
"fix": "eslint --ext .js,.vue --fix src",
|
"fix": "eslint --ext .js,.vue --fix src",
|
||||||
"test:unit": "jest --clearCache && vue-cli-service test:unit",
|
"test:unit": "jest --clearCache && vue-cli-service test:unit",
|
||||||
"test:ci": "npm run lint && npm run test:unit",
|
"test:ci": "npm run lint && npm run test:unit",
|
||||||
"svgo": "svgo -f src/icons/svg --config=src/icas/svgo.yml",
|
"svgo": "svgo -f src/icons/svg --config=src/icas/svgo.yml",
|
||||||
"vue-i18n-extract": "vue-i18n-extract",
|
"vue-i18n-extract": "vue-i18n-extract",
|
||||||
"vue-i18n-report": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json'",
|
"vue-i18n-report": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json'",
|
||||||
"vue-i18n-report-json": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -o /tmp/abc.json",
|
"vue-i18n-report-json": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -o /tmp/abc.json",
|
||||||
"vue-i18n-report-add-miss": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -a",
|
"vue-i18n-report-add-miss": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/i18n/langs/**/*.json' -a",
|
||||||
"diff-i18n": "python ./src/i18n/langs/i18n-util.py diff en ja zh_Hant",
|
"diff-i18n": "python ./src/i18n/langs/i18n-util.py diff en ja zh_Hant",
|
||||||
"apply-i18n": "python ./src/i18n/langs/i18n-util.py apply en ja zh_Hant"
|
"apply-i18n": "python ./src/i18n/langs/i18n-util.py apply en ja zh_Hant"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
||||||
"@traptitech/markdown-it-katex": "^3.6.0",
|
"@fontsource/open-sans": "^5.0.24",
|
||||||
"@ztree/ztree_v3": "3.5.44",
|
"@traptitech/markdown-it-katex": "^3.6.0",
|
||||||
"axios": "0.28.0",
|
"@ztree/ztree_v3": "3.5.44",
|
||||||
"axios-retry": "^3.1.9",
|
"axios": "0.28.0",
|
||||||
"cron-parser": "^4.0.0",
|
"axios-retry": "^3.1.9",
|
||||||
"crypto-js": "^4.1.1",
|
"caniuse-lite": "^1.0.30001642",
|
||||||
"css-color-function": "^1.3.3",
|
"cron-parser": "^4.0.0",
|
||||||
"decimal.js": "^10.4.3",
|
"crypto-js": "^4.1.1",
|
||||||
"deepmerge": "^4.2.2",
|
"css-color-function": "^1.3.3",
|
||||||
"echarts": "4.7.0",
|
"decimal.js": "^10.4.3",
|
||||||
"element-ui": "2.13.2",
|
"deepmerge": "^4.2.2",
|
||||||
"eslint-plugin-html": "^6.0.0",
|
"dompurify": "^3.1.6",
|
||||||
"highlight.js": "^11.9.0",
|
"echarts": "4.7.0",
|
||||||
"install": "^0.13.0",
|
"element-ui": "2.15.14",
|
||||||
"jquery": "^3.6.1",
|
"eslint-plugin-html": "^6.0.0",
|
||||||
"js-cookie": "2.2.0",
|
"highlight.js": "^11.9.0",
|
||||||
"jsencrypt": "^3.2.1",
|
"install": "^0.13.0",
|
||||||
"less": "^3.10.3",
|
"jquery": "^3.6.1",
|
||||||
"less-loader": "^5.0.0",
|
"js-cookie": "2.2.0",
|
||||||
"lodash": "^4.17.21",
|
"jsencrypt": "^3.2.1",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"less": "^3.10.3",
|
||||||
"lodash.frompairs": "^4.0.1",
|
"less-loader": "^5.0.0",
|
||||||
"lodash.get": "^4.4.2",
|
"lodash": "^4.17.21",
|
||||||
"lodash.has": "^4.5.2",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
"lodash.includes": "^4.3.0",
|
"lodash.frompairs": "^4.0.1",
|
||||||
"lodash.isempty": "^4.4.0",
|
"lodash.get": "^4.4.2",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.has": "^4.5.2",
|
||||||
"lodash.isplainobject": "^4.0.6",
|
"lodash.includes": "^4.3.0",
|
||||||
"lodash.set": "^4.3.2",
|
"lodash.isempty": "^4.4.0",
|
||||||
"lodash.topairs": "^4.3.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"lodash.values": "^4.3.0",
|
"lodash.isplainobject": "^4.0.6",
|
||||||
"markdown-it": "^13.0.2",
|
"lodash.set": "^4.3.2",
|
||||||
"markdown-it-link-attributes": "^4.0.1",
|
"lodash.topairs": "^4.3.0",
|
||||||
"moment": "^2.29.4",
|
"lodash.values": "^4.3.0",
|
||||||
"moment-parseformat": "^4.0.0",
|
"markdown-it": "^13.0.2",
|
||||||
"normalize.css": "7.0.0",
|
"markdown-it-link-attributes": "^4.0.1",
|
||||||
"npm": "^7.8.0",
|
"moment": "^2.29.4",
|
||||||
"nprogress": "0.2.0",
|
"moment-parseformat": "^4.0.0",
|
||||||
"path-to-regexp": "2.4.0",
|
"normalize.css": "7.0.0",
|
||||||
"vue": "2.6.10",
|
"npm": "^7.8.0",
|
||||||
"vue-codemirror": "4.0.6",
|
"nprogress": "0.2.0",
|
||||||
"vue-cookie": "^1.1.4",
|
"path-to-regexp": "3.3.0",
|
||||||
"vue-echarts": "^5.0.0-beta.0",
|
"sortablejs": "^1.15.6",
|
||||||
"vue-i18n": "^8.15.5",
|
"v-sanitize": "^0.0.13",
|
||||||
"vue-json-editor": "^1.4.3",
|
"vue": "2.6.10",
|
||||||
"vue-markdown": "^2.2.4",
|
"vue-codemirror": "4.0.6",
|
||||||
"vue-moment": "^4.1.0",
|
"vue-cookie": "^1.1.4",
|
||||||
"vue-password-strength-meter": "^1.7.2",
|
"vue-echarts": "^5.0.0-beta.0",
|
||||||
"vue-router": "3.0.6",
|
"vue-i18n": "^8.15.5",
|
||||||
"vue-select": "^3.9.5",
|
"vue-json-editor": "^1.4.3",
|
||||||
"vuejs-logger": "^1.5.4",
|
"vue-markdown": "^2.2.4",
|
||||||
"vuex": "3.1.0",
|
"vue-moment": "^4.1.0",
|
||||||
"xss": "^1.0.14",
|
"vue-password-strength-meter": "^1.7.2",
|
||||||
"xterm": "^4.5.0",
|
"vue-router": "3.0.6",
|
||||||
"xterm-addon-fit": "^0.3.0",
|
"vue-select": "^3.9.5",
|
||||||
"zxcvbn": "^4.4.2"
|
"vuejs-logger": "^1.5.4",
|
||||||
},
|
"vuex": "3.1.0",
|
||||||
"devDependencies": {
|
"watermark-js-plus": "^1.5.8",
|
||||||
"@babel/core": "7.18.6",
|
"xss": "^1.0.14",
|
||||||
"@babel/register": "7.0.0",
|
"xterm": "^4.5.0",
|
||||||
"@vue/cli-plugin-babel": "3.6.0",
|
"xterm-addon-fit": "^0.3.0",
|
||||||
"@vue/cli-plugin-eslint": "^3.9.1",
|
"zxcvbn": "^4.4.2"
|
||||||
"@vue/cli-plugin-unit-jest": "3.6.3",
|
},
|
||||||
"@vue/cli-service": "3.6.0",
|
"devDependencies": {
|
||||||
"@vue/test-utils": "1.0.0-beta.29",
|
"@babel/core": "7.18.6",
|
||||||
"autoprefixer": "^9.5.1",
|
"@babel/register": "7.0.0",
|
||||||
"babel-core": "7.0.0-bridge.0",
|
"@vue/cli-plugin-babel": "3.6.0",
|
||||||
"babel-eslint": "10.0.1",
|
"@vue/cli-plugin-eslint": "^3.9.1",
|
||||||
"babel-jest": "23.6.0",
|
"@vue/cli-plugin-unit-jest": "3.6.3",
|
||||||
"chalk": "2.4.2",
|
"@vue/cli-service": "3.6.0",
|
||||||
"compression-webpack-plugin": "^6.1.1",
|
"@vue/test-utils": "1.0.0-beta.29",
|
||||||
"connect": "3.6.6",
|
"autoprefixer": "^9.5.1",
|
||||||
"deasync": "^0.1.29",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
"element-theme-chalk": "^2.13.1",
|
"babel-eslint": "10.0.1",
|
||||||
"eslint": "^5.15.3",
|
"babel-jest": "23.6.0",
|
||||||
"eslint-plugin-vue": "5.2.2",
|
"chalk": "2.4.2",
|
||||||
"eslint-plugin-vue-i18n": "^0.3.0",
|
"compression-webpack-plugin": "^6.1.1",
|
||||||
"github-markdown-css": "^5.1.0",
|
"connect": "3.6.6",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"deasync": "^0.1.29",
|
||||||
"husky": "^4.2.3",
|
"element-theme-chalk": "^2.13.1",
|
||||||
"less-loader": "^5.0.0",
|
"eslint": "^5.15.3",
|
||||||
"lint-staged": "^10.1.2",
|
"eslint-plugin-vue": "5.2.2",
|
||||||
"mockjs": "1.0.1-beta3",
|
"eslint-plugin-vue-i18n": "^0.3.0",
|
||||||
"runjs": "^4.3.2",
|
"github-markdown-css": "^5.1.0",
|
||||||
"sass": "~1.32.6",
|
"html-webpack-plugin": "3.2.0",
|
||||||
"sass-loader": "^7.1.0",
|
"husky": "^4.2.3",
|
||||||
"script-ext-html-webpack-plugin": "2.1.3",
|
"less-loader": "^5.0.0",
|
||||||
"script-loader": "0.7.2",
|
"lint-staged": "^10.1.2",
|
||||||
"serve-static": "^1.13.2",
|
"mockjs": "1.0.1-beta3",
|
||||||
"strip-ansi": "^7.1.0",
|
"runjs": "^4.3.2",
|
||||||
"svg-sprite-loader": "4.1.3",
|
"sass": "~1.32.6",
|
||||||
"svgo": "1.2.2",
|
"sass-loader": "^7.1.0",
|
||||||
"vue-i18n-extract": "^1.1.1",
|
"script-ext-html-webpack-plugin": "2.1.3",
|
||||||
"vue-template-compiler": "2.6.10"
|
"script-loader": "0.7.2",
|
||||||
},
|
"serve-static": "^1.16.0",
|
||||||
"engines": {
|
"strip-ansi": "^7.1.0",
|
||||||
"node": ">=8.9",
|
"svg-sprite-loader": "4.1.3",
|
||||||
"npm": ">= 3.0.0"
|
"svgo": "1.2.2",
|
||||||
},
|
"vue-i18n-extract": "^1.1.1",
|
||||||
"browserslist": [
|
"vue-template-compiler": "2.6.10"
|
||||||
"> 1%",
|
},
|
||||||
"last 4 versions",
|
"engines": {
|
||||||
"ie 11"
|
"node": ">=8.9",
|
||||||
],
|
"npm": ">= 3.0.0"
|
||||||
"husky": {
|
},
|
||||||
"hooks": {
|
"browserslist": [
|
||||||
"pre-commit": "lint-staged"
|
"> 1%",
|
||||||
}
|
"last 4 versions",
|
||||||
},
|
"ie 11"
|
||||||
"lint-staged": {
|
],
|
||||||
"src/**/*.{js,vue}": [
|
"husky": {
|
||||||
"eslint --fix"
|
"hooks": {
|
||||||
]
|
"pre-commit": "lint-staged"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"src/**/*.{js,vue}": [
|
||||||
|
"eslint --fix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
||||||
}
|
}
|
||||||
|
@ -1,38 +1,90 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
||||||
<meta http-equiv="Expires" content="0">
|
<meta content="0" http-equiv="Expires">
|
||||||
<meta http-equiv="Pragma" content="no-cache">
|
<meta content="no-cache" http-equiv="Pragma">
|
||||||
<meta http-equiv="Cache-control" content="no-cache">
|
<meta content="no-cache" http-equiv="Cache-control">
|
||||||
<meta http-equiv="Cache" content="no-cache">
|
<meta content="no-cache" http-equiv="Cache">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||||
<title><%= webpackConfig.name %></title>
|
<title><%= webpackConfig.name %></title>
|
||||||
<link rel="stylesheet" href="<%= BASE_URL %>theme/element-ui.css">
|
<link href="<%= BASE_URL %>theme/element-ui.css" rel="stylesheet">
|
||||||
</head>
|
<style>
|
||||||
<body>
|
#loading {
|
||||||
<noscript>
|
position: fixed;
|
||||||
<strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
top: 0;
|
||||||
</noscript>
|
left: 0;
|
||||||
<script>
|
width: 100vw;
|
||||||
window.onload = function() {
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: rgba(255, 255, 255, 0.98);
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading .spinner {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: var(--color-primary);
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading .spinner::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: -3px;
|
||||||
|
left: -3px;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border: 3px solid transparent;
|
||||||
|
border-top-color: rgba(64, 158, 255, 0.2);
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<strong>
|
||||||
|
We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled.
|
||||||
|
Please enable it to continue.
|
||||||
|
</strong>
|
||||||
|
</noscript>
|
||||||
|
<script>
|
||||||
|
window.onload = function () {
|
||||||
if (location.pathname === '/') {
|
if (location.pathname === '/') {
|
||||||
location.pathname = '/ui/'
|
location.pathname = '/ui/'
|
||||||
}
|
}
|
||||||
const pathname = window.location.pathname
|
const pathname = window.location.pathname
|
||||||
if (pathname.startsWith('/core')) {
|
if (pathname.startsWith('/core')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(pathname.indexOf('/ui') === -1) {
|
if (pathname.indexOf('/ui') === -1) {
|
||||||
window.location.href = window.location.origin + '/ui/#' + pathname
|
window.location.href = window.location.origin + '/ui/#' + pathname
|
||||||
}
|
}
|
||||||
if (pathname.startsWith('/ui/#/chat')) {
|
if (pathname.startsWith('/ui/#/chat')) {
|
||||||
window.location.href = window.location.origin + pathname
|
window.location.href = window.location.origin + pathname
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div id="app"></div>
|
<div id="app">
|
||||||
<!-- built files will be auto injected -->
|
</div>
|
||||||
</body>
|
<div id="loading">
|
||||||
|
<div class="spinner"></div>
|
||||||
|
</div>
|
||||||
|
<!-- built files will be auto injected -->
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -21,32 +21,39 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-alert--info.is-light {
|
.el-alert--info.is-light {
|
||||||
background-color: light-9;
|
background-color: rgba(255, 255, 255, 0.5);
|
||||||
color: light-2;
|
color: info;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-alert--info .el-alert__description {
|
.el-alert--info .el-alert__description {
|
||||||
color: light-2;
|
color: info;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-pagination.is-background {
|
||||||
|
.el-pagination__total,
|
||||||
|
.el-pagination__sizes,
|
||||||
|
.el-pager {
|
||||||
|
color: var(--color-icon-primary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pagination.is-background .el-pager li:not(.disabled):hover {
|
.el-pagination.is-background .el-pager li:not(.disabled):hover {
|
||||||
color: white;
|
color: #fff;
|
||||||
background-color: primary;
|
background-color: primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pagination.is-background .btn-next,
|
.el-pagination.is-background .btn-next,
|
||||||
.el-pagination.is-background .btn-prev,
|
.el-pagination.is-background .btn-prev,
|
||||||
.el-pagination.is-background .el-pager li {
|
.el-pagination.is-background .el-pager li {
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
background-color: white;
|
background-color: #fff;
|
||||||
color: #606266;
|
color: var(--color-icon-primary);
|
||||||
min-width: 28px;
|
min-width: 28px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border: 1px solid #DCDFE6;
|
border: 1px solid #DCDFE6;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 26px;
|
font-weight: 400;
|
||||||
font-weight: 400;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-breadcrumb__inner,
|
.el-breadcrumb__inner,
|
||||||
@ -85,8 +92,12 @@
|
|||||||
|
|
||||||
|
|
||||||
td .el-button.el-button--mini {
|
td .el-button.el-button--mini {
|
||||||
padding: 1px 5px;
|
padding: 1px 6px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
|
||||||
|
.el-icon--right {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tabs__item.is-active, .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
|
.el-tabs__item.is-active, .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active {
|
||||||
@ -191,7 +202,7 @@ td .el-button.el-button--mini {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-input--small .el-input__icon {
|
.el-input--small .el-input__icon {
|
||||||
line-height: 34px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.option-group .el-select-dropdown__item.hover, .option-group .el-select-dropdown__item.selected {
|
.option-group .el-select-dropdown__item.hover, .option-group .el-select-dropdown__item.selected {
|
||||||
@ -224,8 +235,10 @@ td .el-button.el-button--mini {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-tag.el-tag--info .el-tag__close {
|
.el-tag.el-tag--info .el-tag__close {
|
||||||
color: #333333!important;
|
display: inline-block;
|
||||||
background-color: inherit;
|
margin-top: 3px;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
background-color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tag.el-tag--info.is-hit {
|
.el-tag.el-tag--info.is-hit {
|
||||||
@ -280,7 +293,7 @@ td .el-button.el-button--mini {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-textarea__inner {
|
.el-textarea__inner {
|
||||||
border-radius: 0;
|
color: var(--color-text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pagination.is-background .number {
|
.el-pagination.is-background .number {
|
||||||
@ -313,11 +326,11 @@ td .el-button.el-button--mini {
|
|||||||
|
|
||||||
.el-tooltip__popper.is-light {
|
.el-tooltip__popper.is-light {
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
|
max-width: 500px;
|
||||||
border: 1px solid #e7eaec;
|
border: 1px solid #e7eaec;
|
||||||
}
|
box-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, .132), 0 .3px .9px 0 rgba(0, 0, 0, .108);
|
||||||
|
line-height: 1.5;
|
||||||
.el-tooltip__popper.is-light .popper__arrow {
|
padding: 10px;
|
||||||
border-bottom-color: #e7eaec !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__headerbtn .el-dialog__close {
|
.el-dialog__headerbtn .el-dialog__close {
|
||||||
@ -326,7 +339,7 @@ td .el-button.el-button--mini {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-table__header thead tr th {
|
.el-table__header thead tr th {
|
||||||
border-bottom: 1px solid #e7e7e7 !important;
|
/*border-bottom: 1px solid #e7e7e7 !important;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table .cell,
|
.el-table .cell,
|
||||||
@ -423,14 +436,34 @@ td .el-button.el-button--mini {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-dialog .el-dialog__header .el-dialog__title {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
.el-dialog .el-dialog__body {
|
.el-dialog .el-dialog__body {
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-dialog .el-dialog__body .el-transfer-panel .el-transfer-panel__body .el-input__inner,
|
||||||
|
.el-dialog .el-dialog__body .el-transfer-panel .el-transfer-panel__header .el-checkbox__label,
|
||||||
|
.el-dialog .el-dialog__body .el-transfer-panel .el-transfer-panel__body .el-checkbox-group .el-checkbox.el-transfer-panel__item {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog .el-dialog__body .opera .el-button.is-disabled,
|
||||||
|
.el-dialog .el-dialog__body .el-transfer-panel .vip-footer .el-button.is-disabled {
|
||||||
|
color: var(--color-input-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog .el-dialog__body .opera .el-button.is-disabled.el-button--primary {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.el-dialog .el-dialog__body form {
|
.el-dialog .el-dialog__body form {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog .el-dialog__footer {
|
.el-dialog .el-dialog__footer {
|
||||||
|
81
src/App.vue
@ -5,17 +5,90 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState, mapGetters } from 'vuex'
|
||||||
|
import { Watermark } from 'watermark-js-plus'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
watermark: null
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
isRouterAlive: state => state.common.isRouterAlive
|
isRouterAlive: state => state.common.isRouterAlive
|
||||||
|
}),
|
||||||
|
...mapGetters({
|
||||||
|
currentUser: 'currentUser',
|
||||||
|
publicSettings: 'publicSettings'
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
currentUser: {
|
||||||
|
handler(newVal) {
|
||||||
|
this.createWatermark()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'publicSettings.SECURITY_WATERMARK_ENABLED': {
|
||||||
|
handler(newVal) {
|
||||||
|
if (!newVal) {
|
||||||
|
return setTimeout(() => {
|
||||||
|
this.watermark?.destroy()
|
||||||
|
this.watermark = null
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.createWatermark()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getWaterMarkFields() {
|
||||||
|
const user = this.currentUser
|
||||||
|
const userId = user?.id || ''
|
||||||
|
const name = user?.name || ''
|
||||||
|
const userName = user?.username || ''
|
||||||
|
const currentTime = this.$moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
return { userId, name, userName, currentTime }
|
||||||
|
},
|
||||||
|
getWaterMarkContent() {
|
||||||
|
const fields = this.getWaterMarkFields()
|
||||||
|
const template = this.publicSettings.SECURITY_WATERMARK_CONSOLE_CONTENT || ''
|
||||||
|
|
||||||
|
// 找出模板中所有的变量占位符 ${xxx}
|
||||||
|
const placeholders = template.match(/\${([^}]+)}/g) || []
|
||||||
|
const allVariables = {}
|
||||||
|
|
||||||
|
// 为模板中的每个变量准备值
|
||||||
|
placeholders.forEach(placeholder => {
|
||||||
|
const varName = placeholder.slice(2, -1) // 提取变量名,去掉 ${ 和 }
|
||||||
|
allVariables[varName] = fields[varName] !== undefined ? fields[varName] : 'N/A'
|
||||||
|
})
|
||||||
|
|
||||||
|
// 合并用户现有的字段和模板中可能缺失的字段
|
||||||
|
const safeFields = { ...fields, ...allVariables }
|
||||||
|
|
||||||
|
// 安全解析模板
|
||||||
|
return new Function(...Object.keys(safeFields), `return \`${template}\`;`)(...Object.values(safeFields))
|
||||||
|
},
|
||||||
|
|
||||||
|
createWatermark() {
|
||||||
|
if (this.currentUser?.username && this.publicSettings?.SECURITY_WATERMARK_ENABLED) {
|
||||||
|
this.watermark = new Watermark({
|
||||||
|
content: this.getWaterMarkContent(),
|
||||||
|
width: this.publicSettings?.SECURITY_WATERMARK_WIDTH,
|
||||||
|
height: this.publicSettings?.SECURITY_WATERMARK_HEIGHT,
|
||||||
|
rotate: this.publicSettings?.SECURITY_WATERMARK_ROTATE,
|
||||||
|
fontWeight: 'normal',
|
||||||
|
fontSize: this.publicSettings?.SECURITY_WATERMARK_FONT_SIZE + 'px',
|
||||||
|
fontColor: this.publicSettings?.SECURITY_WATERMARK_COLOR,
|
||||||
|
contentType: 'multi-line-text',
|
||||||
|
lineHeight: this.publicSettings?.SECURITY_WATERMARK_FONT_SIZE
|
||||||
|
})
|
||||||
|
this.watermark.create()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
</style>
|
|
||||||
|
@ -16,9 +16,9 @@ export function getSystemUserList(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDomainList(data) {
|
export function getZoneList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/assets/domains/',
|
url: '/api/v1/assets/zones/',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
|
9
src/api/component.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
export function getLokiLog(data) {
|
||||||
|
return request({
|
||||||
|
url: `/api/v1/terminal/loki/logs/`,
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
@ -53,7 +53,7 @@ export function createJob(form) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function StopJob(form) {
|
export function stopJob(form) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/ops/job-executions/stop/',
|
url: '/api/v1/ops/job-executions/stop/',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -71,3 +71,10 @@ export function JobUploadFile(form) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function auditUpdateJob(id, form) {
|
||||||
|
return request({
|
||||||
|
url: `/api/v1/audits/jobs/${id}/`,
|
||||||
|
method: 'patch',
|
||||||
|
data: form
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -15,6 +15,7 @@ export function testEmailSetting(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function importLicense(formData) {
|
export function importLicense(formData) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/xpack/license/import',
|
url: '/api/v1/xpack/license/import',
|
||||||
@ -25,6 +26,7 @@ export function importLicense(formData) {
|
|||||||
data: formData
|
data: formData
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function testLdapSetting(data, refresh = true) {
|
export function testLdapSetting(data, refresh = true) {
|
||||||
let url = '/api/v1/settings/ldap/testing/config/'
|
let url = '/api/v1/settings/ldap/testing/config/'
|
||||||
if (refresh) {
|
if (refresh) {
|
||||||
@ -96,9 +98,17 @@ export function getPublicSettings(isOpen) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getLogo() {
|
export function getLogo() {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/xpack/interface/setting/',
|
url: '/api/v1/xpack/interface/setting/',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getPreference() {
|
||||||
|
return request({
|
||||||
|
url: '/api/v1/users/preference/?category=luna',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -8,11 +8,20 @@ export function login(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getProfile(token) {
|
export async function getProfile(token) {
|
||||||
return request({
|
let profile = await request({
|
||||||
url: '/api/v1/users/profile/',
|
url: '/api/v1/users/profile/',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
|
const perms = await request({
|
||||||
|
url: '/api/v1/users/profile/permissions/',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
profile = {
|
||||||
|
...profile,
|
||||||
|
...perms
|
||||||
|
}
|
||||||
|
return profile
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getUserList(data) {
|
export function getUserList(data) {
|
||||||
@ -22,6 +31,7 @@ export function getUserList(data) {
|
|||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getUserGroupList(params) {
|
export function getUserGroupList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/users/groups/',
|
url: '/api/v1/users/groups/',
|
||||||
@ -29,6 +39,7 @@ export function getUserGroupList(params) {
|
|||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getUserGroupDetail(id) {
|
export function getUserGroupDetail(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/v1/users/groups/${id}/`,
|
url: `/api/v1/users/groups/${id}/`,
|
||||||
@ -50,6 +61,7 @@ export function editUserGroup(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateUserGroup(id, data) {
|
export function updateUserGroup(id, data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/v1/users/groups/' + id + '/',
|
url: '/api/v1/users/groups/' + id + '/',
|
||||||
@ -65,10 +77,6 @@ export function logout() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function refreshSessionIdAge() {
|
|
||||||
return getProfile()
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getProfile,
|
getProfile,
|
||||||
getUserList
|
getUserList
|
||||||
|
BIN
src/assets/img/auth/cas_logo.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
src/assets/img/auth/dingtalk_logo.webp
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
src/assets/img/auth/feishu_logo.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
src/assets/img/auth/lark_logo.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
src/assets/img/auth/ldap_logo.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/img/auth/oauth2_logo.png
Normal file
After Width: | Height: | Size: 584 KiB |
BIN
src/assets/img/auth/oidc_logo.png
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
src/assets/img/auth/passkey_logo.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/img/auth/radius_logo.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
src/assets/img/auth/saml2_logo.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/img/auth/slack_logo.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
src/assets/img/auth/wecom_logo.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
1
src/assets/img/cloud/ali.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717741737122" class="icon" viewBox="0 0 1653 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514" width="200" height="200"><path d="M344.8620198 721.82988526a57.857089 57.857089 0 0 1-46.13274501-56.07295017v-308.4012244a59.89610558 59.89610558 0 0 1 46.13274501-56.07295017l286.35436058-62.06256065 30.07549089-122.72329718H328.80476645A210.78331632 210.78331632 0 0 0 116.61962599 327.28021902v364.47417458a213.71440233 213.71440233 0 0 0 212.18514046 212.31257895h332.48710482l-30.07549089-122.21354321zM1178.05508073 116.49690269H843.01920461l30.58524561 122.72329718 286.35436059 62.06256065a57.98452749 57.98452749 0 0 1 46.132745 56.07295017v308.4012244a60.15098257 60.15098257 0 0 1-46.13274502 56.07295017l-286.35436057 62.06256066-30.58524561 122.72329716H1178.05508073a212.44001744 212.44001744 0 0 0 212.94977139-212.82233291V327.28021902A213.33208686 213.33208686 0 0 0 1178.05508073 116.49690269z" fill="#F76E05" p-id="5515"></path><path d="M631.21638038 495.49906876h244.29964793v30.07549166H631.21638038z" fill="#F76E05" p-id="5516"></path></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
src/assets/img/cloud/aws_china.svg
Normal file
After Width: | Height: | Size: 7.7 KiB |
1
src/assets/img/cloud/aws_international.svg
Normal file
After Width: | Height: | Size: 7.7 KiB |
1
src/assets/img/cloud/azure_china.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743450082" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="39383" width="200" height="200"><path d="M18.753 17.145h468.424l-0.02 468.426H18.774V17.145h-0.02z m0 0" fill="#F25022" p-id="39384"></path><path d="M534.999 17.145h468.422c0 156.141 0.022 312.283-0.02 468.426H535.038c-0.06-156.162-0.039-312.285-0.039-468.426z m0 0" fill="#80BA01" p-id="39385"></path><path d="M18.753 533.352c156.141 0.058 312.282-0.019 468.424 0.058v468.386H18.753V533.352z m0 0" fill="#02A4EF" p-id="39386"></path><path d="M535.018 533.41c156.124-0.058 312.243-0.019 468.383-0.019v468.422H534.999c0.019-156.163-0.02-312.28 0.019-468.403z m0 0" fill="#FFB902" p-id="39387"></path></svg>
|
After Width: | Height: | Size: 721 B |
1
src/assets/img/cloud/azure_international.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743450082" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="39383" width="200" height="200"><path d="M18.753 17.145h468.424l-0.02 468.426H18.774V17.145h-0.02z m0 0" fill="#F25022" p-id="39384"></path><path d="M534.999 17.145h468.422c0 156.141 0.022 312.283-0.02 468.426H535.038c-0.06-156.162-0.039-312.285-0.039-468.426z m0 0" fill="#80BA01" p-id="39385"></path><path d="M18.753 533.352c156.141 0.058 312.282-0.019 468.424 0.058v468.386H18.753V533.352z m0 0" fill="#02A4EF" p-id="39386"></path><path d="M535.018 533.41c156.124-0.058 312.243-0.019 468.383-0.019v468.422H534.999c0.019-156.163-0.02-312.28 0.019-468.403z m0 0" fill="#FFB902" p-id="39387"></path></svg>
|
After Width: | Height: | Size: 721 B |
1
src/assets/img/cloud/baidu.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743183519" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="34140" width="200" height="200"><path d="M521.30666655 248.79999969c4.93333313 0 9.14666625 0.73333312 12.66666657 2.17333406l181.97333343 106.71999938a34.00000031 34.00000031 0 0 0 26.83999969-0.61333313l168.72-94.69333312L520.06666624 36.26666656 128.02666624 262.38666687l171.20000063 95.93333344c3.69333375 1.63999969 7.8 2.46666656 12.33333281 2.46666656 4.93333313 0 9.04000031-0.82666687 12.33333375-2.46666656l184.45333312-107.04c4.32-1.63999969 8.64-2.46666656 12.96-2.46666656" fill="#5BCA87" p-id="34141"></path><path d="M763.02666687 421.28a34.39999969 34.39999969 0 0 0-9.52000032 23.28l3 200.17333312a28.74666656 28.74666656 0 0 1-9.86666625 22.04000063l-4.54666687 4.38666656-167.49333375 103.39999969a34.89333375 34.89333375 0 0 0-10.39999969 7.56c-5.86666687 5.83999969-8.93333344 13.39999969-9.19999969 22.65333375l2.79999938 186.6 384-230.04-6.61333313-441.36-161.47999968 93.43999969a40.89333375 40.89333375 0 0 0-10.68 7.86666656" fill="#EC5D3E" p-id="34142"></path><path d="M292.4400003 667.69333344a30.40000031 30.40000031 0 0 1-9.86666718-21.58666688V444.68c0-8.44000031-3.29333344-16.13333344-9.87999938-23.13333375a55.63999969 55.63999969 0 0 0-10.8-7.71999938l-162.85333406-90.66666656V765.46666625l387.42666656 222.40000031V801.25333344c-0.21333375-9.25333312-3.40000031-16.75999969-9.57333281-22.51999969a31.81333312 31.81333312 0 0 0-10.8-7.40000063l-168.72-99.31999968-4.93333313-4.32z" fill="#2464F5" p-id="34143"></path></svg>
|
After Width: | Height: | Size: 1.5 KiB |
1
src/assets/img/cloud/gcp.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743357432" class="icon" viewBox="0 0 1228 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="37305" width="200" height="200"><path d="M779.7248 289.8944h37.4784l106.8032-106.8032 5.2736-45.3632A480.1024 480.1024 0 0 0 148.224 371.968c11.8784-4.864 25.088-5.632 37.4784-2.2528l213.6064-35.2256s10.9056-17.9712 16.4864-16.896a266.496 266.496 0 0 1 364.6976-27.6992h-0.768z" fill="#EA4335" p-id="37306"></path><path d="M1076.224 371.9168a481.28 481.28 0 0 0-145.1008-233.8304l-149.9136 149.9136a266.496 266.496 0 0 1 97.792 211.3536v26.624a133.4272 133.4272 0 1 1 0 266.8544h-266.752l-26.624 26.9824v160l26.624 26.624h266.752A347.0336 347.0336 0 0 0 1076.224 371.9168" fill="#4285F4" p-id="37307"></path><path d="M344.9856 1004.9536h266.8544v-213.6064H344.9856a132.608 132.608 0 0 1-55.0912-12.032l-37.4784 11.6224-107.5712 106.8032-9.3696 37.4784a345.1904 345.1904 0 0 0 209.5104 69.7344" fill="#34A853" p-id="37308"></path><path d="M344.9856 311.9616a347.0336 347.0336 0 0 0-209.5104 622.1312l154.7776-154.7776a133.4272 133.4272 0 1 1 176.5376-176.4864L621.568 448a346.6752 346.6752 0 0 0-276.5824-136.0384" fill="#FBBC05" p-id="37309"></path></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
src/assets/img/cloud/huawei.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743147068" class="icon" viewBox="0 0 1027 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32927" width="200" height="200"><path d="M402.3125 208.25c16.875-5.62500027 33.75-8.4375 50.625-11.24999973 19.68749973 25.3125 25.3125 59.0625 33.75 89.99999946 5.62500027 33.75 11.24999973 67.5 11.24999973 101.25 5.62500027 22.50000027 2.81249973 47.81250027 2.81250054 70.31250054s-2.81249973 42.1875 0 64.68749946c0 30.93750027-2.81249973 59.0625-2.81250054 90.00000027-5.62500027 19.68749973 0 39.37500027-5.62499946 59.0625-8.4375-2.81249973-11.24999973-11.24999973-14.06250027-16.875-33.75-50.625-64.68750027-101.25-92.8125-154.68749973-28.12499973-56.25000027-56.25000027-112.49999973-59.0625-177.1875-5.62500027-50.625 28.12499973-98.43750027 75.9375-115.31250027z m174.37500027-8.4375c5.62500027-2.81249973 8.4375 0 14.06249946 0 22.50000027 5.62500027 47.81250027 8.4375 67.5 22.50000027s36.56249973 33.75 42.1875 56.24999946c8.4375 28.12499973 5.62500027 59.0625 0 87.18750054-8.4375 36.56249973-25.3125 70.31249973-42.1875 104.06249973-5.62500027 11.24999973-11.24999973 19.68749973-16.875 30.93750027-8.4375 19.68749973-22.50000027 39.37500027-33.75 59.0625-19.68749973 33.75-39.37500027 61.87499973-59.0625 95.62499973-2.81249973 2.81249973-5.62500027 11.24999973-11.24999973 5.62500027-2.81249973-33.75-5.62500027-67.5-8.4375-104.06250054-5.62500027-44.99999973-2.81249973-87.18749973-2.81249973-132.18749946 2.81249973-28.12499973 2.81249973-59.0625 5.62499946-87.18750054 5.62500027-33.75 11.24999973-70.31249973 22.50000027-104.06249973 11.24999973-8.4375 11.24999973-25.3125 22.50000027-33.75zM222.31250027 309.5c2.81249973 0 5.62500027 5.62500027 8.4375 8.4375 81.56250027 106.87500027 154.68749973 219.375 213.74999973 340.31249973 5.62500027 8.4375 11.24999973 19.68749973 11.24999973 30.93750027-11.24999973-2.81249973-19.68749973-8.4375-28.12499973-14.06250027-53.43749973-28.12499973-106.87500027-59.0625-160.3125-89.99999946-19.68749973-14.06250027-39.37500027-28.12499973-56.25000027-42.1875-33.75-22.50000027-56.25000027-64.68750027-53.43749973-106.87500027 2.81249973-50.625 30.93750027-92.8125 64.68750027-126.5625z m582.1875 0h5.62499946c14.06250027 19.68749973 33.75 39.37500027 45.00000054 61.87499973 11.24999973 19.68749973 16.875 44.99999973 19.68749973 67.5 0 25.3125-8.4375 53.43749973-28.12499973 73.12500027-11.24999973 11.24999973-19.68749973 22.50000027-33.75 30.93750027-64.68750027 50.625-135 90.00000027-208.12500027 126.5625-11.24999973 5.62500027-19.68749973 14.06250027-33.75 14.06249946 2.81249973-14.06250027 11.24999973-28.12499973 16.875-39.37499946 47.81250027-98.43750027 106.87500027-191.25000027 171.56249973-281.25000054 14.06250027-14.06250027 30.93750027-33.75 45.00000054-53.43749973z m-705.93750027 225.00000027c2.81249973-2.81249973 0-8.4375 5.62500027-11.25000054 8.4375 2.81249973 16.875 8.4375 22.49999946 11.25000054 101.25 56.25000027 202.5 112.49999973 300.93750027 174.37499946 2.81249973 2.81249973 5.62500027 5.62500027 5.62500027 8.4375H239.18750027c-39.37500027 0-75.9375-16.875-104.06250054-44.99999973-22.50000027-25.3125-42.1875-59.0625-44.99999973-92.8125 5.62500027-14.06250027 2.81249973-28.12499973 8.4375-44.99999973z m810-2.81250054c5.62500027-2.81249973 14.06250027-8.4375 19.68749973-5.62499946 0 14.06250027 5.62500027 30.93750027 5.62500027 44.99999973-2.81249973 19.68749973-2.81249973 36.56249973-11.24999973 53.43749973-5.62500027 14.06250027-14.06250027 30.93750027-25.3125 42.1875-14.06250027 11.24999973-22.50000027 25.3125-39.37500027 33.75-16.875 14.06250027-42.1875 16.875-61.87499973 19.68750054h-202.5c2.81249973-2.81249973 2.81249973-5.62500027 5.62499946-8.4375 101.25-64.68750027 205.31249973-123.75000027 309.37500027-180.00000054zM242 748.25c36.56249973-2.81249973 73.12500027 0 109.6875-5.62500027 25.3125 0 53.43749973-2.81249973 78.74999973 0-5.62500027 11.24999973-19.68749973 16.875-28.12499973 22.50000027-28.12499973 19.68749973-56.25000027 36.56249973-87.18749973 50.625s-67.5 8.4375-92.8125-11.24999973c-19.68749973-14.06250027-36.56249973-36.56249973-47.81250027-56.25000027h67.5z m357.18749973-5.62500027c25.3125-2.81249973 50.625 0 78.75000054 0 33.75 2.81249973 70.31249973 0 106.87499946 5.62500027 25.3125 2.81249973 50.625 0 73.12500027 2.81249973-8.4375 16.875-22.50000027 33.75-36.56249973 47.81250027-22.50000027 22.50000027-56.25000027 33.75-87.18750054 28.12499973-28.12499973-8.4375-50.625-25.3125-75.9375-39.37499946-14.06250027-8.4375-25.3125-16.875-39.37499946-25.3125-8.4375-8.4375-14.06250027-11.24999973-19.68750054-19.68750054z" fill="#C71F1E" p-id="32928"></path></svg>
|
After Width: | Height: | Size: 4.5 KiB |
1
src/assets/img/cloud/jd.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743099498" class="icon" viewBox="0 0 2030 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="30911" width="200" height="200"><path d="M1669.09384945 432.48813594c15.51186469 21.69491531 27.11864437 51.1457625 25.81694906 112.86779625-17.46440719 193.78983094-181.96610156 316.14915281-345.76271156 316.14915281-177.24745781 0-302.04745781-127.56610125-377.111865-270.10169531C954.30062883 557.72203344 941.44639195 520.13559312 929.35147664 487.59322063c-23.701695 32.21694937-73.6542375 84.77288156-99.09152531 109.23389812A629.15254219 629.15254219 0 0 0 890.24639133 720.81355906c20.01355969 31.18644094 70.508475 101.74915219 142.69830562 157.61355938 65.62711875 50.60338969 128.59661062 81.68135625 199.81016906 99.41694937a487.81016906 487.81016906 0 0 0 354.65762719-50.00677968c128.81355937-73.81694906 219.60678-209.78983031 236.04067781-350.96949188-31.72881375-52.61016937-100.501695-114.76610156-154.35932156-144.37966031zM585.37859508 381.12542375a238.96949156 238.96949156 0 0 1 126.96949125 36.39322031c30.53559281-32.5423725 57.54576281-66.16949156 85.58644125-100.06779656A370.54915219 370.54915219 0 0 0 214.66673039 621.01694937a373.09830469 373.09830469 0 0 0 4.39322062 57.00339c10.3593225 12.79999969 114.71186438 4.12203375 130.98305063-10.52203406a242.49491531 242.49491531 0 0 1-4.55593219-46.48135594 239.89152563 239.89152563 0 0 1 239.89152563-239.89152562zM585.37859508 992a370.6576275 370.6576275 0 0 1-320.97627094-185.38305094c4.98983062-6.61694906 121.60000031-19.57966125 149.42372812-18.00678a239.07796594 239.07796594 0 0 0 171.55254282 72.29830594s147.52542375 11.33559281 285.39661031-97.62711937c0 0 51.85084781 73.87118625 91.66101656 101.64067781 0 0-130.00677938 127.07796656-377.05762687 127.07796656z" fill="#E1251B" p-id="30912"></path><path d="M1545.05317101 74.305085C1369.9209682 0.70508469 1199.0735107 22.18305125 1030.23283195 146.27796594 881.35147664 255.67457656 822.1243582 365.88474594 726.88367976 460.47457625c-113.89830469 113.13898313-199.32203344 151.21355906-267.06440718 176.81355938-69.96610125 26.46779625-167.59322062 44.52881344-240.75932157 40.51525406a371.41694906 371.41694906 0 0 0 45.34237313 128.59661062c186.79322063-3.19999969 318.48135562-74.68474594 403.41694875-126.48135656 74.2508475-45.28813594 185.97966094-159.34915219 244.61016937-233.22033844 94.21016906-118.56271219 216.94915219-231.97288125 329.16610219-267.55254281 156.7457625-49.62711844 309.1525425 19.79661 383.02372875 117.85762688 6.61694906 8.62372875 145.13898281 58.3593225 188.691525 95.78305125C1797.31079883 324.88135625 1721.8124932 148.61016969 1545.05317101 74.305085z" fill="#E1251B" p-id="30913" class="custom-cursor-on-hover"></path><path d="M1809.24300164 377.81694875A497.35593188 497.35593188 0 0 0 1526.39554383 286.91525469c-122.63050875 0-245.42372906 47.78305125-331.82372813 132.88135594-62.86101656 61.83050812-93.4508475 112.00000031-163.14576281 195.57966093a570.35932219 570.35932219 0 0 0 92.63728781 108.47457563c9.00339-13.12542375 59.66101688-84.82711875 97.62711844-135.21355875 48.81355969-64.10847469 98.38644094-115.36271156 173.5593225-145.03050844a350.04745781 350.04745781 0 0 1 427.498305 139.3355925A486.02033906 486.02033906 0 0 0 1809.24300164 377.81694875z" fill="#E1251B" p-id="30914" class="custom-cursor-on-hover"></path></svg>
|
After Width: | Height: | Size: 3.3 KiB |
1
src/assets/img/cloud/kingsoft.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743116713" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31939" width="200" height="200"><path d="M718.5408 453.8368c-4.1984 0-8.3968-0.7168-12.5952-0.7168a103.8336 103.8336 0 0 0-67.8912 25.088 139.6736 139.6736 0 0 0 13.6192-60.3136 133.12 133.12 0 0 0-2.4576-25.7024 139.5712 139.5712 0 0 0-274.432 0 133.12 133.12 0 0 0-2.4576 25.7024 139.6736 139.6736 0 0 0 13.6192 60.3136 103.8336 103.8336 0 0 0-67.8912-25.088c-4.1984 0-8.3968 0-12.5952 0.7168a104.5504 104.5504 0 1 0 101.0688 159.4368 116.736 116.736 0 0 0 6.144-11.0592 105.1648 105.1648 0 0 0 4.9152-76.6976 62.6688 62.6688 0 0 1 27.3408 20.48l2.6624 3.8912a83.2512 83.2512 0 0 1 133.9392-3.3792l4.7104 6.8608 51.2 73.9328a84.0704 84.0704 0 0 0 62.464 34.6112h5.5296a104.5504 104.5504 0 0 0 12.5952-208.384z" fill="#E6002D" p-id="31940"></path><path d="M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m200.8064 732.3648h-6.8608a152.4736 152.4736 0 0 1-120.5248-58.9824S509.2352 564.6336 508.0064 563.2a42.1888 42.1888 0 0 0-32.4608-15.2576 40.96 40.96 0 0 0-24.064 7.5776l122.88 175.4112a62.5664 62.5664 0 0 0 77.0048 20.48A97.5872 97.5872 0 0 1 593.92 783.5648a97.0752 97.0752 0 0 1-95.5392-39.1168l-49.4592-70.656a174.8992 174.8992 0 1 1-143.36-290.5088 209.7152 209.7152 0 0 1 413.9008 0 174.7968 174.7968 0 0 1-6.144 349.0816z" fill="#E6002D" p-id="31941"></path></svg>
|
After Width: | Height: | Size: 1.4 KiB |
1
src/assets/img/cloud/lan.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717746661932" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="60936" width="200" height="200"><path d="M29.696 541.696A30.72 30.72 0 0 0 59.52 512 452.16 452.16 0 0 1 512 59.456a439.68 439.68 0 0 1 225.664 61.44l16.704 10.432 7.04 4.608-3.84 7.488c-1.216 2.496-1.536 6.592-1.536 16.64 0 44.352 37.504 81.856 81.856 81.856s81.856-37.504 81.856-81.856a83.008 83.008 0 0 0-108.544-77.824l-8.96 3.136-4.48 1.792-4.096-2.624A520.768 520.768 0 0 0 512 0C230.4 0 0 230.4 0 512c0 15.68 14.08 29.696 29.696 29.696z m588.16-186.24c-13.056-93.568-37.12-164.224-62.336-203.584a383.808 383.808 0 0 0-43.776-2.752c-14.784 0-29.568 1.088-43.776 2.752-25.216 39.36-49.28 109.44-62.4 203.584z m221.696 0a365.504 365.504 0 0 0-203.52-184.96c21.312 51.392 36.608 115.456 45.888 184.96z m-497.472 0c9.28-69.504 24.576-133.568 45.952-184.96a365.504 365.504 0 0 0-203.584 184.96z m520.512 250.688a358.4 358.4 0 0 0 0-188.288H688c2.688 31.232 3.84 62.4 3.84 94.144 0 31.744-1.664 62.912-3.84 94.144z m-237.568 0c2.176-29.568 3.84-61.312 3.84-94.144 0-33.408-1.664-64.64-3.84-94.144H398.976c-2.752 29.568-3.84 61.312-3.84 94.144 0 33.408 1.664 64.64 3.84 94.144z m-289.024 0A1073.92 1073.92 0 0 1 332.16 512c0-31.744 1.152-62.912 3.84-94.144H161.408a358.4 358.4 0 0 0 0 188.288zM512 1024c281.6 0 512-230.4 512-512a30.72 30.72 0 0 0-29.696-29.696 30.72 30.72 0 0 0-29.76 29.696A452.16 452.16 0 0 1 512 964.544a439.68 439.68 0 0 1-225.664-61.44l-16.704-10.432-7.04-4.608 3.84-7.488c1.216-2.496 1.536-6.592 1.536-16.64 0-44.352-37.504-81.856-81.856-81.856s-81.856 37.504-81.856 81.856a83.008 83.008 0 0 0 108.544 77.824l8.96-3.136 4.48-1.792 4.096 2.624A520.768 520.768 0 0 0 512 1024z m-0.256-149.12c14.72 0 29.568-1.088 43.776-2.752 25.152-39.36 49.28-109.44 62.4-203.584H405.568c13.12 93.568 37.184 164.224 62.4 203.584 14.208 1.664 28.992 2.752 43.776 2.752z m124.224-21.312a365.504 365.504 0 0 0 203.584-185.024h-157.632c-9.28 69.504-24.576 133.568-45.952 184.96z m-247.936 0c-21.376-51.456-36.672-115.52-45.952-185.024H184.448a365.504 365.504 0 0 0 203.52 184.96z" fill="#448CF7" p-id="60937"></path></svg>
|
After Width: | Height: | Size: 2.1 KiB |
1
src/assets/img/cloud/nutanix.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717747391666" class="icon" viewBox="0 0 1333 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4694" width="200" height="200"><path d="M1018.488284 0.541672L1314.82427 0a18.458499 18.458499 0 0 1 13.083451 31.500282L894.070504 465.337499a18.458499 18.458499 0 0 1-26.104401 0L720.079363 317.450758a18.458499 18.458499 0 0 1 0-26.093983L1005.477751 5.937553a18.458499 18.458499 0 0 1 13.02095-5.406298zM1018.488284 1023.446662l296.335986 0.552088a18.458499 18.458499 0 0 0 13.083451-31.500282L894.070504 558.650834a18.458499 18.458499 0 0 0-26.104401 0L720.079363 706.547992a18.458499 18.458499 0 0 0 0 26.1044l285.398388 285.398388a18.458499 18.458499 0 0 0 13.02095 5.406298z" fill="#054496" p-id="4695"></path><path d="M821.319852 500.275312L327.34668 5.416715A18.437665 18.437665 0 0 0 314.29448 0H18.510582A18.479332 18.479332 0 0 0 5.437549 31.531532l466.566676 467.400018a18.500166 18.500166 0 0 1 0 26.146067L5.458382 992.425551a18.489749 18.489749 0 0 0 13.083451 31.562782h295.74223a18.437665 18.437665 0 0 0 13.052201-5.416715l493.973172-494.858596a16.593899 16.593899 0 0 0 0-23.448127z" fill="#87BB4C" p-id="4696"></path></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
src/assets/img/cloud/openstack.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717746166860" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="51952" width="200" height="200"><path d="M928.856 10.912H95.142C42.814 10.912 0 53.726 0 106.054v224.202h231.25v-36.64c0-28.418 23.046-51.454 51.464-51.454h458.58c28.42 0 51.456 23.036 51.456 51.456v36.64H1024V106.052c0-52.328-42.816-95.142-95.144-95.142zM792.75 730.38c0 28.42-23.036 51.466-51.456 51.466h-458.58c-28.418 0-51.464-23.046-51.464-51.466v-36.63H0v224.194c0 52.336 42.816 95.142 95.144 95.142h833.714c52.328 0 95.142-42.806 95.142-95.142V693.752H792.75v36.63zM0.006 627.628h231.25V396.38H0.006v231.25z m792.74 0h231.25V396.38H792.748v231.25z" fill="#E72F52" p-id="51953"></path></svg>
|
After Width: | Height: | Size: 713 B |
1
src/assets/img/cloud/qcloud.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743207396" class="icon" viewBox="0 0 1402 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="35171" width="200" height="200"><path d="M1216.84017881 832.26669714c-22.01770438 22.42169837-66.05311315 55.95324845-143.01407896 55.95324845H600.84945441c143.01407897-139.88312044 264.01045355-257.44554135 275.01930505-268.65639054a860.50843905 860.50843905 0 0 1 65.9521143-61.60917245c55.04426026-50.29732444 98.9786702-55.8522496 137.45915242-55.85224962 55.04426026 0 98.9786702 22.32069952 137.56015263 55.95324846 76.96096581 72.71902281 76.96096581 201.4922929 0 274.2113157z m93.42374503-363.79711171a304.81390494 304.81390494 0 0 0-225.42897111-100.79664655c-77.06196465 0-143.01407897 27.97662354-203.51226695 72.71902278-22.01770438 22.52269721-54.94326142 44.84339811-82.51589098 78.47594568-21.91670555 22.32069952-494.89335097 492.5703818-494.89335097 492.57038317 27.47163072 5.55492517 60.59918544 5.55492517 87.96981869 5.55492517h599.42694635c44.03540877 0 76.96096581 0 110.08852053-5.55492517a335.11349765 335.11349765 0 0 0 203.41126672-89.58579738c126.45030092-123.21834493 126.45030092-330.265563 5.45392772-453.3829077z" fill="#00A3FF" p-id="35172"></path><path d="M528.73642327 435.44302817c-60.80118311-45.14639325-121.70336508-67.66909045-193.51339969-67.66909045a306.02588827 306.02588827 0 0 0-226.74195328 101.60463453 333.80051551 333.80051551 0 0 0 5.55492517 462.97777956c55.24625795 50.80231726 110.59351474 78.98093847 176.94962165 84.63686387l127.1572928-124.22833194h-71.91103484c-71.91103347-5.65592402-116.14843991-28.27962006-143.72106809-56.45824128a206.03723244 206.03723244 0 0 1-5.55492656-282.29120635c38.68247989-39.49046924 82.91988635-56.45824127 138.26714315-56.45824267 33.12755473 0 82.91988635 5.65592402 132.71221657 56.55924012 22.11870323 22.52269721 82.91988635 67.66909045 105.03858956 90.29278788h5.55492518l82.91988496-84.73786132v-5.65592401c-38.68247989-39.49046924-99.58466186-90.29278651-132.71221658-118.57240794" fill="#00C8DC" p-id="35173"></path><path d="M1114.32655611 290.00498256A436.81913102 436.81913102 0 0 0 705.58504746 7.00678432c-218.3590661 0-391.87473546 160.8908378-425.507283 360.66615456 16.76577435 0 33.63254755-5.45392634 55.95324845-5.45392634 22.42169837 0 50.49932212 5.45392634 72.82002164 5.45392634 27.97662354-138.67113711 151.19496845-238.55879549 296.73401291-238.55879412a310.06583359 310.06583359 0 0 1 279.96823856 177.55561331s5.55492517 5.55492517 5.55492517 0c39.18747409-5.55492517 84.03087084-16.66477551 123.21834492-16.66477551 0 5.55492517 0 5.55492517 0 0" fill="#006EFF" p-id="35174"></path></svg>
|
After Width: | Height: | Size: 2.6 KiB |
1
src/assets/img/cloud/qcloud_lighthouse.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743207396" class="icon" viewBox="0 0 1402 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="35171" width="200" height="200"><path d="M1216.84017881 832.26669714c-22.01770438 22.42169837-66.05311315 55.95324845-143.01407896 55.95324845H600.84945441c143.01407897-139.88312044 264.01045355-257.44554135 275.01930505-268.65639054a860.50843905 860.50843905 0 0 1 65.9521143-61.60917245c55.04426026-50.29732444 98.9786702-55.8522496 137.45915242-55.85224962 55.04426026 0 98.9786702 22.32069952 137.56015263 55.95324846 76.96096581 72.71902281 76.96096581 201.4922929 0 274.2113157z m93.42374503-363.79711171a304.81390494 304.81390494 0 0 0-225.42897111-100.79664655c-77.06196465 0-143.01407897 27.97662354-203.51226695 72.71902278-22.01770438 22.52269721-54.94326142 44.84339811-82.51589098 78.47594568-21.91670555 22.32069952-494.89335097 492.5703818-494.89335097 492.57038317 27.47163072 5.55492517 60.59918544 5.55492517 87.96981869 5.55492517h599.42694635c44.03540877 0 76.96096581 0 110.08852053-5.55492517a335.11349765 335.11349765 0 0 0 203.41126672-89.58579738c126.45030092-123.21834493 126.45030092-330.265563 5.45392772-453.3829077z" fill="#00A3FF" p-id="35172"></path><path d="M528.73642327 435.44302817c-60.80118311-45.14639325-121.70336508-67.66909045-193.51339969-67.66909045a306.02588827 306.02588827 0 0 0-226.74195328 101.60463453 333.80051551 333.80051551 0 0 0 5.55492517 462.97777956c55.24625795 50.80231726 110.59351474 78.98093847 176.94962165 84.63686387l127.1572928-124.22833194h-71.91103484c-71.91103347-5.65592402-116.14843991-28.27962006-143.72106809-56.45824128a206.03723244 206.03723244 0 0 1-5.55492656-282.29120635c38.68247989-39.49046924 82.91988635-56.45824127 138.26714315-56.45824267 33.12755473 0 82.91988635 5.65592402 132.71221657 56.55924012 22.11870323 22.52269721 82.91988635 67.66909045 105.03858956 90.29278788h5.55492518l82.91988496-84.73786132v-5.65592401c-38.68247989-39.49046924-99.58466186-90.29278651-132.71221658-118.57240794" fill="#00C8DC" p-id="35173"></path><path d="M1114.32655611 290.00498256A436.81913102 436.81913102 0 0 0 705.58504746 7.00678432c-218.3590661 0-391.87473546 160.8908378-425.507283 360.66615456 16.76577435 0 33.63254755-5.45392634 55.95324845-5.45392634 22.42169837 0 50.49932212 5.45392634 72.82002164 5.45392634 27.97662354-138.67113711 151.19496845-238.55879549 296.73401291-238.55879412a310.06583359 310.06583359 0 0 1 279.96823856 177.55561331s5.55492517 5.55492517 5.55492517 0c39.18747409-5.55492517 84.03087084-16.66477551 123.21834492-16.66477551 0 5.55492517 0 5.55492517 0 0" fill="#006EFF" p-id="35174"></path></svg>
|
After Width: | Height: | Size: 2.6 KiB |
1
src/assets/img/cloud/qing.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717745876738" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="50950" width="200" height="200"><path d="M494.272 0L347.968 89.088l146.304 86.4V0z m43.904 175.552l146.304-87.488L538.176 0v175.552z m0 731.392l146.304-87.872-146.304-87.68v175.552z m-43.904 0V731.52l-146.304 88.128 146.304 87.36m409.6-205.696L757.568 614.4v175.552l146.304-88.704M289.472 614.4l-146.304 87.68 146.304 87.872V614.4z m468.096-73.152l146.304-88.128-146.304-87.424v175.552z m-468.096 0V365.696L143.168 453.632l146.304 87.68m614.4-336.768L757.568 117.12V292.48l146.304-88m-614.4-87.488l-146.304 88.32 146.304 87.168V117.12z m629.056 307.2V248.704l-146.304 88.256 146.304 87.296m-789.952 0l146.304-88.064-146.304-87.488v175.552z m146.304 146.432L128.576 482.752v175.552l146.304-87.616m497.344 0.192l146.304 87.424V482.752L772.224 570.88m-438.848 43.52v175.552l146.304-88L333.376 614.4m380.352 175.552V614.4l-146.304 87.68 146.304 87.872M333.376 307.2l146.304-88.128-146.304-87.424V307.2z m380.352 541.248l-146.304 88.768L713.728 1024v-175.552z m0-555.904V131.648L567.424 212.672l146.304 79.872" fill="#57B382" p-id="50951"></path><path d="M494.272 0v175.552L347.968 89.088 494.272 0m43.904 175.552V0l146.304 88.064-146.304 87.488m0 731.392V731.52l146.304 87.68-146.304 87.808m-43.904 0l-146.304-87.36 146.304-88.128v175.488z m409.6-205.696l-146.304 88.704V614.4l146.304 86.848M289.472 614.4v175.552L143.168 702.08 289.472 614.4m468.096-73.152V365.696l146.304 87.424-146.304 88.128m-468.096 0L143.168 453.632l146.304-87.936v175.552z m614.4-336.64L757.568 292.48V117.12l146.304 87.488m-614.4-87.488V292.48L143.168 205.44l146.304-88.384m629.056 307.2l-146.304-87.296 146.304-88.32V424.32z m-789.952 0V248.704l146.304 87.488-146.304 88.064m146.304 146.432l-146.304 87.616V482.752l146.304 87.936m497.344 0.192l146.304-88.128v175.552L772.224 570.88m-438.848 43.52l146.304 87.552-146.304 88V614.4z m380.352 175.552l-146.304-87.936L713.728 614.4v175.552zM333.376 307.2V131.648l146.304 87.424L333.376 307.2m380.352 541.248V1024l-146.304-86.784 146.304-88.768m0-555.904L567.424 212.672l146.304-81.024v160.896z" fill="#57B382" p-id="50952" class="custom-cursor-on-hover"></path></svg>
|
After Width: | Height: | Size: 2.1 KiB |
1
src/assets/img/cloud/scp.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717746510567" class="icon" viewBox="0 0 1351 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="55261" width="200" height="200"><path d="M416.92885 824.173591c-56.901379 30.927289-130.232881 35.397249-203.685192-3.745101a159.190971 159.190971 0 0 1-65.35806-64.754011c-79.130368-147.025432 15.826074-294.775723 150.770533-309.635319 7.369393-0.845668 14.738786-1.328907 22.228989-1.328907 59.317574 0 112.353042 25.732471 149.320817 66.324538a249.50832 249.50832 0 0 1-26.457329-111.628184c0-16.188503 1.691336-31.893767 4.590769-47.236601a320.508194 320.508194 0 0 0-127.575067-26.45733c-6.161296 0-12.201782 0.604049-18.242268 0.966478C83.252396 339.122556-77.424535 571.198033 39.036038 806.897801c25.370042 51.344132 66.686967 93.748345 117.668669 119.601625 115.614904 58.713525 230.50495 50.377654 319.420907 0.966478 31.531338-17.51741 38.659111-59.921622 15.946883-88.070288-0.241619-0.362429-0.483239-0.604049-0.724858-0.966477-18.000649-22.349799-49.290367-27.907046-74.418789-14.255548z" fill="#62B0DB" p-id="55262"></path><path d="M443.869418 399.527417c0-16.188503 1.691336-31.893767 4.590769-47.236602 23.557896-123.709156 137.602274-215.403735 270.855398-203.081143 24.041135 2.174575 46.994982 8.094251 68.740732 16.792551 50.377654-17.879839 104.3796-28.148665 160.91855-28.148665 16.550932 0 32.981054 0.845668 49.169557 2.537004C928.558024 59.448048 827.561096 5.929341 715.328864 0.492904c-204.65167-10.027207-377.167953 134.098792-412.565202 326.18625-4.34915 23.678706-6.886154 47.96146-6.886154 72.848263 0 15.826074 1.208097 31.289718 2.899433 46.511743 7.369393-0.845668 14.738786-1.328907 22.228989-1.328907 59.317574 0 112.473852 25.732471 149.320817 66.324538-16.792551-33.464293-26.457329-71.277736-26.457329-111.507374z" fill="#8FC361" p-id="55263"></path><path d="M1114.725806 778.386706S880.717374 806.172943 749.034777 723.176663c-66.928586-42.162593-43.73312-127.937496 50.015225-152.461869 63.666724-16.671742 302.024306-14.376357 457.989657 13.04745 156.086161 27.423807 124.675634 166.717417-142.313853 194.624462zM1316.961282 782.615047s-67.170206 87.22462-241.981874 113.561139c-72.727453 10.993685-135.06527 13.289069-224.102035 0 0 0-70.311258-18.967126-82.392231 35.638868-14.376357 65.23725 157.656688 128.420735 327.998396 62.458627 172.274664-66.566157 220.477743-211.658634 220.477744-211.658634z" fill="#ADD079" p-id="55264"></path><path d="M1341.244036 531.089205s-44.457978-76.955793-241.136206-131.924217c-195.228511-54.605995-295.86301 15.463644-346.240665-30.202431-24.886803-22.470608-5.194818-77.318222 23.557896-101.480167 46.994982-39.504779 176.744624-83.600328 323.407627-20.416843 214.558067 92.540247 240.411348 284.023657 240.411348 284.023658z" fill="#A2CB70" p-id="55265"></path><path d="M783.948786 456.791225s234.008432-27.786236 365.69103 55.210044c66.928586 42.162593 43.73312 127.937496-50.015225 152.461869-63.666724 16.671742-302.024306 14.376357-457.989658-13.04745-156.086161-27.302997-124.675634-166.717417 142.313853-194.624463z m11.839353 535.42869c146.663003 63.183485 276.412645 19.208746 323.407627-20.416843 28.631904-24.161944 48.444699-78.888749 23.557896-101.480167-50.377654-45.666075-151.012153 24.403564-346.240665-30.20243-196.678228-54.968424-241.136206-131.924217-241.136206-131.924217s25.97409 191.60422 240.411348 284.023657zM579.780355 456.791225s67.170206-87.22462 241.981874-113.561139c72.727453-10.993685 135.06527-13.289069 224.102036 0 0 0 70.311258 18.967126 82.39223-35.638868 14.376357-65.23725-157.656688-128.420735-327.998396-62.458626-172.274664 66.566157-220.477743 211.658634-220.477744 211.658633z" fill="#4885BE" p-id="55266"></path></svg>
|
After Width: | Height: | Size: 3.6 KiB |
1
src/assets/img/cloud/smartx.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1748326203303" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2853" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M10.24 605.184l839.168-481.28L1013.76 220.672v191.488L174.592 895.488 10.24 804.352z" fill="#0096FF" p-id="2854"></path><path d="M10.24 416.768V220.672l168.96-96.768 308.736 178.688-331.776 193.536zM541.184 717.312l331.264-195.072 141.312 88.064v194.048l-165.376 95.744z" fill="#25C764" p-id="2855"></path></svg>
|
After Width: | Height: | Size: 645 B |
1
src/assets/img/cloud/state.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717747284124" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2464" width="200" height="200"><path d="M838.4 416c-6.4-70.4-64-115.2-134.4-115.2-19.2 0-38.4 6.4-51.2 6.4-44.8-51.2-115.2-83.2-185.6-83.2-89.6 0-172.8 51.2-211.2 128h-12.8C115.2 352 19.2 448 12.8 576s96 224 224 230.4h294.4c25.6 0 44.8-19.2 44.8-44.8s-19.2-44.8-44.8-44.8H249.6c-70.4 0-134.4-57.6-134.4-128s51.2-128 121.6-134.4c12.8 0 25.6 0 38.4 6.4h6.4l25.6 6.4C320 390.4 390.4 320 473.6 320c57.6 0 108.8 32 140.8 83.2 6.4 6.4 6.4 12.8 6.4 19.2l6.4-6.4c19.2-19.2 51.2-19.2 70.4-19.2 44.8 0 70.4 38.4 70.4 76.8 0 12.8-6.4 25.6-6.4 38.4 12.8 6.4 19.2 19.2 38.4 19.2 6.4-6.4 19.2-12.8 19.2-19.2 64 6.4 115.2 57.6 108.8 128-6.4 57.6-57.6 108.8-121.6 108.8-51.2 0-96-32-115.2-83.2h51.2c6.4 0 12.8-6.4 12.8-12.8s0-6.4-6.4-6.4l-96-128c-6.4-6.4-12.8-12.8-19.2-6.4h-6.4l-96 128c-6.4 6.4-6.4 19.2 6.4 19.2 6.4 0 6.4 6.4 6.4 6.4h57.6c19.2 115.2 128 192 243.2 172.8 115.2-19.2 192-128 172.8-243.2-25.6-96-89.6-160-179.2-179.2z" fill="#F3A22F" p-id="2465"></path></svg>
|
After Width: | Height: | Size: 1.0 KiB |
1
src/assets/img/cloud/ucloud.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743387740" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="38378" width="200" height="200"><path d="M912.192 0C973.952 0 1024 50.048 1024 111.808v800.384c0 61.76-50.048 111.808-111.808 111.808H111.808A111.808 111.808 0 0 1 0 912.192V111.808C0 50.048 50.048 0 111.808 0h800.384zM672 185.152c-23.936-1.088-30.912 6.144-30.656 30.4 1.28 116.864 0.832 233.728 0.384 350.592-0.128 37.76 2.368 75.52-3.392 113.216-6.912 45.184-33.92 71.68-76.16 82.88-52.672 13.952-107.136-1.728-131.2-36.736-17.6-25.728-19.84-55.552-19.904-85.632-0.192-120.32-0.448-240.64 0.192-360.96 0.128-18.432-4.032-26.24-24.448-26.24-20.416 0.128-27.136 8-24.128 26.432 4.608 28.16-8.256 37.12-34.24 33.152-23.168-3.456-35.2 5.248-30.912 29.952 5.312 30.4-6.912 42.304-37.248 37.248-20.416-3.392-30.72 2.304-30.144 26.88 1.6 79.04-0.512 158.08 1.024 237.184 2.24 113.088 79.104 204.8 189.632 230.912a462.08 462.08 0 0 0 187.136 5.632c133.12-23.04 214.08-117.824 214.4-252.416V435.2c0-74.496-0.896-148.992 0.448-223.424 0.448-21.76-6.4-27.264-27.2-26.56-41.152 1.536-82.432 1.92-123.52 0z m-422.784 133.76c-16.832-3.84-18.752 7.04-19.2 21.568-0.384 15.296 3.968 22.208 20.736 22.464 18.496 0.32 22.528-7.36 22.528-24.128 0-16.96-7.296-22.144-24.064-19.84z m73.6-65.92l-4.992 0.448c-17.792-2.816-20.928 7.04-20.8 22.272 0 15.104 6.592 19.456 20.864 19.648 15.68 0.256 22.72-4.224 22.656-21.248 0-17.024-6.72-23.04-22.72-20.672z m-134.464 3.904c-10.88 0.384-12.288 7.36-12.608 16-0.448 11.008 2.88 17.664 15.168 16 12.672 1.216 15.168-6.144 14.912-16.768-0.32-11.84-6.656-15.552-17.472-15.232z m68.032-3.648c-11.776 0.32-19.904 1.664-19.52 16.512 0.32 11.776 1.472 19.968 16.448 19.328 11.52-0.448 21.12-0.896 18.944-16.192 1.28-11.904-0.96-20.096-15.872-19.648z m126.592-68.032c-17.088-0.32-20.8 6.848-20.928 22.336-0.128 16.96 6.848 22.656 22.592 20.352 17.664 2.88 20.288-7.04 20.736-21.952 0.512-17.28-7.232-20.48-22.4-20.736z m-58.816 7.104l-4.736 0.32c-12.48-0.96-22.272-0.064-22.336 16.96 0 15.872 7.552 19.072 21.056 18.752 12.352-0.256 22.08-0.64 22.208-17.6 0.128-16.128-7.616-19.648-20.928-18.112z m-137.6 6.016c-9.088-0.128-10.816 5.632-10.432 13.056 0.384 9.088 6.464 10.304 13.632 9.792 7.872-0.64 11.776-4.928 11.008-12.992-0.832-8.832-7.232-9.792-14.208-9.856z m65.728-5.632h-3.584c-11.328 0.32-11.392 7.936-11.456 16.128 0 10.88 6.976 12.544 15.616 12.096 10.368 0.512 12.928-5.248 13.184-14.528 0.32-13.056-7.552-13.952-17.28-13.696z m66.816-55.68c-7.808 0.256-16.832-0.96-17.472 10.56-0.704 11.712 6.592 15.616 17.024 15.744 9.152 0.128 15.424-2.944 15.36-13.312 0.832-11.008-5.952-13.312-14.912-12.992z m-63.68 0.448c-7.936-0.128-12.352 3.072-12.288 11.456 0.128 7.424 2.752 12.8 11.008 13.376 8.32 0.512 11.712-4.288 12.032-12.032 0.64-7.808-2.176-12.608-10.752-12.8z" fill="#3860F4" p-id="38379" class="custom-cursor-on-hover"></path></svg>
|
After Width: | Height: | Size: 2.8 KiB |
1
src/assets/img/cloud/vmware.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717747341803" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3484" width="200" height="200"><path d="M813.6 65H451.9c-81.8 0-144.7 62.7-144.7 144.1v100.4h-97.5C127.9 309.5 65 372.3 65 453.7v360.5c0 81.4 62.8 144.2 144.7 144.2h358.6c81.8 0 144.7-62.7 144.7-144.2V710.7h100.6c81.8 0 144.7-62.7 144.7-144.2V206c3.2-75.3-62.9-141-144.7-141z m37.8 504.6c-0.4 20.6-17.1 37.3-37.7 37.5H609.2V814c-0.3 20.7-17 37.3-37.7 37.6H209.8c-20.7-0.2-37.4-16.9-37.8-37.6V453.6c0.3-20.7 17.1-37.4 37.8-37.6h204.4V209.1c0-21.9 18.9-37.5 37.8-37.5h361.7c20.6 0.3 37.3 16.9 37.7 37.5v360.5z m0 0" fill="#8FBE48" p-id="3485"></path><path d="M514.8 268.7v235H272.7V745h242.2V510H757V268.7H514.8z m0 0" fill="#F2B624" p-id="3486"></path></svg>
|
After Width: | Height: | Size: 773 B |
1
src/assets/img/cloud/volcengine.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717743222537" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="36225" width="200" height="200"><path d="M830.537143 476.525714L706.413714 961.828571a8.484571 8.484571 0 0 0 0 4.022858 9.069714 9.069714 0 0 0 8.996572 6.948571h248.100571a9.069714 9.069714 0 0 0 9.069714-10.971429l-124.708571-485.302857a9.142857 9.142857 0 0 0-17.334857 0M147.602286 586.386286L51.492571 961.828571a8.996571 8.996571 0 0 0 9.069715 10.971429h191.488a9.142857 9.142857 0 0 0 7.241143-3.291429 8.777143 8.777143 0 0 0 1.755428-3.657142 8.484571 8.484571 0 0 0 0-4.022858L164.864 586.459429a8.777143 8.777143 0 0 0-3.291429-4.534858 9.216 9.216 0 0 0-10.752 0 8.777143 8.777143 0 0 0-3.218285 4.534858" fill="#00E5E5" p-id="36226"></path><path d="M317.074286 275.748571l-175.104 686.08a8.777143 8.777143 0 0 0 1.682285 7.460572c1.682286 2.194286 4.242286 3.437714 6.948572 3.437714h350.354286a9.069714 9.069714 0 0 0 9.069714-10.898286L334.409143 275.748571a8.777143 8.777143 0 0 0-3.291429-4.608 9.216 9.216 0 0 0-10.752 0 8.777143 8.777143 0 0 0-3.291428 4.608" fill="#006EFF" p-id="36227"></path><path d="M619.227429 57.490286A8.777143 8.777143 0 0 0 615.862857 52.955429a9.216 9.216 0 0 0-10.752 0 8.777143 8.777143 0 0 0-3.291428 4.534857L362.569143 961.828571a8.996571 8.996571 0 0 0 8.996571 10.898286h478.354286a9.216 9.216 0 0 0 9.142857-6.875428 8.996571 8.996571 0 0 0 0-4.022858L619.154286 57.490286z" fill="#006EFF" p-id="36228"></path><path d="M443.318857 375.442286L291.474286 961.828571a9.069714 9.069714 0 0 0 9.069714 10.971429l302.957714 0.073143a9.216 9.216 0 0 0 7.314286-3.364572 9.142857 9.142857 0 0 0 1.828571-7.68L460.653714 375.442286a9.216 9.216 0 0 0-8.704-6.290286 9.216 9.216 0 0 0-8.630857 6.290286" fill="#00E5E5" p-id="36229"></path></svg>
|
After Width: | Height: | Size: 1.8 KiB |
1
src/assets/img/cloud/zstack.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg t="1717746226986" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="52962" width="200" height="200"><path d="M527.36 102.4H450.048L350.0032 266.8544h68.9152L25.6 921.6h263.68l96.256-164.7616H317.1328l299.7248-489.984L527.36 102.4z m124.4672 211.7632l-233.1136 387.584h257.6896l32.512 55.0912H455.168L364.4928 921.6H998.4l-183.7056-327.168H681.472l27.3408-58.0608h69.12l-126.1568-222.208z" fill="#2558E6" p-id="52963"></path></svg>
|
After Width: | Height: | Size: 478 B |
BIN
src/assets/img/deepSeek.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/img/icons/bsd.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
src/assets/img/icons/cisco.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
src/assets/img/icons/clickhouse.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/img/icons/db2.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/img/icons/gateway.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/img/icons/general.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
src/assets/img/icons/gpt.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
src/assets/img/icons/h3c.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
src/assets/img/icons/huawei.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/img/icons/k8s.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/img/icons/linux.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
src/assets/img/icons/macos.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
src/assets/img/icons/mariadb.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
src/assets/img/icons/mongodb.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/img/icons/mysql.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/img/icons/oracle.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/img/icons/other.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/img/icons/postgresql.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/img/icons/private.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
src/assets/img/icons/redis.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
src/assets/img/icons/sqlserver.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
src/assets/img/icons/unix.png
Normal file
After Width: | Height: | Size: 940 B |
BIN
src/assets/img/icons/vmware.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/img/icons/website.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
src/assets/img/icons/windows.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
src/assets/img/icons/windows_ad.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
@ -1,18 +1,31 @@
|
|||||||
import { UpdateToken, UploadSecret } from '@/components/Form/FormFields'
|
import { UpdateToken, UploadSecret } from '@/components/Form/FormFields'
|
||||||
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import AssetSelect from '@/components/Apps/AssetSelect/index.vue'
|
|
||||||
import { Required, RequiredChange } from '@/components/Form/DataForm/rules'
|
import { Required, RequiredChange } from '@/components/Form/DataForm/rules'
|
||||||
import AutomationParamsForm from '@/views/assets/Platform/AutomationParamsSetting.vue'
|
import AutomationParamsForm from '@/views/assets/Platform/AutomationParamsSetting.vue'
|
||||||
|
|
||||||
export const accountFieldsMeta = (vm) => {
|
export const accountFieldsMeta = (vm) => {
|
||||||
const defaultPrivilegedAccounts = ['root', 'administrator']
|
const defaultPrivilegedAccounts = ['root', 'administrator']
|
||||||
|
|
||||||
|
function onPrivilegedUser(value, updateForm) {
|
||||||
|
const maybePrivileged = defaultPrivilegedAccounts.includes(value)
|
||||||
|
if (maybePrivileged) {
|
||||||
|
updateForm({ privileged: true, secret_reset: false, push_now: false })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
assets: {
|
assets: {
|
||||||
|
component: Select2,
|
||||||
|
label: vm.$t('Asset'),
|
||||||
rules: [Required],
|
rules: [Required],
|
||||||
component: AssetSelect,
|
|
||||||
label: vm.$t('assets.Asset'),
|
|
||||||
el: {
|
el: {
|
||||||
multiple: false
|
multiple: true,
|
||||||
|
ajax: {
|
||||||
|
url: '/api/v1/assets/assets/',
|
||||||
|
transformOption: (item) => {
|
||||||
|
return { label: item.name + '(' + item.address + ')', value: item.id }
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
return vm.platform || vm.asset
|
return vm.platform || vm.asset
|
||||||
@ -22,6 +35,9 @@ export const accountFieldsMeta = (vm) => {
|
|||||||
component: Select2,
|
component: Select2,
|
||||||
rules: [Required],
|
rules: [Required],
|
||||||
el: {
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
},
|
||||||
multiple: false,
|
multiple: false,
|
||||||
ajax: {
|
ajax: {
|
||||||
url: '/api/v1/accounts/account-templates/',
|
url: '/api/v1/accounts/account-templates/',
|
||||||
@ -36,26 +52,33 @@ export const accountFieldsMeta = (vm) => {
|
|||||||
},
|
},
|
||||||
on_invalid: {
|
on_invalid: {
|
||||||
rules: [Required],
|
rules: [Required],
|
||||||
label: vm.$t('accounts.AccountPolicy'),
|
label: vm.$t('AccountPolicy'),
|
||||||
helpText: vm.$t('accounts.BulkCreateStrategy'),
|
helpTip: vm.$t('AccountPolicyHelpText'),
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
return vm.platform || vm.asset
|
return vm.platform || vm.asset
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
label: vm.$t('common.Name'),
|
label: vm.$t('Name'),
|
||||||
rules: [RequiredChange],
|
rules: [RequiredChange],
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
on: {
|
on: {
|
||||||
input: ([value], updateForm) => {
|
input: ([value], updateForm) => {
|
||||||
if (!vm.usernameChanged) {
|
if (!vm.usernameChanged) {
|
||||||
if (!vm.account?.name) {
|
if (!vm.account?.name) {
|
||||||
updateForm({ username: value })
|
updateForm({ username: value })
|
||||||
}
|
}
|
||||||
const maybePrivileged = defaultPrivilegedAccounts.includes(value)
|
|
||||||
if (maybePrivileged) {
|
|
||||||
updateForm({ privileged: true })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
onPrivilegedUser(value, updateForm)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
@ -64,17 +87,16 @@ export const accountFieldsMeta = (vm) => {
|
|||||||
},
|
},
|
||||||
username: {
|
username: {
|
||||||
el: {
|
el: {
|
||||||
disabled: !!vm.account?.name
|
get disabled() {
|
||||||
|
return !!vm.account?.name || vm.isDisabled
|
||||||
|
}
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
input: ([value], updateForm) => {
|
input: ([value], updateForm) => {
|
||||||
vm.usernameChanged = true
|
vm.usernameChanged = true
|
||||||
},
|
},
|
||||||
change: ([value], updateForm) => {
|
change: ([value], updateForm) => {
|
||||||
const maybePrivileged = defaultPrivilegedAccounts.includes(value)
|
onPrivilegedUser(value, updateForm)
|
||||||
if (maybePrivileged) {
|
|
||||||
updateForm({ privileged: true })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
@ -82,7 +104,12 @@ export const accountFieldsMeta = (vm) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
privileged: {
|
privileged: {
|
||||||
label: vm.$t('assets.Privileged'),
|
label: vm.$t('Privileged'),
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
return vm.addTemplate
|
return vm.addTemplate
|
||||||
}
|
}
|
||||||
@ -104,69 +131,113 @@ export const accountFieldsMeta = (vm) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
su_from_username: {
|
su_from_username: {
|
||||||
label: vm.$t('assets.UserSwitchFrom'),
|
label: vm.$t('UserSwitchFrom'),
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => {
|
hidden: (formValue) => {
|
||||||
return vm.platform || vm.asset || vm.addTemplate
|
return vm.platform || vm.asset || vm.addTemplate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
label: vm.$t('assets.Password'),
|
label: vm.$t('Password'),
|
||||||
component: UpdateToken,
|
component: UpdateToken,
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => {
|
hidden: (formValue) => {
|
||||||
return formValue.secret_type !== 'password' || vm.addTemplate
|
return formValue.secret_type !== 'password' || vm.addTemplate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ssh_key: {
|
ssh_key: {
|
||||||
label: vm.$t('assets.PrivateKey'),
|
label: vm.$t('PrivateKey'),
|
||||||
component: UploadSecret,
|
component: UploadSecret,
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => formValue.secret_type !== 'ssh_key' || vm.addTemplate
|
hidden: (formValue) => formValue.secret_type !== 'ssh_key' || vm.addTemplate
|
||||||
},
|
},
|
||||||
passphrase: {
|
passphrase: {
|
||||||
label: vm.$t('assets.Passphrase'),
|
label: vm.$t('Passphrase'),
|
||||||
component: UpdateToken,
|
component: UpdateToken,
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => formValue.secret_type !== 'ssh_key' || vm.addTemplate
|
hidden: (formValue) => formValue.secret_type !== 'ssh_key' || vm.addTemplate
|
||||||
},
|
},
|
||||||
token: {
|
token: {
|
||||||
label: vm.$t('assets.Token'),
|
label: vm.$t('Token'),
|
||||||
component: UploadSecret,
|
component: UploadSecret,
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => formValue.secret_type !== 'token' || vm.addTemplate
|
hidden: (formValue) => formValue.secret_type !== 'token' || vm.addTemplate
|
||||||
},
|
},
|
||||||
access_key: {
|
access_key: {
|
||||||
id: 'access_key',
|
id: 'access_key',
|
||||||
label: vm.$t('assets.AccessKey'),
|
label: vm.$t('AccessKey'),
|
||||||
component: UploadSecret,
|
component: UploadSecret,
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => formValue.secret_type !== 'access_key' || vm.addTemplate
|
hidden: (formValue) => formValue.secret_type !== 'access_key' || vm.addTemplate
|
||||||
},
|
},
|
||||||
api_key: {
|
api_key: {
|
||||||
id: 'api_key',
|
id: 'api_key',
|
||||||
label: vm.$t('assets.ApiKey'),
|
label: vm.$t('ApiKey'),
|
||||||
component: UploadSecret,
|
component: UploadSecret,
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: (formValue) => formValue.secret_type !== 'api_key' || vm.addTemplate
|
hidden: (formValue) => formValue.secret_type !== 'api_key' || vm.addTemplate
|
||||||
},
|
},
|
||||||
secret_type: {
|
secret_type: {
|
||||||
type: 'radio-group',
|
type: 'radio-group',
|
||||||
options: [],
|
options: [],
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
},
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
return vm.addTemplate
|
return vm.addTemplate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
push_now: {
|
push_now: {
|
||||||
helpText: vm.$t('accounts.AccountPush.WindowsPushHelpText'),
|
helpTip: vm.$t('WindowsPushHelpText'),
|
||||||
hidden: (formValue) => {
|
hidden: (formValue) => {
|
||||||
const automation = vm.iPlatform.automation || {}
|
const automation = vm.iPlatform.automation || {}
|
||||||
return !automation.push_account_enabled ||
|
return !automation.push_account_enabled ||
|
||||||
!automation.ansible_enabled ||
|
!automation.ansible_enabled ||
|
||||||
!vm.$hasPerm('accounts.push_account') ||
|
!vm.$hasPerm('accounts.push_account') ||
|
||||||
(formValue.secret_type === 'ssh_key' && vm.iPlatform.type.value === 'windows') ||
|
(formValue.secret_type === 'ssh_key' && vm.iPlatform.type.value === 'windows') ||
|
||||||
vm.addTemplate
|
vm.addTemplate ||
|
||||||
|
!formValue.secret_reset
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
label: vm.$t('assets.PushParams'),
|
label: vm.$t('PushParams'),
|
||||||
component: AutomationParamsForm,
|
component: AutomationParamsForm,
|
||||||
el: {},
|
el: {},
|
||||||
hidden: (formValue) => {
|
hidden: (formValue) => {
|
||||||
const automation = vm.iPlatform.automation || {}
|
const automation = vm.iPlatform.automation || {}
|
||||||
|
if (!vm.iPlatform.automation) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
vm.fieldsMeta.params.el.method = vm.iPlatform.automation.push_account_method
|
vm.fieldsMeta.params.el.method = vm.iPlatform.automation.push_account_method
|
||||||
vm.fieldsMeta.params.el.pushAccountParams = vm.iPlatform.automation.push_account_params
|
vm.fieldsMeta.params.el.pushAccountParams = vm.iPlatform.automation.push_account_params
|
||||||
return !formValue.push_now ||
|
return !formValue.push_now ||
|
||||||
@ -179,12 +250,27 @@ export const accountFieldsMeta = (vm) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
is_active: {
|
is_active: {
|
||||||
label: vm.$t('common.IsActive')
|
label: vm.$t('IsActive'),
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
comment: {
|
comment: {
|
||||||
label: vm.$t('common.Comment'),
|
label: vm.$t('Comment'),
|
||||||
hidden: () => {
|
el: {
|
||||||
return vm.addTemplate
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
secret_reset: {
|
||||||
|
label: vm.$t('SecretReset'),
|
||||||
|
el: {
|
||||||
|
get disabled() {
|
||||||
|
return vm.isDisabled
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
<AutoDataForm
|
<AutoDataForm
|
||||||
v-if="!loading"
|
v-if="!loading"
|
||||||
ref="AutoDataForm"
|
ref="AutoDataForm"
|
||||||
|
:class="addTemplate? '': 'account-add'"
|
||||||
|
:submit-btn-text="submitBtnText"
|
||||||
v-bind="$data"
|
v-bind="$data"
|
||||||
@submit="confirm"
|
@submit="confirm"
|
||||||
/>
|
/>
|
||||||
@ -43,7 +45,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
|
isDisabled: false,
|
||||||
usernameChanged: false,
|
usernameChanged: false,
|
||||||
|
submitBtnText: this.$t('Confirm'),
|
||||||
iPlatform: {
|
iPlatform: {
|
||||||
automation: {},
|
automation: {},
|
||||||
su_enabled: false,
|
su_enabled: false,
|
||||||
@ -58,19 +62,29 @@ export default {
|
|||||||
form: Object.assign({ 'on_invalid': 'error' }, this.account || {}),
|
form: Object.assign({ 'on_invalid': 'error' }, this.account || {}),
|
||||||
encryptedFields: ['secret'],
|
encryptedFields: ['secret'],
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('assets.Asset'), ['assets']],
|
[this.$t('Basic'), ['name', 'username', 'privileged', 'su_from', 'su_from_username', 'template']],
|
||||||
[this.$t('accounts.AccountTemplate'), ['template']],
|
[this.$t('Asset'), ['assets']],
|
||||||
[this.$t('common.Basic'), ['name', 'username', 'privileged', 'su_from', 'su_from_username']],
|
[this.$t('Secret'), [
|
||||||
[this.$t('assets.Secret'), [
|
|
||||||
'secret_type', 'password', 'ssh_key', 'token',
|
'secret_type', 'password', 'ssh_key', 'token',
|
||||||
'access_key', 'passphrase', 'api_key'
|
'access_key', 'passphrase', 'api_key',
|
||||||
|
'secret_reset'
|
||||||
]],
|
]],
|
||||||
[this.$t('common.Other'), ['push_now', 'params', 'on_invalid', 'is_active', 'comment']]
|
[this.$t('Other'), ['push_now', 'params', 'on_invalid', 'is_active', 'comment']]
|
||||||
],
|
],
|
||||||
fieldsMeta: accountFieldsMeta(this),
|
fieldsMeta: accountFieldsMeta(this),
|
||||||
hasSaveContinue: false
|
hasSaveContinue: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
'$route.query': {
|
||||||
|
handler(nv, ov) {
|
||||||
|
if (nv && (nv.flag === 'move' || nv.flag === 'copy')) {
|
||||||
|
this.isDisabled = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
try {
|
try {
|
||||||
await this.getPlatform()
|
await this.getPlatform()
|
||||||
@ -100,23 +114,23 @@ export default {
|
|||||||
setSecretTypeOptions() {
|
setSecretTypeOptions() {
|
||||||
const choices = [
|
const choices = [
|
||||||
{
|
{
|
||||||
label: this.$t('assets.Password'),
|
label: this.$t('Password'),
|
||||||
value: 'password'
|
value: 'password'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('assets.SSHKey'),
|
label: this.$t('SSHKey'),
|
||||||
value: 'ssh_key'
|
value: 'ssh_key'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('assets.Token'),
|
label: this.$t('Token'),
|
||||||
value: 'token'
|
value: 'token'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('assets.AccessKey'),
|
label: this.$t('AccessKey'),
|
||||||
value: 'access_key'
|
value: 'access_key'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('assets.ApiKey'),
|
label: this.$t('ApiKey'),
|
||||||
value: 'api_key'
|
value: 'api_key'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -143,7 +157,11 @@ export default {
|
|||||||
delete form['secret']
|
delete form['secret']
|
||||||
}
|
}
|
||||||
if (this.account?.name) {
|
if (this.account?.name) {
|
||||||
this.$emit('edit', form)
|
if (this.account.payload && this.account.payload === 'pam_account_clone') {
|
||||||
|
this.$emit('add', form)
|
||||||
|
} else {
|
||||||
|
this.$emit('edit', form)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$emit('add', form)
|
this.$emit('add', form)
|
||||||
}
|
}
|
||||||
@ -152,5 +170,24 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang='scss' scoped>
|
||||||
|
.account-add {
|
||||||
|
::v-deep .el-form-item {
|
||||||
|
//margin-bottom: 5px;
|
||||||
|
|
||||||
|
.help-block {
|
||||||
|
//margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .form-group-header {
|
||||||
|
.hr-line-dashed {
|
||||||
|
//margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,35 +1,38 @@
|
|||||||
<template>
|
<template v-if="iVisible">
|
||||||
<Dialog
|
<Drawer
|
||||||
v-if="iVisible"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:destroy-on-close="true"
|
|
||||||
:show-cancel="false"
|
|
||||||
:show-confirm="false"
|
|
||||||
:title="title"
|
:title="title"
|
||||||
:visible.sync="iVisible"
|
:visible="iVisible"
|
||||||
v-bind="$attrs"
|
class="drawer"
|
||||||
v-on="$listeners"
|
@close-drawer="handleCloseDrawer"
|
||||||
>
|
>
|
||||||
<AccountCreateUpdateForm
|
<Page :title="'null'">
|
||||||
v-if="!loading"
|
<IBox class="content">
|
||||||
ref="form"
|
<AccountCreateUpdateForm
|
||||||
:account="account"
|
v-if="!loading"
|
||||||
:add-template="addTemplate"
|
ref="form"
|
||||||
:asset="asset"
|
:account="account"
|
||||||
@add="addAccount"
|
:add-template="addTemplate"
|
||||||
@edit="editAccount"
|
:asset="asset"
|
||||||
/>
|
@add="addAccount"
|
||||||
</Dialog>
|
@edit="editAccount"
|
||||||
|
/>
|
||||||
|
</IBox>
|
||||||
|
</Page>
|
||||||
|
</Drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Drawer from '@/components/Drawer/index.vue'
|
||||||
import AccountCreateUpdateForm from '@/components/Apps/AccountCreateUpdateForm/index.vue'
|
import AccountCreateUpdateForm from '@/components/Apps/AccountCreateUpdateForm/index.vue'
|
||||||
|
import IBox from '@/components/Common/IBox/index.vue'
|
||||||
|
import Page from '@/layout/components/Page/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CreateAccountDialog',
|
name: 'CreateAccountDialog',
|
||||||
components: {
|
components: {
|
||||||
Dialog,
|
IBox,
|
||||||
|
Drawer,
|
||||||
|
Page,
|
||||||
AccountCreateUpdateForm
|
AccountCreateUpdateForm
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@ -52,7 +55,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$t('assets.AddAccount')
|
return this.$t('AddAccount')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -91,7 +94,7 @@ export default {
|
|||||||
data = formValue
|
data = formValue
|
||||||
url = `/api/v1/accounts/accounts/bulk/`
|
url = `/api/v1/accounts/accounts/bulk/`
|
||||||
if (data.assets.length === 0) {
|
if (data.assets.length === 0) {
|
||||||
this.$message.error(this.$tc('assets.PleaseSelectAsset'))
|
this.$message.error(this.$tc('PleaseSelectAsset'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -110,11 +113,22 @@ export default {
|
|||||||
},
|
},
|
||||||
editAccount(form) {
|
editAccount(form) {
|
||||||
const data = { ...form }
|
const data = { ...form }
|
||||||
this.$axios.patch(`/api/v1/accounts/accounts/${this.account.id}/`, data).then(() => {
|
const flag = this.$route.query.flag
|
||||||
this.iVisible = false
|
|
||||||
this.$emit('add', true)
|
switch (flag) {
|
||||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
case 'copy':
|
||||||
}).catch(error => this.setFieldError(error))
|
this.handleAccountOperation(this.account.id, 'copy-to-assets', data)
|
||||||
|
break
|
||||||
|
case 'move':
|
||||||
|
this.handleAccountOperation(this.account.id, 'move-to-assets', data)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
this.$axios.patch(`/api/v1/accounts/accounts/${this.account.id}/`, data).then(() => {
|
||||||
|
this.iVisible = false
|
||||||
|
this.$emit('add', true)
|
||||||
|
this.$message.success(this.$tc('UpdateSuccessMsg'))
|
||||||
|
}).catch(error => this.setFieldError(error))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleResult(resp, error) {
|
handleResult(resp, error) {
|
||||||
let bulkCreate = !this.asset
|
let bulkCreate = !this.asset
|
||||||
@ -126,7 +140,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (!bulkCreate) {
|
if (!bulkCreate) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
this.$message.success(this.$tc('common.createSuccessMsg'))
|
this.$message.success(this.$tc('CreateSuccessMsg'))
|
||||||
} else {
|
} else {
|
||||||
this.setFieldError(error)
|
this.setFieldError(error)
|
||||||
}
|
}
|
||||||
@ -167,11 +181,29 @@ export default {
|
|||||||
refsAutoDataForm.setFieldError(current, err)
|
refsAutoDataForm.setFieldError(current, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleCloseDrawer() {
|
||||||
|
this.iVisible = false
|
||||||
|
// Reflect.deleteProperty(this.$route.query, 'flag')
|
||||||
|
},
|
||||||
|
handleAccountOperation(id, path, data) {
|
||||||
|
this.$axios.post(`/api/v1/accounts/accounts/${id}/${path}/`, data).then((res) => {
|
||||||
|
this.iVisible = false
|
||||||
|
this.$emit('add', true)
|
||||||
|
this.handleResult(res, null)
|
||||||
|
}).catch(error => this.handleResult(null, error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
|
.drawer {
|
||||||
|
::v-deep .el-drawer__body {
|
||||||
|
|
||||||
|
.el-form {
|
||||||
|
margin-right: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ListTable ref="ListTable" :header-actions="headerActions" :table-config="tableConfig" />
|
<DrawerListTable
|
||||||
|
ref="ListTable"
|
||||||
|
:detail-drawer="detailDrawer"
|
||||||
|
:header-actions="headerActions"
|
||||||
|
:quick-filters="quickFilters"
|
||||||
|
:table-config="tableConfig"
|
||||||
|
/>
|
||||||
<ViewSecret
|
<ViewSecret
|
||||||
v-if="showViewSecretDialog"
|
v-if="showViewSecretDialog"
|
||||||
:account="account"
|
:account="account"
|
||||||
@ -16,26 +22,18 @@
|
|||||||
<AccountCreateUpdate
|
<AccountCreateUpdate
|
||||||
v-if="showAddDialog"
|
v-if="showAddDialog"
|
||||||
:account="account"
|
:account="account"
|
||||||
|
:add-template="addTemplate"
|
||||||
:asset="iAsset"
|
:asset="iAsset"
|
||||||
:title="accountCreateUpdateTitle"
|
:title="accountCreateUpdateTitle"
|
||||||
:visible.sync="showAddDialog"
|
:visible.sync="showAddDialog"
|
||||||
@add="addAccountSuccess"
|
@add="addAccountSuccess"
|
||||||
@bulk-create-done="showBulkCreateResult($event)"
|
@bulk-create-done="showBulkCreateResult($event)"
|
||||||
/>
|
/>
|
||||||
<AccountCreateUpdate
|
|
||||||
v-if="showAddTemplateDialog"
|
|
||||||
:account="account"
|
|
||||||
:add-template="true"
|
|
||||||
:asset="iAsset"
|
|
||||||
:title="accountCreateUpdateTitle"
|
|
||||||
:visible.sync="showAddTemplateDialog"
|
|
||||||
@add="addAccountSuccess"
|
|
||||||
@bulk-create-done="showBulkCreateResult($event)"
|
|
||||||
/>
|
|
||||||
<ResultDialog
|
<ResultDialog
|
||||||
v-if="showResultDialog"
|
v-if="showResultDialog"
|
||||||
:result="createAccountResults"
|
:result="createAccountResults"
|
||||||
:visible.sync="showResultDialog"
|
:visible.sync="showResultDialog"
|
||||||
|
@close-all="closeAll"
|
||||||
/>
|
/>
|
||||||
<AccountBulkUpdateDialog
|
<AccountBulkUpdateDialog
|
||||||
v-if="updateSelectedDialogSetting.visible"
|
v-if="updateSelectedDialogSetting.visible"
|
||||||
@ -43,29 +41,42 @@
|
|||||||
v-bind="updateSelectedDialogSetting"
|
v-bind="updateSelectedDialogSetting"
|
||||||
@update="handleAccountBulkUpdate"
|
@update="handleAccountBulkUpdate"
|
||||||
/>
|
/>
|
||||||
|
<PasswordHistoryDialog
|
||||||
|
v-if="showPasswordHistoryDialog"
|
||||||
|
:account="currentAccountColumn"
|
||||||
|
:visible.sync="showPasswordHistoryDialog"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ListTable from '@/components/Table/ListTable/index.vue'
|
import { mapGetters } from 'vuex'
|
||||||
import { ActionsFormatter } from '@/components/Table/TableFormatters'
|
import { accountOtherActions, accountQuickFilters, connectivityMeta, isDirectoryServiceAccount } from './const'
|
||||||
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
import {
|
||||||
|
AccountConnectFormatter,
|
||||||
|
ActionsFormatter,
|
||||||
|
PlatformFormatter,
|
||||||
|
SecretViewerFormatter
|
||||||
|
} from '@/components/Table/TableFormatters'
|
||||||
import ViewSecret from './ViewSecret.vue'
|
import ViewSecret from './ViewSecret.vue'
|
||||||
import UpdateSecretInfo from './UpdateSecretInfo.vue'
|
import UpdateSecretInfo from './UpdateSecretInfo.vue'
|
||||||
import AccountCreateUpdate from './AccountCreateUpdate.vue'
|
|
||||||
import { connectivityMeta } from './const'
|
|
||||||
import { openTaskPage } from '@/utils/jms'
|
|
||||||
import ResultDialog from './BulkCreateResultDialog.vue'
|
import ResultDialog from './BulkCreateResultDialog.vue'
|
||||||
|
import AccountCreateUpdate from './AccountCreateUpdate.vue'
|
||||||
|
import PasswordHistoryDialog from './PasswordHistoryDialog.vue'
|
||||||
|
import DrawerListTable from '@/components/Table/DrawerListTable/index.vue'
|
||||||
import AccountBulkUpdateDialog from '@/components/Apps/AccountListTable/AccountBulkUpdateDialog.vue'
|
import AccountBulkUpdateDialog from '@/components/Apps/AccountListTable/AccountBulkUpdateDialog.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AccountListTable',
|
name: 'AccountListTable',
|
||||||
components: {
|
components: {
|
||||||
AccountBulkUpdateDialog,
|
|
||||||
ResultDialog,
|
|
||||||
ListTable,
|
|
||||||
UpdateSecretInfo,
|
|
||||||
ViewSecret,
|
ViewSecret,
|
||||||
AccountCreateUpdate
|
ResultDialog,
|
||||||
|
DrawerListTable,
|
||||||
|
UpdateSecretInfo,
|
||||||
|
AccountCreateUpdate,
|
||||||
|
PasswordHistoryDialog,
|
||||||
|
AccountBulkUpdateDialog
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
url: {
|
url: {
|
||||||
@ -88,7 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
hasClone: {
|
hasClone: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: true
|
||||||
},
|
},
|
||||||
asset: {
|
asset: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@ -118,8 +129,7 @@ export default {
|
|||||||
columnsDefault: {
|
columnsDefault: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => ([
|
default: () => ([
|
||||||
'name', 'username', 'asset', 'privileged',
|
'name', 'username', 'secret', 'asset', 'platform', 'connect'
|
||||||
'secret_type', 'is_active', 'date_updated'
|
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
headerExtraActions: {
|
headerExtraActions: {
|
||||||
@ -129,21 +139,34 @@ export default {
|
|||||||
extraQuery: {
|
extraQuery: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
|
},
|
||||||
|
showQuickFilters: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
showActions: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const vm = this
|
const vm = this
|
||||||
return {
|
return {
|
||||||
|
addTemplate: false,
|
||||||
|
isUpdateAccount: false,
|
||||||
|
currentAccountColumn: {},
|
||||||
|
showPasswordHistoryDialog: false,
|
||||||
showViewSecretDialog: false,
|
showViewSecretDialog: false,
|
||||||
showUpdateSecretDialog: false,
|
showUpdateSecretDialog: false,
|
||||||
showResultDialog: false,
|
showResultDialog: false,
|
||||||
showAddDialog: false,
|
showAddDialog: false,
|
||||||
showAddTemplateDialog: false,
|
showAddTemplateDialog: false,
|
||||||
|
detailDrawer: () => import('@/views/accounts/Account/AccountDetail/index.vue'),
|
||||||
createAccountResults: [],
|
createAccountResults: [],
|
||||||
accountCreateUpdateTitle: this.$t('assets.AddAccount'),
|
|
||||||
iAsset: this.asset,
|
iAsset: this.asset,
|
||||||
account: {},
|
account: {},
|
||||||
secretUrl: '',
|
secretUrl: '',
|
||||||
|
quickFilters: this.showQuickFilters ? accountQuickFilters(this) : [],
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: this.url,
|
url: this.url,
|
||||||
permissions: {
|
permissions: {
|
||||||
@ -152,40 +175,88 @@ export default {
|
|||||||
},
|
},
|
||||||
extraQuery: this.extraQuery,
|
extraQuery: this.extraQuery,
|
||||||
columnsExclude: ['spec_info'],
|
columnsExclude: ['spec_info'],
|
||||||
|
columnsAdd: ['secret', 'platform', 'connect'],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['name', 'username', 'actions'],
|
min: ['name', 'username', 'actions'],
|
||||||
default: this.columnsDefault
|
default: this.columnsDefault
|
||||||
},
|
},
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
name: {
|
name: {
|
||||||
formatter: function(row) {
|
minWidth: '60px',
|
||||||
const to = {
|
formatterArgs: {
|
||||||
name: 'AssetAccountDetail',
|
can: () => vm.$hasPerm('accounts.view_account'),
|
||||||
|
getRoute: ({ row }) => ({
|
||||||
|
name: 'AccountDetail',
|
||||||
params: { id: row.id }
|
params: { id: row.id }
|
||||||
}
|
}),
|
||||||
if (vm.$hasPerm('accounts.view_account')) {
|
getTitle: ({ row }) => {
|
||||||
return <router-link to={to}>{row.name}</router-link>
|
let title = row.name
|
||||||
} else {
|
if (row.ds && this.asset && this.asset.id !== row.asset.id) {
|
||||||
return <span>{row.name}</span>
|
const dsID = row.ds.id.split('-')[0]
|
||||||
|
title = `${row.name}@${dsID}`
|
||||||
|
}
|
||||||
|
return title
|
||||||
|
},
|
||||||
|
getDrawerTitle({ row }) {
|
||||||
|
return `${row.username}@${row.asset.name}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
asset: {
|
secret: {
|
||||||
label: this.$t('assets.Asset'),
|
formatter: SecretViewerFormatter,
|
||||||
formatter: function(row) {
|
width: '130px',
|
||||||
const to = {
|
formatterArgs: {
|
||||||
name: 'AssetDetail',
|
secretFrom: 'api',
|
||||||
params: { id: row.asset.id }
|
hasDownload: false,
|
||||||
|
actionLeft: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
connect: {
|
||||||
|
label: this.$t('Connect'),
|
||||||
|
width: '80px',
|
||||||
|
formatter: AccountConnectFormatter,
|
||||||
|
formatterArgs: {
|
||||||
|
asset: this.asset,
|
||||||
|
can: ({ row }) => {
|
||||||
|
return this.currentUserIsSuperAdmin
|
||||||
}
|
}
|
||||||
if (vm.$hasPerm('assets.view_asset')) {
|
}
|
||||||
return <router-link to={to}>{row.asset.name}</router-link>
|
},
|
||||||
|
ds: {
|
||||||
|
width: '100px',
|
||||||
|
formatter: (row) => {
|
||||||
|
if (row.ds && row.ds['domain_name']) {
|
||||||
|
return row.ds['domain_name']
|
||||||
} else {
|
} else {
|
||||||
return <span>{row.asset.name}</span>
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
platform: {
|
||||||
|
label: this.$t('Platform'),
|
||||||
|
width: '150px',
|
||||||
|
formatter: PlatformFormatter,
|
||||||
|
formatterArgs: {
|
||||||
|
platformAttr: 'asset.platform'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
asset: {
|
||||||
|
minWidth: '100px',
|
||||||
|
formatter: function(row) {
|
||||||
|
return row.asset.name
|
||||||
|
}
|
||||||
|
},
|
||||||
|
username: {
|
||||||
|
minWidth: '60px',
|
||||||
|
formatter: function(row) {
|
||||||
|
if (row.ds && row.ds['domain_name']) {
|
||||||
|
return `${row.username}@${row.ds['domain_name']}`
|
||||||
|
} else {
|
||||||
|
return row.username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
secret_type: {
|
secret_type: {
|
||||||
width: '100px',
|
|
||||||
formatter: function(row) {
|
formatter: function(row) {
|
||||||
return row.secret_type.label
|
return row.secret_type.label
|
||||||
}
|
}
|
||||||
@ -196,93 +267,34 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
has_secret: {
|
has_secret: {
|
||||||
width: '100px',
|
width: '120px',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
showFalse: false
|
showFalse: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
privileged: {
|
privileged: {
|
||||||
label: this.$t('assets.Privileged'),
|
|
||||||
width: '120px',
|
width: '120px',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
showText: false,
|
showText: false,
|
||||||
showFalse: false
|
showFalse: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
connectivity: connectivityMeta,
|
connectivity: connectivityMeta,
|
||||||
actions: {
|
actions: {
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
|
has: this.showActions,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
|
performDelete: ({ row }) => {
|
||||||
|
const id = row.id
|
||||||
|
const url = `/api/v1/accounts/accounts/${id}/`
|
||||||
|
return this.$axios.delete(url)
|
||||||
|
},
|
||||||
hasUpdate: false, // can set function(row, value)
|
hasUpdate: false, // can set function(row, value)
|
||||||
hasDelete: false, // can set function(row, value)
|
hasDelete: true, // can set function(row, value)
|
||||||
hasClone: this.hasClone,
|
hasClone: false,
|
||||||
moreActionsTitle: this.$t('common.More'),
|
canDelete: ({ row }) => vm.$hasPerm('accounts.delete_account') && !isDirectoryServiceAccount(row, this),
|
||||||
extraActions: [
|
moreActionsTitle: this.$t('More'),
|
||||||
{
|
extraActions: accountOtherActions(this)
|
||||||
name: 'View',
|
|
||||||
title: this.$t('common.View'),
|
|
||||||
can: this.$hasPerm('accounts.view_accountsecret'),
|
|
||||||
type: 'primary',
|
|
||||||
callback: ({ row }) => {
|
|
||||||
// debugger
|
|
||||||
vm.secretUrl = `/api/v1/accounts/account-secrets/${row.id}/`
|
|
||||||
vm.account = row
|
|
||||||
vm.showViewSecretDialog = false
|
|
||||||
setTimeout(() => {
|
|
||||||
vm.showViewSecretDialog = true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ClearSecret',
|
|
||||||
title: this.$t('common.ClearSecret'),
|
|
||||||
can: this.$hasPerm('accounts.change_account'),
|
|
||||||
type: 'primary',
|
|
||||||
callback: ({ row }) => {
|
|
||||||
this.$axios.patch(
|
|
||||||
`/api/v1/accounts/accounts/clear-secret/`,
|
|
||||||
{ account_ids: [row.id] }
|
|
||||||
).then(() => {
|
|
||||||
this.$message.success(this.$tc('common.ClearSuccessMsg'))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Test',
|
|
||||||
title: this.$t('accounts.Test'),
|
|
||||||
can: ({ row }) =>
|
|
||||||
!this.$store.getters.currentOrgIsRoot &&
|
|
||||||
this.$hasPerm('accounts.change_account') &&
|
|
||||||
row.asset['auto_config'].ansible_enabled &&
|
|
||||||
row.asset['auto_config'].ping_enabled,
|
|
||||||
callback: ({ row }) => {
|
|
||||||
this.$axios.post(
|
|
||||||
`/api/v1/accounts/accounts/tasks/`,
|
|
||||||
{ action: 'verify', accounts: [row.id] }
|
|
||||||
).then(res => {
|
|
||||||
openTaskPage(res['task'])
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Update',
|
|
||||||
title: this.$t('common.Update'),
|
|
||||||
can: this.$hasPerm('accounts.change_account') && !this.$store.getters.currentOrgIsRoot,
|
|
||||||
callback: ({ row }) => {
|
|
||||||
const data = {
|
|
||||||
...this.asset,
|
|
||||||
...row.asset
|
|
||||||
}
|
|
||||||
vm.account = row
|
|
||||||
vm.iAsset = data
|
|
||||||
vm.showAddDialog = false
|
|
||||||
vm.accountCreateUpdateTitle = this.$t('assets.UpdateAccount')
|
|
||||||
setTimeout(() => {
|
|
||||||
vm.showAddDialog = true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...this.columnsMeta
|
...this.columnsMeta
|
||||||
@ -295,17 +307,10 @@ export default {
|
|||||||
hasCreate: false,
|
hasCreate: false,
|
||||||
hasImport: this.hasImport,
|
hasImport: this.hasImport,
|
||||||
hasExport: this.hasExport && this.$hasPerm('accounts.view_accountsecret'),
|
hasExport: this.hasExport && this.$hasPerm('accounts.view_accountsecret'),
|
||||||
handleImportClick: ({ selectedRows }) => {
|
|
||||||
this.$eventBus.$emit('showImportDialog', {
|
|
||||||
selectedRows,
|
|
||||||
url: '/api/v1/accounts/accounts/',
|
|
||||||
name: this?.name
|
|
||||||
})
|
|
||||||
},
|
|
||||||
exportOptions: {
|
exportOptions: {
|
||||||
url: this.exportUrl,
|
url: this.exportUrl,
|
||||||
mfaVerifyRequired: true,
|
mfaVerifyRequired: true,
|
||||||
tips: this.$t('accounts.AccountExportTips')
|
tips: this.$t('AccountExportTips')
|
||||||
},
|
},
|
||||||
importOptions: {
|
importOptions: {
|
||||||
canImportCreate: this.$hasPerm('accounts.add_account'),
|
canImportCreate: this.$hasPerm('accounts.add_account'),
|
||||||
@ -314,35 +319,35 @@ export default {
|
|||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'add',
|
name: 'add',
|
||||||
title: this.$t('common.Add'),
|
title: this.$t('Create'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
icon: 'plus',
|
||||||
can: () => {
|
can: () => {
|
||||||
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
return vm.$hasPerm('accounts.add_account') && !vm.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callback: async() => {
|
callback: () => {
|
||||||
await this.getAssetDetail()
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.iAsset = this.asset
|
vm.iAsset = this.asset
|
||||||
vm.account = {}
|
vm.account = {}
|
||||||
vm.accountCreateUpdateTitle = this.$t('assets.AddAccount')
|
this.addTemplate = false
|
||||||
vm.showAddDialog = true
|
this.showAddDialog = true
|
||||||
})
|
}, 200)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'add-template',
|
name: 'add-template',
|
||||||
title: this.$t('common.TemplateAdd'),
|
title: this.$t('TemplateAdd'),
|
||||||
has: !(this.platform || this.asset),
|
has: !(this.platform || this.asset),
|
||||||
can: () => {
|
can: () => {
|
||||||
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
return vm.$hasPerm('accounts.add_account') && !vm.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callback: async() => {
|
callback: async() => {
|
||||||
await this.getAssetDetail()
|
await this.getAssetDetail()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.iAsset = this.asset
|
vm.iAsset = this.asset
|
||||||
vm.account = {}
|
vm.account = {}
|
||||||
vm.accountCreateUpdateTitle = this.$t('assets.AddAccount')
|
vm.showAddDialog = true
|
||||||
vm.showAddTemplateDialog = true
|
vm.addTemplate = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -350,14 +355,14 @@ export default {
|
|||||||
],
|
],
|
||||||
extraMoreActions: [
|
extraMoreActions: [
|
||||||
{
|
{
|
||||||
name: 'BulkVerify',
|
name: 'TestSelected',
|
||||||
title: this.$t('accounts.BulkVerify'),
|
title: this.$t('TestSelected'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
fa: 'fa-link',
|
icon: 'verify',
|
||||||
can: ({ selectedRows }) => {
|
can: ({ selectedRows }) => {
|
||||||
return selectedRows.length > 0 &&
|
return selectedRows.length > 0 &&
|
||||||
['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1 &&
|
['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1 &&
|
||||||
!this.$store.getters.currentOrgIsRoot
|
!this.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callback: function({ selectedRows }) {
|
callback: function({ selectedRows }) {
|
||||||
const ids = selectedRows.map(v => {
|
const ids = selectedRows.map(v => {
|
||||||
@ -368,15 +373,15 @@ export default {
|
|||||||
{ action: 'verify', accounts: ids }).then(res => {
|
{ action: 'verify', accounts: ids }).then(res => {
|
||||||
openTaskPage(res['task'])
|
openTaskPage(res['task'])
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$message.error(this.$tc('common.bulkVerifyErrorMsg' + ' ' + err))
|
this.$message.error(this.$tc('BulkVerifyErrorMsg' + ' ' + err))
|
||||||
})
|
})
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ClearSecrets',
|
name: 'BatchClearSecret',
|
||||||
title: this.$t('common.ClearSecret'),
|
title: this.$t('ClearSecret'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
fa: 'clean',
|
icon: 'clean',
|
||||||
can: ({ selectedRows }) => {
|
can: ({ selectedRows }) => {
|
||||||
return selectedRows.length > 0 && vm.$hasPerm('accounts.change_account')
|
return selectedRows.length > 0 && vm.$hasPerm('accounts.change_account')
|
||||||
},
|
},
|
||||||
@ -387,16 +392,16 @@ export default {
|
|||||||
this.$axios.patch(
|
this.$axios.patch(
|
||||||
'/api/v1/accounts/accounts/clear-secret/',
|
'/api/v1/accounts/accounts/clear-secret/',
|
||||||
{ account_ids: ids }).then(() => {
|
{ account_ids: ids }).then(() => {
|
||||||
this.$message.success(this.$tc('common.ClearSuccessMsg'))
|
this.$message.success(this.$tc('ClearSuccessMsg'))
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$message.error(this.$tc('common.bulkClearErrorMsg' + ' ' + err))
|
this.$message.error(this.$tc('ClearErrorMsg' + ' ' + err))
|
||||||
})
|
})
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'actionUpdateSelected',
|
name: 'UpdateSelected',
|
||||||
title: this.$t('accounts.AccountBatchUpdate'),
|
title: this.$t('UpdateSelected'),
|
||||||
fa: 'batch-update',
|
icon: 'batch-update',
|
||||||
can: ({ selectedRows }) => {
|
can: ({ selectedRows }) => {
|
||||||
return selectedRows.length > 0 &&
|
return selectedRows.length > 0 &&
|
||||||
!this.$store.getters.currentOrgIsRoot &&
|
!this.$store.getters.currentOrgIsRoot &&
|
||||||
@ -422,6 +427,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['currentUserIsSuperAdmin']),
|
||||||
|
accountCreateUpdateTitle() {
|
||||||
|
if (this.addTemplate) {
|
||||||
|
return this.$t('AddAccountByTemplate')
|
||||||
|
} else if (this.isUpdateAccount) {
|
||||||
|
return this.$t('UpdateAccount')
|
||||||
|
} else {
|
||||||
|
return this.$t('AddAccount')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
url(iNew) {
|
url(iNew) {
|
||||||
this.$set(this.tableConfig, 'url', iNew)
|
this.$set(this.tableConfig, 'url', iNew)
|
||||||
@ -429,46 +446,35 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.columns.length > 0) {
|
this.setActions()
|
||||||
this.tableConfig.columns = this.columns
|
},
|
||||||
}
|
activated() {
|
||||||
if (this.otherActions) {
|
// 由于组件嵌套较深,有可能导致 Error in activated hook: "TypeError: Cannot read properties of undefined (reading 'getList')" 的问题
|
||||||
const actionColumn = this.tableConfig.columns[this.tableConfig.columns.length - 1]
|
if (this.tabDeactivated) {
|
||||||
for (const item of this.otherActions) {
|
setTimeout(() => this.refresh(), 300)
|
||||||
actionColumn.formatterArgs.extraActions.push(item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (this.hasDeleteAction) {
|
|
||||||
this.tableConfig.columnsMeta.actions.formatterArgs.extraActions.push(
|
|
||||||
{
|
|
||||||
name: 'Delete',
|
|
||||||
title: this.$t('common.Delete'),
|
|
||||||
can: this.$hasPerm('accounts.delete_account'),
|
|
||||||
type: 'primary',
|
|
||||||
callback: ({ row }) => {
|
|
||||||
const msg = this.$t('accounts.AccountDeleteConfirmMsg')
|
|
||||||
this.$confirm(msg, this.$tc('common.Info'), {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
if (action !== 'confirm') return done()
|
|
||||||
this.$axios.delete(`/api/v1/accounts/accounts/${row.id}/`).then(() => {
|
|
||||||
done()
|
|
||||||
this.$refs.ListTable.reloadTable()
|
|
||||||
this.$message.success(this.$tc('common.deleteSuccessMsg'))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
deactivated() {
|
||||||
|
this.tabDeactivated = true
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
setActions() {
|
||||||
|
if (this.columns.length > 0) {
|
||||||
|
this.tableConfig.columns = this.columns
|
||||||
|
}
|
||||||
|
if (this.otherActions) {
|
||||||
|
const actionColumn = this.tableConfig.columns[this.tableConfig.columns.length - 1]
|
||||||
|
for (const item of this.otherActions) {
|
||||||
|
actionColumn.formatterArgs.extraActions.push(item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
onUpdateAuthDone(account) {
|
onUpdateAuthDone(account) {
|
||||||
Object.assign(this.account, account)
|
Object.assign(this.account, account)
|
||||||
},
|
},
|
||||||
addAccountSuccess() {
|
addAccountSuccess() {
|
||||||
|
// Reflect.deleteProperty(this.$route.query, 'flag')
|
||||||
|
this.isUpdateAccount = false
|
||||||
this.$refs.ListTable.reloadTable()
|
this.$refs.ListTable.reloadTable()
|
||||||
},
|
},
|
||||||
async getAssetDetail() {
|
async getAssetDetail() {
|
||||||
@ -481,21 +487,33 @@ export default {
|
|||||||
this.$refs.ListTable.reloadTable()
|
this.$refs.ListTable.reloadTable()
|
||||||
},
|
},
|
||||||
showBulkCreateResult(results) {
|
showBulkCreateResult(results) {
|
||||||
this.showResultDialog = false
|
|
||||||
this.createAccountResults = results
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.showResultDialog = true
|
this.showResultDialog = true
|
||||||
}, 100)
|
this.createAccountResults = results
|
||||||
|
}, 350)
|
||||||
},
|
},
|
||||||
handleAccountBulkUpdate() {
|
handleAccountBulkUpdate() {
|
||||||
this.updateSelectedDialogSetting.visible = false
|
this.updateSelectedDialogSetting.visible = false
|
||||||
this.$refs.ListTable.reloadTable()
|
this.$refs.ListTable.reloadTable()
|
||||||
|
},
|
||||||
|
closeAll() {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.showResultDialog = false
|
||||||
|
}, 350)
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.showAddDialog = false
|
||||||
|
}, 800)
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.refresh()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss' scoped>
|
<style lang="scss" scoped>
|
||||||
.cell a {
|
.cell a {
|
||||||
color: var(--color-info);
|
color: var(--color-info);
|
||||||
}
|
}
|
||||||
|
@ -30,11 +30,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const errorProp = this.$t('common.Error')
|
const errorProp = this.$t('Error')
|
||||||
const stateMap = {
|
const stateMap = {
|
||||||
'created': this.$tc('common.Created'),
|
'created': this.$tc('Created'),
|
||||||
'updated': this.$tc('common.Updated'),
|
'updated': this.$tc('Updated'),
|
||||||
'skipped': this.$tc('common.Skipped')
|
'skipped': this.$tc('Skipped')
|
||||||
}
|
}
|
||||||
const stateClsMap = {
|
const stateClsMap = {
|
||||||
'created': 'color-primary',
|
'created': 'color-primary',
|
||||||
@ -42,16 +42,16 @@ export default {
|
|||||||
'skipped': 'color-default'
|
'skipped': 'color-default'
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
title: this.$t('accounts.AddAccountResult'),
|
title: this.$t('AddAccountResult'),
|
||||||
config: {
|
config: {
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
prop: 'asset',
|
prop: 'asset',
|
||||||
label: this.$t('assets.Asset')
|
label: this.$t('Asset')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'state',
|
prop: 'state',
|
||||||
label: this.$t('common.Status'),
|
label: this.$t('Status'),
|
||||||
width: '200px',
|
width: '200px',
|
||||||
formatter: (row) => {
|
formatter: (row) => {
|
||||||
if (row.error) {
|
if (row.error) {
|
||||||
@ -71,11 +71,11 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
summary() {
|
summary() {
|
||||||
const labels = {
|
const labels = {
|
||||||
total: this.$tc('common.Total'),
|
total: this.$tc('Total'),
|
||||||
created: this.$tc('common.Created'),
|
created: this.$tc('Created'),
|
||||||
updated: this.$tc('common.Updated'),
|
updated: this.$tc('Updated'),
|
||||||
skipped: this.$tc('common.Skipped'),
|
skipped: this.$tc('Skipped'),
|
||||||
error: this.$tc('common.Error')
|
error: this.$tc('Error')
|
||||||
}
|
}
|
||||||
const grouped = _.groupBy(this.result, 'state')
|
const grouped = _.groupBy(this.result, 'state')
|
||||||
const groupedLength = _.mapValues(grouped, 'length')
|
const groupedLength = _.mapValues(grouped, 'length')
|
||||||
@ -91,7 +91,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeDialog() {
|
closeDialog() {
|
||||||
this.$emit('update:visible', false)
|
this.$emit('close-all')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { GenericListTableDialog } from '@/layout/components'
|
import { GenericListTableDialog } from '@/layout/components'
|
||||||
import { ShowKeyCopyFormatter } from '@/components/Table/TableFormatters'
|
import { SecretViewerFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -23,7 +23,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config: {
|
config: {
|
||||||
title: this.$t('accounts.HistoryPassword'),
|
title: this.$t('HistoryPassword'),
|
||||||
visible: false,
|
visible: false,
|
||||||
width: '60%',
|
width: '60%',
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
@ -32,15 +32,15 @@ export default {
|
|||||||
columns: ['secret', 'version', 'history_date'],
|
columns: ['secret', 'version', 'history_date'],
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
secret: {
|
secret: {
|
||||||
label: this.$t('assets.Password'),
|
label: this.$t('Password'),
|
||||||
formatter: ShowKeyCopyFormatter,
|
formatter: SecretViewerFormatter,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasDownload: false,
|
hasDownload: false,
|
||||||
name: this.account.name
|
name: this.account.name
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
history_date: {
|
history_date: {
|
||||||
label: this.$t('accounts.HistoryDate')
|
label: this.$t('HistoryDate')
|
||||||
},
|
},
|
||||||
secret_type: {
|
secret_type: {
|
||||||
width: '200px'
|
width: '200px'
|
||||||
|
@ -65,7 +65,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.item-textarea > > > .el-textarea__inner {
|
.item-textarea ::v-deep .el-textarea__inner {
|
||||||
height: 110px;
|
height: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,12 +78,12 @@ export default {
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
> > > .el-form-item__label {
|
::v-deep .el-form-item__label {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
> > > .el-form-item__content {
|
::v-deep .el-form-item__content {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
@ -1,44 +1,36 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog
|
<Dialog
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
:title="$tc('assets.UpdateAssetUserToken')"
|
:show-buttons="false"
|
||||||
:visible.sync="visible"
|
:title="$tc('UpdateAssetUserToken')"
|
||||||
width="50"
|
:visible.sync="iVisible"
|
||||||
@cancel="handleCancel()"
|
width="800px"
|
||||||
@confirm="handleConfirm()"
|
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<el-form label-position="right" label-width="90px">
|
<AutoDataForm
|
||||||
<el-form-item :label="$tc('assets.Name')">
|
:fields="fields"
|
||||||
<el-input v-model="account['asset_name']" readonly />
|
:fields-meta="fieldsMeta"
|
||||||
</el-form-item>
|
:form="init"
|
||||||
<el-form-item :label="$tc('assets.Username')">
|
:has-reset="false"
|
||||||
<el-input v-model="account['username']" readonly />
|
:has-save-continue="false"
|
||||||
</el-form-item>
|
:url="''"
|
||||||
<el-form-item :label="$tc('assets.Password')">
|
method="patch"
|
||||||
<UpdateToken v-model="authInfo.password" />
|
@submit="handleConfirm"
|
||||||
</el-form-item>
|
/>
|
||||||
<el-form-item :label="$tc('assets.SSHSecretKey')">
|
|
||||||
<UploadKey @input="getFile" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$tc('assets.Passphrase')">
|
|
||||||
<UpdateToken v-model="authInfo.passphrase" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import { UpdateToken, UploadKey } from '@/components/Form/FormFields'
|
import { accountFieldsMeta } from '@/components/Apps/AccountCreateUpdateForm/const'
|
||||||
import { encryptPassword } from '@/utils/crypto'
|
import { encryptPassword } from '@/utils/crypto'
|
||||||
|
import AutoDataForm from '@/components/Form/AutoDataForm/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UpdateSecretInfo',
|
name: 'UpdateSecretInfo',
|
||||||
components: {
|
components: {
|
||||||
Dialog,
|
AutoDataForm,
|
||||||
UploadKey,
|
Dialog
|
||||||
UpdateToken
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
account: {
|
account: {
|
||||||
@ -51,49 +43,59 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
const accountMeta = accountFieldsMeta(this)
|
||||||
return {
|
return {
|
||||||
secretInfo: {
|
fields: [
|
||||||
password: '',
|
'name', 'secret_type', 'password', 'ssh_key', 'token',
|
||||||
private_key: '',
|
'access_key', 'passphrase', 'api_key'
|
||||||
passphrase: ''
|
],
|
||||||
|
fieldsMeta: {
|
||||||
|
...accountMeta,
|
||||||
|
name: {
|
||||||
|
...accountMeta.name,
|
||||||
|
readonly: true
|
||||||
|
},
|
||||||
|
secret_type: {
|
||||||
|
hidden: () => true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
init: {
|
||||||
|
...this.account
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
iVisible: {
|
||||||
|
get() {
|
||||||
|
return this.visible
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.$emit('update:visible', val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleConfirm() {
|
handleConfirm(form) {
|
||||||
const data = {}
|
const secretType = this.account.secret_type.value
|
||||||
if (this.secretInfo.password !== '') {
|
const data = {
|
||||||
data.password = encryptPassword(this.secretInfo.password)
|
secret: encryptPassword(form[secretType])
|
||||||
}
|
|
||||||
if (this.secretInfo.private_key !== '') {
|
|
||||||
data.private_key = encryptPassword(this.secretInfo.private_key)
|
|
||||||
if (this.secretInfo.passphrase) data.passphrase = this.secretInfo.passphrase
|
|
||||||
}
|
}
|
||||||
this.$axios.patch(
|
this.$axios.patch(
|
||||||
`/api/v1/accounts/accounts/${this.account.id}/`,
|
`/api/v1/accounts/accounts/${this.account.id}/`,
|
||||||
data,
|
data,
|
||||||
{ disableFlashErrorMsg: true }
|
{ disableFlashErrorMsg: true }
|
||||||
).then(res => {
|
).then(res => {
|
||||||
this.authInfo = { password: '', private_key: '' }
|
this.$message.success(this.$tc('UpdateSuccessMsg'))
|
||||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
this.iVisible = false
|
||||||
this.$emit('updateAuthDone', res)
|
|
||||||
this.$emit('update:visible', false)
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
const errMsg = Object.values(err.response.data).join(', ')
|
const errMsg = Object.values(err.response.data).join(', ')
|
||||||
this.$message.error(this.$tc('common.updateErrorMsg') + ' ' + errMsg)
|
this.$message.error(this.$tc('UpdateErrorMsg') + ' ' + errMsg)
|
||||||
this.$emit('update:visible', true)
|
this.iVisible = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.$emit('update:visible', false)
|
this.$emit('update:visible', false)
|
||||||
},
|
|
||||||
getFile(file) {
|
|
||||||
this.secretInfo.private_key = file
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -10,15 +10,15 @@
|
|||||||
@confirm="accountConfirmHandle"
|
@confirm="accountConfirmHandle"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<el-form :model="secretInfo" class="password-form" label-position="right" label-width="100px">
|
<el-form :model="secretInfo" class="password-form" label-position="right" label-width="130px">
|
||||||
<el-form-item :label="$tc('assets.Name')">
|
<el-form-item :label="$tc('Name')">
|
||||||
<span>{{ account['name'] }}</span>
|
<span>{{ account['name'] }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$tc('assets.Username')">
|
<el-form-item :label="$tc('Username')">
|
||||||
<span>{{ account['username'] }}</span>
|
<span>{{ account['username'] }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="secretTypeLabel">
|
<el-form-item :label="secretTypeLabel">
|
||||||
<ShowKeyCopyFormatter
|
<SecretViewerFormatter
|
||||||
:cell-value="secretInfo.secret"
|
:cell-value="secretInfo.secret"
|
||||||
:col="{ formatterArgs: {
|
:col="{ formatterArgs: {
|
||||||
name: account['name'],
|
name: account['name'],
|
||||||
@ -27,16 +27,16 @@
|
|||||||
@input="onShowKeyCopyFormatterChange"
|
@input="onShowKeyCopyFormatterChange"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="secretType === 'ssh_key'" :label="$tc('assets.sshKeyFingerprint')">
|
<el-form-item v-if="secretType === 'ssh_key'" :label="$tc('SshKeyFingerprint')">
|
||||||
<span>{{ sshKeyFingerprint }}</span>
|
<span>{{ sshKeyFingerprint }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$tc('common.DateCreated')">
|
<el-form-item :label="$tc('DateCreated')">
|
||||||
<span>{{ account['date_created'] | date }}</span>
|
<span>{{ account['date_created'] | date }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$tc('common.DateUpdated')">
|
<el-form-item :label="$tc('DateUpdated')">
|
||||||
<span>{{ account['date_updated'] | date }}</span>
|
<span>{{ account['date_updated'] | date }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="showPasswordRecord" v-perms="'accounts.view_accountsecret'" :label="$tc('accounts.PasswordRecord')">
|
<el-form-item v-if="showPasswordRecord" v-perms="'accounts.view_accountsecret'" :label="$tc('PasswordRecord')">
|
||||||
<el-link
|
<el-link
|
||||||
:underline="false"
|
:underline="false"
|
||||||
type="success"
|
type="success"
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import PasswordHistoryDialog from './PasswordHistoryDialog.vue'
|
import PasswordHistoryDialog from './PasswordHistoryDialog.vue'
|
||||||
import { ShowKeyCopyFormatter } from '@/components/Table/TableFormatters'
|
import { SecretViewerFormatter } from '@/components/Table/TableFormatters'
|
||||||
import { encryptPassword } from '@/utils/crypto'
|
import { encryptPassword } from '@/utils/crypto'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -68,7 +68,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
Dialog,
|
Dialog,
|
||||||
PasswordHistoryDialog,
|
PasswordHistoryDialog,
|
||||||
ShowKeyCopyFormatter
|
SecretViewerFormatter
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
account: {
|
account: {
|
||||||
@ -90,7 +90,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$tc('assets.AccountDetail')
|
return this.$tc('Detail')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showPasswordRecord: {
|
showPasswordRecord: {
|
||||||
@ -142,7 +142,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const url = this.type === 'account' ? `/api/v1/accounts/accounts` : `/api/v1/accounts/account-templates`
|
const url = this.type === 'account' ? `/api/v1/accounts/accounts` : `/api/v1/accounts/account-templates`
|
||||||
this.$axios.patch(`${url}/${this.account.id}/`, params).then(() => {
|
this.$axios.patch(`${url}/${this.account.id}/`, params).then(() => {
|
||||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
this.$message.success(this.$tc('UpdateSuccessMsg'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
showSecretDialog() {
|
showSecretDialog() {
|
||||||
@ -167,7 +167,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.item-textarea >>> .el-textarea__inner {
|
.item-textarea ::v-deep .el-textarea__inner {
|
||||||
height: 110px;
|
height: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,12 +180,18 @@ export default {
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
>>> .el-form-item__label {
|
::v-deep .el-form-item__label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
word-break: keep-all;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
>>> .el-form-item__content {
|
::v-deep .el-form-item__content {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
@ -1,18 +1,29 @@
|
|||||||
import i18n from '@/i18n/i18n'
|
|
||||||
import { ChoicesFormatter } from '@/components/Table/TableFormatters'
|
import { ChoicesFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
|
||||||
export const connectivityMeta = {
|
export const connectivityMeta = {
|
||||||
label: i18n.t('assets.Connectivity'),
|
|
||||||
formatter: ChoicesFormatter,
|
formatter: ChoicesFormatter,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
faChoices: {
|
faChoices: {
|
||||||
'-': '',
|
'-': '',
|
||||||
ok: 'fa-check-circle',
|
ok: 'fa-check-circle',
|
||||||
err: 'fa-times-circle'
|
err: 'fa-times-circle',
|
||||||
|
auth_err: 'fa-times-circle',
|
||||||
|
rdp_err: 'fa-times-circle',
|
||||||
|
password_err: 'fa-times-circle',
|
||||||
|
openssh_key_err: 'fa-times-circle',
|
||||||
|
ntlm_err: 'fa-times-circle',
|
||||||
|
create_temp_err: 'fa-times-circle'
|
||||||
},
|
},
|
||||||
classChoices: {
|
classChoices: {
|
||||||
ok: 'text-primary',
|
ok: 'text-primary',
|
||||||
err: 'text-danger'
|
err: 'text-danger',
|
||||||
|
auth_err: 'text-danger',
|
||||||
|
rdp_err: 'text-danger',
|
||||||
|
password_err: 'text-danger',
|
||||||
|
openssh_key_err: 'text-danger',
|
||||||
|
ntlm_err: 'text-danger',
|
||||||
|
create_temp_err: 'text-danger'
|
||||||
},
|
},
|
||||||
getText({ cellValue }) {
|
getText({ cellValue }) {
|
||||||
if (cellValue?.value === '-' || cellValue?.value === 'unknown') {
|
if (cellValue?.value === '-' || cellValue?.value === 'unknown') {
|
||||||
@ -22,5 +33,311 @@ export const connectivityMeta = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
width: '100px'
|
width: '130px'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function isDirectoryServiceAccount(account, vm) {
|
||||||
|
return vm.asset && vm.asset.id !== account.asset.id
|
||||||
|
}
|
||||||
|
|
||||||
|
export const accountOtherActions = (vm) => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
name: 'View',
|
||||||
|
title: vm.$t('View'),
|
||||||
|
can: vm.$hasPerm('accounts.view_accountsecret'),
|
||||||
|
type: 'primary',
|
||||||
|
order: 1,
|
||||||
|
callback: ({ row }) => {
|
||||||
|
// debugger
|
||||||
|
vm.secretUrl = `/api/v1/accounts/account-secrets/${row.id}/`
|
||||||
|
vm.account = row
|
||||||
|
vm.showViewSecretDialog = false
|
||||||
|
setTimeout(() => {
|
||||||
|
vm.showViewSecretDialog = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Update',
|
||||||
|
title: vm.$t('Edit'),
|
||||||
|
can: ({ row }) => {
|
||||||
|
return vm.$hasPerm('accounts.change_account') &&
|
||||||
|
!vm.$store.getters.currentOrgIsRoot &&
|
||||||
|
!isDirectoryServiceAccount(row, vm)
|
||||||
|
},
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.isUpdateAccount = true
|
||||||
|
const data = {
|
||||||
|
...vm.asset,
|
||||||
|
...row.asset
|
||||||
|
}
|
||||||
|
vm.iAsset = data
|
||||||
|
vm.account = row
|
||||||
|
vm.addTemplate = false
|
||||||
|
vm.showAddDialog = false
|
||||||
|
setTimeout(() => {
|
||||||
|
vm.showAddDialog = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'UpdateSecret',
|
||||||
|
title: vm.$t('EditSecret'),
|
||||||
|
can: ({ row }) => {
|
||||||
|
return vm.$hasPerm('accounts.change_account') &&
|
||||||
|
!vm.$store.getters.currentOrgIsRoot &&
|
||||||
|
!isDirectoryServiceAccount(row, vm)
|
||||||
|
},
|
||||||
|
callback: ({ row }) => {
|
||||||
|
const data = {
|
||||||
|
...vm.asset,
|
||||||
|
...row.asset
|
||||||
|
}
|
||||||
|
vm.account = row
|
||||||
|
vm.iAsset = data
|
||||||
|
vm.showUpdateSecretDialog = false
|
||||||
|
vm.accountCreateUpdateTitle = vm.$t('UpdateAccount')
|
||||||
|
setTimeout(() => {
|
||||||
|
vm.showUpdateSecretDialog = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Clone',
|
||||||
|
title: vm.$t('Duplicate'),
|
||||||
|
has: () => {
|
||||||
|
return !vm.asset
|
||||||
|
},
|
||||||
|
can: ({ row }) => {
|
||||||
|
return vm.$hasPerm('accounts.add_account') &&
|
||||||
|
!vm.$store.getters.currentOrgIsRoot &&
|
||||||
|
!isDirectoryServiceAccount(row, vm)
|
||||||
|
},
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.account = {
|
||||||
|
name: `${row.name} - ${vm.$t('Duplicate').toLowerCase()}`,
|
||||||
|
username: `${row.username} - ${vm.$t('Duplicate').toLowerCase()}`,
|
||||||
|
payload: 'pam_account_clone'
|
||||||
|
}
|
||||||
|
vm.iAsset = vm.asset
|
||||||
|
|
||||||
|
vm.showAddDialog = false
|
||||||
|
setTimeout(() => {
|
||||||
|
vm.showAddDialog = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Test',
|
||||||
|
title: vm.$t('VerifySecret'),
|
||||||
|
divided: true,
|
||||||
|
can: ({ row }) =>
|
||||||
|
!vm.$store.getters.currentOrgIsRoot &&
|
||||||
|
vm.$hasPerm('accounts.verify_account') &&
|
||||||
|
row.asset['auto_config'].ansible_enabled &&
|
||||||
|
row.asset['auto_config'].ping_enabled,
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.$axios.post(
|
||||||
|
`/api/v1/accounts/accounts/tasks/`,
|
||||||
|
{ action: 'verify', accounts: [row.id] }
|
||||||
|
).then(res => {
|
||||||
|
openTaskPage(res['task'])
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'ClearSecret',
|
||||||
|
title: vm.$t('ClearSecret'),
|
||||||
|
can: ({ row }) => {
|
||||||
|
return vm.$hasPerm('accounts.change_account') &&
|
||||||
|
!isDirectoryServiceAccount(row, vm)
|
||||||
|
},
|
||||||
|
type: 'primary',
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.$axios.patch(
|
||||||
|
`/api/v1/accounts/accounts/clear-secret/`,
|
||||||
|
{ account_ids: [row.id] }
|
||||||
|
).then(() => {
|
||||||
|
vm.$message.success(vm.$tc('ClearSuccessMsg'))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'SecretHistory',
|
||||||
|
title: vm.$t('HistoryPassword'),
|
||||||
|
can: () => vm.$hasPerm('accounts.view_accountsecret'),
|
||||||
|
type: 'primary',
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.account = row
|
||||||
|
vm.currentAccountColumn = row
|
||||||
|
vm.showViewSecretDialog = false
|
||||||
|
vm.secretUrl = `/api/v1/accounts/account-secrets/${row.id}/`
|
||||||
|
setTimeout(() => {
|
||||||
|
vm.showViewSecretDialog = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'CopyToOther',
|
||||||
|
title: vm.$t('CopyToAsset'),
|
||||||
|
type: 'primary',
|
||||||
|
divided: true,
|
||||||
|
can: ({ row }) => {
|
||||||
|
return vm.$hasPerm('accounts.add_account') &&
|
||||||
|
!vm.$store.getters.currentOrgIsRoot &&
|
||||||
|
!isDirectoryServiceAccount(row, vm)
|
||||||
|
},
|
||||||
|
has: () => {
|
||||||
|
return !vm.asset
|
||||||
|
},
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.accountCreateUpdateTitle = vm.$t('CopyToOther')
|
||||||
|
vm.$route.query.flag = 'copy'
|
||||||
|
vm.iAsset = vm.asset
|
||||||
|
vm.account = row
|
||||||
|
vm.showAddDialog = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'MoveToOther',
|
||||||
|
title: vm.$t('MoveToAsset'),
|
||||||
|
type: 'primary',
|
||||||
|
can: ({ row }) => {
|
||||||
|
return vm.$hasPerm('accounts.add_account') &&
|
||||||
|
!vm.$store.getters.currentOrgIsRoot &&
|
||||||
|
!isDirectoryServiceAccount(row, vm)
|
||||||
|
},
|
||||||
|
has: () => {
|
||||||
|
return !vm.asset
|
||||||
|
},
|
||||||
|
callback: ({ row }) => {
|
||||||
|
vm.accountCreateUpdateTitle = vm.$t('MoveToOther')
|
||||||
|
vm.$route.query.flag = 'move'
|
||||||
|
vm.iAsset = vm.asset
|
||||||
|
vm.account = row
|
||||||
|
vm.showAddDialog = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
export const accountQuickFilters = (vm) => [
|
||||||
|
{
|
||||||
|
label: vm.$t('Recent (7 days)'),
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
label: vm.$t('RecentlyDiscovered'),
|
||||||
|
filter: {
|
||||||
|
latest_discovery: '1'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('RecentlyLoggedIn'),
|
||||||
|
filter: {
|
||||||
|
latest_accessed: '1'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('RecentlyModified'),
|
||||||
|
filter: {
|
||||||
|
latest_updated: '1'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('RecentlyChangedPassword'),
|
||||||
|
filter: {
|
||||||
|
latest_secret_changed: '1'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('RecentPasswordChangeFailed'),
|
||||||
|
filter: {
|
||||||
|
latest_secret_change_failed: '1'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('RiskyAccount'),
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
label: vm.$t('NoLoginLongTime'),
|
||||||
|
filter: {
|
||||||
|
long_time_no_login: 'true'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('AddAccount'),
|
||||||
|
filter: {
|
||||||
|
risk: 'new_found'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('WeakPassword'),
|
||||||
|
filter: {
|
||||||
|
risk: 'weak_password'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('EmptyPassword'),
|
||||||
|
filter: {
|
||||||
|
has_secret: 'false'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('LongTimePassword'),
|
||||||
|
filter: {
|
||||||
|
long_time_no_change_secret: 'true'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('AccountType'),
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
label: vm.$t('All'),
|
||||||
|
filter: {
|
||||||
|
category: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('Host'),
|
||||||
|
filter: {
|
||||||
|
category: 'host'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('Database'),
|
||||||
|
filter: {
|
||||||
|
category: 'database'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('Cloud'),
|
||||||
|
filter: {
|
||||||
|
category: 'cloud'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('Device'),
|
||||||
|
filter: {
|
||||||
|
category: 'device'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Web',
|
||||||
|
filter: {
|
||||||
|
category: 'web'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('Other'),
|
||||||
|
filter: {
|
||||||
|
category: 'custom'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<el-button :disabled="disabled" :type="type" size="small" @click="addObjects">{{ $t('common.Add') }}</el-button>
|
<el-button :disabled="disabled" :type="type" size="small" @click="addObjects">{{ $t('Add') }}</el-button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import IBox from '@/components/IBox/index.vue'
|
import IBox from '@/components/Common/IBox/index.vue'
|
||||||
import AssetSelect from '@/components/Apps/AssetSelect/index.vue'
|
import AssetSelect from '@/components/Apps/AssetSelect/index.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -48,11 +48,13 @@ export default {
|
|||||||
},
|
},
|
||||||
performAdd: {
|
performAdd: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: (objects, that) => {}
|
default: (objects, that) => {
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onAddSuccess: {
|
onAddSuccess: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: (objects, that) => {}
|
default: (objects, that) => {
|
||||||
|
}
|
||||||
},
|
},
|
||||||
canSelect: {
|
canSelect: {
|
||||||
type: Function,
|
type: Function,
|
||||||
@ -62,8 +64,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addObjects() {
|
addObjects() {
|
||||||
@ -77,18 +78,18 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
b, strong {
|
b, strong {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr td {
|
tr td {
|
||||||
line-height: 1.42857;
|
line-height: 1.42857;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.item td {
|
tr.item td {
|
||||||
border-top: 1px solid #e7eaec;
|
border-top: 1px solid #e7eaec;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog
|
<Dialog
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:title="$tc('assets.Assets')"
|
:title="$tc('Assets')"
|
||||||
custom-class="asset-select-dialog"
|
custom-class="asset-select-dialog"
|
||||||
top="2vh"
|
top="2vh"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
@ -15,12 +15,15 @@
|
|||||||
ref="ListPage"
|
ref="ListPage"
|
||||||
:header-actions="headerActions"
|
:header-actions="headerActions"
|
||||||
:node-url="baseNodeUrl"
|
:node-url="baseNodeUrl"
|
||||||
|
:sync-select-to-url="false"
|
||||||
:table-config="tableConfig"
|
:table-config="tableConfig"
|
||||||
|
:tree-setting="iTreeSetting"
|
||||||
:tree-url="`${baseNodeUrl}children/tree/`"
|
:tree-url="`${baseNodeUrl}children/tree/`"
|
||||||
:url="baseUrl"
|
:url="baseUrl"
|
||||||
:tree-setting="treeSetting"
|
|
||||||
class="tree-table"
|
class="tree-table"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
|
@loaded="handleTableLoaded"
|
||||||
|
v-on="$listeners"
|
||||||
/>
|
/>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
@ -63,6 +66,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
const vm = this
|
const vm = this
|
||||||
return {
|
return {
|
||||||
|
isLoaded: false,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
rowSelected: _.cloneDeep(this.value) || [],
|
rowSelected: _.cloneDeep(this.value) || [],
|
||||||
rowsAdd: [],
|
rowsAdd: [],
|
||||||
@ -73,17 +77,17 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: this.$t('assets.Name'),
|
label: this.$t('Name'),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'address',
|
prop: 'address',
|
||||||
label: this.$t('assets.ipDomain'),
|
label: this.$t('Address'),
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'platform',
|
prop: 'platform',
|
||||||
label: this.$t('assets.Platform'),
|
label: this.$t('Platform'),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
formatter: function(row) {
|
formatter: function(row) {
|
||||||
return row.platform.name
|
return row.platform.name
|
||||||
@ -117,9 +121,17 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
iTreeSetting() {
|
||||||
|
return { ...this.treeSetting, selectSyncToRoute: false }
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleTableLoaded() {
|
||||||
|
this.isLoaded = true
|
||||||
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.$eventBus.$emit('treeComponentKey')
|
this.$refs.ListPage.$refs.TreeList.componentKey += 1
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
this.$emit('confirm', this.rowSelected, this.rowsAdd)
|
this.$emit('confirm', this.rowSelected, this.rowsAdd)
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
import Select2 from '@/components/Form/FormFields/Select2.vue'
|
||||||
import AssetSelectDialog from './dialog.vue'
|
import AssetSelectDialog from './dialog.vue'
|
||||||
import { b } from 'css-color-function/lib/adjusters'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
componentName: 'AssetSelect',
|
componentName: 'AssetSelect',
|
||||||
@ -38,6 +37,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '/api/v1/assets/assets/'
|
default: '/api/v1/assets/assets/'
|
||||||
},
|
},
|
||||||
|
defaultPageSize: {
|
||||||
|
type: Number,
|
||||||
|
default: 10
|
||||||
|
},
|
||||||
baseNodeUrl: {
|
baseNodeUrl: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '/api/v1/assets/nodes/'
|
default: '/api/v1/assets/nodes/'
|
||||||
@ -53,6 +56,10 @@ export default {
|
|||||||
treeSetting: {
|
treeSetting: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
type: [Boolean, Function],
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -68,9 +75,11 @@ export default {
|
|||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
initialValue: _.cloneDeep(iValue),
|
initialValue: _.cloneDeep(iValue),
|
||||||
select2Config: {
|
select2Config: {
|
||||||
|
disabled: this.disabled,
|
||||||
value: iValue,
|
value: iValue,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
|
defaultPageSize: this.defaultPageSize,
|
||||||
ajax: {
|
ajax: {
|
||||||
url: this.baseUrl,
|
url: this.baseUrl,
|
||||||
transformOption: (item) => {
|
transformOption: (item) => {
|
||||||
@ -81,7 +90,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
b,
|
|
||||||
handleFocus() {
|
handleFocus() {
|
||||||
this.$refs.select2.selectRef.blur()
|
this.$refs.select2.selectRef.blur()
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
@ -136,16 +144,22 @@ export default {
|
|||||||
|
|
||||||
.tree-table {
|
.tree-table {
|
||||||
.left {
|
.left {
|
||||||
padding: 5px;
|
padding: 5px 0;
|
||||||
|
|
||||||
.ztree {
|
.ztree {
|
||||||
min-height: 500px;
|
height: 100%;
|
||||||
height: inherit !important;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
.transition-box {
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mini {
|
.mini {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
|
width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transition-box {
|
.transition-box {
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
<TreeTable
|
<TreeTable
|
||||||
ref="TreeList"
|
ref="TreeList"
|
||||||
:active-menu.sync="treeTableConfig.activeMenu"
|
:active-menu.sync="treeTableConfig.activeMenu"
|
||||||
|
:component="treeComponent"
|
||||||
:table-config="tableConfig"
|
:table-config="tableConfig"
|
||||||
:tree-tab-config="treeTableConfig"
|
:tree-tab-config="treeTableConfig"
|
||||||
component="TabTree"
|
:tree-width="treeWidth"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
@ -31,6 +32,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '/api/v1/assets/assets/'
|
default: '/api/v1/assets/assets/'
|
||||||
},
|
},
|
||||||
|
typeUrl: {
|
||||||
|
type: String,
|
||||||
|
default: '/api/v1/assets/nodes/category/tree/'
|
||||||
|
},
|
||||||
nodeUrl: {
|
nodeUrl: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '/api/v1/assets/nodes/'
|
default: '/api/v1/assets/nodes/'
|
||||||
@ -63,12 +68,14 @@ export default {
|
|||||||
const vm = this
|
const vm = this
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
treeComponent: 'TabTree',
|
||||||
treeTabConfig: {
|
treeTabConfig: {
|
||||||
activeMenu: 'CustomTree',
|
activeMenu: 'CustomTree',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
title: this.$t('assets.AssetTree'),
|
title: this.$t('AssetTree'),
|
||||||
name: 'CustomTree',
|
name: 'CustomTree',
|
||||||
|
icon: 'fa-tree',
|
||||||
treeSetting: {
|
treeSetting: {
|
||||||
showAssets,
|
showAssets,
|
||||||
showMenu: false,
|
showMenu: false,
|
||||||
@ -94,18 +101,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('assets.BuiltinTree'),
|
title: this.$t('TypeTree'),
|
||||||
|
icon: 'fa-list-ul',
|
||||||
name: 'BuiltinTree',
|
name: 'BuiltinTree',
|
||||||
treeSetting: {
|
treeSetting: {
|
||||||
showRefresh: true,
|
showRefresh: true,
|
||||||
showAssets: false,
|
showAssets: false,
|
||||||
showSearch: false,
|
showSearch: false,
|
||||||
customTreeHeaderName: this.$t('assets.BuiltinTree'),
|
customTreeHeaderName: this.$t('TypeTree'),
|
||||||
url: '/api/v1/assets/nodes/category/tree/',
|
url: this.typeUrl,
|
||||||
nodeUrl: this.treeSetting?.nodeUrl || this.nodeUrl,
|
nodeUrl: this.treeSetting?.nodeUrl || this.nodeUrl,
|
||||||
treeUrl: `/api/v1/assets/nodes/category/tree/?assets=${showAssets ? '1' : '0'}&count_resource=${this.treeSetting.countResource || 'asset'}`,
|
treeUrl: `${this.typeUrl}?assets=${showAssets ? '1' : '0'}&count_resource=${this.treeSetting.countResource || 'asset'}`,
|
||||||
callback: {
|
callback: {
|
||||||
onSelected: (event, treeNode) => this.getAssetsUrl(treeNode)
|
onSelected: (event, treeNode) => this.getAssetsUrl(treeNode)
|
||||||
|
},
|
||||||
|
edit: {
|
||||||
|
drag: {
|
||||||
|
isMove: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,6 +127,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
treeWidth() {
|
||||||
|
return '23.6%'
|
||||||
|
},
|
||||||
treeTableConfig() {
|
treeTableConfig() {
|
||||||
if (this.treeSetting.notShowBuiltinTree) {
|
if (this.treeSetting.notShowBuiltinTree) {
|
||||||
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
||||||
@ -131,6 +147,9 @@ export default {
|
|||||||
treeSetting.showDelete = this.$hasPerm('assets.delete_node')
|
treeSetting.showDelete = this.$hasPerm('assets.delete_node')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
reloadTable() {
|
||||||
|
this.$refs.TreeList.reloadTable()
|
||||||
|
},
|
||||||
setTreeUrlQuery() {
|
setTreeUrlQuery() {
|
||||||
let str = ''
|
let str = ''
|
||||||
for (const key in this.treeUrlQuery) {
|
for (const key in this.treeUrlQuery) {
|
||||||
@ -150,33 +169,42 @@ export default {
|
|||||||
$('#m_show_asset_only_current_node').css('color', '#606266')
|
$('#m_show_asset_only_current_node').css('color', '#606266')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAssetsUrl(treeNode) {
|
getAssetsUrl(treeNode) {
|
||||||
let url = this.treeSetting?.url || this.url
|
let url = this.treeSetting?.url || this.url
|
||||||
|
|
||||||
|
const setParam = (param, value, delay) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
url = setUrlParam(url, param, value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (treeNode.meta.type === 'node') {
|
if (treeNode.meta.type === 'node') {
|
||||||
const nodeId = treeNode.meta.data.id
|
const nodeId = treeNode.meta.data.id
|
||||||
url = setUrlParam(url, 'node_id', nodeId)
|
setParam('node_id', nodeId)
|
||||||
url = setUrlParam(url, 'asset_id', '')
|
setParam('asset_id', '')
|
||||||
} else if (treeNode.meta.type === 'asset') {
|
} else if (treeNode.meta.type === 'asset') {
|
||||||
const assetId = treeNode.meta.data?.id || treeNode.id
|
const assetId = treeNode.meta.data?.id || treeNode.id
|
||||||
url = setUrlParam(url, 'node_id', '')
|
setParam('node_id', '')
|
||||||
url = setUrlParam(url, 'asset_id', assetId)
|
setParam('asset_id', assetId)
|
||||||
} else if (treeNode.meta.type === 'category') {
|
} else if (treeNode.meta.type === 'category') {
|
||||||
url = setUrlParam(url, 'category', treeNode.meta.category)
|
setParam('category', treeNode.meta.category)
|
||||||
} else if (treeNode.meta.type === 'type') {
|
} else if (treeNode.meta.type === 'type') {
|
||||||
url = setUrlParam(url, 'category', treeNode.meta.category)
|
setParam('category', treeNode.meta.category)
|
||||||
url = setUrlParam(url, 'type', treeNode.meta._type)
|
setParam('type', treeNode.meta._type)
|
||||||
} else if (treeNode.meta.type === 'platform') {
|
} else if (treeNode.meta.type === 'platform') {
|
||||||
url = setUrlParam(url, 'platform', treeNode.id)
|
setParam('platform', treeNode.id)
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
const query = this.setTreeUrlQuery()
|
||||||
|
url = query ? `${url}&${query}` : url
|
||||||
|
this.$set(this.tableConfig, 'url', url)
|
||||||
|
})
|
||||||
|
|
||||||
|
if (this.treeSetting.selectSyncToRoute !== false) {
|
||||||
|
setRouterQuery(this, url)
|
||||||
}
|
}
|
||||||
const query = this.setTreeUrlQuery()
|
|
||||||
url = query ? `${url}&${query}` : url
|
|
||||||
this.$set(this.tableConfig, 'url', url)
|
|
||||||
setRouterQuery(this, url)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss' scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
@click="onOpenDialog"
|
@click="onOpenDialog"
|
||||||
>
|
>
|
||||||
{{ $tc('common.Setting') }}
|
{{ $tc('Setting') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Dialog
|
<Dialog
|
||||||
@ -50,7 +50,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$t('assets.PushParams')
|
return this.$t('PushParams')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
assets: {
|
assets: {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<ListTable ref="ListTable" :table-config="tableConfig" :header-actions="headerActions" />
|
<ListTable ref="ListTable" :header-actions="headerActions" :table-config="tableConfig" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ListTable from '@/components/Table/ListTable/index.vue'
|
import { DrawerListTable as ListTable } from '@/components'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BlockedIPList',
|
name: 'BlockedIPList',
|
||||||
@ -27,7 +27,7 @@ export default {
|
|||||||
],
|
],
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
ip: {
|
ip: {
|
||||||
label: this.$t('assets.ip')
|
label: this.$t('IP')
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
@ -37,7 +37,7 @@ export default {
|
|||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'UnlockIP',
|
name: 'UnlockIP',
|
||||||
title: this.$t('setting.Unblock'),
|
title: this.$t('Unblock'),
|
||||||
can: this.$hasPerm('settings.change_security'),
|
can: this.$hasPerm('settings.change_security'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
callback: ({ row }) => {
|
callback: ({ row }) => {
|
||||||
@ -45,7 +45,7 @@ export default {
|
|||||||
'/api/v1/settings/security/unlock-ip/',
|
'/api/v1/settings/security/unlock-ip/',
|
||||||
{ ips: [row.ip] }
|
{ ips: [row.ip] }
|
||||||
).then(() => {
|
).then(() => {
|
||||||
vm.$message.success(this.$tc('common.UnlockSuccessMsg'))
|
vm.$message.success(this.$tc('UnlockSuccessMsg'))
|
||||||
vm.$refs.ListTable.reloadTable()
|
vm.$refs.ListTable.reloadTable()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ export default {
|
|||||||
extraMoreActions: [
|
extraMoreActions: [
|
||||||
{
|
{
|
||||||
name: 'UnlockSelected',
|
name: 'UnlockSelected',
|
||||||
title: this.$t('setting.BulkUnblock'),
|
title: this.$t('UnblockSelected'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
can: ({ selectedRows }) => {
|
can: ({ selectedRows }) => {
|
||||||
return selectedRows.length > 0
|
return selectedRows.length > 0
|
||||||
@ -77,10 +77,12 @@ export default {
|
|||||||
vm.$axios.post(
|
vm.$axios.post(
|
||||||
'/api/v1/settings/security/unlock-ip/',
|
'/api/v1/settings/security/unlock-ip/',
|
||||||
{
|
{
|
||||||
ips: selectedRows.map(v => { return v.ip })
|
ips: selectedRows.map(v => {
|
||||||
|
return v.ip
|
||||||
|
})
|
||||||
}
|
}
|
||||||
).then(res => {
|
).then(res => {
|
||||||
vm.$message.success(vm.$tc('common.UnlockSuccessMsg'))
|
vm.$message.success(vm.$tc('UnlockSuccessMsg'))
|
||||||
vm.$refs.ListTable.reloadTable()
|
vm.$refs.ListTable.reloadTable()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
@click="onOpenDialog"
|
@click="onOpenDialog"
|
||||||
>
|
>
|
||||||
{{ $tc('common.View') }}
|
{{ $tc('View') }}
|
||||||
<span>({{ $tc('setting.LockedIP', ipCounts ) }})</span>
|
<span>({{ $tc('LockedIP', ipCounts ) }})</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Dialog
|
<Dialog
|
||||||
:visible.sync="visible"
|
:destroy-on-close="true"
|
||||||
:title="title"
|
|
||||||
width="40%"
|
|
||||||
:show-cancel="false"
|
:show-cancel="false"
|
||||||
:show-confirm="false"
|
:show-confirm="false"
|
||||||
:destroy-on-close="true"
|
:title="title"
|
||||||
|
:visible.sync="visible"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
|
width="40%"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<BlockedIPList />
|
<BlockedIPList />
|
||||||
@ -43,7 +43,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$t('setting.BlockedIPS')
|
return this.$t('BlockedIPS')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
|
@ -11,16 +11,16 @@
|
|||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<el-form :model="secretInfo" class="password-form" label-position="right" label-width="100px">
|
<el-form :model="secretInfo" class="password-form" label-position="right" label-width="100px">
|
||||||
<el-form-item :label="$tc('accounts.AccountChangeSecret.OldSecret')">
|
<el-form-item :label="$tc('OldSecret')">
|
||||||
<ShowKeyCopyFormatter
|
<SecretViewerFormatter
|
||||||
:cell-value="secretInfo.old_secret"
|
:cell-value="secretInfo.old_secret"
|
||||||
:col="{ formatterArgs: {
|
:col="{ formatterArgs: {
|
||||||
name: 'old_secret'
|
name: 'old_secret'
|
||||||
}}"
|
}}"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$tc('accounts.AccountChangeSecret.NewSecret')">
|
<el-form-item :label="$tc('NewSecret')">
|
||||||
<ShowKeyCopyFormatter
|
<SecretViewerFormatter
|
||||||
:cell-value="secretInfo.new_secret"
|
:cell-value="secretInfo.new_secret"
|
||||||
:col="{ formatterArgs: {
|
:col="{ formatterArgs: {
|
||||||
name: 'new_secret'
|
name: 'new_secret'
|
||||||
@ -34,13 +34,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '@/components/Dialog/index.vue'
|
import Dialog from '@/components/Dialog/index.vue'
|
||||||
import { ShowKeyCopyFormatter } from '@/components/Table/TableFormatters'
|
import { SecretViewerFormatter } from '@/components/Table/TableFormatters'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RecordViewSecret',
|
name: 'RecordViewSecret',
|
||||||
components: {
|
components: {
|
||||||
Dialog,
|
Dialog,
|
||||||
ShowKeyCopyFormatter
|
SecretViewerFormatter
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
visible: {
|
visible: {
|
||||||
@ -54,7 +54,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: function() {
|
default: function() {
|
||||||
return this.$tc('common.ViewSecret')
|
return this.$tc('ViewSecret')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -65,8 +65,7 @@ export default {
|
|||||||
mfaDialogVisible: true
|
mfaDialogVisible: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {},
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.showSecretDialog()
|
this.showSecretDialog()
|
||||||
},
|
},
|
||||||
@ -89,7 +88,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.item-textarea >>> .el-textarea__inner {
|
.item-textarea ::v-deep .el-textarea__inner {
|
||||||
height: 110px;
|
height: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,12 +101,12 @@ export default {
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
>>> .el-form-item__label {
|
::v-deep .el-form-item__label {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
>>> .el-form-item__content {
|
::v-deep .el-form-item__content {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|