mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-23 14:21:04 +03:00
Compare commits
875
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9dd752f686 | ||
|
|
1e17818975 | ||
|
|
68f8e3921b | ||
|
|
81258f603e | ||
|
|
08ee879c58 | ||
|
|
1b78bad1ad | ||
|
|
fd1647aafb | ||
|
|
77b6b396d7 | ||
|
|
47917dcc76 | ||
|
|
a8a2a0d3f0 | ||
|
|
f1adc66c27 | ||
|
|
bf2f63cbcf | ||
|
|
fcee9d88a8 | ||
|
|
3a272f60c9 | ||
|
|
35600c2990 | ||
|
|
ce661be5ed | ||
|
|
14e3d8e8ab | ||
|
|
eead4e135f | ||
|
|
1f3dfc502d | ||
|
|
7cd3cb47c3 | ||
|
|
746fe85511 | ||
|
|
ea71d16540 | ||
|
|
13e929efbf | ||
|
|
982ef5f465 | ||
|
|
2c56bb3e59 | ||
|
|
434001a605 | ||
|
|
0de2ed10b9 | ||
|
|
fd8b9751b1 | ||
|
|
f56a39aac3 | ||
|
|
a9caef75f6 | ||
|
|
e4cca1e971 | ||
|
|
d920632fdb | ||
|
|
469399474c | ||
|
|
1bcc0ace5e | ||
|
|
e0ea7329ab | ||
|
|
38ec3f7502 | ||
|
|
0fc30feaed | ||
|
|
82a4958a62 | ||
|
|
890c1f30df | ||
|
|
fb62eecd6e | ||
|
|
84eb800059 | ||
|
|
fb80d8a12b | ||
|
|
62802ff83d | ||
|
|
4e0252c469 | ||
|
|
225ad4190b | ||
|
|
c413970c0d | ||
|
|
7cd1aa26ad | ||
|
|
0e66063150 | ||
|
|
a77ebf8309 | ||
|
|
b1dce63fac | ||
|
|
2956b08766 | ||
|
|
ff4fd6c65c | ||
|
|
f7286a08a6 | ||
|
|
56955898af | ||
|
|
58a1f73f08 | ||
|
|
7749f8c1ed | ||
|
|
171ad3f199 | ||
|
|
fcb4b682e1 | ||
|
|
243146aa5b | ||
|
|
f8aa7db20a | ||
|
|
f47dcf28fe | ||
|
|
109a869256 | ||
|
|
8cfe48038d | ||
|
|
1331b34c62 | ||
|
|
def1f32253 | ||
|
|
0d18e6cca8 | ||
|
|
f6bd0770ac | ||
|
|
f8bb810a28 | ||
|
|
9854f85b6e | ||
|
|
52909fcd05 | ||
|
|
57281b6331 | ||
|
|
b6a770aa94 | ||
|
|
16460f95ed | ||
|
|
0df03b0b76 | ||
|
|
df4ea9574e | ||
|
|
e88fafe18e | ||
|
|
7720721278 | ||
|
|
0c2a2e982e | ||
|
|
b7f17e8d07 | ||
|
|
c5791b13e9 | ||
|
|
0083b1896e | ||
|
|
db4e5fc95d | ||
|
|
54e6d8d035 | ||
|
|
536e89b730 | ||
|
|
1b69560e6a | ||
|
|
0c1b98492c | ||
|
|
e7b70a5858 | ||
|
|
de8bb9bfae | ||
|
|
f7c2d896af | ||
|
|
e934a9b185 | ||
|
|
95c7cb8540 | ||
|
|
9192d46f34 | ||
|
|
60851b57a4 | ||
|
|
d5e6965c3c | ||
|
|
ef0894f29d | ||
|
|
bdc5966a4c | ||
|
|
95708f1ca7 | ||
|
|
1ed8f60aa4 | ||
|
|
3ed3a6130d | ||
|
|
bf332143fe | ||
|
|
fbb14cc8dc | ||
|
|
57b0978bb6 | ||
|
|
11c0ac7777 | ||
|
|
bc50a87187 | ||
|
|
78b7614d25 | ||
|
|
2f145f88ff | ||
|
|
fd3ca2380c | ||
|
|
675e5bffa8 | ||
|
|
5d96ef8c2c | ||
|
|
10dc2e2b55 | ||
|
|
8c99d26e3f | ||
|
|
cd492c2e23 | ||
|
|
55fda63a4d | ||
|
|
640a8734ca | ||
|
|
02593d869a | ||
|
|
613bc8c3ec | ||
|
|
ca9c45071b | ||
|
|
a72f8f2b45 | ||
|
|
7e25ba3e4f | ||
|
|
cc33329783 | ||
|
|
0f8463f92c | ||
|
|
28699f7b5d | ||
|
|
d715376317 | ||
|
|
efe62dab90 | ||
|
|
068c986202 | ||
|
|
c89762f129 | ||
|
|
2ce4d1ba50 | ||
|
|
52cd2fb23f | ||
|
|
802f2c4655 | ||
|
|
13a00f1cdc | ||
|
|
2d1f43475e | ||
|
|
e15b421ecd | ||
|
|
b2db2bdb1e | ||
|
|
04d2c8aa6e | ||
|
|
cc3365e16c | ||
|
|
cb0349a311 | ||
|
|
30f1c4e39d | ||
|
|
8519694fa6 | ||
|
|
7b487a60b9 | ||
|
|
89c35b4ba0 | ||
|
|
dc478634c3 | ||
|
|
cfeef64a89 | ||
|
|
fb56bbfce1 | ||
|
|
b942b4614f | ||
|
|
95a83fe434 | ||
|
|
8ebda99056 | ||
|
|
92eaa32ca7 | ||
|
|
1db1d38e7f | ||
|
|
6cb0019533 | ||
|
|
1147281b3a | ||
|
|
188fc76d06 | ||
|
|
7ef9d65de0 | ||
|
|
9cd3841448 | ||
|
|
0622e17590 | ||
|
|
d22e0d60d1 | ||
|
|
709fed7fa8 | ||
|
|
b3969d37c7 | ||
|
|
86feffa5e2 | ||
|
|
57e8f5f8d6 | ||
|
|
3294c36013 | ||
|
|
7fab4e48fe | ||
|
|
e3fdf351eb | ||
|
|
133d8b3d15 | ||
|
|
f22ea6cae1 | ||
|
|
d03b31eee9 | ||
|
|
8fed1bb6d3 | ||
|
|
310073a4a0 | ||
|
|
72364fa136 | ||
|
|
16a5e6b319 | ||
|
|
32e30c54b6 | ||
|
|
365fb4b5bb | ||
|
|
8617af9a6b | ||
|
|
8e373d232e | ||
|
|
dd49e2fceb | ||
|
|
8d5fc99b7f | ||
|
|
e473473863 | ||
|
|
8e37a86c99 | ||
|
|
3db071f9a8 | ||
|
|
0b137b567b | ||
|
|
1836d2210b | ||
|
|
76f03ffb3e | ||
|
|
2a985b6d2d | ||
|
|
9ae4574add | ||
|
|
fe4dc602bd | ||
|
|
084a97d76b | ||
|
|
c6234582cc | ||
|
|
44b8c1633d | ||
|
|
31c747571b | ||
|
|
3378767342 | ||
|
|
187625ed69 | ||
|
|
501678202b | ||
|
|
4222451a21 | ||
|
|
1dfe831550 | ||
|
|
17a49c14f7 | ||
|
|
11f1fd6a79 | ||
|
|
e83678b81e | ||
|
|
a83988a723 | ||
|
|
4c424fcddb | ||
|
|
975a863455 | ||
|
|
d7ad5bdf64 | ||
|
|
22508245f1 | ||
|
|
107864bad0 | ||
|
|
ee341e0034 | ||
|
|
dc273dd02e | ||
|
|
fd44be4209 | ||
|
|
de6604f36f | ||
|
|
3d496494ee | ||
|
|
8907ff0ea6 | ||
|
|
c4e8b15339 | ||
|
|
80895b050a | ||
|
|
0c8bb63885 | ||
|
|
8fc2d72618 | ||
|
|
d0385ea069 | ||
|
|
aa61e3afe8 | ||
|
|
261ae3a055 | ||
|
|
bf46a8ea23 | ||
|
|
224868e1bb | ||
|
|
a016bb593d | ||
|
|
8bffa36c57 | ||
|
|
fea5e5164a | ||
|
|
5c5e865b5c | ||
|
|
87de5f9186 | ||
|
|
a63775f189 | ||
|
|
48a9245d82 | ||
|
|
320a89790b | ||
|
|
27ef1c6973 | ||
|
|
79b3961159 | ||
|
|
b1fc3fe9d4 | ||
|
|
3bc667f57c | ||
|
|
b187d58526 | ||
|
|
952f69a6f1 | ||
|
|
0e1cc039ab | ||
|
|
3a3e8a07ca | ||
|
|
a8f8fffed9 | ||
|
|
f9c4d34f55 | ||
|
|
d2749f1620 | ||
|
|
b89bac5ac5 | ||
|
|
c03fe5ac5b | ||
|
|
0da083901f | ||
|
|
e897525b07 | ||
|
|
48a51cbfd9 | ||
|
|
165ea5a304 | ||
|
|
74504a06ad | ||
|
|
950580d8d2 | ||
|
|
87512fc8a9 | ||
|
|
4f7356de1f | ||
|
|
4cdcbafbc1 | ||
|
|
efd30f9be6 | ||
|
|
060c9b27df | ||
|
|
488cee02ec | ||
|
|
7bd88e3b9d | ||
|
|
bbd8747457 | ||
|
|
c922a84de8 | ||
|
|
b404cdb97c | ||
|
|
ab3f00e46f | ||
|
|
8a4ebe2bfa | ||
|
|
d3eca6ff55 | ||
|
|
8361798481 | ||
|
|
fccc9db530 | ||
|
|
73b6c3c1b4 | ||
|
|
5462608610 | ||
|
|
bcfe44eef6 | ||
|
|
9deccfa720 | ||
|
|
9a38169b22 | ||
|
|
fe419958e4 | ||
|
|
2e30edf3c3 | ||
|
|
6617d45ab2 | ||
|
|
615cdd0779 | ||
|
|
2691579200 | ||
|
|
1b59a9a239 | ||
|
|
cf566442ec | ||
|
|
0e876288ba | ||
|
|
2f0df433c9 | ||
|
|
fbcfdbc0b4 | ||
|
|
1da084635c | ||
|
|
650e62b4af | ||
|
|
8a1830141b | ||
|
|
8ad1ed49a6 | ||
|
|
b9e8a7e6cb | ||
|
|
d376a3f77c | ||
|
|
528e88c908 | ||
|
|
765dcb9f06 | ||
|
|
b3aff65c23 | ||
|
|
7a140fca92 | ||
|
|
c8118b04fd | ||
|
|
5413ede199 | ||
|
|
14b610b5bb | ||
|
|
32ffd471a4 | ||
|
|
d76ed491be | ||
|
|
7035eba246 | ||
|
|
04d3fa221c | ||
|
|
f536ae79da | ||
|
|
2bb7b10528 | ||
|
|
4015507693 | ||
|
|
43ad95d17e | ||
|
|
ebc79566b9 | ||
|
|
dec2e31654 | ||
|
|
8c0335937f | ||
|
|
6cfaf63502 | ||
|
|
d191b69cba | ||
|
|
2df93737e8 | ||
|
|
699f32747a | ||
|
|
e9a55414d9 | ||
|
|
cd045934aa | ||
|
|
9b9594d4e8 | ||
|
|
e2498d6f90 | ||
|
|
87a6103644 | ||
|
|
eb1beb8002 | ||
|
|
b57a40aad9 | ||
|
|
6896d03a3a | ||
|
|
23256695c3 | ||
|
|
05c51e5f60 | ||
|
|
17a885f097 | ||
|
|
db63103101 | ||
|
|
c7d8ea4de4 | ||
|
|
e8f17667b0 | ||
|
|
78b6224648 | ||
|
|
cd96bf6317 | ||
|
|
bd9afc7863 | ||
|
|
c6f9d4686f | ||
|
|
495b7eb4e1 | ||
|
|
393ac40ebb | ||
|
|
7bafd4790e | ||
|
|
7170450aba | ||
|
|
d38f9a2af6 | ||
|
|
bac8c8dc15 | ||
|
|
0d7e6ea82e | ||
|
|
69e660bf04 | ||
|
|
98c50f0f2a | ||
|
|
e86e9212d5 | ||
|
|
7a83b35adb | ||
|
|
c70c602682 | ||
|
|
d1aca6acaf | ||
|
|
98db1e7238 | ||
|
|
e50995dc93 | ||
|
|
befc1a12fd | ||
|
|
d1fc7ec939 | ||
|
|
86b1fe2971 | ||
|
|
e3e8e9d4e4 | ||
|
|
8545fc6fa5 | ||
|
|
3aa887ce54 | ||
|
|
4c381f3b6d | ||
|
|
f3f4209e55 | ||
|
|
a2acee2f85 | ||
|
|
5cd4253783 | ||
|
|
b241003366 | ||
|
|
2384d3ba44 | ||
|
|
c6adf164af | ||
|
|
25dd3feb50 | ||
|
|
1820f5f7c9 | ||
|
|
f117a74c74 | ||
|
|
2bba23635d | ||
|
|
ba2d10af9d | ||
|
|
d0582b3142 | ||
|
|
6ab8265944 | ||
|
|
6c718820a4 | ||
|
|
b620a8d80c | ||
|
|
157b861e3a | ||
|
|
05664745d8 | ||
|
|
d289c9b465 | ||
|
|
cf0d31f743 | ||
|
|
473c9cc8cf | ||
|
|
aba466ac89 | ||
|
|
6fadc83c4b | ||
|
|
0e73e5885c | ||
|
|
8c65ad8ed6 | ||
|
|
0c63eb7ca4 | ||
|
|
e62ca2295c | ||
|
|
fa01008dc8 | ||
|
|
327ff11a59 | ||
|
|
123c26d6b8 | ||
|
|
8754d626e1 | ||
|
|
605229f4ef | ||
|
|
9fa58666e5 | ||
|
|
c7154c36eb | ||
|
|
0b4a261e06 | ||
|
|
48b4904cf1 | ||
|
|
6db5c32bcd | ||
|
|
1702fc32c8 | ||
|
|
2f8fad5c0a | ||
|
|
9bf1b93b07 | ||
|
|
0afbf5203d | ||
|
|
f0ef42aade | ||
|
|
7856df3918 | ||
|
|
10a3babb75 | ||
|
|
357384949d | ||
|
|
b50b7905fd | ||
|
|
0c2dcbdf67 | ||
|
|
8fdb31b55b | ||
|
|
e2a1748fa9 | ||
|
|
616e5c9516 | ||
|
|
9347c9f034 | ||
|
|
4784925ee6 | ||
|
|
66bfb2db02 | ||
|
|
a50bfd5130 | ||
|
|
04f2ec1729 | ||
|
|
f0af67ef03 | ||
|
|
66dd351d48 | ||
|
|
5499593c6e | ||
|
|
186a006b3a | ||
|
|
e547b01144 | ||
|
|
2f2b3db115 | ||
|
|
0de61ef555 | ||
|
|
49aa769bb8 | ||
|
|
8ccbc34691 | ||
|
|
f0a092f95a | ||
|
|
c68388f367 | ||
|
|
b9eead5521 | ||
|
|
fcb8ab2c19 | ||
|
|
35ae97d54a | ||
|
|
fde7035e68 | ||
|
|
f07687b028 | ||
|
|
b554498ba1 | ||
|
|
5b916105d3 | ||
|
|
1e7ace4296 | ||
|
|
3993c8bb91 | ||
|
|
f1f2da79c0 | ||
|
|
3bd814fa01 | ||
|
|
0aec2de03d | ||
|
|
098237b012 | ||
|
|
6013b6c711 | ||
|
|
9cee2d1e34 | ||
|
|
324fd63fcf | ||
|
|
2c9168e1a1 | ||
|
|
6fbff77e92 | ||
|
|
4bf7470e27 | ||
|
|
880d937d33 | ||
|
|
9ebf98352e | ||
|
|
d30344beef | ||
|
|
a3a624c292 | ||
|
|
1fb3e1f922 | ||
|
|
d02443a288 | ||
|
|
3ef7e50b5b | ||
|
|
951143d63d | ||
|
|
6fd79d6e06 | ||
|
|
96f6262392 | ||
|
|
be60b042bd | ||
|
|
3a51a6c4f4 | ||
|
|
1b2ce73213 | ||
|
|
e64cafd7fe | ||
|
|
95722a6469 | ||
|
|
703988880e | ||
|
|
099ecc8242 | ||
|
|
1cf54a84a4 | ||
|
|
78c4436b3f | ||
|
|
2ca3a1fe96 | ||
|
|
adb0249f29 | ||
|
|
5724ca346f | ||
|
|
e9ac8f5a79 | ||
|
|
a38def7cae | ||
|
|
722de30113 | ||
|
|
23214dc9a8 | ||
|
|
2da74fa121 | ||
|
|
8b933792cf | ||
|
|
73e97f97bb | ||
|
|
0d9f6aa01b | ||
|
|
8659024c9b | ||
|
|
d087bd988a | ||
|
|
382a5cc696 | ||
|
|
f7b024a74a | ||
|
|
8e9c5c057b | ||
|
|
f52b42d844 | ||
|
|
f9f9288bbc | ||
|
|
476172af16 | ||
|
|
ba1b5bc5b6 | ||
|
|
f1185824a3 | ||
|
|
b34cc75d4f | ||
|
|
bb1f87292f | ||
|
|
26ffcd508f | ||
|
|
45e8f98eb4 | ||
|
|
b9725eaf11 | ||
|
|
31e280c6eb | ||
|
|
d72facf062 | ||
|
|
a1252eb2dc | ||
|
|
236b7ae43e | ||
|
|
d812c072d0 | ||
|
|
9c76553f6c | ||
|
|
210b356cd3 | ||
|
|
31eac2bd78 | ||
|
|
045075a051 | ||
|
|
fdb2bffae2 | ||
|
|
40aad48cc0 | ||
|
|
bda56ac263 | ||
|
|
8881f440ef | ||
|
|
f7e535f3c0 | ||
|
|
b07d0a4dd2 | ||
|
|
29a90937c1 | ||
|
|
89e8184ce7 | ||
|
|
24fca68766 | ||
|
|
3f9d3995a0 | ||
|
|
32b2237e19 | ||
|
|
e515041d4e | ||
|
|
844d7ac69f | ||
|
|
26e0657ede | ||
|
|
8bb3534b31 | ||
|
|
603099dc33 | ||
|
|
cb23cdf343 | ||
|
|
b476b6808e | ||
|
|
e84ac9e38c | ||
|
|
d2554a7bc3 | ||
|
|
ea6b3d0c38 | ||
|
|
c5ba4f356f | ||
|
|
54d9351a42 | ||
|
|
43da51fa76 | ||
|
|
368bc7edc6 | ||
|
|
23b17f4e47 | ||
|
|
37cfd0a105 | ||
|
|
6540db35de | ||
|
|
6d079f18bf | ||
|
|
3f44fec8be | ||
|
|
a0b8cf0301 | ||
|
|
20e138cdf6 | ||
|
|
a3e4ed9b87 | ||
|
|
a1022a947d | ||
|
|
aebc313a81 | ||
|
|
15f6c91d95 | ||
|
|
bad0262275 | ||
|
|
d161082569 | ||
|
|
c6b75ca3ba | ||
|
|
72df50ba51 | ||
|
|
28472157e9 | ||
|
|
6285453f6d | ||
|
|
9b22ee00f4 | ||
|
|
41bbd2bcef | ||
|
|
90556e8e73 | ||
|
|
8219e4759a | ||
|
|
acc00298ad | ||
|
|
c66103e9b8 | ||
|
|
fa3a858bcf | ||
|
|
87d4e76e8b | ||
|
|
4b42d55812 | ||
|
|
81d1ccc729 | ||
|
|
2dac7fd04c | ||
|
|
0e08f0748c | ||
|
|
8a3b106d96 | ||
|
|
45205d17cb | ||
|
|
fbb362d544 | ||
|
|
1b95877e45 | ||
|
|
4ca3ac357e | ||
|
|
0f28ddd0d5 | ||
|
|
d43ba716cb | ||
|
|
4c6c102e58 | ||
|
|
b9778bd68d | ||
|
|
6571963332 | ||
|
|
6d0b6c5c4f | ||
|
|
54dba5e2e0 | ||
|
|
40d5a6a77f | ||
|
|
f74716162b | ||
|
|
4cd72aeb18 | ||
|
|
45b107a013 | ||
|
|
6e2f09e01c | ||
|
|
58f280cee0 | ||
|
|
786991433a | ||
|
|
bdc2889ddb | ||
|
|
23702258ca | ||
|
|
cb74514c30 | ||
|
|
ddf3dd98db | ||
|
|
d92a285cb2 | ||
|
|
ec6c5b4066 | ||
|
|
c3c956bb6e | ||
|
|
4c014a63e1 | ||
|
|
80d87cb290 | ||
|
|
dbfe5113b0 | ||
|
|
e32d38c057 | ||
|
|
48b8a7f60a | ||
|
|
aee135386b | ||
|
|
44d7fa523e | ||
|
|
aa90b72f29 | ||
|
|
5441b2663a | ||
|
|
700d8358a4 | ||
|
|
9f38cdfd0f | ||
|
|
720c874344 | ||
|
|
933d824083 | ||
|
|
e220d4a074 | ||
|
|
e6e51cf1c4 | ||
|
|
747a7c81c2 | ||
|
|
df8d369f3b | ||
|
|
0b84e266fd | ||
|
|
cd93fdeaab | ||
|
|
78084e6bef | ||
|
|
2a4462ccaf | ||
|
|
a465baf86d | ||
|
|
cbb05d83e4 | ||
|
|
48df524f85 | ||
|
|
458da55387 | ||
|
|
c2e55b1a3f | ||
|
|
3e8cdf3653 | ||
|
|
ab762c3e97 | ||
|
|
601673d095 | ||
|
|
2bd17e94cc | ||
|
|
f19aeaf418 | ||
|
|
2ef2b39fbc | ||
|
|
f76aaa210f | ||
|
|
2c2b302de1 | ||
|
|
e55d4fa5b2 | ||
|
|
5bc8da91d6 | ||
|
|
239b7e0600 | ||
|
|
45998fd1f3 | ||
|
|
42d1bf7d35 | ||
|
|
42f39bfa6e | ||
|
|
130183cb36 | ||
|
|
43922ae5f9 | ||
|
|
c45a055643 | ||
|
|
11206a52a1 | ||
|
|
068d79a08f | ||
|
|
df049e2e69 | ||
|
|
743757761d | ||
|
|
c8dbec756b | ||
|
|
c906f11745 | ||
|
|
052ddebc34 | ||
|
|
135b31190d | ||
|
|
49f4c881ea | ||
|
|
f2de87e9d3 | ||
|
|
4fd536a5ff | ||
|
|
d8a4970254 | ||
|
|
53df0a2e52 | ||
|
|
3e95060622 | ||
|
|
deb6a9b9a6 | ||
|
|
fd6db9e305 | ||
|
|
b4f41994db | ||
|
|
a69e159986 | ||
|
|
3d91a295b9 | ||
|
|
e419ed38f4 | ||
|
|
a0c51c9f68 | ||
|
|
7e9613d11e | ||
|
|
fd4801619f | ||
|
|
bdc1c84635 | ||
|
|
2dbc8fadd6 | ||
|
|
6e113a850e | ||
|
|
535ba88050 | ||
|
|
b5d3ed6b89 | ||
|
|
fef1993ab8 | ||
|
|
748126f207 | ||
|
|
a28ba6e146 | ||
|
|
dbe2c38ddc | ||
|
|
ebfae5e81c | ||
|
|
bc0c344f18 | ||
|
|
2de5935fb7 | ||
|
|
f2e00226f8 | ||
|
|
374caa176e | ||
|
|
91a60388dd | ||
|
|
e9a4d06d39 | ||
|
|
50d780339c | ||
|
|
2821655554 | ||
|
|
47888b542d | ||
|
|
ddd3f6ed09 | ||
|
|
6530d37b1a | ||
|
|
eac0de1086 | ||
|
|
e46a5ec4d3 | ||
|
|
12b0dc100d | ||
|
|
7a4310ad90 | ||
|
|
d14371c5c2 | ||
|
|
c9f9bb1273 | ||
|
|
0d67535df2 | ||
|
|
cbd32fdade | ||
|
|
7e90365657 | ||
|
|
d75473b2e8 | ||
|
|
1dc965d9a8 | ||
|
|
b0ae8d7b3d | ||
|
|
35d8264c2b | ||
|
|
8a49f233a0 | ||
|
|
ff57fda388 | ||
|
|
071cd4c366 | ||
|
|
b2a4b9679d | ||
|
|
e672cdae63 | ||
|
|
72ff02881c | ||
|
|
089853e05b | ||
|
|
3d63fde283 | ||
|
|
b36a01e77a | ||
|
|
f61db56abb | ||
|
|
b3d48c0bf5 | ||
|
|
fb343eacf7 | ||
|
|
d415871a61 | ||
|
|
c10302b138 | ||
|
|
2f64b7e53d | ||
|
|
5732ce7a4f | ||
|
|
f1044b3e2b | ||
|
|
a99dae7f17 | ||
|
|
5eaab0cab8 | ||
|
|
d724281f07 | ||
|
|
7c12c12e21 | ||
|
|
83a78e989d | ||
|
|
e10beda5b0 | ||
|
|
9390435366 | ||
|
|
d3ee99a2b0 | ||
|
|
a25a69e773 | ||
|
|
01a0e06c88 | ||
|
|
aa0f705a63 | ||
|
|
97a2a11613 | ||
|
|
9bc3c54b20 | ||
|
|
3305c8124d | ||
|
|
7a1beb5dd3 | ||
|
|
7f2bf11bd9 | ||
|
|
b7debece4d | ||
|
|
e0de865517 | ||
|
|
af1013da36 | ||
|
|
2d87aaf484 | ||
|
|
75269c8cd7 | ||
|
|
c35e7102d5 | ||
|
|
48dd7bb695 | ||
|
|
1b82da5b4b | ||
|
|
23b4dc84c8 | ||
|
|
849c34fa66 | ||
|
|
8d710d1586 | ||
|
|
f07466f814 | ||
|
|
0062517fba | ||
|
|
6256dc2f9d | ||
|
|
6971cb6cb7 | ||
|
|
450b994fae | ||
|
|
f812703083 | ||
|
|
df1169dee0 | ||
|
|
d2c270a65f | ||
|
|
dd03874556 | ||
|
|
f9cc935f14 | ||
|
|
9501a60dc0 | ||
|
|
a0141dc215 | ||
|
|
6a9fb02193 | ||
|
|
591cdcda7e | ||
|
|
e0c642faa4 | ||
|
|
70ed8fe7ea | ||
|
|
e56eee9406 | ||
|
|
8967d8ca40 | ||
|
|
bf0faf654d | ||
|
|
328afe5ec0 | ||
|
|
94f0b9ef93 | ||
|
|
070ec0b36e | ||
|
|
1440c23331 | ||
|
|
756162f0e3 | ||
|
|
d37be2792f | ||
|
|
3f7151be4c | ||
|
|
b70f3cbfd7 | ||
|
|
97544530c9 | ||
|
|
0de51a2dea | ||
|
|
7c566fd782 | ||
|
|
e60cee9682 | ||
|
|
2816ed254a | ||
|
|
3550d81dda | ||
|
|
3b7b0a45e6 | ||
|
|
d832e861a8 | ||
|
|
362434cd29 | ||
|
|
9dca9c3cb8 | ||
|
|
5c9333bcf9 | ||
|
|
5442a88318 | ||
|
|
60a617cf5d | ||
|
|
18f4fa8906 | ||
|
|
24a806f1e3 | ||
|
|
d1d2b6b36d | ||
|
|
894f2596bc | ||
|
|
5bcc503c56 | ||
|
|
7631847cd3 | ||
|
|
e94cebfe19 | ||
|
|
729a10c68e | ||
|
|
c434a5f3f0 | ||
|
|
1b1be10762 | ||
|
|
e68f743147 | ||
|
|
a8da319598 | ||
|
|
65aad83e19 | ||
|
|
fd0a723f06 | ||
|
|
093daa8fd2 | ||
|
|
ee04bfed87 | ||
|
|
3ead4d37ad | ||
|
|
9c9b0d5ac0 | ||
|
|
c49ff00c31 | ||
|
|
444ccddaa2 | ||
|
|
1f67ba15e9 | ||
|
|
bf9e07a0a8 | ||
|
|
ba84e82a8e | ||
|
|
951768c802 | ||
|
|
fbde97572f | ||
|
|
c0c5cfda87 | ||
|
|
172c617b2f | ||
|
|
9c5b297b30 | ||
|
|
7616a35c41 | ||
|
|
a7dd50331a | ||
|
|
21fa7217ad | ||
|
|
9d3337ff60 | ||
|
|
d7a8c65067 | ||
|
|
2850dbd001 | ||
|
|
a385d18bc7 | ||
|
|
df343d11f5 | ||
|
|
22cdc82e3f | ||
|
|
2dbed18af9 | ||
|
|
a50e6a8308 | ||
|
|
6efde9e5f9 | ||
|
|
70c9cd6ccb | ||
|
|
7e6860719b | ||
|
|
654f7a8b05 | ||
|
|
12a8962a6e | ||
|
|
0d17698bb0 | ||
|
|
3dde9f3ad3 | ||
|
|
5223491029 | ||
|
|
8641d12a96 | ||
|
|
a748499413 | ||
|
|
df7cc7cccc | ||
|
|
ecf0eacc32 | ||
|
|
ffc635ef26 | ||
|
|
3ad648d569 | ||
|
|
df7fa898ea | ||
|
|
0f01b86682 | ||
|
|
0106d1bdfd | ||
|
|
06640f9809 | ||
|
|
6445c80b36 | ||
|
|
916a6fb913 | ||
|
|
ccd6deb793 | ||
|
|
cb45057c78 | ||
|
|
16d1a0072d | ||
|
|
ce8199e338 | ||
|
|
e8cd98c25d | ||
|
|
dbd4730256 | ||
|
|
7a74c8569c | ||
|
|
8301489872 | ||
|
|
6d619603f9 | ||
|
|
82d99b6965 | ||
|
|
c413ac293e | ||
|
|
b21ea3c310 | ||
|
|
b779beb695 | ||
|
|
6c005143ee | ||
|
|
34357dde7c | ||
|
|
53e306b096 | ||
|
|
ed6bd1ada1 | ||
|
|
690bb19777 | ||
|
|
3a0b612239 | ||
|
|
92b723ae69 | ||
|
|
e336ebe6bb | ||
|
|
88ecf60587 | ||
|
|
5641816957 | ||
|
|
a25bd8f4b0 | ||
|
|
435d81281b | ||
|
|
3e27051f8f | ||
|
|
3f61e3569e | ||
|
|
b293763fe7 | ||
|
|
2a8efd4275 | ||
|
|
a10caaa503 | ||
|
|
377d6ec1bf | ||
|
|
5a11820199 | ||
|
|
ca44c5c52a | ||
|
|
60841f6e4a | ||
|
|
90fba759c3 | ||
|
|
ed019b0334 | ||
|
|
503cf6715c | ||
|
|
275a148be2 | ||
|
|
e073b2babf | ||
|
|
85aed08b44 | ||
|
|
caa67fd040 | ||
|
|
83832f3e2c | ||
|
|
ee40ba1439 | ||
|
|
3f32990499 | ||
|
|
c0f7f8fae9 | ||
|
|
2fe369a424 | ||
|
|
84d0f7fd53 | ||
|
|
00b85de1a0 | ||
|
|
6749d817b1 | ||
|
|
21eabe9755 | ||
|
|
5bd2929670 | ||
|
|
03f99d61d8 | ||
|
|
29e01070ae | ||
|
|
4598ebae09 | ||
|
|
2908763346 | ||
|
|
93d3ab6fb9 | ||
|
|
57519777ee | ||
|
|
9a28b8995b | ||
|
|
2c93029409 | ||
|
|
7ebbddd945 | ||
|
|
a4f0522ad2 | ||
|
|
39bc40172f | ||
|
|
22e836bb3d | ||
|
|
a74553c7ca | ||
|
|
1b17302bf6 | ||
|
|
d7c207cc52 | ||
|
|
e376a57b70 | ||
|
|
f7256fb42a | ||
|
|
2d55c0146e | ||
|
|
6f64dc45d2 | ||
|
|
808f56e011 | ||
|
|
94eb67b4ab |
No files matched your search
@@ -286,6 +286,9 @@
|
||||
"watchTriggerable": true,
|
||||
"watchWithFilter": true,
|
||||
"whenever": true,
|
||||
"toValue": true
|
||||
"toValue": true,
|
||||
"injectLocal": true,
|
||||
"provideLocal": true,
|
||||
"useClipboardItems": true
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,8 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],
|
||||
|
||||
ignorePatterns: ['src/libs/*'],
|
||||
|
||||
rules: {
|
||||
'curly': ['error', 'all'],
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
name: "Pull Requests Merge Conflicts Tagger"
|
||||
on:
|
||||
# So that PRs touching the same files as the push are updated
|
||||
push:
|
||||
# So that the `dirtyLabel` is removed if conflicts are resolve
|
||||
# We recommend `pull_request_target` so that github secrets are available.
|
||||
# In `pull_request` we wouldn't be able to change labels of fork PRs
|
||||
pull_request_target:
|
||||
types: [synchronize]
|
||||
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: check if prs are dirty
|
||||
uses: eps1lon/actions-label-merge-conflict@v3
|
||||
with:
|
||||
dirtyLabel: "PR: needs rebase"
|
||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
|
||||
# commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly."
|
||||
@@ -4,7 +4,7 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- chore/all-my-stuffs
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
@@ -0,0 +1,72 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ chore/all-my-stuffs ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ chore/all-my-stuffs ]
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'javascript' ]
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more:
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
config: |
|
||||
paths-ignore:
|
||||
- src/libs
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
+8
-10
@@ -53,8 +53,9 @@ jobs:
|
||||
- ci
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
@@ -63,12 +64,6 @@ jobs:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
@@ -83,5 +78,8 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
corentinth/it-tools:nightly
|
||||
ghcr.io/corentinth/it-tools:nightly
|
||||
ghcr.io/${{ github.repository_owner }}/it-tools:nightly
|
||||
|
||||
# Optionally log out
|
||||
- name: Log out from GitHub Container Registry
|
||||
run: docker logout ghcr.io
|
||||
@@ -0,0 +1,67 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- chore/all-my-stuffs
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: corepack enable
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i
|
||||
|
||||
- name: Run linters
|
||||
run: pnpm lint
|
||||
|
||||
- name: Run unit tests
|
||||
run: pnpm test
|
||||
|
||||
- name: Build the app
|
||||
run: pnpm build
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- ci
|
||||
steps:
|
||||
# Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/it-tools:latest
|
||||
|
||||
|
||||
# Optionally log out
|
||||
- name: Log out from GitHub Container Registry
|
||||
run: docker logout ghcr.io
|
||||
@@ -3,10 +3,10 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- chore/all-my-stuffs
|
||||
jobs:
|
||||
test:
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 30
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -22,12 +22,6 @@ jobs:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
@@ -42,10 +36,8 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
corentinth/it-tools:latest
|
||||
corentinth/it-tools:${{ env.RELEASE_VERSION }}
|
||||
ghcr.io/corentinth/it-tools:latest
|
||||
ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}
|
||||
ghcr.io/sharevb/it-tools:latest
|
||||
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}
|
||||
|
||||
github-release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -92,12 +84,9 @@ jobs:
|
||||
body: |
|
||||
## Docker images
|
||||
|
||||
- Docker Hub
|
||||
- `corentinth/it-tools:latest`
|
||||
- `corentinth/it-tools:${{ env.RELEASE_VERSION }}`
|
||||
- GitHub Container Registry
|
||||
- `ghcr.io/corentinth/it-tools:latest`
|
||||
- `ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}`
|
||||
- `ghcr.io/sharevb/it-tools:latest`
|
||||
- `ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}`
|
||||
|
||||
## Changelog
|
||||
|
||||
@@ -3,14 +3,22 @@ FROM node:lts-alpine AS build-stage
|
||||
# Set environment variables for non-interactive npm installs
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
ENV CI true
|
||||
|
||||
RUN apk add --update python3 make g++\
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN npm install -g pnpm && pnpm i --frozen-lockfile
|
||||
COPY . .
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL=${BASE_URL}
|
||||
RUN pnpm build
|
||||
|
||||
# production stage
|
||||
FROM nginx:stable-alpine AS production-stage
|
||||
ARG BASE_URL
|
||||
ENV BASE_URL=${BASE_URL}
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
|
||||
@@ -1,20 +1,59 @@
|
||||
### Check out these change here: <https://sharevb-it-tools.vercel.app/>
|
||||
|
||||
You can use my image in your docker-compose file if you want an update to date version of it-tools (with my PR and some of others) until the main branch has been updated.
|
||||
|
||||
- github action triggers on every push to this branch - [view package here](https://github.com/sharevb/it-tools/pkgs/container/it-tools)
|
||||
|
||||
(Thanks to [gitmotion](https://github.com/gitmotion/it-tools) for this model of README fork)
|
||||
|
||||
## Added features
|
||||
|
||||
Almost [all tools PR of it-tools](https://github.com/sharevb/it-tools/pulls).
|
||||
|
||||
## Build docker image for a subfolder
|
||||
|
||||
According to https://github.com/sharevb/it-tools/pull/461#issuecomment-1602506049:
|
||||
```
|
||||
docker build -t it-tools --build-arg BASE_URL="/my-folder/" .
|
||||
docker run -d --name it-tools --restart unless-stopped -p 8080:80 it-tools
|
||||
```
|
||||
|
||||
## Use in Docker Compose file
|
||||
|
||||
```yml
|
||||
services:
|
||||
it-tools:
|
||||
container_name: it-tools
|
||||
image: ghcr.io/sharevb/it-tools:nightly
|
||||
pull_policy: always
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8080:80
|
||||
```
|
||||
|
||||
## Installation methods
|
||||
|
||||
| Docker Image | Local Installation |
|
||||
|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
|
||||
| <span title="triple click me!">`ghcr.io/sharevb/it-tools:latest`</span> | <span title="triple click me!">`git clone -b chore/all-my-stuffs https://github.com/sharevb/it-tools.git && cd it-tools/ && pnpm i && pnpm dev`</span> |
|
||||
| replace your current image with this image | copy & paste oneliner (from github repo) |
|
||||
| You may need to clear cache and hard reload to get new features loading | Installing packages for the first time may take some time; please wait until it finishes |
|
||||
|
||||
<picture>
|
||||
<source srcset="./.github/logo-dark.png" media="(prefers-color-scheme: light)">
|
||||
<source srcset="./.github/logo-white.png" media="(prefers-color-scheme: dark)">
|
||||
<img src="./.github/logo-dark.png" alt="logo">
|
||||
</picture>
|
||||
|
||||
<details>
|
||||
|
||||
Useful tools for developer and people working in IT. [Have a look !](https://it-tools.tech).
|
||||
|
||||
## Sponsors
|
||||
|
||||
[](https://renderize.tech?utm_source=it-tools&utm_medium=readme)
|
||||
|
||||
## Functionalities and roadmap
|
||||
|
||||
Please check the [issues](https://github.com/CorentinTh/it-tools/issues) to see if some feature listed to be implemented.
|
||||
Please check the [issues](https://github.com/sharevb/it-tools/issues) to see if some feature listed to be implemented.
|
||||
|
||||
You have an idea of a tool? Submit a [feature request](https://github.com/CorentinTh/it-tools/issues/new/choose)!
|
||||
You have an idea of a tool? Submit a [feature request](https://github.com/sharevb/it-tools/issues/new/choose)!
|
||||
|
||||
## Self host
|
||||
|
||||
@@ -117,7 +156,7 @@ It will create a directory in `src/tools` with the correct files, and a the impo
|
||||
|
||||
Big thanks to all the people who have already contributed!
|
||||
|
||||
[](https://github.com/corentinth/it-tools/graphs/contributors)
|
||||
[](https://github.com/sharevb/it-tools/graphs/contributors)
|
||||
|
||||
## Credits
|
||||
|
||||
@@ -133,3 +172,5 @@ Contributor graph is generated using [contrib.rocks](https://contrib.rocks/previ
|
||||
## License
|
||||
|
||||
This project is under the [GNU GPLv3](LICENSE).
|
||||
|
||||
</details>
|
||||
Vendored
+9
@@ -36,6 +36,7 @@ declare global {
|
||||
const h: typeof import('vue')['h']
|
||||
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
|
||||
const inject: typeof import('vue')['inject']
|
||||
const injectLocal: typeof import('@vueuse/core')['injectLocal']
|
||||
const isDefined: typeof import('@vueuse/core')['isDefined']
|
||||
const isProxy: typeof import('vue')['isProxy']
|
||||
const isReactive: typeof import('vue')['isReactive']
|
||||
@@ -65,6 +66,7 @@ declare global {
|
||||
const onUpdated: typeof import('vue')['onUpdated']
|
||||
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
|
||||
const provide: typeof import('vue')['provide']
|
||||
const provideLocal: typeof import('@vueuse/core')['provideLocal']
|
||||
const reactify: typeof import('@vueuse/core')['reactify']
|
||||
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
|
||||
const reactive: typeof import('vue')['reactive']
|
||||
@@ -128,6 +130,7 @@ declare global {
|
||||
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
|
||||
const useCached: typeof import('@vueuse/core')['useCached']
|
||||
const useClipboard: typeof import('@vueuse/core')['useClipboard']
|
||||
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
|
||||
const useCloned: typeof import('@vueuse/core')['useCloned']
|
||||
const useColorMode: typeof import('@vueuse/core')['useColorMode']
|
||||
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
|
||||
@@ -326,6 +329,7 @@ declare module 'vue' {
|
||||
readonly h: UnwrapRef<typeof import('vue')['h']>
|
||||
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
|
||||
readonly inject: UnwrapRef<typeof import('vue')['inject']>
|
||||
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
|
||||
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
|
||||
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
|
||||
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
|
||||
@@ -355,6 +359,7 @@ declare module 'vue' {
|
||||
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
|
||||
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
|
||||
readonly provide: UnwrapRef<typeof import('vue')['provide']>
|
||||
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
|
||||
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
|
||||
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
|
||||
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
|
||||
@@ -418,6 +423,7 @@ declare module 'vue' {
|
||||
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
|
||||
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
|
||||
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
|
||||
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
|
||||
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
|
||||
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
|
||||
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
|
||||
@@ -610,6 +616,7 @@ declare module '@vue/runtime-core' {
|
||||
readonly h: UnwrapRef<typeof import('vue')['h']>
|
||||
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
|
||||
readonly inject: UnwrapRef<typeof import('vue')['inject']>
|
||||
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
|
||||
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
|
||||
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
|
||||
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
|
||||
@@ -639,6 +646,7 @@ declare module '@vue/runtime-core' {
|
||||
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
|
||||
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
|
||||
readonly provide: UnwrapRef<typeof import('vue')['provide']>
|
||||
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
|
||||
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
|
||||
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
|
||||
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
|
||||
@@ -702,6 +710,7 @@ declare module '@vue/runtime-core' {
|
||||
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
|
||||
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
|
||||
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
|
||||
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
|
||||
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
|
||||
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
|
||||
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
|
||||
|
||||
Vendored
+178
-2
@@ -11,8 +11,16 @@ declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
'404.page': typeof import('./src/pages/404.page.vue')['default']
|
||||
About: typeof import('./src/pages/About.vue')['default']
|
||||
AiPromptSplitter: typeof import('./src/tools/ai-prompt-splitter/ai-prompt-splitter.vue')['default']
|
||||
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
||||
AnsibleVaultCryptDecrypt: typeof import('./src/tools/ansible-vault-crypt-decrypt/ansible-vault-crypt-decrypt.vue')['default']
|
||||
ApiTester: typeof import('./src/tools/api-tester/api-tester.vue')['default']
|
||||
App: typeof import('./src/App.vue')['default']
|
||||
AreaConverter: typeof import('./src/tools/area-converter/area-converter.vue')['default']
|
||||
AsciiTextDrawer: typeof import('./src/tools/ascii-text-drawer/ascii-text-drawer.vue')['default']
|
||||
AspectRatioCalculator: typeof import('./src/tools/aspect-ratio-calculator/aspect-ratio-calculator.vue')['default']
|
||||
BarcodeGenerator: typeof import('./src/tools/barcode-generator/barcode-generator.vue')['default']
|
||||
BarcodeReader: typeof import('./src/tools/barcode-reader/barcode-reader.vue')['default']
|
||||
'Base.layout': typeof import('./src/layouts/base.layout.vue')['default']
|
||||
Base64FileConverter: typeof import('./src/tools/base64-file-converter/base64-file-converter.vue')['default']
|
||||
Base64StringConverter: typeof import('./src/tools/base64-string-converter/base64-string-converter.vue')['default']
|
||||
@@ -20,6 +28,7 @@ declare module '@vue/runtime-core' {
|
||||
Bcrypt: typeof import('./src/tools/bcrypt/bcrypt.vue')['default']
|
||||
BenchmarkBuilder: typeof import('./src/tools/benchmark-builder/benchmark-builder.vue')['default']
|
||||
Bip39Generator: typeof import('./src/tools/bip39-generator/bip39-generator.vue')['default']
|
||||
BounceParser: typeof import('./src/tools/bounce-parser/bounce-parser.vue')['default']
|
||||
CAlert: typeof import('./src/ui/c-alert/c-alert.vue')['default']
|
||||
'CAlert.demo': typeof import('./src/ui/c-alert/c-alert.demo.vue')['default']
|
||||
CameraRecorder: typeof import('./src/tools/camera-recorder/camera-recorder.vue')['default']
|
||||
@@ -33,10 +42,12 @@ declare module '@vue/runtime-core' {
|
||||
CCollapse: typeof import('./src/ui/c-collapse/c-collapse.vue')['default']
|
||||
'CCollapse.demo': typeof import('./src/ui/c-collapse/c-collapse.demo.vue')['default']
|
||||
CDiffEditor: typeof import('./src/ui/c-diff-editor/c-diff-editor.vue')['default']
|
||||
CertificateKeyParser: typeof import('./src/tools/certificate-key-parser/certificate-key-parser.vue')['default']
|
||||
CFileUpload: typeof import('./src/ui/c-file-upload/c-file-upload.vue')['default']
|
||||
'CFileUpload.demo': typeof import('./src/ui/c-file-upload/c-file-upload.demo.vue')['default']
|
||||
ChmodCalculator: typeof import('./src/tools/chmod-calculator/chmod-calculator.vue')['default']
|
||||
Chronometer: typeof import('./src/tools/chronometer/chronometer.vue')['default']
|
||||
CidrInCidr: typeof import('./src/tools/cidr-in-cidr/cidr-in-cidr.vue')['default']
|
||||
CInputText: typeof import('./src/ui/c-input-text/c-input-text.vue')['default']
|
||||
'CInputText.demo': typeof import('./src/ui/c-input-text/c-input-text.demo.vue')['default']
|
||||
CKeyValueList: typeof import('./src/ui/c-key-value-list/c-key-value-list.vue')['default']
|
||||
@@ -50,45 +61,94 @@ declare module '@vue/runtime-core' {
|
||||
'CModal.demo': typeof import('./src/ui/c-modal/c-modal.demo.vue')['default']
|
||||
CModalValue: typeof import('./src/ui/c-modal-value/c-modal-value.vue')['default']
|
||||
'CModalValue.demo': typeof import('./src/ui/c-modal-value/c-modal-value.demo.vue')['default']
|
||||
CMonacoEditor: typeof import('./src/ui/c-monaco-editor/c-monaco-editor.vue')['default']
|
||||
CodeHighlighter: typeof import('./src/tools/code-highlighter/code-highlighter.vue')['default']
|
||||
CollapsibleToolMenu: typeof import('./src/components/CollapsibleToolMenu.vue')['default']
|
||||
ColorConverter: typeof import('./src/tools/color-converter/color-converter.vue')['default']
|
||||
ColoredCard: typeof import('./src/components/ColoredCard.vue')['default']
|
||||
ColorWheel: typeof import('./src/tools/color-wheel/color-wheel.vue')['default']
|
||||
CommandPalette: typeof import('./src/modules/command-palette/command-palette.vue')['default']
|
||||
CommandPaletteOption: typeof import('./src/modules/command-palette/components/command-palette-option.vue')['default']
|
||||
CommonRegex: typeof import('./src/tools/common-regex-memo/common-regex.md')['default']
|
||||
CommonRegexMemo: typeof import('./src/tools/common-regex-memo/common-regex-memo.vue')['default']
|
||||
CrcCalculator: typeof import('./src/tools/crc-calculator/crc-calculator.vue')['default']
|
||||
CrontabGenerator: typeof import('./src/tools/crontab-generator/crontab-generator.vue')['default']
|
||||
CSelect: typeof import('./src/ui/c-select/c-select.vue')['default']
|
||||
'CSelect.demo': typeof import('./src/ui/c-select/c-select.demo.vue')['default']
|
||||
CsrGenerator: typeof import('./src/tools/csr-generator/csr-generator.vue')['default']
|
||||
CssPrettifier: typeof import('./src/tools/css-prettifier/css-prettifier.vue')['default']
|
||||
CssSelectorsMemo: typeof import('./src/tools/css-selectors-memo/css-selectors-memo.md')['default']
|
||||
CssXpathConverter: typeof import('./src/tools/css-xpath-converter/css-xpath-converter.vue')['default']
|
||||
CsvToJson: typeof import('./src/tools/csv-to-json/csv-to-json.vue')['default']
|
||||
CTable: typeof import('./src/ui/c-table/c-table.vue')['default']
|
||||
'CTable.demo': typeof import('./src/ui/c-table/c-table.demo.vue')['default']
|
||||
CTextCopyable: typeof import('./src/ui/c-text-copyable/c-text-copyable.vue')['default']
|
||||
'CTextCopyable.demo': typeof import('./src/ui/c-text-copyable/c-text-copyable.demo.vue')['default']
|
||||
CTooltip: typeof import('./src/ui/c-tooltip/c-tooltip.vue')['default']
|
||||
'CTooltip.demo': typeof import('./src/ui/c-tooltip/c-tooltip.demo.vue')['default']
|
||||
CurlConverter: typeof import('./src/tools/curl-converter/curl-converter.vue')['default']
|
||||
CurrencyConverter: typeof import('./src/tools/currency-converter/currency-converter.vue')['default']
|
||||
DataStorageUnitConverter: typeof import('./src/tools/data-storage-unit-converter/data-storage-unit-converter.vue')['default']
|
||||
DataTransferRateConverter: typeof import('./src/tools/data-transfer-rate-converter/data-transfer-rate-converter.vue')['default']
|
||||
DateDurationCalculator: typeof import('./src/tools/date-duration-calculator/date-duration-calculator.vue')['default']
|
||||
DateTimeConverter: typeof import('./src/tools/date-time-converter/date-time-converter.vue')['default']
|
||||
DaysCalculator: typeof import('./src/tools/days-calculator/days-calculator.vue')['default']
|
||||
'DemoHome.page': typeof import('./src/ui/demo/demo-home.page.vue')['default']
|
||||
DemoWrapper: typeof import('./src/ui/demo/demo-wrapper.vue')['default']
|
||||
DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default']
|
||||
DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']
|
||||
DnsQueries: typeof import('./src/tools/dns-queries/dns-queries.vue')['default']
|
||||
DockerComposeConverter: typeof import('./src/tools/docker-compose-converter/docker-compose-converter.vue')['default']
|
||||
DockerComposeToDockerRunConverter: typeof import('./src/tools/docker-compose-to-docker-run-converter/docker-compose-to-docker-run-converter.vue')['default']
|
||||
DockerComposeToKubernetes: typeof import('./src/tools/docker-compose-to-kubernetes/docker-compose-to-kubernetes.vue')['default']
|
||||
DockerComposeValidator: typeof import('./src/tools/docker-compose-validator/docker-compose-validator.vue')['default']
|
||||
DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']
|
||||
DockerRunToKubernetes: typeof import('./src/tools/docker-run-to-kubernetes/docker-run-to-kubernetes.vue')['default']
|
||||
DurationCalculator: typeof import('./src/tools/duration-calculator/duration-calculator.vue')['default']
|
||||
DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']
|
||||
EcdsaKeyPairGenerator: typeof import('./src/tools/ecdsa-key-pair-generator/ecdsa-key-pair-generator.vue')['default']
|
||||
Ed25519KeyPairGenerator: typeof import('./src/tools/ed25519-key-pair-generator/ed25519-key-pair-generator.vue')['default']
|
||||
Editor: typeof import('./src/tools/html-wysiwyg-editor/editor/editor.vue')['default']
|
||||
EmailNormalizer: typeof import('./src/tools/email-normalizer/email-normalizer.vue')['default']
|
||||
EmailParser: typeof import('./src/tools/email-parser/email-parser.vue')['default']
|
||||
EmojiCard: typeof import('./src/tools/emoji-picker/emoji-card.vue')['default']
|
||||
EmojiGrid: typeof import('./src/tools/emoji-picker/emoji-grid.vue')['default']
|
||||
EmojiPicker: typeof import('./src/tools/emoji-picker/emoji-picker.vue')['default']
|
||||
Encryption: typeof import('./src/tools/encryption/encryption.vue')['default']
|
||||
EnergyComputer: typeof import('./src/tools/energy-computer/energy-computer.vue')['default']
|
||||
EnergyConverter: typeof import('./src/tools/energy-converter/energy-converter.vue')['default']
|
||||
EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']
|
||||
ExtractTextFromHtml: typeof import('./src/tools/extract-text-from-html/extract-text-from-html.vue')['default']
|
||||
FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']
|
||||
FileHasher: typeof import('./src/tools/file-hasher/file-hasher.vue')['default']
|
||||
FileType: typeof import('./src/tools/file-type/file-type.vue')['default']
|
||||
FloatingPointNumberConverter: typeof import('./src/tools/floating-point-number-converter/floating-point-number-converter.vue')['default']
|
||||
FolderStructureDiagram: typeof import('./src/tools/folder-structure-diagram/folder-structure-diagram.vue')['default']
|
||||
ForceConverter: typeof import('./src/tools/force-converter/force-converter.vue')['default']
|
||||
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
|
||||
GeoDistanceCalculator: typeof import('./src/tools/geo-distance-calculator/geo-distance-calculator.vue')['default']
|
||||
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
|
||||
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
|
||||
GptTokenEstimator: typeof import('./src/tools/gpt-token-estimator/gpt-token-estimator.vue')['default']
|
||||
GzipConverter: typeof import('./src/tools/gzip-converter/gzip-converter.vue')['default']
|
||||
HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']
|
||||
HddCalculator: typeof import('./src/tools/hdd-calculator/hdd-calculator.vue')['default']
|
||||
HeicConverter: typeof import('./src/tools/heic-converter/heic-converter.vue')['default']
|
||||
HexFileConverter: typeof import('./src/tools/hex-file-converter/hex-file-converter.vue')['default']
|
||||
HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default']
|
||||
'Home.page': typeof import('./src/pages/Home.page.vue')['default']
|
||||
HtmlCleaner: typeof import('./src/tools/html-cleaner/html-cleaner.vue')['default']
|
||||
HtmlEntities: typeof import('./src/tools/html-entities/html-entities.vue')['default']
|
||||
HtmlPrettifier: typeof import('./src/tools/html-prettifier/html-prettifier.vue')['default']
|
||||
HtmlToMarkdown: typeof import('./src/tools/html-to-markdown/html-to-markdown.vue')['default']
|
||||
HtmlWysiwygEditor: typeof import('./src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue')['default']
|
||||
HtpasswdGenerator: typeof import('./src/tools/htpasswd-generator/htpasswd-generator.vue')['default']
|
||||
HttpStatusCodes: typeof import('./src/tools/http-status-codes/http-status-codes.vue')['default']
|
||||
IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default']
|
||||
IcalGenerator: typeof import('./src/tools/ical-generator/ical-generator.vue')['default']
|
||||
IcalMerger: typeof import('./src/tools/ical-merger/ical-merger.vue')['default']
|
||||
IcalParser: typeof import('./src/tools/ical-parser/ical-parser.vue')['default']
|
||||
IcoConverter: typeof import('./src/tools/ico-converter/ico-converter.vue')['default']
|
||||
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
|
||||
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
|
||||
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
|
||||
@@ -101,69 +161,162 @@ declare module '@vue/runtime-core' {
|
||||
IconMdiSearch: typeof import('~icons/mdi/search')['default']
|
||||
IconMdiTranslate: typeof import('~icons/mdi/translate')['default']
|
||||
IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']
|
||||
ImageConverter: typeof import('./src/tools/image-converter/image-converter.vue')['default']
|
||||
ImageExifReader: typeof import('./src/tools/image-exif-reader/image-exif-reader.vue')['default']
|
||||
ImageResizer: typeof import('./src/tools/image-resizer/image-resizer.vue')['default']
|
||||
ImageToAsciiArt: typeof import('./src/tools/image-to-ascii-art/image-to-ascii-art.vue')['default']
|
||||
ImageToCss: typeof import('./src/tools/image-to-css/image-to-css.vue')['default']
|
||||
InputCopyable: typeof import('./src/components/InputCopyable.vue')['default']
|
||||
IntegerBaseConverter: typeof import('./src/tools/integer-base-converter/integer-base-converter.vue')['default']
|
||||
IntegersToIp: typeof import('./src/tools/integers-to-ip/integers-to-ip.vue')['default']
|
||||
IpCidrToRange: typeof import('./src/tools/ip-cidr-to-range/ip-cidr-to-range.vue')['default']
|
||||
IpGeoLocation: typeof import('./src/tools/ip-geo-location/ip-geo-location.vue')['default']
|
||||
IpIncludeExclude: typeof import('./src/tools/ip-include-exclude/ip-include-exclude.vue')['default']
|
||||
IpRangeToCidr: typeof import('./src/tools/ip-range-to-cidr/ip-range-to-cidr.vue')['default']
|
||||
Ipv4AddressConverter: typeof import('./src/tools/ipv4-address-converter/ipv4-address-converter.vue')['default']
|
||||
Ipv4RangeExpander: typeof import('./src/tools/ipv4-range-expander/ipv4-range-expander.vue')['default']
|
||||
Ipv4SubnetCalculator: typeof import('./src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.vue')['default']
|
||||
Ipv6AddressConverter: typeof import('./src/tools/ipv6-address-converter/ipv6-address-converter.vue')['default']
|
||||
Ipv6SubnetCalculator: typeof import('./src/tools/ipv6-subnet-calculator/ipv6-subnet-calculator.vue')['default']
|
||||
Ipv6UlaGenerator: typeof import('./src/tools/ipv6-ula-generator/ipv6-ula-generator.vue')['default']
|
||||
IsbnValidatorAndParser: typeof import('./src/tools/isbn-validator-and-parser/isbn-validator-and-parser.vue')['default']
|
||||
Iso3166Searcher: typeof import('./src/tools/iso-3166-searcher/iso-3166-searcher.vue')['default']
|
||||
JavascriptPrettifier: typeof import('./src/tools/javascript-prettifier/javascript-prettifier.vue')['default']
|
||||
JavascriptToJson: typeof import('./src/tools/javascript-to-json/javascript-to-json.vue')['default']
|
||||
JqMemo: typeof import('./src/tools/jq-memo/jq-memo.md')['default']
|
||||
JqTester: typeof import('./src/tools/jq-tester/jq-tester.vue')['default']
|
||||
JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']
|
||||
JsonEditor: typeof import('./src/tools/json-editor/json-editor.vue')['default']
|
||||
JsonEscaper: typeof import('./src/tools/json-escaper/json-escaper.vue')['default']
|
||||
JsonLinter: typeof import('./src/tools/json-linter/json-linter.vue')['default']
|
||||
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
||||
JsonpathMemo: typeof import('./src/tools/jsonpath-memo/jsonpath-memo.md')['default']
|
||||
JsonSizeAnalyzer: typeof import('./src/tools/json-size-analyzer/json-size-analyzer.vue')['default']
|
||||
JsonSortMaster: typeof import('./src/tools/json-sort-master/json-sort-master.vue')['default']
|
||||
JsonStringConverter: typeof import('./src/tools/json-string-converter/json-string-converter.vue')['default']
|
||||
JsonToCsharp: typeof import('./src/tools/json-to-csharp/json-to-csharp.vue')['default']
|
||||
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
|
||||
JsonToGo: typeof import('./src/tools/json-to-go/json-to-go.vue')['default']
|
||||
JsonToJava: typeof import('./src/tools/json-to-java/json-to-java.vue')['default']
|
||||
JsonToJavascript: typeof import('./src/tools/json-to-javascript/json-to-javascript.vue')['default']
|
||||
JsonToObject: typeof import('./src/tools/json-to-object/json-to-object.vue')['default']
|
||||
JsonToPhpArray: typeof import('./src/tools/json-to-php-array/json-to-php-array.vue')['default']
|
||||
JsonToSchema: typeof import('./src/tools/json-to-schema/json-to-schema.vue')['default']
|
||||
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
|
||||
JsonToTs: typeof import('./src/tools/json-to-ts/json-to-ts.vue')['default']
|
||||
JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default']
|
||||
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
|
||||
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
|
||||
JsUnobfuscator: typeof import('./src/tools/js-unobfuscator/js-unobfuscator.vue')['default']
|
||||
JwtGenerator: typeof import('./src/tools/jwt-generator/jwt-generator.vue')['default']
|
||||
JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']
|
||||
KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default']
|
||||
LengthConverter: typeof import('./src/tools/length-converter/length-converter.vue')['default']
|
||||
ListComparer: typeof import('./src/tools/list-comparer/list-comparer.vue')['default']
|
||||
ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default']
|
||||
LocaleSelector: typeof import('./src/modules/i18n/components/locale-selector.vue')['default']
|
||||
LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default']
|
||||
LuhnValidator: typeof import('./src/tools/luhn-validator/luhn-validator.vue')['default']
|
||||
MacAddressConverter: typeof import('./src/tools/mac-address-converter/mac-address-converter.vue')['default']
|
||||
MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default']
|
||||
MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default']
|
||||
ManyUnitsConverter: typeof import('./src/tools/many-units-converter/many-units-converter.vue')['default']
|
||||
MarkdownCheatsheet: typeof import('./src/tools/markdown-cheatsheet/markdown-cheatsheet.vue')['default']
|
||||
MarkdownEditor: typeof import('./src/tools/markdown-editor/markdown-editor.vue')['default']
|
||||
MarkdownTocGenerator: typeof import('./src/tools/markdown-toc-generator/markdown-toc-generator.vue')['default']
|
||||
MarkdownToHtml: typeof import('./src/tools/markdown-to-html/markdown-to-html.vue')['default']
|
||||
MassConverter: typeof import('./src/tools/mass-converter/mass-converter.vue')['default']
|
||||
MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default']
|
||||
MathFormatsConverter: typeof import('./src/tools/math-formats-converter/math-formats-converter.vue')['default']
|
||||
MathOcr: typeof import('./src/tools/math-ocr/math-ocr.vue')['default']
|
||||
'MdMemo.content': typeof import('./src/tools/markdown-cheatsheet/md-memo.content.md')['default']
|
||||
MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']
|
||||
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
|
||||
MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default']
|
||||
MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']
|
||||
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
|
||||
MicTester: typeof import('./src/tools/mic-tester/mic-tester.vue')['default']
|
||||
MimeConverter: typeof import('./src/tools/mime-converter/mime-converter.vue')['default']
|
||||
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
|
||||
MongoObjectidConverter: typeof import('./src/tools/mongo-objectid-converter/mongo-objectid-converter.vue')['default']
|
||||
MorseConverter: typeof import('./src/tools/morse-converter/morse-converter.vue')['default']
|
||||
MultiLinkDownloader: typeof import('./src/tools/multi-link-downloader/multi-link-downloader.vue')['default']
|
||||
MyIp: typeof import('./src/tools/my-ip/my-ip.vue')['default']
|
||||
NanoidGenerator: typeof import('./src/tools/nanoid-generator/nanoid-generator.vue')['default']
|
||||
NanoMemo: typeof import('./src/tools/nano-memo/nano-memo.vue')['default']
|
||||
'NanoMemo.content': typeof import('./src/tools/nano-memo/nano-memo.content.md')['default']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NginxFormatter: typeof import('./src/tools/nginx-formatter/nginx-formatter.vue')['default']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NInputGroup: typeof import('naive-ui')['NInputGroup']
|
||||
NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NRadio: typeof import('naive-ui')['NRadio']
|
||||
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
OcrImage: typeof import('./src/tools/ocr-image/ocr-image.vue')['default']
|
||||
Option43Generator: typeof import('./src/tools/option43-generator/option43-generator.vue')['default']
|
||||
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
|
||||
OutlookParser: typeof import('./src/tools/outlook-parser/outlook-parser.vue')['default']
|
||||
PassphraseGenerator: typeof import('./src/tools/passphrase-generator/passphrase-generator.vue')['default']
|
||||
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
|
||||
PasteAsMarkdown: typeof import('./src/tools/paste-as-markdown/paste-as-markdown.vue')['default']
|
||||
PdfEncrypt: typeof import('./src/tools/pdf-encrypt/pdf-encrypt.vue')['default']
|
||||
PdfLinearize: typeof import('./src/tools/pdf-linearize/pdf-linearize.vue')['default']
|
||||
PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default']
|
||||
PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default']
|
||||
PdfUnlock: typeof import('./src/tools/pdf-unlock/pdf-unlock.vue')['default']
|
||||
PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default']
|
||||
PgpEncryption: typeof import('./src/tools/pgp-encryption/pgp-encryption.vue')['default']
|
||||
PgpKeygen: typeof import('./src/tools/pgp-keygen/pgp-keygen.vue')['default']
|
||||
PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default']
|
||||
PhpArrayToJson: typeof import('./src/tools/php-array-to-json/php-array-to-json.vue')['default']
|
||||
PinCodeGenerator: typeof import('./src/tools/pin-code-generator/pin-code-generator.vue')['default']
|
||||
PortNumbers: typeof import('./src/tools/port-numbers/port-numbers.vue')['default']
|
||||
Potrace: typeof import('./src/tools/potrace/potrace.vue')['default']
|
||||
PowerConverter: typeof import('./src/tools/power-converter/power-converter.vue')['default']
|
||||
PressureConverter: typeof import('./src/tools/pressure-converter/pressure-converter.vue')['default']
|
||||
PropertiesToYaml: typeof import('./src/tools/properties-to-yaml/properties-to-yaml.vue')['default']
|
||||
PunycodeConverter: typeof import('./src/tools/punycode-converter/punycode-converter.vue')['default']
|
||||
QrCodeDecoder: typeof import('./src/tools/qr-code-decoder/qr-code-decoder.vue')['default']
|
||||
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
|
||||
RaidCalculator: typeof import('./src/tools/raid-calculator/raid-calculator.vue')['default']
|
||||
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
|
||||
RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default']
|
||||
'RegexMemo.content': typeof import('./src/tools/regex-memo/regex-memo.content.md')['default']
|
||||
RegexTester: typeof import('./src/tools/regex-tester/regex-tester.vue')['default']
|
||||
RemoveExif: typeof import('./src/tools/remove-exif/remove-exif.vue')['default']
|
||||
ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']
|
||||
RmbNumbers: typeof import('./src/tools/rmb-numbers/rmb-numbers.vue')['default']
|
||||
RomanNumeralConverter: typeof import('./src/tools/roman-numeral-converter/roman-numeral-converter.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
RsaEcdsaSigning: typeof import('./src/tools/rsa-ecdsa-signing/rsa-ecdsa-signing.vue')['default']
|
||||
RsaEncryption: typeof import('./src/tools/rsa-encryption/rsa-encryption.vue')['default']
|
||||
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
|
||||
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
|
||||
SensitiveDataMasker: typeof import('./src/tools/sensitive-data-masker/sensitive-data-masker.vue')['default']
|
||||
SipAuth: typeof import('./src/tools/sip-auth/sip-auth.vue')['default']
|
||||
SlaCalculator: typeof import('./src/tools/sla-calculator/sla-calculator.vue')['default']
|
||||
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
|
||||
SmartRawConverter: typeof import('./src/tools/smart-raw-converter/smart-raw-converter.vue')['default']
|
||||
SmartTextReplacer: typeof import('./src/tools/smart-text-replacer/smart-text-replacer.vue')['default']
|
||||
SnowflakeIdExtractor: typeof import('./src/tools/snowflake-id-extractor/snowflake-id-extractor.vue')['default']
|
||||
SoftwareLicenceCompatibility: typeof import('./src/tools/software-licence-compatibility/software-licence-compatibility.vue')['default']
|
||||
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
||||
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
||||
SslCertConverter: typeof import('./src/tools/ssl-cert-converter/ssl-cert-converter.vue')['default']
|
||||
StacktracePrettier: typeof import('./src/tools/stacktrace-prettier/stacktrace-prettier.vue')['default']
|
||||
StringObfuscator: typeof import('./src/tools/string-obfuscator/string-obfuscator.vue')['default']
|
||||
SvgPlaceholderGenerator: typeof import('./src/tools/svg-placeholder-generator/svg-placeholder-generator.vue')['default']
|
||||
TemperatureConverter: typeof import('./src/tools/temperature-converter/temperature-converter.vue')['default']
|
||||
@@ -173,21 +326,44 @@ declare module '@vue/runtime-core' {
|
||||
TextToBinary: typeof import('./src/tools/text-to-binary/text-to-binary.vue')['default']
|
||||
TextToNatoAlphabet: typeof import('./src/tools/text-to-nato-alphabet/text-to-nato-alphabet.vue')['default']
|
||||
TextToUnicode: typeof import('./src/tools/text-to-unicode/text-to-unicode.vue')['default']
|
||||
TextToUnicodeNames: typeof import('./src/tools/text-to-unicode-names/text-to-unicode-names.vue')['default']
|
||||
TimezoneConverter: typeof import('./src/tools/timezone-converter/timezone-converter.vue')['default']
|
||||
TokenDisplay: typeof import('./src/tools/otp-code-generator-and-validator/token-display.vue')['default']
|
||||
'TokenGenerator.tool': typeof import('./src/tools/token-generator/token-generator.tool.vue')['default']
|
||||
TomlToJson: typeof import('./src/tools/toml-to-json/toml-to-json.vue')['default']
|
||||
TomlToYaml: typeof import('./src/tools/toml-to-yaml/toml-to-yaml.vue')['default']
|
||||
'Tool.layout': typeof import('./src/layouts/tool.layout.vue')['default']
|
||||
ToolCard: typeof import('./src/components/ToolCard.vue')['default']
|
||||
TorrentToMagnet: typeof import('./src/tools/torrent-to-magnet/torrent-to-magnet.vue')['default']
|
||||
TtlCalculator: typeof import('./src/tools/ttl-calculator/ttl-calculator.vue')['default']
|
||||
UlidGenerator: typeof import('./src/tools/ulid-generator/ulid-generator.vue')['default']
|
||||
UnicodeCharactersToJavaEntities: typeof import('./src/tools/unicode-characters-to-java-entities-converter/unicode-characters-to-java-entities.vue')['default']
|
||||
UnicodeFormatter: typeof import('./src/tools/unicode-formatter/unicode-formatter.vue')['default']
|
||||
UnicodeSearch: typeof import('./src/tools/unicode-search/unicode-search.vue')['default']
|
||||
UnitsConverter: typeof import('./src/components/UnitsConverter.vue')['default']
|
||||
UrlCleaner: typeof import('./src/tools/url-cleaner/url-cleaner.vue')['default']
|
||||
UrlEncoder: typeof import('./src/tools/url-encoder/url-encoder.vue')['default']
|
||||
UrlFanger: typeof import('./src/tools/url-fanger/url-fanger.vue')['default']
|
||||
UrlParser: typeof import('./src/tools/url-parser/url-parser.vue')['default']
|
||||
UrlTextFragmentMaker: typeof import('./src/tools/url-text-fragment-maker/url-text-fragment-maker.vue')['default']
|
||||
UserAgentParser: typeof import('./src/tools/user-agent-parser/user-agent-parser.vue')['default']
|
||||
UserAgentResultCards: typeof import('./src/tools/user-agent-parser/user-agent-result-cards.vue')['default']
|
||||
UtmUrlGenerator: typeof import('./src/tools/utm-url-generator/utm-url-generator.vue')['default']
|
||||
UuidConverter: typeof import('./src/tools/uuid-converter/uuid-converter.vue')['default']
|
||||
UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']
|
||||
VatValidator: typeof import('./src/tools/vat-validator/vat-validator.vue')['default']
|
||||
VolumeConverter: typeof import('./src/tools/volume-converter/volume-converter.vue')['default']
|
||||
WebsocketTester: typeof import('./src/tools/websocket-tester/websocket-tester.vue')['default']
|
||||
WeekNumberConverter: typeof import('./src/tools/week-number-converter/week-number-converter.vue')['default']
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
WpaPskGenerator: typeof import('./src/tools/wpa-psk-generator/wpa-psk-generator.vue')['default']
|
||||
X509CertificateGenerator: typeof import('./src/tools/x509-certificate-generator/x509-certificate-generator.vue')['default']
|
||||
XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']
|
||||
XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default']
|
||||
XpathMemo: typeof import('./src/tools/xpath-memo/xpath-memo.md')['default']
|
||||
XpathTester: typeof import('./src/tools/xpath-tester/xpath-tester.vue')['default']
|
||||
XsltTester: typeof import('./src/tools/xslt-tester/xslt-tester.vue')['default']
|
||||
XVrSpamcauseDecoder: typeof import('./src/tools/x-vr-spamcause-decoder/x-vr-spamcause-decoder.vue')['default']
|
||||
YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']
|
||||
YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']
|
||||
YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
it-tools:
|
||||
container_name: it-tools
|
||||
image: ghcr.io/sharevb/it-tools:nightly
|
||||
pull_policy: always
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8080:80
|
||||
+12
-3
@@ -57,7 +57,7 @@ about:
|
||||
erstellt und wird von Vercel gehostet und kontinuierlich bereitgestellt. In
|
||||
einigen Tools werden Drittanbieter-Open-Source-Bibliotheken verwendet. Du
|
||||
findest die vollständige Liste in der
|
||||
[package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json)-Datei
|
||||
[package.json](https://github.com/sharevb/it-tools/blob/main/package.json)-Datei
|
||||
des Repositorys.
|
||||
|
||||
## Einen Fehler gefunden? Ein Tool fehlt?
|
||||
@@ -65,12 +65,12 @@ about:
|
||||
Wenn du ein Tool benötigst, das hier noch nicht vorhanden ist, und du
|
||||
denkst, dass es nützlich sein könnte, bist du herzlich eingeladen, einen
|
||||
Feature-Request im
|
||||
[Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)
|
||||
[Issues-Bereich](https://github.com/sharevb/it-tools/issues/new/choose)
|
||||
im GitHub-Repository einzureichen.
|
||||
|
||||
Und wenn du einen Fehler gefunden hast oder etwas nicht wie erwartet
|
||||
funktioniert, melde bitte einen Fehler im
|
||||
[Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)
|
||||
[Issues-Bereich](https://github.com/sharevb/it-tools/issues/new/choose)
|
||||
im GitHub-Repository.
|
||||
favoriteButton:
|
||||
remove: Aus Favoriten entfernen
|
||||
@@ -282,6 +282,11 @@ tools:
|
||||
mime-types:
|
||||
title: MIME-Typen
|
||||
description: Konvertiere MIME-Typen in Erweiterungen und umgekehrt.
|
||||
mic-tester:
|
||||
title: Mikrofonprufung
|
||||
description: Wiedergabe und Visualisierung des Tons von Ihrem Mikrofon, mit einer Sekunde Verzögerung hinzugefügt
|
||||
start-button-text: Mikrofon-Wiedergabe Starten
|
||||
stop-button-text: Mikrofon-Wiedergabe Stoppen
|
||||
toml-to-json:
|
||||
title: TOML zu JSON
|
||||
description: Parse und konvertiere TOML zu JSON.
|
||||
@@ -400,6 +405,10 @@ tools:
|
||||
description: >-
|
||||
Konvertiere Zahlen zwischen verschiedenen Basen (Dezimal, Hexadezimal,
|
||||
Binär, Oktal, Base64, ...).
|
||||
floating-point-converter:
|
||||
title: Konverter für Fließkommazahlen
|
||||
description: >-
|
||||
Konvertiere eine Dezimalzahl in eine IEEE-754 binäre Fließkommazahl oder umgekehrt.
|
||||
yaml-to-json-converter:
|
||||
title: YAML zu JSON
|
||||
description: Konvertiere YAML einfach in JSON mit diesem Live-Online-Konverter.
|
||||
|
||||
+94
-7
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Technologies
|
||||
|
||||
IT Tools is made in Vue.js (Vue 3) with the the Naive UI component library and is hosted and continuously deployed by Vercel. Third-party open-source libraries are used in some tools, you may find the complete list in the [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) file of the repository.
|
||||
IT Tools is made in Vue.js (Vue 3) with the the Naive UI component library and is hosted and continuously deployed by Vercel. Third-party open-source libraries are used in some tools, you may find the complete list in the [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) file of the repository.
|
||||
|
||||
## Found a bug? A tool is missing?
|
||||
|
||||
If you need a tool that is currently not present here, and you think can be useful, you are welcome to submit a feature request in the [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) in the GitHub repository.
|
||||
If you need a tool that is currently not present here, and you think can be useful, you are welcome to submit a feature request in the [issues section](https://github.com/sharevb/it-tools/issues/new/choose) in the GitHub repository.
|
||||
|
||||
And if you found a bug, or something doesn't work as expected, please file a bug report in the [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) in the GitHub repository.
|
||||
And if you found a bug, or something doesn't work as expected, please file a bug report in the [issues section](https://github.com/sharevb/it-tools/issues/new/choose) in the GitHub repository.
|
||||
|
||||
404:
|
||||
notFound: '404 Not Found'
|
||||
@@ -105,6 +105,10 @@ tools:
|
||||
title: JSON to CSV
|
||||
description: Convert JSON to CSV with automatic header detection.
|
||||
|
||||
csv-to-json:
|
||||
title: CSV to JSON
|
||||
description: Convert CSV to JSON with automatic header detection.
|
||||
|
||||
camera-recorder:
|
||||
title: Camera recorder
|
||||
description: Take a picture or record a video from your webcam or camera.
|
||||
@@ -199,7 +203,15 @@ tools:
|
||||
|
||||
json-to-yaml-converter:
|
||||
title: JSON to YAML converter
|
||||
description: Simply convert JSON to YAML with this online live converter.
|
||||
description: Simply convert JSON to YAML with this live online converter.
|
||||
|
||||
json-to-javascript:
|
||||
title: JSON to JS converter
|
||||
description: Simply convert JSON to Javascript object with this live online converter.
|
||||
|
||||
javascript-to-json:
|
||||
title: JS to JSON converter
|
||||
description: Simply convert Javascript object to JSON with this live online converter.
|
||||
|
||||
url-parser:
|
||||
title: URL parser
|
||||
@@ -241,6 +253,12 @@ tools:
|
||||
title: MIME types
|
||||
description: Convert MIME types to file extensions and vice-versa.
|
||||
|
||||
mic-tester:
|
||||
title: Microphone Tester
|
||||
description: Replay and Visualize sound from Your microphone, with added one second of delay
|
||||
start-button-text: Start replaying microphone
|
||||
stop-button-text: Stop replaying microphone
|
||||
|
||||
toml-to-json:
|
||||
title: TOML to JSON
|
||||
description: Parse and convert TOML to JSON.
|
||||
@@ -299,7 +317,7 @@ tools:
|
||||
|
||||
phone-parser-and-formatter:
|
||||
title: Phone parser and formatter
|
||||
description: Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc.
|
||||
description: Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc. Forge link to send message in WhatsApp and SMS.
|
||||
|
||||
ipv4-subnet-calculator:
|
||||
title: IPv4 subnet calculator
|
||||
@@ -321,6 +339,10 @@ tools:
|
||||
title: JSON to TOML
|
||||
description: Parse and convert JSON to TOML.
|
||||
|
||||
json-to-ts:
|
||||
title: JSON to TS
|
||||
description: Parse and convert JSON to TS.
|
||||
|
||||
device-information:
|
||||
title: Device information
|
||||
description: Get information about your current device (screen size, pixel-ratio, user agent, ...)
|
||||
@@ -329,10 +351,18 @@ tools:
|
||||
title: PDF signature checker
|
||||
description: Verify the signatures of a PDF file. A signed PDF file contains one or more signatures that may be used to determine whether the contents of the file have been altered since the file was signed.
|
||||
|
||||
json-sort-master:
|
||||
title: JSON sort master
|
||||
description: Sort your JSON by keys and values.
|
||||
|
||||
json-minify:
|
||||
title: JSON minify
|
||||
description: Minify and compress your JSON by removing unnecessary whitespace.
|
||||
|
||||
json-string-converter:
|
||||
title: JSON string converter
|
||||
description: Convert your plain text or JavaScript objects into JSON string format and vice versa.
|
||||
|
||||
ulid-generator:
|
||||
title: ULID generator
|
||||
description: Generate random Universally Unique Lexicographically Sortable Identifier (ULID).
|
||||
@@ -345,6 +375,10 @@ tools:
|
||||
title: Integer base converter
|
||||
description: Convert a number between different bases (decimal, hexadecimal, binary, octal, base64, ...)
|
||||
|
||||
floating-point-converter:
|
||||
title: Floating point number converter
|
||||
description: Convert a decimal number to a IEEE 754 binary floating point number or vice versa.
|
||||
|
||||
yaml-to-json-converter:
|
||||
title: YAML to JSON converter
|
||||
description: Simply convert YAML to JSON with this online live converter.
|
||||
@@ -353,6 +387,22 @@ tools:
|
||||
title: UUIDs generator
|
||||
description: A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!).
|
||||
|
||||
nanoid-generator:
|
||||
title: NanoIDs generator
|
||||
description: Generate random, unique, and URL-friendly IDs for your applications.
|
||||
uppercase: Uppercase
|
||||
lowercase: Lowercase
|
||||
numbers: Numbers
|
||||
symbols: Symbols
|
||||
excludeLookalikes: Exclude lookalikes
|
||||
length: Length
|
||||
quantity: Quantity
|
||||
copied: NanoID copied to the clipboard
|
||||
button:
|
||||
copy: Copy
|
||||
refresh: Refresh
|
||||
|
||||
|
||||
ipv4-address-converter:
|
||||
title: IPv4 address converter
|
||||
description: Convert an IP address into decimal, binary, hexadecimal, or even an IPv6 representation of it.
|
||||
@@ -390,5 +440,42 @@ tools:
|
||||
description: Encode text to URL-encoded format (also known as "percent-encoded"), or decode from it.
|
||||
|
||||
text-to-binary:
|
||||
title: Text to ASCII binary
|
||||
description: Convert text to its ASCII binary representation and vice-versa.
|
||||
title: Text to UTF-8 binary
|
||||
description: Convert text to its UTF-8 binary representation and vice-versa.
|
||||
|
||||
image-resizer:
|
||||
title: Image resizer
|
||||
description: Convert the width and height of an image file, preview, and download it in a desired format (.jpg, .jpeg, .png, .bmp, .ico, .svg)
|
||||
|
||||
json-to-object:
|
||||
title: JSON to object
|
||||
description: Parse and convert JSON to object.
|
||||
|
||||
multi-link-downloader:
|
||||
title: Multi link downloader
|
||||
description: Asynchronously downloads from multiple links into a zip file while a single link downloads directly. (Requires an internet connection)
|
||||
|
||||
unicode-to-java-entities:
|
||||
title: Unicode Characters to Java Entities Converter
|
||||
description: Unicode Characters to Java Entities Converter and vice-versa
|
||||
|
||||
sip-auth:
|
||||
password: SIP password
|
||||
password-tips: Enter a password...
|
||||
message: SIP message
|
||||
message-tips: Paste your SIP message here...
|
||||
result: Result
|
||||
sucess: Sucess
|
||||
failure: Failure
|
||||
|
||||
uuid-converter:
|
||||
title: UUID converter
|
||||
description: Converts a UUID with and without a hyphen to other common SQL notations and back.
|
||||
|
||||
uuid: UUID
|
||||
uuidhexupper: HEX notation (upper)
|
||||
uuidhexlower: HEX notation (lower)
|
||||
uuidversion: RFC Version
|
||||
input:
|
||||
label: Your Input
|
||||
placeholder: Your UUID with/without hyphen
|
||||
+16
-8
@@ -5,8 +5,8 @@ home:
|
||||
allTools: 'Todas las herramientas'
|
||||
favoritesDndToolTip: 'Arrastra y suelta para reordenar favoritos'
|
||||
subtitle: 'Herramientas practicas para desarrolladores'
|
||||
toggleMenu: 'Toggle menu'
|
||||
home: Home
|
||||
toggleMenu: 'Alternar menú'
|
||||
home: Inicio
|
||||
uiLib: 'UI Lib'
|
||||
support: 'Apoyar el desarrollo de IT-Tools'
|
||||
buyMeACoffee: 'Buy me a coffee'
|
||||
@@ -37,19 +37,19 @@ about:
|
||||
|
||||
## Tecnologías
|
||||
|
||||
IT Tools está creado en Vue.js (Vue 3) con la biblioteca de componentes Naive UI y Vercel lo aloja y lo implementa continuamente. En algunas herramientas se utilizan bibliotecas de código abierto de terceros; puede encontrar la lista completa en [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) archivo del repositorio.
|
||||
IT Tools está creado en Vue.js (Vue 3) con la biblioteca de componentes Naive UI y Vercel lo aloja y lo implementa continuamente. En algunas herramientas se utilizan bibliotecas de código abierto de terceros; puede encontrar la lista completa en [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) archivo del repositorio.
|
||||
|
||||
## ¿Encontraste un error? ¿Falta una herramienta?
|
||||
|
||||
Si necesita una herramienta que actualmente no está presente aquí y cree que puede ser útil, puede enviar una solicitud de función en el [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) en el repositorio de GitHub.
|
||||
Si necesita una herramienta que actualmente no está presente aquí y cree que puede ser útil, puede enviar una solicitud de función en el [issues section](https://github.com/sharevb/it-tools/issues/new/choose) en el repositorio de GitHub.
|
||||
|
||||
Y si encontró un error o algo no funciona como se esperaba, presente un reporte de error en el [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) en el repositorio de GitHub.
|
||||
Y si encontró un error o algo no funciona como se esperaba, presente un reporte de error en el [issues section](https://github.com/sharevb/it-tools/issues/new/choose) en el repositorio de GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Not Found'
|
||||
sorry: 'Lo sentimos, esta página no parece existir'
|
||||
maybe: 'Tal vez el caché esté haciendo cosas raras, ¿probamos a refrescar forzosamente?'
|
||||
backHome: 'Back home'
|
||||
backHome: 'Volver al inicio'
|
||||
favoriteButton:
|
||||
remove: 'Quitar de favoritos'
|
||||
add: 'Añadir a favoritos'
|
||||
@@ -61,12 +61,20 @@ tools:
|
||||
categories:
|
||||
favorite-tools: 'Tus herramientas favoritas'
|
||||
crypto: Crypto
|
||||
converter: Converter
|
||||
converter: Conversor
|
||||
web: Web
|
||||
images and videos: 'Images & Videos'
|
||||
images and videos: 'Imágenes y vídeos'
|
||||
development: Development
|
||||
network: Network
|
||||
math: Math
|
||||
measurement: Measurement
|
||||
text: Text
|
||||
data: Data
|
||||
|
||||
json-sort-master:
|
||||
title: Maestro de clasificación JSON
|
||||
description: Ordena tu JSON por claves y valores.
|
||||
|
||||
csv-to-json:
|
||||
title: CSV a JSON
|
||||
description: Convierte CSV a JSON con detección automática de cabeceras.
|
||||
+10
-2
@@ -36,11 +36,11 @@ about:
|
||||
|
||||
## Technologies
|
||||
|
||||
IT Tools est fait en Vue.js (Vue 3) avec la bibliothèque de composants Naive UI et est hébergé et déployé en continu par Vercel. Des bibliothèques open-source tierces sont utilisées dans certains outils, vous pouvez trouver la liste complète dans le fichier [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) du dépôt.
|
||||
IT Tools est fait en Vue.js (Vue 3) avec la bibliothèque de composants Naive UI et est hébergé et déployé en continu par Vercel. Des bibliothèques open-source tierces sont utilisées dans certains outils, vous pouvez trouver la liste complète dans le fichier [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) du dépôt.
|
||||
|
||||
## Vous avez trouvé un bug ? Un outil manque ?
|
||||
|
||||
Si vous avez besoin d'un outil qui n'est pas encore présent ici, et que vous pensez qu'il peut être utile, vous êtes invité à soumettre une demande de fonctionnalité dans la [section issue](https://github.com/CorentinTh/it-tools/issues/new/choose) du dépôt GitHub.
|
||||
Si vous avez besoin d'un outil qui n'est pas encore présent ici, et que vous pensez qu'il peut être utile, vous êtes invité à soumettre une demande de fonctionnalité dans la [section issue](https://github.com/sharevb/it-tools/issues/new/choose) du dépôt GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Not Found'
|
||||
@@ -80,3 +80,11 @@ tools:
|
||||
copied: Le token a été copié
|
||||
length: Longueur
|
||||
tokenPlaceholder: Le token...
|
||||
|
||||
csv-to-json:
|
||||
title: CSV vers JSON
|
||||
description: Convertit les fichiers CSV en JSON avec détection automatique des en-têtes.
|
||||
|
||||
json-sort-master:
|
||||
title: Maître de tri JSON
|
||||
description: Triez votre JSON par clés et valeurs.
|
||||
+3
-3
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Teknologier
|
||||
|
||||
IT Tools er laget i Vue.js (Vue 3) med Naive UI komponent bibliotektet og er hosted og kontinuerlig deployet av Vercel. Tredjeparts åpen-kildekode biblioteker er brukt i noen verktøy, du kan finne den komplette listen i [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) filen i depoet.
|
||||
IT Tools er laget i Vue.js (Vue 3) med Naive UI komponent bibliotektet og er hosted og kontinuerlig deployet av Vercel. Tredjeparts åpen-kildekode biblioteker er brukt i noen verktøy, du kan finne den komplette listen i [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) filen i depoet.
|
||||
|
||||
## Funnet en feil? Et verktøy som mangler?
|
||||
|
||||
Hvis du trenger et verktøy som foreløpig ikke er tilgjengelig her, og du tenker det kan være nyttig for andre, så er du velkommen til å legge til en funksjonsforespørsel i [problem seksjonen](https://github.com/CorentinTh/it-tools/issues/new/choose) i github-depotet.
|
||||
Hvis du trenger et verktøy som foreløpig ikke er tilgjengelig her, og du tenker det kan være nyttig for andre, så er du velkommen til å legge til en funksjonsforespørsel i [problem seksjonen](https://github.com/sharevb/it-tools/issues/new/choose) i github-depotet.
|
||||
|
||||
Og hvis du har funnet en feil, eller noe ikke oppfører seg som forventet, vennligst send inn en feilrapport i [problem seksjonen](https://github.com/CorentinTh/it-tools/issues/new/choose) i github-depotet.
|
||||
Og hvis du har funnet en feil, eller noe ikke oppfører seg som forventet, vennligst send inn en feilrapport i [problem seksjonen](https://github.com/sharevb/it-tools/issues/new/choose) i github-depotet.
|
||||
|
||||
404:
|
||||
notFound: '404 ikke funnet'
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
home:
|
||||
categories:
|
||||
newestTools: 'Najnowsze narzędzia'
|
||||
favoriteTools: 'Twoje ulubione narzędzia'
|
||||
allTools: 'Wszystkie narzędzia'
|
||||
subtitle: 'Narzędzia dla programistów'
|
||||
toggleMenu: 'Menu'
|
||||
home: Strona główna
|
||||
uiLib: 'UI Lib'
|
||||
buyMeACoffee: 'Wesprzyj IT-Tools'
|
||||
follow:
|
||||
title: 'Podoba Ci się it-tools?'
|
||||
p1: 'Wesprzyj nas gwiazdką na'
|
||||
githubRepository: "repozytorium GitHub IT-Tools"
|
||||
p2: 'lub śledź nas na'
|
||||
twitterAccount: "koncie Twitter IT-Tools"
|
||||
thankYou: 'Dziękujemy!'
|
||||
nav:
|
||||
github: 'Repozytorium GitHub'
|
||||
githubRepository: "Repozytorium GitHub IT-Tools"
|
||||
twitter: 'Konto Twitter'
|
||||
twitterAccount: "Konto Twitter IT-Tools"
|
||||
about: "O IT-Tools"
|
||||
aboutLabel: 'O nas'
|
||||
darkMode: 'Tryb ciemny'
|
||||
lightMode: 'Tryb jasny'
|
||||
mode: 'Przełącz tryb ciemny/jasny'
|
||||
about:
|
||||
content: >
|
||||
# O IT-Tools
|
||||
|
||||
Ta wspaniała strona, stworzona z ❤ przez [Corentina Thomasseta](https://corentin.tech?utm_source=it-tools&utm_medium=about), zbiera przydatne narzędzia dla programistów i osób pracujących w IT. Jeśli uznasz ją za pomocną, nie zapomnij się nią podzielić i dodać do ulubionych!
|
||||
|
||||
IT Tools jest open-source (na licencji MIT) i darmowe, i takie pozostanie, ale koszty związane z jego hostingiem i odnawianiem domeny spoczywają na mnie. Jeśli chcesz wesprzeć moją pracę i zmotywować mnie do dodania kolejnych narzędzi, zachęcam do [wsparcia](https://www.buymeacoffee.com/cthmsst).
|
||||
|
||||
## Technologie
|
||||
|
||||
IT Tools zostało stworzone w Vue.js (Vue 3) z wykorzystaniem biblioteki komponentów Naive UI i jest hostowane oraz ciągle wdrażane przez Vercel. Niektóre narzędzia korzystają z zewnętrznych bibliotek open-source, pełną listę znajdziesz w pliku [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) repozytorium.
|
||||
|
||||
## Znalazłeś błąd? Brakuje jakiegoś narzędzia?
|
||||
|
||||
Jeśli potrzebujesz narzędzia, które nie jest jeszcze dostępne, a uważasz, że mogłoby być przydatne, zapraszam do zgłoszenia propozycji funkcji w [sekcji issue](https://github.com/sharevb/it-tools/issues/new/choose) repozytorium GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Nie znaleziono'
|
||||
sorry: "Przepraszamy, ta strona nie istnieje"
|
||||
maybe: 'Może to problem z cachem, spróbuj wymusić odświeżenie?'
|
||||
backHome: "Powrót na stronę główną"
|
||||
toolCard:
|
||||
new: Nowe
|
||||
search:
|
||||
label: Szukaj
|
||||
tools:
|
||||
categories:
|
||||
favorite-tools: 'Twoje ulubione narzędzia'
|
||||
crypto: Kryptografia
|
||||
converter: Konwerter
|
||||
web: Web
|
||||
images and videos: 'Obrazy i wideo'
|
||||
development: Programowanie
|
||||
network: Sieć
|
||||
math: Matematyka
|
||||
measurement: Pomiary
|
||||
text: Tekst
|
||||
data: Dane
|
||||
|
||||
token-generator:
|
||||
title: Generator tokenów
|
||||
description: >-
|
||||
Generuje losowy ciąg znaków z wybranych przez Ciebie znaków: wielkie
|
||||
lub małe litery, cyfry i/lub symbole.
|
||||
uppercase: Wielkie litery (ABC...)
|
||||
lowercase: Małe litery (abc...)
|
||||
numbers: Cyfry (123...)
|
||||
symbols: Symbole (!-;...)
|
||||
button:
|
||||
copy: Kopiuj
|
||||
refresh: Odśwież
|
||||
copied: Token został skopiowany
|
||||
length: Długość
|
||||
tokenPlaceholder: Token...
|
||||
|
||||
mic-tester:
|
||||
title: Tester mikrofonu
|
||||
description: Odtwórz i wizualizuj dźwięk z Twojego mikrofonu, z dodaną jedną sekundą opóźnienia
|
||||
start-button-text: Odtwarzaj mikrofonu
|
||||
stop-button-text: Zatrzymaj odtwarzanie mikrofonu
|
||||
+11
-3
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Tecnologias
|
||||
|
||||
O IT Tools é feito em Vue.js (Vue 3) com a biblioteca de componentes Naive UI e é hospedado pela Vercel. Bibliotecas de código aberto de terceiros são usadas em algumas ferramentas e você pode encontrar a lista completa no arquivo [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) do repositório.
|
||||
O IT Tools é feito em Vue.js (Vue 3) com a biblioteca de componentes Naive UI e é hospedado pela Vercel. Bibliotecas de código aberto de terceiros são usadas em algumas ferramentas e você pode encontrar a lista completa no arquivo [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) do repositório.
|
||||
|
||||
## Achou um bug? Está faltando uma ferramenta?
|
||||
|
||||
Se você precisa de uma ferramenta que ainda não existe aqui e acha que pode ser útil, seu pedido será bem vindo na [seção de issues](https://github.com/CorentinTh/it-tools/issues/new/choose) no repositório do GitHub.
|
||||
Se você precisa de uma ferramenta que ainda não existe aqui e acha que pode ser útil, seu pedido será bem vindo na [seção de issues](https://github.com/sharevb/it-tools/issues/new/choose) no repositório do GitHub.
|
||||
|
||||
E se você encontrar um bug ou se algo não funcionar como esperado, por favor registre um relato de bug na [seção de issues](https://github.com/CorentinTh/it-tools/issues/new/choose) no GitHub.
|
||||
E se você encontrar um bug ou se algo não funcionar como esperado, por favor registre um relato de bug na [seção de issues](https://github.com/sharevb/it-tools/issues/new/choose) no GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Não Encontrado'
|
||||
@@ -70,3 +70,11 @@ tools:
|
||||
measurement: 'Medidas'
|
||||
text: 'Texto'
|
||||
data: 'Dados'
|
||||
|
||||
csv-to-json:
|
||||
title: CSV para JSON
|
||||
description: Converte CSV para JSON com detecção automática de cabeçalhos.
|
||||
|
||||
json-sort-master:
|
||||
title: 'Mestre de classificação JSON'
|
||||
description: 'Ordene seu JSON por chaves e valores.'
|
||||
+11
-3
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Технології
|
||||
|
||||
IT Tools виконаний на Vue.js (Vue 3) з використанням бібліотеки компонентів Naive UI і розгортаний за допомогою Vercel. У деяких інструментах використовуються сторонні відкриті бібліотеки, повний список яких ви можете знайти в файлі [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) репозиторію.
|
||||
IT Tools виконаний на Vue.js (Vue 3) з використанням бібліотеки компонентів Naive UI і розгортаний за допомогою Vercel. У деяких інструментах використовуються сторонні відкриті бібліотеки, повний список яких ви можете знайти в файлі [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) репозиторію.
|
||||
|
||||
## Знайшли баг? Відсутній інструмент?
|
||||
|
||||
Якщо вам потрібен інструмент, якого наразі немає тут, і ви вважаєте, що він може бути корисним, ви можете подати запит на додавання функції в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
Якщо вам потрібен інструмент, якого наразі немає тут, і ви вважаєте, що він може бути корисним, ви можете подати запит на додавання функції в [розділі проблем](https://github.com/sharevb/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
|
||||
А якщо ви знайшли баг або щось не працює, як очікувалося, будь ласка, подайте звіт про баг в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
А якщо ви знайшли баг або щось не працює, як очікувалося, будь ласка, подайте звіт про баг в [розділі проблем](https://github.com/sharevb/it-tools/issues/new/choose) у репозиторії GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Сторінка не знайдена'
|
||||
@@ -70,3 +70,11 @@ tools:
|
||||
measurement: Вимірювання
|
||||
text: Текст
|
||||
data: Дані
|
||||
|
||||
csv-to-json:
|
||||
title: 'CSV в JSON'
|
||||
description: 'Конвертуйте CSV в JSON з автоматичним визначенням заголовків.'
|
||||
|
||||
json-sort-master:
|
||||
title: JSON сортувальник
|
||||
description: Сортуйте ваш JSON за ключами та значеннями.
|
||||
+16
-3
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## Công nghệ
|
||||
|
||||
IT Tools được tạo ra bằng Vue.js (Vue 3) với thư viện thành phần Naive UI và được lưu trữ và triển khai liên tục bởi Vercel. Các thư viện mã nguồn mở của bên thứ ba được sử dụng trong một số công cụ, bạn có thể tìm danh sách đầy đủ trong file [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) của kho lưu trữ.
|
||||
IT Tools được tạo ra bằng Vue.js (Vue 3) với thư viện thành phần Naive UI và được lưu trữ và triển khai liên tục bởi Vercel. Các thư viện mã nguồn mở của bên thứ ba được sử dụng trong một số công cụ, bạn có thể tìm danh sách đầy đủ trong file [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) của kho lưu trữ.
|
||||
|
||||
## Phát hiện lỗi? Một công cụ bị thiếu?
|
||||
|
||||
Nếu bạn cần một công cụ hiện không có ở đây, và bạn nghĩ rằng nó có thể hữu ích, bạn được chào đón để gửi một yêu cầu tính năng trong [phần vấn đề](https://github.com/CorentinTh/it-tools/issues/new/choose) trong kho GitHub.
|
||||
Nếu bạn cần một công cụ hiện không có ở đây, và bạn nghĩ rằng nó có thể hữu ích, bạn được chào đón để gửi một yêu cầu tính năng trong [phần vấn đề](https://github.com/sharevb/it-tools/issues/new/choose) trong kho GitHub.
|
||||
|
||||
Và nếu bạn phát hiện ra một lỗi, hoặc điều gì đó không hoạt động như mong đợi, xin vui lòng gửi báo cáo lỗi trong [phần vấn đề](https://github.com/CorentinTh/it-tools/issues/new/choose) trong kho GitHub.
|
||||
Và nếu bạn phát hiện ra một lỗi, hoặc điều gì đó không hoạt động như mong đợi, xin vui lòng gửi báo cáo lỗi trong [phần vấn đề](https://github.com/sharevb/it-tools/issues/new/choose) trong kho GitHub.
|
||||
|
||||
404:
|
||||
notFound: '404 Không Tìm Thấy'
|
||||
@@ -222,6 +222,10 @@ tools:
|
||||
title: Định dạng và làm đẹp JSON
|
||||
description: Định dạng chuỗi JSON của bạn thành một định dạng dễ đọc và thân thiện với con người.
|
||||
|
||||
json-sort-master:
|
||||
title: Sắp xếp JSON
|
||||
description: Sắp xếp JSON của bạn theo các khóa và giá trị.
|
||||
|
||||
docker-run-to-docker-compose-converter:
|
||||
title: Chuyển đổi lệnh docker run thành tệp docker-compose
|
||||
description: Chuyển đổi các lệnh docker run thành tệp docker-compose!
|
||||
@@ -308,9 +312,14 @@ tools:
|
||||
hash-text:
|
||||
title: Mã hóa văn bản
|
||||
description: 'Mã hóa một chuỗi văn bản bằng cách sử dụng các hàm bạn cần: MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 hoặc RIPEMD160'
|
||||
|
||||
json-to-toml:
|
||||
title: Chuyển đổi JSON sang TOML
|
||||
description: Phân tích và chuyển đổi JSON sang TOML.
|
||||
|
||||
json-to-ts:
|
||||
title: Chuyển đổi JSON sang TS
|
||||
description: Phân tích và chuyển đổi JSON sang TS.
|
||||
|
||||
device-information:
|
||||
title: Thông tin thiết bị
|
||||
@@ -381,3 +390,7 @@ tools:
|
||||
text-to-binary:
|
||||
title: Chuyển đổi văn bản thành nhị phân ASCII
|
||||
description: Chuyển đổi văn bản thành biểu diễn nhị phân ASCII của nó và ngược lại.
|
||||
|
||||
unicode-to-java-entities:
|
||||
title: Chuyển đổi ký tự Unicode sang thực thể Java
|
||||
description: Chuyển đổi ký tự Unicode sang thực thể Java và ngược lại
|
||||
+29
-3
@@ -37,13 +37,13 @@ about:
|
||||
|
||||
## 技术
|
||||
|
||||
IT-Tools 采用 Vue.js(Vue 3)和 Naive UI 组件库开发,并由 Vercel 托管和持续部署。某些工具使用了第三方开源库,您可以在仓库的 [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) 文件中找到完整的列表。
|
||||
IT-Tools 采用 Vue.js(Vue 3)和 Naive UI 组件库开发,并由 Vercel 托管和持续部署。某些工具使用了第三方开源库,您可以在仓库的 [package.json](https://github.com/sharevb/it-tools/blob/main/package.json) 文件中找到完整的列表。
|
||||
|
||||
## 发现了 Bug?缺少工具?
|
||||
|
||||
如果目前这里没有您需要的工具,并且您认为它可能有用,欢迎在 GitHub 仓库的 [issues](https://github.com/CorentinTh/it-tools/issues/new/choose) 中提交新增功能的请求。
|
||||
如果目前这里没有您需要的工具,并且您认为它可能有用,欢迎在 GitHub 仓库的 [issues](https://github.com/sharevb/it-tools/issues/new/choose) 中提交新增功能的请求。
|
||||
|
||||
如果您发现了 Bug,或者某些功能未能按预期工作,请在 GitHub 仓库的 [issues](https://github.com/CorentinTh/it-tools/issues/new/choose) 中提交错误报告。
|
||||
如果您发现了 Bug,或者某些功能未能按预期工作,请在 GitHub 仓库的 [issues](https://github.com/sharevb/it-tools/issues/new/choose) 中提交错误报告。
|
||||
|
||||
404:
|
||||
notFound: '404 页面不存在'
|
||||
@@ -198,6 +198,14 @@ tools:
|
||||
title: JSON到YAML转换器
|
||||
description: 在线转换将JSON转换为YAML。
|
||||
|
||||
json-to-javascript:
|
||||
title: JSON 到 JS 转换器
|
||||
description: 使用此在线转换器将 JSON 转换为 Javascript 对象。
|
||||
|
||||
javascript-to-json:
|
||||
title: JS 到 JSON 转换器
|
||||
description: 使用此在线转换器将 Javascript 对象转换为 JSON。
|
||||
|
||||
url-parser:
|
||||
title: Url分析器
|
||||
description: 解析url字符串以获取所有不同的部分(协议、来源、参数、端口、用户名密码…)
|
||||
@@ -226,6 +234,10 @@ tools:
|
||||
title: JSON美化和格式化
|
||||
description: 将JSON字符串修饰为友好的可读格式。
|
||||
|
||||
json-sort-master:
|
||||
title: JSON排序大师
|
||||
description: 按键和值对您的JSON进行排序。
|
||||
|
||||
docker-run-to-docker-compose-converter:
|
||||
title: Docker Run 到 docker-compose 转换器
|
||||
description: 将 docker run 命令行转换为 docker-compose 文件!
|
||||
@@ -317,6 +329,10 @@ tools:
|
||||
title: JSON 转 TOML
|
||||
description: 解析JSON并将其转换为TOML。
|
||||
|
||||
json-to-ts:
|
||||
title: JSON 转 TS
|
||||
description: 解析JSON并将其转换为TS。
|
||||
|
||||
device-information:
|
||||
title: 设备信息
|
||||
description: 获取有关当前设备的信息(屏幕大小、像素比率、用户代理…)
|
||||
@@ -388,3 +404,13 @@ tools:
|
||||
text-to-binary:
|
||||
title: 文本到 ASCII 二进制
|
||||
description: 将文本转换为其 ASCII 二进制表示形式,反之亦然。
|
||||
sip-auth:
|
||||
title: SIP 认证校验
|
||||
description: 这个工具能够帮你验证 SIP 授权头。该工具所有运算过程都在浏览器中进行,并不会通过网络传输敏感信息,所以请放心使用。
|
||||
password: SIP 密码
|
||||
password-tips: 输入密码...
|
||||
message: SIP 消息文本
|
||||
message-tips: 在此处粘贴您的 SIP 消息...
|
||||
result: 检测结果
|
||||
sucess: 成功
|
||||
failure: 失败
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
|
||||
+196
-23
@@ -8,7 +8,7 @@
|
||||
"license": "GNU GPLv3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CorentinTh/it-tools"
|
||||
"url": "https://github.com/sharevb/it-tools"
|
||||
},
|
||||
"keywords": [
|
||||
"productivity",
|
||||
@@ -23,12 +23,12 @@
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc --noEmit && NODE_OPTIONS=--max_old_space_size=4096 vite build",
|
||||
"build": "vue-tsc --noEmit && . ./set_node_mem.sh && vite build",
|
||||
"preview": "vite preview --port 5050",
|
||||
"test": "npm run test:unit",
|
||||
"test:unit": "vitest --environment jsdom",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:dev": "BASE_URL=http://localhost:5173 NO_WEB_SERVER=true playwright test",
|
||||
"test": "TZ=UTC npm run test:unit",
|
||||
"test:unit": "TZ=UTC vitest --environment jsdom",
|
||||
"test:e2e": "TZ=UTC playwright test",
|
||||
"test:e2e:dev": "TZ=UTC BASE_URL=http://localhost:5173 NO_WEB_SERVER=true playwright test",
|
||||
"coverage": "vitest run --coverage",
|
||||
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
||||
"lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
|
||||
@@ -37,94 +37,266 @@
|
||||
"release": "node ./scripts/release.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chenfengyuan/vue-barcode": "^2.0.2",
|
||||
"@date-fns/utc": "^1.2.0",
|
||||
"@github/paste-markdown": "^1.5.3",
|
||||
"@guolao/vue-monaco-editor": "^1.5.4",
|
||||
"@guyplusplus/turndown-plugin-gfm": "^1.0.7",
|
||||
"@huggingface/transformers": "3.0.0-alpha.14",
|
||||
"@it-tools/bip39": "^0.0.4",
|
||||
"@it-tools/oggen": "^1.3.0",
|
||||
"@kenjiuno/decompressrtf": "^0.1.4",
|
||||
"@kenjiuno/msgreader": "^1.22.0",
|
||||
"@regexper/render": "^1.0.0",
|
||||
"@sindresorhus/slugify": "^2.2.1",
|
||||
"@tabler/icons-vue": "^3.20.0",
|
||||
"@tiptap/pm": "2.1.6",
|
||||
"@tiptap/starter-kit": "2.1.6",
|
||||
"@tiptap/vue-3": "2.0.3",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/markdown-it": "^13.0.7",
|
||||
"@tiptap/core": "2.9.1",
|
||||
"@tiptap/extension-color": "^2.9.1",
|
||||
"@tiptap/extension-gapcursor": "^2.9.1",
|
||||
"@tiptap/extension-highlight": "^2.9.1",
|
||||
"@tiptap/extension-table": "^2.9.1",
|
||||
"@tiptap/extension-table-cell": "^2.9.1",
|
||||
"@tiptap/extension-table-header": "^2.9.1",
|
||||
"@tiptap/extension-table-row": "^2.9.1",
|
||||
"@tiptap/extension-text-style": "^2.9.1",
|
||||
"@tiptap/pm": "2.9.1",
|
||||
"@tiptap/starter-kit": "2.9.1",
|
||||
"@tiptap/vue-3": "2.9.1",
|
||||
"@types/haversine": "^1.1.8",
|
||||
"@unicode/unicode-15.1.0": "^1.6.0",
|
||||
"@vicons/material": "^0.12.0",
|
||||
"@vicons/tabler": "^0.12.0",
|
||||
"@vueuse/core": "^10.3.0",
|
||||
"@vueuse/core": "^10.11.1",
|
||||
"@vueuse/head": "^1.0.0",
|
||||
"@vueuse/router": "^10.0.0",
|
||||
"@xmldom/xmldom": "^0.8.10",
|
||||
"@zxing/library": "^0.21.3",
|
||||
"aircodes": "^1.3.16",
|
||||
"ansible-vault": "^1.3.0",
|
||||
"apache-md5": "^1.1.8",
|
||||
"arr-diff": "^4.0.0",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"big.js": "^6.2.2",
|
||||
"bwip-js": "^4.5.1",
|
||||
"change-case": "^4.1.2",
|
||||
"chatgpt-prompt-splitter": "^1.0.5",
|
||||
"chinesegen": "^0.3.3",
|
||||
"cidr-tools": "^11.0.2",
|
||||
"colord": "^2.9.3",
|
||||
"composerize-ts": "^0.6.2",
|
||||
"composerize": "^1.6.12",
|
||||
"composeverter": "^1.7.4",
|
||||
"convert": "^5.5.1",
|
||||
"countries-and-timezones": "^3.7.2",
|
||||
"countries-db": "^1.2.0",
|
||||
"country-code-lookup": "^0.1.0",
|
||||
"crc": "^4.3.2",
|
||||
"cron-parser": "^4.9.0",
|
||||
"cron-validator": "^1.3.1",
|
||||
"cronstrue": "^2.26.0",
|
||||
"crypto-js": "^4.1.1",
|
||||
"csstoxpath": "^2.0.0",
|
||||
"curlconverter": "^4.11.0",
|
||||
"currency-codes-ts": "^3.0.0",
|
||||
"currency-exchanger-js": "^1.0.4",
|
||||
"data-guardian": "^1.1.3",
|
||||
"date-fns": "^2.29.3",
|
||||
"date-holidays": "^3.23.12",
|
||||
"decomposerize": "^1.4.1",
|
||||
"dns-query": "^0.11.2",
|
||||
"docker2kube": "^0.0.14",
|
||||
"dom-to-image-more": "^3.5.0",
|
||||
"dompurify": "^3.0.6",
|
||||
"duration-fns": "^3.0.2",
|
||||
"email-bounce-parser-browser": "^1.1.0",
|
||||
"email-normalizer": "^1.0.0",
|
||||
"emojilib": "^3.0.10",
|
||||
"event-cron-parser": "^1.0.34",
|
||||
"exif-be-gone": "^1.5.1",
|
||||
"exifreader": "^4.25.0",
|
||||
"fanger": "^0.3.1",
|
||||
"fast_array_intersect": "^1.1.0",
|
||||
"fflate": "^0.8.2",
|
||||
"figlet": "^1.7.0",
|
||||
"figue": "^1.2.0",
|
||||
"file-type": "^19.6.0",
|
||||
"flatten-anything": "^4.0.1",
|
||||
"fuse.js": "^6.6.2",
|
||||
"generate-schema": "^2.6.0",
|
||||
"get-timezone-offset": "^1.0.5",
|
||||
"gpt-tokens": "^1.3.13",
|
||||
"hash-wasm": "^4.11.0",
|
||||
"haversine": "^1.1.1",
|
||||
"heic-convert": "^2.1.0",
|
||||
"highlight.js": "^11.7.0",
|
||||
"iarna-toml-esm": "^3.0.5",
|
||||
"ibantools": "^4.3.3",
|
||||
"js-base64": "^3.7.6",
|
||||
"ical-generator": "^8.0.1",
|
||||
"ical.js": "^2.1.0",
|
||||
"iconv-lite": "^0.6.3",
|
||||
"image-in-browser": "^3.2.1",
|
||||
"image-to-ascii-art": "^0.0.4",
|
||||
"ip-address": "^9.0.5",
|
||||
"ip-bigint": "^8.2.0",
|
||||
"ip-cidr": "^4.0.2",
|
||||
"ip-matching": "^2.1.2",
|
||||
"ip-regex": "^5.0.0",
|
||||
"is-cidr": "^5.1.0",
|
||||
"is-ip": "^5.0.1",
|
||||
"isbn3": "^1.2.3",
|
||||
"iso-639-1": "^3.1.3",
|
||||
"javastack.js": "^1.0.3",
|
||||
"jks-js": "^1.1.4",
|
||||
"jose": "^5.9.6",
|
||||
"jpeg-quality-estimator": "^1.0.1",
|
||||
"jq-wasm": "^0.0.9",
|
||||
"js-base64": "^3.7.7",
|
||||
"js-beautify": "^1.15.1",
|
||||
"jsbarcode": "^3.11.6",
|
||||
"json-analyzer": "^1.2.2",
|
||||
"json-editor-vue": "^0.16.0",
|
||||
"json-to-ts": "^1.7.0",
|
||||
"json2csharp": "^1.0.3",
|
||||
"json5": "^2.2.3",
|
||||
"jsonar-mod": "^1.9.0",
|
||||
"jsonlint-mod": "^1.7.6",
|
||||
"jsonpath": "^1.1.1",
|
||||
"jsstack.js": "^2.0.0",
|
||||
"jsvat-next": "^3.0.4",
|
||||
"jszip": "^3.10.1",
|
||||
"jwt-decode": "^3.1.2",
|
||||
"korean-unpacker": "^1.0.3",
|
||||
"libmime": "^5.3.5",
|
||||
"libphonenumber-js": "^1.10.28",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-it": "^14.0.0",
|
||||
"lodash.defaultsdeep": "^4.6.1",
|
||||
"lodash.flattendeep": "^4.4.0",
|
||||
"lodash.last": "^3.0.0",
|
||||
"lorem-ipsum-japanese": "^1.0.1",
|
||||
"luhn-js": "^1.1.2",
|
||||
"luxon": "^3.5.0",
|
||||
"markdown-it": "^14.1.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^11.9.1",
|
||||
"md-editor-v3": "^4.21.2",
|
||||
"memorystream": "^0.3.1",
|
||||
"mime-types": "^2.1.35",
|
||||
"monaco-editor": "^0.43.0",
|
||||
"morsee": "^1.0.9",
|
||||
"naive-ui": "^2.35.0",
|
||||
"nanoid": "^5.0.7",
|
||||
"nanoid-dictionary": "^4.3.0",
|
||||
"netmask": "^2.0.2",
|
||||
"netstack.js": "^2.0.0",
|
||||
"nginx-config-formatter": "^1.4.5",
|
||||
"node-forge": "^1.3.1",
|
||||
"openpgp": "^5.11.2",
|
||||
"oui-data": "^1.0.10",
|
||||
"pdf-signature-reader": "^1.4.2",
|
||||
"parse-duration": "^1.1.0",
|
||||
"parse-torrent": "^11.0.17",
|
||||
"path2d-polyfill": "^3.1.2",
|
||||
"pdf-signature-reader": "^1.4.3",
|
||||
"pdfjs-dist": "^4.8.69",
|
||||
"pinia": "^2.0.34",
|
||||
"plausible-tracker": "^0.3.8",
|
||||
"port-numbers": "^8.0.17",
|
||||
"postal-mime": "^2.3.2",
|
||||
"potrace": "^2.1.8",
|
||||
"pp-qr-code": "^0.6.4",
|
||||
"pretty-ms": "^9.1.0",
|
||||
"punycode": "^2.3.1",
|
||||
"pythonstack.js": "^1.0.2",
|
||||
"qpdf-wasm-esm-embedded": "^1.1.1",
|
||||
"qrcode": "^1.5.1",
|
||||
"qrcode-parser": "^2.1.3",
|
||||
"qrcode-terminal-nooctal": "^0.12.1",
|
||||
"randexp": "^0.5.3",
|
||||
"regex": "^4.4.0",
|
||||
"roboto-base64": "^0.1.2",
|
||||
"rtf-stream-parser": "^3.8.0",
|
||||
"safe-license-list": "^0.1.2",
|
||||
"sandybox": "^1.1.2",
|
||||
"sanitize-html": "^2.13.1",
|
||||
"shiki": "1.22.2",
|
||||
"silly-password-generator": "^1.0.28",
|
||||
"slashes": "^3.0.12",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"sql-formatter": "^13.0.0",
|
||||
"sshpk": "^1.18.0",
|
||||
"stringify-object": "^5.0.0",
|
||||
"svg2png-wasm": "^1.4.1",
|
||||
"svgo": "^3.3.2",
|
||||
"tesseract.js": "^5.1.1",
|
||||
"tidy-url": "^1.18.3",
|
||||
"turndown": "^7.2.0",
|
||||
"ua-parser-js": "^1.0.35",
|
||||
"ulid": "^2.3.0",
|
||||
"unicode-emoji-json": "^0.4.0",
|
||||
"unplugin-auto-import": "^0.16.4",
|
||||
"uuid": "^9.0.0",
|
||||
"utf8": "^3.0.0",
|
||||
"uuid": "^11.0.3",
|
||||
"vanilla-jsoneditor": "^0.23.8",
|
||||
"vue": "^3.3.4",
|
||||
"vue-color-wheel": "^0.1.1",
|
||||
"vue-i18n": "^9.9.1",
|
||||
"vue-markdown-render": "^2.2.1",
|
||||
"vue-mathjax-next": "^0.0.6",
|
||||
"vue-router": "^4.1.6",
|
||||
"vue-shadow-dom": "^4.2.0",
|
||||
"vue-tsc": "^1.8.1",
|
||||
"vuedraggable": "^4.1.0",
|
||||
"w-websocket-client": "^1.0.29",
|
||||
"webcrack": "^2.14.1",
|
||||
"webp-converter-browser": "^1.0.4",
|
||||
"xml-formatter": "^3.3.2",
|
||||
"xml-js": "^1.6.11",
|
||||
"xpath": "^0.0.34",
|
||||
"xpath-to-css": "^1.2.0",
|
||||
"xslt-processor": "^3.2.2",
|
||||
"yaml": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.41.0",
|
||||
"@iconify-json/mdi": "^1.1.50",
|
||||
"@intlify/unplugin-vue-i18n": "^2.0.0",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@intlify/unplugin-vue-i18n": "^0.13.0",
|
||||
"@playwright/test": "^1.50.0",
|
||||
"@rushstack/eslint-patch": "^1.2.0",
|
||||
"@tsconfig/node18": "^18.2.0",
|
||||
"@types/arr-diff": "^4.0.3",
|
||||
"@types/bcryptjs": "^2.4.2",
|
||||
"@types/big.js": "^6.2.2",
|
||||
"@types/crypto-js": "^4.1.1",
|
||||
"@types/dompurify": "^3.0.5",
|
||||
"@types/jsdom": "^21.0.0",
|
||||
"@types/emscripten": "^1.39.13",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/js-beautify": "^1.14.3",
|
||||
"@types/jsdom": "^21.1.0",
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/libmime": "^5.0.3",
|
||||
"@types/lodash": "^4.14.192",
|
||||
"@types/lodash.defaultsdeep": "^4.6.9",
|
||||
"@types/lodash.flattendeep": "^4.4.9",
|
||||
"@types/lodash.last": "^3.0.9",
|
||||
"@types/luxon": "^3.4.2",
|
||||
"@types/markdown-it": "^13.0.9",
|
||||
"@types/memorystream": "^0.3.4",
|
||||
"@types/mime-types": "^2.1.1",
|
||||
"@types/morsee": "^1.0.2",
|
||||
"@types/nanoid-dictionary": "^4.2.3",
|
||||
"@types/netmask": "^2.0.0",
|
||||
"@types/node": "^18.15.11",
|
||||
"@types/node-forge": "^1.3.2",
|
||||
"@types/potrace": "^2.1.5",
|
||||
"@types/punycode": "^2.1.4",
|
||||
"@types/qrcode": "^1.5.0",
|
||||
"@types/sanitize-html": "^2.13.0",
|
||||
"@types/spdx-satisfies": "^0.1.2",
|
||||
"@types/sshpk": "^1.17.4",
|
||||
"@types/stringify-object": "^4.0.5",
|
||||
"@types/turndown": "^5.0.5",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@types/utf8": "^3.0.3",
|
||||
"@types/uuid": "^9.0.0",
|
||||
"@unocss/eslint-config": "^0.57.0",
|
||||
"@unocss/eslint-config": "^0.57.1",
|
||||
"@vitejs/plugin-vue": "^4.3.2",
|
||||
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
||||
"@vue/compiler-sfc": "^3.2.47",
|
||||
@@ -137,12 +309,13 @@
|
||||
"jsdom": "^22.0.0",
|
||||
"less": "^4.1.3",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "~5.2.0",
|
||||
"unocss": "^0.65.1",
|
||||
"typescript": "~5.2.2",
|
||||
"unocss": "^0.57.1",
|
||||
"unocss-preset-scrollbar": "^0.2.1",
|
||||
"unplugin-icons": "^0.17.0",
|
||||
"unplugin-vue-components": "^0.25.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-node-polyfills": "^0.22.0",
|
||||
"vite-plugin-pwa": "^0.16.0",
|
||||
"vite-plugin-vue-markdown": "^0.23.5",
|
||||
"vite-svg-loader": "^4.0.0",
|
||||
|
||||
Generated
+13795
-8472
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,4 +1,4 @@
|
||||
/* TEAM */
|
||||
Developer: Corentin Thomasset
|
||||
Site: https://github.com/CorentinTh
|
||||
Site: https://github.com/sharevb
|
||||
Twitter: @cthmsst
|
||||
@@ -0,0 +1,25 @@
|
||||
import "./plurimath-opal.js";
|
||||
Opal.require("plurimath");
|
||||
window.Plurimath = class Plurimath {
|
||||
constructor(data, format) {
|
||||
this.data = Opal.Plurimath.Math.$parse(data, format);
|
||||
}
|
||||
toAsciimath() {
|
||||
return this.data.$to_asciimath();
|
||||
}
|
||||
toLatex() {
|
||||
return this.data.$to_latex();
|
||||
}
|
||||
toMathml() {
|
||||
return this.data.$to_mathml();
|
||||
}
|
||||
toHtml() {
|
||||
return this.data.$to_html();
|
||||
}
|
||||
toOmml() {
|
||||
return this.data.$to_omml();
|
||||
}
|
||||
toDisplay(lang) {
|
||||
return this.data.$to_display(lang);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
(function(e){var t,r,n,a,s,i,o,l;if("undefined"!=typeof globalThis?e=globalThis:"undefined"!=typeof global?e=global:"undefined"!=typeof window&&(e=window),null==e.console&&(e.console={}),"log"in(t="object"==typeof e.console?e.console:{})||(t.log=function(){}),"warn"in t||(t.warn=t.log),void 0!==e.Opal)return t.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),e.Opal;var $=e.Opal={};$.global=e,$.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var u=Function.prototype.call,c=Function.prototype.bind,_=Object.hasOwn||u.bind(Object.prototype.hasOwnProperty),p=Object.setPrototypeOf,m=u.bind(Array.prototype.slice),d=u.bind(Array.prototype.splice),f=4;function h(){return f+=2}$.uid=h,$.id=function(e){return e.$$is_number?2*e+1:(null==e.$$id&&y(e,"$$id",h()),e.$$id)};var g=$.gvars={};function b(e,t){if(e||(e=$.Exception||Error),!l||!l.$raise)throw e.$new?e.$new(t):new e(t);arguments.length>2?l.$raise(e.$new.apply(e,m(arguments,1))):l.$raise(e,t)}$.exit=function(e){g.DEBUG&&t.log("Exited with status "+e)},$.exceptions=[],$.pop_exception=function(e){var t=$.exceptions.pop();t===e||(g["!"]=t||r)};var v={value:void 0,enumerable:!1,configurable:!0,writable:!0};function y(e,t,r){"string"==typeof e?e[t]=r:(v.value=r,Object.defineProperty(e,t,v))}$.prop=y,$.defineProperty=$.prop,$.slice=m;var x=$.truthy=function(e){return!(!1===e||r===e||null==e||e instanceof Boolean&&!0!==e.valueOf())};function w(e){var t,r,n;for(t=0,r=$.tracers_for_class.length;t<r;t++)(n=$.tracers_for_class[t]).trace_object=e,n.block.$call(n)}function k(e,t){if(e.$$autoload[t].loaded){if(e.$$autoload[t].loaded&&!e.$$autoload[t].required&&e.$$autoload[t].exception)throw e.$$autoload[t].exception}else{e.$$autoload[t].loaded=!0;try{$.Kernel.$require(e.$$autoload[t].path)}catch(r){throw e.$$autoload[t].exception=r,r}if(e.$$autoload[t].required=!0,null!=e.$$const[t])return e.$$autoload[t].success=!0,e.$$const[t]}}function U(e,t){if(e){if(null!=e.$$const[t])return e.$$const[t];if(e.$$autoload&&e.$$autoload[t])return k(e,t)}}function E(e,t){var r,n,a;if(null!=e)for(r=0,n=(a=P(e)).length;r<n;r++){if(a[r].$$const&&_(a[r].$$const,t))return a[r].$$const[t];if(a[r].$$autoload&&a[r].$$autoload[t])return k(a[r],t)}}function M(e,t){return(e||a).$const_missing(t)}function q(e,t,n){var s=!0;return null!=e&&"::"!==e||(e=a),n.$$is_a_module&&(null!=n.$$name&&n.$$name!==r||(n.$$name=t),null==n.$$base_module&&(n.$$base_module=e)),e.$$const=e.$$const||Object.create(null),(t in e.$$const||"$$autoload"in e&&t in e.$$autoload)&&(s=!1),e.$$const[t]=n,e.$$=e.$$const,$.const_cache_version++,e===a&&($[t]=n),y(e,t,n),s&&e.$const_added&&!e.$const_added.$$pristine&&e.$const_added(t),n}function S(e){return null!=e&&(e.$$bridge?e:!!e.$$super&&S(e.$$super))}function O(e,t,n){var a,s;if(a=(s=S(t))?function(){var e=new(c.apply(s.$$constructor,G(null,arguments)));return p(e,a.$$prototype),e}:function(){},e&&e!==r&&y(a,"displayName","::"+e),y(a,"$$name",e),y(a,"$$constructor",a),y(a,"$$prototype",a.prototype),y(a,"$$const",{}),y(a,"$$is_class",!0),y(a,"$$is_a_module",!0),y(a,"$$super",t),y(a,"$$cvars",{}),y(a,"$$own_included_modules",[]),y(a,"$$own_prepended_modules",[]),y(a,"$$ancestors",[]),y(a,"$$ancestors_cache_version",null),y(a,"$$subclasses",[]),y(a,"$$cloned_from",[]),y(a.$$prototype,"$$class",a),$.Class&&p(a,$.Class.prototype),null!=t){if(p(a.$$prototype,t.$$prototype),!0!==n)if("undefined"!=typeof WeakRef){var i,o,l=[];for(i=0;i<t.$$subclasses.length;i++)void 0!==(o=t.$$subclasses[i]).deref()&&l.push(o);l.push(new WeakRef(a)),t.$$subclasses=l}else t.$$subclasses.push(a);t.$$meta&&$.build_class_singleton_class(a)}return a}function A(e){var t=function(){},r=t;return e&&y(t,"displayName",e+".constructor"),y(r,"$$name",e),y(r,"$$prototype",t.prototype),y(r,"$$const",{}),y(r,"$$is_module",!0),y(r,"$$is_a_module",!0),y(r,"$$cvars",{}),y(r,"$$iclasses",[]),y(r,"$$own_included_modules",[]),y(r,"$$own_prepended_modules",[]),y(r,"$$ancestors",[r]),y(r,"$$ancestors_cache_version",null),y(r,"$$cloned_from",[]),p(r,$.Module.prototype),r}function T(e,t){e.hasOwnProperty("$$meta")?e.$$meta=t:y(e,"$$meta",t),e.$$frozen?e.$$meta.$freeze():p(e,t.$$prototype)}function N(e){return e.hasOwnProperty("$$iclass")&&e.hasOwnProperty("$$root")}function z(e){var t=R(e);return e.$$is_module&&e.$$iclasses.push(t),t}function R(e){var t={},r=e.$$prototype;r.hasOwnProperty("$$dummy")&&(r=r.$$define_methods_on);var n,a=Object.getOwnPropertyNames(r),s=a.length;for(n=0;n<s;n++){var i=a[n];y(t,i,r[i])}return y(t,"$$iclass",!0),y(t,"$$module",e),t}function I(e){var t=e.length,r=e[0];if(y(r,"$$root",!0),1===t)return{first:r,last:r};for(var n=r,a=1;a<t;a++){var s=e[a];p(n,s),n=s}return{first:e[0],last:e[t-1]}}function C(e){if(!e.hasOwnProperty("$$dummy"))return e.hasOwnProperty("$$iclass")?e.$$module:e.hasOwnProperty("$$class")?e.$$class:void 0}function P(e){if(!e)return[];if(e.$$ancestors_cLine truncated
|
||||
//# sourceMappingURL=plurimath-opal.js.map
|
||||
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+5
@@ -0,0 +1,5 @@
|
||||
memory=$(awk '/MemTotal/{print $2}' /proc/meminfo);
|
||||
memory=$((memory / 1024));
|
||||
node_options="--max-old-space-size=$((memory - 1024))";
|
||||
echo "NODE_OPTIONS=$node_options";
|
||||
export NODE_OPTIONS="$node_options";
|
||||
@@ -0,0 +1,3 @@
|
||||
export function readFile() {}
|
||||
export function writeFile() {}
|
||||
export {};
|
||||
@@ -1,7 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import { Base64 } from 'js-base64';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
import CInputText from '@/ui/c-input-text/c-input-text.vue';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -12,6 +14,8 @@ const props = withDefaults(
|
||||
inputDefault?: string
|
||||
outputLabel?: string
|
||||
outputLanguage?: string
|
||||
downloadFileName?: string
|
||||
downloadButtonText?: string
|
||||
}>(),
|
||||
{
|
||||
transformer: _.identity,
|
||||
@@ -21,16 +25,27 @@ const props = withDefaults(
|
||||
inputPlaceholder: 'Input...',
|
||||
outputLabel: 'Output',
|
||||
outputLanguage: '',
|
||||
downloadFileName: '',
|
||||
downloadButtonText: 'Download',
|
||||
},
|
||||
);
|
||||
|
||||
const { transformer, inputValidationRules, inputLabel, outputLabel, outputLanguage, inputPlaceholder, inputDefault }
|
||||
= toRefs(props);
|
||||
const {
|
||||
transformer, inputValidationRules, inputLabel, outputLabel, outputLanguage,
|
||||
inputPlaceholder, inputDefault, downloadFileName, downloadButtonText,
|
||||
} = toRefs(props);
|
||||
|
||||
const inputElement = ref<typeof CInputText>();
|
||||
|
||||
const input = ref(inputDefault.value);
|
||||
const output = computed(() => transformer.value(input.value));
|
||||
|
||||
const outputBase64 = computed(() => Base64.encode(output.value));
|
||||
const { download } = useDownloadFileFromBase64(
|
||||
{
|
||||
source: outputBase64,
|
||||
filename: downloadFileName,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -53,5 +68,11 @@ const output = computed(() => transformer.value(input.value));
|
||||
{{ outputLabel }}
|
||||
</div>
|
||||
<textarea-copyable :value="output" :language="outputLanguage" :follow-height-of="inputElement?.inputWrapperRef" />
|
||||
|
||||
<div v-if="downloadFileName !== '' && output !== ''" mt-5 flex justify-center>
|
||||
<c-button secondary @click="download">
|
||||
{{ downloadButtonText }}
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -2,7 +2,12 @@
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const props = defineProps<{ value: string }>();
|
||||
const props = defineProps<{
|
||||
value: string
|
||||
multiline?: boolean
|
||||
rows?: number | string
|
||||
autosize?: boolean
|
||||
}>();
|
||||
const emit = defineEmits(['update:value']);
|
||||
|
||||
const value = useVModel(props, 'value', emit);
|
||||
@@ -11,7 +16,12 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to cli
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-input-text v-model:value="value">
|
||||
<c-input-text
|
||||
v-model:value="value"
|
||||
:multiline="multiline"
|
||||
:rows="rows"
|
||||
:autosize="autosize"
|
||||
>
|
||||
<template #suffix>
|
||||
<c-tooltip :tooltip="tooltipText">
|
||||
<c-button circle variant="text" size="small" @click="copy()">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { IconBrandGithub, IconBrandX, IconInfoCircle, IconMoon, IconSun } from '@tabler/icons-vue';
|
||||
import { IconBrandGithub, IconInfoCircle, IconMoon, IconSun } from '@tabler/icons-vue';
|
||||
import { useStyleStore } from '@/stores/style.store';
|
||||
|
||||
const styleStore = useStyleStore();
|
||||
@@ -11,7 +11,7 @@ const { isDarkTheme } = toRefs(styleStore);
|
||||
<c-button
|
||||
circle
|
||||
variant="text"
|
||||
href="https://github.com/CorentinTh/it-tools"
|
||||
href="https://github.com/sharevb/it-tools"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
:aria-label="$t('home.nav.githubRepository')"
|
||||
@@ -20,19 +20,6 @@ const { isDarkTheme } = toRefs(styleStore);
|
||||
</c-button>
|
||||
</c-tooltip>
|
||||
|
||||
<c-tooltip :tooltip="$t('home.nav.twitterX')" position="bottom">
|
||||
<c-button
|
||||
circle
|
||||
variant="text"
|
||||
href="https://x.com/ittoolsdottech"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
:aria-label="$t('home.nav.twitterXAccount')"
|
||||
>
|
||||
<n-icon size="25" :component="IconBrandX" />
|
||||
</c-button>
|
||||
</c-tooltip>
|
||||
|
||||
<c-tooltip :tooltip="$t('home.nav.about')" position="bottom">
|
||||
<c-button circle variant="text" to="/about" :aria-label="$t('home.nav.aboutLabel')">
|
||||
<n-icon size="25" :component="IconInfoCircle" />
|
||||
|
||||
@@ -7,8 +7,16 @@ import sqlHljs from 'highlight.js/lib/languages/sql';
|
||||
import xmlHljs from 'highlight.js/lib/languages/xml';
|
||||
import yamlHljs from 'highlight.js/lib/languages/yaml';
|
||||
import iniHljs from 'highlight.js/lib/languages/ini';
|
||||
import tsHljs from 'highlight.js/lib/languages/typescript';
|
||||
import bashHljs from 'highlight.js/lib/languages/bash';
|
||||
import markdownHljs from 'highlight.js/lib/languages/markdown';
|
||||
import jsHljs from 'highlight.js/lib/languages/javascript';
|
||||
import cssHljs from 'highlight.js/lib/languages/css';
|
||||
import goHljs from 'highlight.js/lib/languages/go';
|
||||
import csharpHljs from 'highlight.js/lib/languages/csharp';
|
||||
import { Base64 } from 'js-base64';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -17,12 +25,17 @@ const props = withDefaults(
|
||||
language?: string
|
||||
copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none'
|
||||
copyMessage?: string
|
||||
wordWrap?: boolean
|
||||
downloadFileName?: string
|
||||
downloadButtonText?: string
|
||||
}>(),
|
||||
{
|
||||
followHeightOf: null,
|
||||
language: 'txt',
|
||||
copyPlacement: 'top-right',
|
||||
copyMessage: 'Copy to clipboard',
|
||||
downloadFileName: '',
|
||||
downloadButtonText: 'Download',
|
||||
},
|
||||
);
|
||||
hljs.registerLanguage('sql', sqlHljs);
|
||||
@@ -31,13 +44,26 @@ hljs.registerLanguage('html', xmlHljs);
|
||||
hljs.registerLanguage('xml', xmlHljs);
|
||||
hljs.registerLanguage('yaml', yamlHljs);
|
||||
hljs.registerLanguage('toml', iniHljs);
|
||||
hljs.registerLanguage('ts', tsHljs);
|
||||
hljs.registerLanguage('bash', bashHljs);
|
||||
hljs.registerLanguage('markdown', markdownHljs);
|
||||
hljs.registerLanguage('css', cssHljs);
|
||||
hljs.registerLanguage('javascript', jsHljs);
|
||||
hljs.registerLanguage('go', goHljs);
|
||||
hljs.registerLanguage('csharp', csharpHljs);
|
||||
|
||||
const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(props);
|
||||
const { value, language, followHeightOf, copyPlacement, copyMessage, downloadFileName, downloadButtonText } = toRefs(props);
|
||||
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
|
||||
|
||||
const { copy, isJustCopied } = useCopy({ source: value, createToast: false });
|
||||
const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.value);
|
||||
|
||||
const valueBase64 = computed(() => Base64.encode(value.value));
|
||||
const { download } = useDownloadFileFromBase64(
|
||||
{
|
||||
source: valueBase64,
|
||||
filename: downloadFileName,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -49,11 +75,16 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
|
||||
:style="height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
|
||||
>
|
||||
<n-config-provider :hljs="hljs">
|
||||
<n-code :code="value" :language="language" :trim="false" data-test-id="area-content" />
|
||||
<n-code :code="value" :language="language" :word-wrap="wordWrap" :trim="false" data-test-id="area-content" />
|
||||
</n-config-provider>
|
||||
</n-scrollbar>
|
||||
<div absolute right-10px top-10px>
|
||||
<c-tooltip v-if="value" :tooltip="tooltipText" position="left">
|
||||
<div
|
||||
v-if="value && copyPlacement !== 'none'"
|
||||
absolute right-10px
|
||||
:top-10px="copyPlacement === 'top-right' ? '' : 'no'"
|
||||
:bottom-10px="copyPlacement === 'bottom-right' ? '' : 'no'"
|
||||
>
|
||||
<c-tooltip v-if="value && copyPlacement !== 'outside'" :tooltip="tooltipText" position="left">
|
||||
<c-button circle important:h-10 important:w-10 @click="copy()">
|
||||
<n-icon size="22" :component="Copy" />
|
||||
</c-button>
|
||||
@@ -65,6 +96,11 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
|
||||
{{ tooltipText }}
|
||||
</c-button>
|
||||
</div>
|
||||
<div v-if="downloadFileName !== '' && value !== ''" mt-5 flex justify-center>
|
||||
<c-button secondary @click="download">
|
||||
{{ downloadButtonText }}
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ const theme = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<router-link :to="tool.path" class="decoration-none">
|
||||
<router-link :to="tool.path" class="it-tool-link decoration-none">
|
||||
<c-card class="h-full transition transition-duration-0.5s !border-2px !hover:border-primary">
|
||||
<div flex items-center justify-between>
|
||||
<n-icon class="text-neutral-400 dark:text-neutral-600" size="40" :component="tool.icon" />
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import convert, { type Unit } from 'convert';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
supportedUnits: { [key: string]: string }
|
||||
defaultUnit: string
|
||||
labelWidth?: string
|
||||
unitMinWidth?: string
|
||||
}>(), {
|
||||
labelWidth: '150px',
|
||||
unitMinWidth: '50px',
|
||||
});
|
||||
const { supportedUnits, defaultUnit, labelWidth, unitMinWidth } = toRefs(props);
|
||||
const units = reactive<
|
||||
Record<
|
||||
string,
|
||||
{ title: string; unit: string; ref: number }
|
||||
>
|
||||
>(Object.entries(supportedUnits.value).map(([key, label]) => ({
|
||||
title: label,
|
||||
unit: key,
|
||||
ref: 1,
|
||||
})).reduce((prev, current) => ({
|
||||
...prev,
|
||||
[current.unit]: current,
|
||||
}), {}));
|
||||
|
||||
function update(key: string) {
|
||||
if (!units[key]) {
|
||||
return;
|
||||
}
|
||||
const { ref: value } = units[key];
|
||||
|
||||
const converter = convert(value, key as Unit);
|
||||
|
||||
_.chain(units)
|
||||
.omit(key)
|
||||
.forEach(({ unit }) => {
|
||||
try {
|
||||
units[unit].ref = converter.to(unit as Unit);
|
||||
}
|
||||
catch (e: any) {
|
||||
units[unit].ref = 0;
|
||||
}
|
||||
})
|
||||
.value();
|
||||
}
|
||||
|
||||
update(defaultUnit.value);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<n-input-group v-for="[key, { title, unit }] in Object.entries(units)" :key="key" mb-3 w-full>
|
||||
<n-input-group-label :style="{ width: labelWidth }">
|
||||
{{ title }}
|
||||
</n-input-group-label>
|
||||
|
||||
<n-input-number
|
||||
v-model:value="units[key].ref"
|
||||
style="flex: 1"
|
||||
@update:value="() => update(key)"
|
||||
/>
|
||||
|
||||
<n-input-group-label :style="{ minWidth: unitMinWidth }">
|
||||
{{ unit }}
|
||||
</n-input-group-label>
|
||||
</n-input-group>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,6 +1,6 @@
|
||||
import { type Ref, ref, watchEffect } from 'vue';
|
||||
|
||||
export { computedCatch };
|
||||
export { computedCatch, computedCatchAsync };
|
||||
|
||||
function computedCatch<T, D>(getter: () => T, { defaultValue }: { defaultValue: D; defaultErrorMessage?: string }): [Ref<T | D>, Ref<string | undefined>];
|
||||
function computedCatch<T, D>(getter: () => T, { defaultValue, defaultErrorMessage = 'Unknown error' }: { defaultValue?: D; defaultErrorMessage?: string } = {}) {
|
||||
@@ -20,3 +20,22 @@ function computedCatch<T, D>(getter: () => T, { defaultValue, defaultErrorMessag
|
||||
|
||||
return [value, error] as const;
|
||||
}
|
||||
|
||||
function computedCatchAsync<T, D>(getterAsync: () => Promise<T>, { defaultValue }: { defaultValue: D; defaultErrorMessage?: string }): [Ref<T | D>, Ref<string | undefined>];
|
||||
function computedCatchAsync<T, D>(getterAsync: () => Promise<T>, { defaultValue, defaultErrorMessage = 'Unknown error' }: { defaultValue?: D; defaultErrorMessage?: string } = {}) {
|
||||
const error = ref<string | undefined>();
|
||||
const value = ref<T | D | undefined>();
|
||||
|
||||
watchEffect(async () => {
|
||||
try {
|
||||
error.value = undefined;
|
||||
value.value = await getterAsync();
|
||||
}
|
||||
catch (err) {
|
||||
error.value = err instanceof Error ? err.message : err?.toString() ?? defaultErrorMessage;
|
||||
value.value = defaultValue;
|
||||
}
|
||||
});
|
||||
|
||||
return [value, error] as const;
|
||||
}
|
||||
+32
-1
@@ -1,5 +1,5 @@
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { useClipboard } from '@vueuse/core';
|
||||
import { useClipboard, useClipboardItems } from '@vueuse/core';
|
||||
import { useMessage } from 'naive-ui';
|
||||
import type { MaybeRefOrGetter } from 'vue';
|
||||
|
||||
@@ -28,3 +28,34 @@ export function useCopy({ source, text = 'Copied to the clipboard', createToast
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export function useCopyClipboardItems({ source, text = 'Copied to the clipboard', createToast = true }: { source?: MaybeRefOrGetter<Array<{ mime: string; content: string }>>; text?: string; createToast?: boolean } = {}) {
|
||||
function toClipboardItem(item: { mime: string; content: string }) {
|
||||
return new ClipboardItem({
|
||||
[item.mime]: new Blob([item.content], { type: item.mime }),
|
||||
});
|
||||
}
|
||||
const sourceClipboardItems = computed(() => (toValue(source) || []).map(toClipboardItem));
|
||||
const { copy, copied, ...rest } = useClipboardItems({
|
||||
source: sourceClipboardItems,
|
||||
});
|
||||
|
||||
const message = useMessage();
|
||||
|
||||
return {
|
||||
...rest,
|
||||
isJustCopied: copied,
|
||||
async copy(content?: { mime: string; content: string }[], { notificationMessage }: { notificationMessage?: string } = {}) {
|
||||
if (source) {
|
||||
await copy();
|
||||
}
|
||||
else {
|
||||
await copy((content || []).map(toClipboardItem));
|
||||
}
|
||||
|
||||
if (createToast) {
|
||||
message.success(notificationMessage ?? text);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { extension as getExtensionFromMimeType, extension as getMimeTypeFromExtension } from 'mime-types';
|
||||
import type { Ref } from 'vue';
|
||||
import type { MaybeRef, Ref } from 'vue';
|
||||
import _ from 'lodash';
|
||||
import { get } from '@vueuse/core';
|
||||
|
||||
export {
|
||||
getMimeTypeFromBase64,
|
||||
@@ -75,21 +76,11 @@ function downloadFromBase64({ sourceValue, filename, extension, fileMimeType }:
|
||||
}
|
||||
|
||||
function useDownloadFileFromBase64(
|
||||
{ source, filename, extension, fileMimeType }:
|
||||
{ source: Ref<string>; filename?: string; extension?: string; fileMimeType?: string }) {
|
||||
return {
|
||||
download() {
|
||||
downloadFromBase64({ sourceValue: source.value, filename, extension, fileMimeType });
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
function useDownloadFileFromBase64Refs(
|
||||
{ source, filename, extension }:
|
||||
{ source: Ref<string>; filename?: Ref<string>; extension?: Ref<string> }) {
|
||||
{ source: MaybeRef<string>; filename?: MaybeRef<string>; extension?: MaybeRef<string> }) {
|
||||
return {
|
||||
download() {
|
||||
downloadFromBase64({ sourceValue: source.value, filename: filename?.value, extension: extension?.value });
|
||||
downloadFromBase64({ sourceValue: get(source), filename: get(filename), extension: get(extension) });
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -116,3 +107,13 @@ function previewImageFromBase64(base64String: string): HTMLImageElement {
|
||||
|
||||
return img;
|
||||
}
|
||||
|
||||
function useDownloadFileFromBase64Refs(
|
||||
{ source, filename, extension }:
|
||||
{ source: Ref<string>; filename?: Ref<string>; extension?: Ref<string> }) {
|
||||
return {
|
||||
download() {
|
||||
downloadFromBase64({ sourceValue: source.value, filename: filename?.value, extension: extension?.value });
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -63,7 +63,7 @@ const tools = computed<ToolCategory[]>(() => [
|
||||
<div>
|
||||
IT-Tools
|
||||
|
||||
<c-link target="_blank" rel="noopener" :href="`https://github.com/CorentinTh/it-tools/tree/v${version}`">
|
||||
<c-link target="_blank" rel="noopener" :href="`https://github.com/sharevb/it-tools/tree/v${version}`">
|
||||
v{{ version }}
|
||||
</c-link>
|
||||
|
||||
@@ -73,7 +73,7 @@ const tools = computed<ToolCategory[]>(() => [
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
type="primary"
|
||||
:href="`https://github.com/CorentinTh/it-tools/tree/${commitSha}`"
|
||||
:href="`https://github.com/sharevb/it-tools/tree/${commitSha}`"
|
||||
>
|
||||
{{ commitSha }}
|
||||
</c-link>
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useHead } from '@vueuse/head';
|
||||
import type { HeadObject } from '@vueuse/head';
|
||||
import VueMarkdown from 'vue-markdown-render';
|
||||
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import BaseLayout from './base.layout.vue';
|
||||
import FavoriteButton from '@/components/FavoriteButton.vue';
|
||||
import type { Tool } from '@/tools/tools.types';
|
||||
@@ -28,6 +30,23 @@ const { t } = useI18n();
|
||||
const i18nKey = computed<string>(() => route.path.trim().replace('/', ''));
|
||||
const toolTitle = computed<string>(() => t(`tools.${i18nKey.value}.title`, String(route.meta.name)));
|
||||
const toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.description`, String(route.meta.description)));
|
||||
const toolFooter = computed<string>(() => {
|
||||
const createLink = (linkText: string, url: string) => {
|
||||
return `[${linkText.replace('[', '\\[').replace(']', '\\]')}](${url.replace('(', '%28').replace(')', '%29')})`;
|
||||
};
|
||||
let footer = t(`tools.${i18nKey.value}.footer`, String(route.meta.footer));
|
||||
if (footer === 'undefined') {
|
||||
footer = '';
|
||||
}
|
||||
const npmPackages = (route.meta.npmPackages as string[] || [])
|
||||
.map(
|
||||
packageName => createLink(
|
||||
packageName,
|
||||
packageName.includes('://') ? packageName : `https://www.npmjs.com/package/${packageName}`),
|
||||
);
|
||||
return ((npmPackages.length > 0 ? `Made with ${npmPackages.join(', ')}\n` : '') + footer).trim();
|
||||
});
|
||||
const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -55,6 +74,10 @@ const toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.descrip
|
||||
<div class="tool-content">
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<div class="tool-footer">
|
||||
<VueMarkdown :source="toolFooter" />
|
||||
</div>
|
||||
</BaseLayout>
|
||||
</template>
|
||||
|
||||
@@ -66,9 +89,11 @@ const toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.descrip
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
overflow-x: auto;
|
||||
|
||||
::v-deep(& > *) {
|
||||
flex: 0 1 600px;
|
||||
min-width:0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,4 +130,14 @@ const toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.descrip
|
||||
}
|
||||
}
|
||||
}
|
||||
.tool-footer {
|
||||
opacity: 0.7;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
|
||||
::v-deep(a) {
|
||||
color: v-bind('themeVars.textColor1');
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
const createModule: EmscriptenModuleFactory;
|
||||
export default createModule;
|
||||
@@ -0,0 +1,127 @@
|
||||
|
||||
var Module = (() => {
|
||||
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
||||
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
|
||||
return (
|
||||
function(Module) {
|
||||
Module = Module || {};
|
||||
|
||||
|
||||
var d;d||(d=typeof Module !== 'undefined' ? Module : {});var aa,ba;d.ready=new Promise(function(a,b){aa=a;ba=b});d.noInitialRun=!0;var ca=Object.assign({},d),da=[],ea="./this.program",fa=(a,b)=>{throw b;},ha="object"==typeof window,m="function"==typeof importScripts,ia="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,q="",ja,ka,la,fs,t,ma;
|
||||
if(ia)q=m?require("path").dirname(q)+"/":__dirname+"/",ma=()=>{t||(fs=require("fs"),t=require("path"))},ja=function(a,b){ma();a=t.normalize(a);return fs.readFileSync(a,b?void 0:"utf8")},la=a=>{a=ja(a,!0);a.buffer||(a=new Uint8Array(a));return a},ka=(a,b,c)=>{ma();a=t.normalize(a);fs.readFile(a,function(e,f){e?c(e):b(f.buffer)})},1<process.argv.length&&(ea=process.argv[1].replace(/\\/g,"/")),da=process.argv.slice(2),process.on("uncaughtException",function(a){if(!(a instanceof na))throw a;}),process.on("unhandledRejection",
|
||||
function(a){throw a;}),fa=(a,b)=>{if(noExitRuntime)throw process.exitCode=a,b;b instanceof na||v("exiting due to exception: "+b);process.exit(a)},d.inspect=function(){return"[Emscripten Module object]"};else if(ha||m)m?q=self.location.href:"undefined"!=typeof document&&document.currentScript&&(q=document.currentScript.src),_scriptDir&&(q=_scriptDir),0!==q.indexOf("blob:")?q=q.substr(0,q.replace(/[?#].*/,"").lastIndexOf("/")+1):q="",ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},
|
||||
m&&(la=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ka=(a,b,c)=>{var e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=()=>{200==e.status||0==e.status&&e.response?b(e.response):c()};e.onerror=c;e.send(null)};var oa=console.log.bind(console),v=console.warn.bind(console);Object.assign(d,ca);ca=null;var z=0,noExitRuntime=!0;"object"!=typeof WebAssembly&&A("no native wasm support detected");
|
||||
var pa,qa=!1,ra,sa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
|
||||
function B(a,b){for(var c=b+NaN,e=b;a[e]&&!(e>=c);)++e;if(16<e-b&&a.buffer&&sa)return sa.decode(a.subarray(b,e));for(c="";b<e;){var f=a[b++];if(f&128){var g=a[b++]&63;if(192==(f&224))c+=String.fromCharCode((f&31)<<6|g);else{var k=a[b++]&63;f=224==(f&240)?(f&15)<<12|g<<6|k:(f&7)<<18|g<<12|k<<6|a[b++]&63;65536>f?c+=String.fromCharCode(f):(f-=65536,c+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else c+=String.fromCharCode(f)}return c}function C(a){return a?B(ta,a):""}
|
||||
function ua(a,b,c,e){if(!(0<e))return 0;var f=c;e=c+e-1;for(var g=0;g<a.length;++g){var k=a.charCodeAt(g);if(55296<=k&&57343>=k){var l=a.charCodeAt(++g);k=65536+((k&1023)<<10)|l&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f}
|
||||
function va(a){for(var b=0,c=0;c<a.length;++c){var e=a.charCodeAt(c);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++c)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}return b}function wa(a){var b=va(a)+1,c=xa(b);c&&ua(a,D,c,b);return c}function ya(a){var b=va(a)+1,c=za(b);ua(a,D,c,b);return c}var Aa,D,ta,Ba,E,G,Ca;
|
||||
function Da(){var a=pa.buffer;Aa=a;d.HEAP8=D=new Int8Array(a);d.HEAP16=Ba=new Int16Array(a);d.HEAP32=E=new Int32Array(a);d.HEAPU8=ta=new Uint8Array(a);d.HEAPU16=new Uint16Array(a);d.HEAPU32=G=new Uint32Array(a);d.HEAPF32=new Float32Array(a);d.HEAPF64=new Float64Array(a);d.HEAP64=Ca=new BigInt64Array(a);d.HEAPU64=new BigUint64Array(a)}var Ea,Fa=[],Ga=[],Ha=[],Ia=[],H=0,Ja=null,Ka=null;function La(){H--;if(0==H&&(null!==Ja&&(clearInterval(Ja),Ja=null),Ka)){var a=Ka;Ka=null;a()}}
|
||||
function A(a){a="Aborted("+a+")";v(a);qa=!0;ra=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Ma(){return K.startsWith("data:application/octet-stream;base64,")}var K;K="qpdf.wasm";if(!Ma()){var Na=K;K=d.locateFile?d.locateFile(Na,q):q+Na}function Oa(){var a=K;try{if(la)return la(a);throw"both async and sync fetching of the wasm failed";}catch(b){A(b)}}
|
||||
function Pa(){if(ha||m){if("function"==typeof fetch&&!K.startsWith("file://"))return fetch(K,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+K+"'";return a.arrayBuffer()}).catch(function(){return Oa()});if(ka)return new Promise(function(a,b){ka(K,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Oa()})}
|
||||
function Qa(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b(d);else{var c=b.ld;"number"==typeof c?void 0===b.vb?L(c)():L(c)(b.vb):c(void 0===b.vb?null:b.vb)}}}function L(a){return Ea.get(a)}var Ra=[],Sa=0,M=0;
|
||||
function N(a){this.eb=a;this.ta=a-24;this.ed=function(b){G[this.ta+4>>2]=b};this.Ia=function(){return G[this.ta+4>>2]};this.Yc=function(b){G[this.ta+8>>2]=b};this.Gc=function(){return G[this.ta+8>>2]};this.cd=function(){E[this.ta>>2]=0};this.Nb=function(b){D[this.ta+12>>0]=b?1:0};this.Tc=function(){return 0!=D[this.ta+12>>0]};this.Ob=function(b){D[this.ta+13>>0]=b?1:0};this.fc=function(){return 0!=D[this.ta+13>>0]};this.Ma=function(b,c){this.Ya(0);this.ed(b);this.Yc(c);this.cd();this.Nb(!1);this.Ob(!1)};
|
||||
this.Oc=function(){E[this.ta>>2]+=1};this.Uc=function(){var b=E[this.ta>>2];E[this.ta>>2]=b-1;return 1===b};this.Ya=function(b){G[this.ta+16>>2]=b};this.Sc=function(){return G[this.ta+16>>2]};this.Wc=function(){if(Ta(this.Ia()))return G[this.eb>>2];var b=this.Sc();return 0!==b?b:this.eb}}function Ua(a){return Va((new N(a)).ta)}
|
||||
var Wa=(a,b)=>{for(var c=0,e=a.length-1;0<=e;e--){var f=a[e];"."===f?a.splice(e,1):".."===f?(a.splice(e,1),c++):c&&(a.splice(e,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},O=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Wa(a.split("/").filter(e=>!!e),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Xa=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},P=a=>{if("/"===
|
||||
a)return"/";a=O(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};function Ya(){var a=Array.prototype.slice.call(arguments,0);return O(a.join("/"))}var Q=(a,b)=>O(a+"/"+b);function Za(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var a=new Uint8Array(1);return function(){crypto.getRandomValues(a);return a[0]}}if(ia)try{var b=require("crypto");return function(){return b.randomBytes(1)[0]}}catch(c){}return function(){A("randomDevice")}}
|
||||
function R(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:S.cwd();if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=Wa(a.split("/").filter(e=>!!e),!b).join("/");return(b?"/":"")+a||"."}
|
||||
var $a=(a,b)=>{function c(k){for(var l=0;l<k.length&&""===k[l];l++);for(var p=k.length-1;0<=p&&""===k[p];p--);return l>p?[]:k.slice(l,p-l+1)}a=R(a).substr(1);b=R(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var e=Math.min(a.length,b.length),f=e,g=0;g<e;g++)if(a[g]!==b[g]){f=g;break}e=[];for(g=f;g<a.length;g++)e.push("..");e=e.concat(b.slice(f));return e.join("/")},ab=[];function bb(a,b){ab[a]={input:[],output:[],Za:b};S.Mb(a,cb)}
|
||||
var cb={open:function(a){var b=ab[a.node.rdev];if(!b)throw new S.na(43);a.tty=b;a.seekable=!1},close:function(a){a.tty.Za.flush(a.tty)},flush:function(a){a.tty.Za.flush(a.tty)},read:function(a,b,c,e){if(!a.tty||!a.tty.Za.ec)throw new S.na(60);for(var f=0,g=0;g<e;g++){try{var k=a.tty.Za.ec(a.tty)}catch(l){throw new S.na(29);}if(void 0===k&&0===f)throw new S.na(6);if(null===k||void 0===k)break;f++;b[c+g]=k}f&&(a.node.timestamp=Date.now());return f},write:function(a,b,c,e){if(!a.tty||!a.tty.Za.Ib)throw new S.na(60);
|
||||
try{for(var f=0;f<e;f++)a.tty.Za.Ib(a.tty,b[c+f])}catch(g){throw new S.na(29);}e&&(a.node.timestamp=Date.now());return f}},eb={ec:function(a){if(!a.input.length){var b=null;if(ia){var c=Buffer.alloc(256),e=0;try{e=fs.readSync(process.stdin.fd,c,0,256,-1)}catch(f){if(f.toString().includes("EOF"))e=0;else throw f;}0<e?b=c.slice(0,e).toString("utf-8"):b=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),null!==b&&(b+="\n")):"function"==typeof readline&&
|
||||
(b=readline(),null!==b&&(b+="\n"));if(!b)return null;a.input=db(b,!0)}return a.input.shift()},Ib:function(a,b){null===b||10===b?(oa(B(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},flush:function(a){a.output&&0<a.output.length&&(oa(B(a.output,0)),a.output=[])}},fb={Ib:function(a,b){null===b||10===b?(v(B(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},flush:function(a){a.output&&0<a.output.length&&(v(B(a.output,0)),a.output=[])}},T={Fa:null,ra:function(){return T.createNode(null,"/",16895,0)},
|
||||
createNode:function(a,b,c,e){if(S.Hc(c)||S.isFIFO(c))throw new S.na(63);T.Fa||(T.Fa={dir:{node:{za:T.oa.za,wa:T.oa.wa,lookup:T.oa.lookup,Ca:T.oa.Ca,rename:T.oa.rename,unlink:T.oa.unlink,rmdir:T.oa.rmdir,readdir:T.oa.readdir,symlink:T.oa.symlink},stream:{Aa:T.qa.Aa}},file:{node:{za:T.oa.za,wa:T.oa.wa},stream:{Aa:T.qa.Aa,read:T.qa.read,write:T.qa.write,cb:T.qa.cb,Wa:T.qa.Wa,Xa:T.qa.Xa}},link:{node:{za:T.oa.za,wa:T.oa.wa,readlink:T.oa.readlink},stream:{}},Ub:{node:{za:T.oa.za,wa:T.oa.wa},stream:S.tc}});
|
||||
c=S.createNode(a,b,c,e);S.va(c.mode)?(c.oa=T.Fa.dir.node,c.qa=T.Fa.dir.stream,c.pa={}):S.isFile(c.mode)?(c.oa=T.Fa.file.node,c.qa=T.Fa.file.stream,c.ua=0,c.pa=null):S.Va(c.mode)?(c.oa=T.Fa.link.node,c.qa=T.Fa.link.stream):S.jb(c.mode)&&(c.oa=T.Fa.Ub.node,c.qa=T.Fa.Ub.stream);c.timestamp=Date.now();a&&(a.pa[b]=c,a.timestamp=c.timestamp);return c},nd:function(a){return a.pa?a.pa.subarray?a.pa.subarray(0,a.ua):new Uint8Array(a.pa):new Uint8Array(0)},$b:function(a,b){var c=a.pa?a.pa.length:0;c>=b||(b=
|
||||
Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.pa,a.pa=new Uint8Array(b),0<a.ua&&a.pa.set(c.subarray(0,a.ua),0))},Vc:function(a,b){if(a.ua!=b)if(0==b)a.pa=null,a.ua=0;else{var c=a.pa;a.pa=new Uint8Array(b);c&&a.pa.set(c.subarray(0,Math.min(b,a.ua)));a.ua=b}},oa:{za:function(a){var b={};b.dev=S.jb(a.mode)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;S.va(a.mode)?b.size=4096:S.isFile(a.mode)?b.size=a.ua:S.Va(a.mode)?b.size=a.link.length:b.size=0;b.atime=
|
||||
new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.Ja=4096;b.blocks=Math.ceil(b.size/b.Ja);return b},wa:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);void 0!==b.size&&T.Vc(a,b.size)},lookup:function(){throw S.yb[44];},Ca:function(a,b,c,e){return T.createNode(a,b,c,e)},rename:function(a,b,c){if(S.va(a.mode)){try{var e=S.Ha(b,c)}catch(g){}if(e)for(var f in e.pa)throw new S.na(55);}delete a.parent.pa[a.name];a.parent.timestamp=
|
||||
Date.now();a.name=c;b.pa[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},unlink:function(a,b){delete a.pa[b];a.timestamp=Date.now()},rmdir:function(a,b){var c=S.Ha(a,b),e;for(e in c.pa)throw new S.na(55);delete a.pa[b];a.timestamp=Date.now()},readdir:function(a){var b=[".",".."],c;for(c in a.pa)a.pa.hasOwnProperty(c)&&b.push(c);return b},symlink:function(a,b,c){a=T.createNode(a,b,41471,0);a.link=c;return a},readlink:function(a){if(!S.Va(a.mode))throw new S.na(28);return a.link}},qa:{read:function(a,
|
||||
b,c,e,f){var g=a.node.pa;if(f>=a.node.ua)return 0;a=Math.min(a.node.ua-f,e);if(8<a&&g.subarray)b.set(g.subarray(f,f+a),c);else for(e=0;e<a;e++)b[c+e]=g[f+e];return a},write:function(a,b,c,e,f,g){b.buffer===D.buffer&&(g=!1);if(!e)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.pa||a.pa.subarray)){if(g)return a.pa=b.subarray(c,c+e),a.ua=e;if(0===a.ua&&0===f)return a.pa=b.slice(c,c+e),a.ua=e;if(f+e<=a.ua)return a.pa.set(b.subarray(c,c+e),f),e}T.$b(a,f+e);if(a.pa.subarray&&b.subarray)a.pa.set(b.subarray(c,
|
||||
c+e),f);else for(g=0;g<e;g++)a.pa[f+g]=b[c+g];a.ua=Math.max(a.ua,f+e);return e},Aa:function(a,b,c){1===c?b+=a.position:2===c&&S.isFile(a.node.mode)&&(b+=a.node.ua);if(0>b)throw new S.na(28);return b},cb:function(a,b,c){T.$b(a.node,b+c);a.node.ua=Math.max(a.node.ua,b+c)},Wa:function(a,b,c,e,f,g){if(0!==b)throw new S.na(28);if(!S.isFile(a.node.mode))throw new S.na(43);a=a.node.pa;if(g&2||a.buffer!==Aa){if(0<e||e+c<a.length)a.subarray?a=a.subarray(e,e+c):a=Array.prototype.slice.call(a,e,e+c);e=!0;A();
|
||||
c=void 0;if(!c)throw new S.na(48);D.set(a,c)}else e=!1,c=a.byteOffset;return{ta:c,qc:e}},Xa:function(a,b,c,e,f){if(!S.isFile(a.node.mode))throw new S.na(43);if(f&2)return 0;T.qa.write(a,b,0,e,c,!1);return 0}}};function gb(a,b,c){var e="al "+a;ka(a,function(f){f||A('Loading data file "'+a+'" failed (no arrayBuffer).');b(new Uint8Array(f));e&&La()},function(){if(c)c();else throw'Loading data file "'+a+'" failed.';});e&&H++}
|
||||
var hb={},U={lb:!1,Pb:()=>{U.lb=!!process.platform.match(/^win/);var a=process.binding("constants");a.fs&&(a=a.fs);U.ac={1024:a.O_APPEND,64:a.O_CREAT,128:a.O_EXCL,256:a.O_NOCTTY,0:a.O_RDONLY,2:a.O_RDWR,4096:a.O_SYNC,512:a.O_TRUNC,1:a.O_WRONLY,131072:a.O_NOFOLLOW}},xa:a=>hb[a.code],ra:a=>U.createNode(null,"/",U.Ta(a.$a.root),0),createNode:(a,b,c)=>{if(!S.va(c)&&!S.isFile(c)&&!S.Va(c))throw new S.na(28);a=S.createNode(a,b,c);a.oa=U.oa;a.qa=U.qa;return a},Ta:a=>{try{var b=fs.lstatSync(a);U.lb&&(b.mode=
|
||||
b.mode|(b.mode&292)>>2)}catch(c){if(!c.code)throw c;throw new S.na(U.xa(c));}return b.mode},Ba:a=>{for(var b=[];a.parent!==a;)b.push(a.name),a=a.parent;b.push(a.ra.$a.root);b.reverse();return Ya.apply(null,b)},Ec:a=>{a&=-2721793;var b=0,c;for(c in U.ac)a&c&&(b|=U.ac[c],a^=c);if(a)throw new S.na(28);return b},oa:{za:a=>{a=U.Ba(a);try{var b=fs.lstatSync(a)}catch(c){if(!c.code)throw c;throw new S.na(U.xa(c));}U.lb&&!b.Ja&&(b.Ja=4096);U.lb&&!b.blocks&&(b.blocks=(b.size+b.Ja-1)/b.Ja|0);return{dev:b.dev,
|
||||
ino:b.ino,mode:b.mode,nlink:b.nlink,uid:b.uid,gid:b.gid,rdev:b.rdev,size:b.size,atime:b.atime,mtime:b.mtime,ctime:b.ctime,Ja:b.Ja,blocks:b.blocks}},wa:(a,b)=>{var c=U.Ba(a);try{void 0!==b.mode&&(fs.chmodSync(c,b.mode),a.mode=b.mode),void 0!==b.size&&fs.truncateSync(c,b.size)}catch(e){if(!e.code)throw e;throw new S.na(U.xa(e));}},lookup:(a,b)=>{var c=Q(U.Ba(a),b);c=U.Ta(c);return U.createNode(a,b,c)},Ca:(a,b,c,e)=>{a=U.createNode(a,b,c,e);b=U.Ba(a);try{S.va(a.mode)?fs.mkdirSync(b,a.mode):fs.writeFileSync(b,
|
||||
"",{mode:a.mode})}catch(f){if(!f.code)throw f;throw new S.na(U.xa(f));}return a},rename:(a,b,c)=>{var e=U.Ba(a);b=Q(U.Ba(b),c);try{fs.renameSync(e,b)}catch(f){if(!f.code)throw f;throw new S.na(U.xa(f));}a.name=c},unlink:(a,b)=>{a=Q(U.Ba(a),b);try{fs.unlinkSync(a)}catch(c){if(!c.code)throw c;throw new S.na(U.xa(c));}},rmdir:(a,b)=>{a=Q(U.Ba(a),b);try{fs.rmdirSync(a)}catch(c){if(!c.code)throw c;throw new S.na(U.xa(c));}},readdir:a=>{a=U.Ba(a);try{return fs.readdirSync(a)}catch(b){if(!b.code)throw b;
|
||||
throw new S.na(U.xa(b));}},symlink:(a,b,c)=>{a=Q(U.Ba(a),b);try{fs.symlinkSync(c,a)}catch(e){if(!e.code)throw e;throw new S.na(U.xa(e));}},readlink:a=>{var b=U.Ba(a);try{return b=fs.readlinkSync(b),b=t.relative(t.resolve(a.ra.$a.root),b)}catch(c){if(!c.code)throw c;if("UNKNOWN"===c.code)throw new S.na(28);throw new S.na(U.xa(c));}}},qa:{open:a=>{var b=U.Ba(a.node);try{S.isFile(a.node.mode)&&(a.ib=fs.openSync(b,U.Ec(a.flags)))}catch(c){if(!c.code)throw c;throw new S.na(U.xa(c));}},close:a=>{try{S.isFile(a.node.mode)&&
|
||||
a.ib&&fs.closeSync(a.ib)}catch(b){if(!b.code)throw b;throw new S.na(U.xa(b));}},read:(a,b,c,e,f)=>{if(0===e)return 0;try{return fs.readSync(a.ib,Buffer.from(b.buffer),c,e,f)}catch(g){throw new S.na(U.xa(g));}},write:(a,b,c,e,f)=>{try{return fs.writeSync(a.ib,Buffer.from(b.buffer),c,e,f)}catch(g){throw new S.na(U.xa(g));}},Aa:(a,b,c)=>{if(1===c)b+=a.position;else if(2===c&&S.isFile(a.node.mode))try{b+=fs.fstatSync(a.ib).size}catch(e){throw new S.na(U.xa(e));}if(0>b)throw new S.na(28);return b},Wa:(a,
|
||||
b,c,e)=>{if(0!==b)throw new S.na(28);if(!S.isFile(a.node.mode))throw new S.na(43);A();U.qa.read(a,D,void 0,c,e);return{ta:void 0,qc:!0}},Xa:(a,b,c,e,f)=>{if(!S.isFile(a.node.mode))throw new S.na(43);if(f&2)return 0;U.qa.write(a,b,0,e,c,!1);return 0}}},V={sb:16895,bb:33279,Kb:null,ra:function(a){function b(g){g=g.split("/");for(var k=e,l=0;l<g.length-1;l++){var p=g.slice(0,l+1).join("/");f[p]||(f[p]=V.createNode(k,g[l],V.sb,0));k=f[p]}return k}function c(g){g=g.split("/");return g[g.length-1]}m||A();
|
||||
V.Kb||(V.Kb=new FileReaderSync);var e=V.createNode(null,"/",V.sb,0),f={};Array.prototype.forEach.call(a.$a.files||[],function(g){V.createNode(b(g.name),c(g.name),V.bb,0,g,g.lastModifiedDate)});(a.$a.blobs||[]).forEach(function(g){V.createNode(b(g.name),c(g.name),V.bb,0,g.data)});(a.$a.packages||[]).forEach(function(g){g.metadata.files.forEach(function(k){var l=k.filename.substr(1);V.createNode(b(l),c(l),V.bb,0,g.blob.slice(k.start,k.end))})});return e},createNode:function(a,b,c,e,f,g){e=S.createNode(a,
|
||||
b,c);e.mode=c;e.oa=V.oa;e.qa=V.qa;e.timestamp=(g||new Date).getTime();V.bb!==V.sb||A();c===V.bb?(e.size=f.size,e.pa=f):(e.size=4096,e.pa={});a&&(a.pa[b]=e);return e},oa:{za:function(a){return{dev:1,ino:a.id,mode:a.mode,nlink:1,uid:0,gid:0,rdev:void 0,size:a.size,atime:new Date(a.timestamp),mtime:new Date(a.timestamp),ctime:new Date(a.timestamp),Ja:4096,blocks:Math.ceil(a.size/4096)}},wa:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp)},lookup:function(){throw new S.na(44);
|
||||
},Ca:function(){throw new S.na(63);},rename:function(){throw new S.na(63);},unlink:function(){throw new S.na(63);},rmdir:function(){throw new S.na(63);},readdir:function(a){var b=[".",".."],c;for(c in a.pa)a.pa.hasOwnProperty(c)&&b.push(c);return b},symlink:function(){throw new S.na(63);},readlink:function(){throw new S.na(63);}},qa:{read:function(a,b,c,e,f){if(f>=a.node.size)return 0;a=a.node.pa.slice(f,f+e);e=V.Kb.readAsArrayBuffer(a);b.set(new Uint8Array(e),c);return a.size},write:function(){throw new S.na(29);
|
||||
},Aa:function(a,b,c){1===c?b+=a.position:2===c&&S.isFile(a.node.mode)&&(b+=a.node.size);if(0>b)throw new S.na(28);return b}}},S={root:null,hb:[],Yb:{},streams:[],Mc:1,Ea:null,Xb:"/",Cb:!1,Bb:!0,na:null,yb:{},Cc:null,pb:0,sa:(a,b={})=>{a=R(S.cwd(),a);if(!a)return{path:"",node:null};b=Object.assign({xb:!0,Lb:0},b);if(8<b.Lb)throw new S.na(32);a=Wa(a.split("/").filter(k=>!!k),!1);for(var c=S.root,e="/",f=0;f<a.length;f++){var g=f===a.length-1;if(g&&b.parent)break;c=S.Ha(c,a[f]);e=O(e+"/"+a[f]);S.Na(c)&&
|
||||
(!g||g&&b.xb)&&(c=c.gb.root);if(!g||b.Da)for(g=0;S.Va(c.mode);)if(c=S.readlink(e),e=R(Xa(e),c),c=S.sa(e,{Lb:b.Lb+1}).node,40<g++)throw new S.na(32);}return{path:e,node:c}},La:a=>{for(var b;;){if(S.kb(a))return a=a.ra.kc,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}},Ab:(a,b)=>{for(var c=0,e=0;e<b.length;e++)c=(c<<5)-c+b.charCodeAt(e)|0;return(a+c>>>0)%S.Ea.length},ic:a=>{var b=S.Ab(a.parent.id,a.name);a.Pa=S.Ea[b];S.Ea[b]=a},jc:a=>{var b=S.Ab(a.parent.id,a.name);if(S.Ea[b]===
|
||||
a)S.Ea[b]=a.Pa;else for(b=S.Ea[b];b;){if(b.Pa===a){b.Pa=a.Pa;break}b=b.Pa}},Ha:(a,b)=>{var c=S.Jc(a);if(c)throw new S.na(c,a);for(c=S.Ea[S.Ab(a.id,b)];c;c=c.Pa){var e=c.name;if(c.parent.id===a.id&&e===b)return c}return S.lookup(a,b)},createNode:(a,b,c,e)=>{a=new S.mc(a,b,c,e);S.ic(a);return a},wb:a=>{S.jc(a)},kb:a=>a===a.parent,Na:a=>!!a.gb,isFile:a=>32768===(a&61440),va:a=>16384===(a&61440),Va:a=>40960===(a&61440),jb:a=>8192===(a&61440),Hc:a=>24576===(a&61440),isFIFO:a=>4096===(a&61440),isSocket:a=>
|
||||
49152===(a&49152),Dc:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},Lc:a=>{var b=S.Dc[a];if("undefined"==typeof b)throw Error("Unknown file open mode: "+a);return b},bc:a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},Qa:(a,b)=>{if(S.Bb)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0},Jc:a=>{var b=S.Qa(a,"x");return b?b:a.oa.lookup?0:2},Hb:(a,b)=>{try{return S.Ha(a,b),20}catch(c){}return S.Qa(a,"wx")},
|
||||
mb:(a,b,c)=>{try{var e=S.Ha(a,b)}catch(f){return f.ya}if(a=S.Qa(a,"wx"))return a;if(c){if(!S.va(e.mode))return 54;if(S.kb(e)||S.La(e)===S.cwd())return 10}else if(S.va(e.mode))return 31;return 0},Kc:(a,b)=>a?S.Va(a.mode)?32:S.va(a.mode)&&("r"!==S.bc(b)||b&512)?31:S.Qa(a,S.bc(b)):44,nc:4096,Nc:(a=0,b=S.nc)=>{for(;a<=b;a++)if(!S.streams[a])return a;throw new S.na(33);},Ua:a=>S.streams[a],Wb:(a,b,c)=>{S.tb||(S.tb=function(){this.ob={}},S.tb.prototype={object:{get:function(){return this.node},set:function(e){this.node=
|
||||
e}},flags:{get:function(){return this.ob.flags},set:function(e){this.ob.flags=e}},position:{get md(){return this.ob.position},set:function(e){this.ob.position=e}}});a=Object.assign(new S.tb,a);b=S.Nc(b,c);a.fd=b;return S.streams[b]=a},uc:a=>{S.streams[a]=null},tc:{open:a=>{a.qa=S.Fc(a.node.rdev).qa;a.qa.open&&a.qa.open(a)},Aa:()=>{throw new S.na(70);}},Gb:a=>a>>8,qd:a=>a&255,Oa:(a,b)=>a<<8|b,Mb:(a,b)=>{S.Yb[a]={qa:b}},Fc:a=>S.Yb[a],dc:a=>{var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,
|
||||
c.hb)}return b},lc:(a,b)=>{function c(k){S.pb--;return b(k)}function e(k){if(k){if(!e.Bc)return e.Bc=!0,c(k)}else++g>=f.length&&c(null)}"function"==typeof a&&(b=a,a=!1);S.pb++;1<S.pb&&v("warning: "+S.pb+" FS.syncfs operations in flight at once, probably just doing extra work");var f=S.dc(S.root.ra),g=0;f.forEach(k=>{if(!k.type.lc)return e(null);k.type.lc(k,a,e)})},ra:(a,b,c)=>{var e="/"===c,f=!c;if(e&&S.root)throw new S.na(10);if(!e&&!f){var g=S.sa(c,{xb:!1});c=g.path;g=g.node;if(S.Na(g))throw new S.na(10);
|
||||
if(!S.va(g.mode))throw new S.na(54);}b={type:a,$a:b,kc:c,hb:[]};a=a.ra(b);a.ra=b;b.root=a;e?S.root=a:g&&(g.gb=b,g.ra&&g.ra.hb.push(b));return a},wd:a=>{a=S.sa(a,{xb:!1});if(!S.Na(a.node))throw new S.na(28);a=a.node;var b=a.gb,c=S.dc(b);Object.keys(S.Ea).forEach(e=>{for(e=S.Ea[e];e;){var f=e.Pa;c.includes(e.ra)&&S.wb(e);e=f}});a.gb=null;a.ra.hb.splice(a.ra.hb.indexOf(b),1)},lookup:(a,b)=>a.oa.lookup(a,b),Ca:(a,b,c)=>{var e=S.sa(a,{parent:!0}).node;a=P(a);if(!a||"."===a||".."===a)throw new S.na(28);
|
||||
var f=S.Hb(e,a);if(f)throw new S.na(f);if(!e.oa.Ca)throw new S.na(63);return e.oa.Ca(e,a,b,c)},create:(a,b)=>S.Ca(a,(void 0!==b?b:438)&4095|32768,0),mkdir:(a,b)=>S.Ca(a,(void 0!==b?b:511)&1023|16384,0),rd:(a,b)=>{a=a.split("/");for(var c="",e=0;e<a.length;++e)if(a[e]){c+="/"+a[e];try{S.mkdir(c,b)}catch(f){if(20!=f.ya)throw f;}}},nb:(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);return S.Ca(a,b|8192,c)},symlink:(a,b)=>{if(!R(a))throw new S.na(44);var c=S.sa(b,{parent:!0}).node;if(!c)throw new S.na(44);
|
||||
b=P(b);var e=S.Hb(c,b);if(e)throw new S.na(e);if(!c.oa.symlink)throw new S.na(63);return c.oa.symlink(c,b,a)},rename:(a,b)=>{var c=Xa(a),e=Xa(b),f=P(a),g=P(b);var k=S.sa(a,{parent:!0});var l=k.node;k=S.sa(b,{parent:!0});k=k.node;if(!l||!k)throw new S.na(44);if(l.ra!==k.ra)throw new S.na(75);var p=S.Ha(l,f);a=$a(a,e);if("."!==a.charAt(0))throw new S.na(28);a=$a(b,c);if("."!==a.charAt(0))throw new S.na(55);try{var n=S.Ha(k,g)}catch(r){}if(p!==n){b=S.va(p.mode);if(f=S.mb(l,f,b))throw new S.na(f);if(f=
|
||||
n?S.mb(k,g,b):S.Hb(k,g))throw new S.na(f);if(!l.oa.rename)throw new S.na(63);if(S.Na(p)||n&&S.Na(n))throw new S.na(10);if(k!==l&&(f=S.Qa(l,"w")))throw new S.na(f);S.jc(p);try{l.oa.rename(p,k,g)}catch(r){throw r;}finally{S.ic(p)}}},rmdir:a=>{var b=S.sa(a,{parent:!0}).node;a=P(a);var c=S.Ha(b,a),e=S.mb(b,a,!0);if(e)throw new S.na(e);if(!b.oa.rmdir)throw new S.na(63);if(S.Na(c))throw new S.na(10);b.oa.rmdir(b,a);S.wb(c)},readdir:a=>{a=S.sa(a,{Da:!0}).node;if(!a.oa.readdir)throw new S.na(54);return a.oa.readdir(a)},
|
||||
unlink:a=>{var b=S.sa(a,{parent:!0}).node;if(!b)throw new S.na(44);a=P(a);var c=S.Ha(b,a),e=S.mb(b,a,!1);if(e)throw new S.na(e);if(!b.oa.unlink)throw new S.na(63);if(S.Na(c))throw new S.na(10);b.oa.unlink(b,a);S.wb(c)},readlink:a=>{a=S.sa(a).node;if(!a)throw new S.na(44);if(!a.oa.readlink)throw new S.na(28);return R(S.La(a.parent),a.oa.readlink(a))},stat:(a,b)=>{a=S.sa(a,{Da:!b}).node;if(!a)throw new S.na(44);if(!a.oa.za)throw new S.na(63);return a.oa.za(a)},lstat:a=>S.stat(a,!0),chmod:(a,b,c)=>{a=
|
||||
"string"==typeof a?S.sa(a,{Da:!c}).node:a;if(!a.oa.wa)throw new S.na(63);a.oa.wa(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},lchmod:(a,b)=>{S.chmod(a,b,!0)},fchmod:(a,b)=>{a=S.Ua(a);if(!a)throw new S.na(8);S.chmod(a.node,b)},chown:(a,b,c,e)=>{a="string"==typeof a?S.sa(a,{Da:!e}).node:a;if(!a.oa.wa)throw new S.na(63);a.oa.wa(a,{timestamp:Date.now()})},lchown:(a,b,c)=>{S.chown(a,b,c,!0)},fchown:(a,b,c)=>{a=S.Ua(a);if(!a)throw new S.na(8);S.chown(a.node,b,c)},truncate:(a,b)=>{if(0>b)throw new S.na(28);
|
||||
a="string"==typeof a?S.sa(a,{Da:!0}).node:a;if(!a.oa.wa)throw new S.na(63);if(S.va(a.mode))throw new S.na(31);if(!S.isFile(a.mode))throw new S.na(28);var c=S.Qa(a,"w");if(c)throw new S.na(c);a.oa.wa(a,{size:b,timestamp:Date.now()})},kd:(a,b)=>{a=S.Ua(a);if(!a)throw new S.na(8);if(0===(a.flags&2097155))throw new S.na(28);S.truncate(a.node,b)},xd:(a,b,c)=>{a=S.sa(a,{Da:!0}).node;a.oa.wa(a,{timestamp:Math.max(b,c)})},open:(a,b,c)=>{if(""===a)throw new S.na(44);b="string"==typeof b?S.Lc(b):b;c=b&64?("undefined"==
|
||||
typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=O(a);try{e=S.sa(a,{Da:!(b&131072)}).node}catch(g){}}var f=!1;if(b&64)if(e){if(b&128)throw new S.na(20);}else e=S.Ca(a,c,0),f=!0;if(!e)throw new S.na(44);S.jb(e.mode)&&(b&=-513);if(b&65536&&!S.va(e.mode))throw new S.na(54);if(!f&&(c=S.Kc(e,b)))throw new S.na(c);b&512&&!f&&S.truncate(e,0);b&=-131713;e=S.Wb({node:e,path:S.La(e),flags:b,seekable:!0,position:0,qa:e.qa,dd:[],error:!1});e.qa.open&&e.qa.open(e);!d.logReadFiles||b&1||(S.Jb||
|
||||
(S.Jb={}),a in S.Jb||(S.Jb[a]=1));return e},close:a=>{if(S.fb(a))throw new S.na(8);a.zb&&(a.zb=null);try{a.qa.close&&a.qa.close(a)}catch(b){throw b;}finally{S.uc(a.fd)}a.fd=null},fb:a=>null===a.fd,Aa:(a,b,c)=>{if(S.fb(a))throw new S.na(8);if(!a.seekable||!a.qa.Aa)throw new S.na(70);if(0!=c&&1!=c&&2!=c)throw new S.na(28);a.position=a.qa.Aa(a,b,c);a.dd=[];return a.position},read:(a,b,c,e,f)=>{if(0>e||0>f)throw new S.na(28);if(S.fb(a))throw new S.na(8);if(1===(a.flags&2097155))throw new S.na(8);if(S.va(a.node.mode))throw new S.na(31);
|
||||
if(!a.qa.read)throw new S.na(28);var g="undefined"!=typeof f;if(!g)f=a.position;else if(!a.seekable)throw new S.na(70);b=a.qa.read(a,b,c,e,f);g||(a.position+=b);return b},write:(a,b,c,e,f,g)=>{if(0>e||0>f)throw new S.na(28);if(S.fb(a))throw new S.na(8);if(0===(a.flags&2097155))throw new S.na(8);if(S.va(a.node.mode))throw new S.na(31);if(!a.qa.write)throw new S.na(28);a.seekable&&a.flags&1024&&S.Aa(a,0,2);var k="undefined"!=typeof f;if(!k)f=a.position;else if(!a.seekable)throw new S.na(70);b=a.qa.write(a,
|
||||
b,c,e,f,g);k||(a.position+=b);return b},cb:(a,b,c)=>{if(S.fb(a))throw new S.na(8);if(0>b||0>=c)throw new S.na(28);if(0===(a.flags&2097155))throw new S.na(8);if(!S.isFile(a.node.mode)&&!S.va(a.node.mode))throw new S.na(43);if(!a.qa.cb)throw new S.na(138);a.qa.cb(a,b,c)},Wa:(a,b,c,e,f,g)=>{if(0!==(f&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new S.na(2);if(1===(a.flags&2097155))throw new S.na(2);if(!a.qa.Wa)throw new S.na(43);return a.qa.Wa(a,b,c,e,f,g)},Xa:(a,b,c,e,f)=>a&&a.qa.Xa?a.qa.Xa(a,b,c,e,f):
|
||||
0,sd:()=>0,Db:(a,b,c)=>{if(!a.qa.Db)throw new S.na(59);return a.qa.Db(a,b,c)},readFile:(a,b={})=>{b.flags=b.flags||0;b.encoding=b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,e=S.open(a,b.flags);a=S.stat(a).size;var f=new Uint8Array(a);S.read(e,f,0,a,0);"utf8"===b.encoding?c=B(f,0):"binary"===b.encoding&&(c=f);S.close(e);return c},writeFile:(a,b,c={})=>{c.flags=c.flags||577;a=S.open(a,c.flags,c.mode);if("string"==typeof b){var e=
|
||||
new Uint8Array(va(b)+1);b=ua(b,e,0,e.length);S.write(a,e,0,b,void 0,c.sc)}else if(ArrayBuffer.isView(b))S.write(a,b,0,b.byteLength,void 0,c.sc);else throw Error("Unsupported data type");S.close(a)},cwd:()=>S.Xb,chdir:a=>{a=S.sa(a,{Da:!0});if(null===a.node)throw new S.na(44);if(!S.va(a.node.mode))throw new S.na(54);var b=S.Qa(a.node,"x");if(b)throw new S.na(b);S.Xb=a.path},wc:()=>{S.mkdir("/tmp");S.mkdir("/home");S.mkdir("/home/web_user")},vc:()=>{S.mkdir("/dev");S.Mb(S.Oa(1,3),{read:()=>0,write:(b,
|
||||
c,e,f)=>f});S.nb("/dev/null",S.Oa(1,3));bb(S.Oa(5,0),eb);bb(S.Oa(6,0),fb);S.nb("/dev/tty",S.Oa(5,0));S.nb("/dev/tty1",S.Oa(6,0));var a=Za();S.Ka("/dev","random",a);S.Ka("/dev","urandom",a);S.mkdir("/dev/shm");S.mkdir("/dev/shm/tmp")},zc:()=>{S.mkdir("/proc");var a=S.mkdir("/proc/self");S.mkdir("/proc/self/fd");S.ra({ra:()=>{var b=S.createNode(a,"fd",16895,73);b.oa={lookup:(c,e)=>{var f=S.Ua(+e);if(!f)throw new S.na(8);c={parent:null,ra:{kc:"fake"},oa:{readlink:()=>f.path}};return c.parent=c}};return b}},
|
||||
{},"/proc/self/fd")},Ac:()=>{d.stdin?S.Ka("/dev","stdin",d.stdin):S.symlink("/dev/tty","/dev/stdin");d.stdout?S.Ka("/dev","stdout",null,d.stdout):S.symlink("/dev/tty","/dev/stdout");d.stderr?S.Ka("/dev","stderr",null,d.stderr):S.symlink("/dev/tty1","/dev/stderr");S.open("/dev/stdin",0);S.open("/dev/stdout",1);S.open("/dev/stderr",1)},Zb:()=>{S.na||(S.na=function(a,b){this.node=b;this.Xc=function(c){this.ya=c};this.Xc(a);this.message="FS error"},S.na.prototype=Error(),S.na.prototype.constructor=S.na,
|
||||
[44].forEach(a=>{S.yb[a]=new S.na(a);S.yb[a].stack="<generic error, no stack>"}))},Pb:()=>{S.Zb();S.Ea=Array(4096);S.ra(T,{},"/");S.wc();S.vc();S.zc();S.Cc={MEMFS:T,NODEFS:U,WORKERFS:V}},Ma:(a,b,c)=>{S.Ma.Cb=!0;S.Zb();d.stdin=a||d.stdin;d.stdout=b||d.stdout;d.stderr=c||d.stderr;S.Ac()},td:()=>{S.Ma.Cb=!1;for(var a=0;a<S.streams.length;a++){var b=S.streams[a];b&&S.close(b)}},Ta:(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},jd:(a,b)=>{a=S.ub(a,b);return a.exists?a.object:null},ub:(a,b)=>{try{var c=
|
||||
S.sa(a,{Da:!b});a=c.path}catch(f){}var e={kb:!1,exists:!1,error:0,name:null,path:null,object:null,Pc:!1,Rc:null,Qc:null};try{c=S.sa(a,{parent:!0}),e.Pc=!0,e.Rc=c.path,e.Qc=c.node,e.name=P(a),c=S.sa(a,{Da:!b}),e.exists=!0,e.path=c.path,e.object=c.node,e.name=c.node.name,e.kb="/"===c.path}catch(f){e.error=f.ya}return e},gd:(a,b)=>{a="string"==typeof a?a:S.La(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var e=O(a+"/"+c);try{S.mkdir(e)}catch(f){}a=e}}return e},xc:(a,b,c,e,f)=>{a=Q("string"==
|
||||
typeof a?a:S.La(a),b);e=S.Ta(e,f);return S.create(a,e)},Vb:(a,b,c,e,f,g)=>{var k=b;a&&(a="string"==typeof a?a:S.La(a),k=b?O(a+"/"+b):a);a=S.Ta(e,f);k=S.create(k,a);if(c){if("string"==typeof c){b=Array(c.length);e=0;for(f=c.length;e<f;++e)b[e]=c.charCodeAt(e);c=b}S.chmod(k,a|146);b=S.open(k,577);S.write(b,c,0,c.length,0,g);S.close(b);S.chmod(k,a)}return k},Ka:(a,b,c,e)=>{a=Q("string"==typeof a?a:S.La(a),b);b=S.Ta(!!c,!!e);S.Ka.Gb||(S.Ka.Gb=64);var f=S.Oa(S.Ka.Gb++,0);S.Mb(f,{open:g=>{g.seekable=!1},
|
||||
close:()=>{e&&e.buffer&&e.buffer.length&&e(10)},read:(g,k,l,p)=>{for(var n=0,r=0;r<p;r++){try{var w=c()}catch(y){throw new S.na(29);}if(void 0===w&&0===n)throw new S.na(6);if(null===w||void 0===w)break;n++;k[l+r]=w}n&&(g.node.timestamp=Date.now());return n},write:(g,k,l,p)=>{for(var n=0;n<p;n++)try{e(k[l+n])}catch(r){throw new S.na(29);}p&&(g.node.timestamp=Date.now());return n}});return S.nb(a,b,f)},cc:a=>{if(a.Eb||a.Ic||a.link||a.pa)return!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
|
||||
if(ja)try{a.pa=db(ja(a.url),!0),a.ua=a.pa.length}catch(b){throw new S.na(29);}else throw Error("Cannot load without read() or XMLHttpRequest.");},yc:(a,b,c,e,f)=>{function g(){this.Fb=!1;this.Ia=[]}g.prototype.get=function(n){if(!(n>this.length-1||0>n)){var r=n%this.chunkSize;return this.hc(n/this.chunkSize|0)[r]}};g.prototype.Ya=function(n){this.hc=n};g.prototype.Tb=function(){var n=new XMLHttpRequest;n.open("HEAD",c,!1);n.send(null);if(!(200<=n.status&&300>n.status||304===n.status))throw Error("Couldn't load "+
|
||||
c+". Status: "+n.status);var r=Number(n.getResponseHeader("Content-length")),w,y=(w=n.getResponseHeader("Accept-Ranges"))&&"bytes"===w;n=(w=n.getResponseHeader("Content-Encoding"))&&"gzip"===w;var h=1048576;y||(h=r);var u=this;u.Ya(x=>{var F=x*h,I=(x+1)*h-1;I=Math.min(I,r-1);if("undefined"==typeof u.Ia[x]){var Ab=u.Ia;if(F>I)throw Error("invalid range ("+F+", "+I+") or no bytes requested!");if(I>r-1)throw Error("only "+r+" bytes available! programmer error!");var J=new XMLHttpRequest;J.open("GET",
|
||||
c,!1);r!==h&&J.setRequestHeader("Range","bytes="+F+"-"+I);J.responseType="arraybuffer";J.overrideMimeType&&J.overrideMimeType("text/plain; charset=x-user-defined");J.send(null);if(!(200<=J.status&&300>J.status||304===J.status))throw Error("Couldn't load "+c+". Status: "+J.status);F=void 0!==J.response?new Uint8Array(J.response||[]):db(J.responseText||"",!0);Ab[x]=F}if("undefined"==typeof u.Ia[x])throw Error("doXHR failed!");return u.Ia[x]});if(n||!r)h=r=1,h=r=this.hc(0).length,oa("LazyFiles on gzip forces download of the whole file when length is accessed");
|
||||
this.pc=r;this.oc=h;this.Fb=!0};if("undefined"!=typeof XMLHttpRequest){if(!m)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var k=new g;Object.defineProperties(k,{length:{get:function(){this.Fb||this.Tb();return this.pc}},chunkSize:{get:function(){this.Fb||this.Tb();return this.oc}}});k={Eb:!1,pa:k}}else k={Eb:!1,url:c};var l=S.xc(a,b,k,e,f);k.pa?l.pa=k.pa:k.url&&(l.pa=null,l.url=k.url);Object.defineProperties(l,{ua:{get:function(){return this.pa.length}}});
|
||||
var p={};Object.keys(l.qa).forEach(n=>{var r=l.qa[n];p[n]=function(){S.cc(l);return r.apply(null,arguments)}});p.read=(n,r,w,y,h)=>{S.cc(l);n=n.node.pa;if(h>=n.length)return 0;y=Math.min(n.length-h,y);if(n.slice)for(var u=0;u<y;u++)r[w+u]=n[h+u];else for(u=0;u<y;u++)r[w+u]=n.get(h+u);return y};l.qa=p;return l},hd:(a,b,c,e,f,g,k,l,p,n)=>{function r(y){function h(u){n&&n();l||S.Vb(a,b,u,e,f,p);g&&g();La()}ib.od(y,w,h,()=>{k&&k();La()})||h(y)}var w=b?R(O(a+"/"+b)):a;H++;"string"==typeof c?gb(c,y=>r(y),
|
||||
k):r(c)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,Rb:()=>"EM_FS_"+window.location.pathname,Sb:20,ab:"FILE_DATA",ud:(a,b,c)=>{b=b||(()=>{});c=c||(()=>{});var e=S.indexedDB();try{var f=e.open(S.Rb(),S.Sb)}catch(g){return c(g)}f.onupgradeneeded=()=>{oa("creating db");f.result.createObjectStore(S.ab)};f.onsuccess=()=>{var g=f.result.transaction([S.ab],"readwrite"),k=g.objectStore(S.ab),l=0,p=0,n=a.length;a.forEach(r=>{r=k.put(S.ub(r).object.pa,r);
|
||||
r.onsuccess=()=>{l++;l+p==n&&(0==p?b():c())};r.onerror=()=>{p++;l+p==n&&(0==p?b():c())}});g.onerror=c};f.onerror=c},pd:(a,b,c)=>{b=b||(()=>{});c=c||(()=>{});var e=S.indexedDB();try{var f=e.open(S.Rb(),S.Sb)}catch(g){return c(g)}f.onupgradeneeded=c;f.onsuccess=()=>{var g=f.result;try{var k=g.transaction([S.ab],"readonly")}catch(w){c(w);return}var l=k.objectStore(S.ab),p=0,n=0,r=a.length;a.forEach(w=>{var y=l.get(w);y.onsuccess=()=>{S.ub(w).exists&&S.unlink(w);S.Vb(Xa(w),P(w),y.result,!0,!0,!0);p++;
|
||||
p+n==r&&(0==n?b():c())};y.onerror=()=>{n++;p+n==r&&(0==n?b():c())}});k.onerror=c};f.onerror=c}};function jb(a,b){if("/"===b.charAt(0))return b;if(-100===a)a=S.cwd();else{a=S.Ua(a);if(!a)throw new S.na(8);a=a.path}if(0==b.length)throw new S.na(44);return O(a+"/"+b)}var kb=void 0;function W(){kb+=4;return E[kb-4>>2]}function lb(a){a=S.Ua(a);if(!a)throw new S.na(8);return a}
|
||||
function mb(a,b,c){function e(p){return(p=p.toTimeString().match(/\(([A-Za-z ]+)\)$/))?p[1]:"GMT"}var f=(new Date).getFullYear(),g=new Date(f,0,1),k=new Date(f,6,1);f=g.getTimezoneOffset();var l=k.getTimezoneOffset();E[a>>2]=60*Math.max(f,l);E[b>>2]=Number(f!=l);a=e(g);b=e(k);a=wa(a);b=wa(b);l<f?(E[c>>2]=a,E[c+4>>2]=b):(E[c>>2]=b,E[c+4>>2]=a)}function nb(a,b,c){nb.rc||(nb.rc=!0,mb(a,b,c))}var ob={};
|
||||
function pb(){if(!qb){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ea||"./this.program"},b;for(b in ob)void 0===ob[b]?delete a[b]:a[b]=ob[b];var c=[];for(b in a)c.push(b+"="+a[b]);qb=c}return qb}var qb;function rb(a){return 0===a%4&&(0!==a%100||0===a%400)}var sb=[31,29,31,30,31,30,31,31,30,31,30,31],tb=[31,28,31,30,31,30,31,31,30,31,30,31];
|
||||
function ub(a,b,c,e){function f(h,u,x){for(h="number"==typeof h?h.toString():h||"";h.length<u;)h=x[0]+h;return h}function g(h,u){return f(h,u,"0")}function k(h,u){function x(I){return 0>I?-1:0<I?1:0}var F;0===(F=x(h.getFullYear()-u.getFullYear()))&&0===(F=x(h.getMonth()-u.getMonth()))&&(F=x(h.getDate()-u.getDate()));return F}function l(h){switch(h.getDay()){case 0:return new Date(h.getFullYear()-1,11,29);case 1:return h;case 2:return new Date(h.getFullYear(),0,3);case 3:return new Date(h.getFullYear(),
|
||||
0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function p(h){var u=h.Ra;for(h=new Date((new Date(h.Sa+1900,0,1)).getTime());0<u;){var x=h.getMonth(),F=(rb(h.getFullYear())?sb:tb)[x];if(u>F-h.getDate())u-=F-h.getDate()+1,h.setDate(1),11>x?h.setMonth(x+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+u);break}}x=new Date(h.getFullYear()+1,0,4);u=l(new Date(h.getFullYear(),
|
||||
0,4));x=l(x);return 0>=k(u,h)?0>=k(x,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var n=E[e+40>>2];e={ad:E[e>>2],$c:E[e+4>>2],qb:E[e+8>>2],Qb:E[e+12>>2],rb:E[e+16>>2],Sa:E[e+20>>2],Ga:E[e+24>>2],Ra:E[e+28>>2],vd:E[e+32>>2],Zc:E[e+36>>2],bd:n?C(n):""};c=C(c);n={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d",
|
||||
"%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var r in n)c=c.replace(new RegExp(r,"g"),n[r]);var w="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),y="January February March April May June July August September October November December".split(" ");n={"%a":function(h){return w[h.Ga].substring(0,3)},"%A":function(h){return w[h.Ga]},"%b":function(h){return y[h.rb].substring(0,3)},"%B":function(h){return y[h.rb]},
|
||||
"%C":function(h){return g((h.Sa+1900)/100|0,2)},"%d":function(h){return g(h.Qb,2)},"%e":function(h){return f(h.Qb,2," ")},"%g":function(h){return p(h).toString().substring(2)},"%G":function(h){return p(h)},"%H":function(h){return g(h.qb,2)},"%I":function(h){h=h.qb;0==h?h=12:12<h&&(h-=12);return g(h,2)},"%j":function(h){for(var u=0,x=0;x<=h.rb-1;u+=(rb(h.Sa+1900)?sb:tb)[x++]);return g(h.Qb+u,3)},"%m":function(h){return g(h.rb+1,2)},"%M":function(h){return g(h.$c,2)},"%n":function(){return"\n"},"%p":function(h){return 0<=
|
||||
h.qb&&12>h.qb?"AM":"PM"},"%S":function(h){return g(h.ad,2)},"%t":function(){return"\t"},"%u":function(h){return h.Ga||7},"%U":function(h){return g(Math.floor((h.Ra+7-h.Ga)/7),2)},"%V":function(h){var u=Math.floor((h.Ra+7-(h.Ga+6)%7)/7);2>=(h.Ga+371-h.Ra-2)%7&&u++;if(u)53==u&&(x=(h.Ga+371-h.Ra)%7,4==x||3==x&&rb(h.Sa)||(u=1));else{u=52;var x=(h.Ga+7-h.Ra-1)%7;(4==x||5==x&&rb(h.Sa%400-1))&&u++}return g(u,2)},"%w":function(h){return h.Ga},"%W":function(h){return g(Math.floor((h.Ra+7-(h.Ga+6)%7)/7),2)},
|
||||
"%y":function(h){return(h.Sa+1900).toString().substring(2)},"%Y":function(h){return h.Sa+1900},"%z":function(h){h=h.Zc;var u=0<=h;h=Math.abs(h)/60;return(u?"+":"-")+String("0000"+(h/60*100+h%60)).slice(-4)},"%Z":function(h){return h.bd},"%%":function(){return"%"}};c=c.replace(/%%/g,"\x00\x00");for(r in n)c.includes(r)&&(c=c.replace(new RegExp(r,"g"),n[r](e)));c=c.replace(/\0\0/g,"%");r=db(c,!1);if(r.length>b)return 0;D.set(r,a);return r.length-1}
|
||||
function vb(a,b,c,e){a||(a=this);this.parent=a;this.ra=a.ra;this.gb=null;this.id=S.Mc++;this.name=b;this.mode=c;this.oa={};this.qa={};this.rdev=e}Object.defineProperties(vb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},Ic:{get:function(){return S.va(this.mode)}},Eb:{get:function(){return S.jb(this.mode)}}});S.mc=vb;S.Pb();var ib;
|
||||
ia&&(ma(),U.Pb());
|
||||
hb={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,
|
||||
ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,
|
||||
EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135};function db(a,b){var c=Array(va(a)+1);a=ua(a,c,0,c.length);b&&(c.length=a);return c}
|
||||
var Tb={n:function(a,b,c,e){A("Assertion failed: "+C(a)+", at: "+[b?C(b):"unknown filename",c,e?C(e):"unknown function"])},a:function(a){return xa(a+24)+24},o:function(a){a=new N(a);a.Tc()||(a.Nb(!0),Sa--);a.Ob(!1);Ra.push(a);a.Oc();return a.Wc()},q:function(){X(0);var a=Ra.pop();if(a.Uc()&&!a.fc()){var b=a.Gc();b&&L(b)(a.eb);Ua(a.eb)}M=0},d:function(){var a=M;if(!a)return z=0;var b=new N(a);b.Ya(a);var c=b.Ia();if(!c)return z=0,a;for(var e=Array.prototype.slice.call(arguments),f=0;f<e.length;f++){var g=
|
||||
e[f];if(0===g||g===c)break;if(wb(g,c,b.ta+16))return z=g,a}z=c;return a},j:function(){var a=M;if(!a)return z=0;var b=new N(a);b.Ya(a);var c=b.Ia();if(!c)return z=0,a;for(var e=Array.prototype.slice.call(arguments),f=0;f<e.length;f++){var g=e[f];if(0===g||g===c)break;if(wb(g,c,b.ta+16))return z=g,a}z=c;return a},O:function(){var a=M;if(!a)return z=0;var b=new N(a);b.Ya(a);var c=b.Ia();if(!c)return z=0,a;for(var e=Array.prototype.slice.call(arguments),f=0;f<e.length;f++){var g=e[f];if(0===g||g===c)break;
|
||||
if(wb(g,c,b.ta+16))return z=g,a}z=c;return a},y:Ua,D:function(){var a=Ra.pop();a||A("no exception to throw");var b=a.eb;a.fc()||(Ra.push(a),a.Ob(!0),a.Nb(!1),Sa++);M=b;throw b;},b:function(a,b,c){(new N(a)).Ma(b,c);M=a;Sa++;throw a;},R:function(){return Sa},g:function(a){M||(M=a);throw a;},F:function(a,b,c){kb=c;try{var e=lb(a);switch(b){case 0:var f=W();return 0>f?-28:S.Wb(e,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=W(),e.flags|=f,0;case 5:return f=W(),Ba[f+0>>1]=2,0;case 6:case 7:return 0;
|
||||
case 16:case 8:return-28;case 9:return E[xb()>>2]=28,-1;default:return-28}}catch(g){if("undefined"==typeof S||!(g instanceof S.na))throw g;return-g.ya}},_:function(a,b,c){kb=c;try{var e=lb(a);switch(b){case 21509:case 21505:return e.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.tty?0:-59;case 21519:if(!e.tty)return-59;var f=W();return E[f>>2]=0;case 21520:return e.tty?-28:-59;case 21531:return f=W(),S.Db(e,b,f);case 21523:return e.tty?0:-59;case 21524:return e.tty?
|
||||
0:-59;default:A("bad ioctl syscall "+b)}}catch(g){if("undefined"==typeof S||!(g instanceof S.na))throw g;return-g.ya}},$:function(a,b,c,e){kb=e;try{b=C(b);b=jb(a,b);var f=e?W():0;return S.open(b,c,f).fd}catch(g){if("undefined"==typeof S||!(g instanceof S.na))throw g;return-g.ya}},U:function(a,b,c,e){try{return b=C(b),e=C(e),b=jb(a,b),e=jb(c,e),S.rename(b,e),0}catch(f){if("undefined"==typeof S||!(f instanceof S.na))throw f;return-f.ya}},T:function(a,b){try{a=C(a);a:{var c=S.stat;try{var e=c(a)}catch(g){if(g&&
|
||||
g.node&&O(a)!==O(S.La(g.node))){var f=-54;break a}throw g;}E[b>>2]=e.dev;E[b+4>>2]=0;E[b+8>>2]=e.ino;E[b+12>>2]=e.mode;E[b+16>>2]=e.nlink;E[b+20>>2]=e.uid;E[b+24>>2]=e.gid;E[b+28>>2]=e.rdev;E[b+32>>2]=0;Ca[b+40>>3]=BigInt(e.size);E[b+48>>2]=4096;E[b+52>>2]=e.blocks;E[b+56>>2]=e.atime.getTime()/1E3|0;E[b+60>>2]=0;E[b+64>>2]=e.mtime.getTime()/1E3|0;E[b+68>>2]=0;E[b+72>>2]=e.ctime.getTime()/1E3|0;E[b+76>>2]=0;Ca[b+80>>3]=BigInt(e.ino);f=0}return f}catch(g){if("undefined"==typeof S||!(g instanceof S.na))throw g;
|
||||
return-g.ya}},S:function(a,b,c){try{return b=C(b),b=jb(a,b),0===c?S.unlink(b):512===c?S.rmdir(b):A("Invalid flags passed to unlinkat"),0}catch(e){if("undefined"==typeof S||!(e instanceof S.na))throw e;return-e.ya}},G:function(){return Date.now()},P:function(){throw Infinity;},H:function(a,b){a=new Date(1E3*E[a>>2]);E[b>>2]=a.getSeconds();E[b+4>>2]=a.getMinutes();E[b+8>>2]=a.getHours();E[b+12>>2]=a.getDate();E[b+16>>2]=a.getMonth();E[b+20>>2]=a.getFullYear()-1900;E[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),
|
||||
0,1);E[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;E[b+36>>2]=-(60*a.getTimezoneOffset());var e=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();c=c.getTimezoneOffset();E[b+32>>2]=(e!=c&&a.getTimezoneOffset()==Math.min(c,e))|0},I:nb,z:function(){A("")},A:function(a){var b=ta.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);var f=Math;e=Math.max(a,e);f=f.min.call(f,2147483648,e+(65536-e%65536)%65536);a:{try{pa.grow(f-Aa.byteLength+65535>>>16);
|
||||
Da();var g=1;break a}catch(k){}g=void 0}if(g)return!0}return!1},W:function(a,b){var c=0;pb().forEach(function(e,f){var g=b+c;f=E[a+4*f>>2]=g;for(g=0;g<e.length;++g)D[f++>>0]=e.charCodeAt(g);D[f>>0]=0;c+=e.length+1});return 0},X:function(a,b){var c=pb();E[a>>2]=c.length;var e=0;c.forEach(function(f){e+=f.length+1});E[b>>2]=e;return 0},v:function(a){ra=a;yb(a)},E:function(a){try{var b=lb(a);S.close(b);return 0}catch(c){if("undefined"==typeof S||!(c instanceof S.na))throw c;return c.ya}},Z:function(a,
|
||||
b,c,e){try{a:{var f=lb(a);a=b;for(var g=b=0;g<c;g++){var k=G[a>>2],l=G[a+4>>2];a+=8;var p=S.read(f,D,k,l,void 0);if(0>p){var n=-1;break a}b+=p;if(p<l)break}n=b}E[e>>2]=n;return 0}catch(r){if("undefined"==typeof S||!(r instanceof S.na))throw r;return r.ya}},V:function(a,b,c,e){try{var f=Number(b&BigInt(4294967295))|0,g=Number(b>>BigInt(32))|0,k=lb(a);a=4294967296*g+(f>>>0);if(-9007199254740992>=a||9007199254740992<=a)return 61;S.Aa(k,a,c);Ca[e>>3]=BigInt(k.position);k.zb&&0===a&&0===c&&(k.zb=null);
|
||||
return 0}catch(l){if("undefined"==typeof S||!(l instanceof S.na))throw l;return l.ya}},Y:function(a,b,c,e){try{a:{var f=lb(a);a=b;for(var g=b=0;g<c;g++){var k=G[a>>2],l=G[a+4>>2];a+=8;var p=S.write(f,D,k,l,void 0);if(0>p){var n=-1;break a}b+=p}n=b}E[e>>2]=n;return 0}catch(r){if("undefined"==typeof S||!(r instanceof S.na))throw r;return r.ya}},c:function(){return z},J:zb,e:Bb,f:Cb,p:Db,L:Eb,N:Fb,s:Gb,B:Hb,x:Ib,M:Jb,K:Kb,k:Lb,i:Mb,h:Nb,r:Ob,m:Pb,t:Qb,u:Rb,w:Sb,C:function(a){return a},l:function(a){z=
|
||||
a},Q:function(a,b,c,e){return ub(a,b,c,e)}};
|
||||
(function(){function a(f){d.asm=f.exports;pa=d.asm.aa;Da();Ea=d.asm.ga;Ga.unshift(d.asm.ba);La()}function b(f){a(f.instance)}function c(f){return Pa().then(function(g){return WebAssembly.instantiate(g,e)}).then(function(g){return g}).then(f,function(g){v("failed to asynchronously prepare wasm: "+g);A(g)})}var e={a:Tb};H++;if(d.instantiateWasm)try{return d.instantiateWasm(e,a)}catch(f){return v("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return"function"!=typeof WebAssembly.instantiateStreaming||
|
||||
Ma()||K.startsWith("file://")||"function"!=typeof fetch?c(b):fetch(K,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(g){v("wasm streaming compile failed: "+g);v("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);return{}})();d.___wasm_call_ctors=function(){return(d.___wasm_call_ctors=d.asm.ba).apply(null,arguments)};
|
||||
var xb=d.___errno_location=function(){return(xb=d.___errno_location=d.asm.ca).apply(null,arguments)},xa=d._malloc=function(){return(xa=d._malloc=d.asm.da).apply(null,arguments)};d._main=function(){return(d._main=d.asm.ea).apply(null,arguments)};
|
||||
var Va=d._free=function(){return(Va=d._free=d.asm.fa).apply(null,arguments)},X=d._setThrew=function(){return(X=d._setThrew=d.asm.ha).apply(null,arguments)},Y=d.stackSave=function(){return(Y=d.stackSave=d.asm.ia).apply(null,arguments)},Z=d.stackRestore=function(){return(Z=d.stackRestore=d.asm.ja).apply(null,arguments)},za=d.stackAlloc=function(){return(za=d.stackAlloc=d.asm.ka).apply(null,arguments)},wb=d.___cxa_can_catch=function(){return(wb=d.___cxa_can_catch=d.asm.la).apply(null,arguments)},Ta=
|
||||
d.___cxa_is_pointer_type=function(){return(Ta=d.___cxa_is_pointer_type=d.asm.ma).apply(null,arguments)};function Mb(a,b){var c=Y();try{L(a)(b)}catch(e){Z(c);if(e!==e+0)throw e;X(1,0)}}function Bb(a,b){var c=Y();try{return L(a)(b)}catch(e){Z(c);if(e!==e+0)throw e;X(1,0)}}function Cb(a,b,c){var e=Y();try{return L(a)(b,c)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Ob(a,b,c,e){var f=Y();try{L(a)(b,c,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}
|
||||
function Nb(a,b,c){var e=Y();try{L(a)(b,c)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Lb(a){var b=Y();try{L(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Gb(a,b,c,e,f,g,k){var l=Y();try{return L(a)(b,c,e,f,g,k)}catch(p){Z(l);if(p!==p+0)throw p;X(1,0)}}function Db(a,b,c,e){var f=Y();try{return L(a)(b,c,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}function Fb(a,b,c,e,f,g){var k=Y();try{return L(a)(b,c,e,f,g)}catch(l){Z(k);if(l!==l+0)throw l;X(1,0)}}
|
||||
function Jb(a,b,c,e,f,g){var k=Y();try{return L(a)(b,c,e,f,g)}catch(l){Z(k);if(l!==l+0)throw l;X(1,0)}}function Eb(a,b,c,e,f,g){var k=Y();try{return L(a)(b,c,e,f,g)}catch(l){Z(k);if(l!==l+0)throw l;X(1,0)}}function Kb(a,b,c,e){var f=Y();try{return L(a)(b,c,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}function Hb(a,b,c,e,f,g,k,l){var p=Y();try{return L(a)(b,c,e,f,g,k,l)}catch(n){Z(p);if(n!==n+0)throw n;X(1,0)}}
|
||||
function Pb(a,b,c,e,f){var g=Y();try{L(a)(b,c,e,f)}catch(k){Z(g);if(k!==k+0)throw k;X(1,0)}}function Qb(a,b,c,e,f,g,k,l){var p=Y();try{L(a)(b,c,e,f,g,k,l)}catch(n){Z(p);if(n!==n+0)throw n;X(1,0)}}function Ib(a,b,c,e,f,g,k,l,p,n,r,w){var y=Y();try{return L(a)(b,c,e,f,g,k,l,p,n,r,w)}catch(h){Z(y);if(h!==h+0)throw h;X(1,0)}}function Rb(a,b,c,e,f,g,k,l,p,n,r){var w=Y();try{L(a)(b,c,e,f,g,k,l,p,n,r)}catch(y){Z(w);if(y!==y+0)throw y;X(1,0)}}
|
||||
function Sb(a,b,c,e,f,g,k,l,p,n,r,w,y,h,u,x){var F=Y();try{L(a)(b,c,e,f,g,k,l,p,n,r,w,y,h,u,x)}catch(I){Z(F);if(I!==I+0)throw I;X(1,0)}}function zb(a){var b=Y();try{return L(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}d.callMain=Ub;d.ENV=ob;d.FS=S;d.NODEFS=U;d.WORKERFS=V;var Vb;function na(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}Ka=function Wb(){Vb||Xb();Vb||(Ka=Wb)};
|
||||
function Ub(a){var b=d._main;a=a||[];var c=a.length+1,e=za(4*(c+1));E[e>>2]=ya(ea);for(var f=1;f<c;f++)E[(e>>2)+f]=ya(a[f-1]);E[(e>>2)+c]=0;try{var g=b(c,e);ra=g;yb(g);return g}catch(l){if(l instanceof na||"unwind"==l)var k=ra;else fa(1,l),k=void 0;return k}finally{}}
|
||||
function Xb(a){a=a||da;if(!(0<H)){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;){var b=d.preRun.shift();Fa.unshift(b)}Qa(Fa);0<H||Vb||(Vb=!0,d.calledRun=!0,qa||(d.noFSInit||S.Ma.Cb||S.Ma(),S.Bb=!1,Qa(Ga),Qa(Ha),aa(d),Yb&&Ub(a),Qa(Ia)))}}d.run=Xb;function yb(a){ra=a;noExitRuntime||(qa=!0);fa(a,new na(a))}var Yb=!0;d.noInitialRun&&(Yb=!1);Xb();
|
||||
Object.assign(S,{init:S.Ma,mkdir:S.mkdir,mount:S.ra,chdir:S.chdir,writeFile:S.writeFile,readFile:S.readFile,createLazyFile:S.yc,setIgnorePermissions:function(a){S.Bb=a}});
|
||||
|
||||
|
||||
return Module.ready
|
||||
}
|
||||
);
|
||||
})();
|
||||
export default Module;
|
||||
@@ -2,6 +2,9 @@ import { createApp } from 'vue';
|
||||
import { createPinia } from 'pinia';
|
||||
import { createHead } from '@vueuse/head';
|
||||
|
||||
import { install as VueMonacoEditorPlugin, loader } from '@guolao/vue-monaco-editor';
|
||||
import * as monaco from 'monaco-editor';
|
||||
|
||||
import { registerSW } from 'virtual:pwa-register';
|
||||
import shadow from 'vue-shadow-dom';
|
||||
import { plausible } from './plugins/plausible.plugin';
|
||||
@@ -14,10 +17,14 @@ import App from './App.vue';
|
||||
import router from './router';
|
||||
import { i18nPlugin } from './plugins/i18n.plugin';
|
||||
|
||||
// loaded monaco-editor from `node_modules`
|
||||
loader.config({ monaco });
|
||||
|
||||
registerSW();
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(VueMonacoEditorPlugin);
|
||||
app.use(createPinia());
|
||||
app.use(createHead());
|
||||
app.use(i18nPlugin);
|
||||
|
||||
@@ -11,6 +11,8 @@ import BugIcon from '~icons/mdi/bug-outline';
|
||||
import DiceIcon from '~icons/mdi/dice-5';
|
||||
import InfoIcon from '~icons/mdi/information-outline';
|
||||
|
||||
const maxSearchResultsPerCategory = import.meta.env.VITE_MAX_SEARCH_RESULT || 25;
|
||||
|
||||
export const useCommandPaletteStore = defineStore('command-palette', () => {
|
||||
const toolStore = useToolStore();
|
||||
const styleStore = useStyleStore();
|
||||
@@ -48,7 +50,7 @@ export const useCommandPaletteStore = defineStore('command-palette', () => {
|
||||
},
|
||||
{
|
||||
name: 'Github repository',
|
||||
href: 'https://github.com/CorentinTh/it-tools',
|
||||
href: 'https://github.com/sharevb/it-tools',
|
||||
category: 'External',
|
||||
description: 'View the source code of it-tools on Github.',
|
||||
keywords: ['github', 'repo', 'repository', 'source', 'code'],
|
||||
@@ -57,7 +59,7 @@ export const useCommandPaletteStore = defineStore('command-palette', () => {
|
||||
{
|
||||
name: 'Report a bug or an issue',
|
||||
description: 'Report a bug or an issue to help improve it-tools.',
|
||||
href: 'https://github.com/CorentinTh/it-tools/issues/new/choose',
|
||||
href: 'https://github.com/sharevb/it-tools/issues/new/choose',
|
||||
category: 'Actions',
|
||||
keywords: ['report', 'issue', 'bug', 'problem', 'error'],
|
||||
icon: BugIcon,
|
||||
@@ -82,7 +84,7 @@ export const useCommandPaletteStore = defineStore('command-palette', () => {
|
||||
});
|
||||
|
||||
const filteredSearchResult = computed(() =>
|
||||
_.chain(searchResult.value).groupBy('category').mapValues(categoryOptions => _.take(categoryOptions, 5)).value());
|
||||
_.chain(searchResult.value).groupBy('category').mapValues(categoryOptions => _.take(categoryOptions, maxSearchResultsPerCategory)).value());
|
||||
|
||||
return {
|
||||
filteredSearchResult,
|
||||
|
||||
@@ -124,7 +124,7 @@ function activateOption(option: PaletteOption) {
|
||||
</span>
|
||||
</c-button>
|
||||
|
||||
<c-modal v-model:open="isModalOpen" class="palette-modal" shadow-xl important:max-w-650px important:pa-12px @keydown="handleKeydown">
|
||||
<c-modal v-model:open="isModalOpen" class="palette-modal" overflow-y-auto shadow-xl important:max-w-650px pretty-scrollbar important:pa-12px @keydown="handleKeydown">
|
||||
<c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text placeholder="Type to search a tool or a command..." autofocus clearable />
|
||||
|
||||
<div v-for="(options, category) in filteredSearchResult" :key="category">
|
||||
@@ -147,6 +147,10 @@ function activateOption(option: PaletteOption) {
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep(.palette-modal) {
|
||||
max-height: 80vh;
|
||||
}
|
||||
|
||||
.c-modal--overlay {
|
||||
align-items: flex-start !important;
|
||||
padding-top: 80px;
|
||||
|
||||
@@ -7,6 +7,7 @@ const localesLong: Record<string, string> = {
|
||||
es: 'Español',
|
||||
fr: 'Français',
|
||||
no: 'Norwegian',
|
||||
pl: 'Polski',
|
||||
pt: 'Português',
|
||||
ru: 'Русский',
|
||||
uk: 'Українська',
|
||||
|
||||
+4
-11
@@ -28,18 +28,11 @@ function onUpdateFavoriteTools() {
|
||||
<ColoredCard v-if="config.showBanner" :title="$t('home.follow.title')" :icon="IconHeart">
|
||||
{{ $t('home.follow.p1') }}
|
||||
<a
|
||||
href="https://github.com/CorentinTh/it-tools"
|
||||
href="https://github.com/sharevb/it-tools"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
:aria-label="$t('home.follow.githubRepository')"
|
||||
>GitHub</a>
|
||||
{{ $t('home.follow.p2') }}
|
||||
<a
|
||||
href="https://x.com/ittoolsdottech"
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
:aria-label="$t('home.follow.twitterXAccount')"
|
||||
>X</a>.
|
||||
{{ $t('home.follow.thankYou') }}
|
||||
<n-icon :component="IconHeart" />
|
||||
</ColoredCard>
|
||||
@@ -65,7 +58,7 @@ function onUpdateFavoriteTools() {
|
||||
|
||||
<transition name="height">
|
||||
<div v-if="toolStore.favoriteTools.length > 0">
|
||||
<h3 class="mb-5px mt-25px text-neutral-400 font-500">
|
||||
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
||||
{{ $t('home.categories.favoriteTools') }}
|
||||
<c-tooltip :tooltip="$t('home.categories.favoritesDndToolTip')">
|
||||
<n-icon :component="IconDragDrop" size="18" />
|
||||
@@ -86,7 +79,7 @@ function onUpdateFavoriteTools() {
|
||||
</transition>
|
||||
|
||||
<div v-if="toolStore.newTools.length > 0">
|
||||
<h3 class="mb-5px mt-25px text-neutral-400 font-500">
|
||||
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
||||
{{ t('home.categories.newestTools') }}
|
||||
</h3>
|
||||
<div class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
||||
@@ -94,7 +87,7 @@ function onUpdateFavoriteTools() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 class="mb-5px mt-25px text-neutral-400 font-500">
|
||||
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
||||
{{ $t('home.categories.allTools') }}
|
||||
</h3>
|
||||
<div class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
||||
|
||||
@@ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n';
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: 'en',
|
||||
locale: import.meta.env.VITE_LANGUAGE || 'en',
|
||||
messages,
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<script setup lang="ts">
|
||||
import promptSplitter from 'chatgpt-prompt-splitter';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
|
||||
const prompt = ref('');
|
||||
const splitLength = ref(1024);
|
||||
|
||||
const splittedPrompts = computed(() => {
|
||||
try {
|
||||
return promptSplitter({
|
||||
prompt: prompt.value,
|
||||
splitLength: splitLength.value,
|
||||
newLine: true,
|
||||
});
|
||||
}
|
||||
catch (e: any) {
|
||||
return [e.toString()];
|
||||
}
|
||||
});
|
||||
|
||||
const promptValidation = useValidation({
|
||||
source: prompt,
|
||||
rules: [
|
||||
{
|
||||
validator: v => v !== '',
|
||||
message: 'Prompt must not be empty',
|
||||
},
|
||||
],
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<c-card title="Prompt and options" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="prompt"
|
||||
label="Full Prompt"
|
||||
multiline
|
||||
placeholder="Put your full prompt here..."
|
||||
rows="10"
|
||||
:validation="promptValidation"
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item label="Character length for each chunk">
|
||||
<n-input-number v-model:value="splitLength" :min="1" />
|
||||
</n-form-item>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Divided prompts">
|
||||
<div v-for="(splittedPrompt, index) in splittedPrompts" :key="index">
|
||||
<TextareaCopyable :value="splittedPrompt" />
|
||||
</div>
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,7 @@
|
||||
declare module "chatgpt-prompt-splitter" {
|
||||
export default function promptSplitter(options: {
|
||||
prompt: string
|
||||
splitLength: number
|
||||
newLine: boolean
|
||||
}): Array<string>;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Prompt } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'AI Prompt Splitter',
|
||||
path: '/ai-prompt-splitter',
|
||||
description: 'Split a long document to multiple chat (ie ChatGPT) prompts',
|
||||
keywords: ['ai', 'chatgpt', 'gpt', 'prompt', 'splitter'],
|
||||
component: () => import('./ai-prompt-splitter.vue'),
|
||||
icon: Prompt,
|
||||
createdAt: new Date('2024-07-14'),
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
deg: 'degree (°)',
|
||||
rad: 'radian',
|
||||
turn: 'turn',
|
||||
gradian: 'gradian',
|
||||
grad: 'grad',
|
||||
gon: 'gon',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="deg" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Angle } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Angle Units Converter',
|
||||
path: '/angle-converter',
|
||||
description: 'Convert values between angle units',
|
||||
keywords: ['angle', 'converter'],
|
||||
component: () => import('./angle-converter.vue'),
|
||||
icon: Angle,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -0,0 +1,103 @@
|
||||
<script setup lang="ts">
|
||||
import { Vault } from 'ansible-vault';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const decryptedInput = ref('');
|
||||
const encryptPassword = ref('');
|
||||
const encryptId = ref('');
|
||||
const cryptedOutput = computedAsync(
|
||||
async () => {
|
||||
try {
|
||||
const v = new Vault({ password: encryptPassword.value });
|
||||
return await v.encrypt(decryptedInput.value, encryptId.value);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
const cryptedInput = ref('');
|
||||
const decryptPassword = ref('');
|
||||
const decryptedOutput = computedAsync(
|
||||
async () => {
|
||||
try {
|
||||
const v = new Vault({ password: decryptPassword.value });
|
||||
// handle mac \r
|
||||
return (await v.decrypt(cryptedInput.value?.replace(/\r(?!\n)/, '\n'), undefined)) ?? '';
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card title="Encrypt Ansible Vault Secret">
|
||||
<c-input-text
|
||||
v-model:value="decryptedInput"
|
||||
placeholder="Put your string to encrypt..."
|
||||
label="String to encrypt"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<n-space>
|
||||
<c-input-text
|
||||
v-model:value="encryptPassword"
|
||||
placeholder="Encryption password"
|
||||
label="Encryption password"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
<c-input-text
|
||||
v-model:value="encryptId"
|
||||
placeholder="Encryption Id"
|
||||
label="Encryption Id"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
</n-space>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<TextareaCopyable
|
||||
label="Encrypted string"
|
||||
:value="cryptedOutput"
|
||||
multiline
|
||||
readonly
|
||||
rows="5"
|
||||
mb-5
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Decrypt Ansible Vault Secret">
|
||||
<c-input-text
|
||||
v-model:value="cryptedInput"
|
||||
placeholder="Put your encrypted string here..."
|
||||
label="String to decrypt"
|
||||
raw-text multiline mb-5
|
||||
rows="5"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="decryptPassword"
|
||||
placeholder="Decryption password"
|
||||
label="Decryption password"
|
||||
raw-text
|
||||
mb-5
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<TextareaCopyable
|
||||
label="Decrypted string"
|
||||
:value="decryptedOutput"
|
||||
multiline
|
||||
readonly
|
||||
rows="5"
|
||||
mb-5
|
||||
/>
|
||||
</c-card>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { LockSquare } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Ansible vault crypt decrypt',
|
||||
path: '/ansible-vault-crypt-decrypt',
|
||||
description: 'Encrypt and decrypt Ansible Vault Secrets',
|
||||
keywords: ['ansible', 'vault', 'crypt', 'decrypt'],
|
||||
component: () => import('./ansible-vault-crypt-decrypt.vue'),
|
||||
icon: LockSquare,
|
||||
createdAt: new Date('2024-02-25'),
|
||||
});
|
||||
@@ -0,0 +1,155 @@
|
||||
<script setup lang="ts">
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
interface KeyValuePair {
|
||||
key: string
|
||||
value?: string
|
||||
}
|
||||
const baseUrl = useQueryParamOrStorage({ name: 'url', storageName: 'api-tester:url', defaultValue: '' });
|
||||
const method = useQueryParamOrStorage({ name: 'method', storageName: 'api-tester:m', defaultValue: 'POST' });
|
||||
const queryParams = useQueryParamOrStorage<KeyValuePair[]>({ name: 'params', storageName: 'api-tester:params', defaultValue: [] });
|
||||
const headers = useQueryParamOrStorage<KeyValuePair[]>({ name: 'headers', storageName: 'api-tester:headers', defaultValue: [] });
|
||||
const contentType = useQueryParamOrStorage({ name: 'ct', storageName: 'api-tester:ct', defaultValue: 'application/json' });
|
||||
const body = useQueryParamOrStorage({ name: 'body', storageName: 'api-tester:body', defaultValue: '' });
|
||||
const noCORS = ref(false);
|
||||
const apiCallResult = ref();
|
||||
|
||||
const inprogress = ref(false);
|
||||
async function callAPI() {
|
||||
const url = new URL(baseUrl.value);
|
||||
for (const kv of queryParams.value) {
|
||||
if (!kv.key) {
|
||||
continue;
|
||||
}
|
||||
url.searchParams.append(kv.key, kv.value || '');
|
||||
}
|
||||
const queryHeaders = [] as [string, string][];
|
||||
for (const kv of headers.value) {
|
||||
if (!kv.key) {
|
||||
continue;
|
||||
}
|
||||
queryHeaders.push([kv.key, kv.value || '']);
|
||||
}
|
||||
queryHeaders.push(['Content-Type', contentType.value || '']);
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
method: method.value,
|
||||
headers: queryHeaders,
|
||||
body: (method.value === 'GET' || method.value === 'HEAD') ? null : body.value,
|
||||
mode: noCORS.value ? 'no-cors' : 'cors',
|
||||
});
|
||||
|
||||
let responseText = await response.text();
|
||||
try {
|
||||
responseText = JSON.stringify(JSON.parse(responseText), null, 2);
|
||||
}
|
||||
catch (_) {
|
||||
}
|
||||
apiCallResult.value = {
|
||||
code: response.status,
|
||||
error: '',
|
||||
result: responseText,
|
||||
};
|
||||
}
|
||||
catch (err: any) {
|
||||
apiCallResult.value = {
|
||||
code: -1,
|
||||
error: err.toString(),
|
||||
result: null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function emptyKeyPair() {
|
||||
return {
|
||||
key: '',
|
||||
value: '',
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card title="API Calling">
|
||||
<c-input-text
|
||||
v-model:value="baseUrl"
|
||||
label="Base API Url"
|
||||
placeholder="Base API Url"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-select
|
||||
v-model:value="method"
|
||||
label="HTTP Method:"
|
||||
:options="['GET', 'POST', 'PUT', 'DELETE', 'PATCH']"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-card title="Headers" mb-2>
|
||||
<n-dynamic-input v-model:value="headers" :on-create="emptyKeyPair">
|
||||
<template #create-button-default>
|
||||
Add a new HTTP Header
|
||||
</template>
|
||||
<template #default="{ value }">
|
||||
<div v-if="value" w-100 flex justify-center gap-2>
|
||||
<c-input-text v-model:value="value.key" placeholder="Header Name" type="text" />
|
||||
<c-input-text v-model:value="value.value" placeholder="Value" type="text" />
|
||||
</div>
|
||||
</template>
|
||||
</n-dynamic-input>
|
||||
<c-select
|
||||
v-model:value="contentType"
|
||||
label="Content-Type:"
|
||||
:options="['application/json', 'text/plain']"
|
||||
mt-2
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Query Parameters" mb-2>
|
||||
<n-dynamic-input v-model:value="queryParams" :on-create="emptyKeyPair">
|
||||
<template #create-button-default>
|
||||
Add a new Query Parameter
|
||||
</template>
|
||||
<template #default="{ value }">
|
||||
<div v-if="value" w-100 flex justify-center gap-2>
|
||||
<c-input-text v-model:value="value.key" placeholder="Param Name" type="text" />
|
||||
<c-input-text v-model:value="value.value" placeholder="Value" type="text" />
|
||||
</div>
|
||||
</template>
|
||||
</n-dynamic-input>
|
||||
</c-card>
|
||||
<c-input-text
|
||||
v-if="method !== 'GET' && method !== 'HEAD'"
|
||||
v-model:value="body"
|
||||
label="Body"
|
||||
placeholder="HTTP Query body"
|
||||
multiline
|
||||
monospace
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-checkbox v-model:checked="noCORS">
|
||||
No CORS
|
||||
</n-checkbox>
|
||||
|
||||
<div mt-5 flex justify-center>
|
||||
<c-button secondary @click="callAPI">
|
||||
Call API
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
<n-spin
|
||||
v-if="inprogress"
|
||||
size="small"
|
||||
/>
|
||||
<c-alert v-if="!inprogress && apiCallResult && apiCallResult.code !== 200" type="error" mt-12 title="Error while calling API">
|
||||
<p><strong>Status code = {{ apiCallResult.code }}</strong></p>
|
||||
<TextareaCopyable :value="apiCallResult.error" copy-placement="none" />
|
||||
</c-alert>
|
||||
<c-card v-if="!inprogress && apiCallResult && apiCallResult.code === 200" mt-12 title="API Call result">
|
||||
<TextareaCopyable :value="apiCallResult.result" word-wrap />
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { World } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'API Tester',
|
||||
path: '/api-tester',
|
||||
description: 'HTTP API Tester',
|
||||
keywords: ['api', 'http', 'call', 'tester'],
|
||||
component: () => import('./api-tester.vue'),
|
||||
icon: World,
|
||||
createdAt: new Date('2024-05-11'),
|
||||
});
|
||||
@@ -0,0 +1,35 @@
|
||||
<script setup lang="ts">
|
||||
import UnitsConverter from '@/components/UnitsConverter.vue';
|
||||
|
||||
const supportedUnits = {
|
||||
'm²': 'square meter',
|
||||
'Pm²': 'square petameter',
|
||||
'Tm²': 'square terameter',
|
||||
'Gm²': 'square gigameter',
|
||||
'Mm²': 'square megameter',
|
||||
'km²': 'square kilometer',
|
||||
'hm²': 'square hectometer',
|
||||
'dam²': 'square decameter',
|
||||
'dm²': 'square decimeter',
|
||||
'cm²': 'square centimeter',
|
||||
'mm²': 'square millimeter',
|
||||
'μm²': 'square micrometer',
|
||||
'nm²': 'square nanometer',
|
||||
'pm²': 'square picometer',
|
||||
'fm²': 'square femtometer',
|
||||
'ac': 'acre',
|
||||
'ca': 'centiare',
|
||||
'da': 'deciare',
|
||||
'are': 'are',
|
||||
'daa': 'decare',
|
||||
'ha': 'hectare',
|
||||
'ft²': 'square foot (/ft2/sq ft)',
|
||||
'in²': 'square inch (/in2/sq in)',
|
||||
'yd²': 'square yard (yd2/sq yd)',
|
||||
'mi²': 'square mile (mi2/sq mi)',
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UnitsConverter default-unit="m²" :supported-units="supportedUnits" label-width="150px" />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { SquaresDiagonal } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Area Units Converter',
|
||||
path: '/area-converter',
|
||||
description: 'Convert values between area units',
|
||||
keywords: ['area', 'converter'],
|
||||
component: () => import('./area-converter.vue'),
|
||||
icon: SquaresDiagonal,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -1,8 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import figlet from 'figlet';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
import { languages, translateToLanguage } from '@/utils/ascii-lang-utils';
|
||||
|
||||
const input = ref('Ascii ART');
|
||||
const language = useStorage('ascii-text-drawer:language', 'raw');
|
||||
const font = useStorage('ascii-text-drawer:font', 'Standard');
|
||||
const width = useStorage('ascii-text-drawer:width', 80);
|
||||
const output = ref('');
|
||||
@@ -11,16 +13,24 @@ const processing = ref(false);
|
||||
|
||||
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.6.0/fonts/' });
|
||||
|
||||
const languagesOptions = languages.map(lang => ({ value: lang.id, label: lang.name }));
|
||||
|
||||
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.6.0/fonts/' });
|
||||
|
||||
watchEffect(async () => {
|
||||
const inputValue = input.value;
|
||||
const languageValue = language.value;
|
||||
const fontValue = font.value;
|
||||
const widthValue = width.value;
|
||||
processing.value = true;
|
||||
try {
|
||||
const options: figlet.Options = {
|
||||
font: font.value as figlet.Fonts,
|
||||
width: width.value,
|
||||
font: fontValue as figlet.Fonts,
|
||||
width: widthValue,
|
||||
whitespaceBreak: true,
|
||||
};
|
||||
output.value = await (new Promise<string>((resolve, reject) =>
|
||||
figlet.text(input.value, options,
|
||||
const rawOutput = await (new Promise<string>((resolve, reject) =>
|
||||
figlet.text(inputValue, options,
|
||||
(err, text) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
@@ -29,6 +39,8 @@ watchEffect(async () => {
|
||||
|
||||
resolve(text ?? '');
|
||||
})));
|
||||
|
||||
output.value = translateToLanguage(rawOutput, languageValue);
|
||||
errored.value = false;
|
||||
}
|
||||
catch (e: any) {
|
||||
@@ -50,6 +62,7 @@ const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line
|
||||
multiline
|
||||
rows="4"
|
||||
/>
|
||||
<c-select v-model:value="language" :options="languagesOptions" searchable mt-3 />
|
||||
|
||||
<n-divider />
|
||||
|
||||
|
||||
@@ -9,4 +9,5 @@ export const tool = defineTool({
|
||||
component: () => import('./ascii-text-drawer.vue'),
|
||||
icon: Artboard,
|
||||
createdAt: new Date('2024-03-03'),
|
||||
npmPackages: ['figlet'],
|
||||
});
|
||||
@@ -0,0 +1,70 @@
|
||||
// aspect-ratio-calculator.service.test.ts
|
||||
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import {
|
||||
type AspectRatio,
|
||||
calculateAspectRatio,
|
||||
calculateDimensions,
|
||||
simplifyRatio,
|
||||
} from './aspect-ratio-calculator.service';
|
||||
|
||||
describe('Aspect Ratio Calculator Service', () => {
|
||||
describe('calculateAspectRatio', () => {
|
||||
it('calculates correct aspect ratio for 1920x1080', () => {
|
||||
const result = calculateAspectRatio(1920, 1080);
|
||||
expect(result).toEqual({ r1: 16, r2: 9 });
|
||||
});
|
||||
|
||||
it('calculates correct aspect ratio for 640x480', () => {
|
||||
const result = calculateAspectRatio(640, 480);
|
||||
expect(result).toEqual({ r1: 4, r2: 3 });
|
||||
});
|
||||
|
||||
it('handles square aspect ratio', () => {
|
||||
const result = calculateAspectRatio(1000, 1000);
|
||||
expect(result).toEqual({ r1: 1, r2: 1 });
|
||||
});
|
||||
});
|
||||
|
||||
describe('calculateDimensions', () => {
|
||||
it('calculates correct height given width and 16:9 ratio', () => {
|
||||
const ratio: AspectRatio = { r1: 16, r2: 9 };
|
||||
const result = calculateDimensions(1920, ratio, true);
|
||||
expect(result).toEqual({ width: 1920, height: 1080 });
|
||||
});
|
||||
|
||||
it('calculates correct width given height and 4:3 ratio', () => {
|
||||
const ratio: AspectRatio = { r1: 4, r2: 3 };
|
||||
const result = calculateDimensions(480, ratio, false);
|
||||
expect(result).toEqual({ width: 640, height: 480 });
|
||||
});
|
||||
|
||||
it('handles 1:1 ratio', () => {
|
||||
const ratio: AspectRatio = { r1: 1, r2: 1 };
|
||||
const result = calculateDimensions(500, ratio, true);
|
||||
expect(result).toEqual({ width: 500, height: 500 });
|
||||
});
|
||||
});
|
||||
|
||||
describe('simplifyRatio', () => {
|
||||
it('simplifies 16:9 ratio', () => {
|
||||
const result = simplifyRatio(16, 9);
|
||||
expect(result).toEqual({ r1: 16, r2: 9 });
|
||||
});
|
||||
|
||||
it('simplifies 1920:1080 to 16:9', () => {
|
||||
const result = simplifyRatio(1920, 1080);
|
||||
expect(result).toEqual({ r1: 16, r2: 9 });
|
||||
});
|
||||
|
||||
it('simplifies 4:2 to 2:1', () => {
|
||||
const result = simplifyRatio(4, 2);
|
||||
expect(result).toEqual({ r1: 2, r2: 1 });
|
||||
});
|
||||
|
||||
it('handles already simplified ratios', () => {
|
||||
const result = simplifyRatio(7, 5);
|
||||
expect(result).toEqual({ r1: 7, r2: 5 });
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,44 @@
|
||||
// aspect-ratio-calculator.service.ts
|
||||
|
||||
export interface AspectRatio {
|
||||
r1: number
|
||||
r2: number
|
||||
}
|
||||
|
||||
export interface Dimensions {
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
|
||||
export function calculateAspectRatio(width: number, height: number): AspectRatio {
|
||||
const gcd = (a: number, b: number): number => (b === 0 ? a : gcd(b, a % b));
|
||||
const divisor = gcd(width, height);
|
||||
return {
|
||||
r1: width / divisor,
|
||||
r2: height / divisor,
|
||||
};
|
||||
}
|
||||
|
||||
export function calculateDimensions(
|
||||
knownDimension: number,
|
||||
ratio: AspectRatio,
|
||||
isWidth: boolean,
|
||||
): Dimensions {
|
||||
if (isWidth) {
|
||||
const height = Math.round((knownDimension * ratio.r2) / ratio.r1);
|
||||
return { width: knownDimension, height };
|
||||
}
|
||||
else {
|
||||
const width = Math.round((knownDimension * ratio.r1) / ratio.r2);
|
||||
return { width, height: knownDimension };
|
||||
}
|
||||
}
|
||||
|
||||
export function simplifyRatio(r1: number, r2: number): AspectRatio {
|
||||
const gcd = (a: number, b: number): number => (b === 0 ? a : gcd(b, a % b));
|
||||
const divisor = gcd(r1, r2);
|
||||
return {
|
||||
r1: r1 / divisor,
|
||||
r2: r2 / divisor,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
<!-- AspectRatioCalculator.vue -->
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { NButton, NInputNumber, NRadio, NRadioGroup, NSpace } from 'naive-ui';
|
||||
import {
|
||||
calculateAspectRatio,
|
||||
calculateDimensions,
|
||||
} from './aspect-ratio-calculator.service';
|
||||
|
||||
const width = ref<number | null>(null);
|
||||
const height = ref<number | null>(null);
|
||||
const r1 = ref<number | null>(null);
|
||||
const r2 = ref<number | null>(null);
|
||||
const mode = ref<'ratio' | 'dimensions'>('ratio');
|
||||
const result = ref<string | null>(null);
|
||||
|
||||
function calculateResult() {
|
||||
if (mode.value === 'ratio' && width.value && height.value) {
|
||||
const ratio = calculateAspectRatio(width.value, height.value);
|
||||
r1.value = ratio.r1;
|
||||
r2.value = ratio.r2;
|
||||
result.value = `Aspect Ratio: ${ratio.r1}:${ratio.r2}`;
|
||||
}
|
||||
else if (mode.value === 'dimensions' && r1.value && r2.value) {
|
||||
if (width.value) {
|
||||
const dimensions = calculateDimensions(width.value, { r1: r1.value, r2: r2.value }, true);
|
||||
height.value = dimensions.height;
|
||||
result.value = `Dimensions: ${dimensions.width}x${dimensions.height}`;
|
||||
}
|
||||
else if (height.value) {
|
||||
const dimensions = calculateDimensions(height.value, { r1: r1.value, r2: r2.value }, false);
|
||||
width.value = dimensions.width;
|
||||
result.value = `Dimensions: ${dimensions.width}x${dimensions.height}`;
|
||||
}
|
||||
else {
|
||||
result.value = 'Please enter either width or height to calculate dimensions';
|
||||
}
|
||||
}
|
||||
else {
|
||||
result.value = 'Please fill in the required fields';
|
||||
}
|
||||
}
|
||||
|
||||
function clearAll() {
|
||||
width.value = null;
|
||||
height.value = null;
|
||||
r1.value = null;
|
||||
r2.value = null;
|
||||
result.value = null;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NSpace vertical :size="24">
|
||||
<NRadioGroup v-model:value="mode">
|
||||
<NRadio value="ratio">
|
||||
Calculate Aspect Ratio
|
||||
</NRadio>
|
||||
<NRadio value="dimensions">
|
||||
Calculate Dimensions
|
||||
</NRadio>
|
||||
</NRadioGroup>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>Pixels width</label>
|
||||
<NInputNumber v-model:value="width" placeholder="Pixels width" :min="1" />
|
||||
</div>
|
||||
<div class="input-pair">
|
||||
<label>Pixels height</label>
|
||||
<NInputNumber v-model:value="height" placeholder="Pixels height" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-pair">
|
||||
<label>Ratio width</label>
|
||||
<NInputNumber v-model:value="r1" placeholder="Ratio width" :min="1" />
|
||||
</div>
|
||||
<div class="separator">
|
||||
:
|
||||
</div>
|
||||
<div class="input-pair">
|
||||
<label>Ratio height</label>
|
||||
<NInputNumber v-model:value="r2" placeholder="Ratio height" :min="1" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<NButton type="primary" @click="calculateResult">
|
||||
Calculate
|
||||
</NButton>
|
||||
<NButton @click="clearAll">
|
||||
Clear All
|
||||
</NButton>
|
||||
</div>
|
||||
|
||||
<div v-if="result" class="result">
|
||||
{{ result }}
|
||||
</div>
|
||||
</NSpace>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.input-group {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.input-pair {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.input-pair label {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.separator {
|
||||
align-self: flex-end;
|
||||
margin-bottom: 7px;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.button-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.button-container .n-button {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.result {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:deep(.n-input-number) {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { AspectRatio } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Aspect Ratio Calculator',
|
||||
path: '/aspect-ratio-calculator',
|
||||
description: 'Use this ratio calculator to check the dimensions when resizing images.',
|
||||
keywords: ['aspect', 'ratio', 'calculator'],
|
||||
component: () => import('./aspect-ratio-calculator.vue'),
|
||||
icon: AspectRatio,
|
||||
createdAt: new Date('2024-08-14'),
|
||||
});
|
||||
@@ -0,0 +1,127 @@
|
||||
<script setup lang="ts">
|
||||
import bwipjs, { type RenderOptions } from 'bwip-js/browser';
|
||||
import { Base64 } from 'js-base64';
|
||||
import formats from './barcode.formats.json';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const foreground = useQueryParamOrStorage({ name: 'fg', storageName: 'barcode-gen:fg', defaultValue: '#000000' });
|
||||
const background = useQueryParamOrStorage({ name: 'bg', storageName: 'barcode-gen:bg', defaultValue: '#FFFFFF' });
|
||||
const scale = useQueryParamOrStorage({ name: 'scale', storageName: 'barcode-gen:scale', defaultValue: 2 });
|
||||
const height = useQueryParamOrStorage({ name: 'height', storageName: 'barcode-gen:height', defaultValue: 25 });
|
||||
const margin = useQueryParamOrStorage({ name: 'margin', storageName: 'barcode-gen:margin', defaultValue: 10 });
|
||||
const format = useQueryParamOrStorage({ name: 'format', storageName: 'barcode-gen:format', defaultValue: 'code128' });
|
||||
const displayValue = useQueryParamOrStorage({ name: 'display', storageName: 'barcode-gen:display', defaultValue: true });
|
||||
const value = ref('123456789');
|
||||
const barcodeCanvas = ref<HTMLCanvasElement>();
|
||||
|
||||
const options = computed<RenderOptions>(() => ({
|
||||
barcolor: foreground.value,
|
||||
textcolor: foreground.value,
|
||||
backgroundcolor: background.value,
|
||||
scale: scale.value,
|
||||
height: height.value,
|
||||
padding: margin.value,
|
||||
bcid: format.value === 'auto' ? 'code128' : format.value,
|
||||
includetext: displayValue.value,
|
||||
text: value.value,
|
||||
textxalign: 'center',
|
||||
}));
|
||||
|
||||
const error = ref('');
|
||||
watchEffect(() => {
|
||||
if (!barcodeCanvas.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
bwipjs.toCanvas(barcodeCanvas.value, options.value);
|
||||
}
|
||||
catch (e: any) {
|
||||
error.value = e.toString();
|
||||
}
|
||||
});
|
||||
|
||||
const barcodePNG = computed(() => {
|
||||
return barcodeCanvas.value?.toDataURL('image/png') || '';
|
||||
});
|
||||
const barcodeSVG = computed(() => {
|
||||
try {
|
||||
return Base64.encode(bwipjs.toSVG(options.value));
|
||||
}
|
||||
catch (e: any) {
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
const { download: downloadPNG } = useDownloadFileFromBase64({ source: barcodePNG, filename: 'barcode.png' });
|
||||
const { download: downloadSVG } = useDownloadFileFromBase64({ source: barcodeSVG, filename: 'barcode.svg' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card>
|
||||
<n-grid x-gap="12" y-gap="12" cols="1 600:3">
|
||||
<n-gi span="2">
|
||||
<c-input-text
|
||||
v-model:value="value"
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
label-align="right"
|
||||
label="Text:"
|
||||
multiline
|
||||
rows="1"
|
||||
autosize
|
||||
placeholder="Your barcode..."
|
||||
mb-6
|
||||
/>
|
||||
<n-form label-width="130" label-placement="left">
|
||||
<c-select
|
||||
v-model:value="format"
|
||||
label="Format:"
|
||||
label-position="left"
|
||||
label-width="130px"
|
||||
label-align="right"
|
||||
:options="formats"
|
||||
searchable
|
||||
mb-4
|
||||
/>
|
||||
|
||||
<n-form-item label="Foreground color:">
|
||||
<n-color-picker v-model:value="foreground" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Background color:">
|
||||
<n-color-picker v-model:value="background" :modes="['hex']" :show-alpha="false" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Scale:">
|
||||
<n-input-number v-model:value="scale" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Height (mm):">
|
||||
<n-input-number v-model:value="height" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Margin:">
|
||||
<n-input-number v-model:value="margin" :min="0" />
|
||||
</n-form-item>
|
||||
<n-form-item label="Display text:">
|
||||
<n-checkbox v-model:checked="displayValue" />
|
||||
</n-form-item>
|
||||
</n-form>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
<div flex flex-col items-center gap-3>
|
||||
<c-alert v-if="error">
|
||||
{{ error }}
|
||||
</c-alert>
|
||||
<canvas ref="barcodeCanvas" />
|
||||
<div flex justify-center>
|
||||
<c-button mr-2 @click="downloadPNG">
|
||||
Download PNG barcode
|
||||
</c-button>
|
||||
<c-button @click="downloadSVG">
|
||||
Download SVG barcode
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</n-gi>
|
||||
</n-grid>
|
||||
</c-card>
|
||||
</template>
|
||||
@@ -0,0 +1,112 @@
|
||||
[
|
||||
{ "value": "auspost", "label": "AusPost 4 State Customer Code" },
|
||||
{ "value": "azteccode", "label": "Aztec Code" },
|
||||
{ "value": "azteccodecompact", "label": "Compact Aztec Code" },
|
||||
{ "value": "aztecrune", "label": "Aztec Runes" },
|
||||
{ "value": "bc412", "label": "BC412" },
|
||||
{ "value": "channelcode", "label": "Channel Code" },
|
||||
{ "value": "codablockf", "label": "Codablock F" },
|
||||
{ "value": "code11", "label": "Code 11" },
|
||||
{ "value": "code128", "label": "Code 128" },
|
||||
{ "value": "code16k", "label": "Code 16K" },
|
||||
{ "value": "code2of5", "label": "Code 25" },
|
||||
{ "value": "code32", "label": "Italian Pharmacode" },
|
||||
{ "value": "code39", "label": "Code 39" },
|
||||
{ "value": "code39ext", "label": "Code 39 Extended" },
|
||||
{ "value": "code49", "label": "Code 49" },
|
||||
{ "value": "code93", "label": "Code 93" },
|
||||
{ "value": "code93ext", "label": "Code 93 Extended" },
|
||||
{ "value": "codeone", "label": "Code One" },
|
||||
{ "value": "coop2of5", "label": "COOP 2 of 5" },
|
||||
{ "value": "daft", "label": "Custom 4 state symbology" },
|
||||
{ "value": "databarexpanded", "label": "GS1 DataBar Expanded" },
|
||||
{ "value": "databarexpandedcomposite", "label": "GS1 DataBar Expanded Composite" },
|
||||
{ "value": "databarexpandedstacked", "label": "GS1 DataBar Expanded Stacked" },
|
||||
{ "value": "databarexpandedstackedcomposite", "label": "GS1 DataBar Expanded Stacked Composite" },
|
||||
{ "value": "databarlimited", "label": "GS1 DataBar Limited" },
|
||||
{ "value": "databarlimitedcomposite", "label": "GS1 DataBar Limited Composite" },
|
||||
{ "value": "databaromni", "label": "GS1 DataBar Omnidirectional" },
|
||||
{ "value": "databaromnicomposite", "label": "GS1 DataBar Omnidirectional Composite" },
|
||||
{ "value": "databarstacked", "label": "GS1 DataBar Stacked" },
|
||||
{ "value": "databarstackedcomposite", "label": "GS1 DataBar Stacked Composite" },
|
||||
{ "value": "databarstackedomni", "label": "GS1 DataBar Stacked Omnidirectional" },
|
||||
{ "value": "databarstackedomnicomposite", "label": "GS1 DataBar Stacked Omnidirectional Composite" },
|
||||
{ "value": "databartruncated", "label": "GS1 DataBar Truncated" },
|
||||
{ "value": "databartruncatedcomposite", "label": "GS1 DataBar Truncated Composite" },
|
||||
{ "value": "datalogic2of5", "label": "Datalogic 2 of 5" },
|
||||
{ "value": "datamatrix", "label": "Data Matrix" },
|
||||
{ "value": "datamatrixrectangular", "label": "Data Matrix Rectangular" },
|
||||
{ "value": "datamatrixrectangularextension", "label": "Data Matrix Rectangular Extension" },
|
||||
{ "value": "dotcode", "label": "DotCode" },
|
||||
{ "value": "ean13", "label": "EAN-13" },
|
||||
{ "value": "ean13composite", "label": "EAN-13 Composite" },
|
||||
{ "value": "ean14", "label": "GS1-14" },
|
||||
{ "value": "ean2", "label": "EAN-2 (2 digit addon)" },
|
||||
{ "value": "ean5", "label": "EAN-5 (5 digit addon)" },
|
||||
{ "value": "ean8", "label": "EAN-8" },
|
||||
{ "value": "ean8composite", "label": "EAN-8 Composite" },
|
||||
{ "value": "flattermarken", "label": "Flattermarken" },
|
||||
{ "value": "gs1-128", "label": "GS1-128" },
|
||||
{ "value": "gs1-128composite", "label": "GS1-128 Composite" },
|
||||
{ "value": "gs1-cc", "label": "GS1 Composite 2D Component" },
|
||||
{ "value": "gs1datamatrix", "label": "GS1 Data Matrix" },
|
||||
{ "value": "gs1datamatrixrectangular", "label": "GS1 Data Matrix Rectangular" },
|
||||
{ "value": "gs1dldatamatrix", "label": "GS1 Digital Link Data Matrix" },
|
||||
{ "value": "gs1dlqrcode", "label": "GS1 Digital Link QR Code" },
|
||||
{ "value": "gs1dotcode", "label": "GS1 DotCode" },
|
||||
{ "value": "gs1northamericancoupon", "label": "GS1 North American Coupon" },
|
||||
{ "value": "gs1qrcode", "label": "GS1 QR Code" },
|
||||
{ "value": "hanxin", "label": "Han Xin Code" },
|
||||
{ "value": "hibcazteccode", "label": "HIBC Aztec Code" },
|
||||
{ "value": "hibccodablockf", "label": "HIBC Codablock F" },
|
||||
{ "value": "hibccode128", "label": "HIBC Code 128" },
|
||||
{ "value": "hibccode39", "label": "HIBC Code 39" },
|
||||
{ "value": "hibcdatamatrix", "label": "HIBC Data Matrix" },
|
||||
{ "value": "hibcdatamatrixrectangular", "label": "HIBC Data Matrix Rectangular" },
|
||||
{ "value": "hibcmicropdf417", "label": "HIBC MicroPDF417" },
|
||||
{ "value": "hibcpdf417", "label": "HIBC PDF417" },
|
||||
{ "value": "hibcqrcode", "label": "HIBC QR Code" },
|
||||
{ "value": "iata2of5", "label": "IATA 2 of 5" },
|
||||
{ "value": "identcode", "label": "Deutsche Post Identcode" },
|
||||
{ "value": "industrial2of5", "label": "Industrial 2 of 5" },
|
||||
{ "value": "interleaved2of5", "label": "Interleaved 2 of 5 (ITF)" },
|
||||
{ "value": "isbn", "label": "ISBN" },
|
||||
{ "value": "ismn", "label": "ISMN" },
|
||||
{ "value": "issn", "label": "ISSN" },
|
||||
{ "value": "itf14", "label": "ITF-14" },
|
||||
{ "value": "japanpost", "label": "Japan Post 4 State Customer Code" },
|
||||
{ "value": "kix", "label": "Royal Dutch TPG Post KIX" },
|
||||
{ "value": "leitcode", "label": "Deutsche Post Leitcode" },
|
||||
{ "value": "mailmark", "label": "Royal Mail Mailmark" },
|
||||
{ "value": "mands", "label": "Marks & Spencer" },
|
||||
{ "value": "matrix2of5", "label": "Matrix 2 of 5" },
|
||||
{ "value": "maxicode", "label": "MaxiCode" },
|
||||
{ "value": "micropdf417", "label": "MicroPDF417" },
|
||||
{ "value": "microqrcode", "label": "Micro QR Code" },
|
||||
{ "value": "msi", "label": "MSI Modified Plessey" },
|
||||
{ "value": "onecode", "label": "USPS Intelligent Mail" },
|
||||
{ "value": "pdf417", "label": "PDF417" },
|
||||
{ "value": "pdf417compact", "label": "Compact PDF417" },
|
||||
{ "value": "pharmacode", "label": "Pharmaceutical Binary Code" },
|
||||
{ "value": "pharmacode2", "label": "Two-track Pharmacode" },
|
||||
{ "value": "planet", "label": "USPS PLANET" },
|
||||
{ "value": "plessey", "label": "Plessey UK" },
|
||||
{ "value": "posicode", "label": "PosiCode" },
|
||||
{ "value": "postnet", "label": "USPS POSTNET" },
|
||||
{ "value": "pzn", "label": "Pharmazentralnummer (PZN)" },
|
||||
{ "value": "qrcode", "label": "QR Code" },
|
||||
{ "value": "rationalizedCodabar", "label": "Codabar" },
|
||||
{ "value": "raw", "label": "Custom 1D symbology" },
|
||||
{ "value": "rectangularmicroqrcode", "label": "Rectangular Micro QR Code" },
|
||||
{ "value": "royalmail", "label": "Royal Mail 4 State Customer Code" },
|
||||
{ "value": "sscc18", "label": "SSCC-18" },
|
||||
{ "value": "swissqrcode", "label": "Swiss QR Code" },
|
||||
{ "value": "symbol", "label": "Miscellaneous symbols" },
|
||||
{ "value": "telepen", "label": "Telepen" },
|
||||
{ "value": "telepennumeric", "label": "Telepen Numeric" },
|
||||
{ "value": "ultracode", "label": "Ultracode" },
|
||||
{ "value": "upca", "label": "UPC-A" },
|
||||
{ "value": "upcacomposite", "label": "UPC-A Composite" },
|
||||
{ "value": "upce", "label": "UPC-E" },
|
||||
{ "value": "upcecomposite", "label": "UPC-E Composite" }
|
||||
]
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
declare module 'bwip-js/browser' {
|
||||
export interface BwippOptions {
|
||||
includecheck?: boolean | undefined;
|
||||
includecheckintext?: boolean | undefined;
|
||||
|
||||
parse?: boolean | undefined;
|
||||
parsefnc?: boolean | undefined;
|
||||
|
||||
height?: number | undefined;
|
||||
width?: number | undefined;
|
||||
|
||||
inkspread?: number | undefined;
|
||||
inkspreadh?: number | undefined;
|
||||
inkspreadv?: number | undefined;
|
||||
dotty?: boolean | undefined;
|
||||
|
||||
binarytext?: boolean | undefined; // really a bwip-js option but better positioned here
|
||||
includetext?: boolean | undefined;
|
||||
textfont?: string | undefined;
|
||||
textsize?: number | undefined;
|
||||
textgaps?: number | undefined;
|
||||
alttext?: string | undefined;
|
||||
|
||||
textxalign?: 'offleft' | 'left' | 'center' | 'right' | 'offright' | 'justify' | undefined;
|
||||
textyalign?: 'below' | 'center' | 'above' | undefined;
|
||||
textxoffset?: number | undefined;
|
||||
textyoffset?: number | undefined;
|
||||
|
||||
showborder?: boolean | undefined;
|
||||
borderwidth?: number | undefined;
|
||||
borderleft?: number | undefined;
|
||||
borderright?: number | undefined;
|
||||
bordertop?: number | undefined;
|
||||
boraderbottom?: number | undefined;
|
||||
|
||||
barcolor?: string | undefined;
|
||||
backgroundcolor?: string | undefined;
|
||||
bordercolor?: string | undefined;
|
||||
textcolor?: string | undefined;
|
||||
|
||||
addontextxoffset?: number | undefined;
|
||||
addontextyoffset?: number | undefined;
|
||||
addontextfont?: string | undefined;
|
||||
addontextsize?: number | undefined;
|
||||
|
||||
guardwhitespace?: boolean | undefined;
|
||||
guardwidth?: number | undefined;
|
||||
guardheight?: number | undefined;
|
||||
guardleftpos?: number | undefined;
|
||||
guardrightpos?: number | undefined;
|
||||
guardleftypos?: number | undefined;
|
||||
guardrightypos?: number | undefined;
|
||||
}
|
||||
export interface RenderOptions extends BwippOptions {
|
||||
bcid: string;
|
||||
text: string;
|
||||
|
||||
scaleX?: number | undefined;
|
||||
scaleY?: number | undefined;
|
||||
scale?: number | undefined;
|
||||
|
||||
rotate?: 'N' | 'R' | 'L' | 'I' | undefined;
|
||||
|
||||
paddingwidth?: number | undefined;
|
||||
paddingheight?: number | undefined;
|
||||
|
||||
paddingleft?: number | undefined;
|
||||
paddingright?: number | undefined;
|
||||
paddingtop?: number | undefined;
|
||||
paddingbottom?: number | undefined;
|
||||
|
||||
monochrome?: boolean | undefined;
|
||||
sizelimit?: number | undefined;
|
||||
}
|
||||
|
||||
export const BWIPP_VERSION: string;
|
||||
export const BWIPJS_VERSION: string;
|
||||
|
||||
export function toSVG(opts: RenderOptions): string;
|
||||
|
||||
export function toCanvas(canvas: string | HTMLCanvasElement, opts: RenderOptions): HTMLCanvasElement;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Barcode } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Barcode Generator',
|
||||
path: '/barcode-generator',
|
||||
description: 'Barcode generator',
|
||||
keywords: ['barcode', 'generator'],
|
||||
component: () => import('./barcode-generator.vue'),
|
||||
icon: Barcode,
|
||||
createdAt: new Date('2024-04-20'),
|
||||
});
|
||||
@@ -0,0 +1,66 @@
|
||||
<script setup lang="ts">
|
||||
import { BarcodeFormat, BrowserMultiFormatReader } from '@zxing/library';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const imageBase64 = ref('');
|
||||
const barCode = computedAsync(async () => {
|
||||
if (imageBase64.value === '') {
|
||||
return { text: '', format: '', error: '' };
|
||||
}
|
||||
try {
|
||||
const barcodeReader = new BrowserMultiFormatReader();
|
||||
const result = (await barcodeReader.decodeFromImageUrl(imageBase64.value));
|
||||
return { text: result.getText(), format: BarcodeFormat[result.getBarcodeFormat()], error: '' };
|
||||
}
|
||||
catch (e: any) {
|
||||
return { error: e.toString(), text: '', format: '' };
|
||||
}
|
||||
});
|
||||
|
||||
function blobToBase64(blob: Blob) {
|
||||
if (blob === null) {
|
||||
return Promise.resolve('');
|
||||
}
|
||||
return new Promise<string>((resolve, _reject) => {
|
||||
const reader = new FileReader();
|
||||
reader.onloadend = () => resolve(reader.result as string);
|
||||
reader.readAsDataURL(blob);
|
||||
});
|
||||
}
|
||||
|
||||
async function onUpload(file: File) {
|
||||
if (file) {
|
||||
imageBase64.value = await blobToBase64(file);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-file-upload
|
||||
title="Drag and drop a BarCode here, or click to select a file"
|
||||
:paste-image="true"
|
||||
mb-3
|
||||
@file-upload="onUpload"
|
||||
/>
|
||||
|
||||
<div v-if="barCode?.text">
|
||||
<n-divider />
|
||||
|
||||
<h3>Decoded <span v-if="barCode?.format">({{ barCode?.format }})</span></h3>
|
||||
<TextareaCopyable
|
||||
:value="barCode?.text"
|
||||
:word-wrap="true"
|
||||
/>
|
||||
</div>
|
||||
<c-alert v-if="barCode?.error">
|
||||
{{ barCode?.error }}
|
||||
</c-alert>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
::v-deep(.n-upload-trigger) {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Barcode } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Barcode Reader',
|
||||
path: '/barcode-reader',
|
||||
description: 'Barcode reader',
|
||||
keywords: ['barcode', 'reader'],
|
||||
component: () => import('./barcode-reader.vue'),
|
||||
icon: Barcode,
|
||||
createdAt: new Date('2024-04-20'),
|
||||
});
|
||||
@@ -9,4 +9,5 @@ export const tool = defineTool({
|
||||
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
|
||||
component: () => import('./base64-file-converter.vue'),
|
||||
icon: FileDigit,
|
||||
npmPackages: ['js-base64'],
|
||||
});
|
||||
@@ -10,4 +10,5 @@ export const tool = defineTool({
|
||||
component: () => import('./base64-string-converter.vue'),
|
||||
icon: FileDigit,
|
||||
redirectFrom: ['/file-to-base64', '/base64-converter'],
|
||||
npmPackages: ['js-base64'],
|
||||
});
|
||||
@@ -9,4 +9,5 @@ export const tool = defineTool({
|
||||
keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],
|
||||
component: () => import('./bcrypt.vue'),
|
||||
icon: LockSquare,
|
||||
npmPackages: ['bcryptjs'],
|
||||
});
|
||||
@@ -9,4 +9,5 @@ export const tool = defineTool({
|
||||
keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],
|
||||
component: () => import('./bip39-generator.vue'),
|
||||
icon: AlignJustified,
|
||||
npmPackages: ['@it-tools/bip39'],
|
||||
});
|
||||
@@ -0,0 +1,66 @@
|
||||
<script setup lang="ts">
|
||||
import EmailBounceParse from 'email-bounce-parser-browser';
|
||||
|
||||
const emailContent = ref('');
|
||||
|
||||
const parsedBounce = computed(() => {
|
||||
try {
|
||||
return { email: new EmailBounceParse().read(emailContent.value) };
|
||||
}
|
||||
catch (e: any) {
|
||||
return { parsingError: e.toString() };
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="max-width: 600px;">
|
||||
<c-card title="Input" mb-2>
|
||||
<c-input-text
|
||||
v-model:value="emailContent"
|
||||
label="Bounce Email Textual Content"
|
||||
multiline
|
||||
placeholder="Put your email text content here..."
|
||||
rows="15"
|
||||
mb-2
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card v-if="parsedBounce && emailContent" title="Output" mb-2>
|
||||
<n-p v-if="parsedBounce.email?.email?.error" style="color: green" mb-2>
|
||||
This mail is a bounce email
|
||||
</n-p>
|
||||
<n-p v-if="!parsedBounce.email?.email?.error" style="color: red" mb-2>
|
||||
This mail is NOT a bounce email
|
||||
</n-p>
|
||||
<c-alert v-if="parsedBounce.parsingError" mb-2>
|
||||
{{ parsedBounce.parsingError }}
|
||||
</c-alert>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.recipient" label="Recipient" :value="parsedBounce.email?.data?.recipient" mb-2 />
|
||||
<div v-if="parsedBounce.email?.email?.error">
|
||||
<c-card title="Error" mb-2>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.command" label="Command" :value="parsedBounce.email?.data?.command" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.code?.basic || parsedBounce.email?.data?.error?.code?.enhanced" label="Code" :value="`${parsedBounce.email?.data?.error?.code?.basic}/${parsedBounce.email?.data?.error?.code?.enhanced}`" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.label" label="Label" :value="parsedBounce.email?.data?.error?.label" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.type" label="Type" :value="parsedBounce.email?.data?.error?.type" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.temporary" label="Temporary" :value="parsedBounce.email?.data?.error?.temporary" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.permanent" label="Permanent" :value="parsedBounce.email?.data?.error?.permanent" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.type" label="Subtype" :value="parsedBounce.email?.data?.error?.data?.type" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.blocked" label="Blocked" :value="parsedBounce.email?.data?.error?.data?.blocked" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.error?.data?.spam" label="Spam" :value="parsedBounce.email?.data?.error?.data?.spam" />
|
||||
</c-card>
|
||||
<c-card v-if="parsedBounce.email?.data?.server?.hostname || parsedBounce.email?.data?.server?.ip" title="Server" mb-2>
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.hostname" label="Host" :value="parsedBounce.email?.data?.server?.hostname" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.ip" label="IP" :value="parsedBounce.email?.data?.server?.ip" />
|
||||
<input-copyable v-if="parsedBounce.email?.data?.server?.port" label="Port" :value="parsedBounce.email?.data?.server?.port" />
|
||||
</c-card>
|
||||
<c-card title="Details" mb-2>
|
||||
<textarea-copyable :value="JSON.stringify(parsedBounce.email?.data, null, 2)" />
|
||||
</c-card>
|
||||
<c-card title="Raw Error" mb-2>
|
||||
<textarea-copyable :value="parsedBounce.email?.email?.error" word-wrap />
|
||||
</c-card>
|
||||
</div>
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,36 @@
|
||||
declare module "email-bounce-parser-browser" {
|
||||
export default class EmailBounceParse {
|
||||
read(emailContent: string): {
|
||||
bounce: boolean
|
||||
email?: {
|
||||
body?: string
|
||||
intro?: string
|
||||
error?: string
|
||||
}
|
||||
data?: {
|
||||
error?: {
|
||||
code?: {
|
||||
basic?: string
|
||||
enhanced?:string
|
||||
}
|
||||
label?: string
|
||||
type?: string
|
||||
temporary?: boolean
|
||||
permanent?: boolean
|
||||
data?: {
|
||||
type?: string
|
||||
blocked?: boolean
|
||||
spam?: boolean
|
||||
}
|
||||
}
|
||||
recipient?:string
|
||||
server?: {
|
||||
hostname?: string
|
||||
ip?: string
|
||||
port?: string
|
||||
}
|
||||
command?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Mailbox } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Bounce Email Parser',
|
||||
path: '/bounce-parser',
|
||||
description: 'Parse SMTP Bounce Emails',
|
||||
keywords: ['bounce', 'email', 'smtp', 'parser'],
|
||||
component: () => import('./bounce-parser.vue'),
|
||||
icon: Mailbox,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -23,4 +23,5 @@ export const tool = defineTool({
|
||||
],
|
||||
component: () => import('./case-converter.vue'),
|
||||
icon: LetterCaseToggle,
|
||||
npmPackages: ['change-case'],
|
||||
});
|
||||
@@ -0,0 +1,347 @@
|
||||
import type {
|
||||
Certificate,
|
||||
Fingerprint,
|
||||
Key,
|
||||
PrivateKey, Signature,
|
||||
} from 'sshpk';
|
||||
import type * as openpgp from 'openpgp';
|
||||
import * as forge from 'node-forge';
|
||||
import oids from './oids.json';
|
||||
|
||||
export interface LabelValue {
|
||||
label: string
|
||||
value: string
|
||||
multiline?: boolean
|
||||
}
|
||||
|
||||
function onErrorReturnErrorMessage(func: () => any) {
|
||||
try {
|
||||
return func();
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
}
|
||||
|
||||
function buf2Hex(buffer: ArrayBuffer) { // buffer is an ArrayBuffer
|
||||
return [...new Uint8Array(buffer)]
|
||||
.map(x => x.toString(16).padStart(2, '0'))
|
||||
.join('');
|
||||
}
|
||||
|
||||
export function getPublicKeyLabelValues(publicKey: Key) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Public Key',
|
||||
},
|
||||
{
|
||||
label: 'Key Type:',
|
||||
value: publicKey.type,
|
||||
},
|
||||
{
|
||||
label: 'Size:',
|
||||
value: publicKey.size,
|
||||
},
|
||||
{
|
||||
label: 'Comment:',
|
||||
value: publicKey.comment,
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Curve:',
|
||||
value: publicKey.curve ?? 'none',
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha256):',
|
||||
value: onErrorReturnErrorMessage(() => publicKey.fingerprint('sha256')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha512):',
|
||||
value: onErrorReturnErrorMessage(() => publicKey.fingerprint('sha512')),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getPrivateKeyLabelValues(privateKey: PrivateKey) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Private Key',
|
||||
},
|
||||
{
|
||||
label: 'Key Type:',
|
||||
value: privateKey.type,
|
||||
},
|
||||
{
|
||||
label: 'Size:',
|
||||
value: privateKey.size,
|
||||
},
|
||||
{
|
||||
label: 'Comment:',
|
||||
value: privateKey.comment,
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Curve:',
|
||||
value: privateKey.curve,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha256):',
|
||||
value: onErrorReturnErrorMessage(() => privateKey.fingerprint('sha256')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha512):',
|
||||
value: onErrorReturnErrorMessage(() => privateKey.fingerprint('sha512')),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getCertificateLabelValues(cert: Certificate) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Certificate',
|
||||
},
|
||||
{
|
||||
label: 'Subjects:',
|
||||
value: cert.subjects?.map(s => s.toString()).join('\n'),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Valid From:',
|
||||
value: cert.validFrom.toISOString(),
|
||||
},
|
||||
{
|
||||
label: 'Valid Until:',
|
||||
value: cert.validUntil.toISOString(),
|
||||
},
|
||||
{
|
||||
label: 'Issuer:',
|
||||
value: cert.issuer.toString(),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Subject Key:',
|
||||
value: onErrorReturnErrorMessage(() => cert.subjectKey?.toString('ssh')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Subject Key Type:',
|
||||
value: cert.subjectKey?.type,
|
||||
},
|
||||
{
|
||||
label: 'Subject Size:',
|
||||
value: cert.subjectKey?.size,
|
||||
},
|
||||
{
|
||||
label: 'Subject Comment:',
|
||||
value: cert.subjectKey?.comment,
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Subject Curve:',
|
||||
value: cert.subjectKey?.curve ?? 'none',
|
||||
},
|
||||
{
|
||||
label: 'Issuer Key:',
|
||||
value: onErrorReturnErrorMessage(() => cert.issuerKey?.toString('ssh')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Serial:',
|
||||
value: buf2Hex(cert.serial),
|
||||
},
|
||||
{
|
||||
label: 'Purposes:',
|
||||
value: cert.purposes?.join(', '),
|
||||
},
|
||||
{
|
||||
label: 'Extensions:',
|
||||
value: JSON.stringify(cert.getExtensions().map(ext => ({
|
||||
oid: (<any>ext).oid,
|
||||
name: (<any>ext).name || (<any>oids)[(<any>ext).oid],
|
||||
critical: (<any>ext).critical,
|
||||
data: ext.data?.toString('hex') || (<any>ext).bits?.toString('hex'),
|
||||
})), null, 2),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha256):',
|
||||
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha256')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha512):',
|
||||
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha512')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Certificate (pem):',
|
||||
value: onErrorReturnErrorMessage(() => cert.toString('pem')),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export async function getPGPPublicKeyLabelValuesAsync(pgpPublicKey: openpgp.Key) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'PGP Public Key',
|
||||
},
|
||||
{
|
||||
label: 'Creation Time:',
|
||||
value: pgpPublicKey.getCreationTime().toString(),
|
||||
},
|
||||
{
|
||||
label: 'Expiration Time:',
|
||||
value: (await pgpPublicKey.getExpirationTime())?.toString() || '',
|
||||
},
|
||||
{
|
||||
label: 'Algorithm Info:',
|
||||
value: JSON.stringify(pgpPublicKey.getAlgorithmInfo()),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint:',
|
||||
value: pgpPublicKey.getFingerprint(),
|
||||
},
|
||||
{
|
||||
label: 'User ID(s):',
|
||||
value: pgpPublicKey.getUserIDs().join(', '),
|
||||
},
|
||||
{
|
||||
label: 'Key ID(s):',
|
||||
value: pgpPublicKey.getKeyIDs().map(k => k.toHex()).join(' ; '),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export async function getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey: openpgp.Key) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'PGP Private Key',
|
||||
},
|
||||
{
|
||||
label: 'Creation Time:',
|
||||
value: pgpPrivateKey.getCreationTime().toString(),
|
||||
},
|
||||
{
|
||||
label: 'Expiration Time:',
|
||||
value: (await pgpPrivateKey.getExpirationTime())?.toString() || '',
|
||||
},
|
||||
{
|
||||
label: 'Algorithm Info:',
|
||||
value: JSON.stringify(pgpPrivateKey.getAlgorithmInfo()),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint:',
|
||||
value: pgpPrivateKey.getFingerprint(),
|
||||
},
|
||||
{
|
||||
label: 'User ID(s):',
|
||||
value: pgpPrivateKey.getUserIDs().join(', '),
|
||||
},
|
||||
{
|
||||
label: 'Key ID(s):',
|
||||
value: pgpPrivateKey.getKeyIDs().map(k => k.toHex()).join(' ; '),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getCSRLabelValues(csr: forge.pki.Certificate) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Certificate Signing Request',
|
||||
},
|
||||
{
|
||||
label: 'Subject:',
|
||||
value: csr.subject?.attributes?.map(a => JSON.stringify(a, null, 2)).join('\n'),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Issuer:',
|
||||
value: csr.issuer?.toString(),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Validity:',
|
||||
value: JSON.stringify(csr.validity, null, 2),
|
||||
},
|
||||
{
|
||||
label: 'Signature:',
|
||||
value: csr.signature,
|
||||
},
|
||||
{
|
||||
label: 'Signature Oid:',
|
||||
value: csr.signatureOid?.toString(),
|
||||
},
|
||||
{
|
||||
label: 'Signature parameters:',
|
||||
value: JSON.stringify(csr.signatureParameters, null, 2),
|
||||
},
|
||||
{
|
||||
label: 'Signing info:',
|
||||
value: JSON.stringify(csr.siginfo, null, 2),
|
||||
},
|
||||
{
|
||||
label: 'Serial:',
|
||||
value: csr.serialNumber?.toString(),
|
||||
},
|
||||
{
|
||||
label: 'Extensions:',
|
||||
value: JSON.stringify(csr.extensions, null, 2),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Public Key:',
|
||||
value: onErrorReturnErrorMessage(() => forge.pki.publicKeyToPem(csr.publicKey)),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Public Key Fingerprint:',
|
||||
value: onErrorReturnErrorMessage(() => forge.pki.getPublicKeyFingerprint(csr.publicKey)?.toHex()),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getFingerprintLabelValues(fingerprint: Fingerprint) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Fingerprint',
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (hex):',
|
||||
value: fingerprint.toString('hex'),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (base64):',
|
||||
value: fingerprint.toString('base64'),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getSignatureLabelValues(signature: Signature) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Signature',
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (asn1):',
|
||||
value: signature.toString('asn1'),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (ssh):',
|
||||
value: signature.toString('ssh'),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { getKeyOrCertificateInfosAsync } from './certificate-key-parser.service';
|
||||
|
||||
const encryptedPrivateKey = /* NOSONAR */ `-----BEGIN ENCRYPTED PRIVATE KEY-----
|
||||
MIIFHzBJBgkqhkiG9w0BBQ0wPDAbBgkqhkiG9w0BBQwwDgQILjmiBkdY16UCAggA
|
||||
MB0GCWCGSAFlAwQBAgQQ+sYf2MO9hoZ4F5+LdE2vRgSCBNC6CLgqMJ6fKS3YnMMJ
|
||||
yc3/iuqRniP/11OllTmOr94/2dl6Xk8TndBqhAacYizxgNCHiPP+NEmwtPqbbE+a
|
||||
boNqEh0m8NUegxc3qGzon8cJgobgvpw7eml4K1OjgxCw58Y1VQixSKpdHEC1E1o6
|
||||
RBBwK5bIld97GEi4VPuqYoYvffcD5cDsj9HxqvEWGTXDtu/nKEA0cVe7wI8t1CtR
|
||||
/kaFoCyYOFu9RE0YprcWT1GpYTHR3TE7+lXYR8vPGdMCMgww1mLCXDAz1G4Y5+1K
|
||||
WAmiVn3uQqgR9rU/upaM01oOz5LJWtgi5gDV8zX0r41i8pYYQNvGiSvvw1pQJB5Q
|
||||
sFyuVNU6hOCQ+zLssfmxnhRpgM3hn07gV+LFAg+ly6WQsl9W6m8WpJ7SgLeByb7g
|
||||
teT+ml7wTuFZIiPbqD3Pq0grRZir3n3NuphUk9YwR2jN4hHXEDiQ9f4D4SY41RT3
|
||||
lW7roK+oM1K3N4cDin+WyGiFFLyWrwrlXWmHN5A3pOf+0rQUooZdUTGSU0N9v9Ho
|
||||
17x/+aDAeCMEl7y0GfEoglNxCjoVj70E9oJL21amziZAUOXobhuzeb0dWJmAtXoj
|
||||
wETYW6QH8m80eEyvKfkLsQ2Sd360ILhRJtyN1HFJAQbsC3C0VYiqA3kjN4S1Zfeg
|
||||
08/odqdi0a7GSTm/h+iT3rimXXS2TLfSYIzI14LZDCeCz33tX13WQrhGPbYEJBHX
|
||||
PKc1ws0HHBwdpM8d+liPHm+Czt2/sbcGCNBWSPWWZpL+uzeh9HQYEUoefk88JCPD
|
||||
xQlANh8BCzq0L1pYNZdOYVNb0fT1XluuP8xtIePsNHIsKRURDlCjaEAY41DwXmTp
|
||||
DFRd41BLFZztX5jtMGw4lb3RplcaaRhxCEF51hRJQdb5HMpn4cr2Hqy5UP+ke2vV
|
||||
0DVRi0jp7Mkp/+qdEEotWT1AxSeYoiW7j/GwlC8tqAC9NoMmcHAuOGF5fHshxz/L
|
||||
lnWSHiPjfLezpfryBwb5D4+3/TFEzc8gPsco/Ip7qU1+wMObTLs9Nq1ROW/aClYU
|
||||
A/a5DyCQUHaHyYRse/BLTXxr2gsMCm7qaTdCy+pZcL1f+YEISHtITuA38eGfQzTX
|
||||
cX/k75t7+mKW4nKBBT/SZbBT27gEeZpAn8ORaMixedBQZmoFHLKNlrf+F+fBFfhp
|
||||
J4NFeBFnEpa3YrPVgLTJY6yN0gummIC8GA7EpggdAcNTbp5EU+IHlHhExhzr+W+f
|
||||
YCOdD4Zt6LMZjAlpId2APn9NMscpwT59K/61n1CjElpWPwfTW2hyto7/1q0fIgwK
|
||||
z2E615qLFJa+EFR8hTFz0wjNUOCrDgS7K7STQbGaFfjmAe2LUFZhTm86u6K0fnUY
|
||||
sNJeDSnvDYEQD1MUiezD06MmzdEHqJHNKztoahqPsQIktH84RGdc1oTPMS4PLwLM
|
||||
JJmEHqLF7I8T6L+BvMp2LhZTrx3g1qU4wZRC5Rys7J5WR5E+v8XttEcViEO4Lrdr
|
||||
wNRoroHuXLw4nOzM58DS5cHGliw4BeErQ6XC0aan2EM789Us3Hrx0zerfIOyUdBe
|
||||
N39sh8X4jo7YHMBH3yqVsAIU3e8c2Z2rayP7+AyUncAfff9EH3BNpIkQIG3xsqh1
|
||||
oimmuNBEFKy1F1rSP3NQvwcZVw==
|
||||
-----END ENCRYPTED PRIVATE KEY-----
|
||||
`;
|
||||
const openSSHPrivateKey = /* NOSONAR */ `-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
|
||||
NhAAAAAwEAAQAAAQEA4r66AJdnJBwsKDyTr4QizQYMVhaFtcBcMcVuJHbKW/DtG985oA2V
|
||||
hJRfcBz8MKNS9iTLRkgq4yoTVCIi5FDVU4EnQbLMoLfN2og6PpgSSL59bPUvYoenp6RS1i
|
||||
R606eVakH/J6IIiadHMWBrLjCiChf5U/bvuSkUQWi0YLH9hI6Nw+S9MdwzBofshZZdww9Y
|
||||
4udrWEVdfGrxWv5gjlaquxYZAnfaYCI0Pgh9v1nEALFufOVi1onUZaxduyvsLoQnXiwP2c
|
||||
fWXsBYmjfViTTADTvHTLCF9IH+6heGk2WJkosgiajmMlc+1U7Xs+r5ZJ0ikt0ioydPN8Hi
|
||||
LnVih6lENwAAA7hrsy+Ha7MvhwAAAAdzc2gtcnNhAAABAQDivroAl2ckHCwoPJOvhCLNBg
|
||||
xWFoW1wFwxxW4kdspb8O0b3zmgDZWElF9wHPwwo1L2JMtGSCrjKhNUIiLkUNVTgSdBssyg
|
||||
t83aiDo+mBJIvn1s9S9ih6enpFLWJHrTp5VqQf8nogiJp0cxYGsuMKIKF/lT9u+5KRRBaL
|
||||
Rgsf2Ejo3D5L0x3DMGh+yFll3DD1ji52tYRV18avFa/mCOVqq7FhkCd9pgIjQ+CH2/WcQA
|
||||
sW585WLWidRlrF27K+wuhCdeLA/Zx9ZewFiaN9WJNMANO8dMsIX0gf7qF4aTZYmSiyCJqO
|
||||
YyVz7VTtez6vlknSKS3SKjJ083weIudWKHqUQ3AAAAAwEAAQAAAQBmKTj0+0JlaqwalPCV
|
||||
rBth9M+qGgu0kC753dJ6a2tRcYPjgvgbvQMY8SDvCqA16eB/NqS/zdRE9bgvuBGwfRsgvJ
|
||||
hLaZv47de6FpbnjOzwCaPJa88lvak0Rz1rbpRIuMEBVyr3WHIwU0YoYSDpdtALbDHSOvhX
|
||||
nMKblelvh8KJ7jelix2R3llvcYexKdS66zzP7nPj5x8d1FDo2cxqWsy2aQxMlbZGTd3ujQ
|
||||
ABzZGvI3L0tJRf4sPph/eLS28/teAExp5Uo9DuehqgU33iAYOaO2vZGqQJxBbaVtiarVK1
|
||||
kRQLBrhieMIUJ9XHSwDn74VHWtBNfocTSPe6vbVMjLpBAAAAgGBTluv8WHqG1JTauYNjBI
|
||||
EhSKL96MrIZR+fytEg3gcxitPnpQiPTP6XHXpQ7fxVk25bYvCj4QNi00jW6kBR46Zh90NI
|
||||
nKgYvxdYoA5A7L6JvvByy00SbLssiM7kf3ByT/4EA8S911Q4cks8lKrwEUw+UzqTBR6QdG
|
||||
JyZQQcUJa+AAAAgQDyIYjECyG91/X+zFYcecW+wWyLBzyEvOxFlRd4tZnvWknQTdtFqTlN
|
||||
orTT+un1ygKe0DkfwXSbbjE69+xxlMtPQ2X6wd2mUruvtyBv1R8Kfj+doY5lFUfCEKj88u
|
||||
ck1+Ol1K+KDnvlYZVnb5eCvMxmEMqyD+eTQ2EcNAJtjNmuDQAAAIEA77uU45tseIe9E6OZ
|
||||
Hum2bUxQmqkpjrNCECiTJR99NUx+22sBZwrMAt3QzBwgSogQhLKAw+keEUG6zAl7UA6Lsc
|
||||
vJdDllY2vYMRW9LZ1XNCxvl0i6QUsT8l9hwA9GuMQN1m6NRU+cnEU87KIXVBb+DRyZwo21
|
||||
4WRkAc1Ru/KtrlMAAAAAAQID
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
`;
|
||||
|
||||
const formatsData = [
|
||||
{
|
||||
input: `
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
xjMEZkHgaRYJKwYBBAHaRw8BAQdAdCmEzdpkjMzOoNkzgDFk/CHd+6uYAWkZ
|
||||
BPbjEzTJWtfNAMKMBBAWCgA+BYJmQeBpBAsJBwgJkEDKj7jnGr9wAxUICgQW
|
||||
AAIBAhkBApsDAh4BFiEExfkkog7+aHz7TqepQMqPuOcav3AAAJaaAQCayvFQ
|
||||
jxFbC7oOzX+8wOV8gmXVXXqI5dtLQYY3SeyqmwD/ftVwwe6Prl0vVFyLB/5y
|
||||
lIpAti8AK1Lv8hIezzOx4QDOOARmQeBpEgorBgEEAZdVAQUBAQdA2jU3Rmt7
|
||||
nMFvqyjgKdVjK5o2CQI2vJiSzn8cfV1piEgDAQgHwngEGBYKACoFgmZB4GkJ
|
||||
kEDKj7jnGr9wApsMFiEExfkkog7+aHz7TqepQMqPuOcav3AAABI0AQCMW4Hg
|
||||
FuIaZk9LVQsUmNknj4a70fzwDYWUYvq0C1iy/QD+KXvLKfcmky5OXJA7RsRV
|
||||
SN2a4SE4c8FH22uyirzyUww=
|
||||
=w51K
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'PGP Public Key',
|
||||
},
|
||||
{
|
||||
// NOSONAR
|
||||
input: `
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
xVgEZkHgaRYJKwYBBAHaRw8BAQdAdCmEzdpkjMzOoNkzgDFk/CHd+6uYAWkZ
|
||||
BPbjEzTJWtcAAQDXcDgEziqd9ZO/OpoyblRRxAOgPq2y8zTitwTz+ixX7RCe
|
||||
zQDCjAQQFgoAPgWCZkHgaQQLCQcICZBAyo+45xq/cAMVCAoEFgACAQIZAQKb
|
||||
AwIeARYhBMX5JKIO/mh8+06nqUDKj7jnGr9wAACWmgEAmsrxUI8RWwu6Ds1/
|
||||
vMDlfIJl1V16iOXbS0GGN0nsqpsA/37VcMHuj65dL1Rciwf+cpSKQLYvACtS
|
||||
7/ISHs8zseEAx10EZkHgaRIKKwYBBAGXVQEFAQEHQNo1N0Zre5zBb6so4CnV
|
||||
YyuaNgkCNryYks5/HH1daYhIAwEIBwAA/2PxYHVWBmkLD9eiFDLJ0EtspWQ+
|
||||
JKui86xylduxQWngEIrCeAQYFgoAKgWCZkHgaQmQQMqPuOcav3ACmwwWIQTF
|
||||
+SSiDv5ofPtOp6lAyo+45xq/cAAAEjQBAIxbgeAW4hpmT0tVCxSY2SePhrvR
|
||||
/PANhZRi+rQLWLL9AP4pe8sp9yaTLk5ckDtGxFVI3ZrhIThzwUfba7KKvPJT
|
||||
DA==
|
||||
=hSgY
|
||||
-----END PGP PRIVATE KEY BLOCK-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'PGP Private Key',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIIClTCCAX0CAQAwUDERMA8GA1UEAxMIdGVzdC5jb20xDzANBgNVBAYTBkZyYW5j
|
||||
ZTELMAkGA1UECBMCRlIxDjAMBgNVBAcTBVBhcmlzMQ0wCwYDVQQKEwRUZXN0MIIB
|
||||
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnIUCiMFffkHGuAhwTaW84uh7
|
||||
/03KcfQAZB/bZKqLaxtcBGryTB1gHFSsl3uFlW+tIcjsboWnQ2JB0J1Z5Fp4a6IA
|
||||
/62S6GTo6dAd9f73TR+P2vQghZOtiCoc7CN2KlosIx/EWMcMjq+CBzLRjjOOR8tX
|
||||
Yn4ZAhPInO1ZGPMEpfEEfn44aJFRGaMy4KEU+RpTzFKFW6bialvKC3yGPegQ4wcz
|
||||
AqvyUc9WUwG53HYLSJHldg8tZnpiJBNUh8mXiIiw51MFJ4Q9RVnz9vuoHgC6FmUv
|
||||
qlg/R4gjGGfjDhAIUtz+Y98Dl+xfLmD+EzY7KQ1ur412BvQ8rXankNGLA2ea+wID
|
||||
AQABoAAwDQYJKoZIhvcNAQEFBQADggEBABdtkhFSwgaXZWTcKrz6oarvuaQkrjvs
|
||||
Nk9lUs1h/dfhJpnE3iZA0CuNp5PVQRdC2g+/37r21/udjNFdrX1Rm6/ldG0b2xDu
|
||||
nQYZcLpIVB0fZ2TB+FHthmGw175I2niWIfNJQhIqnWJXi8unkGTMP2cD6j3axtMi
|
||||
K8MUVPhWmL11ojEXItG35AU79G6GhFxel9wIByqsXreCUyOcrpYCHy2Fv85ivdE1
|
||||
JyEQ2tE/f+cKwNg4yJNFoCoHSSFRn61F12J4m2nwpQ77VfD66oVkWtk/gYMrwx0d
|
||||
4FlJNs+NtZDlcM7fJLNo7YsMdne7hl4aL6WG96kdWdxYEt/2dl3WXbY=
|
||||
-----END CERTIFICATE REQUEST-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Certificate Signing Request',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDivroAl2ckHCwoPJOvhCLNBgxWFoW1wFwxxW4kdspb8O0b3zmgDZWElF9wHPwwo1L2JMtGSCrjKhNUIiLkUNVTgSdBssygt83aiDo+mBJIvn1s9S9ih6enpFLWJHrTp5VqQf8nogiJp0cxYGsuMKIKF/lT9u+5KRRBaLRgsf2Ejo3D5L0x3DMGh+yFll3DD1ji52tYRV18avFa/mCOVqq7FhkCd9pgIjQ+CH2/WcQAsW585WLWidRlrF27K+wuhCdeLA/Zx9ZewFiaN9WJNMANO8dMsIX0gf7qF4aTZYmSiyCJqOYyVz7VTtez6vlknSKS3SKjJ083weIudWKHqUQ3
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Public Key',
|
||||
title: 'ssh-rsa Public Key',
|
||||
},
|
||||
{
|
||||
input: openSSHPrivateKey,
|
||||
pass: '',
|
||||
type: 'Private Key',
|
||||
title: 'Unencrypted Private Key',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
SHA256:qflg623OemnYEHDwUafq+XuMoB0UdJ+Ks44kHcWxDyM
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Fingerprint',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDQDCCAiigAwIBAgIJK59gK0GUbZO3MA0GCSqGSIb3DQEBBQUAMFAxETAPBgNV
|
||||
BAMTCHRlc3QuY29tMQ8wDQYDVQQGEwZGcmFuY2UxCzAJBgNVBAgTAkZSMQ4wDAYD
|
||||
VQQHEwVQYXJpczENMAsGA1UEChMEVGVzdDAeFw0yNDA1MTMwOTQ4MTVaFw0yNTA1
|
||||
MTMwOTQ4MTVaMFAxETAPBgNVBAMTCHRlc3QuY29tMQ8wDQYDVQQGEwZGcmFuY2Ux
|
||||
CzAJBgNVBAgTAkZSMQ4wDAYDVQQHEwVQYXJpczENMAsGA1UEChMEVGVzdDCCASIw
|
||||
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKrE3C9tUtmvHZkIwEBf1h5N7KC
|
||||
FoXowfNZxKK7SHWcnQjBdv0ziqsU+GmcUqUD1GymMcBweqw4TQVg0a/UwdYIUTuQ
|
||||
GXGx4ULCXKHv/NfmVSWcMsOZHAR4m/yEzTB/ZjKMSrqnIWyOdusDMRn4VRoAtrKO
|
||||
/FM+SDJ6wvnJ/jNoZJXktq9avYduEi+heNekIF6NYM9clzm9Ff3Evf89KuigBcsu
|
||||
rgL+S8PjotCwxMgzOWV4/paeeQluqYeU94prWIASS/D3elH7qFTAUnafBICFN2zs
|
||||
XWY6ZFCR8QrDI5F/8KELq/3BaLQBxpIi9SmADLWqnPOu+6H5rzr2YV8LaxMCAwEA
|
||||
AaMdMBswDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAvQwDQYJKoZIhvcNAQEFBQAD
|
||||
ggEBAKhrUNnWe0VmgefvfwsAqrbk0Z6PwaibIl/l5I9oh1qM01J9BFHpvomhcLxu
|
||||
cmIpD6nAqtkNyvsXtFAnZG3WNaf45yyd153wSa0QnrNo2GRH9quktm4DaRIIP7qq
|
||||
EdtApYCeT16LvAGYUH3ubCdom8w6DkukLg8qMrXMywSZlx85jlJfifPvMKsJmm/a
|
||||
QAq1H3cYaaj0DocF1rCP+hLzvsuM7UwS2JOK8Mw49kYPBTbCVmRDOE1rhlDIO8Kw
|
||||
V7CCFr4NXsyRlM0TpKdspOmxJiyxmk6DoVgp9PeqfoyDAC9TJU0VJ6A2x+AfjK4O
|
||||
Wg6xDXMx6dk6Rhh8yqGrmx05QM8=
|
||||
-----END CERTIFICATE-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Certificate',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
c6:b9:73:b8:68:49:33:ad:27:51:bb:6c:16:e7:9c:da:dd:e3:92:15
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Fingerprint',
|
||||
title: 'HEX Fingerprint',
|
||||
},
|
||||
{
|
||||
input: encryptedPrivateKey,
|
||||
pass: 'test',
|
||||
type: 'Private Key',
|
||||
title: 'Encrypted Private Key',
|
||||
},
|
||||
];
|
||||
|
||||
describe('certificate-key-parser', () => {
|
||||
for (const format of formatsData) {
|
||||
const { input, pass, type, title } = format;
|
||||
it(`Parse '${title ?? type}' format with right type (${type})`, async () => {
|
||||
const { values } = await getKeyOrCertificateInfosAsync(input, pass);
|
||||
const result_type = values.find(v => v.label === 'Type:')?.value;
|
||||
|
||||
expect(result_type).toBe(type);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,129 @@
|
||||
import type { Buffer } from 'node:buffer';
|
||||
import {
|
||||
parseCertificate, parseFingerprint,
|
||||
parseKey,
|
||||
parsePrivateKey,
|
||||
parseSignature,
|
||||
} from 'sshpk';
|
||||
import type {
|
||||
AlgorithmType,
|
||||
Certificate,
|
||||
CertificateFormat,
|
||||
Fingerprint,
|
||||
Key,
|
||||
PrivateKey, Signature, SignatureFormatType,
|
||||
} from 'sshpk';
|
||||
import { Base64 } from 'js-base64';
|
||||
import * as openpgp from 'openpgp';
|
||||
import * as forge from 'node-forge';
|
||||
import { type LabelValue, getCSRLabelValues, getCertificateLabelValues, getFingerprintLabelValues, getPGPPrivateKeyLabelValuesAsync, getPGPPublicKeyLabelValuesAsync, getPrivateKeyLabelValues, getPublicKeyLabelValues, getSignatureLabelValues } from './certificate-key-parser.infos';
|
||||
|
||||
export async function getKeyOrCertificateInfosAsync(keyOrCertificateValue: string | Buffer, passphrase: string) {
|
||||
try {
|
||||
const canParse = (value: string | Buffer, parseFunction: (value: string | Buffer) => any) => {
|
||||
try {
|
||||
return parseFunction(value);
|
||||
}
|
||||
catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
const canParseAsync = async (value: string | Buffer, parseFunction: (value: string | Buffer) => Promise<any>) => {
|
||||
try {
|
||||
return await parseFunction(value);
|
||||
}
|
||||
catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
const inputKeyOrCertificateValue = (typeof keyOrCertificateValue === 'string' ? keyOrCertificateValue?.trim() : keyOrCertificateValue);
|
||||
|
||||
const privateKey = canParse(inputKeyOrCertificateValue,
|
||||
value => parsePrivateKey(value, 'auto', { passphrase })) as PrivateKey;
|
||||
if (privateKey) {
|
||||
return {
|
||||
values: getPrivateKeyLabelValues(privateKey),
|
||||
};
|
||||
}
|
||||
|
||||
const publicKey = canParse(inputKeyOrCertificateValue, parseKey) as Key;
|
||||
if (publicKey) {
|
||||
return { values: getPublicKeyLabelValues(publicKey) };
|
||||
}
|
||||
|
||||
const pgpPrivateKey = await canParseAsync(inputKeyOrCertificateValue, value => openpgp.readPrivateKey({ armoredKey: value.toString() })) as openpgp.Key;
|
||||
if (pgpPrivateKey) {
|
||||
return { values: await getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey) };
|
||||
}
|
||||
|
||||
const pgpPublicKey = await canParseAsync(inputKeyOrCertificateValue, value => openpgp.readKey({ armoredKey: value.toString() })) as openpgp.Key;
|
||||
if (pgpPublicKey) {
|
||||
return { values: await getPGPPublicKeyLabelValuesAsync(pgpPublicKey) };
|
||||
}
|
||||
|
||||
const cert = canParse(inputKeyOrCertificateValue, (value) => {
|
||||
for (const format of ['openssh', 'pem', 'x509']) {
|
||||
try {
|
||||
return parseCertificate(value, format as CertificateFormat);
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
return null;
|
||||
}) as Certificate;
|
||||
if (cert) {
|
||||
let certificateX509DER = '';
|
||||
try {
|
||||
certificateX509DER = Base64.fromUint8Array(cert.toBuffer('x509'));
|
||||
}
|
||||
catch {}
|
||||
|
||||
return { values: getCertificateLabelValues(cert), certificateX509DER };
|
||||
}
|
||||
|
||||
const csr = canParse(inputKeyOrCertificateValue, (value) => {
|
||||
return forge.pki.certificationRequestFromPem(value.toString(), false, false);
|
||||
}) as forge.pki.Certificate;
|
||||
if (csr) {
|
||||
return { values: getCSRLabelValues(csr) };
|
||||
}
|
||||
|
||||
const fingerprint = canParse(inputKeyOrCertificateValue, value => parseFingerprint(value.toString())) as Fingerprint;
|
||||
if (fingerprint) {
|
||||
return { values: getFingerprintLabelValues(fingerprint) };
|
||||
}
|
||||
|
||||
const signature = canParse(inputKeyOrCertificateValue, (value) => {
|
||||
//
|
||||
for (const algo of ['dsa', 'rsa', 'ecdsa', 'ed25519']) {
|
||||
for (const format of ['asn1', 'ssh', 'raw']) {
|
||||
try {
|
||||
return parseSignature(value, algo as AlgorithmType, format as SignatureFormatType);
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}) as Signature;
|
||||
if (signature) {
|
||||
return { values: getSignatureLabelValues(signature) };
|
||||
}
|
||||
|
||||
return {
|
||||
values: [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Unknown format or invalid passphrase',
|
||||
}],
|
||||
};
|
||||
}
|
||||
catch (e: any) {
|
||||
return {
|
||||
values: [
|
||||
{
|
||||
label: 'Error:',
|
||||
value: e.toString(),
|
||||
}] as LabelValue[],
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<script setup lang="ts">
|
||||
import { Buffer } from 'node:buffer';
|
||||
|
||||
import { getKeyOrCertificateInfosAsync } from './certificate-key-parser.service';
|
||||
import { type LabelValue } from './certificate-key-parser.infos';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
|
||||
const inputKeyOrCertificate = ref('');
|
||||
const passphrase = ref('');
|
||||
const fileInput = ref() as Ref<Buffer>;
|
||||
const inputType = ref<'file' | 'content'>('file');
|
||||
|
||||
async function onUpload(file: File) {
|
||||
if (file) {
|
||||
fileInput.value = Buffer.from(await file.arrayBuffer());
|
||||
inputKeyOrCertificate.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
const certificateX509DER = ref('');
|
||||
const { download: downloadX509DER } = useDownloadFileFromBase64(
|
||||
{
|
||||
source: certificateX509DER,
|
||||
extension: 'der',
|
||||
});
|
||||
|
||||
function downloadX509DERFile() {
|
||||
if (certificateX509DER.value === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
downloadX509DER();
|
||||
}
|
||||
catch (_) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
const parsedSections = computedAsync<LabelValue[]>(async () => {
|
||||
const inputContent = inputKeyOrCertificate.value;
|
||||
const file = fileInput.value;
|
||||
let inputKeyOrCertificateValue: string | Buffer = '';
|
||||
if (inputType.value === 'file' && file) {
|
||||
inputKeyOrCertificateValue = file;
|
||||
}
|
||||
else if (inputType.value === 'content' && inputContent) {
|
||||
inputKeyOrCertificateValue = inputContent;
|
||||
}
|
||||
const { values, certificateX509DER: certPEM } = await getKeyOrCertificateInfosAsync(inputKeyOrCertificateValue, passphrase.value);
|
||||
certificateX509DER.value = certPEM || '';
|
||||
return values;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card>
|
||||
<n-radio-group v-model:value="inputType" name="radiogroup" mb-2 flex justify-center>
|
||||
<n-space>
|
||||
<n-radio
|
||||
value="file"
|
||||
label="File"
|
||||
/>
|
||||
<n-radio
|
||||
value="content"
|
||||
label="Content"
|
||||
/>
|
||||
</n-space>
|
||||
</n-radio-group>
|
||||
|
||||
<c-file-upload
|
||||
v-if="inputType === 'file'"
|
||||
title="Drag and drop a Certificate file here, or click to select a Certificate file"
|
||||
@file-upload="onUpload"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-if="inputType === 'content'"
|
||||
v-model:value="inputKeyOrCertificate"
|
||||
label="Paste your Public Key / Private Key / Signature / Fingerprint / Certificate:"
|
||||
placeholder="Your Public Key / Private Key / Signature / Fingerprint / Certificate..."
|
||||
multiline
|
||||
rows="8"
|
||||
data-test-id="input"
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="passphrase"
|
||||
label="Passphrase (for encrypted keys):"
|
||||
placeholder="Passphrase (for encrypted keys)..."
|
||||
type="password"
|
||||
data-test-id="pass"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<input-copyable
|
||||
v-for="{ label, value, multiline } of parsedSections"
|
||||
:key="label"
|
||||
:label="label"
|
||||
:data-test-id="label"
|
||||
label-position="left"
|
||||
label-width="100px"
|
||||
label-align="right"
|
||||
|
||||
autosize mb-2
|
||||
:multiline="multiline"
|
||||
:value="value"
|
||||
placeholder="Not Set"
|
||||
/>
|
||||
|
||||
<div v-if="certificateX509DER !== ''" flex justify-center>
|
||||
<c-button @click="downloadX509DERFile()">
|
||||
Download X509 DER certificate
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { FileCertificate } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Certificate/Key parser',
|
||||
path: '/certificate-key-parser',
|
||||
description: 'Parse Key and Certificate',
|
||||
keywords: ['certificate', 'key', 'parser'],
|
||||
component: () => import('./certificate-key-parser.vue'),
|
||||
icon: FileCertificate,
|
||||
createdAt: new Date('2024-02-22'),
|
||||
});
|
||||
@@ -0,0 +1,867 @@
|
||||
{"2.5.4.3": "CN",
|
||||
"2.5.4.4": "Surname",
|
||||
"2.5.4.6": "C",
|
||||
"2.5.4.7": "Cidade",
|
||||
"2.5.4.8": "Estado",
|
||||
"2.5.4.9": "StreetAddress",
|
||||
"2.5.4.10": "O",
|
||||
"2.5.4.11": "OU",
|
||||
"2.5.4.12": "Title",
|
||||
"2.5.4.20": "TelephoneNumber",
|
||||
"2.5.4.42": "GivenName",
|
||||
"2.5.29.14": "id-ce-subjectKeyIdentifier",
|
||||
"2.5.29.15": "id-ce-keyUsage",
|
||||
"2.5.29.17": "id-ce-subjectAltName",
|
||||
"2.5.29.19": "id-ce-basicConstraints",
|
||||
"2.5.29.20": "id-ce-cRLNumber",
|
||||
"2.5.29.31": "id-ce-CRLDistributionPoints",
|
||||
"2.5.29.32": "id-ce-certificatePolicies",
|
||||
"2.5.29.35": "id-ce-authorityKeyIdentifier",
|
||||
"2.5.29.37": "id-ce-extKeyUsage",
|
||||
"1.2.840.113549.1.9.1": "Email",
|
||||
"1.2.840.113549.1.1.1": "RSAEncryption",
|
||||
"1.2.840.113549.1.1.2": "md2WithRSAEncryption",
|
||||
"1.2.840.113549.1.1.4": "md5withRSAEncryption",
|
||||
"1.2.840.113549.1.1.5": "SHA-1WithRSAEncryption",
|
||||
"1.2.840.10040.4.3": "id-dsa-with-sha-1",
|
||||
"1.3.6.1.5.5.7.3.2": "id_kp_clientAuth",
|
||||
"1.3.6.1.5.5.7.3.4": "id_kp_securityemail",
|
||||
"1.3.6.1.5.5.7.2.1": "id_certificatePolicies",
|
||||
"2.16.840.1.113730.1.1": "netscape-cert-type",
|
||||
"2.16.840.1.113730.1.2": "netscape-base-url",
|
||||
"2.16.840.1.113730.1.3": "netscape-revocation-url",
|
||||
"2.16.840.1.113730.1.4": "netscape-ca-revocation-url",
|
||||
"2.16.840.1.113730.1.7": "netscape-cert-renewal-url",
|
||||
"2.16.840.1.113730.1.8": "netscape-ca-policy-url",
|
||||
"2.16.840.1.113730.1.12": "netscape-ssl-server-name",
|
||||
"2.16.840.1.113730.1.13": "netscape-comment",
|
||||
"2.16.76.1.2.1": "A1",
|
||||
"2.16.76.1.2.3": "A3",
|
||||
"2.16.76.1.2.1.16": "Certification Practice Statement pointer",
|
||||
"2.16.76.1.3.1": "Dados do cert parte 1",
|
||||
"2.16.76.1.3.5": "Dados do cert parte 2",
|
||||
"2.16.76.1.3.6": "Dados do cert parte 3",
|
||||
"0.9.2342.19200300.100.1.25": "domainComponent",
|
||||
"1.2.36.68980861.1.1.10": "Signet pilot",
|
||||
"1.2.36.68980861.1.1.11": "Signet intraNet",
|
||||
"1.2.36.68980861.1.1.2": "Signet personal",
|
||||
"1.2.36.68980861.1.1.20": "Signet securityPolicy",
|
||||
"1.2.36.68980861.1.1.3": "Signet business",
|
||||
"1.2.36.68980861.1.1.4": "Signet legal",
|
||||
"1.2.36.75878867.1.100.1.1": "Certificates Australia policyIdentifier",
|
||||
"1.2.752.34.1": "seis-cp",
|
||||
"1.2.752.34.1.1": "SEIS certificatePolicy-s10",
|
||||
"1.2.752.34.2": "SEIS pe",
|
||||
"1.2.752.34.3": "SEIS at",
|
||||
"1.2.752.34.3.1": "SEIS at-personalIdentifier",
|
||||
"1.2.840.10040.2.1": "holdinstruction-none",
|
||||
"1.2.840.10040.2.2": "holdinstruction-callissuer",
|
||||
"1.2.840.10040.2.3": "holdinstruction-reject",
|
||||
"1.2.840.10040.4.1": "dsa",
|
||||
"1.2.840.10040.4.3": "dsaWithSha1",
|
||||
"1.2.840.10045.1": "fieldType",
|
||||
"1.2.840.10045.1.1": "prime-field",
|
||||
"1.2.840.10045.1.2": "characteristic-two-field",
|
||||
"1.2.840.10045.1.2.1": "ecPublicKey",
|
||||
"1.2.840.10045.1.2.3": "characteristic-two-basis",
|
||||
"1.2.840.10045.1.2.3.1": "onBasis",
|
||||
"1.2.840.10045.1.2.3.2": "tpBasis",
|
||||
"1.2.840.10045.1.2.3.3": "ppBasis",
|
||||
"1.2.840.10045.2": "publicKeyType",
|
||||
"1.2.840.10045.2.1": "ecPublicKey",
|
||||
"1.2.840.10046.2.1": "dhPublicNumber",
|
||||
"1.2.840.113533.7": "nsn",
|
||||
"1.2.840.113533.7.65": "nsn-ce",
|
||||
"1.2.840.113533.7.65.0": "entrustVersInfo",
|
||||
"1.2.840.113533.7.66": "nsn-alg",
|
||||
"1.2.840.113533.7.66.10": "cast5CBC",
|
||||
"1.2.840.113533.7.66.11": "cast5MAC",
|
||||
"1.2.840.113533.7.66.12": "pbeWithMD5AndCAST5-CBC",
|
||||
"1.2.840.113533.7.66.13": "passwordBasedMac",
|
||||
"1.2.840.113533.7.66.3": "cast3CBC",
|
||||
"1.2.840.113533.7.67": "nsn-oc",
|
||||
"1.2.840.113533.7.67.0": "entrustUser",
|
||||
"1.2.840.113533.7.68": "nsn-at",
|
||||
"1.2.840.113533.7.68.0": "entrustCAInfo",
|
||||
"1.2.840.113533.7.68.10": "attributeCertificate",
|
||||
"1.2.840.113549.1.1": "pkcs-1",
|
||||
"1.2.840.113549.1.1.1": "rsaEncryption",
|
||||
"1.2.840.113549.1.1.2": "md2withRSAEncryption",
|
||||
"1.2.840.113549.1.1.3": "md4withRSAEncryption",
|
||||
"1.2.840.113549.1.1.4": "md5withRSAEncryption",
|
||||
"1.2.840.113549.1.1.5": "sha1withRSAEncryption",
|
||||
"1.2.840.113549.1.1.6": "rsaOAEPEncryptionSET",
|
||||
"1.2.840.113549.1.9.16.2.11": "SMIMEEncryptionKeyPreference",
|
||||
"1.2.840.113549.1.12": "pkcs-12",
|
||||
"1.2.840.113549.1.12.1": "pkcs-12-PbeIds",
|
||||
"1.2.840.113549.1.12.1.1": "pbeWithSHAAnd128BitRC4",
|
||||
"1.2.840.113549.1.12.1.2": "pbeWithSHAAnd40BitRC4",
|
||||
"1.2.840.113549.1.12.1.3": "pbeWithSHAAnd3-KeyTripleDES-CBC",
|
||||
"1.2.840.113549.1.12.1.4": "pbeWithSHAAnd2-KeyTripleDES-CBC",
|
||||
"1.2.840.113549.1.12.1.5": "pbeWithSHAAnd128BitRC2-CBC",
|
||||
"1.2.840.113549.1.12.1.6": "pbeWithSHAAnd40BitRC2-CBC",
|
||||
"1.2.840.113549.1.12.10": "pkcs-12Version1",
|
||||
"1.2.840.113549.1.12.10.1": "pkcs-12BadIds",
|
||||
"1.2.840.113549.1.12.10.1.1": "pkcs-12-keyBag",
|
||||
"1.2.840.113549.1.12.10.1.2": "pkcs-12-pkcs-8ShroudedKeyBag",
|
||||
"1.2.840.113549.1.12.10.1.3": "pkcs-12-certBag",
|
||||
"1.2.840.113549.1.12.10.1.4": "pkcs-12-crlBag",
|
||||
"1.2.840.113549.1.12.10.1.5": "pkcs-12-secretBag",
|
||||
"1.2.840.113549.1.12.10.1.6": "pkcs-12-safeContentsBag",
|
||||
"1.2.840.113549.1.12.2": "pkcs-12-ESPVKID",
|
||||
"1.2.840.113549.1.12.2.1": "pkcs-12-PKCS8KeyShrouding",
|
||||
"1.2.840.113549.1.12.3": "pkcs-12-BagIds",
|
||||
"1.2.840.113549.1.12.3.1": "pkcs-12-keyBagId",
|
||||
"1.2.840.113549.1.12.3.2": "pkcs-12-certAndCRLBagId",
|
||||
"1.2.840.113549.1.12.3.3": "pkcs-12-secretBagId",
|
||||
"1.2.840.113549.1.12.3.4": "pkcs-12-safeContentsId",
|
||||
"1.2.840.113549.1.12.3.5": "pkcs-12-pkcs-8ShroudedKeyBagId",
|
||||
"1.2.840.113549.1.12.4": "pkcs-12-CertBagID",
|
||||
"1.2.840.113549.1.12.4.1": "pkcs-12-X509CertCRLBagID",
|
||||
"1.2.840.113549.1.12.4.2": "pkcs-12-SDSICertBagID",
|
||||
"1.2.840.113549.1.12.5": "pkcs-12-OID",
|
||||
"1.2.840.113549.1.12.5.1": "pkcs-12-PBEID",
|
||||
"1.2.840.113549.1.12.5.1.1": "pkcs-12-PBEWithSha1And128BitRC4",
|
||||
"1.2.840.113549.1.12.5.1.2": "pkcs-12-PBEWithSha1And40BitRC4",
|
||||
"1.2.840.113549.1.12.5.1.3": "pkcs-12-PBEWithSha1AndTripleDESCBC",
|
||||
"1.2.840.113549.1.12.5.1.4": "pkcs-12-PBEWithSha1And128BitRC2CBC",
|
||||
"1.2.840.113549.1.12.5.1.5": "pkcs-12-PBEWithSha1And40BitRC2CBC",
|
||||
"1.2.840.113549.1.12.5.1.6": "pkcs-12-PBEWithSha1AndRC4",
|
||||
"1.2.840.113549.1.12.5.1.7": "pkcs-12-PBEWithSha1AndRC2CBC",
|
||||
"1.2.840.113549.1.12.5.2": "pkcs-12-EnvelopingID",
|
||||
"1.2.840.113549.1.12.5.2.1": "pkcs-12-RSAEncryptionWith128BitRC4",
|
||||
"1.2.840.113549.1.12.5.2.2": "pkcs-12-RSAEncryptionWith40BitRC4",
|
||||
"1.2.840.113549.1.12.5.2.3": "pkcs-12-RSAEncryptionWithTripleDES",
|
||||
"1.2.840.113549.1.12.5.3": "pkcs-12-SignatureID",
|
||||
"1.2.840.113549.1.12.5.3.1": "pkcs-12-RSASignatureWithSHA1Digest",
|
||||
"1.2.840.113549.1.3": "pkcs-3",
|
||||
"1.2.840.113549.1.3.1": "dhKeyAgreement",
|
||||
"1.2.840.113549.1.5": "pkcs-5",
|
||||
"1.2.840.113549.1.5.1": "pbeWithMD2AndDES-CBC",
|
||||
"1.2.840.113549.1.5.10": "pbeWithSHAAndDES-CBC",
|
||||
"1.2.840.113549.1.5.3": "pbeWithMD5AndDES-CBC",
|
||||
"1.2.840.113549.1.5.4": "pbeWithMD2AndRC2-CBC",
|
||||
"1.2.840.113549.1.5.6": "pbeWithMD5AndRC2-CBC",
|
||||
"1.2.840.113549.1.5.9": "pbeWithMD5AndXOR",
|
||||
"1.2.840.113549.1.7": "pkcs-7",
|
||||
"1.2.840.113549.1.7.1": "data",
|
||||
"1.2.840.113549.1.7.2": "signedData",
|
||||
"1.2.840.113549.1.7.3": "envelopedData",
|
||||
"1.2.840.113549.1.7.4": "signedAndEnvelopedData",
|
||||
"1.2.840.113549.1.7.5": "digestData",
|
||||
"1.2.840.113549.1.7.6": "encryptedData",
|
||||
"1.2.840.113549.1.7.7": "dataWithAttributes",
|
||||
"1.2.840.113549.1.7.8": "encryptedPrivateKeyInfo",
|
||||
"1.2.840.113549.1.9": "pkcs-9",
|
||||
"1.2.840.113549.1.9.1": "emailAddress",
|
||||
"1.2.840.113549.1.9.10": "issuerAndSerialNumber",
|
||||
"1.2.840.113549.1.9.11": "passwordCheck",
|
||||
"1.2.840.113549.1.9.12": "publicKey",
|
||||
"1.2.840.113549.1.9.13": "signingDescription",
|
||||
"1.2.840.113549.1.9.14": "extensionReq",
|
||||
"1.2.840.113549.1.9.15": "sMIMECapabilities",
|
||||
"1.2.840.113549.1.9.15.1": "preferSignedData",
|
||||
"1.2.840.113549.1.9.15.2": "canNotDecryptAny",
|
||||
"1.2.840.113549.1.9.15.3": "receiptRequest",
|
||||
"1.2.840.113549.1.9.15.4": "receipt",
|
||||
"1.2.840.113549.1.9.15.5": "contentHints",
|
||||
"1.2.840.113549.1.9.15.6": "mlExpansionHistory",
|
||||
"1.2.840.113549.1.9.16": "id-sMIME",
|
||||
"1.2.840.113549.1.9.16.0": "id-mod",
|
||||
"1.2.840.113549.1.9.16.0.1": "id-mod-cms",
|
||||
"1.2.840.113549.1.9.16.0.2": "id-mod-ess",
|
||||
"1.2.840.113549.1.9.16.1": "id-ct",
|
||||
"1.2.840.113549.1.9.16.1.1": "id-ct-receipt",
|
||||
"1.2.840.113549.1.9.16.2": "id-aa",
|
||||
"1.2.840.113549.1.9.16.2.1": "id-aa-receiptRequest",
|
||||
"1.2.840.113549.1.9.16.2.2": "id-aa-securityLabel",
|
||||
"1.2.840.113549.1.9.16.2.3": "id-aa-mlExpandHistory",
|
||||
"1.2.840.113549.1.9.16.2.4": "id-aa-contentHint",
|
||||
"1.2.840.113549.1.9.2": "unstructuredName",
|
||||
"1.2.840.113549.1.9.20": "friendlyName",
|
||||
"1.2.840.113549.1.9.21": "localKeyID",
|
||||
"1.2.840.113549.1.9.22": "certTypes",
|
||||
"1.2.840.113549.1.9.22.1": "x509Certificate",
|
||||
"1.2.840.113549.1.9.22.2": "sdsiCertificate",
|
||||
"1.2.840.113549.1.9.23": "crlTypes",
|
||||
"1.2.840.113549.1.9.23.1": "x509Crl",
|
||||
"1.2.840.113549.1.9.3": "contentType",
|
||||
"1.2.840.113549.1.9.4": "messageDigest",
|
||||
"1.2.840.113549.1.9.5": "signingTime",
|
||||
"1.2.840.113549.1.9.6": "countersignature",
|
||||
"1.2.840.113549.1.9.7": "challengePassword",
|
||||
"1.2.840.113549.1.9.8": "unstructuredAddress",
|
||||
"1.2.840.113549.1.9.9": "extendedCertificateAttributes",
|
||||
"1.2.840.113549.2": "digestAlgorithm",
|
||||
"1.2.840.113549.2.2": "md2",
|
||||
"1.2.840.113549.2.4": "md4",
|
||||
"1.2.840.113549.2.5": "md5",
|
||||
"1.2.840.113549.3": "encryptionAlgorithm",
|
||||
"1.2.840.113549.3.10": "desCDMF",
|
||||
"1.2.840.113549.3.2": "rc2CBC",
|
||||
"1.2.840.113549.3.3": "rc2ECB",
|
||||
"1.2.840.113549.3.4": "rc4",
|
||||
"1.2.840.113549.3.5": "rc4WithMAC",
|
||||
"1.2.840.113549.3.6": "DESX-CBC",
|
||||
"1.2.840.113549.3.7": "DES-EDE3-CBC",
|
||||
"1.2.840.113549.3.8": "RC5CBC",
|
||||
"1.2.840.113549.3.9": "RC5-CBCPad",
|
||||
"1.2.840.113556.4.3": "microsoftExcel",
|
||||
"1.2.840.113556.4.4": "titledWithOID",
|
||||
"1.2.840.113556.4.5": "microsoftPowerPoint",
|
||||
"1.3.133.16.840.9.84": "x9-84",
|
||||
"1.3.133.16.840.9.84.0": "x9-84-Module",
|
||||
"1.3.133.16.840.9.84.0.1": "x9-84-Biometrics",
|
||||
"1.3.133.16.840.9.84.0.2": "x9-84-CMS",
|
||||
"1.3.133.16.840.9.84.0.3": "x9-84-Identifiers",
|
||||
"1.3.133.16.840.9.84.1": "biometric",
|
||||
"1.3.133.16.840.9.84.1.0": "id-unknown-Type",
|
||||
"1.3.133.16.840.9.84.1.1": "id-body-Odor",
|
||||
"1.3.133.16.840.9.84.1.10": "id-palm",
|
||||
"1.3.133.16.840.9.84.1.11": "id-retina",
|
||||
"1.3.133.16.840.9.84.1.12": "id-signature",
|
||||
"1.3.133.16.840.9.84.1.13": "id-speech-Pattern",
|
||||
"1.3.133.16.840.9.84.1.14": "id-thermal-Image",
|
||||
"1.3.133.16.840.9.84.1.15": "id-vein-Pattern",
|
||||
"1.3.133.16.840.9.84.1.16": "id-thermal-Face-Image",
|
||||
"1.3.133.16.840.9.84.1.17": "id-thermal-Hand-Image",
|
||||
"1.3.133.16.840.9.84.1.18": "id-lip-Movement",
|
||||
"1.3.133.16.840.9.84.1.19": "id-gait",
|
||||
"1.3.133.16.840.9.84.1.2": "id-dna",
|
||||
"1.3.133.16.840.9.84.1.3": "id-ear-Shape",
|
||||
"1.3.133.16.840.9.84.1.4": "id-facial-Features",
|
||||
"1.3.133.16.840.9.84.1.5": "id-finger-Image",
|
||||
"1.3.133.16.840.9.84.1.6": "id-finger-Geometry",
|
||||
"1.3.133.16.840.9.84.1.7": "id-hand-Geometry",
|
||||
"1.3.133.16.840.9.84.1.8": "id-iris-Features",
|
||||
"1.3.133.16.840.9.84.1.9": "id-keystroke-Dynamics",
|
||||
"1.3.133.16.840.9.84.2": "processing-algorithm",
|
||||
"1.3.133.16.840.9.84.3": "matching-method",
|
||||
"1.3.133.16.840.9.84.4": "format-Owner",
|
||||
"1.3.133.16.840.9.84.4.0": "cbeff-Owner",
|
||||
"1.3.133.16.840.9.84.4.1": "ibia-Owner",
|
||||
"1.3.133.16.840.9.84.4.1.1": "id-ibia-SAFLINK",
|
||||
"1.3.133.16.840.9.84.4.1.10": "id-ibia-SecuGen",
|
||||
"1.3.133.16.840.9.84.4.1.11": "id-ibia-PreciseBiometric",
|
||||
"1.3.133.16.840.9.84.4.1.12": "id-ibia-Identix",
|
||||
"1.3.133.16.840.9.84.4.1.13": "id-ibia-DERMALOG",
|
||||
"1.3.133.16.840.9.84.4.1.14": "id-ibia-LOGICO",
|
||||
"1.3.133.16.840.9.84.4.1.15": "id-ibia-NIST",
|
||||
"1.3.133.16.840.9.84.4.1.16": "id-ibia-A3Vision",
|
||||
"1.3.133.16.840.9.84.4.1.17": "id-ibia-NEC",
|
||||
"1.3.133.16.840.9.84.4.1.18": "id-ibia-STMicroelectronics",
|
||||
"1.3.133.16.840.9.84.4.1.2": "id-ibia-Bioscrypt",
|
||||
"1.3.133.16.840.9.84.4.1.3": "id-ibia-Visionics",
|
||||
"1.3.133.16.840.9.84.4.1.4": "id-ibia-InfineonTechnologiesAG",
|
||||
"1.3.133.16.840.9.84.4.1.5": "id-ibia-IridianTechnologies",
|
||||
"1.3.133.16.840.9.84.4.1.6": "id-ibia-Veridicom",
|
||||
"1.3.133.16.840.9.84.4.1.7": "id-ibia-CyberSIGN",
|
||||
"1.3.133.16.840.9.84.4.1.8": "id-ibia-eCryp.",
|
||||
"1.3.133.16.840.9.84.4.1.9": "id-ibia-FingerprintCardsAB",
|
||||
"1.3.133.16.840.9.84.4.2": "x9-Owner",
|
||||
"1.3.14.2.26.5": "sha",
|
||||
"1.3.14.3.2.1.1": "rsa",
|
||||
"1.3.14.3.2.10": "desMAC",
|
||||
"1.3.14.3.2.11": "rsaSignature",
|
||||
"1.3.14.3.2.12": "dsa",
|
||||
"1.3.14.3.2.13": "dsaWithSHA",
|
||||
"1.3.14.3.2.14": "mdc2WithRSASignature",
|
||||
"1.3.14.3.2.15": "shaWithRSASignature",
|
||||
"1.3.14.3.2.16": "dhWithCommonModulus",
|
||||
"1.3.14.3.2.17": "desEDE",
|
||||
"1.3.14.3.2.18": "sha",
|
||||
"1.3.14.3.2.19": "mdc-2",
|
||||
"1.3.14.3.2.2": "md4WitRSA",
|
||||
"1.3.14.3.2.2.1": "sqmod-N",
|
||||
"1.3.14.3.2.20": "dsaCommon",
|
||||
"1.3.14.3.2.21": "dsaCommonWithSHA",
|
||||
"1.3.14.3.2.22": "rsaKeyTransport",
|
||||
"1.3.14.3.2.23": "keyed-hash-seal",
|
||||
"1.3.14.3.2.24": "md2WithRSASignature",
|
||||
"1.3.14.3.2.25": "md5WithRSASignature",
|
||||
"1.3.14.3.2.26": "sha1",
|
||||
"1.3.14.3.2.27": "dsaWithSHA1",
|
||||
"1.3.14.3.2.28": "dsaWithCommonSHA1",
|
||||
"1.3.14.3.2.29": "sha-1WithRSAEncryption",
|
||||
"1.3.14.3.2.3": "md5WithRSA",
|
||||
"1.3.14.3.2.3.1": "sqmod-NwithRSA",
|
||||
"1.3.14.3.2.4": "md4WithRSAEncryption",
|
||||
"1.3.14.3.2.6": "desECB",
|
||||
"1.3.14.3.2.7": "desCBC",
|
||||
"1.3.14.3.2.8": "desOFB",
|
||||
"1.3.14.3.2.9": "desCFB",
|
||||
"1.3.14.3.3.1": "simple-strong-auth-mechanism",
|
||||
"1.3.14.7.2.1.1": "ElGamal",
|
||||
"1.3.14.7.2.3.1": "md2WithRSA",
|
||||
"1.3.14.7.2.3.2": "md2WithElGamal",
|
||||
"1.3.36.3": "algorithm",
|
||||
"1.3.36.3.1": "encryptionAlgorithm",
|
||||
"1.3.36.3.1.1": "des",
|
||||
"1.3.36.3.1.1.1.1": "desECBPad",
|
||||
"1.3.36.3.1.1.1.1.1": "desECBPadISO",
|
||||
"1.3.36.3.1.1.2.1": "desCBCPad",
|
||||
"1.3.36.3.1.1.2.1.1": "desCBCPadISO",
|
||||
"1.3.36.3.1.2": "idea",
|
||||
"1.3.36.3.1.2.1": "ideaECB",
|
||||
"1.3.36.3.1.2.1.1": "ideaECBPad",
|
||||
"1.3.36.3.1.2.1.1.1": "ideaECBPadISO",
|
||||
"1.3.36.3.1.2.2": "ideaCBC",
|
||||
"1.3.36.3.1.2.2.1": "ideaCBCPad",
|
||||
"1.3.36.3.1.2.2.1.1": "ideaCBCPadISO",
|
||||
"1.3.36.3.1.2.3": "ideaOFB",
|
||||
"1.3.36.3.1.2.4": "ideaCFB",
|
||||
"1.3.36.3.1.3": "des-3",
|
||||
"1.3.36.3.1.3.1.1": "des-3ECBPad",
|
||||
"1.3.36.3.1.3.1.1.1": "des-3ECBPadISO",
|
||||
"1.3.36.3.1.3.2.1": "des-3CBCPad",
|
||||
"1.3.36.3.1.3.2.1.1": "des-3CBCPadISO",
|
||||
"1.3.36.3.2": "hashAlgorithm",
|
||||
"1.3.36.3.2.1": "ripemd160",
|
||||
"1.3.36.3.2.2": "ripemd128",
|
||||
"1.3.36.3.2.3": "ripemd256",
|
||||
"1.3.36.3.2.4": "mdc2singleLength",
|
||||
"1.3.36.3.2.5": "mdc2doubleLength",
|
||||
"1.3.36.3.3": "signatureAlgorithm",
|
||||
"1.3.36.3.3.1": "rsa",
|
||||
"1.3.36.3.3.1.1": "rsaMitSHA-1",
|
||||
"1.3.36.3.3.1.2": "rsaMitRIPEMD160",
|
||||
"1.3.36.3.3.2": "ellipticCurve",
|
||||
"1.3.36.3.4": "signatureScheme",
|
||||
"1.3.36.3.4.1": "iso9796-1",
|
||||
"1.3.36.3.4.2.1": "iso9796-2",
|
||||
"1.3.36.3.4.2.2": "iso9796-2rsa",
|
||||
"1.3.36.4": "attribute",
|
||||
"1.3.36.5": "policy",
|
||||
"1.3.36.6": "api",
|
||||
"1.3.36.6.1": "manufacturerSpecific",
|
||||
"1.3.36.6.2": "functionalitySpecific",
|
||||
"1.3.36.7": "api",
|
||||
"1.3.36.7.1": "keyAgreement",
|
||||
"1.3.36.7.2": "keyTransport",
|
||||
"1.3.6.1.4.1.2428.10.1.1": "UNINETT policyIdentifier",
|
||||
"1.3.6.1.4.1.2712.10": "ICE-TEL policyIdentifier",
|
||||
"1.3.6.1.4.1.3029.32.1": "cryptlibEnvelope",
|
||||
"1.3.6.1.4.1.3029.32.2": "cryptlibPrivateKey",
|
||||
"1.3.6.1.4.1.311": "Microsoft OID",
|
||||
"1.3.6.1.4.1.311.10": "Crypto 2.0",
|
||||
"1.3.6.1.4.1.311.10.1": "certTrustList",
|
||||
"1.3.6.1.4.1.311.10.1.1": "szOID_SORTED_CTL",
|
||||
"1.3.6.1.4.1.311.10.10": "Microsoft CMC OIDs",
|
||||
"1.3.6.1.4.1.311.10.10.1": "szOID_CMC_ADD_ATTRIBUTES",
|
||||
"1.3.6.1.4.1.311.10.11": "Microsoft certificate property OIDs",
|
||||
"1.3.6.1.4.1.311.10.11.1": "szOID_CERT_PROP_ID_PREFIX",
|
||||
"1.3.6.1.4.1.311.10.12": "CryptUI",
|
||||
"1.3.6.1.4.1.311.10.12.1": "szOID_ANY_APPLICATION_POLICY",
|
||||
"1.3.6.1.4.1.311.10.2": "nextUpdateLocation",
|
||||
"1.3.6.1.4.1.311.10.3.1": "certTrustListSigning",
|
||||
"1.3.6.1.4.1.311.10.3.10": "szOID_KP_QUALIFIED_SUBORDINATION",
|
||||
"1.3.6.1.4.1.311.10.3.11": "szOID_KP_KEY_RECOVERY",
|
||||
"1.3.6.1.4.1.311.10.3.12": "szOID_KP_DOCUMENT_SIGNING",
|
||||
"1.3.6.1.4.1.311.10.3.2": "timeStampSigning",
|
||||
"1.3.6.1.4.1.311.10.3.3": "serverGatedCrypto",
|
||||
"1.3.6.1.4.1.311.10.3.3.1": "szOID_SERIALIZED",
|
||||
"1.3.6.1.4.1.311.10.3.4": "encryptedFileSystem",
|
||||
"1.3.6.1.4.1.311.10.3.4.1": "szOID_EFS_RECOVERY",
|
||||
"1.3.6.1.4.1.311.10.3.5": "szOID_WHQL_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.6": "szOID_NT5_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.7": "szOID_OEM_WHQL_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.8": "szOID_EMBEDDED_NT_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.9": "szOID_ROOT_LIST_SIGNER",
|
||||
"1.3.6.1.4.1.311.10.4.1": "yesnoTrustAttr",
|
||||
"1.3.6.1.4.1.311.10.5.1": "szOID_DRM",
|
||||
"1.3.6.1.4.1.311.10.5.2": "szOID_DRM_INDIVIDUALIZATION",
|
||||
"1.3.6.1.4.1.311.10.6.1": "szOID_LICENSES",
|
||||
"1.3.6.1.4.1.311.10.6.2": "szOID_LICENSE_SERVER",
|
||||
"1.3.6.1.4.1.311.10.7": "szOID_MICROSOFT_RDN_PREFIX",
|
||||
"1.3.6.1.4.1.311.10.7.1": "szOID_KEYID_RDN",
|
||||
"1.3.6.1.4.1.311.10.8.1": "szOID_REMOVE_CERTIFICATE",
|
||||
"1.3.6.1.4.1.311.10.9.1": "szOID_CROSS_CERT_DIST_POINTS",
|
||||
"1.3.6.1.4.1.311.12": "Catalog",
|
||||
"1.3.6.1.4.1.311.12.1.1": "szOID_CATALOG_LIST",
|
||||
"1.3.6.1.4.1.311.12.1.2": "szOID_CATALOG_LIST_MEMBER",
|
||||
"1.3.6.1.4.1.311.12.2.1": "CAT_NAMEVALUE_OBJID",
|
||||
"1.3.6.1.4.1.311.12.2.2": "CAT_MEMBERINFO_OBJID",
|
||||
"1.3.6.1.4.1.311.13": "Microsoft PKCS10 OIDs",
|
||||
"1.3.6.1.4.1.311.13.1": "szOID_RENEWAL_CERTIFICATE",
|
||||
"1.3.6.1.4.1.311.13.2.1": "szOID_ENROLLMENT_NAME_VALUE_PAIR",
|
||||
"1.3.6.1.4.1.311.13.2.2": "szOID_ENROLLMENT_CSP_PROVIDER",
|
||||
"1.3.6.1.4.1.311.13.2.3": "OS Version",
|
||||
"1.3.6.1.4.1.311.15": "Microsoft Java",
|
||||
"1.3.6.1.4.1.311.16": "Microsoft Outlook/Exchange",
|
||||
"1.3.6.1.4.1.311.16.4": "Outlook Express",
|
||||
"1.3.6.1.4.1.311.17": "Microsoft PKCS12 attributes",
|
||||
"1.3.6.1.4.1.311.17.1": "szOID_LOCAL_MACHINE_KEYSET",
|
||||
"1.3.6.1.4.1.311.18": "Microsoft Hydra",
|
||||
"1.3.6.1.4.1.311.19": "Microsoft ISPU Test",
|
||||
"1.3.6.1.4.1.311.2": "Authenticode",
|
||||
"1.3.6.1.4.1.311.2.1.10": "spcAgencyInfo",
|
||||
"1.3.6.1.4.1.311.2.1.11": "spcStatementType",
|
||||
"1.3.6.1.4.1.311.2.1.12": "spcSpOpusInfo",
|
||||
"1.3.6.1.4.1.311.2.1.14": "certExtensions",
|
||||
"1.3.6.1.4.1.311.2.1.15": "spcPelmageData",
|
||||
"1.3.6.1.4.1.311.2.1.18": "SPC_RAW_FILE_DATA_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.19": "SPC_STRUCTURED_STORAGE_DATA_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.20": "spcLink",
|
||||
"1.3.6.1.4.1.311.2.1.21": "individualCodeSigning",
|
||||
"1.3.6.1.4.1.311.2.1.22": "commercialCodeSigning",
|
||||
"1.3.6.1.4.1.311.2.1.25": "spcLink",
|
||||
"1.3.6.1.4.1.311.2.1.26": "spcMinimalCriteriaInfo",
|
||||
"1.3.6.1.4.1.311.2.1.27": "spcFinancialCriteriaInfo",
|
||||
"1.3.6.1.4.1.311.2.1.28": "spcLink",
|
||||
"1.3.6.1.4.1.311.2.1.29": "SPC_HASH_INFO_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.30": "SPC_SIPINFO_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.4": "spcIndirectDataContext",
|
||||
"1.3.6.1.4.1.311.2.2": "CTL for Software Publishers Trusted CAs",
|
||||
"1.3.6.1.4.1.311.2.2.1": "szOID_TRUSTED_CODESIGNING_CA_LIST",
|
||||
"1.3.6.1.4.1.311.2.2.2": "szOID_TRUSTED_CLIENT_AUTH_CA_LIST",
|
||||
"1.3.6.1.4.1.311.2.2.3": "szOID_TRUSTED_SERVER_AUTH_CA_LIST",
|
||||
"1.3.6.1.4.1.311.20": "Microsoft Enrollment Infrastructure",
|
||||
"1.3.6.1.4.1.311.20.1": "szOID_AUTO_ENROLL_CTL_USAGE",
|
||||
"1.3.6.1.4.1.311.20.2": "szOID_ENROLL_CERTTYPE_EXTENSION",
|
||||
"1.3.6.1.4.1.311.20.2.1": "szOID_ENROLLMENT_AGENT",
|
||||
"1.3.6.1.4.1.311.20.2.2": "szOID_KP_SMARTCARD_LOGON",
|
||||
"1.3.6.1.4.1.311.20.2.3": "szOID_NT_PRINCIPAL_NAME",
|
||||
"1.3.6.1.4.1.311.20.3": "szOID_CERT_MANIFOLD",
|
||||
"1.3.6.1.4.1.311.21": "Microsoft CertSrv Infrastructure",
|
||||
"1.3.6.1.4.1.311.21.1": "szOID_CERTSRV_CA_VERSION",
|
||||
"1.3.6.1.4.1.311.21.20": "Client Information",
|
||||
"1.3.6.1.4.1.311.25": "Microsoft Directory Service",
|
||||
"1.3.6.1.4.1.311.25.1": "szOID_NTDS_REPLICATION",
|
||||
"1.3.6.1.4.1.311.3": "Time Stamping",
|
||||
"1.3.6.1.4.1.311.3.2.1": "SPC_TIME_STAMP_REQUEST_OBJID",
|
||||
"1.3.6.1.4.1.311.30": "IIS",
|
||||
"1.3.6.1.4.1.311.31": "Windows updates and service packs",
|
||||
"1.3.6.1.4.1.311.31.1": "szOID_PRODUCT_UPDATE",
|
||||
"1.3.6.1.4.1.311.4": "Permissions",
|
||||
"1.3.6.1.4.1.311.40": "Fonts",
|
||||
"1.3.6.1.4.1.311.41": "Microsoft Licensing and Registration",
|
||||
"1.3.6.1.4.1.311.42": "Microsoft Corporate PKI (ITG)",
|
||||
"1.3.6.1.4.1.311.88": "CAPICOM",
|
||||
"1.3.6.1.4.1.311.88.1": "szOID_CAPICOM_VERSION",
|
||||
"1.3.6.1.4.1.311.88.2": "szOID_CAPICOM_ATTRIBUTE",
|
||||
"1.3.6.1.4.1.311.88.2.1": "szOID_CAPICOM_DOCUMENT_NAME",
|
||||
"1.3.6.1.4.1.311.88.2.2": "szOID_CAPICOM_DOCUMENT_DESCRIPTION",
|
||||
"1.3.6.1.4.1.311.88.3": "szOID_CAPICOM_ENCRYPTED_DATA",
|
||||
"1.3.6.1.4.1.311.88.3.1": "szOID_CAPICOM_ENCRYPTED_CONTENT",
|
||||
"1.3.6.1.5.5.7": "pkix",
|
||||
"1.3.6.1.5.5.7.1": "privateExtension",
|
||||
"1.3.6.1.5.5.7.1.1": "authorityInfoAccess",
|
||||
"1.3.6.1.5.5.7.12.2": "CMC Data",
|
||||
"1.3.6.1.5.5.7.2": "policyQualifierIds",
|
||||
"1.3.6.1.5.5.7.2.1": "cps",
|
||||
"1.3.6.1.5.5.7.2.2": "unotice",
|
||||
"1.3.6.1.5.5.7.3": "keyPurpose",
|
||||
"1.3.6.1.5.5.7.3.1": "serverAuth",
|
||||
"1.3.6.1.5.5.7.3.2": "clientAuth",
|
||||
"1.3.6.1.5.5.7.3.3": "codeSigning",
|
||||
"1.3.6.1.5.5.7.3.4": "emailProtection",
|
||||
"1.3.6.1.5.5.7.3.5": "ipsecEndSystem",
|
||||
"1.3.6.1.5.5.7.3.6": "ipsecTunnel",
|
||||
"1.3.6.1.5.5.7.3.7": "ipsecUser",
|
||||
"1.3.6.1.5.5.7.3.8": "timeStamping",
|
||||
"1.3.6.1.5.5.7.4": "cmpInformationTypes",
|
||||
"1.3.6.1.5.5.7.4.1": "caProtEncCert",
|
||||
"1.3.6.1.5.5.7.4.2": "signKeyPairTypes",
|
||||
"1.3.6.1.5.5.7.4.3": "encKeyPairTypes",
|
||||
"1.3.6.1.5.5.7.4.4": "preferredSymmAlg",
|
||||
"1.3.6.1.5.5.7.4.5": "caKeyUpdateInfo",
|
||||
"1.3.6.1.5.5.7.4.6": "currentCRL",
|
||||
"1.3.6.1.5.5.7.48.1": "ocsp",
|
||||
"1.3.6.1.5.5.7.48.2": "caIssuers",
|
||||
"1.3.6.1.5.5.8.1.1": "HMAC-MD5",
|
||||
"1.3.6.1.5.5.8.1.2": "HMAC-SHA",
|
||||
"2.16.840.1.101.2.1.1.1": "sdnsSignatureAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.10": "mosaicKeyManagementAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.11": "sdnsKMandSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.12": "mosaicKMandSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.13": "SuiteASignatureAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.14": "SuiteAConfidentialityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.15": "SuiteAIntegrityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.16": "SuiteATokenProtectionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.17": "SuiteAKeyManagementAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.18": "SuiteAKMandSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.19": "mosaicUpdatedSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.2": "mosaicSignatureAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.20": "mosaicKMandUpdSigAlgorithms",
|
||||
"2.16.840.1.101.2.1.1.21": "mosaicUpdatedIntegAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.22": "mosaicKeyEncryptionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.3": "sdnsConfidentialityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.4": "mosaicConfidentialityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.5": "sdnsIntegrityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.6": "mosaicIntegrityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.7": "sdnsTokenProtectionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.8": "mosaicTokenProtectionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.9": "sdnsKeyManagementAlgorithm",
|
||||
"2.16.840.1.113730.1": "cert-extension",
|
||||
"2.16.840.1.113730.1.1": "netscape-cert-type",
|
||||
"2.16.840.1.113730.1.10": "EntityLogo",
|
||||
"2.16.840.1.113730.1.11": "UserPicture",
|
||||
"2.16.840.1.113730.1.12": "netscape-ssl-server-name",
|
||||
"2.16.840.1.113730.1.13": "netscape-comment",
|
||||
"2.16.840.1.113730.1.2": "netscape-base-url",
|
||||
"2.16.840.1.113730.1.3": "netscape-revocation-url",
|
||||
"2.16.840.1.113730.1.4": "netscape-ca-revocation-url",
|
||||
"2.16.840.1.113730.1.7": "netscape-cert-renewal-url",
|
||||
"2.16.840.1.113730.1.8": "netscape-ca-policy-url",
|
||||
"2.16.840.1.113730.1.9": "HomePage-url",
|
||||
"2.16.840.1.113730.2": "data-type",
|
||||
"2.16.840.1.113730.2.1": "GIF",
|
||||
"2.16.840.1.113730.2.2": "JPEG",
|
||||
"2.16.840.1.113730.2.3": "URL",
|
||||
"2.16.840.1.113730.2.4": "HTML",
|
||||
"2.16.840.1.113730.2.5": "netscape-cert-sequence",
|
||||
"2.16.840.1.113730.2.6": "netscape-cert-url",
|
||||
"2.16.840.1.113730.3": "directory",
|
||||
"2.16.840.1.113730.4.1": "serverGatedCrypto",
|
||||
"2.16.840.1.113733.1.6.3": "Unknown Verisign extension",
|
||||
"2.16.840.1.113733.1.6.6": "Unknown Verisign extension",
|
||||
"2.16.840.1.113733.1.7.1.1": "Verisign certificatePolicy",
|
||||
"2.16.840.1.113733.1.7.1.1.1": "Unknown Verisign policy qualifier",
|
||||
"2.16.840.1.113733.1.7.1.1.2": "Unknown Verisign policy qualifier",
|
||||
"2.23.133": "TCPA",
|
||||
"2.23.133.1": "tcpa_specVersion",
|
||||
"2.23.133.2": "tcpa_attribute",
|
||||
"2.23.133.2.1": "tcpa_at_tpmManufacturer",
|
||||
"2.23.133.2.10": "tcpa_at_securityQualities",
|
||||
"2.23.133.2.11": "tcpa_at_tpmProtectionProfile",
|
||||
"2.23.133.2.12": "tcpa_at_tpmSecurityTarget",
|
||||
"2.23.133.2.13": "tcpa_at_foundationProtectionProfile",
|
||||
"2.23.133.2.14": "tcpa_at_foundationSecurityTarget",
|
||||
"2.23.133.2.15": "tcpa_at_tpmIdLabel",
|
||||
"2.23.133.2.2": "tcpa_at_tpmModel",
|
||||
"2.23.133.2.3": "tcpa_at_tpmVersion",
|
||||
"2.23.133.2.4": "tcpa_at_platformManufacturer",
|
||||
"2.23.133.2.5": "tcpa_at_platformModel",
|
||||
"2.23.133.2.6": "tcpa_at_platformVersion",
|
||||
"2.23.133.2.7": "tcpa_at_componentManufacturer",
|
||||
"2.23.133.2.8": "tcpa_at_componentModel",
|
||||
"2.23.133.2.9": "tcpa_at_componentVersion",
|
||||
"2.23.133.3": "tcpa_protocol",
|
||||
"2.23.133.3.1": "tcpa_prtt_tpmIdProtocol",
|
||||
"2.23.42.0": "contentType",
|
||||
"2.23.42.0.0": "PANData",
|
||||
"2.23.42.0.1": "PANToken",
|
||||
"2.23.42.0.2": "PANOnly",
|
||||
"2.23.42.1": "msgExt",
|
||||
"2.23.42.10": "national",
|
||||
"2.23.42.10.192": "Japan",
|
||||
"2.23.42.2": "field",
|
||||
"2.23.42.2.0": "fullName",
|
||||
"2.23.42.2.1": "givenName",
|
||||
"2.23.42.2.10": "amount",
|
||||
"2.23.42.2.2": "familyName",
|
||||
"2.23.42.2.3": "birthFamilyName",
|
||||
"2.23.42.2.4": "placeName",
|
||||
"2.23.42.2.5": "identificationNumber",
|
||||
"2.23.42.2.6": "month",
|
||||
"2.23.42.2.7": "date",
|
||||
"2.23.42.2.7.11": "accountNumber",
|
||||
"2.23.42.2.7.12": "passPhrase",
|
||||
"2.23.42.2.8": "address",
|
||||
"2.23.42.2.9": "telephone",
|
||||
"2.23.42.3": "attribute",
|
||||
"2.23.42.3.0": "cert",
|
||||
"2.23.42.3.0.0": "rootKeyThumb",
|
||||
"2.23.42.3.0.1": "additionalPolicy",
|
||||
"2.23.42.4": "algorithm",
|
||||
"2.23.42.5": "policy",
|
||||
"2.23.42.5.0": "root",
|
||||
"2.23.42.6": "module",
|
||||
"2.23.42.7": "certExt",
|
||||
"2.23.42.7.0": "hashedRootKey",
|
||||
"2.23.42.7.1": "certificateType",
|
||||
"2.23.42.7.2": "merchantData",
|
||||
"2.23.42.7.3": "cardCertRequired",
|
||||
"2.23.42.7.4": "tunneling",
|
||||
"2.23.42.7.5": "setExtensions",
|
||||
"2.23.42.7.6": "setQualifier",
|
||||
"2.23.42.8": "brand",
|
||||
"2.23.42.8.1": "IATA-ATA",
|
||||
"2.23.42.8.30": "Diners",
|
||||
"2.23.42.8.34": "AmericanExpress",
|
||||
"2.23.42.8.4": "VISA",
|
||||
"2.23.42.8.5": "MasterCard",
|
||||
"2.23.42.8.6011": "Novus",
|
||||
"2.23.42.9": "vendor",
|
||||
"2.23.42.9.0": "GlobeSet",
|
||||
"2.23.42.9.1": "IBM",
|
||||
"2.23.42.9.10": "Griffin",
|
||||
"2.23.42.9.11": "Certicom",
|
||||
"2.23.42.9.12": "OSS",
|
||||
"2.23.42.9.13": "TenthMountain",
|
||||
"2.23.42.9.14": "Antares",
|
||||
"2.23.42.9.15": "ECC",
|
||||
"2.23.42.9.16": "Maithean",
|
||||
"2.23.42.9.17": "Netscape",
|
||||
"2.23.42.9.18": "Verisign",
|
||||
"2.23.42.9.19": "BlueMoney",
|
||||
"2.23.42.9.2": "CyberCash",
|
||||
"2.23.42.9.20": "Lacerte",
|
||||
"2.23.42.9.21": "Fujitsu",
|
||||
"2.23.42.9.22": "eLab",
|
||||
"2.23.42.9.23": "Entrust",
|
||||
"2.23.42.9.24": "VIAnet",
|
||||
"2.23.42.9.25": "III",
|
||||
"2.23.42.9.26": "OpenMarket",
|
||||
"2.23.42.9.27": "Lexem",
|
||||
"2.23.42.9.28": "Intertrader",
|
||||
"2.23.42.9.29": "Persimmon",
|
||||
"2.23.42.9.3": "Terisa",
|
||||
"2.23.42.9.30": "NABLE",
|
||||
"2.23.42.9.31": "espace-net",
|
||||
"2.23.42.9.32": "Hitachi",
|
||||
"2.23.42.9.33": "Microsoft",
|
||||
"2.23.42.9.34": "NEC",
|
||||
"2.23.42.9.35": "Mitsubishi",
|
||||
"2.23.42.9.36": "NCR",
|
||||
"2.23.42.9.37": "e-COMM",
|
||||
"2.23.42.9.38": "Gemplus",
|
||||
"2.23.42.9.4": "RSADSI",
|
||||
"2.23.42.9.5": "VeriFone",
|
||||
"2.23.42.9.6": "TrinTech",
|
||||
"2.23.42.9.7": "BankGate",
|
||||
"2.23.42.9.8": "GTE",
|
||||
"2.23.42.9.9": "CompuSource",
|
||||
"2.5.29.1": "authorityKeyIdentifier",
|
||||
"2.5.29.10": "basicConstraints",
|
||||
"2.5.29.11": "nameConstraints",
|
||||
"2.5.29.12": "policyConstraints",
|
||||
"2.5.29.13": "basicConstraints",
|
||||
"2.5.29.14": "subjectKeyIdentifier",
|
||||
"2.5.29.15": "keyUsage",
|
||||
"2.5.29.16": "privateKeyUsagePeriod",
|
||||
"2.5.29.17": "subjectAltName",
|
||||
"2.5.29.18": "issuerAltName",
|
||||
"2.5.29.19": "basicConstraints",
|
||||
"2.5.29.2": "keyAttributes",
|
||||
"2.5.29.20": "cRLNumber",
|
||||
"2.5.29.21": "cRLReason",
|
||||
"2.5.29.22": "expirationDate",
|
||||
"2.5.29.23": "instructionCode",
|
||||
"2.5.29.24": "invalidityDate",
|
||||
"2.5.29.26": "issuingDistributionPoint",
|
||||
"2.5.29.27": "deltaCRLIndicator",
|
||||
"2.5.29.28": "issuingDistributionPoint",
|
||||
"2.5.29.29": "certificateIssuer",
|
||||
"2.5.29.3": "certificatePolicies",
|
||||
"2.5.29.30": "nameConstraints",
|
||||
"2.5.29.31": "cRLDistributionPoints",
|
||||
"2.5.29.32": "certificatePolicies",
|
||||
"2.5.29.33": "policyMappings",
|
||||
"2.5.29.34": "policyConstraints",
|
||||
"2.5.29.35": "authorityKeyIdentifier",
|
||||
"2.5.29.36": "policyConstraints",
|
||||
"2.5.29.37": "extKeyUsage",
|
||||
"2.5.29.4": "keyUsageRestriction",
|
||||
"2.5.29.5": "policyMapping",
|
||||
"2.5.29.6": "subtreesConstraint",
|
||||
"2.5.29.7": "subjectAltName",
|
||||
"2.5.29.8": "issuerAltName",
|
||||
"2.5.29.9": "subjectDirectoryAttributes",
|
||||
"2.5.4.0": "objectClass",
|
||||
"2.5.4.1": "aliasObjectName",
|
||||
"2.5.4.12": "title",
|
||||
"2.5.4.13": "description",
|
||||
"2.5.4.14": "searchGuide",
|
||||
"2.5.4.15": "businessCategory",
|
||||
"2.5.4.16": "postalAddress",
|
||||
"2.5.4.17": "postalCode",
|
||||
"2.5.4.18": "postOfficeBox",
|
||||
"2.5.4.19": "physicalDeliveryOfficeName",
|
||||
"2.5.4.2": "knowledgeInformation",
|
||||
"2.5.4.20": "telephoneNumber",
|
||||
"2.5.4.21": "telexNumber",
|
||||
"2.5.4.22": "teletexTerminalIdentifier",
|
||||
"2.5.4.23": "facsimileTelephoneNumber",
|
||||
"2.5.4.24": "x121Address",
|
||||
"2.5.4.25": "internationalISDNNumber",
|
||||
"2.5.4.26": "registeredAddress",
|
||||
"2.5.4.27": "destinationIndicator",
|
||||
"2.5.4.28": "preferredDeliveryMehtod",
|
||||
"2.5.4.29": "presentationAddress",
|
||||
"2.5.4.30": "supportedApplicationContext",
|
||||
"2.5.4.31": "member",
|
||||
"2.5.4.32": "owner",
|
||||
"2.5.4.33": "roleOccupant",
|
||||
"2.5.4.34": "seeAlso",
|
||||
"2.5.4.35": "userPassword",
|
||||
"2.5.4.36": "userCertificate",
|
||||
"2.5.4.37": "caCertificate",
|
||||
"2.5.4.38": "authorityRevocationList",
|
||||
"2.5.4.39": "certificateRevocationList",
|
||||
"2.5.4.40": "crossCertificatePair",
|
||||
"2.5.4.41": "givenName",
|
||||
"2.5.4.42": "givenName",
|
||||
"2.5.4.5": "serialNumber",
|
||||
"2.5.4.52": "supportedAlgorithms",
|
||||
"2.5.4.53": "deltaRevocationList",
|
||||
"2.5.4.58": "crossCertificatePair",
|
||||
"2.5.4.9": "streetAddress",
|
||||
"2.5.8": "X.500-Algorithms",
|
||||
"2.5.8.1": "X.500-Alg-Encryption",
|
||||
"2.5.8.1.1": "rsa",
|
||||
"2.16.76.1.1": "DPC",
|
||||
"2.16.76.1.1.0": "DPC da AC Raiz",
|
||||
"2.16.76.1.1.1": "DPC da AC Presidência",
|
||||
"2.16.76.1.1.2": "DPC da AC Serpro",
|
||||
"2.16.76.1.1.3": "DPC da SERASA Autoridade Certificadora Principal - ACP",
|
||||
"2.16.76.1.1.4": "DPC da SERASA Autoridade Certificadora - AC",
|
||||
"2.16.76.1.1.5": "DPC da AC CertiSign na ICPBrasil",
|
||||
"2.16.76.1.1.6": "DPC da AC CertiSign SPB na ICPBrasil",
|
||||
"2.16.76.1.1.7": "DPC da SERASA Certificadora Digital",
|
||||
"2.16.76.1.1.8": "DPC da AC SRF",
|
||||
"2.16.76.1.1.9": "DPC da AC CAIXA",
|
||||
"2.16.76.1.1.10": "DPC da AC CAIXA IN",
|
||||
"2.16.76.1.1.11": "DPC da AC CAIXA PJ",
|
||||
"2.16.76.1.1.12": "DPC da AC CAIXA PF",
|
||||
"2.16.76.1.1.13": "DPC da AC SERPRO SRF",
|
||||
"2.16.76.1.1.14": "DPC da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.1.15": "DPC da Autoridade Certificadora CertiSign para Secretaria da Receita Federal",
|
||||
"2.16.76.1.1.16": "DPC da AC SERASA SRF",
|
||||
"2.16.76.1.1.17": "DPC da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.1.18": "DPC da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.1.19": "DPC da Autoridade Certificadora do Sistema Justiça Federal - ACJUS",
|
||||
"2.16.76.1.1.20": "Declaração de Práticas de Certificação da Autoridade Certificadora do SERPRO Final - DPC SERPRO ACF",
|
||||
"2.16.76.1.1": "DPC",
|
||||
"2.16.76.1.1.21": "Declaração de Práticas de Certificação da Autoridade Certificadora SINCOR",
|
||||
"2.16.76.1.1.22": "Declaração de Práticas de Certificação da Autoridade Certificadora Imprensa Oficial SP SRF",
|
||||
"2.16.76.1.1.23": "Declaração de Práticas de Certificação da AC FENACOR",
|
||||
"2.16.76.1.1.24": "Declaração de Práticas de Certificação da Autoridade Certificadora SERPRO JUS",
|
||||
"2.16.76.1.1.25": "DPC da AC Caixa Justiça",
|
||||
"2.16.76.1.1.26": "DPC da Autoridade Certificadora Imprensa Oficial SP (AC IMESP)",
|
||||
"2.16.76.1.1.27": "DPC da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.1.28": "Declaração de Práticas de Certificação da Autoridade Certificadora CertSign para a Justiça",
|
||||
"2.16.76.1.1.29": "DPC da AC SERASA JUS",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.1": "A1",
|
||||
"2.16.76.1.2.1.1": "Política de Certificados da ACSERPRO para certificados SERPROSPB PC SERPROSPB",
|
||||
"2.16.76.1.2.1.2": "Política de Certificados para certificados da SERASA Autoridade Certificadora",
|
||||
"2.16.76.1.2.1.3": "Política de Certificados da Autoridade Certificadora da Presidência da República - PCA1",
|
||||
"2.16.76.1.2.1.4": "Política de Certificado da Autoridade Certificadora CertiSign Certificadora Digital para o Sistema de Pagamentos Brasileiro na ICPBrasil PC da AC CertiSign SPB na ICPBrasil",
|
||||
"2.16.76.1.2.1.5": "Política de Certificados SEPROA1",
|
||||
"2.16.76.1.2.1.6": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A1 - SERASA CD",
|
||||
"2.16.76.1.2.1.7": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa IN",
|
||||
"2.16.76.1.2.1.8": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa PF",
|
||||
"2.16.76.1.2.1.9": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa PJ",
|
||||
"2.16.76.1.2.1.10": "Política de Certificados da Autoridade Certificadora do SerproSRF para certificados de assinatura digital do tipo A1 (PCSerproSRFA1)",
|
||||
"2.16.76.1.2.1.11": "Política de Certificado de Assinatura Digital do Tipo A1 da Autoridade Certificadora CertiSign Múltipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.1.12": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora CertiSign para a Secretaria da Receita Federal",
|
||||
"2.16.76.1.2.1.13": "Política de Certificado de Assinatura Digital Tipo A1 da AC SERASA SRF",
|
||||
"2.16.76.1.2.1.14": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.1.15": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.1.16": "Política de Certificados SERPRO do Tipo A1 - PC SERPRO ACF A1",
|
||||
"2.16.76.1.2.1.17": "Política de Certificados do SERPRO - SPB - PC SERPRO ACF SPB",
|
||||
"2.16.76.1.2.1.18": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora SINCOR",
|
||||
"2.16.76.1.2.1.19": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora SINCOR para Corretores de Seguros",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.1": "A1",
|
||||
"2.16.76.1.2.1.20": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora Imprensa Oficial SP SRF",
|
||||
"2.16.76.1.2.1.21": "Política de Certificados SERPROJUS do tipo A1 PCSERPROJUSA1",
|
||||
"2.16.76.1.2.1.22": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.1.23": "Política de Certificado de Assinatura Tipo A1 da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.2.1.24": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.1.25": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo A1",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.2": "A2",
|
||||
"2.16.76.1.2.2.1": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A2 - SERASA CD",
|
||||
"2.16.76.1.2.2.2": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A2 da AC SERASA SRF",
|
||||
"2.16.76.1.2.2.3": "Política de Certificado de Assinatura Digital do Tipo A2 da Autoridade Certificadora CertiSign últipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.2.4": "Política de Certificado de Assinatura Digital do Tipo A2 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.2.5": "Política de Certificado de Assinatura Digital do Tipo A2 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.2.6": "Política de Certificado de Assinatura Digital Tipo A2 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.2.7": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo A2",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.3": "A3",
|
||||
"2.16.76.1.2.3.1": "Política de Certificados da Autoridade Certificadora da Presidência da República - PC ACPR",
|
||||
"2.16.76.1.2.3.2": "Política de Certificados da Autoridade Certificadora do SERPRO para certificados SERPRO do tipo A3 - PCSERPROA3",
|
||||
"2.16.76.1.2.3.3": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A3 - SERASA CD",
|
||||
"2.16.76.1.2.3.4": "Política de Certificados da Autoridade Certificadora do SerproSRF para certificados de assinatura digital do tipo A3 (PCSerproSRFA3)",
|
||||
"2.16.76.1.2.3.5": "Política de Certificado de Assinatura Digital do Tipo A3 da Autoridade Certificadora CertiSign Múltipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.3.6": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora CertiSign para a Secretaria da Receita Federal na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.3.7": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa IN",
|
||||
"2.16.76.1.2.3.8": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa PF",
|
||||
"2.16.76.1.2.3.9": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa PJ",
|
||||
"2.16.76.1.2.3.10": "Política de Certificado de Assinatura Digital do Tipo A3 da AC SERASA SRF",
|
||||
"2.16.76.1.2.3.11": "Política de Certificado de Assinatura Digital do Tipo A3 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.3.12": "Política de Certificado de Assinatura Digital do Tipo A3 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.3.13": "Política de Certificados SERPRO do Tipo A3 - PC SERPRO A3",
|
||||
"2.16.76.1.2.3.14": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora SINCOR",
|
||||
"2.16.76.1.2.3.15": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora SINCOR para Corretores de Seguros",
|
||||
"2.16.76.1.2.3.16": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora Imprensa Oficial SP SRF",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.3": "A3",
|
||||
"2.16.76.1.2.3.17": "Política de Certificado da AC FENACOR A3",
|
||||
"2.16.76.1.2.3.18": "Política de Certificados SERPROJUS do tipo A3 PCSERPROJUSA3",
|
||||
"2.16.76.1.2.3.19": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.3.20": "Política de Certificado de Assinatura Tipo A3 da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.2.3.21": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.3.22": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo A3",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.4": "A4",
|
||||
"2.16.76.1.2.4.1": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A4 - SERASA CD;",
|
||||
"2.16.76.1.2.4.2": "VAGO",
|
||||
"2.16.76.1.2.4.3": "Política de Certificado de Assinatura Digital do Tipo A4 da Autoridade Certificadora CertiSign Múltipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.4.4": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora CertiSign para a Secretaria da Receita Federal na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.4.5": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.4.6": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora Imprensa Oficial - SP SRF",
|
||||
"2.16.76.1.2.4.7": "Política de Certificado de Assinatura Tipo A4 da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.2.4.8": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.4.9": "VAGO",
|
||||
"2.16.76.1.2.4.10": "Política de Certificado Digital a AC SERASAJUS para Certificados Tipo A4",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.101": "S1",
|
||||
"2.16.76.1.2.101.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S1-SERASA CD",
|
||||
"2.16.76.1.2.101.2": "Política de Certificado de Sigilo Tipo S1 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.101.3": "Política de Certificado de Sigilo do Tipo S1 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.101.4": "Política de Certificado de Sigilo do Tipo S1 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.101.5": "Política de Certificado de Assinatura Digital do Tipo S1 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.101.6": "Política de Certificado de Assinatura Digital Tipo S1 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.101.7": "Política de Certificado Digital da AC SERASAJUS para Cerficados Tipo S1",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.102": "S2",
|
||||
"2.16.76.1.2.102.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S2 - SERASA CD",
|
||||
"2.16.76.1.2.102.2": "Política de Certificado de Sigilo Tipo S2 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.102.3": "Política de Certificado de Sigilo do Tipo S2 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.102.4": "Política de Certificado de Assinatura Digital do Tipo S2 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.102.5": "Política de Certificado de Assinatura Digital Tipo S2 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.102.6": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo S2",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.103": "S3",
|
||||
"2.16.76.1.2.103.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S3 - SERASA CD",
|
||||
"2.16.76.1.2.103.2": "VAGO",
|
||||
"2.16.76.1.2.103.3": "Política de Certificado de Sigilo do Tipo S3 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.103.4": "Política de Certificado de Sigilo Tipo S3 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.103.5": "Política de Certificado de Sigilo Tipo S3 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.103.6": "Política de Certificado de Assinatura Digital do Tipo S3 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.103.7": "Política de Certificado de Assinatura Digital Tipo S3 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.103.8": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo S3",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.104": "S4",
|
||||
"2.16.76.1.2.104.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S4 - SERASA CD",
|
||||
"2.16.76.1.2.104.2": "VAGO",
|
||||
"2.16.76.1.2.104.3": "Política de Certificado de Sigilo do Tipo S4 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.104.4": "Política de Certificado de Sigilo Tipo S4 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.104.5": "Política de Certificado de Assinatura Digital Tipo S4 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.104.6": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo S4",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.201": "PC de AC",
|
||||
"2.16.76.1.2.201.1": "PC da Serasa Autoridade Certificadora Principal - ACP",
|
||||
"2.16.76.1.2.201.2": "PC da AC CertiSign na ICPBrasil",
|
||||
"2.16.76.1.2.201.3": "PC da AC SRF",
|
||||
"2.16.76.1.2.201.4": "Política de Certificados da Autoridade Certificadora Caixa",
|
||||
"2.16.76.1.2.201.5": "PC da Autoridade Certificadora do Sistema Justiça Federal - AC JUS",
|
||||
"2.16.76.1.2.201.6": "PC da Autoridade Certificadora do SERPRO (AC SERPRO)",
|
||||
"2.16.76.1.2.201.7": "PC da Autoridade Certificadora Imprensa Oficial SP (AC IMESP)",
|
||||
"2.16.76.1.3": "Atributos Obrigatórios de Certificados",
|
||||
"2.16.76.1.3.1": "campo otherName em certificado de pessoa física",
|
||||
"2.16.76.1.3.2": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.3.3": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.3.4": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.3.5": "campo otherName em certificado de pessoa física",
|
||||
"2.16.76.1.3.6": "campo otherName em certificado de pessoa física",
|
||||
"2.16.76.1.3.7": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.4": "Atributos Opcionais de Certificados",
|
||||
"2.16.76.1.4.1": "Entidades Sindicais",
|
||||
"2.16.76.1.4.1.1": "SINCOR",
|
||||
"2.16.76.1.4.1.1.1": "Número de registro do corretor associado"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation } from './chmod-calculator.service';
|
||||
import { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation, computePermissionsFromChmodOctalRepresentation, computePermissionsFromChmodSymbolicRepresentation, computeUmaskRepresentation } from './chmod-calculator.service';
|
||||
|
||||
describe('chmod-calculator', () => {
|
||||
describe('computeChmodOctalRepresentation', () => {
|
||||
@@ -10,6 +10,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: true, write: true, execute: true },
|
||||
group: { read: true, write: true, execute: true },
|
||||
public: { read: true, write: true, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('777');
|
||||
@@ -20,6 +21,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: false, execute: false },
|
||||
group: { read: false, write: false, execute: false },
|
||||
public: { read: false, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('000');
|
||||
@@ -30,6 +32,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: true, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('235');
|
||||
@@ -40,6 +43,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: true, write: false, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('421');
|
||||
@@ -50,6 +54,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('124');
|
||||
@@ -60,11 +65,57 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('222');
|
||||
});
|
||||
|
||||
expect(
|
||||
computeChmodOctalRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: true, setgid: true, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.eql('7222');
|
||||
|
||||
expect(
|
||||
computeChmodOctalRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: true, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('4222');
|
||||
|
||||
expect(
|
||||
computeChmodOctalRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: true, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('2222');
|
||||
|
||||
expect(
|
||||
computeChmodOctalRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.eql('1222');
|
||||
});
|
||||
});
|
||||
describe('computeChmodSymbolicRepresentation', () => {
|
||||
it('get the symbolic representation from permissions', () => {
|
||||
expect(
|
||||
computeChmodSymbolicRepresentation({
|
||||
@@ -72,6 +123,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: true, write: true, execute: true },
|
||||
group: { read: true, write: true, execute: true },
|
||||
public: { read: true, write: true, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('rwxrwxrwx');
|
||||
@@ -82,6 +134,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: false, execute: false },
|
||||
group: { read: false, write: false, execute: false },
|
||||
public: { read: false, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('---------');
|
||||
@@ -92,6 +145,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: true, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('-w--wxr-x');
|
||||
@@ -102,6 +156,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: true, write: false, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('r---w---x');
|
||||
@@ -112,6 +167,7 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('--x-w-r--');
|
||||
@@ -122,9 +178,382 @@ describe('chmod-calculator', () => {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('-w--w--w-');
|
||||
|
||||
expect(
|
||||
computeChmodSymbolicRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.eql('--x-w-r-t');
|
||||
|
||||
expect(
|
||||
computeChmodSymbolicRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: true, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.eql('--x-wsr-t');
|
||||
|
||||
expect(
|
||||
computeChmodSymbolicRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: true, setgid: true, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.eql('--s-wsr-t');
|
||||
|
||||
expect(
|
||||
computeChmodSymbolicRepresentation({
|
||||
permissions: {
|
||||
owner: { read: true, write: false, execute: true },
|
||||
group: { read: true, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.eql('r-xrw-r--');
|
||||
|
||||
expect(
|
||||
computeChmodSymbolicRepresentation({
|
||||
permissions: {
|
||||
owner: { read: true, write: true, execute: true },
|
||||
group: { read: true, write: true, execute: true },
|
||||
public: { read: true, write: true, execute: true },
|
||||
flags: { setuid: true, setgid: true, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.eql('rwsrwsrwt');
|
||||
});
|
||||
});
|
||||
describe('computePermissionsFromChmodOctalRepresentation', () => {
|
||||
it('throws on invalid octal values', () => {
|
||||
expect(() => computePermissionsFromChmodOctalRepresentation('12')).to.throw();
|
||||
expect(() => computePermissionsFromChmodOctalRepresentation('12345')).to.throw();
|
||||
expect(() => computePermissionsFromChmodOctalRepresentation('999')).to.throw();
|
||||
expect(() => computePermissionsFromChmodOctalRepresentation('9999')).to.throw();
|
||||
});
|
||||
|
||||
it('get permissions from octal representation', () => {
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('777'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: true, execute: true },
|
||||
group: { read: true, write: true, execute: true },
|
||||
public: { read: true, write: true, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('000'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: false, execute: false },
|
||||
group: { read: false, write: false, execute: false },
|
||||
public: { read: false, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('235'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: true, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('421'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: false, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('124'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('222'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('7222'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: true, setgid: true, stickybit: true },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('4222'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: true, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('2222'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: true, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodOctalRepresentation('1222'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: true },
|
||||
});
|
||||
});
|
||||
});
|
||||
describe('computePermissionsFromChmodSymbolicRepresentation', () => {
|
||||
it('throws on invalid symbolic values', () => {
|
||||
expect(() => computePermissionsFromChmodSymbolicRepresentation('rr---')).to.throw();
|
||||
expect(() => computePermissionsFromChmodSymbolicRepresentation('rwxrwx--w')).to.throw();
|
||||
});
|
||||
|
||||
it('get permissions from symbolic representation', () => {
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('dr-xr-xr-x'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: false, execute: true },
|
||||
group: { read: true, write: false, execute: true },
|
||||
public: { read: true, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('-rw-r--r--'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: true, execute: false },
|
||||
group: { read: true, write: false, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('rwxrwxrwx'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: true, execute: true },
|
||||
group: { read: true, write: true, execute: true },
|
||||
public: { read: true, write: true, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('---------'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: false, execute: false },
|
||||
group: { read: false, write: false, execute: false },
|
||||
public: { read: false, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('r---wxr-x'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: false, execute: false },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: true, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('r---w---x'),
|
||||
).to.eql({
|
||||
owner: { read: true, write: false, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('--x-w-r--'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('-w--w--w-'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('-ws-ws-wt'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: true },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: false, write: true, execute: true },
|
||||
flags: { setuid: true, setgid: true, stickybit: true },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('-ws-w--w-'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: true, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('-w--ws-w-'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: true, stickybit: false },
|
||||
});
|
||||
|
||||
expect(
|
||||
computePermissionsFromChmodSymbolicRepresentation('-w--w--wt'),
|
||||
).to.eql({
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: true },
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('computeUmaskRepresentation', () => {
|
||||
it('get the umask from permissions', () => {
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: true, write: true, execute: true },
|
||||
group: { read: true, write: true, execute: true },
|
||||
public: { read: true, write: true, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '000',
|
||||
symbolic: 'umask u=rwx,g=rwx,o=rwx',
|
||||
});
|
||||
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: false, execute: false },
|
||||
group: { read: false, write: false, execute: false },
|
||||
public: { read: false, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '777',
|
||||
symbolic: 'umask u=,g=,o=',
|
||||
});
|
||||
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: true },
|
||||
public: { read: true, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '542',
|
||||
symbolic: 'umask u=w,g=wx,o=rx',
|
||||
});
|
||||
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: true, write: false, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: false, execute: true },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '356',
|
||||
symbolic: 'umask u=r,g=w,o=x',
|
||||
});
|
||||
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '653',
|
||||
symbolic: 'umask u=x,g=w,o=r',
|
||||
});
|
||||
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: true, execute: false },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: false, write: true, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '555',
|
||||
symbolic: 'umask u=w,g=w,o=w',
|
||||
});
|
||||
|
||||
expect(
|
||||
computeUmaskRepresentation({
|
||||
permissions: {
|
||||
owner: { read: false, write: false, execute: true },
|
||||
group: { read: false, write: true, execute: false },
|
||||
public: { read: true, write: false, execute: false },
|
||||
flags: { setuid: true, setgid: true, stickybit: true },
|
||||
},
|
||||
}),
|
||||
).to.deep.eq({
|
||||
octal: '653',
|
||||
symbolic: 'umask u=x,g=w,o=r',
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -1,15 +1,21 @@
|
||||
import _ from 'lodash';
|
||||
import type { GroupPermissions, Permissions } from './chmod-calculator.types';
|
||||
import type { GroupPermissions, Permissions, SpecialPermissions } from './chmod-calculator.types';
|
||||
|
||||
export { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation };
|
||||
export { computeUmaskRepresentation, computeChmodOctalRepresentation, computeChmodSymbolicRepresentation, computePermissionsFromChmodOctalRepresentation, computePermissionsFromChmodSymbolicRepresentation };
|
||||
|
||||
function computeChmodOctalRepresentation({ permissions }: { permissions: Permissions }): string {
|
||||
const permissionValue = { read: 4, write: 2, execute: 1 };
|
||||
const specialPermissionValue = { setuid: 4, setgid: 2, stickybit: 1 };
|
||||
|
||||
const getGroupPermissionValue = (permission: GroupPermissions) =>
|
||||
_.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(permissionValue, key, 0) : 0), 0);
|
||||
const getSpecialPermissionValue = (permission: SpecialPermissions) => {
|
||||
const octalValue = _.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(specialPermissionValue, key, 0) : 0), 0);
|
||||
return octalValue > 0 ? octalValue.toString() : '';
|
||||
};
|
||||
|
||||
return [
|
||||
getSpecialPermissionValue(permissions.flags || { setuid: false, setgid: false, stickybit: false }),
|
||||
getGroupPermissionValue(permissions.owner),
|
||||
getGroupPermissionValue(permissions.group),
|
||||
getGroupPermissionValue(permissions.public),
|
||||
@@ -18,13 +24,92 @@ function computeChmodOctalRepresentation({ permissions }: { permissions: Permiss
|
||||
|
||||
function computeChmodSymbolicRepresentation({ permissions }: { permissions: Permissions }): string {
|
||||
const permissionValue = { read: 'r', write: 'w', execute: 'x' };
|
||||
const specialFlagPermission = 'execute';
|
||||
|
||||
const getGroupPermissionValue = (permission: GroupPermissions) =>
|
||||
_.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(permissionValue, key, '') : '-'), '');
|
||||
const getGroupPermissionValue = (permission: GroupPermissions, specialFlag: null | 's' | 't') =>
|
||||
_.reduce(permission, (acc, isPermSet, key) => acc + ((key === specialFlagPermission ? specialFlag : undefined)
|
||||
|| (isPermSet ? _.get(permissionValue, key, '') : '-')), '');
|
||||
|
||||
return [
|
||||
getGroupPermissionValue(permissions.owner),
|
||||
getGroupPermissionValue(permissions.group),
|
||||
getGroupPermissionValue(permissions.public),
|
||||
getGroupPermissionValue(permissions.owner, permissions.flags?.setuid ? 's' : null),
|
||||
getGroupPermissionValue(permissions.group, permissions.flags?.setgid ? 's' : null),
|
||||
getGroupPermissionValue(permissions.public, permissions.flags?.stickybit ? 't' : null),
|
||||
].join('');
|
||||
}
|
||||
|
||||
function computePermissionsFromChmodOctalRepresentation(octalPermissions: string): Permissions {
|
||||
const permissionValue = { read: 4, write: 2, execute: 1 };
|
||||
const specialPermissionValue = { setuid: 4, setgid: 2, stickybit: 1 };
|
||||
|
||||
if (!octalPermissions || !octalPermissions.match(/^[0-7]{3,4}$/)) {
|
||||
throw new Error(`Invalid octal permissions (must be 3 or 4 octal digits): ${octalPermissions}`);
|
||||
}
|
||||
const fullOctalPermissions = octalPermissions.length === 3 ? `0${octalPermissions}` : octalPermissions;
|
||||
|
||||
const hasSet = (position: number, flagValue: number) => (Number(fullOctalPermissions[position]) & flagValue) === flagValue;
|
||||
function computePermissionObject<T>(permissionSet: object, position: number): T {
|
||||
return _.reduce(permissionSet, (acc, flag, key) => ({ ...acc, [key]: hasSet(position, flag) }), {}) as T;
|
||||
}
|
||||
const flagsPosition = 0;
|
||||
const ownerPosition = 1;
|
||||
const groupPosition = 2;
|
||||
const publicPosition = 3;
|
||||
return {
|
||||
owner: computePermissionObject(permissionValue, ownerPosition),
|
||||
group: computePermissionObject(permissionValue, groupPosition),
|
||||
public: computePermissionObject(permissionValue, publicPosition),
|
||||
flags: computePermissionObject(specialPermissionValue, flagsPosition),
|
||||
};
|
||||
}
|
||||
|
||||
function computePermissionsFromChmodSymbolicRepresentation(symbolicPermissions: string): Permissions {
|
||||
const formatRegex = /^[-dlbcsp]?([r-])([w-])([xs-])([r-])([w-])([xs-])([r-])([w-])([xt-])$/;
|
||||
if (!symbolicPermissions || !symbolicPermissions.match(formatRegex)) {
|
||||
throw new Error(`Invalid string permissions (must be in form 'rwxrwxrwx'): ${symbolicPermissions}`);
|
||||
}
|
||||
|
||||
const [_, rOwner, wOwner, xOwner, rGroup, wGroup, xGroup, rAll, wAll, xAll] = formatRegex.exec(symbolicPermissions) || [];
|
||||
const getOctal = (flag: string, flagLetter: string, flagValue: number) => flag === flagLetter ? flagValue : 0;
|
||||
const owner = getOctal(rOwner, 'r', 4)
|
||||
+ getOctal(wOwner, 'w', 2)
|
||||
+ getOctal(xOwner, 'x', 1) + getOctal(xOwner, 's', 1);
|
||||
const groups = getOctal(rGroup, 'r', 4)
|
||||
+ getOctal(wGroup, 'w', 2)
|
||||
+ getOctal(xGroup, 'x', 1) + getOctal(xGroup, 's', 1);
|
||||
const all = getOctal(rAll, 'r', 4)
|
||||
+ getOctal(wAll, 'w', 2)
|
||||
+ getOctal(xAll, 'x', 1) + getOctal(xAll, 't', 1);
|
||||
const flags = getOctal(xOwner, 's', 4)
|
||||
+ getOctal(xGroup, 's', 2)
|
||||
+ getOctal(xAll, 't', 1);
|
||||
const octalString = `${(flags > 0 ? flags : '')}${owner}${groups}${all}`;
|
||||
|
||||
return computePermissionsFromChmodOctalRepresentation(octalString);
|
||||
}
|
||||
|
||||
function computeUmaskRepresentation({ permissions }: { permissions: Permissions }): {
|
||||
octal: string
|
||||
symbolic: string
|
||||
} {
|
||||
const permissionValue = { read: 'r', write: 'w', execute: 'x' };
|
||||
const getGroupPermissionValue = (permission: GroupPermissions) =>
|
||||
_.reduce(permission, (acc, isPermSet, key) => acc + ((isPermSet ? _.get(permissionValue, key, '') : '')), '');
|
||||
|
||||
const symbolic = `umask u=${getGroupPermissionValue(permissions.owner)},g=${getGroupPermissionValue(permissions.group)},o=${getGroupPermissionValue(permissions.public)}`;
|
||||
const octal = (0o777 - Number.parseInt(
|
||||
computeChmodOctalRepresentation({
|
||||
permissions:
|
||||
{
|
||||
owner: permissions.owner,
|
||||
group: permissions.group,
|
||||
public: permissions.public,
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
},
|
||||
}), 8))
|
||||
.toString(8)
|
||||
.padStart(3, '0');
|
||||
|
||||
return {
|
||||
symbolic, octal,
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,17 @@
|
||||
export type Scope = 'read' | 'write' | 'execute';
|
||||
export type Group = 'owner' | 'group' | 'public';
|
||||
export type SpecialFlags = 'setuid' | 'setgid' | 'stickybit';
|
||||
|
||||
export type GroupPermissions = {
|
||||
[k in Scope]: boolean;
|
||||
};
|
||||
|
||||
export type SpecialPermissions = {
|
||||
[k in SpecialFlags]: boolean;
|
||||
};
|
||||
|
||||
export type Permissions = {
|
||||
[k in Group]: GroupPermissions;
|
||||
} & {
|
||||
flags: SpecialPermissions
|
||||
};
|
||||
@@ -2,9 +2,10 @@
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
|
||||
import InputCopyable from '../../components/InputCopyable.vue';
|
||||
import { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation } from './chmod-calculator.service';
|
||||
import { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation, computePermissionsFromChmodOctalRepresentation, computePermissionsFromChmodSymbolicRepresentation, computeUmaskRepresentation } from './chmod-calculator.service';
|
||||
|
||||
import type { Group, Scope } from './chmod-calculator.types';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
|
||||
@@ -19,14 +20,92 @@ const permissions = ref({
|
||||
owner: { read: false, write: false, execute: false },
|
||||
group: { read: false, write: false, execute: false },
|
||||
public: { read: false, write: false, execute: false },
|
||||
flags: { setuid: false, setgid: false, stickybit: false },
|
||||
});
|
||||
|
||||
const octalPermissionsInput = ref('000');
|
||||
const octalPermissionsInputValidation = useValidation({
|
||||
source: octalPermissionsInput,
|
||||
rules: [
|
||||
{
|
||||
message: 'Invalid octal permission string',
|
||||
validator: (value) => {
|
||||
try {
|
||||
computePermissionsFromChmodOctalRepresentation(value.trim());
|
||||
return true;
|
||||
}
|
||||
catch {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
watch(
|
||||
octalPermissionsInput,
|
||||
(newPermissions) => {
|
||||
if (!octalPermissionsInputValidation.isValid) {
|
||||
return;
|
||||
}
|
||||
permissions.value = computePermissionsFromChmodOctalRepresentation(newPermissions.trim());
|
||||
},
|
||||
);
|
||||
|
||||
const symbolicPermissionsInput = ref('---------');
|
||||
const symbolicPermissionsInputValidation = useValidation({
|
||||
source: symbolicPermissionsInput,
|
||||
rules: [
|
||||
{
|
||||
message: 'Invalid symbolic permission string',
|
||||
validator: (value) => {
|
||||
try {
|
||||
computePermissionsFromChmodSymbolicRepresentation(value.trim());
|
||||
return true;
|
||||
}
|
||||
catch {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
watch(
|
||||
symbolicPermissionsInput,
|
||||
(newPermissions) => {
|
||||
if (!symbolicPermissionsInputValidation.isValid) {
|
||||
return;
|
||||
}
|
||||
permissions.value = computePermissionsFromChmodSymbolicRepresentation(newPermissions.trim());
|
||||
},
|
||||
);
|
||||
|
||||
const octal = computed(() => computeChmodOctalRepresentation({ permissions: permissions.value }));
|
||||
const symbolic = computed(() => computeChmodSymbolicRepresentation({ permissions: permissions.value }));
|
||||
const umask = computed(() => computeUmaskRepresentation({ permissions: permissions.value }));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="octalPermissionsInput"
|
||||
placeholder="Put your octal permissions here..."
|
||||
label="Copy your octal permissions"
|
||||
:validation="octalPermissionsInputValidation"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<c-input-text
|
||||
v-model:value="symbolicPermissionsInput"
|
||||
placeholder="Put your symbolic permissions here..."
|
||||
label="Copy your symbolic permissions"
|
||||
:validation="symbolicPermissionsInputValidation"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-table :bordered="false" :bottom-bordered="false" single-column class="permission-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -52,6 +131,20 @@ const symbolic = computed(() => computeChmodSymbolicRepresentation({ permissions
|
||||
<n-checkbox v-model:checked="permissions[group][scope]" size="large" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="line-header">
|
||||
Flags
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<n-checkbox v-model:checked="permissions.flags.setuid" size="large" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<n-checkbox v-model:checked="permissions.flags.setgid" size="large" />
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<n-checkbox v-model:checked="permissions.flags.stickybit" size="large" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</n-table>
|
||||
|
||||
@@ -63,6 +156,11 @@ const symbolic = computed(() => computeChmodSymbolicRepresentation({ permissions
|
||||
</div>
|
||||
|
||||
<InputCopyable :value="`chmod ${octal} path`" readonly />
|
||||
|
||||
<c-card title="Umask">
|
||||
<InputCopyable :value="umask.octal" readonly />
|
||||
<InputCopyable :value="umask.symbolic" readonly />
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { FileInvoice } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
import { translate } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: translate('tools.chmod-calculator.title'),
|
||||
name: 'Chmod calculator',
|
||||
path: '/chmod-calculator',
|
||||
description: translate('tools.chmod-calculator.description'),
|
||||
description: 'Compute your chmod permissions and commands with this online chmod calculator.',
|
||||
keywords: [
|
||||
'chmod',
|
||||
'calculator',
|
||||
@@ -17,6 +16,7 @@ export const tool = defineTool({
|
||||
'recursive',
|
||||
'generator',
|
||||
'octal',
|
||||
'umask',
|
||||
],
|
||||
component: () => import('./chmod-calculator.vue'),
|
||||
icon: FileInvoice,
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { cidrInCidr } from './cidr-in-cidr.service';
|
||||
|
||||
describe('cidr-in-cidr', () => {
|
||||
describe('cidrInCidr', () => {
|
||||
it('should return correct inclusion', () => {
|
||||
expect(cidrInCidr({ baseRange: '192.168.0.0/16', ipOrRangeToTest: '192.168.0.1' }).isIncluded).toBe(true); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.1.0/24', ipOrRangeToTest: '192.168.0.10' }).isIncluded).toBe(false); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.1.*', ipOrRangeToTest: '192.168.0.10' }).isIncluded).toBe(false); // NOSONAR
|
||||
|
||||
expect(cidrInCidr({ baseRange: '192.168.0.0/24', ipOrRangeToTest: '192.168.0.0/28' }).isIncluded).toBe(true); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.0/24', ipOrRangeToTest: '192.168.1.0/28' }).isIncluded).toBe(false); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.*', ipOrRangeToTest: '192.168.1.0/28' }).isIncluded).toBe(false); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.0.*', ipOrRangeToTest: '192.168.0.0/28' }).isIncluded).toBe(true); // NOSONAR
|
||||
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.1-192.168.20.15', ipOrRangeToTest: '192.168.20.12' }).isIncluded).toBe(true); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.1-192.168.20.15', ipOrRangeToTest: '192.168.20.20' }).isIncluded).toBe(false); // NOSONAR
|
||||
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.1-192.168.20.15', ipOrRangeToTest: '192.168.20.9-192.168.20.12' }).isIncluded).toBe(true); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.1-192.168.20.15', ipOrRangeToTest: '192.168.20.9-192.168.20.20' }).isIncluded).toBe(false); // NOSONAR
|
||||
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.0-192.168.20.255', ipOrRangeToTest: '192.168.20.0/28' }).isIncluded).toBe(true); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.0-192.168.20.255', ipOrRangeToTest: '192.168.1.0/28' }).isIncluded).toBe(false); // NOSONAR
|
||||
expect(cidrInCidr({ baseRange: '192.168.0.0-192.168.1.255', ipOrRangeToTest: '192.168.1.0/28' }).isIncluded).toBe(true); // NOSONAR
|
||||
});
|
||||
it('should return correct subnet', () => {
|
||||
expect(cidrInCidr({ baseRange: '192.168.0.0/16', ipOrRangeToTest: '192.168.0.1' }).baseSubnets).to.deep.eq([ // NOSONAR
|
||||
{
|
||||
cidr: '192.168.0.0/16', // NOSONAR
|
||||
end: '192.168.255.255', // NOSONAR
|
||||
start: '192.168.0.0', // NOSONAR
|
||||
},
|
||||
]);
|
||||
expect(cidrInCidr({ baseRange: '192.168.20.1-192.168.20.3', ipOrRangeToTest: '192.168.1.0/28' }).baseSubnets).to.deep.eq([ // NOSONAR
|
||||
{
|
||||
cidr: '192.168.20.1/32', // NOSONAR
|
||||
end: '192.168.20.1', // NOSONAR
|
||||
start: '192.168.20.1', // NOSONAR
|
||||
},
|
||||
{
|
||||
cidr: '192.168.20.2/31', // NOSONAR
|
||||
end: '192.168.20.3', // NOSONAR
|
||||
start: '192.168.20.2', // NOSONAR
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
import { getMatch } from 'ip-matching';
|
||||
|
||||
export function cidrInCidr(
|
||||
{ baseRange, ipOrRangeToTest }:
|
||||
{
|
||||
baseRange: string
|
||||
ipOrRangeToTest: string
|
||||
}) {
|
||||
const baseMatchMasks = getMatch(baseRange)?.convertToMasks() || [];
|
||||
const ipOrRangeToTestMatchMasks = getMatch(ipOrRangeToTest)?.convertToMasks() || [];
|
||||
|
||||
const baseSubnets = baseMatchMasks.map((mask) => {
|
||||
const subnet = mask.convertToSubnet();
|
||||
if (!subnet) {
|
||||
return { cidr: '', start: '', end: '' };
|
||||
}
|
||||
return {
|
||||
cidr: subnet.toString(),
|
||||
start: subnet.getFirst().toString(),
|
||||
end: subnet.getLast().toString(),
|
||||
};
|
||||
}).filter(subnet => subnet.cidr !== '');
|
||||
|
||||
return {
|
||||
baseSubnets,
|
||||
isIncluded: baseMatchMasks.some(baseMask => ipOrRangeToTestMatchMasks.every(ipOrRangeMask => ipOrRangeMask.isSubsetOf(baseMask))),
|
||||
};
|
||||
}
|
||||
Loaded 100 of 711 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user