mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 13:19:54 +01:00
Compare commits
1043 Commits
fix/mkdocs
...
kev/share-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63c54010eb | ||
|
|
cec868459a | ||
|
|
6c106300d4 | ||
|
|
69a59f0935 | ||
|
|
fa7575ed00 | ||
|
|
b2174549c7 | ||
|
|
19f16274ab | ||
|
|
7f88ae5494 | ||
|
|
c820b5caa4 | ||
|
|
b1638e1ffc | ||
|
|
f2e60f52d2 | ||
|
|
d845343e97 | ||
|
|
ee2edc92e7 | ||
|
|
332216f5f5 | ||
|
|
4d4cd7d130 | ||
|
|
b3cc51ce63 | ||
|
|
05645d93ef | ||
|
|
a2d09efca4 | ||
|
|
1212f9a9e9 | ||
|
|
75f7986e36 | ||
|
|
2447a6fc8d | ||
|
|
38a4a3e7b6 | ||
|
|
28240d549d | ||
|
|
5da46a1678 | ||
|
|
e592a37799 | ||
|
|
15d00b61dd | ||
|
|
5d0b6f9fad | ||
|
|
2a40ffd164 | ||
|
|
8c687de3c6 | ||
|
|
27415b4e16 | ||
|
|
ce0b39765e | ||
|
|
fafc4af237 | ||
|
|
76a283ed77 | ||
|
|
99500bca8f | ||
|
|
a982fc326f | ||
|
|
b16309d01a | ||
|
|
1bfc3d450f | ||
|
|
37b63d4ea9 | ||
|
|
e7315e7d35 | ||
|
|
718dffa672 | ||
|
|
c3dd9865e7 | ||
|
|
1702ec5644 | ||
|
|
dfddf044cf | ||
|
|
24a632056a | ||
|
|
dc7f4a6cf3 | ||
|
|
cd100f37fe | ||
|
|
984e8bbba0 | ||
|
|
fcc22cc212 | ||
|
|
4101acc2e3 | ||
|
|
f30bdd54b1 | ||
|
|
62bb8ac89a | ||
|
|
33dfcb1c6e | ||
|
|
5969815ed1 | ||
|
|
2b2125c702 | ||
|
|
85a4557bb0 | ||
|
|
0d9e4a1aa2 | ||
|
|
4a01181110 | ||
|
|
89dfc480f3 | ||
|
|
c178fc2957 | ||
|
|
9d8c62caaf | ||
|
|
279f014c42 | ||
|
|
826e9c7114 | ||
|
|
384c8649b4 | ||
|
|
ecc8bc3866 | ||
|
|
bb4d723f18 | ||
|
|
e250510ab1 | ||
|
|
dc630f927f | ||
|
|
e47cb13b89 | ||
|
|
838ae315e3 | ||
|
|
58afa86a2b | ||
|
|
5b90ece12f | ||
|
|
afb2072b97 | ||
|
|
8e0ca56b85 | ||
|
|
8e4cf38840 | ||
|
|
cb872d3638 | ||
|
|
781be26833 | ||
|
|
0ad5f3493d | ||
|
|
15bb3acb31 | ||
|
|
a43ddf3f9f | ||
|
|
8417bfebb0 | ||
|
|
28e8ea2da9 | ||
|
|
393264b4a1 | ||
|
|
9306a28c87 | ||
|
|
77fef38009 | ||
|
|
c14ea42978 | ||
|
|
341cd62b13 | ||
|
|
9e6cfe7c1e | ||
|
|
9695dd404b | ||
|
|
5e6be01251 | ||
|
|
f367a1c776 | ||
|
|
bce987c67a | ||
|
|
e7a9f9c566 | ||
|
|
33150e3a98 | ||
|
|
e1aead098e | ||
|
|
9f9a276a51 | ||
|
|
873df6da6c | ||
|
|
2e353afb98 | ||
|
|
d497688d9a | ||
|
|
2cf3a04482 | ||
|
|
e50fd6f540 | ||
|
|
5096163ae3 | ||
|
|
0d6640ae14 | ||
|
|
52ac93e99c | ||
|
|
674b0a8215 | ||
|
|
ec56b297dc | ||
|
|
a477cc22e6 | ||
|
|
119278b5f5 | ||
|
|
5414fbeacb | ||
|
|
a4b01bba9b | ||
|
|
bab536751a | ||
|
|
7657e17373 | ||
|
|
30f530abdb | ||
|
|
1d373bc7d5 | ||
|
|
9d3c5d04b9 | ||
|
|
ba91fbbe6b | ||
|
|
f6898779bb | ||
|
|
dbb90bdd2b | ||
|
|
f442c56ed6 | ||
|
|
e971a9cb03 | ||
|
|
b450a4faa0 | ||
|
|
9a2440942b | ||
|
|
c3151f9afa | ||
|
|
f277612444 | ||
|
|
1b92ad2f53 | ||
|
|
f96abe0e45 | ||
|
|
142a276cc4 | ||
|
|
a52b0a45fe | ||
|
|
6df40ec80a | ||
|
|
713340a9ba | ||
|
|
ee8b41c81b | ||
|
|
dd477258a9 | ||
|
|
7c30e2b4f6 | ||
|
|
37a3c00214 | ||
|
|
d30cdadb2d | ||
|
|
58f0d01944 | ||
|
|
d4791944b0 | ||
|
|
92a052674f | ||
|
|
d49ce7c289 | ||
|
|
5f38d52f20 | ||
|
|
6286745684 | ||
|
|
4f574f8aa4 | ||
|
|
a3e27248ad | ||
|
|
e48569245d | ||
|
|
473f7a83e6 | ||
|
|
1c622fa848 | ||
|
|
409e650506 | ||
|
|
d461f5474e | ||
|
|
36e731cc2c | ||
|
|
b77fbcb7ad | ||
|
|
7b7dc346ca | ||
|
|
b4f8a02ba6 | ||
|
|
9d6a5d1bb5 | ||
|
|
fa747c5c4b | ||
|
|
bc93f40cdb | ||
|
|
a9975798d7 | ||
|
|
4ea4404aba | ||
|
|
361848b518 | ||
|
|
8c46103f63 | ||
|
|
edcdecb720 | ||
|
|
e1ef02058d | ||
|
|
d9746df16b | ||
|
|
b4c20d9683 | ||
|
|
59955b7414 | ||
|
|
95b1c82ccb | ||
|
|
7cfebbabeb | ||
|
|
f412874c73 | ||
|
|
873c4c6636 | ||
|
|
efcd54be50 | ||
|
|
ae0bb78b1c | ||
|
|
29fa335a27 | ||
|
|
3a84a78cd1 | ||
|
|
df6bb7e6bf | ||
|
|
dfcaebc613 | ||
|
|
1ece35536b | ||
|
|
1a90548622 | ||
|
|
cc7e5bdb80 | ||
|
|
5c73b21ff7 | ||
|
|
e9078107ae | ||
|
|
6c24b18bc1 | ||
|
|
be7ff73142 | ||
|
|
63ac45d369 | ||
|
|
f164a4b786 | ||
|
|
806d601115 | ||
|
|
6b3cf49398 | ||
|
|
b8851565eb | ||
|
|
888d0d1084 | ||
|
|
0a25d4db0d | ||
|
|
4a72f2c6a7 | ||
|
|
446bdd6a5e | ||
|
|
cb26fac2ea | ||
|
|
3a45440c74 | ||
|
|
e115d6e275 | ||
|
|
fc614ccf83 | ||
|
|
17c9db7698 | ||
|
|
d483b6e840 | ||
|
|
032819e812 | ||
|
|
9d7d415756 | ||
|
|
e9d432b4bf | ||
|
|
be35584f9a | ||
|
|
80be4cc6b8 | ||
|
|
c74ba44b91 | ||
|
|
28a79baa01 | ||
|
|
5279601105 | ||
|
|
c2639951a5 | ||
|
|
6bfab1387d | ||
|
|
4212d208fc | ||
|
|
9e5bded4cf | ||
|
|
ce0763f03d | ||
|
|
e860b7aa32 | ||
|
|
0be9310450 | ||
|
|
d870a260e1 | ||
|
|
2de545be1c | ||
|
|
bf04e5a15b | ||
|
|
46d2d7e160 | ||
|
|
1775b22c7a | ||
|
|
ae022b6389 | ||
|
|
d4155102c5 | ||
|
|
3b1a25230f | ||
|
|
d8639793e0 | ||
|
|
06fec88214 | ||
|
|
da93928976 | ||
|
|
2314443d19 | ||
|
|
4b34047324 | ||
|
|
bc1d4de13d | ||
|
|
6bae4c8075 | ||
|
|
84a89fd0ba | ||
|
|
1447fa6f14 | ||
|
|
bc4937f9d2 | ||
|
|
43a7b828d9 | ||
|
|
d611591e1a | ||
|
|
f7a565ec73 | ||
|
|
6b35e909ab | ||
|
|
53b9ce0f3d | ||
|
|
5e1cd7d6ac | ||
|
|
acb98061ce | ||
|
|
979ef6287f | ||
|
|
58a883797d | ||
|
|
f718e87673 | ||
|
|
4c6a742af7 | ||
|
|
848dc51a7a | ||
|
|
44541b66c4 | ||
|
|
3694018441 | ||
|
|
3874e54d76 | ||
|
|
10de141c00 | ||
|
|
806ba320a8 | ||
|
|
09ef24d27d | ||
|
|
236f3cada7 | ||
|
|
c2afef4832 | ||
|
|
b9fa7d70bb | ||
|
|
9ac31f2667 | ||
|
|
639d1befef | ||
|
|
b99c8d5cc1 | ||
|
|
0770398010 | ||
|
|
c3d24451b7 | ||
|
|
4db1a3bdec | ||
|
|
2a0410f597 | ||
|
|
7e79d907be | ||
|
|
c0ea441c59 | ||
|
|
290d134d88 | ||
|
|
517bfd2c9a | ||
|
|
31990a9992 | ||
|
|
151a2c284d | ||
|
|
614a8f177c | ||
|
|
8b5e53e579 | ||
|
|
1ad8b1bf85 | ||
|
|
a393584a2a | ||
|
|
804fc72ed8 | ||
|
|
3f8f05368c | ||
|
|
5a56ba2fd5 | ||
|
|
de7c1329f8 | ||
|
|
6fc5aa0090 | ||
|
|
2eaeccda05 | ||
|
|
56f970ab08 | ||
|
|
d1cb9e4a3f | ||
|
|
992adcab65 | ||
|
|
d3b3a83477 | ||
|
|
98ad371d01 | ||
|
|
3cdae245e1 | ||
|
|
887c78d893 | ||
|
|
e208497d71 | ||
|
|
dd744b4e0d | ||
|
|
647cbc7e7a | ||
|
|
cc93102859 | ||
|
|
5b673e753b | ||
|
|
bd2eb6fdbb | ||
|
|
c25f783980 | ||
|
|
9b37708f0c | ||
|
|
7386bb35e5 | ||
|
|
9274522877 | ||
|
|
1b444686af | ||
|
|
b3dfdacdc3 | ||
|
|
159fab41ce | ||
|
|
093f48f76a | ||
|
|
6998a3593e | ||
|
|
c3250cfd72 | ||
|
|
e52eb9bcb0 | ||
|
|
5ac2892e34 | ||
|
|
a15aab395a | ||
|
|
f991276152 | ||
|
|
1f71ceb611 | ||
|
|
92e14159b9 | ||
|
|
b8419604e5 | ||
|
|
096fd82e64 | ||
|
|
cbaae52a7e | ||
|
|
5905299331 | ||
|
|
2df0763141 | ||
|
|
fb7453f7b0 | ||
|
|
974d20b0ba | ||
|
|
c2f6d9aa07 | ||
|
|
6194386464 | ||
|
|
329ecd6894 | ||
|
|
150f470aee | ||
|
|
83b843f047 | ||
|
|
24043611c3 | ||
|
|
2c99ba64bc | ||
|
|
ffe30bed75 | ||
|
|
b6088f488f | ||
|
|
e04165a184 | ||
|
|
d7aa95ce8e | ||
|
|
28214ec9fb | ||
|
|
28952a5253 | ||
|
|
d66505e5bc | ||
|
|
c4354032b5 | ||
|
|
d23550d3ef | ||
|
|
894ec1e3c1 | ||
|
|
bdb03f8d51 | ||
|
|
61ea27c8f4 | ||
|
|
ac45617d8f | ||
|
|
35853ff988 | ||
|
|
80009f99e8 | ||
|
|
0b1d001c20 | ||
|
|
cb63e88cdc | ||
|
|
a5c7f4221b | ||
|
|
f61010a65e | ||
|
|
b99f5b2cbe | ||
|
|
9919d0cbfa | ||
|
|
fe8099d8d1 | ||
|
|
0da336c8e1 | ||
|
|
37f5d19739 | ||
|
|
2ac0d84cee | ||
|
|
e639961b68 | ||
|
|
adf29b4e6e | ||
|
|
b00cd032a3 | ||
|
|
60e8f46777 | ||
|
|
ef2860770f | ||
|
|
aa562e9c26 | ||
|
|
866ccc1696 | ||
|
|
dbe241dee7 | ||
|
|
bd32a08e11 | ||
|
|
8416dab870 | ||
|
|
6fda669307 | ||
|
|
c21a9223f5 | ||
|
|
4e4e65b462 | ||
|
|
5e07231d78 | ||
|
|
d71d1ce8b4 | ||
|
|
892e84deaa | ||
|
|
7a73af0299 | ||
|
|
65dae511e5 | ||
|
|
55c70b404c | ||
|
|
8117586548 | ||
|
|
3ce9c7ba3d | ||
|
|
ab162efab8 | ||
|
|
babfc3cfb9 | ||
|
|
3d780d7d02 | ||
|
|
5b81aff8be | ||
|
|
86b14a5763 | ||
|
|
14a2794d15 | ||
|
|
eef68aca0f | ||
|
|
f6f7445528 | ||
|
|
f7c0184a6b | ||
|
|
65bc599a16 | ||
|
|
b445bef74c | ||
|
|
93d7ba032d | ||
|
|
334e2c3949 | ||
|
|
a11797fe6e | ||
|
|
3cf0ec5740 | ||
|
|
40f578f43f | ||
|
|
428abb4591 | ||
|
|
4954fa89b5 | ||
|
|
10f7837a7f | ||
|
|
fca310cc31 | ||
|
|
cf58b511df | ||
|
|
9da1f52a71 | ||
|
|
5c8e674ddb | ||
|
|
f027b25bc2 | ||
|
|
cfe71a3426 | ||
|
|
70afb636ca | ||
|
|
818efe7fb0 | ||
|
|
3c2263db86 | ||
|
|
7c30bc9c72 | ||
|
|
ec8d719d41 | ||
|
|
5f884c4440 | ||
|
|
e6c806d462 | ||
|
|
4afceeca79 | ||
|
|
7990c60ce7 | ||
|
|
74c248bce2 | ||
|
|
2df646f80c | ||
|
|
768260782a | ||
|
|
4eff105af5 | ||
|
|
68ef6ea142 | ||
|
|
772d4ac5a1 | ||
|
|
b3e1a79d40 | ||
|
|
d7afa8526d | ||
|
|
b4a2a6c12b | ||
|
|
32c15f5e03 | ||
|
|
b5a491820c | ||
|
|
8a477c87e0 | ||
|
|
8bcae8cdb8 | ||
|
|
ea87161a91 | ||
|
|
f2bb6cb848 | ||
|
|
fecb677552 | ||
|
|
3ba9b56833 | ||
|
|
a329e7d72a | ||
|
|
2568f6bb53 | ||
|
|
23936596fa | ||
|
|
398db56fe7 | ||
|
|
423ef14ca6 | ||
|
|
9921d3e0a7 | ||
|
|
ac22fd8d60 | ||
|
|
ff065964e9 | ||
|
|
951dda50ac | ||
|
|
01bd2f1815 | ||
|
|
570f8fd155 | ||
|
|
5d348e3ad6 | ||
|
|
9573346d55 | ||
|
|
e4570a1bb0 | ||
|
|
b884aba244 | ||
|
|
9c73908560 | ||
|
|
b399d292a9 | ||
|
|
a557d9770f | ||
|
|
a11ebfeb42 | ||
|
|
4695c3726d | ||
|
|
324f79ceb9 | ||
|
|
fc5e459895 | ||
|
|
bdaba67859 | ||
|
|
2b01e2fdaf | ||
|
|
9967da6ea1 | ||
|
|
a56a00ba2f | ||
|
|
82df26031f | ||
|
|
b4af8e7339 | ||
|
|
e6180f427b | ||
|
|
9a95ec170d | ||
|
|
7be0507db5 | ||
|
|
1d324ab3b0 | ||
|
|
9e00ed7e14 | ||
|
|
02a6652b44 | ||
|
|
e19f7b286a | ||
|
|
50301a97f3 | ||
|
|
408e31079c | ||
|
|
bf81e159ca | ||
|
|
b1f89296ff | ||
|
|
1948302a64 | ||
|
|
187585b32f | ||
|
|
d351fd506a | ||
|
|
1cf29c985e | ||
|
|
04374540ad | ||
|
|
ce8f3a4f8f | ||
|
|
acb21b992d | ||
|
|
15f344fe4a | ||
|
|
120324c3f0 | ||
|
|
59ce8b912d | ||
|
|
619888847b | ||
|
|
06b782e91d | ||
|
|
1d7e0a193a | ||
|
|
2d815852e4 | ||
|
|
735a7104f1 | ||
|
|
e3e4772aab | ||
|
|
8bb65b94d0 | ||
|
|
b9edae4fc9 | ||
|
|
27aae18345 | ||
|
|
47db63d909 | ||
|
|
8ebeead32c | ||
|
|
09d43e710f | ||
|
|
7240f64a49 | ||
|
|
ab868d76db | ||
|
|
acdaf6a636 | ||
|
|
6dccef1689 | ||
|
|
f7ec726b15 | ||
|
|
781570f950 | ||
|
|
7774d41457 | ||
|
|
27e6d1b00b | ||
|
|
73ea0cce32 | ||
|
|
a1741b8634 | ||
|
|
a0f1a63fb6 | ||
|
|
7c13373f16 | ||
|
|
239b7b810d | ||
|
|
29c8bcaf6e | ||
|
|
2b3ae94f8d | ||
|
|
e753924c4b | ||
|
|
8080d3b8a7 | ||
|
|
1f4dd04ef0 | ||
|
|
348432bd5b | ||
|
|
d2962b060e | ||
|
|
fae66e555e | ||
|
|
aeb9bfc1fd | ||
|
|
5a15024e59 | ||
|
|
23c2acaab7 | ||
|
|
4cc55b02ab | ||
|
|
71ce9c459e | ||
|
|
97b5ea0798 | ||
|
|
5fd0f79d44 | ||
|
|
2a090c7014 | ||
|
|
126030f17e | ||
|
|
f22fd1d454 | ||
|
|
8d4c656a6f | ||
|
|
3c5a053a2c | ||
|
|
664b7e45e7 | ||
|
|
5c618abc79 | ||
|
|
220cf8aedd | ||
|
|
78f16ddc12 | ||
|
|
0048e95e0c | ||
|
|
13e9fcbfba | ||
|
|
5249911ddb | ||
|
|
59fe1299b2 | ||
|
|
1c9f1ba82c | ||
|
|
311f4aded8 | ||
|
|
ed8df51216 | ||
|
|
5e4d403556 | ||
|
|
f3a9c718ad | ||
|
|
f3733eb341 | ||
|
|
3b06845a71 | ||
|
|
94e20c44e5 | ||
|
|
1638fd8590 | ||
|
|
effe0a4f51 | ||
|
|
bb3ac277f4 | ||
|
|
68aacfea6f | ||
|
|
e0056a457e | ||
|
|
4d6c2fd8cb | ||
|
|
f63b8cef2d | ||
|
|
f19da292c1 | ||
|
|
36003b76e9 | ||
|
|
1c627dec05 | ||
|
|
2dcb67b099 | ||
|
|
de8a090410 | ||
|
|
fc09a41ba0 | ||
|
|
12f461d0ea | ||
|
|
1256338ab5 | ||
|
|
43c761328d | ||
|
|
6f565afd44 | ||
|
|
5c27e96960 | ||
|
|
c0337befa7 | ||
|
|
3bda10caf0 | ||
|
|
a25e376f85 | ||
|
|
1b238a98de | ||
|
|
38659e501e | ||
|
|
113af940c1 | ||
|
|
089ca7fd29 | ||
|
|
529523dd4e | ||
|
|
89417f15dc | ||
|
|
51692aabd5 | ||
|
|
9cde4c26d9 | ||
|
|
c7bce91b67 | ||
|
|
91b6910a9c | ||
|
|
9fb37968f8 | ||
|
|
6cfc6509f6 | ||
|
|
fd054693d9 | ||
|
|
8b65de2442 | ||
|
|
25905ebff7 | ||
|
|
e88b59009a | ||
|
|
3aee1c8546 | ||
|
|
2dd554a8be | ||
|
|
f4fae04327 | ||
|
|
21032d1bb8 | ||
|
|
6745b887fb | ||
|
|
d0d166e426 | ||
|
|
754b95876e | ||
|
|
0bb10cf3ee | ||
|
|
d276cdf519 | ||
|
|
2768b76278 | ||
|
|
d244803501 | ||
|
|
158ca2acf2 | ||
|
|
3ef44febd8 | ||
|
|
5be41ee669 | ||
|
|
b887d4a7d2 | ||
|
|
be1de86a42 | ||
|
|
345d098e5f | ||
|
|
fae5421516 | ||
|
|
934f144bf9 | ||
|
|
5affb837a6 | ||
|
|
188319d2d9 | ||
|
|
fe762577b1 | ||
|
|
f30da3d13b | ||
|
|
053a84483c | ||
|
|
34338a795f | ||
|
|
012aceb7f2 | ||
|
|
a92604e92f | ||
|
|
9a9edf16c4 | ||
|
|
daba190e74 | ||
|
|
8877eded9b | ||
|
|
0b05f597dc | ||
|
|
b26803b627 | ||
|
|
17e87278eb | ||
|
|
79718c7e6e | ||
|
|
0917c25bce | ||
|
|
45c3f6d44a | ||
|
|
90337016e7 | ||
|
|
c0c1c8a9c2 | ||
|
|
42a082f11b | ||
|
|
891e6b9751 | ||
|
|
2be9d71659 | ||
|
|
3f562332c7 | ||
|
|
edd7e43b41 | ||
|
|
6ea1e31350 | ||
|
|
770648619e | ||
|
|
08c3e97a46 | ||
|
|
9a08b864ee | ||
|
|
039d6e6a4e | ||
|
|
36692a5ad7 | ||
|
|
67c7d7575d | ||
|
|
bb51eed0bc | ||
|
|
adce041b02 | ||
|
|
183d11ff72 | ||
|
|
a9f5b44fac | ||
|
|
c4560c2bc8 | ||
|
|
ba740eff9b | ||
|
|
9dcf46cbb3 | ||
|
|
7782b11186 | ||
|
|
e1b8f973d5 | ||
|
|
a51e475095 | ||
|
|
13685d2688 | ||
|
|
8bef36c6c7 | ||
|
|
207807e0c2 | ||
|
|
b5c82af464 | ||
|
|
3fa95d4fee | ||
|
|
ee43b21b0c | ||
|
|
29e091461f | ||
|
|
5b6a2b1f5d | ||
|
|
d657303f2f | ||
|
|
a4d541ae1c | ||
|
|
b38631b04b | ||
|
|
fe0f8ad83d | ||
|
|
46950cbceb | ||
|
|
9893de4642 | ||
|
|
b9055c6810 | ||
|
|
f068b335f5 | ||
|
|
7c750811cc | ||
|
|
2edce23a29 | ||
|
|
3efe628eb7 | ||
|
|
fdbb88ccd1 | ||
|
|
c44395887b | ||
|
|
1ae81abf0a | ||
|
|
74b89098c5 | ||
|
|
ae46798d1d | ||
|
|
b502e999de | ||
|
|
57004ab848 | ||
|
|
fbd47025d6 | ||
|
|
f87d270caa | ||
|
|
2ccaf5f97c | ||
|
|
641c6f4595 | ||
|
|
eb1039d9f7 | ||
|
|
349d946e6f | ||
|
|
170e271bb4 | ||
|
|
adca755598 | ||
|
|
f58cbc64bb | ||
|
|
8d5e8c7ea8 | ||
|
|
411d61d251 | ||
|
|
e7556f7dfa | ||
|
|
3e0f07aa48 | ||
|
|
e5a90662eb | ||
|
|
9886376738 | ||
|
|
73603f6593 | ||
|
|
88bc6739ca | ||
|
|
a4e8e62452 | ||
|
|
78e45d095b | ||
|
|
834c67aeff | ||
|
|
23b798e392 | ||
|
|
bd374bf617 | ||
|
|
87d8bcdde5 | ||
|
|
a840d91379 | ||
|
|
0fcff6639f | ||
|
|
f607c9793d | ||
|
|
06254442c9 | ||
|
|
c5725a5850 | ||
|
|
dbad13c4e2 | ||
|
|
a274da80b7 | ||
|
|
66c05619df | ||
|
|
67c99dea2d | ||
|
|
c77b7f8c74 | ||
|
|
cc51fbe77e | ||
|
|
2e510f9dbb | ||
|
|
e12df98d12 | ||
|
|
d8402755ee | ||
|
|
614b704702 | ||
|
|
fb6e87b0a5 | ||
|
|
80baa31221 | ||
|
|
e2f1f56e06 | ||
|
|
8ed6aeb278 | ||
|
|
7123dc305f | ||
|
|
43cb632528 | ||
|
|
74c5b12a33 | ||
|
|
acebed10b0 | ||
|
|
21f5c36c05 | ||
|
|
35c297e0d1 | ||
|
|
e672890bd4 | ||
|
|
a3f2dc5e76 | ||
|
|
a19db4fd2d | ||
|
|
982d136151 | ||
|
|
377de59df9 | ||
|
|
b394fb1e86 | ||
|
|
a5171ce093 | ||
|
|
c5dbaccea8 | ||
|
|
0c9d1e91bb | ||
|
|
a1ee0cb5d0 | ||
|
|
a2d41247fe | ||
|
|
97bb38e4f3 | ||
|
|
8e8ae26828 | ||
|
|
e241e91a84 | ||
|
|
ea277cf972 | ||
|
|
046e7ac4c3 | ||
|
|
beea8d9edf | ||
|
|
1c928bb139 | ||
|
|
987e6ad4c6 | ||
|
|
b7732e53c6 | ||
|
|
bfb34cf236 | ||
|
|
50b9bebf98 | ||
|
|
e21624ed52 | ||
|
|
86a8085239 | ||
|
|
19c756a971 | ||
|
|
b76c6ed444 | ||
|
|
bd07342689 | ||
|
|
be1d7309fd | ||
|
|
9471fad7bb | ||
|
|
642bf60f45 | ||
|
|
7245e32876 | ||
|
|
dcc1a2dc51 | ||
|
|
2b3874d8e9 | ||
|
|
29f9c311d2 | ||
|
|
adae78e747 | ||
|
|
5b5f3233d8 | ||
|
|
e6889798ff | ||
|
|
a5ae6f7013 | ||
|
|
0ac2df8102 | ||
|
|
ec5e7607f0 | ||
|
|
7588026640 | ||
|
|
ad366ee928 | ||
|
|
1fc38e941e | ||
|
|
b80c4ed921 | ||
|
|
1de9634c44 | ||
|
|
d8386bfbe8 | ||
|
|
3a02ad7836 | ||
|
|
d36716bdb6 | ||
|
|
970f4b028d | ||
|
|
6077da0df8 | ||
|
|
e77e0c54f0 | ||
|
|
4040f8ba89 | ||
|
|
3ac0dfb2ad | ||
|
|
b8e4947adb | ||
|
|
d1f2dfca05 | ||
|
|
c6a9b48aa0 | ||
|
|
fd690592ba | ||
|
|
8a66ee7565 | ||
|
|
f42d375cc7 | ||
|
|
68beb0d419 | ||
|
|
50d2814044 | ||
|
|
8ddd27c258 | ||
|
|
ac78eada0a | ||
|
|
6b0395dec8 | ||
|
|
5bb1432450 | ||
|
|
dc854cbd10 | ||
|
|
3128f2dace | ||
|
|
6ba494999c | ||
|
|
050ff5d8cd | ||
|
|
9c8b0611ea | ||
|
|
777d5ab3b7 | ||
|
|
39fecb3ffe | ||
|
|
4cd0702cbb | ||
|
|
998688573d | ||
|
|
a6833f5a6f | ||
|
|
a162d697da | ||
|
|
f281e9691d | ||
|
|
cbc2ee3cd1 | ||
|
|
4f469d0d3c | ||
|
|
e77a49ace6 | ||
|
|
8bde2092c6 | ||
|
|
7edfaad04e | ||
|
|
ae5576f2a3 | ||
|
|
b934b2b6ca | ||
|
|
87648f340b | ||
|
|
679abc6e3e | ||
|
|
dd930261bf | ||
|
|
92a0faf475 | ||
|
|
3ce6b43018 | ||
|
|
220858926f | ||
|
|
d908a1b0d2 | ||
|
|
b361cc0630 | ||
|
|
cd3663e041 | ||
|
|
c53e927a55 | ||
|
|
7bbb15a535 | ||
|
|
0dddcbcfa1 | ||
|
|
3175b75192 | ||
|
|
6703b78457 | ||
|
|
7a61bbc297 | ||
|
|
dd6003172d | ||
|
|
338f3d536f | ||
|
|
27804384db | ||
|
|
7e5069c7d1 | ||
|
|
0a813f9b53 | ||
|
|
c79c21e965 | ||
|
|
0c0bcb87f9 | ||
|
|
f537852469 | ||
|
|
ff422d112b | ||
|
|
bf92280ed9 | ||
|
|
d1e57e85b6 | ||
|
|
f300b6c8a2 | ||
|
|
4c0addd929 | ||
|
|
a08bc79ae4 | ||
|
|
8ad00084e1 | ||
|
|
0d275b3259 | ||
|
|
ede4b99bcd | ||
|
|
e99748e45f | ||
|
|
114fdd6f91 | ||
|
|
245675d409 | ||
|
|
e156f0a2e8 | ||
|
|
519d76d809 | ||
|
|
b4fa70d1d5 | ||
|
|
3825fb24f4 | ||
|
|
79e51b543a | ||
|
|
54fe9dde70 | ||
|
|
d224ffd6d3 | ||
|
|
1e1a458add | ||
|
|
0844f60343 | ||
|
|
c8f9d6e6df | ||
|
|
95a392ccfa | ||
|
|
2972a23f19 | ||
|
|
f55a39eab6 | ||
|
|
8611328a03 | ||
|
|
08dc05c504 | ||
|
|
174f796b56 | ||
|
|
85949a0464 | ||
|
|
1b711e2c08 | ||
|
|
60ea415361 | ||
|
|
01613da38f | ||
|
|
d6e6e78acc | ||
|
|
0e5e439f69 | ||
|
|
fc78f68fa7 | ||
|
|
2f6d81ce2c | ||
|
|
08a600167a | ||
|
|
9779e706c5 | ||
|
|
b8e9d853e5 | ||
|
|
4041746240 | ||
|
|
c96a65b21d | ||
|
|
d67018b6d7 | ||
|
|
f7e47b5120 | ||
|
|
5bc28b63a6 | ||
|
|
62452b61b1 | ||
|
|
cb84e4c7b6 | ||
|
|
60ef816f0c | ||
|
|
d367cf9972 | ||
|
|
05973672e4 | ||
|
|
c4398e92e1 | ||
|
|
68b8ba691f | ||
|
|
d52cf455a9 | ||
|
|
fee822c689 | ||
|
|
228a1ad0da | ||
|
|
1ce42d1301 | ||
|
|
3d2a4d8c38 | ||
|
|
803164791f | ||
|
|
2b452a18df | ||
|
|
efcdac75e4 | ||
|
|
c30c9a7360 | ||
|
|
ce0da3fb80 | ||
|
|
728c20c184 | ||
|
|
e10475679b | ||
|
|
d9af0461ef | ||
|
|
2e4791d377 | ||
|
|
d1244e02db | ||
|
|
867d1841e9 | ||
|
|
3232900bdc | ||
|
|
077de9f539 | ||
|
|
b37f4bf0df | ||
|
|
64dd83e8fb | ||
|
|
5a615970c2 | ||
|
|
2a5cb85199 | ||
|
|
5f1f27a4f9 | ||
|
|
0d9f398de2 | ||
|
|
b0e84952c8 | ||
|
|
3df8cf3c13 | ||
|
|
975e5a89af | ||
|
|
7102615eaa | ||
|
|
68fa273c75 | ||
|
|
f8ecf0ec0b | ||
|
|
888aba0b04 | ||
|
|
2216136de3 | ||
|
|
4163c5534a | ||
|
|
3ddcaddd79 | ||
|
|
b029e0d790 | ||
|
|
6f2d51f3ff | ||
|
|
ecf8c4ffbe | ||
|
|
4b769da90b | ||
|
|
4247c8fdc6 | ||
|
|
7777cd5238 | ||
|
|
cb959e93f2 | ||
|
|
30979b460b | ||
|
|
901d1ecf4a | ||
|
|
c84a38f2b2 | ||
|
|
ed461bc22f | ||
|
|
28368e6e12 | ||
|
|
8247855330 | ||
|
|
7cd6237f16 | ||
|
|
ca9bdc337a | ||
|
|
e6d2394d54 | ||
|
|
3d43665603 | ||
|
|
f135ffbe49 | ||
|
|
3d99bc7166 | ||
|
|
3789edf53a | ||
|
|
4d57134aa2 | ||
|
|
e3d9a120cb | ||
|
|
043791fc91 | ||
|
|
33a37be378 | ||
|
|
32ce6e7a08 | ||
|
|
3046cfd6ee | ||
|
|
9758632bf0 | ||
|
|
0c7f926421 | ||
|
|
ab6fc9303b | ||
|
|
4e37a5f08e | ||
|
|
426b4dde54 | ||
|
|
d3cc79a28c | ||
|
|
b0a826aaca | ||
|
|
9c0e678e50 | ||
|
|
bbb2571215 | ||
|
|
d2a0d75906 | ||
|
|
e16dc941d2 | ||
|
|
fa61e7bacb | ||
|
|
439a182103 | ||
|
|
7eb478cc6a | ||
|
|
4341c1fbc8 | ||
|
|
e8039715e7 | ||
|
|
3cacfdfd6f | ||
|
|
7b2cd20cff | ||
|
|
79a5fab39e | ||
|
|
b03d687f75 | ||
|
|
1e654fbcd6 | ||
|
|
49c4776dbd | ||
|
|
41c4bc69cc | ||
|
|
6eea921820 | ||
|
|
3d97b317f2 | ||
|
|
7ba24968d8 | ||
|
|
57046d714b | ||
|
|
0526445d3c | ||
|
|
b62d1a303c | ||
|
|
e25c5cc6c7 | ||
|
|
e761cd7c27 | ||
|
|
c2504bb6db | ||
|
|
cd67299b1d | ||
|
|
ff38008207 | ||
|
|
76e903a782 | ||
|
|
9d877ec97a | ||
|
|
b4cead757d | ||
|
|
f076581bed | ||
|
|
1cffff77bf | ||
|
|
f01a772d8d | ||
|
|
76d068aa23 | ||
|
|
b151db0843 | ||
|
|
5a3f432d89 | ||
|
|
8dcef5ea9f | ||
|
|
05299952a9 | ||
|
|
5966b9ff23 | ||
|
|
1917c04baf | ||
|
|
4c20ac0b1c | ||
|
|
6bd548cc22 | ||
|
|
3e7f0ad0a8 | ||
|
|
785f72ecd6 | ||
|
|
62cdb1a797 | ||
|
|
24e17c4e4f | ||
|
|
d664c0166d | ||
|
|
05ebe821f2 | ||
|
|
6c4ac347db | ||
|
|
e8024ce341 | ||
|
|
afc17f41f6 | ||
|
|
49c80f0e0b | ||
|
|
10a6a3056a | ||
|
|
69af62cde0 | ||
|
|
0cc8b5def0 | ||
|
|
fc52e73153 | ||
|
|
ce67e460c6 | ||
|
|
85e5f4d2c0 | ||
|
|
6237afe3cd | ||
|
|
cfddb6f04e | ||
|
|
f0b5954c54 | ||
|
|
b93d9a6b6e | ||
|
|
5bb9117fde | ||
|
|
84d35c1a37 | ||
|
|
ba42e90502 | ||
|
|
10d1ec1bb2 | ||
|
|
d6ccd106e6 | ||
|
|
7f7eaea2b1 | ||
|
|
d33b1eb394 | ||
|
|
feb984649f | ||
|
|
aada49e548 | ||
|
|
c79dd43105 | ||
|
|
cb53ff880d | ||
|
|
3d88b3c74b | ||
|
|
d3c66714c2 | ||
|
|
9444195de7 | ||
|
|
b25f3094b7 | ||
|
|
ec378a8fc5 | ||
|
|
9adf9a841c | ||
|
|
8bb8e011f3 | ||
|
|
3b66522a5e | ||
|
|
dd2b718974 | ||
|
|
50121153dd | ||
|
|
189b7e20db | ||
|
|
dd654fcd8d | ||
|
|
0f9a529647 | ||
|
|
5854adb806 | ||
|
|
ec40d20e6a | ||
|
|
3e2b777c30 | ||
|
|
4a02981c09 | ||
|
|
3382ccc7bf | ||
|
|
581303c923 | ||
|
|
63dd79e23c | ||
|
|
2346230d36 | ||
|
|
620e6012da | ||
|
|
330b17bff8 | ||
|
|
1969ce562a | ||
|
|
5ea15cc7eb | ||
|
|
5b8394d685 | ||
|
|
34fc30b8db | ||
|
|
6e575df40b | ||
|
|
2689b22674 | ||
|
|
5570f3bdcf | ||
|
|
cc7edbe3a7 | ||
|
|
c49e84efc6 | ||
|
|
98a4a8d8c6 | ||
|
|
5f73532d62 | ||
|
|
d52f9f2a92 | ||
|
|
1cee01a22a | ||
|
|
68dff71512 | ||
|
|
f92948d65c | ||
|
|
c4d771f2c6 | ||
|
|
566ffbdde2 | ||
|
|
5cf18ae17c | ||
|
|
4891721cc0 | ||
|
|
49b189e7a9 | ||
|
|
a9c5a3105f | ||
|
|
c13f5a9b04 | ||
|
|
12f805c020 | ||
|
|
c2a5f437fd | ||
|
|
1c986e2bf6 | ||
|
|
09fd1c7628 | ||
|
|
ecf44deecf | ||
|
|
5fb843268f | ||
|
|
ffb90c2b4b |
@@ -1,6 +1,6 @@
|
||||
root = true
|
||||
|
||||
[*.{js,ts,.tsx}]
|
||||
[*.{js,ts,tsx}]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
|
||||
3
.github/actions/build-electron/action.yml
vendored
3
.github/actions/build-electron/action.yml
vendored
@@ -74,7 +74,7 @@ runs:
|
||||
|
||||
- name: Update build info
|
||||
shell: ${{ inputs.shell }}
|
||||
run: npm run chore:update-build-info
|
||||
run: pnpm run chore:update-build-info
|
||||
|
||||
# Critical debugging configuration
|
||||
- name: Run electron-forge build with enhanced logging
|
||||
@@ -86,6 +86,7 @@ runs:
|
||||
APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }}
|
||||
WINDOWS_SIGN_EXECUTABLE: ${{ env.WINDOWS_SIGN_EXECUTABLE }}
|
||||
TRILIUM_ARTIFACT_NAME_HINT: TriliumNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}
|
||||
TARGET_ARCH: ${{ inputs.arch }}
|
||||
run: pnpm run --filter desktop electron-forge:make --arch=${{ inputs.arch }} --platform=${{ inputs.forge_platform }}
|
||||
|
||||
# Add DMG signing step
|
||||
|
||||
103
.github/actions/deploy-to-cloudflare-pages/action.yml
vendored
Normal file
103
.github/actions/deploy-to-cloudflare-pages/action.yml
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
name: "Deploy to Cloudflare Pages"
|
||||
description: "Deploys to Cloudflare Pages on either a temporary branch with preview comment, or on the production version if on the main branch."
|
||||
inputs:
|
||||
project_name:
|
||||
description: "CloudFlare Pages project name"
|
||||
comment_body:
|
||||
description: "The message to display when deployment is ready"
|
||||
default: "Deployment is ready."
|
||||
required: false
|
||||
production_url:
|
||||
description: "The URL to mention as the production URL."
|
||||
required: true
|
||||
deploy_dir:
|
||||
description: "The directory from which to deploy."
|
||||
required: true
|
||||
cloudflare_api_token:
|
||||
description: "The Cloudflare API token to use for deployment."
|
||||
required: true
|
||||
cloudflare_account_id:
|
||||
description: "The Cloudflare account ID to use for deployment."
|
||||
required: true
|
||||
github_token:
|
||||
description: "The GitHub token to use for posting PR comments."
|
||||
required: true
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
# Install wrangler globally to avoid workspace issues
|
||||
- name: Install Wrangler
|
||||
shell: bash
|
||||
run: npm install -g wrangler
|
||||
|
||||
# Deploy using Wrangler (use pre-installed wrangler)
|
||||
- name: Deploy to Cloudflare Pages
|
||||
id: deploy
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ inputs.cloudflare_api_token }}
|
||||
accountId: ${{ inputs.cloudflare_account_id }}
|
||||
command: pages deploy ${{ inputs.deploy_dir }} --project-name=${{ inputs.project_name}} --branch=${{ github.ref_name }}
|
||||
wranglerVersion: '' # Use pre-installed version
|
||||
|
||||
# Deploy preview for PRs
|
||||
- name: Deploy Preview to Cloudflare Pages
|
||||
id: preview-deployment
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ inputs.cloudflare_api_token }}
|
||||
accountId: ${{ inputs.cloudflare_account_id }}
|
||||
command: pages deploy ${{ inputs.deploy_dir }} --project-name=${{ inputs.project_name}} --branch=pr-${{ github.event.pull_request.number }}
|
||||
wranglerVersion: '' # Use pre-installed version
|
||||
|
||||
# Post deployment URL as PR comment
|
||||
- name: Comment PR with Preview URL
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/github-script@v8
|
||||
env:
|
||||
COMMENT_BODY: ${{ inputs.comment_body }}
|
||||
PRODUCTION_URL: ${{ inputs.production_url }}
|
||||
PROJECT_NAME: ${{ inputs.project_name }}
|
||||
with:
|
||||
github-token: ${{ inputs.github_token }}
|
||||
script: |
|
||||
const prNumber = context.issue.number;
|
||||
// Construct preview URL based on Cloudflare Pages pattern
|
||||
const projectName = process.env.PROJECT_NAME;
|
||||
const previewUrl = `https://pr-${prNumber}.${projectName}.pages.dev`;
|
||||
|
||||
// Check if we already commented
|
||||
const comments = await github.rest.issues.listComments({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: prNumber
|
||||
});
|
||||
|
||||
const customMessage = process.env.COMMENT_BODY;
|
||||
const botComment = comments.data.find(comment =>
|
||||
comment.user.type === 'Bot' &&
|
||||
comment.body.includes(customMessage)
|
||||
);
|
||||
|
||||
const mainUrl = process.env.PRODUCTION_URL;
|
||||
const commentBody = `${customMessage}!\n\n🔗 Preview URL: ${previewUrl}\n📖 Production URL: ${mainUrl}\n\n✅ All checks passed\n\n_This preview will be updated automatically with new commits._`;
|
||||
|
||||
if (botComment) {
|
||||
// Update existing comment
|
||||
await github.rest.issues.updateComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
comment_id: botComment.id,
|
||||
body: commentBody
|
||||
});
|
||||
} else {
|
||||
// Create new comment
|
||||
await github.rest.issues.createComment({
|
||||
issue_number: prNumber,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: commentBody
|
||||
});
|
||||
}
|
||||
90
.github/workflows/deploy-docs.yml
vendored
90
.github/workflows/deploy-docs.yml
vendored
@@ -16,7 +16,6 @@ on:
|
||||
- 'requirements-docs.txt'
|
||||
- '.github/workflows/deploy-docs.yml'
|
||||
- 'scripts/fix-mkdocs-structure.ts'
|
||||
- 'validate-docs-links.ts'
|
||||
|
||||
# Allow manual triggering from Actions tab
|
||||
workflow_dispatch:
|
||||
@@ -33,7 +32,6 @@ on:
|
||||
- 'requirements-docs.txt'
|
||||
- '.github/workflows/deploy-docs.yml'
|
||||
- 'scripts/fix-mkdocs-structure.ts'
|
||||
- 'validate-docs-links.ts'
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
@@ -105,6 +103,11 @@ jobs:
|
||||
fi
|
||||
}
|
||||
|
||||
- name: Fix HTML Links
|
||||
run: |
|
||||
# Remove .md extensions from links in generated HTML
|
||||
pnpm tsx ./scripts/fix-html-links.ts site
|
||||
|
||||
- name: Validate Built Site
|
||||
run: |
|
||||
# Basic validation that important files exist
|
||||
@@ -113,78 +116,13 @@ jobs:
|
||||
test -d site/assets || (echo "ERROR: site/assets directory not found" && exit 1)
|
||||
echo "✅ Site validation passed"
|
||||
|
||||
- name: Validate Documentation Links
|
||||
run: |
|
||||
# Run the TypeScript link validation script
|
||||
pnpm tsx validate-docs-links.ts
|
||||
|
||||
# Install wrangler globally to avoid workspace issues
|
||||
- name: Install Wrangler
|
||||
run: |
|
||||
npm install -g wrangler
|
||||
|
||||
# Deploy using Wrangler (use pre-installed wrangler)
|
||||
- name: Deploy to Cloudflare Pages
|
||||
id: deploy
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
- name: Deploy
|
||||
uses: ./.github/actions/deploy-to-cloudflare-pages
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy site --project-name=trilium-docs --branch=${{ github.ref_name }}
|
||||
wranglerVersion: '' # Use pre-installed version
|
||||
|
||||
# Deploy preview for PRs
|
||||
- name: Deploy Preview to Cloudflare Pages
|
||||
id: preview-deployment
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy site --project-name=trilium-docs --branch=pr-${{ github.event.pull_request.number }}
|
||||
wranglerVersion: '' # Use pre-installed version
|
||||
|
||||
# Post deployment URL as PR comment
|
||||
- name: Comment PR with Preview URL
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const prNumber = context.issue.number;
|
||||
// Construct preview URL based on Cloudflare Pages pattern
|
||||
const previewUrl = `https://pr-${prNumber}.trilium-docs.pages.dev`;
|
||||
const mainUrl = 'https://docs.triliumnotes.org';
|
||||
|
||||
// Check if we already commented
|
||||
const comments = await github.rest.issues.listComments({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: prNumber
|
||||
});
|
||||
|
||||
const botComment = comments.data.find(comment =>
|
||||
comment.user.type === 'Bot' &&
|
||||
comment.body.includes('Documentation preview is ready')
|
||||
);
|
||||
|
||||
const commentBody = `📚 Documentation preview is ready!\n\n🔗 Preview URL: ${previewUrl}\n📖 Production URL: ${mainUrl}\n\n✅ All checks passed\n\n_This preview will be updated automatically with new commits._`;
|
||||
|
||||
if (botComment) {
|
||||
// Update existing comment
|
||||
await github.rest.issues.updateComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
comment_id: botComment.id,
|
||||
body: commentBody
|
||||
});
|
||||
} else {
|
||||
// Create new comment
|
||||
await github.rest.issues.createComment({
|
||||
issue_number: prNumber,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: commentBody
|
||||
});
|
||||
}
|
||||
project_name: "trilium-docs"
|
||||
comment_body: "📚 Documentation preview is ready"
|
||||
production_url: "https://docs.triliumnotes.org"
|
||||
deploy_dir: "site"
|
||||
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
8
.github/workflows/main-docker.yml
vendored
8
.github/workflows/main-docker.yml
vendored
@@ -152,12 +152,12 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Run the TypeScript build
|
||||
run: pnpm run server:build
|
||||
|
||||
- name: Update build info
|
||||
run: pnpm run chore:update-build-info
|
||||
|
||||
- name: Run the TypeScript build
|
||||
run: pnpm run server:build
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
@@ -211,7 +211,7 @@ jobs:
|
||||
- name: Upload digest
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: digests-${{ env.PLATFORM_PAIR }}
|
||||
name: digests-${{ env.PLATFORM_PAIR }}-${{ matrix.dockerfile }}
|
||||
path: /tmp/digests/*
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
|
||||
5
.github/workflows/nightly.yml
vendored
5
.github/workflows/nightly.yml
vendored
@@ -19,7 +19,6 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
GITHUB_UPLOAD_URL: https://uploads.github.com/repos/TriliumNext/Notes/releases/179589950/assets{?name,label}
|
||||
GITHUB_RELEASE_ID: 179589950
|
||||
|
||||
permissions:
|
||||
@@ -78,7 +77,7 @@ jobs:
|
||||
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGN_KEY }}
|
||||
|
||||
- name: Publish release
|
||||
uses: softprops/action-gh-release@v2.3.3
|
||||
uses: softprops/action-gh-release@v2.3.4
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
with:
|
||||
make_latest: false
|
||||
@@ -119,7 +118,7 @@ jobs:
|
||||
arch: ${{ matrix.arch }}
|
||||
|
||||
- name: Publish release
|
||||
uses: softprops/action-gh-release@v2.3.3
|
||||
uses: softprops/action-gh-release@v2.3.4
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
with:
|
||||
make_latest: false
|
||||
|
||||
2
.github/workflows/playwright.yml
vendored
2
.github/workflows/playwright.yml
vendored
@@ -4,6 +4,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- "apps/website/**"
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
|
||||
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -30,6 +30,19 @@ jobs:
|
||||
image: win-signing
|
||||
shell: cmd
|
||||
forge_platform: win32
|
||||
# Exclude ARM64 Linux from default matrix to use native runner
|
||||
exclude:
|
||||
- arch: arm64
|
||||
os:
|
||||
name: linux
|
||||
# Add ARM64 Linux with native ubuntu-24.04-arm runner for better-sqlite3 compatibility
|
||||
include:
|
||||
- arch: arm64
|
||||
os:
|
||||
name: linux
|
||||
image: ubuntu-24.04-arm
|
||||
shell: bash
|
||||
forge_platform: linux
|
||||
runs-on: ${{ matrix.os.image }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
@@ -114,7 +127,7 @@ jobs:
|
||||
path: upload
|
||||
|
||||
- name: Publish stable release
|
||||
uses: softprops/action-gh-release@v2.3.3
|
||||
uses: softprops/action-gh-release@v2.3.4
|
||||
with:
|
||||
draft: false
|
||||
body_path: docs/Release Notes/Release Notes/${{ github.ref_name }}.md
|
||||
|
||||
48
.github/workflows/website.yml
vendored
Normal file
48
.github/workflows/website.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: Deploy website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "apps/website/**"
|
||||
|
||||
pull_request:
|
||||
paths:
|
||||
- "apps/website/**"
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build & deploy website
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
pull-requests: write # For PR preview comments
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Set up node & dependencies
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: 22
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --filter website --frozen-lockfile
|
||||
|
||||
- name: Build the website
|
||||
run: pnpm website:build
|
||||
|
||||
- name: Deploy
|
||||
uses: ./.github/actions/deploy-to-cloudflare-pages
|
||||
with:
|
||||
project_name: "trilium-homepage"
|
||||
comment_body: "📚 Website preview is ready"
|
||||
production_url: "https://triliumnotes.org"
|
||||
deploy_dir: "apps/website/dist"
|
||||
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
64
README.md
64
README.md
@@ -5,7 +5,7 @@
|
||||

|
||||
[](https://app.relative-ci.com/projects/Di5q7dz9daNDZ9UXi0Bp) [](https://hosted.weblate.org/engage/trilium/)
|
||||
|
||||
[English](./README.md) | [Chinese (Simplified)](./docs/README-ZH_CN.md) | [Chinese (Traditional)](./docs/README-ZH_TW.md) | [Russian](./docs/README.ru.md) | [Japanese](./docs/README.ja.md) | [Italian](./docs/README.it.md) | [Spanish](./docs/README.es.md)
|
||||
[English](./README.md) | [Chinese (Simplified)](./docs/README-ZH_CN.md) | [Chinese (Traditional)](./docs/README-ZH_TW.md) | [Russian](./docs/README-ru.md) | [Japanese](./docs/README-ja.md) | [Italian](./docs/README-it.md) | [Spanish](./docs/README-es.md)
|
||||
|
||||
Trilium Notes is a free and open-source, cross-platform hierarchical note taking application with focus on building large personal knowledge bases.
|
||||
|
||||
@@ -13,6 +13,23 @@ See [screenshots](https://triliumnext.github.io/Docs/Wiki/screenshot-tour) for q
|
||||
|
||||
<a href="https://triliumnext.github.io/Docs/Wiki/screenshot-tour"><img src="./docs/app.png" alt="Trilium Screenshot" width="1000"></a>
|
||||
|
||||
## 📚 Documentation
|
||||
|
||||
**Visit our comprehensive documentation at [docs.triliumnotes.org](https://docs.triliumnotes.org/)**
|
||||
|
||||
Our documentation is available in multiple formats:
|
||||
- **Online Documentation**: Browse the full documentation at [docs.triliumnotes.org](https://docs.triliumnotes.org/)
|
||||
- **In-App Help**: Press `F1` within Trilium to access the same documentation directly in the application
|
||||
- **GitHub**: Navigate through the [User Guide](./docs/User%20Guide/User%20Guide/) in this repository
|
||||
|
||||
### Quick Links
|
||||
- [Getting Started Guide](https://docs.triliumnotes.org/)
|
||||
- [Installation Instructions](./docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation.md)
|
||||
- [Docker Setup](./docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.md)
|
||||
- [Upgrading TriliumNext](./docs/User%20Guide/User%20Guide/Installation%20%26%20Setup/Upgrading%20TriliumNext.md)
|
||||
- [Basic Concepts and Features](./docs/User%20Guide/User%20Guide/Basic%20Concepts%20and%20Features/Notes.md)
|
||||
- [Patterns of Personal Knowledge Base](https://triliumnext.github.io/Docs/Wiki/patterns-of-personal-knowledge)
|
||||
|
||||
## 🎁 Features
|
||||
|
||||
* Notes can be arranged into arbitrarily deep tree. Single note can be placed into multiple places in the tree (see [cloning](https://triliumnext.github.io/Docs/Wiki/cloning-notes))
|
||||
@@ -56,19 +73,6 @@ There are no special migration steps to migrate from a zadam/Trilium instance to
|
||||
|
||||
Versions up to and including [v0.90.4](https://github.com/TriliumNext/Trilium/releases/tag/v0.90.4) are compatible with the latest zadam/trilium version of [v0.63.7](https://github.com/zadam/trilium/releases/tag/v0.63.7). Any later versions of TriliumNext/Trilium have their sync versions incremented which prevents direct migration.
|
||||
|
||||
## 📖 Documentation
|
||||
|
||||
We're currently in the progress of moving the documentation to in-app (hit the `F1` key within Trilium). As a result, there may be some missing parts until we've completed the migration. If you'd prefer to navigate through the documentation within GitHub, you can navigate the [User Guide](./docs/User%20Guide/User%20Guide/) documentation.
|
||||
|
||||
Below are some quick links for your convenience to navigate the documentation:
|
||||
- [Server installation](./docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation.md)
|
||||
- [Docker installation](./docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.md)
|
||||
- [Upgrading TriliumNext](./docs/User%20Guide/User%20Guide/Installation%20%26%20Setup/Upgrading%20TriliumNext.md)
|
||||
- [Concepts and Features - Note](./docs/User%20Guide/User%20Guide/Basic%20Concepts%20and%20Features/Notes.md)
|
||||
- [Patterns of personal knowledge base](https://triliumnext.github.io/Docs/Wiki/patterns-of-personal-knowledge)
|
||||
|
||||
Until we finish reorganizing the documentation, you may also want to [browse the old documentation](https://triliumnext.github.io/Docs).
|
||||
|
||||
## 💬 Discuss with us
|
||||
|
||||
Feel free to join our official conversations. We would love to hear what features, suggestions, or issues you may have!
|
||||
@@ -162,16 +166,34 @@ Please view the [documentation guide](https://github.com/TriliumNext/Trilium/blo
|
||||
|
||||
## 👏 Shoutouts
|
||||
|
||||
* [CKEditor 5](https://github.com/ckeditor/ckeditor5) - best WYSIWYG editor on the market, very interactive and listening team
|
||||
* [FancyTree](https://github.com/mar10/fancytree) - very feature rich tree library without real competition. Trilium Notes would not be the same without it.
|
||||
* [CodeMirror](https://github.com/codemirror/CodeMirror) - code editor with support for huge amount of languages
|
||||
* [jsPlumb](https://github.com/jsplumb/jsplumb) - visual connectivity library without competition. Used in [relation maps](https://triliumnext.github.io/Docs/Wiki/relation-map.html) and [link maps](https://triliumnext.github.io/Docs/Wiki/note-map.html#link-map)
|
||||
* [zadam](https://github.com/zadam) for the original concept and implementation of the application.
|
||||
* [Larsa](https://github.com/LarsaSara) for designing the application icon.
|
||||
* [nriver](https://github.com/nriver) for his work on internationalization.
|
||||
* [Thomas Frei](https://github.com/thfrei) for his original work on the Canvas.
|
||||
* [antoniotejada](https://github.com/nriver) for the original syntax highlight widget.
|
||||
* [Dosu](https://dosu.dev/) for providing us with the automated responses to GitHub issues and discussions.
|
||||
* [Tabler Icons](https://tabler.io/icons) for the system tray icons.
|
||||
|
||||
Trilium would not be possible without the technologies behind it:
|
||||
|
||||
* [CKEditor 5](https://github.com/ckeditor/ckeditor5) - the visual editor behind text notes. We are grateful for being offered a set of the premium features.
|
||||
* [CodeMirror](https://github.com/codemirror/CodeMirror) - code editor with support for huge amount of languages.
|
||||
* [Excalidraw](https://github.com/excalidraw/excalidraw) - the infinite whiteboard used in Canvas notes.
|
||||
* [Mind Elixir](https://github.com/SSShooter/mind-elixir-core) - providing the mind map functionality.
|
||||
* [Leaflet](https://github.com/Leaflet/Leaflet) - for rendering geographical maps.
|
||||
* [Tabulator](https://github.com/olifolkerd/tabulator) - for the interactive table used in collections.
|
||||
* [FancyTree](https://github.com/mar10/fancytree) - feature-rich tree library without real competition.
|
||||
* [jsPlumb](https://github.com/jsplumb/jsplumb) - visual connectivity library. Used in [relation maps](https://triliumnext.github.io/Docs/Wiki/relation-map.html) and [link maps](https://triliumnext.github.io/Docs/Wiki/note-map.html#link-map)
|
||||
|
||||
## 🤝 Support
|
||||
|
||||
Support for the TriliumNext organization will be possible in the near future. For now, you can:
|
||||
- Support continued development on TriliumNext by supporting our developers: [eliandoran](https://github.com/sponsors/eliandoran) (See the [repository insights]([developers]([url](https://github.com/TriliumNext/trilium/graphs/contributors))) for a full list)
|
||||
- Show a token of gratitude to the original Trilium developer ([zadam](https://github.com/sponsors/zadam)) via [PayPal](https://paypal.me/za4am) or Bitcoin (bitcoin:bc1qv3svjn40v89mnkre5vyvs2xw6y8phaltl385d2).
|
||||
Trilium is built and maintained with [hundreds of hours of work](https://github.com/TriliumNext/Trilium/graphs/commit-activity). Your support keeps it open-source, improves features, and covers costs such as hosting.
|
||||
|
||||
Consider supporting the main developer ([eliandoran](https://github.com/eliandoran)) of the application via:
|
||||
|
||||
- [GitHub Sponsors](https://github.com/sponsors/eliandoran)
|
||||
- [PayPal](https://paypal.me/eliandoran)
|
||||
- [Buy Me a Coffee](https://buymeacoffee.com/eliandoran)
|
||||
|
||||
|
||||
## 🔑 License
|
||||
|
||||
@@ -35,13 +35,13 @@
|
||||
"chore:generate-openapi": "tsx bin/generate-openapi.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "1.55.0",
|
||||
"@stylistic/eslint-plugin": "5.3.1",
|
||||
"@playwright/test": "1.55.1",
|
||||
"@stylistic/eslint-plugin": "5.4.0",
|
||||
"@types/express": "5.0.3",
|
||||
"@types/node": "22.18.1",
|
||||
"@types/node": "22.18.8",
|
||||
"@types/yargs": "17.0.33",
|
||||
"@vitest/coverage-v8": "3.2.4",
|
||||
"eslint": "9.35.0",
|
||||
"eslint": "9.37.0",
|
||||
"eslint-plugin-simple-import-sort": "12.1.1",
|
||||
"esm": "3.2.25",
|
||||
"jsdoc": "4.0.4",
|
||||
@@ -49,7 +49,7 @@
|
||||
"rcedit": "4.0.1",
|
||||
"rimraf": "6.0.1",
|
||||
"tslib": "2.8.1",
|
||||
"typedoc": "0.28.12",
|
||||
"typedoc": "0.28.13",
|
||||
"typedoc-plugin-missing-exports": "4.1.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# The development license key for premium CKEditor features.
|
||||
# Note: This key must only be used for the Trilium Notes project.
|
||||
# Expires on: 2025-09-13
|
||||
VITE_CKEDITOR_KEY=eyJhbGciOiJFUzI1NiJ9.eyJleHAiOjE3NTc3MjE1OTksImp0aSI6ImFiN2E0NjZmLWJlZGMtNDNiYy1iMzU4LTk0NGQ0YWJhY2I3ZiIsImRpc3RyaWJ1dGlvbkNoYW5uZWwiOlsic2giLCJkcnVwYWwiXSwid2hpdGVMYWJlbCI6dHJ1ZSwiZmVhdHVyZXMiOlsiRFJVUCIsIkNNVCIsIkRPIiwiRlAiLCJTQyIsIlRPQyIsIlRQTCIsIlBPRSIsIkNDIiwiTUYiLCJTRUUiLCJFQ0giLCJFSVMiXSwidmMiOiI1MzlkOWY5YyJ9.2rvKPql4hmukyXhEtWPZ8MLxKvzPIwzCdykO653g7IxRRZy2QJpeRszElZx9DakKYZKXekVRAwQKgHxwkgbE_w
|
||||
VITE_CKEDITOR_KEY=eyJhbGciOiJFUzI1NiJ9.eyJleHAiOjE3ODcyNzA0MDAsImp0aSI6IjkyMWE1MWNlLTliNDMtNGRlMC1iOTQwLTc5ZjM2MDBkYjg1NyIsImRpc3RyaWJ1dGlvbkNoYW5uZWwiOiJ0cmlsaXVtIiwiZmVhdHVyZXMiOlsiVFJJTElVTSJdLCJ2YyI6ImU4YzRhMjBkIn0.hny77p-U4-jTkoqbwPytrEar5ylGCWBN7Ez3SlB8i6_mJCBIeCSTOlVQk_JMiOEq3AGykUMHzWXzjdMFwgniOw
|
||||
VITE_CKEDITOR_ENABLE_INSPECTOR=false
|
||||
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "@triliumnext/client",
|
||||
"version": "0.98.1",
|
||||
"version": "0.99.1",
|
||||
"description": "JQuery-based client for TriliumNext, used for both web and desktop (via Electron)",
|
||||
"private": true,
|
||||
"license": "AGPL-3.0-only",
|
||||
"author": {
|
||||
"name": "Trilium Notes Team",
|
||||
"email": "contact@eliandoran.me",
|
||||
"url": "https://github.com/TriliumNext/Notes"
|
||||
"url": "https://github.com/TriliumNext/Trilium"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build",
|
||||
@@ -15,7 +15,7 @@
|
||||
"circular-deps": "dpdm -T src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular"
|
||||
},
|
||||
"dependencies": {
|
||||
"@eslint/js": "9.35.0",
|
||||
"@eslint/js": "9.37.0",
|
||||
"@excalidraw/excalidraw": "0.18.0",
|
||||
"@fullcalendar/core": "6.1.19",
|
||||
"@fullcalendar/daygrid": "6.1.19",
|
||||
@@ -40,24 +40,24 @@
|
||||
"debounce": "2.2.0",
|
||||
"draggabilly": "3.0.0",
|
||||
"force-graph": "1.51.0",
|
||||
"globals": "16.3.0",
|
||||
"i18next": "25.5.2",
|
||||
"globals": "16.4.0",
|
||||
"i18next": "25.5.3",
|
||||
"i18next-http-backend": "3.0.2",
|
||||
"jquery": "3.7.1",
|
||||
"jquery.fancytree": "2.38.5",
|
||||
"jsplumb": "2.15.6",
|
||||
"katex": "0.16.22",
|
||||
"katex": "0.16.23",
|
||||
"knockout": "3.5.1",
|
||||
"leaflet": "1.9.4",
|
||||
"leaflet-gpx": "2.2.0",
|
||||
"mark.js": "8.11.1",
|
||||
"marked": "16.2.1",
|
||||
"mermaid": "11.11.0",
|
||||
"marked": "16.3.0",
|
||||
"mermaid": "11.12.0",
|
||||
"mind-elixir": "5.1.1",
|
||||
"normalize.css": "8.0.1",
|
||||
"panzoom": "9.4.3",
|
||||
"preact": "10.27.1",
|
||||
"react-i18next": "15.7.3",
|
||||
"preact": "10.27.2",
|
||||
"react-i18next": "16.0.0",
|
||||
"split.js": "1.6.5",
|
||||
"svg-pan-zoom": "3.6.2",
|
||||
"tabulator-tables": "6.3.1",
|
||||
@@ -71,10 +71,10 @@
|
||||
"@types/leaflet": "1.9.20",
|
||||
"@types/leaflet-gpx": "1.3.8",
|
||||
"@types/mark.js": "8.11.12",
|
||||
"@types/tabulator-tables": "6.2.10",
|
||||
"@types/tabulator-tables": "6.2.11",
|
||||
"copy-webpack-plugin": "13.0.1",
|
||||
"happy-dom": "18.0.1",
|
||||
"happy-dom": "19.0.2",
|
||||
"script-loader": "0.7.2",
|
||||
"vite-plugin-static-copy": "3.1.2"
|
||||
"vite-plugin-static-copy": "3.1.3"
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,9 @@
|
||||
"display": "standalone",
|
||||
"scope": "/",
|
||||
"start_url": "/",
|
||||
"display_override": [
|
||||
"window-controls-overlay"
|
||||
],
|
||||
"icons": [
|
||||
{
|
||||
"src": "icon.png",
|
||||
|
||||
@@ -116,7 +116,7 @@ export type CommandMappings = {
|
||||
openedFileUpdated: CommandData & {
|
||||
entityType: string;
|
||||
entityId: string;
|
||||
lastModifiedMs: number;
|
||||
lastModifiedMs?: number;
|
||||
filePath: string;
|
||||
};
|
||||
focusAndSelectTitle: CommandData & {
|
||||
@@ -650,7 +650,7 @@ export class AppContext extends Component {
|
||||
}
|
||||
|
||||
getComponentByEl(el: HTMLElement) {
|
||||
return $(el).closest(".component").prop("component");
|
||||
return $(el).closest("[data-component-id]").prop("component");
|
||||
}
|
||||
|
||||
addBeforeUnloadListener(obj: BeforeUploadListener | (() => boolean)) {
|
||||
|
||||
@@ -433,6 +433,9 @@ export default class TabManager extends Component {
|
||||
$autocompleteEl.autocomplete("close");
|
||||
}
|
||||
|
||||
// close dangling tooltips
|
||||
$("body > div.tooltip").remove();
|
||||
|
||||
const noteContextsToRemove = noteContextToRemove.getSubContexts();
|
||||
const ntxIdsToRemove = noteContextsToRemove.map((nc) => nc.ntxId);
|
||||
|
||||
@@ -600,18 +603,18 @@ export default class TabManager extends Component {
|
||||
}
|
||||
|
||||
async moveTabToNewWindowCommand({ ntxId }: { ntxId: string }) {
|
||||
const { notePath, hoistedNoteId } = this.getNoteContextById(ntxId);
|
||||
const { notePath, hoistedNoteId, viewScope } = this.getNoteContextById(ntxId);
|
||||
|
||||
const removed = await this.removeNoteContext(ntxId);
|
||||
|
||||
if (removed) {
|
||||
this.triggerCommand("openInWindow", { notePath, hoistedNoteId });
|
||||
this.triggerCommand("openInWindow", { notePath, hoistedNoteId, viewScope });
|
||||
}
|
||||
}
|
||||
|
||||
async copyTabToNewWindowCommand({ ntxId }: { ntxId: string }) {
|
||||
const { notePath, hoistedNoteId } = this.getNoteContextById(ntxId);
|
||||
this.triggerCommand("openInWindow", { notePath, hoistedNoteId });
|
||||
const { notePath, hoistedNoteId, viewScope } = this.getNoteContextById(ntxId);
|
||||
this.triggerCommand("openInWindow", { notePath, hoistedNoteId, viewScope });
|
||||
}
|
||||
|
||||
async reopenLastTabCommand() {
|
||||
|
||||
@@ -23,11 +23,11 @@ export default class TouchBarComponent extends Component {
|
||||
this.$widget = $("<div>");
|
||||
|
||||
$(window).on("focusin", async (e) => {
|
||||
const $target = $(e.target);
|
||||
const focusedEl = e.target as unknown as HTMLElement;
|
||||
const $target = $(focusedEl);
|
||||
|
||||
this.$activeModal = $target.closest(".modal-dialog");
|
||||
const parentComponentEl = $target.closest(".component");
|
||||
this.lastFocusedComponent = appContext.getComponentByEl(parentComponentEl[0]);
|
||||
this.lastFocusedComponent = appContext.getComponentByEl(focusedEl);
|
||||
this.#refreshTouchBar();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -45,6 +45,10 @@ if (utils.isElectron()) {
|
||||
electronContextMenu.setupContextMenu();
|
||||
}
|
||||
|
||||
if (utils.isPWA()) {
|
||||
initPWATopbarColor();
|
||||
}
|
||||
|
||||
function initOnElectron() {
|
||||
const electron: typeof Electron = utils.dynamicRequire("electron");
|
||||
electron.ipcRenderer.on("globalShortcut", async (event, actionName) => appContext.triggerCommand(actionName));
|
||||
@@ -113,3 +117,20 @@ function initDarkOrLightMode(style: CSSStyleDeclaration) {
|
||||
const { nativeTheme } = utils.dynamicRequire("@electron/remote") as typeof ElectronRemote;
|
||||
nativeTheme.themeSource = themeSource;
|
||||
}
|
||||
|
||||
function initPWATopbarColor() {
|
||||
const tracker = $("#background-color-tracker");
|
||||
|
||||
if (tracker.length) {
|
||||
const applyThemeColor = () => {
|
||||
let meta = $("meta[name='theme-color']");
|
||||
if (!meta.length) {
|
||||
meta = $(`<meta name="theme-color">`).appendTo($("head"));
|
||||
}
|
||||
meta.attr("content", tracker.css("color"));
|
||||
};
|
||||
|
||||
tracker.on("transitionend", applyThemeColor);
|
||||
applyThemeColor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,18 +256,20 @@ export default class FNote {
|
||||
return this.children;
|
||||
}
|
||||
|
||||
async getSubtreeNoteIds() {
|
||||
async getSubtreeNoteIds(includeArchived = false) {
|
||||
let noteIds: (string | string[])[] = [];
|
||||
for (const child of await this.getChildNotes()) {
|
||||
if (child.isArchived && !includeArchived) continue;
|
||||
|
||||
noteIds.push(child.noteId);
|
||||
noteIds.push(await child.getSubtreeNoteIds());
|
||||
noteIds.push(await child.getSubtreeNoteIds(includeArchived));
|
||||
}
|
||||
return noteIds.flat();
|
||||
}
|
||||
|
||||
async getSubtreeNotes() {
|
||||
const noteIds = await this.getSubtreeNoteIds();
|
||||
return this.froca.getNotes(noteIds);
|
||||
return (await this.froca.getNotes(noteIds));
|
||||
}
|
||||
|
||||
async getChildNotes() {
|
||||
@@ -905,8 +907,8 @@ export default class FNote {
|
||||
return this.getBlob();
|
||||
}
|
||||
|
||||
async getBlob() {
|
||||
return await this.froca.getBlob("notes", this.noteId);
|
||||
getBlob() {
|
||||
return this.froca.getBlob("notes", this.noteId);
|
||||
}
|
||||
|
||||
toString() {
|
||||
|
||||
@@ -5,7 +5,6 @@ import NoteTreeWidget from "../widgets/note_tree.js";
|
||||
import NoteTitleWidget from "../widgets/note_title.jsx";
|
||||
import NoteDetailWidget from "../widgets/note_detail.js";
|
||||
import PromotedAttributesWidget from "../widgets/promoted_attributes.js";
|
||||
import NoteListWidget from "../widgets/note_list.js";
|
||||
import NoteIconWidget from "../widgets/note_icon.jsx";
|
||||
import ScrollingContainer from "../widgets/containers/scrolling_container.js";
|
||||
import RootContainer from "../widgets/containers/root_container.js";
|
||||
@@ -42,6 +41,7 @@ import LeftPaneToggle from "../widgets/buttons/left_pane_toggle.js";
|
||||
import ApiLog from "../widgets/api_log.jsx";
|
||||
import CloseZenModeButton from "../widgets/close_zen_button.jsx";
|
||||
import SharedInfo from "../widgets/shared_info.jsx";
|
||||
import NoteList from "../widgets/collections/NoteList.jsx";
|
||||
|
||||
export default class DesktopLayout {
|
||||
|
||||
@@ -123,10 +123,10 @@ export default class DesktopLayout {
|
||||
.child(<NoteIconWidget />)
|
||||
.child(<NoteTitleWidget />)
|
||||
.child(new SpacerWidget(0, 1))
|
||||
.child(new MovePaneButton(true))
|
||||
.child(new MovePaneButton(false))
|
||||
.child(new ClosePaneButton())
|
||||
.child(new CreatePaneButton())
|
||||
.child(<MovePaneButton direction="left" />)
|
||||
.child(<MovePaneButton direction="right" />)
|
||||
.child(<ClosePaneButton />)
|
||||
.child(<CreatePaneButton />)
|
||||
)
|
||||
.child(<Ribbon />)
|
||||
.child(<SharedInfo />)
|
||||
@@ -138,7 +138,7 @@ export default class DesktopLayout {
|
||||
.child(new PromotedAttributesWidget())
|
||||
.child(<SqlTableSchemas />)
|
||||
.child(new NoteDetailWidget())
|
||||
.child(new NoteListWidget(false))
|
||||
.child(<NoteList />)
|
||||
.child(<SearchResult />)
|
||||
.child(<SqlResults />)
|
||||
.child(<ScrollPadding />)
|
||||
|
||||
@@ -27,10 +27,10 @@ import FlexContainer from "../widgets/containers/flex_container.js";
|
||||
import NoteIconWidget from "../widgets/note_icon";
|
||||
import PromotedAttributesWidget from "../widgets/promoted_attributes.js";
|
||||
import NoteDetailWidget from "../widgets/note_detail.js";
|
||||
import NoteListWidget from "../widgets/note_list.js";
|
||||
import CallToActionDialog from "../widgets/dialogs/call_to_action.jsx";
|
||||
import NoteTitleWidget from "../widgets/note_title.jsx";
|
||||
import { PopupEditorFormattingToolbar } from "../widgets/ribbon/FormattingToolbar.js";
|
||||
import NoteList from "../widgets/collections/NoteList.jsx";
|
||||
|
||||
export function applyModals(rootContainer: RootContainer) {
|
||||
rootContainer
|
||||
@@ -66,6 +66,6 @@ export function applyModals(rootContainer: RootContainer) {
|
||||
.child(<PopupEditorFormattingToolbar />)
|
||||
.child(new PromotedAttributesWidget())
|
||||
.child(new NoteDetailWidget())
|
||||
.child(new NoteListWidget(true)))
|
||||
.child(<NoteList displayOnlyCollections />))
|
||||
.child(<CallToActionDialog />);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import QuickSearchWidget from "../widgets/quick_search.js";
|
||||
import NoteTreeWidget from "../widgets/note_tree.js";
|
||||
import ScreenContainer from "../widgets/mobile_widgets/screen_container.js";
|
||||
import ScrollingContainer from "../widgets/containers/scrolling_container.js";
|
||||
import NoteListWidget from "../widgets/note_list.js";
|
||||
import GlobalMenuWidget from "../widgets/buttons/global_menu.js";
|
||||
import LauncherContainer from "../widgets/containers/launcher_container.js";
|
||||
import RootContainer from "../widgets/containers/root_container.js";
|
||||
@@ -24,6 +23,7 @@ import ToggleSidebarButton from "../widgets/mobile_widgets/toggle_sidebar_button
|
||||
import CloseZenModeButton from "../widgets/close_zen_button.js";
|
||||
import NoteWrapperWidget from "../widgets/note_wrapper.js";
|
||||
import MobileDetailMenu from "../widgets/mobile_widgets/mobile_detail_menu.js";
|
||||
import NoteList from "../widgets/collections/NoteList.jsx";
|
||||
|
||||
const MOBILE_CSS = `
|
||||
<style>
|
||||
@@ -154,7 +154,7 @@ export default class MobileLayout {
|
||||
.filling()
|
||||
.contentSized()
|
||||
.child(new NoteDetailWidget())
|
||||
.child(new NoteListWidget(false))
|
||||
.child(<NoteList />)
|
||||
.child(<FilePropertiesWrapper />)
|
||||
)
|
||||
.child(<MobileEditorToolbar />)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import keyboardActionService from "../services/keyboard_actions.js";
|
||||
import { KeyboardActionNames } from "@triliumnext/commons";
|
||||
import keyboardActionService, { getActionSync } from "../services/keyboard_actions.js";
|
||||
import note_tooltip from "../services/note_tooltip.js";
|
||||
import utils from "../services/utils.js";
|
||||
import { should } from "vitest";
|
||||
|
||||
export interface ContextMenuOptions<T> {
|
||||
x: number;
|
||||
@@ -13,8 +15,13 @@ export interface ContextMenuOptions<T> {
|
||||
onHide?: () => void;
|
||||
}
|
||||
|
||||
interface MenuSeparatorItem {
|
||||
title: "----";
|
||||
export interface MenuSeparatorItem {
|
||||
kind: "separator";
|
||||
}
|
||||
|
||||
export interface MenuHeader {
|
||||
title: string;
|
||||
kind: "header";
|
||||
}
|
||||
|
||||
export interface MenuItemBadge {
|
||||
@@ -38,12 +45,13 @@ export interface MenuCommandItem<T> {
|
||||
handler?: MenuHandler<T>;
|
||||
items?: MenuItem<T>[] | null;
|
||||
shortcut?: string;
|
||||
keyboardShortcut?: KeyboardActionNames;
|
||||
spellingSuggestion?: string;
|
||||
checked?: boolean;
|
||||
columns?: number;
|
||||
}
|
||||
|
||||
export type MenuItem<T> = MenuCommandItem<T> | MenuSeparatorItem;
|
||||
export type MenuItem<T> = MenuCommandItem<T> | MenuSeparatorItem | MenuHeader;
|
||||
export type MenuHandler<T> = (item: MenuCommandItem<T>, e: JQuery.MouseDownEvent<HTMLElement, undefined, HTMLElement, HTMLElement>) => void;
|
||||
export type ContextMenuEvent = PointerEvent | MouseEvent | JQuery.ContextMenuEvent;
|
||||
|
||||
@@ -148,14 +156,51 @@ class ContextMenu {
|
||||
.addClass("show");
|
||||
}
|
||||
|
||||
addItems($parent: JQuery<HTMLElement>, items: MenuItem<any>[]) {
|
||||
for (const item of items) {
|
||||
addItems($parent: JQuery<HTMLElement>, items: MenuItem<any>[], multicolumn = false) {
|
||||
let $group = $parent; // The current group or parent element to which items are being appended
|
||||
let shouldStartNewGroup = false; // If true, the next item will start a new group
|
||||
let shouldResetGroup = false; // If true, the next item will be the last one from the group
|
||||
|
||||
for (let index = 0; index < items.length; index++) {
|
||||
const item = items[index];
|
||||
if (!item) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.title === "----") {
|
||||
$parent.append($("<div>").addClass("dropdown-divider"));
|
||||
// If the current item is a header, start a new group. This group will contain the
|
||||
// header and the next item that follows the header.
|
||||
if ("kind" in item && item.kind === "header") {
|
||||
if (multicolumn && !shouldResetGroup) {
|
||||
shouldStartNewGroup = true;
|
||||
}
|
||||
}
|
||||
|
||||
// If the next item is a separator, start a new group. This group will contain the
|
||||
// current item, the separator, and the next item after the separator.
|
||||
const nextItem = (index < items.length - 1) ? items[index + 1] : null;
|
||||
if (multicolumn && nextItem && "kind" in nextItem && nextItem.kind === "separator") {
|
||||
if (!shouldResetGroup) {
|
||||
shouldStartNewGroup = true;
|
||||
} else {
|
||||
shouldResetGroup = true; // Continue the current group
|
||||
}
|
||||
}
|
||||
|
||||
// Create a new group to avoid column breaks before and after the seaparator / header.
|
||||
// This is a workaround for Firefox not supporting break-before / break-after: avoid
|
||||
// for columns.
|
||||
if (shouldStartNewGroup) {
|
||||
$group = $("<div class='dropdown-no-break'>");
|
||||
$parent.append($group);
|
||||
shouldStartNewGroup = false;
|
||||
}
|
||||
|
||||
if ("kind" in item && item.kind === "separator") {
|
||||
$group.append($("<div>").addClass("dropdown-divider"));
|
||||
shouldResetGroup = true; // End the group after the next item
|
||||
} else if ("kind" in item && item.kind === "header") {
|
||||
$group.append($("<h6>").addClass("dropdown-header").text(item.title));
|
||||
shouldResetGroup = true;
|
||||
} else {
|
||||
const $icon = $("<span>");
|
||||
|
||||
@@ -185,7 +230,23 @@ class ContextMenu {
|
||||
}
|
||||
}
|
||||
|
||||
if ("shortcut" in item && item.shortcut) {
|
||||
if ("keyboardShortcut" in item && item.keyboardShortcut) {
|
||||
const shortcuts = getActionSync(item.keyboardShortcut).effectiveShortcuts;
|
||||
if (shortcuts) {
|
||||
const allShortcuts: string[] = [];
|
||||
for (const effectiveShortcut of shortcuts) {
|
||||
allShortcuts.push(effectiveShortcut.split("+")
|
||||
.map(key => `<kbd>${key}</kbd>`)
|
||||
.join("+"));
|
||||
}
|
||||
|
||||
if (allShortcuts.length) {
|
||||
const container = $("<span>").addClass("keyboard-shortcut");
|
||||
container.append($(allShortcuts.join(",")));
|
||||
$link.append(container);
|
||||
}
|
||||
}
|
||||
} else if ("shortcut" in item && item.shortcut) {
|
||||
$link.append($("<kbd>").text(item.shortcut));
|
||||
}
|
||||
|
||||
@@ -241,16 +302,24 @@ class ContextMenu {
|
||||
$link.addClass("dropdown-toggle");
|
||||
|
||||
const $subMenu = $("<ul>").addClass("dropdown-menu");
|
||||
if (!this.isMobile && item.columns) {
|
||||
$subMenu.css("column-count", item.columns);
|
||||
const hasColumns = !!item.columns && item.columns > 1;
|
||||
if (!this.isMobile && hasColumns) {
|
||||
$subMenu.css("column-count", item.columns!);
|
||||
}
|
||||
|
||||
this.addItems($subMenu, item.items);
|
||||
this.addItems($subMenu, item.items, hasColumns);
|
||||
|
||||
$item.append($subMenu);
|
||||
}
|
||||
|
||||
$parent.append($item);
|
||||
$group.append($item);
|
||||
|
||||
// After adding a menu item, if the previous item was a separator or header,
|
||||
// reset the group so that the next item will be appended directly to the parent.
|
||||
if (shouldResetGroup) {
|
||||
$group = $parent;
|
||||
shouldResetGroup = false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ function setupContextMenu() {
|
||||
handler: () => webContents.session.addWordToSpellCheckerDictionary(params.misspelledWord)
|
||||
});
|
||||
|
||||
items.push({ title: `----` });
|
||||
items.push({ kind: "separator" });
|
||||
}
|
||||
|
||||
if (params.isEditable) {
|
||||
@@ -112,7 +112,7 @@ function setupContextMenu() {
|
||||
// Replace the placeholder with the real search keyword.
|
||||
let searchUrl = searchEngineUrl.replace("{keyword}", encodeURIComponent(params.selectionText));
|
||||
|
||||
items.push({ title: "----" });
|
||||
items.push({ kind: "separator" });
|
||||
|
||||
items.push({
|
||||
title: t("electron_context_menu.search_online", { term: shortenedSelection, searchEngine: searchEngineName }),
|
||||
|
||||
@@ -45,16 +45,16 @@ export default class LauncherContextMenu implements SelectMenuItemEventListener<
|
||||
isVisibleRoot || isAvailableRoot ? { title: t("launcher_context_menu.add-script-launcher"), command: "addScriptLauncher", uiIcon: "bx bx-code-curly" } : null,
|
||||
isVisibleRoot || isAvailableRoot ? { title: t("launcher_context_menu.add-custom-widget"), command: "addWidgetLauncher", uiIcon: "bx bx-customize" } : null,
|
||||
isVisibleRoot || isAvailableRoot ? { title: t("launcher_context_menu.add-spacer"), command: "addSpacerLauncher", uiIcon: "bx bx-dots-horizontal" } : null,
|
||||
isVisibleRoot || isAvailableRoot ? { title: "----" } : null,
|
||||
isVisibleRoot || isAvailableRoot ? { kind: "separator" } : null,
|
||||
|
||||
isAvailableItem ? { title: t("launcher_context_menu.move-to-visible-launchers"), command: "moveLauncherToVisible", uiIcon: "bx bx-show", enabled: true } : null,
|
||||
isVisibleItem ? { title: t("launcher_context_menu.move-to-available-launchers"), command: "moveLauncherToAvailable", uiIcon: "bx bx-hide", enabled: true } : null,
|
||||
isVisibleItem || isAvailableItem ? { title: "----" } : null,
|
||||
isVisibleItem || isAvailableItem ? { kind: "separator" } : null,
|
||||
|
||||
{ title: `${t("launcher_context_menu.duplicate-launcher")}`, command: "duplicateSubtree", uiIcon: "bx bx-outline", enabled: isItem },
|
||||
{ title: `${t("launcher_context_menu.delete")}`, command: "deleteNotes", uiIcon: "bx bx-trash destructive-action-icon", enabled: canBeDeleted },
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{ title: t("launcher_context_menu.reset"), command: "resetLauncher", uiIcon: "bx bx-reset destructive-action-icon", enabled: canBeReset }
|
||||
];
|
||||
|
||||
@@ -13,6 +13,8 @@ import type NoteTreeWidget from "../widgets/note_tree.js";
|
||||
import type FAttachment from "../entities/fattachment.js";
|
||||
import type { SelectMenuItemEventListener } from "../components/events.js";
|
||||
import utils from "../services/utils.js";
|
||||
import attributes from "../services/attributes.js";
|
||||
import { executeBulkActions } from "../services/bulk_action.js";
|
||||
|
||||
// TODO: Deduplicate once client/server is well split.
|
||||
interface ConvertToAttachmentResponse {
|
||||
@@ -61,6 +63,11 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
||||
// the only exception is when the only selected note is the one that was right-clicked, then
|
||||
// it's clear what the user meant to do.
|
||||
const selNodes = this.treeWidget.getSelectedNodes();
|
||||
const selectedNotes = await froca.getNotes(selNodes.map(node => node.data.noteId));
|
||||
if (note && !selectedNotes.includes(note)) selectedNotes.push(note);
|
||||
const isArchived = selectedNotes.every(note => note.isArchived);
|
||||
const canToggleArchived = !selectedNotes.some(note => note.isArchived !== isArchived);
|
||||
|
||||
const noSelectedNotes = selNodes.length === 0 || (selNodes.length === 1 && selNodes[0] === this.node);
|
||||
|
||||
const notSearch = note?.type !== "search";
|
||||
@@ -69,27 +76,29 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
||||
const insertNoteAfterEnabled = isNotRoot && !isHoisted && parentNotSearch;
|
||||
|
||||
const items: (MenuItem<TreeCommandNames> | null)[] = [
|
||||
{ title: `${t("tree-context-menu.open-in-a-new-tab")}`, command: "openInTab", uiIcon: "bx bx-link-external", enabled: noSelectedNotes },
|
||||
{ title: t("tree-context-menu.open-in-a-new-tab"), command: "openInTab", shortcut: "Ctrl+Click", uiIcon: "bx bx-link-external", enabled: noSelectedNotes },
|
||||
{ title: t("tree-context-menu.open-in-a-new-split"), command: "openNoteInSplit", uiIcon: "bx bx-dock-right", enabled: noSelectedNotes },
|
||||
{ title: t("tree-context-menu.open-in-popup"), command: "openNoteInPopup", uiIcon: "bx bx-edit", enabled: noSelectedNotes },
|
||||
|
||||
isHoisted
|
||||
? null
|
||||
: {
|
||||
title: `${t("tree-context-menu.hoist-note")} <kbd data-command="toggleNoteHoisting"></kbd>`,
|
||||
title: `${t("tree-context-menu.hoist-note")}`,
|
||||
command: "toggleNoteHoisting",
|
||||
keyboardShortcut: "toggleNoteHoisting",
|
||||
uiIcon: "bx bxs-chevrons-up",
|
||||
enabled: noSelectedNotes && notSearch
|
||||
},
|
||||
!isHoisted || !isNotRoot
|
||||
? null
|
||||
: { title: `${t("tree-context-menu.unhoist-note")} <kbd data-command="toggleNoteHoisting"></kbd>`, command: "toggleNoteHoisting", uiIcon: "bx bx-door-open" },
|
||||
: { title: t("tree-context-menu.unhoist-note"), command: "toggleNoteHoisting", keyboardShortcut: "toggleNoteHoisting", uiIcon: "bx bx-door-open" },
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.insert-note-after")}<kbd data-command="createNoteAfter"></kbd>`,
|
||||
title: t("tree-context-menu.insert-note-after"),
|
||||
command: "insertNoteAfter",
|
||||
keyboardShortcut: "createNoteAfter",
|
||||
uiIcon: "bx bx-plus",
|
||||
items: insertNoteAfterEnabled ? await noteTypesService.getNoteTypeItems("insertNoteAfter") : null,
|
||||
enabled: insertNoteAfterEnabled && noSelectedNotes && notOptionsOrHelp,
|
||||
@@ -97,21 +106,22 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
||||
},
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.insert-child-note")}<kbd data-command="createNoteInto"></kbd>`,
|
||||
title: t("tree-context-menu.insert-child-note"),
|
||||
command: "insertChildNote",
|
||||
keyboardShortcut: "createNoteInto",
|
||||
uiIcon: "bx bx-plus",
|
||||
items: notSearch ? await noteTypesService.getNoteTypeItems("insertChildNote") : null,
|
||||
enabled: notSearch && noSelectedNotes && notOptionsOrHelp,
|
||||
columns: 2
|
||||
},
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{ title: t("tree-context-menu.protect-subtree"), command: "protectSubtree", uiIcon: "bx bx-check-shield", enabled: noSelectedNotes },
|
||||
|
||||
{ title: t("tree-context-menu.unprotect-subtree"), command: "unprotectSubtree", uiIcon: "bx bx-shield", enabled: noSelectedNotes },
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{
|
||||
title: t("tree-context-menu.advanced"),
|
||||
@@ -120,48 +130,52 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
||||
items: [
|
||||
{ title: t("tree-context-menu.apply-bulk-actions"), command: "openBulkActionsDialog", uiIcon: "bx bx-list-plus", enabled: true },
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.edit-branch-prefix")} <kbd data-command="editBranchPrefix"></kbd>`,
|
||||
title: t("tree-context-menu.edit-branch-prefix"),
|
||||
command: "editBranchPrefix",
|
||||
keyboardShortcut: "editBranchPrefix",
|
||||
uiIcon: "bx bx-rename",
|
||||
enabled: isNotRoot && parentNotSearch && noSelectedNotes && notOptionsOrHelp
|
||||
},
|
||||
{ title: t("tree-context-menu.convert-to-attachment"), command: "convertNoteToAttachment", uiIcon: "bx bx-paperclip", enabled: isNotRoot && !isHoisted && notOptionsOrHelp },
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{ title: `${t("tree-context-menu.expand-subtree")} <kbd data-command="expandSubtree"></kbd>`, command: "expandSubtree", uiIcon: "bx bx-expand", enabled: noSelectedNotes },
|
||||
{ title: `${t("tree-context-menu.collapse-subtree")} <kbd data-command="collapseSubtree"></kbd>`, command: "collapseSubtree", uiIcon: "bx bx-collapse", enabled: noSelectedNotes },
|
||||
{ title: t("tree-context-menu.expand-subtree"), command: "expandSubtree", keyboardShortcut: "expandSubtree", uiIcon: "bx bx-expand", enabled: noSelectedNotes },
|
||||
{ title: t("tree-context-menu.collapse-subtree"), command: "collapseSubtree", keyboardShortcut: "collapseSubtree", uiIcon: "bx bx-collapse", enabled: noSelectedNotes },
|
||||
{
|
||||
title: `${t("tree-context-menu.sort-by")} <kbd data-command="sortChildNotes"></kbd>`,
|
||||
title: t("tree-context-menu.sort-by"),
|
||||
command: "sortChildNotes",
|
||||
keyboardShortcut: "sortChildNotes",
|
||||
uiIcon: "bx bx-sort-down",
|
||||
enabled: noSelectedNotes && notSearch
|
||||
},
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{ title: t("tree-context-menu.copy-note-path-to-clipboard"), command: "copyNotePathToClipboard", uiIcon: "bx bx-directions", enabled: true },
|
||||
{ title: t("tree-context-menu.recent-changes-in-subtree"), command: "recentChangesInSubtree", uiIcon: "bx bx-history", enabled: noSelectedNotes && notOptionsOrHelp }
|
||||
]
|
||||
},
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.cut")} <kbd data-command="cutNotesToClipboard"></kbd>`,
|
||||
title: t("tree-context-menu.cut"),
|
||||
command: "cutNotesToClipboard",
|
||||
keyboardShortcut: "cutNotesToClipboard",
|
||||
uiIcon: "bx bx-cut",
|
||||
enabled: isNotRoot && !isHoisted && parentNotSearch
|
||||
},
|
||||
|
||||
{ title: `${t("tree-context-menu.copy-clone")} <kbd data-command="copyNotesToClipboard"></kbd>`, command: "copyNotesToClipboard", uiIcon: "bx bx-copy", enabled: isNotRoot && !isHoisted },
|
||||
{ title: t("tree-context-menu.copy-clone"), command: "copyNotesToClipboard", keyboardShortcut: "copyNotesToClipboard", uiIcon: "bx bx-copy", enabled: isNotRoot && !isHoisted },
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.paste-into")} <kbd data-command="pasteNotesFromClipboard"></kbd>`,
|
||||
title: t("tree-context-menu.paste-into"),
|
||||
command: "pasteNotesFromClipboard",
|
||||
keyboardShortcut: "pasteNotesFromClipboard",
|
||||
uiIcon: "bx bx-paste",
|
||||
enabled: !clipboard.isClipboardEmpty() && notSearch && noSelectedNotes
|
||||
},
|
||||
@@ -174,39 +188,71 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
||||
},
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.move-to")} <kbd data-command="moveNotesTo"></kbd>`,
|
||||
title: t("tree-context-menu.move-to"),
|
||||
command: "moveNotesTo",
|
||||
keyboardShortcut: "moveNotesTo",
|
||||
uiIcon: "bx bx-transfer",
|
||||
enabled: isNotRoot && !isHoisted && parentNotSearch
|
||||
},
|
||||
|
||||
{ title: `${t("tree-context-menu.clone-to")} <kbd data-command="cloneNotesTo"></kbd>`, command: "cloneNotesTo", uiIcon: "bx bx-duplicate", enabled: isNotRoot && !isHoisted },
|
||||
{ title: t("tree-context-menu.clone-to"), command: "cloneNotesTo", keyboardShortcut: "cloneNotesTo", uiIcon: "bx bx-duplicate", enabled: isNotRoot && !isHoisted },
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.duplicate")} <kbd data-command="duplicateSubtree">`,
|
||||
title: t("tree-context-menu.duplicate"),
|
||||
command: "duplicateSubtree",
|
||||
keyboardShortcut: "duplicateSubtree",
|
||||
uiIcon: "bx bx-outline",
|
||||
enabled: parentNotSearch && isNotRoot && !isHoisted && notOptionsOrHelp
|
||||
},
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.delete")} <kbd data-command="deleteNotes"></kbd>`,
|
||||
title: !isArchived ? t("tree-context-menu.archive") : t("tree-context-menu.unarchive"),
|
||||
uiIcon: !isArchived ? "bx bx-archive" : "bx bx-archive-out",
|
||||
enabled: canToggleArchived,
|
||||
handler: () => {
|
||||
if (!selectedNotes.length) return;
|
||||
|
||||
if (selectedNotes.length == 1) {
|
||||
const note = selectedNotes[0];
|
||||
if (!isArchived) {
|
||||
attributes.addLabel(note.noteId, "archived");
|
||||
} else {
|
||||
attributes.removeOwnedLabelByName(note, "archived");
|
||||
}
|
||||
} else {
|
||||
const noteIds = selectedNotes.map(note => note.noteId);
|
||||
if (!isArchived) {
|
||||
executeBulkActions(noteIds, [{
|
||||
name: "addLabel", labelName: "archived"
|
||||
}]);
|
||||
} else {
|
||||
executeBulkActions(noteIds, [{
|
||||
name: "deleteLabel", labelName: "archived"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: t("tree-context-menu.delete"),
|
||||
command: "deleteNotes",
|
||||
keyboardShortcut: "deleteNotes",
|
||||
uiIcon: "bx bx-trash destructive-action-icon",
|
||||
enabled: isNotRoot && !isHoisted && parentNotSearch && notOptionsOrHelp
|
||||
},
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{ title: t("tree-context-menu.import-into-note"), command: "importIntoNote", uiIcon: "bx bx-import", enabled: notSearch && noSelectedNotes && notOptionsOrHelp },
|
||||
|
||||
{ title: t("tree-context-menu.export"), command: "exportNote", uiIcon: "bx bx-export", enabled: notSearch && noSelectedNotes && notOptionsOrHelp },
|
||||
|
||||
{ title: "----" },
|
||||
{ kind: "separator" },
|
||||
|
||||
{
|
||||
title: `${t("tree-context-menu.search-in-subtree")} <kbd data-command="searchInSubtree"></kbd>`,
|
||||
title: t("tree-context-menu.search-in-subtree"),
|
||||
command: "searchInSubtree",
|
||||
keyboardShortcut: "searchInSubtree",
|
||||
uiIcon: "bx bx-search",
|
||||
enabled: notSearch && noSelectedNotes
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ function makeToast(id: string, message: string): ToastOptions {
|
||||
}
|
||||
|
||||
ws.subscribeToMessages(async (message) => {
|
||||
if (message.taskType !== "deleteNotes") {
|
||||
if (!("taskType" in message) || message.taskType !== "deleteNotes") {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ ws.subscribeToMessages(async (message) => {
|
||||
});
|
||||
|
||||
ws.subscribeToMessages(async (message) => {
|
||||
if (message.taskType !== "undeleteNotes") {
|
||||
if (!("taskType" in message) || message.taskType !== "undeleteNotes") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -256,8 +256,19 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent:
|
||||
</button>
|
||||
`);
|
||||
|
||||
$downloadButton.on("click", () => openService.downloadFileNote(entity.noteId));
|
||||
$openButton.on("click", () => openService.openNoteExternally(entity.noteId, entity.mime));
|
||||
$downloadButton.on("click", (e) => {
|
||||
e.stopPropagation();
|
||||
openService.downloadFileNote(entity.noteId)
|
||||
});
|
||||
$openButton.on("click", async (e) => {
|
||||
const iconEl = $openButton.find("> .bx");
|
||||
iconEl.removeClass("bx bx-link-external");
|
||||
iconEl.addClass("bx bx-loader spin");
|
||||
e.stopPropagation();
|
||||
await openService.openNoteExternally(entity.noteId, entity.mime)
|
||||
iconEl.removeClass("bx bx-loader spin");
|
||||
iconEl.addClass("bx bx-link-external");
|
||||
});
|
||||
// open doesn't work for protected notes since it works through a browser which isn't in protected session
|
||||
$openButton.toggle(!entity.isProtected);
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ async function confirmDeleteNoteBoxWithNote(title: string) {
|
||||
return new Promise<ConfirmDialogResult | undefined>((res) => appContext.triggerCommand("showConfirmDeleteNoteBoxWithNoteDialog", { title, callback: res }));
|
||||
}
|
||||
|
||||
async function prompt(props: PromptDialogOptions) {
|
||||
export async function prompt(props: PromptDialogOptions) {
|
||||
return new Promise<string | null>((res) => appContext.triggerCommand("showPromptDialog", { ...props, callback: res }));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,8 @@
|
||||
import ws from "./ws.js";
|
||||
import appContext from "../components/app_context.js";
|
||||
import { OpenedFileUpdateStatus } from "@triliumnext/commons";
|
||||
|
||||
// TODO: Deduplicate
|
||||
interface Message {
|
||||
type: string;
|
||||
entityType: string;
|
||||
entityId: string;
|
||||
lastModifiedMs: number;
|
||||
filePath: string;
|
||||
}
|
||||
|
||||
const fileModificationStatus: Record<string, Record<string, Message>> = {
|
||||
const fileModificationStatus: Record<string, Record<string, OpenedFileUpdateStatus>> = {
|
||||
notes: {},
|
||||
attachments: {}
|
||||
};
|
||||
@@ -39,7 +31,7 @@ function ignoreModification(entityType: string, entityId: string) {
|
||||
delete fileModificationStatus[entityType][entityId];
|
||||
}
|
||||
|
||||
ws.subscribeToMessages(async (message: Message) => {
|
||||
ws.subscribeToMessages(async message => {
|
||||
if (message.type !== "openedFileUpdated") {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import FAttribute, { type FAttributeRow } from "../entities/fattribute.js";
|
||||
import FAttachment, { type FAttachmentRow } from "../entities/fattachment.js";
|
||||
import type { default as FNote, FNoteRow } from "../entities/fnote.js";
|
||||
import type { EntityChange } from "../server_types.js";
|
||||
import type { OptionNames } from "@triliumnext/commons";
|
||||
|
||||
async function processEntityChanges(entityChanges: EntityChange[]) {
|
||||
const loadResults = new LoadResults(entityChanges);
|
||||
@@ -30,9 +31,8 @@ async function processEntityChanges(entityChanges: EntityChange[]) {
|
||||
continue; // only noise
|
||||
}
|
||||
|
||||
options.set(attributeEntity.name, attributeEntity.value);
|
||||
|
||||
loadResults.addOption(attributeEntity.name);
|
||||
options.set(attributeEntity.name as OptionNames, attributeEntity.value);
|
||||
loadResults.addOption(attributeEntity.name as OptionNames);
|
||||
} else if (ec.entityName === "attachments") {
|
||||
processAttachment(loadResults, ec);
|
||||
} else if (ec.entityName === "blobs") {
|
||||
|
||||
@@ -21,6 +21,7 @@ import dayjs from "dayjs";
|
||||
import type NoteContext from "../components/note_context.js";
|
||||
import type NoteDetailWidget from "../widgets/note_detail.js";
|
||||
import type Component from "../components/component.js";
|
||||
import { formatLogMessage } from "@triliumnext/commons";
|
||||
|
||||
/**
|
||||
* A whole number
|
||||
@@ -455,7 +456,7 @@ export interface Api {
|
||||
/**
|
||||
* Log given message to the log pane in UI
|
||||
*/
|
||||
log(message: string): void;
|
||||
log(message: string | object): void;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -696,7 +697,7 @@ function FrontendScriptApi(this: Api, startNote: FNote, currentNote: FNote, orig
|
||||
this.log = (message) => {
|
||||
const { noteId } = this.startNote;
|
||||
|
||||
message = `${utils.now()}: ${message}`;
|
||||
message = `${utils.now()}: ${formatLogMessage(message)}`;
|
||||
|
||||
console.log(`Script ${noteId}: ${message}`);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import ws from "./ws.js";
|
||||
import utils from "./utils.js";
|
||||
import appContext from "../components/app_context.js";
|
||||
import { t } from "./i18n.js";
|
||||
import { WebSocketMessage } from "@triliumnext/commons";
|
||||
|
||||
type BooleanLike = boolean | "true" | "false";
|
||||
|
||||
@@ -66,7 +67,7 @@ function makeToast(id: string, message: string): ToastOptions {
|
||||
}
|
||||
|
||||
ws.subscribeToMessages(async (message) => {
|
||||
if (message.taskType !== "importNotes") {
|
||||
if (!("taskType" in message) || message.taskType !== "importNotes") {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -87,8 +88,8 @@ ws.subscribeToMessages(async (message) => {
|
||||
}
|
||||
});
|
||||
|
||||
ws.subscribeToMessages(async (message) => {
|
||||
if (message.taskType !== "importAttachments") {
|
||||
ws.subscribeToMessages(async (message: WebSocketMessage) => {
|
||||
if (!("taskType" in message) || message.taskType !== "importAttachments") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { NoteType } from "@triliumnext/commons";
|
||||
import { ViewTypeOptions } from "./note_list_renderer";
|
||||
import FNote from "../entities/fnote";
|
||||
import { ViewTypeOptions } from "../widgets/collections/interface";
|
||||
|
||||
export const byNoteType: Record<Exclude<NoteType, "book">, string | null> = {
|
||||
canvas: null,
|
||||
|
||||
@@ -35,8 +35,7 @@ async function getLinkIcon(noteId: string, viewMode: ViewMode | undefined) {
|
||||
return icon;
|
||||
}
|
||||
|
||||
// TODO: Remove `string` once all the view modes have been mapped.
|
||||
type ViewMode = "default" | "source" | "attachments" | "contextual-help" | string;
|
||||
export type ViewMode = "default" | "source" | "attachments" | "contextual-help";
|
||||
|
||||
export interface ViewScope {
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { AttachmentRow, EtapiTokenRow } from "@triliumnext/commons";
|
||||
import type { AttachmentRow, EtapiTokenRow, OptionNames } from "@triliumnext/commons";
|
||||
import type { AttributeType } from "../entities/fattribute.js";
|
||||
import type { EntityChange } from "../server_types.js";
|
||||
|
||||
@@ -67,7 +67,7 @@ export default class LoadResults {
|
||||
private revisionRows: RevisionRow[];
|
||||
private noteReorderings: string[];
|
||||
private contentNoteIdToComponentId: ContentNoteIdToComponentIdRow[];
|
||||
private optionNames: string[];
|
||||
private optionNames: OptionNames[];
|
||||
private attachmentRows: AttachmentRow[];
|
||||
public hasEtapiTokenChanges: boolean = false;
|
||||
|
||||
@@ -180,11 +180,11 @@ export default class LoadResults {
|
||||
return this.contentNoteIdToComponentId.find((l) => l.noteId === noteId && l.componentId !== componentId);
|
||||
}
|
||||
|
||||
addOption(name: string) {
|
||||
addOption(name: OptionNames) {
|
||||
this.optionNames.push(name);
|
||||
}
|
||||
|
||||
isOptionReloaded(name: string) {
|
||||
isOptionReloaded(name: OptionNames) {
|
||||
return this.optionNames.includes(name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
import type FNote from "../entities/fnote.js";
|
||||
import BoardView from "../widgets/view_widgets/board_view/index.js";
|
||||
import CalendarView from "../widgets/view_widgets/calendar_view.js";
|
||||
import GeoView from "../widgets/view_widgets/geo_view/index.js";
|
||||
import ListOrGridView from "../widgets/view_widgets/list_or_grid_view.js";
|
||||
import TableView from "../widgets/view_widgets/table_view/index.js";
|
||||
import type { ViewModeArgs } from "../widgets/view_widgets/view_mode.js";
|
||||
import type ViewMode from "../widgets/view_widgets/view_mode.js";
|
||||
|
||||
const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board"] as const;
|
||||
export type ArgsWithoutNoteId = Omit<ViewModeArgs, "noteIds">;
|
||||
export type ViewTypeOptions = typeof allViewTypes[number];
|
||||
|
||||
export default class NoteListRenderer {
|
||||
|
||||
private viewType: ViewTypeOptions;
|
||||
private args: ArgsWithoutNoteId;
|
||||
public viewMode?: ViewMode<any>;
|
||||
|
||||
constructor(args: ArgsWithoutNoteId) {
|
||||
this.args = args;
|
||||
this.viewType = this.#getViewType(args.parentNote);
|
||||
}
|
||||
|
||||
#getViewType(parentNote: FNote): ViewTypeOptions {
|
||||
const viewType = parentNote.getLabelValue("viewType");
|
||||
|
||||
if (!(allViewTypes as readonly string[]).includes(viewType || "")) {
|
||||
// when not explicitly set, decide based on the note type
|
||||
return parentNote.type === "search" ? "list" : "grid";
|
||||
} else {
|
||||
return viewType as ViewTypeOptions;
|
||||
}
|
||||
}
|
||||
|
||||
get isFullHeight() {
|
||||
switch (this.viewType) {
|
||||
case "list":
|
||||
case "grid":
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
async renderList() {
|
||||
const args = this.args;
|
||||
const viewMode = this.#buildViewMode(args);
|
||||
this.viewMode = viewMode;
|
||||
await viewMode.beforeRender();
|
||||
return await viewMode.renderList();
|
||||
}
|
||||
|
||||
#buildViewMode(args: ViewModeArgs) {
|
||||
switch (this.viewType) {
|
||||
case "calendar":
|
||||
return new CalendarView(args);
|
||||
case "table":
|
||||
return new TableView(args);
|
||||
case "geoMap":
|
||||
return new GeoView(args);
|
||||
case "board":
|
||||
return new BoardView(args);
|
||||
case "list":
|
||||
case "grid":
|
||||
default:
|
||||
return new ListOrGridView(this.viewType, args);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { t } from "./i18n.js";
|
||||
import froca from "./froca.js";
|
||||
import server from "./server.js";
|
||||
import type { MenuCommandItem, MenuItem, MenuItemBadge } from "../menus/context_menu.js";
|
||||
import type { MenuCommandItem, MenuItem, MenuItemBadge, MenuSeparatorItem } from "../menus/context_menu.js";
|
||||
import type { NoteType } from "../entities/fnote.js";
|
||||
import type { TreeCommandNames } from "../menus/tree_context_menu.js";
|
||||
|
||||
@@ -73,7 +73,7 @@ const BETA_BADGE = {
|
||||
title: t("note_types.beta-feature")
|
||||
};
|
||||
|
||||
const SEPARATOR = { title: "----" };
|
||||
const SEPARATOR: MenuSeparatorItem = { kind: "separator" };
|
||||
|
||||
const creationDateCache = new Map<string, Date>();
|
||||
let rootCreationDate: Date | undefined;
|
||||
@@ -81,8 +81,8 @@ let rootCreationDate: Date | undefined;
|
||||
async function getNoteTypeItems(command?: TreeCommandNames) {
|
||||
const items: MenuItem<TreeCommandNames>[] = [
|
||||
...getBlankNoteTypes(command),
|
||||
...await getBuiltInTemplates(t("note_types.collections"), command, true),
|
||||
...await getBuiltInTemplates(null, command, false),
|
||||
...await getBuiltInTemplates(t("note_types.collections"), command, true),
|
||||
...await getUserTemplates(command)
|
||||
];
|
||||
|
||||
@@ -121,7 +121,10 @@ async function getUserTemplates(command?: TreeCommandNames) {
|
||||
}
|
||||
|
||||
const items: MenuItem<TreeCommandNames>[] = [
|
||||
SEPARATOR
|
||||
{
|
||||
title: t("note_type_chooser.templates"),
|
||||
kind: "header"
|
||||
}
|
||||
];
|
||||
|
||||
for (const templateNote of templateNotes) {
|
||||
@@ -158,8 +161,7 @@ async function getBuiltInTemplates(title: string | null, command: TreeCommandNam
|
||||
if (title) {
|
||||
items.push({
|
||||
title: title,
|
||||
enabled: false,
|
||||
uiIcon: "bx bx-empty"
|
||||
kind: "header"
|
||||
});
|
||||
} else {
|
||||
items.push(SEPARATOR);
|
||||
|
||||
@@ -20,7 +20,7 @@ class Options {
|
||||
this.arr = arr;
|
||||
}
|
||||
|
||||
get(key: string) {
|
||||
get(key: OptionNames) {
|
||||
return this.arr?.[key] as string;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class Options {
|
||||
}
|
||||
}
|
||||
|
||||
getInt(key: string) {
|
||||
getInt(key: OptionNames) {
|
||||
const value = this.arr?.[key];
|
||||
if (typeof value === "number") {
|
||||
return value;
|
||||
@@ -52,7 +52,7 @@ class Options {
|
||||
return null;
|
||||
}
|
||||
|
||||
getFloat(key: string) {
|
||||
getFloat(key: OptionNames) {
|
||||
const value = this.arr?.[key];
|
||||
if (typeof value !== "string") {
|
||||
return null;
|
||||
@@ -60,15 +60,15 @@ class Options {
|
||||
return parseFloat(value);
|
||||
}
|
||||
|
||||
is(key: string) {
|
||||
is(key: OptionNames) {
|
||||
return this.arr[key] === "true";
|
||||
}
|
||||
|
||||
set(key: string, value: OptionValue) {
|
||||
set(key: OptionNames, value: OptionValue) {
|
||||
this.arr[key] = value;
|
||||
}
|
||||
|
||||
async save(key: string, value: OptionValue) {
|
||||
async save(key: OptionNames, value: OptionValue) {
|
||||
this.set(key, value);
|
||||
|
||||
const payload: Record<string, OptionValue> = {};
|
||||
@@ -85,7 +85,7 @@ class Options {
|
||||
await server.put<void>("options", newValues);
|
||||
}
|
||||
|
||||
async toggle(key: string) {
|
||||
async toggle(key: OptionNames) {
|
||||
await this.save(key, (!this.is(key)).toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,11 +107,11 @@ function makeToast(message: Message, title: string, text: string): ToastOptions
|
||||
}
|
||||
|
||||
ws.subscribeToMessages(async (message) => {
|
||||
if (message.taskType !== "protectNotes") {
|
||||
if (!("taskType" in message) || message.taskType !== "protectNotes") {
|
||||
return;
|
||||
}
|
||||
|
||||
const isProtecting = message.data.protect;
|
||||
const isProtecting = message.data?.protect;
|
||||
const title = isProtecting ? t("protected_session.protecting-title") : t("protected_session.unprotecting-title");
|
||||
|
||||
if (message.type === "taskError") {
|
||||
|
||||
@@ -119,11 +119,6 @@ describe("shortcuts", () => {
|
||||
metaKey: options.metaKey || false
|
||||
} as KeyboardEvent);
|
||||
|
||||
it("should match simple key shortcuts", () => {
|
||||
const event = createKeyboardEvent({ key: "a", code: "KeyA" });
|
||||
expect(matchesShortcut(event, "a")).toBe(true);
|
||||
});
|
||||
|
||||
it("should match shortcuts with modifiers", () => {
|
||||
const event = createKeyboardEvent({ key: "a", code: "KeyA", ctrlKey: true });
|
||||
expect(matchesShortcut(event, "ctrl+a")).toBe(true);
|
||||
@@ -148,6 +143,28 @@ describe("shortcuts", () => {
|
||||
expect(matchesShortcut(event, "a")).toBe(false);
|
||||
});
|
||||
|
||||
it("should not match when no modifiers are used", () => {
|
||||
const event = createKeyboardEvent({ key: "a", code: "KeyA" });
|
||||
expect(matchesShortcut(event, "a")).toBe(false);
|
||||
});
|
||||
|
||||
it("should match some keys even with no modifiers", () => {
|
||||
// Bare function keys
|
||||
let event = createKeyboardEvent({ key: "F1", code: "F1" });
|
||||
expect(matchesShortcut(event, "F1")).toBeTruthy();
|
||||
expect(matchesShortcut(event, "f1")).toBeTruthy();
|
||||
|
||||
// Function keys with shift
|
||||
event = createKeyboardEvent({ key: "F1", code: "F1", shiftKey: true });
|
||||
expect(matchesShortcut(event, "Shift+F1")).toBeTruthy();
|
||||
|
||||
// Special keys
|
||||
for (const keyCode of [ "Delete", "Enter" ]) {
|
||||
event = createKeyboardEvent({ key: keyCode, code: keyCode });
|
||||
expect(matchesShortcut(event, keyCode), `Key ${keyCode}`).toBeTruthy();
|
||||
}
|
||||
});
|
||||
|
||||
it("should handle alternative modifier names", () => {
|
||||
const ctrlEvent = createKeyboardEvent({ key: "a", code: "KeyA", ctrlKey: true });
|
||||
expect(matchesShortcut(ctrlEvent, "control+a")).toBe(true);
|
||||
|
||||
@@ -36,10 +36,19 @@ const keyMap: { [key: string]: string[] } = {
|
||||
};
|
||||
|
||||
// Function keys
|
||||
const functionKeyCodes: string[] = [];
|
||||
for (let i = 1; i <= 19; i++) {
|
||||
keyMap[`f${i}`] = [`F${i}`];
|
||||
const keyCode = `F${i}`;
|
||||
functionKeyCodes.push(keyCode);
|
||||
keyMap[`f${i}`] = [ keyCode ];
|
||||
}
|
||||
|
||||
const KEYCODES_WITH_NO_MODIFIER = new Set([
|
||||
"Delete",
|
||||
"Enter",
|
||||
...functionKeyCodes
|
||||
]);
|
||||
|
||||
/**
|
||||
* Check if IME (Input Method Editor) is composing
|
||||
* This is used to prevent keyboard shortcuts from firing during IME composition
|
||||
@@ -162,6 +171,12 @@ export function matchesShortcut(e: KeyboardEvent, shortcut: string): boolean {
|
||||
const expectedShift = modifiers.includes('shift');
|
||||
const expectedMeta = modifiers.includes('meta') || modifiers.includes('cmd') || modifiers.includes('command');
|
||||
|
||||
// Refuse key combinations that don't include modifiers because they interfere with the normal usage of the application.
|
||||
// Some keys such as function keys are an exception.
|
||||
if (!(expectedCtrl || expectedAlt || expectedShift || expectedMeta) && !KEYCODES_WITH_NO_MODIFIER.has(e.code)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return e.ctrlKey === expectedCtrl &&
|
||||
e.altKey === expectedAlt &&
|
||||
e.shiftKey === expectedShift &&
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import ws from "./ws.js";
|
||||
import utils from "./utils.js";
|
||||
|
||||
export interface ToastOptions {
|
||||
id?: string;
|
||||
icon: string;
|
||||
title: string;
|
||||
title?: string;
|
||||
message: string;
|
||||
delay?: number;
|
||||
autohide?: boolean;
|
||||
@@ -12,20 +11,32 @@ export interface ToastOptions {
|
||||
}
|
||||
|
||||
function toast(options: ToastOptions) {
|
||||
const $toast = $(
|
||||
`<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="toast-header">
|
||||
<strong class="me-auto">
|
||||
const $toast = $(options.title
|
||||
? `\
|
||||
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="toast-header">
|
||||
<strong class="me-auto">
|
||||
<span class="bx bx-${options.icon}"></span>
|
||||
<span class="toast-title"></span>
|
||||
</strong>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="toast-body"></div>
|
||||
</div>`
|
||||
: `
|
||||
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="toast-icon">
|
||||
<span class="bx bx-${options.icon}"></span>
|
||||
<span class="toast-title"></span>
|
||||
</strong>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="toast-body"></div>
|
||||
</div>`
|
||||
</div>
|
||||
<div class="toast-body"></div>
|
||||
<div class="toast-header">
|
||||
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>`
|
||||
);
|
||||
|
||||
$toast.find(".toast-title").text(options.title);
|
||||
$toast.toggleClass("no-title", !options.title);
|
||||
$toast.find(".toast-title").text(options.title ?? "");
|
||||
$toast.find(".toast-body").html(options.message);
|
||||
|
||||
if (options.id) {
|
||||
@@ -70,7 +81,6 @@ function showMessage(message: string, delay = 2000) {
|
||||
console.debug(utils.now(), "message:", message);
|
||||
|
||||
toast({
|
||||
title: "Info",
|
||||
icon: "check",
|
||||
message: message,
|
||||
autohide: true,
|
||||
@@ -82,7 +92,6 @@ export function showError(message: string, delay = 10000) {
|
||||
console.log(utils.now(), "error: ", message);
|
||||
|
||||
toast({
|
||||
title: "Error",
|
||||
icon: "alert",
|
||||
message: message,
|
||||
autohide: true,
|
||||
|
||||
@@ -47,27 +47,6 @@ function parseDate(str: string) {
|
||||
}
|
||||
}
|
||||
|
||||
// Source: https://stackoverflow.com/a/30465299/4898894
|
||||
function getMonthsInDateRange(startDate: string, endDate: string) {
|
||||
const start = startDate.split("-");
|
||||
const end = endDate.split("-");
|
||||
const startYear = parseInt(start[0]);
|
||||
const endYear = parseInt(end[0]);
|
||||
const dates: string[] = [];
|
||||
|
||||
for (let i = startYear; i <= endYear; i++) {
|
||||
const endMonth = i != endYear ? 11 : parseInt(end[1]) - 1;
|
||||
const startMon = i === startYear ? parseInt(start[1]) - 1 : 0;
|
||||
|
||||
for (let j = startMon; j <= endMonth; j = j > 12 ? j % 12 || 11 : j + 1) {
|
||||
const month = j + 1;
|
||||
const displayMonth = month < 10 ? "0" + month : month;
|
||||
dates.push([i, displayMonth].join("-"));
|
||||
}
|
||||
}
|
||||
return dates;
|
||||
}
|
||||
|
||||
function padNum(num: number) {
|
||||
return `${num <= 9 ? "0" : ""}${num}`;
|
||||
}
|
||||
@@ -149,6 +128,18 @@ export function isElectron() {
|
||||
return !!(window && window.process && window.process.type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the client is running as a PWA, otherwise `false`.
|
||||
*/
|
||||
export function isPWA() {
|
||||
return (
|
||||
window.matchMedia('(display-mode: standalone)').matches
|
||||
|| window.matchMedia('(display-mode: window-controls-overlay)').matches
|
||||
|| window.navigator.standalone
|
||||
|| window.navigator.windowControlsOverlay
|
||||
);
|
||||
}
|
||||
|
||||
export function isMac() {
|
||||
return navigator.platform.indexOf("Mac") > -1;
|
||||
}
|
||||
@@ -496,7 +487,7 @@ function sleep(time_ms: number) {
|
||||
});
|
||||
}
|
||||
|
||||
function escapeRegExp(str: string) {
|
||||
export function escapeRegExp(str: string) {
|
||||
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
|
||||
}
|
||||
|
||||
@@ -883,7 +874,6 @@ export default {
|
||||
restartDesktopApp,
|
||||
reloadTray,
|
||||
parseDate,
|
||||
getMonthsInDateRange,
|
||||
formatDateISO,
|
||||
formatDateTime,
|
||||
formatTimeInterval,
|
||||
@@ -891,6 +881,7 @@ export default {
|
||||
localNowDateTime,
|
||||
now,
|
||||
isElectron,
|
||||
isPWA,
|
||||
isMac,
|
||||
isCtrlKey,
|
||||
assertArguments,
|
||||
|
||||
@@ -6,9 +6,11 @@ import frocaUpdater from "./froca_updater.js";
|
||||
import appContext from "../components/app_context.js";
|
||||
import { t } from "./i18n.js";
|
||||
import type { EntityChange } from "../server_types.js";
|
||||
import { WebSocketMessage } from "@triliumnext/commons";
|
||||
import toast from "./toast.js";
|
||||
|
||||
type MessageHandler = (message: any) => void;
|
||||
const messageHandlers: MessageHandler[] = [];
|
||||
type MessageHandler = (message: WebSocketMessage) => void;
|
||||
let messageHandlers: MessageHandler[] = [];
|
||||
|
||||
let ws: WebSocket;
|
||||
let lastAcceptedEntityChangeId = window.glob.maxEntityChangeIdAtLoad;
|
||||
@@ -47,10 +49,14 @@ function logInfo(message: string) {
|
||||
window.logError = logError;
|
||||
window.logInfo = logInfo;
|
||||
|
||||
function subscribeToMessages(messageHandler: MessageHandler) {
|
||||
export function subscribeToMessages(messageHandler: MessageHandler) {
|
||||
messageHandlers.push(messageHandler);
|
||||
}
|
||||
|
||||
export function unsubscribeToMessage(messageHandler: MessageHandler) {
|
||||
messageHandlers = messageHandlers.filter(handler => handler !== messageHandler);
|
||||
}
|
||||
|
||||
// used to serialize frontend update operations
|
||||
let consumeQueuePromise: Promise<void> | null = null;
|
||||
|
||||
@@ -273,13 +279,17 @@ function connectWebSocket() {
|
||||
|
||||
async function sendPing() {
|
||||
if (Date.now() - lastPingTs > 30000) {
|
||||
console.log(
|
||||
utils.now(),
|
||||
"Lost websocket connection to the backend. If you keep having this issue repeatedly, you might want to check your reverse proxy (nginx, apache) configuration and allow/unblock WebSocket."
|
||||
);
|
||||
console.warn(utils.now(), "Lost websocket connection to the backend");
|
||||
toast.showPersistent({
|
||||
id: "lost-websocket-connection",
|
||||
title: t("ws.lost-websocket-connection-title"),
|
||||
message: t("ws.lost-websocket-connection-message"),
|
||||
icon: "no-signal"
|
||||
});
|
||||
}
|
||||
|
||||
if (ws.readyState === ws.OPEN) {
|
||||
toast.closePersistent("lost-websocket-connection");
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
type: "ping",
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#center-pane > *:not(.split-note-container-widget),
|
||||
#right-pane,
|
||||
.title-row .note-icon-widget,
|
||||
.title-row .button-widget,
|
||||
.title-row .icon-action,
|
||||
.ribbon-container,
|
||||
.promoted-attributes-widget,
|
||||
.scroll-padding-widget,
|
||||
|
||||
@@ -161,7 +161,8 @@ textarea,
|
||||
color: var(--muted-text-color);
|
||||
}
|
||||
|
||||
.form-group.disabled {
|
||||
.form-group.disabled,
|
||||
.form-checkbox.disabled {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -251,10 +252,6 @@ button.close:hover {
|
||||
color: var(--main-text-color) !important;
|
||||
}
|
||||
|
||||
.note-title[readonly] {
|
||||
background: inherit;
|
||||
}
|
||||
|
||||
.tdialog {
|
||||
display: none;
|
||||
}
|
||||
@@ -293,6 +290,11 @@ button.close:hover {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.icon-action.btn {
|
||||
padding: 0 8px;
|
||||
min-width: unset !important;
|
||||
}
|
||||
|
||||
.ui-widget-content a:not(.ui-tabs-anchor) {
|
||||
color: #337ab7 !important;
|
||||
}
|
||||
@@ -361,21 +363,17 @@ button kbd {
|
||||
.tabulator-popup-container {
|
||||
color: var(--menu-text-color) !important;
|
||||
font-size: inherit;
|
||||
background-color: var(--menu-background-color) !important;
|
||||
background: var(--menu-background-color) !important;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
--bs-dropdown-zindex: 999;
|
||||
--bs-dropdown-link-active-bg: var(--active-item-background-color) !important;
|
||||
}
|
||||
|
||||
.dropdown-menu .dropdown-divider {
|
||||
break-before: avoid;
|
||||
break-after: avoid;
|
||||
}
|
||||
|
||||
body.desktop .dropdown-menu,
|
||||
body.desktop .tabulator-popup-container {
|
||||
border: 1px solid var(--dropdown-border-color);
|
||||
column-rule: 1px solid var(--dropdown-border-color);
|
||||
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
|
||||
animation: dropdown-menu-opening 100ms ease-in;
|
||||
}
|
||||
@@ -417,7 +415,7 @@ body.desktop .tabulator-popup-container {
|
||||
}
|
||||
|
||||
.dropdown-menu a:hover:not(.disabled),
|
||||
.dropdown-item:hover:not(.disabled, .dropdown-item-container),
|
||||
.dropdown-item:hover:not(.disabled, .dropdown-container-item),
|
||||
.tabulator-menu-item:hover {
|
||||
color: var(--hover-item-text-color) !important;
|
||||
background-color: var(--hover-item-background-color) !important;
|
||||
@@ -425,9 +423,9 @@ body.desktop .tabulator-popup-container {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dropdown-item-container,
|
||||
.dropdown-item-container:hover,
|
||||
.dropdown-item-container:active {
|
||||
.dropdown-container-item,
|
||||
.dropdown-item.dropdown-container-item:hover,
|
||||
.dropdown-container-item:active {
|
||||
background: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
@@ -442,9 +440,11 @@ body #context-menu-container .dropdown-item > span {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dropdown-item span.keyboard-shortcut {
|
||||
.dropdown-item span.keyboard-shortcut,
|
||||
.dropdown-item *:not(.keyboard-shortcut) > kbd {
|
||||
flex-grow: 1;
|
||||
text-align: right;
|
||||
padding-inline-start: 12px;
|
||||
}
|
||||
|
||||
.dropdown-menu kbd {
|
||||
@@ -454,8 +454,6 @@ body #context-menu-container .dropdown-item > span {
|
||||
box-shadow: none;
|
||||
padding-bottom: 0;
|
||||
padding: 0;
|
||||
flex-grow: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dropdown-item,
|
||||
@@ -464,6 +462,12 @@ body #context-menu-container .dropdown-item > span {
|
||||
border: 1px solid transparent !important;
|
||||
}
|
||||
|
||||
/* This is a workaround for Firefox not supporting break-before / break-after: avoid on columns.
|
||||
* It usually wraps a menu item followed by a separator / header and another menu item. */
|
||||
.dropdown-no-break {
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
.dropdown-item.disabled,
|
||||
.dropdown-item.disabled kbd {
|
||||
color: #aaa !important;
|
||||
@@ -471,9 +475,9 @@ body #context-menu-container .dropdown-item > span {
|
||||
|
||||
.dropdown-item.active,
|
||||
.dropdown-item:focus {
|
||||
color: var(--active-item-text-color) !important;
|
||||
background-color: var(--active-item-background-color) !important;
|
||||
border-color: var(--active-item-border-color) !important;
|
||||
color: var(--active-item-text-color);
|
||||
background-color: var(--active-item-background-color);
|
||||
border-color: var(--active-item-border-color);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@@ -1137,6 +1141,26 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.toast.no-title {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.toast.no-title .toast-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(--bs-toast-padding-y) var(--bs-toast-padding-x);
|
||||
}
|
||||
|
||||
.toast.no-title .toast-body {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.toast.no-title .toast-header {
|
||||
background-color: unset !important;
|
||||
}
|
||||
|
||||
.ck-mentions .ck-button {
|
||||
font-size: var(--detail-font-size) !important;
|
||||
padding: 5px;
|
||||
@@ -1468,7 +1492,7 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
color: var(--launcher-pane-text-color);
|
||||
background: transparent;
|
||||
background-color: transparent;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -1872,11 +1896,6 @@ textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.jump-to-note-results .aa-dropdown-menu .aa-suggestion:hover,
|
||||
.jump-to-note-results .aa-dropdown-menu .aa-cursor {
|
||||
background-color: var(--hover-item-background-color, #f8f9fa);
|
||||
}
|
||||
|
||||
/* Command palette styling */
|
||||
.jump-to-note-dialog .command-suggestion {
|
||||
display: flex;
|
||||
@@ -2006,12 +2025,16 @@ body.zen .ribbon-container:not(:has(.classic-toolbar-widget.visible)),
|
||||
body.zen .ribbon-container:has(.classic-toolbar-widget.visible) .ribbon-top-row,
|
||||
body.zen .ribbon-container .ribbon-body:not(:has(.classic-toolbar-widget.visible)),
|
||||
body.zen .note-icon-widget,
|
||||
body.zen .title-row .button-widget,
|
||||
body.zen .title-row .icon-action,
|
||||
body.zen .floating-buttons-children > *:not(.bx-edit-alt),
|
||||
body.zen .action-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.zen .split-note-container-widget > .gutter {
|
||||
display: unset !important;
|
||||
}
|
||||
|
||||
body.zen #launcher-pane {
|
||||
position: absolute !important;
|
||||
top: 0 !important;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
:root {
|
||||
--theme-style: dark;
|
||||
|
||||
--main-font-family: Montserrat;
|
||||
--main-font-family: Montserrat, sans-serif;
|
||||
--main-font-size: normal;
|
||||
|
||||
--tree-font-family: Montserrat;
|
||||
--tree-font-family: Montserrat, sans-serif;
|
||||
--tree-font-size: normal;
|
||||
|
||||
--detail-font-family: Montserrat;
|
||||
--detail-font-family: Montserrat, sans-serif;
|
||||
--detail-font-size: normal;
|
||||
|
||||
--monospace-font-family: JetBrainsLight;
|
||||
--monospace-font-family: JetBrainsLight, monospace;
|
||||
--monospace-font-size: normal;
|
||||
|
||||
--main-background-color: #333;
|
||||
|
||||
@@ -5,16 +5,16 @@ html {
|
||||
/* either light or dark, colored theme with darker tones are also dark, used e.g. for note map node colors */
|
||||
--theme-style: light;
|
||||
|
||||
--main-font-family: Montserrat;
|
||||
--main-font-family: Montserrat, sans-serif;
|
||||
--main-font-size: normal;
|
||||
|
||||
--tree-font-family: Montserrat;
|
||||
--tree-font-family: Montserrat, sans-serif;
|
||||
--tree-font-size: normal;
|
||||
|
||||
--detail-font-family: Montserrat;
|
||||
--detail-font-family: Montserrat, sans-serif;
|
||||
--detail-font-size: normal;
|
||||
|
||||
--monospace-font-family: JetBrainsLight;
|
||||
--monospace-font-family: JetBrainsLight, monospace;
|
||||
--monospace-font-size: normal;
|
||||
|
||||
--main-background-color: white;
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
--launcher-pane-horiz-border-color: rgb(22, 22, 22);
|
||||
--launcher-pane-horiz-background-color: #282828;
|
||||
--launcher-pane-horiz-text-color: #909090;
|
||||
--launcher-pane-horiz-text-color: #b8b8b8;
|
||||
--launcher-pane-horiz-button-hover-color: #ffffff;
|
||||
--launcher-pane-horiz-button-hover-background: #ffffff1c;
|
||||
--launcher-pane-horiz-button-hover-shadow: unset;
|
||||
@@ -175,6 +175,7 @@
|
||||
|
||||
--active-tab-background-color: #ffffff1c;
|
||||
--active-tab-hover-background-color: var(--active-tab-background-color);
|
||||
--active-tab-icon-color: #a9a9a9;
|
||||
--active-tab-text-color: #ffffffcd;
|
||||
--active-tab-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -1px -1px 3px rgba(0, 0, 0, 0.4);
|
||||
--active-tab-dragging-shadow: var(--active-tab-shadow), 0 0 20px rgba(0, 0, 0, 0.4);
|
||||
|
||||
@@ -168,6 +168,7 @@
|
||||
|
||||
--active-tab-background-color: white;
|
||||
--active-tab-hover-background-color: var(--active-tab-background-color);
|
||||
--active-tab-icon-color: gray;
|
||||
--active-tab-text-color: black;
|
||||
--active-tab-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -1px -1px 3px rgba(0, 0, 0, 0.05);
|
||||
--active-tab-dragging-shadow: var(--active-tab-shadow), 0 0 20px rgba(0, 0, 0, 0.1);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
--detail-font-family: var(--main-font-family);
|
||||
--detail-font-size: normal;
|
||||
|
||||
--monospace-font-family: JetBrainsLight;
|
||||
--monospace-font-family: JetBrainsLight, monospace;
|
||||
--monospace-font-size: normal;
|
||||
|
||||
--left-pane-item-selected-shadow-size: 2px;
|
||||
@@ -102,10 +102,6 @@ body.backdrop-effects-disabled {
|
||||
font-size: 0.9rem !important;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
--scrollbar-background-color: var(--menu-background-color);
|
||||
}
|
||||
|
||||
body.mobile .dropdown-menu {
|
||||
backdrop-filter: var(--dropdown-backdrop-filter);
|
||||
border-radius: var(--dropdown-border-radius);
|
||||
@@ -154,12 +150,22 @@ body.desktop .dropdown-submenu .dropdown-menu {
|
||||
.dropdown-item,
|
||||
body.mobile .dropdown-submenu .dropdown-toggle {
|
||||
padding: 2px 2px 2px 8px !important;
|
||||
padding-inline-end: 16px !important;
|
||||
padding-inline-end: 22px !important;
|
||||
/* Note: the right padding should also accommodate the submenu arrow. */
|
||||
border-radius: 6px;
|
||||
cursor: default !important;
|
||||
}
|
||||
|
||||
:root .dropdown-item:focus-visible {
|
||||
outline: 2px solid var(--input-focus-outline-color) !important;
|
||||
background-color: transparent;
|
||||
color: unset;
|
||||
}
|
||||
|
||||
:root .dropdown-item:active {
|
||||
background: unset;
|
||||
}
|
||||
|
||||
body.mobile .dropdown-submenu {
|
||||
padding: 0 !important;
|
||||
}
|
||||
@@ -289,6 +295,20 @@ body.mobile .dropdown-menu .dropdown-item.submenu-open .dropdown-toggle::after {
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
|
||||
/* Dropdown item button (used in zoom buttons in global menu) */
|
||||
|
||||
li.dropdown-item a.dropdown-item-button {
|
||||
border: unset;
|
||||
}
|
||||
|
||||
li.dropdown-item a.dropdown-item-button.bx {
|
||||
color: var(--menu-text-color) !important;
|
||||
}
|
||||
|
||||
li.dropdown-item a.dropdown-item-button:focus-visible {
|
||||
outline: 2px solid var(--input-focus-outline-color) !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* TOASTS
|
||||
*/
|
||||
@@ -307,30 +327,49 @@ body.mobile .dropdown-menu .dropdown-item.submenu-open .dropdown-toggle::after {
|
||||
--modal-control-button-color: var(--bs-toast-color);
|
||||
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
flex-direction: column;
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
#toast-container .toast .toast-header {
|
||||
padding: 0 !important;
|
||||
background: transparent !important;
|
||||
border-bottom: none;
|
||||
color: var(--toast-text-color) !important;
|
||||
}
|
||||
|
||||
#toast-container .toast .toast-header strong {
|
||||
/* The title of the toast is no longer displayed */
|
||||
display: none;
|
||||
#toast-container .toast .toast-header strong > * {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#toast-container .toast .toast-header .btn-close {
|
||||
margin: 0 var(--bs-toast-padding-x) 0 12px;
|
||||
margin: 0 0 0 12px;
|
||||
}
|
||||
|
||||
#toast-container .toast.no-title {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#toast-container .toast .toast-body {
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
#toast-container .toast:not(.no-title) .bx {
|
||||
margin-right: 0.5em;
|
||||
font-size: 1.1em;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
#toast-container .toast.no-title .bx {
|
||||
margin-right: 0;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
#toast-container .toast.no-title .toast-body {
|
||||
padding-top: var(--bs-toast-padding-x);
|
||||
color: var(--toast-text-color);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -84,7 +84,7 @@ button.btn.btn-success kbd {
|
||||
*/
|
||||
|
||||
:root .icon-action:not(.global-menu-button),
|
||||
:root .btn.tn-tool-button,
|
||||
:root .tn-tool-button,
|
||||
:root .btn-group .tn-tool-button:not(:last-child),
|
||||
:root .btn-group .tn-tool-button:last-child {
|
||||
width: var(--icon-button-size);
|
||||
@@ -96,6 +96,11 @@ button.btn.btn-success kbd {
|
||||
color: var(--icon-button-color);
|
||||
}
|
||||
|
||||
:root .btn-group .icon-action:last-child {
|
||||
border-top-left-radius: unset !important;
|
||||
border-bottom-left-radius: unset !important;
|
||||
}
|
||||
|
||||
.btn-group .tn-tool-button + .tn-tool-button {
|
||||
margin-left: 4px !important;
|
||||
}
|
||||
@@ -192,8 +197,8 @@ input[type="password"]:focus,
|
||||
input[type="date"]:focus,
|
||||
input[type="time"]:focus,
|
||||
input[type="datetime-local"]:focus,
|
||||
:root input.ck.ck-input-text:focus,
|
||||
:root input.ck.ck-input-number:focus,
|
||||
:root input.ck.ck-input-text:not([readonly="true"]):focus,
|
||||
:root input.ck.ck-input-number:not([readonly="true"]):focus,
|
||||
textarea.form-control:focus,
|
||||
textarea:focus,
|
||||
:root textarea.ck.ck-textarea:focus,
|
||||
|
||||
@@ -109,6 +109,11 @@
|
||||
* NOTE MAP
|
||||
*/
|
||||
|
||||
.note-detail-note-map .fixnodes-type-switcher .tn-tool-button,
|
||||
.note-map-widget .fixnodes-type-switcher .tn-tool-button {
|
||||
padding: unset;
|
||||
}
|
||||
|
||||
.note-detail-note-map .fixnodes-type-switcher .tn-tool-button.toggled {
|
||||
color: var(--tab-close-button-hover-background);
|
||||
}
|
||||
|
||||
@@ -94,18 +94,17 @@ div.promoted-attributes-container {
|
||||
|
||||
/* Note type dropdown */
|
||||
|
||||
div.note-type-dropdown .check {
|
||||
ul.note-type-dropdown .check {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
ul.note-type-dropdown li.dropdown-item {
|
||||
--menu-item-icon-vert-offset: 0;
|
||||
}
|
||||
|
||||
/* Editability dropdown */
|
||||
|
||||
div.editability-dropdown a.dropdown-item {
|
||||
padding: 4px 16px 4px 0;
|
||||
align-items: start !important;
|
||||
}
|
||||
|
||||
.editability-dropdown .dropdown-item .check {
|
||||
ul.editability-dropdown li.dropdown-item > div {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ body.layout-horizontal > .horizontal {
|
||||
}
|
||||
|
||||
#launcher-pane .launcher-button:focus,
|
||||
#launcher-pane .global-menu button:focus {
|
||||
#launcher-pane .global-menu :focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@@ -304,18 +304,6 @@ body.layout-horizontal > .horizontal {
|
||||
color: var(--tooltip-foreground-color) !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Global menu
|
||||
*/
|
||||
|
||||
.global-menu div.zoom-buttons a {
|
||||
border: unset;
|
||||
}
|
||||
|
||||
.global-menu div.zoom-buttons a.bx {
|
||||
color: var(--menu-text-color) !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Calendar
|
||||
*/
|
||||
@@ -348,6 +336,21 @@ body.layout-horizontal > .horizontal {
|
||||
--select-arrow-svg: initial; /* Disable the dropdown arrow */
|
||||
}
|
||||
|
||||
/* Week number column */
|
||||
.calendar-dropdown-widget .calendar-week-number {
|
||||
transform: rotate(270deg);
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
opacity: 0.5;
|
||||
font-size: 1em;
|
||||
font-weight: 700;
|
||||
letter-spacing: .5pt;
|
||||
}
|
||||
|
||||
.calendar-dropdown-widget .calendar-week-number::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.calendar-dropdown-widget .calendar-header button {
|
||||
margin: 0 !important;
|
||||
@@ -562,15 +565,21 @@ div.quick-search .search-button.show {
|
||||
transition: background-color 100ms ease-out !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Quick search results
|
||||
*/
|
||||
|
||||
div.quick-search .dropdown-menu {
|
||||
--quick-search-item-delimiter-color: transparent;
|
||||
--menu-item-icon-vert-offset: -.065em;
|
||||
}
|
||||
|
||||
/*
|
||||
* TO FIX: The quick search results dropdown has a backdrop issue with the tree panel
|
||||
* when background effects are enabled in Electron.
|
||||
* As a temporary workaround, the backdrop and transparency are disabled for the
|
||||
* vertical layout.
|
||||
*/
|
||||
body.layout-vertical.background-effects div.quick-search .dropdown-menu {
|
||||
--menu-background-color: var(--menu-background-color-no-backdrop) !important;
|
||||
}
|
||||
|
||||
/* Item */
|
||||
.quick-search .dropdown-menu *.dropdown-item {
|
||||
padding: 8px 12px !important;
|
||||
@@ -866,7 +875,10 @@ body.mobile .fancytree-node > span {
|
||||
}
|
||||
|
||||
.tab-row-container .toggle-button {
|
||||
margin: 6px 10px !important;
|
||||
--icon-button-size: 30px;
|
||||
--icon-button-icon-ratio: .6;
|
||||
|
||||
margin: 3px 6px auto 8px !important;
|
||||
}
|
||||
|
||||
.tab-row-container {
|
||||
@@ -896,7 +908,7 @@ body.electron.background-effects.layout-horizontal .tab-row-container .toggle-bu
|
||||
bottom: 0;
|
||||
left: -10px;
|
||||
right: -10px;
|
||||
top: 29px;
|
||||
top: 32px;
|
||||
height: 1px;
|
||||
border-bottom: 1px solid var(--launcher-pane-horiz-border-color);
|
||||
}
|
||||
@@ -1043,6 +1055,14 @@ body.layout-horizontal .tab-row-widget .note-tab .note-tab-wrapper {
|
||||
transform: translate3d(var(--tab-first-item-horiz-offset), 0, 0);
|
||||
}
|
||||
|
||||
:root .tab-row-widget .note-tab .note-tab-icon {
|
||||
padding-right: 5px; /* The gap between the icon and the title */
|
||||
}
|
||||
|
||||
.tab-row-widget .note-tab[active] .note-tab-icon {
|
||||
color: var(--active-tab-icon-color);
|
||||
}
|
||||
|
||||
.tab-row-widget .note-tab .note-tab-title {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
@@ -1390,6 +1410,13 @@ div.promoted-attribute-cell .multiplicity:has(span) {
|
||||
margin-left: 8px;
|
||||
margin-right: calc(var(--pa-card-padding-left) - var(--pa-card-padding-right));
|
||||
font-size: 0; /* Prevent whitespaces creating a gap between buttons */
|
||||
display: flex;
|
||||
}
|
||||
|
||||
div.promoted-attribute-cell .multiplicity:has(span) span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
5
apps/client/src/translations/ar/translation.json
Normal file
5
apps/client/src/translations/ar/translation.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"about": {
|
||||
"title": "حول تريليوم للملاحظات"
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@
|
||||
"sat": "Ds",
|
||||
"sun": "Dg",
|
||||
"january": "Gener",
|
||||
"febuary": "Febrer",
|
||||
"february": "Febrer",
|
||||
"march": "Març",
|
||||
"april": "Abril",
|
||||
"may": "Maig",
|
||||
|
||||
@@ -276,7 +276,12 @@
|
||||
"mime": "MIME 类型: ",
|
||||
"file_size": "文件大小:",
|
||||
"preview": "预览:",
|
||||
"preview_not_available": "无法预览此类型的笔记。"
|
||||
"preview_not_available": "无法预览此类型的笔记。",
|
||||
"diff_on": "显示差异",
|
||||
"diff_off": "显示内容",
|
||||
"diff_on_hint": "点击以显示笔记源代码差异",
|
||||
"diff_off_hint": "点击以显示笔记内容",
|
||||
"diff_not_available": "差异不可用。"
|
||||
},
|
||||
"sort_child_notes": {
|
||||
"sort_children_by": "按...排序子笔记",
|
||||
@@ -577,7 +582,7 @@
|
||||
"cannot_find_day_note": "无法找到日记",
|
||||
"cannot_find_week_note": "无法找到周记",
|
||||
"january": "一月",
|
||||
"febuary": "二月",
|
||||
"february": "二月",
|
||||
"march": "三月",
|
||||
"april": "四月",
|
||||
"may": "五月",
|
||||
@@ -587,7 +592,18 @@
|
||||
"september": "九月",
|
||||
"october": "十月",
|
||||
"november": "十一月",
|
||||
"december": "十二月"
|
||||
"december": "十二月",
|
||||
"week_previous": "上周",
|
||||
"week_next": "下周",
|
||||
"month_previous": "上个月",
|
||||
"month_next": "下个月",
|
||||
"year": "年",
|
||||
"year_previous": "上一年",
|
||||
"year_next": "明年",
|
||||
"today": "今天",
|
||||
"week": "周",
|
||||
"month": "月",
|
||||
"list": "列表"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "关闭此面板"
|
||||
@@ -748,7 +764,8 @@
|
||||
"book_properties": "集合属性",
|
||||
"table": "表格",
|
||||
"geo-map": "地理地图",
|
||||
"board": "看板"
|
||||
"board": "看板",
|
||||
"include_archived_notes": "展示归档笔记"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "今天还没有编辑过的笔记...",
|
||||
@@ -949,7 +966,9 @@
|
||||
"no_attachments": "此笔记没有附件。"
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "此类型为书籍的笔记没有任何子笔记,因此没有内容显示。请参阅 <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> 了解详情。"
|
||||
"no_children_help": "此类型为书籍的笔记没有任何子笔记,因此没有内容显示。请参阅 <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> 了解详情。",
|
||||
"drag_locked_title": "锁定编辑",
|
||||
"drag_locked_message": "无法拖拽,因为集合已被锁定编辑。"
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "在这里输入您的代码笔记内容..."
|
||||
@@ -1334,7 +1353,7 @@
|
||||
"oauth_title": "OAuth/OpenID 认证",
|
||||
"oauth_description": "OpenID 是一种标准化方式,允许您使用其他服务(如 Google)的账号登录网站来验证您的身份。默认的身份提供者是 Google,但您可以更改为任何其他 OpenID 提供者。点击<a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">这里</a>了解更多信息。请参阅这些 <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">指南</a> 通过 Google 设置 OpenID 服务。",
|
||||
"oauth_description_warning": "要启用 OAuth/OpenID,您需要设置 config.ini 文件中的 OAuth/OpenID 基础 URL、客户端 ID 和客户端密钥,并重新启动应用程序。如果要从环境变量设置,请设置 TRILIUM_OAUTH_BASE_URL、TRILIUM_OAUTH_CLIENT_ID 和 TRILIUM_OAUTH_CLIENT_SECRET 环境变量。",
|
||||
"oauth_missing_vars": "缺少以下设置项:{{variables}}",
|
||||
"oauth_missing_vars": "缺少以下设置项:{{-variables}}",
|
||||
"oauth_user_account": "用户账号: ",
|
||||
"oauth_user_email": "用户邮箱: ",
|
||||
"oauth_user_not_logged_in": "未登录!"
|
||||
@@ -1407,7 +1426,7 @@
|
||||
"button-tree-map": "树形地图"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "在新标签页中打开 <kbd>Ctrl+Click</kbd>",
|
||||
"open-in-a-new-tab": "在新标签页中打开",
|
||||
"open-in-a-new-split": "在新分栏中打开",
|
||||
"insert-note-after": "在后面插入笔记",
|
||||
"insert-child-note": "插入子笔记",
|
||||
@@ -1437,7 +1456,9 @@
|
||||
"converted-to-attachments": "{{count}} 个笔记已被转换为附件。",
|
||||
"convert-to-attachment-confirm": "确定要将选中的笔记转换为其父笔记的附件吗?",
|
||||
"duplicate": "复制",
|
||||
"open-in-popup": "快速编辑"
|
||||
"open-in-popup": "快速编辑",
|
||||
"archive": "归档",
|
||||
"unarchive": "解压"
|
||||
},
|
||||
"shared_info": {
|
||||
"help_link": "访问 <a href=\"https://triliumnext.github.io/Docs/Wiki/sharing.html\">wiki</a> 获取帮助。",
|
||||
@@ -1602,7 +1623,9 @@
|
||||
"ws": {
|
||||
"sync-check-failed": "同步检查失败!",
|
||||
"consistency-checks-failed": "一致性检查失败!请查看日志了解详细信息。",
|
||||
"encountered-error": "遇到错误 \"{{message}}\",请查看控制台。"
|
||||
"encountered-error": "遇到错误 \"{{message}}\",请查看控制台。",
|
||||
"lost-websocket-connection-title": "与服务器的连线中断",
|
||||
"lost-websocket-connection-message": "检查您的反向代理(如 nginx 或 Apache)设置以确保 Websocket 连线没有被阻挡。"
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "请求的笔记 '{{requestedNote}}' 位于聚焦的笔记 '{{hoistedNote}}' 的子树之外,您必须取消聚焦才能访问该笔记。是否继续取消聚焦?"
|
||||
@@ -1678,7 +1701,7 @@
|
||||
"native-title-bar": "原生标题栏",
|
||||
"native-title-bar-description": "对于 Windows 和 macOS,关闭原生标题栏可使应用程序看起来更紧凑。在 Linux 上,保留原生标题栏可以更好地与系统集成。",
|
||||
"background-effects": "启用背景效果(仅适用于 Windows 11)",
|
||||
"background-effects-description": "Mica 效果为应用窗口添加模糊且时尚的背景,营造出深度感和现代外观。",
|
||||
"background-effects-description": "Mica 效果为应用窗口添加模糊且时尚的背景,营造出深度感和现代外观。「原生标题栏」必須被禁用。",
|
||||
"restart-app-button": "重启应用程序以查看更改",
|
||||
"zoom-factor": "缩放系数"
|
||||
},
|
||||
@@ -1931,7 +1954,11 @@
|
||||
"editorfeatures": {
|
||||
"title": "功能",
|
||||
"emoji_completion_enabled": "启用表情自动补全",
|
||||
"note_completion_enabled": "启用笔记自动补全"
|
||||
"note_completion_enabled": "启用笔记自动补全",
|
||||
"emoji_completion_description": "如果启用,表情可以轻易地经由输入 `:` 加上表情名称来插入。",
|
||||
"note_completion_description": "如果启用,导向笔记的链接可以经由输入 `@` 加上笔记标题来创建。",
|
||||
"slash_commands_enabled": "启用斜杠命令",
|
||||
"slash_commands_description": "如果启用,可以经由输入 `/` 来触发命令,如插入换行符或标题。"
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "新增行",
|
||||
@@ -1967,14 +1994,21 @@
|
||||
"delete_row": "删除行"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "删除笔记",
|
||||
"delete-note": "删除笔记...",
|
||||
"move-to": "移动到",
|
||||
"insert-above": "在上方插入",
|
||||
"insert-below": "在下方插入",
|
||||
"delete-column": "删除列",
|
||||
"delete-column-confirmation": "确定要删除此列吗?此列下所有笔记中对应的属性也将被删除。",
|
||||
"new-item": "新增项目",
|
||||
"add-column": "添加列"
|
||||
"add-column": "添加列",
|
||||
"archive-note": "存档笔记",
|
||||
"unarchive-note": "解压笔记",
|
||||
"new-item-placeholder": "输入笔记标题...",
|
||||
"add-column-placeholder": "请输入列名...",
|
||||
"edit-note-title": "点击编辑笔记标题",
|
||||
"edit-column-title": "点击编辑列标题",
|
||||
"remove-from-board": "从看板上移除"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "树形:{{name}}",
|
||||
@@ -2021,6 +2055,15 @@
|
||||
"title": "性能",
|
||||
"enable-motion": "启用过渡和动画",
|
||||
"enable-shadows": "启用阴影",
|
||||
"enable-backdrop-effects": "启用菜单、弹窗和面板的背景效果"
|
||||
"enable-backdrop-effects": "启用菜单、弹窗和面板的背景效果",
|
||||
"enable-smooth-scroll": "启用平滑滚动",
|
||||
"app-restart-required": "(需重启程序以应用更改)"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "第 {{startIndex}} 页 - 第 {{endIndex}} 页",
|
||||
"total_notes": "{{count}} 笔记"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "出现错误无法显示内容。"
|
||||
}
|
||||
}
|
||||
|
||||
41
apps/client/src/translations/cs/translation.json
Normal file
41
apps/client/src/translations/cs/translation.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"about": {
|
||||
"title": "O Trilium Notes",
|
||||
"homepage": "Domovská stránka:",
|
||||
"app_version": "Verze aplikace:",
|
||||
"db_version": "Verze DB:",
|
||||
"sync_version": "Verze sync:",
|
||||
"build_date": "Datum sestavení:",
|
||||
"build_revision": "Revize sestavení:",
|
||||
"data_directory": "Datový adresář:"
|
||||
},
|
||||
"toast": {
|
||||
"critical-error": {
|
||||
"title": "Kritická chyba",
|
||||
"message": "Nastala kritická chyba která aplikaci brání ve spuštění:\n\n{{message}}\n\nPravděpodobně neočekávaným způsobem selhal skript. Pokuste se restartovat aplikaci v safe módu a problém napravit."
|
||||
},
|
||||
"widget-error": {
|
||||
"title": "Nepodařilo se inicializovat widget",
|
||||
"message-custom": "Uživatelský widget z poznámky s ID \"{{id}}\" a názvem \"{{title}}\" nemohl být inicializován z důvodu: \n\n{{message}}",
|
||||
"message-unknown": "Neznámý widget nemohl být inicializován z důvodu:\n\n{{message}}"
|
||||
},
|
||||
"bundle-error": {
|
||||
"title": "Načtení uživatelského skriptu selhalo",
|
||||
"message": "Uživatelský skript z poznámky s ID \"{{id}}\" a názvem \"{{title}}\" nemohl být spuštěn z důvodu: \n\n{{message}}"
|
||||
}
|
||||
},
|
||||
"ai_llm": {
|
||||
"n_notes_queued_0": "{{ count }} poznámka ve frontě k indexaci",
|
||||
"n_notes_queued_1": "{{ count }} poznámky ve frontě k indexaci",
|
||||
"n_notes_queued_2": "{{ count }} poznámek ve frontě k indexaci",
|
||||
"notes_indexed_0": "{{ count }} poznámka indexována",
|
||||
"notes_indexed_1": "{{ count }} poznámky indexovány",
|
||||
"notes_indexed_2": "{{ count }} poznámek indexováno"
|
||||
},
|
||||
"add_link": {
|
||||
"add_link": "Přidat odkaz",
|
||||
"help_on_links": "Nápověda k odkazům",
|
||||
"note": "Poznámka",
|
||||
"search_note": "hledat poznámku podle názvu"
|
||||
}
|
||||
}
|
||||
@@ -276,7 +276,12 @@
|
||||
"preview": "Vorschau:",
|
||||
"preview_not_available": "Für diesen Notiztyp ist keine Vorschau verfügbar.",
|
||||
"restore_button": "Wiederherstellen",
|
||||
"delete_button": "Löschen"
|
||||
"delete_button": "Löschen",
|
||||
"diff_on": "Zeige Differenz",
|
||||
"diff_off": "Zeige Inhalt",
|
||||
"diff_on_hint": "Klicke, um die Differenz des Notiz-Quellcodes zu zeigen",
|
||||
"diff_off_hint": "Klicke, um den Notizinhalt zu zeigen",
|
||||
"diff_not_available": "Differenz-Abgleich ist nicht verfügbar."
|
||||
},
|
||||
"sort_child_notes": {
|
||||
"sort_children_by": "Unternotizen sortieren nach...",
|
||||
@@ -576,7 +581,7 @@
|
||||
"sun": "So",
|
||||
"cannot_find_day_note": "Tagesnotiz kann nicht gefunden werden",
|
||||
"january": "Januar",
|
||||
"febuary": "Februar",
|
||||
"february": "Februar",
|
||||
"march": "März",
|
||||
"april": "April",
|
||||
"may": "Mai",
|
||||
@@ -587,7 +592,18 @@
|
||||
"october": "Oktober",
|
||||
"november": "November",
|
||||
"december": "Dezember",
|
||||
"cannot_find_week_note": "Wochennotiz kann nicht gefunden werden"
|
||||
"cannot_find_week_note": "Wochennotiz kann nicht gefunden werden",
|
||||
"week": "Woche",
|
||||
"week_previous": "vorherige Woche",
|
||||
"week_next": "nächste Woche",
|
||||
"month": "Monat",
|
||||
"month_previous": "vorheriger Monat",
|
||||
"month_next": "nächster Monat",
|
||||
"year": "Jahr",
|
||||
"year_previous": "vorheriges Jahr",
|
||||
"year_next": "nächstes Jahr",
|
||||
"list": "Liste",
|
||||
"today": "Heute"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Schließe diesen Bereich"
|
||||
@@ -745,7 +761,8 @@
|
||||
"book_properties": "Sammlungseigenschaften",
|
||||
"table": "Tabelle",
|
||||
"geo-map": "Weltkarte",
|
||||
"board": "Tafel"
|
||||
"board": "Tafel",
|
||||
"include_archived_notes": "Zeige archivierte Notizen"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "An diesem Tag wurden noch keine Notizen bearbeitet...",
|
||||
@@ -946,7 +963,9 @@
|
||||
"no_attachments": "Diese Notiz enthält keine Anhänge."
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "Diese Notiz mit dem Notiztyp Buch besitzt keine Unternotizen, deshalb ist nichts zum Anzeigen vorhanden. Siehe <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">Wiki</a> für mehr Details."
|
||||
"no_children_help": "Diese Notiz mit dem Notiztyp Buch besitzt keine Unternotizen, deshalb ist nichts zum Anzeigen vorhanden. Siehe <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">Wiki</a> für mehr Details.",
|
||||
"drag_locked_title": "Für Bearbeitung gesperrt",
|
||||
"drag_locked_message": "Das Ziehen ist nicht möglich, da die Sammlung für die Bearbeitung gesperrt ist."
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "Gebe hier den Inhalt deiner Codenotiz ein..."
|
||||
@@ -1371,7 +1390,7 @@
|
||||
"button-tree-map": "Baumkarte"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "In neuem Tab öffnen <kbd>Strg+Klick</kbd>",
|
||||
"open-in-a-new-tab": "In neuem Tab öffnen",
|
||||
"open-in-a-new-split": "In neuem Split öffnen",
|
||||
"insert-note-after": "Notiz dahinter einfügen",
|
||||
"insert-child-note": "Unternotiz einfügen",
|
||||
@@ -1401,7 +1420,9 @@
|
||||
"apply-bulk-actions": "Massenaktionen anwenden",
|
||||
"converted-to-attachments": "{{count}} Notizen wurden als Anhang konvertiert.",
|
||||
"convert-to-attachment-confirm": "Bist du sicher, dass du die ausgewählten Notizen in Anhänge ihrer übergeordneten Notizen umwandeln möchtest?",
|
||||
"open-in-popup": "Schnellbearbeitung"
|
||||
"open-in-popup": "Schnellbearbeitung",
|
||||
"archive": "Archiviere",
|
||||
"unarchive": "Entarchivieren"
|
||||
},
|
||||
"shared_info": {
|
||||
"shared_publicly": "Diese Notiz ist öffentlich geteilt auf {{- link}}.",
|
||||
@@ -1566,7 +1587,9 @@
|
||||
"ws": {
|
||||
"sync-check-failed": "Synchronisationsprüfung fehlgeschlagen!",
|
||||
"consistency-checks-failed": "Konsistenzprüfung fehlgeschlagen! Siehe Logs für Details.",
|
||||
"encountered-error": "Fehler „{{message}}“ aufgetreten, siehe Konsole für Details."
|
||||
"encountered-error": "Fehler „{{message}}“ aufgetreten, siehe Konsole für Details.",
|
||||
"lost-websocket-connection-title": "Verbindung zum Server verloren",
|
||||
"lost-websocket-connection-message": "Überprüfe die Konfiguration des Reverse-Proxys (z. B. nginx oder Apache), um sicherzustellen, dass WebSocket-Verbindungen zugelassen und nicht blockiert werden."
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "Die angeforderte Notiz ‚{{requestedNote}}‘ befindet sich außerhalb des hoisted Bereichs der Notiz ‚{{hoistedNote}}‘. Du musst sie unhoisten, um auf die Notiz zuzugreifen. Möchtest du mit dem Unhoisting fortfahren?"
|
||||
@@ -1642,7 +1665,7 @@
|
||||
"native-title-bar": "Native Anwendungsleiste",
|
||||
"native-title-bar-description": "In Windows und macOS, sorgt das Deaktivieren der nativen Anwendungsleiste für ein kompakteres Aussehen. Unter Linux, sorgt das Aktivieren der nativen Anwendungsleiste für eine bessere Integration mit anderen Teilen des Systems.",
|
||||
"background-effects": "Hintergrundeffekte aktivieren (nur Windows 11)",
|
||||
"background-effects-description": "Der Mica Effekt fügt einen unscharfen, stylischen Hintergrund in Anwendungsfenstern ein. Dieser erzeugt Tiefe und ein modernes Auftreten.",
|
||||
"background-effects-description": "Der Mica Effekt fügt einen unscharfen, stylischen Hintergrund in Anwendungsfenstern ein. Dieser erzeugt Tiefe und ein modernes Auftreten. \"Native Titelleiste\" muss deaktiviert sein.",
|
||||
"restart-app-button": "Anwendung neustarten um Änderungen anzuwenden",
|
||||
"zoom-factor": "Zoomfaktor"
|
||||
},
|
||||
@@ -1839,7 +1862,9 @@
|
||||
"title": "Leistung",
|
||||
"enable-motion": "Aktiviere Übergänge und Animationen",
|
||||
"enable-shadows": "Aktiviere Schatten",
|
||||
"enable-backdrop-effects": "Aktiviere Hintergrundeffekte für Menüs, Pop-up Fenster und Panele"
|
||||
"enable-backdrop-effects": "Aktiviere Hintergrundeffekte für Menüs, Pop-up Fenster und Panele",
|
||||
"enable-smooth-scroll": "Aktiviere sanftes Scrollen",
|
||||
"app-restart-required": "(Ein Neustart der Anwendung ist erforderlich, damit die Änderungen wirksam werden)"
|
||||
},
|
||||
"code-editor-options": {
|
||||
"title": "Editor"
|
||||
@@ -1878,7 +1903,7 @@
|
||||
"oauth_title": "OAuth/OpenID",
|
||||
"oauth_description": "OpenID ist ein standardisiertes Verfahren, mit dem Sie sich über ein Konto eines anderen Dienstes, beispielsweise Google, bei Websites anmelden können, um Ihre Identität zu bestätigen. Der Standardaussteller ist Google, Sie können jedoch jeden anderen OpenID-Anbieter auswählen. Weitere Informationen finden Sie <a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">hier</a>. Befolgen Sie diese <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">Anweisungen</a>, um einen OpenID-Dienst über Google einzurichten.",
|
||||
"oauth_description_warning": "Um OAuth/OpenID zu aktivieren, müssen Sie die OAuth/OpenID-Basis-URL, die Client-ID und den Client-Secret in der Datei config.ini festlegen und die Anwendung neu starten. Wenn Sie die Einstellungen über Umgebungsvariablen vornehmen möchten, legen Sie bitte TRILIUM_OAUTH_BASE_URL, TRILIUM_OAUTH_CLIENT_ID und TRILIUM_OAUTH_CLIENT_SECRET fest.",
|
||||
"oauth_missing_vars": "Fehlende Einstellung: {{variables}}",
|
||||
"oauth_missing_vars": "Fehlende Einstellung: {{-variables}}",
|
||||
"oauth_user_account": "Benutzerkonto: ",
|
||||
"oauth_user_email": "Benutzer E-Mail: ",
|
||||
"oauth_user_not_logged_in": "Nicht eingeloggt!"
|
||||
@@ -1943,7 +1968,11 @@
|
||||
"editorfeatures": {
|
||||
"title": "Funktionen",
|
||||
"emoji_completion_enabled": "Emoji-Autovervollständigung aktivieren",
|
||||
"note_completion_enabled": "Automatisches Vervollständigen von Notizen aktivieren"
|
||||
"note_completion_enabled": "Automatisches Vervollständigen von Notizen aktivieren",
|
||||
"emoji_completion_description": "Wenn aktiviert, können Emojis ganz einfach in den Text eingefügt werden, indem man \":\" gefolgt vom Namen eines Emojis eingibt.",
|
||||
"note_completion_description": "Wenn aktiviert, können Links zu Notizen erstellt werden, indem man \"@\" gefolgt vom Titel einer Notiz eingibt.",
|
||||
"slash_commands_enabled": "Aktiviere Slash-Befehle",
|
||||
"slash_commands_description": "Wenn aktiviert, können Bearbeitungsbefehle wie das Einfügen von Zeilenumbrüchen oder Überschriften durch Eingabe von \"/\" aktiviert werden."
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "Neue Zeile",
|
||||
@@ -1979,14 +2008,21 @@
|
||||
"delete_row": "Zeile entfernen"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "Lösche Notiz",
|
||||
"delete-note": "Lösche Notiz...",
|
||||
"move-to": "Verschiebe zu",
|
||||
"insert-above": "Oberhalb einfügen",
|
||||
"insert-below": "Unterhalb einfügen",
|
||||
"delete-column": "Spalte entfernen",
|
||||
"delete-column-confirmation": "Soll die Spalte wirklich gelöscht werden? Abhängige Attribute werden auch in den Notizen unter dieser Spalte gelöscht.",
|
||||
"new-item": "Neuer Artikel",
|
||||
"add-column": "Spalte hinzufügen"
|
||||
"add-column": "Spalte hinzufügen",
|
||||
"remove-from-board": "Entferne von Tafel",
|
||||
"archive-note": "archiviere Notiz",
|
||||
"unarchive-note": "entarchiviere Notiz",
|
||||
"new-item-placeholder": "Notiz Titel eingeben...",
|
||||
"add-column-placeholder": "Spaltenname eingeben...",
|
||||
"edit-note-title": "Klicke zum Editieren des Notiz-Titels",
|
||||
"edit-column-title": "Klicke zum Editieren des Spalten-Titels"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "Struktur: {{name}}",
|
||||
@@ -2024,5 +2060,12 @@
|
||||
},
|
||||
"units": {
|
||||
"percentage": "%"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "Seite {{startIndex}} von {{endIndex}}",
|
||||
"total_notes": "{{count}} Notizen"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Aufgrund eines Fehlers können keine Inhalte angezeigt werden."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -582,7 +582,7 @@
|
||||
"cannot_find_day_note": "Cannot find day note",
|
||||
"cannot_find_week_note": "Cannot find week note",
|
||||
"january": "January",
|
||||
"febuary": "February",
|
||||
"february": "February",
|
||||
"march": "March",
|
||||
"april": "April",
|
||||
"may": "May",
|
||||
@@ -592,7 +592,18 @@
|
||||
"september": "September",
|
||||
"october": "October",
|
||||
"november": "November",
|
||||
"december": "December"
|
||||
"december": "December",
|
||||
"week": "Week",
|
||||
"week_previous": "Previous week",
|
||||
"week_next": "Next week",
|
||||
"month": "Month",
|
||||
"month_previous": "Previous month",
|
||||
"month_next": "Next month",
|
||||
"year": "Year",
|
||||
"year_previous": "Previous year",
|
||||
"year_next": "Next year",
|
||||
"list": "List",
|
||||
"today": "Today"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Close this pane"
|
||||
@@ -753,7 +764,8 @@
|
||||
"calendar": "Calendar",
|
||||
"table": "Table",
|
||||
"geo-map": "Geo Map",
|
||||
"board": "Board"
|
||||
"board": "Board",
|
||||
"include_archived_notes": "Show archived notes"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "No edited notes on this day yet...",
|
||||
@@ -954,7 +966,9 @@
|
||||
"no_attachments": "This note has no attachments."
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "This collection doesn't have any child notes so there's nothing to display. See <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> for details."
|
||||
"no_children_help": "This collection doesn't have any child notes so there's nothing to display. See <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> for details.",
|
||||
"drag_locked_title": "Locked for editing",
|
||||
"drag_locked_message": "Dragging not allowed since the collection is locked for editing."
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "Type the content of your code note here..."
|
||||
@@ -1503,7 +1517,7 @@
|
||||
"oauth_title": "OAuth/OpenID",
|
||||
"oauth_description": "OpenID is a standardized way to let you log into websites using an account from another service, like Google, to verify your identity. The default issuer is Google, but you can change it to any other OpenID provider. Check <a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">here</a> for more information. Follow these <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">instructions</a> to setup an OpenID service through Google.",
|
||||
"oauth_description_warning": "To enable OAuth/OpenID, you need to set the OAuth/OpenID base URL, client ID and client secret in the config.ini file and restart the application. If you want to set from environment variables, please set TRILIUM_OAUTH_BASE_URL, TRILIUM_OAUTH_CLIENT_ID and TRILIUM_OAUTH_CLIENT_SECRET.",
|
||||
"oauth_missing_vars": "Missing settings: {{variables}}",
|
||||
"oauth_missing_vars": "Missing settings: {{-variables}}",
|
||||
"oauth_user_account": "User Account: ",
|
||||
"oauth_user_email": "User Email: ",
|
||||
"oauth_user_not_logged_in": "Not logged in!"
|
||||
@@ -1576,10 +1590,12 @@
|
||||
"button-tree-map": "Tree map"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "Open in a new tab <kbd>Ctrl+Click</kbd>",
|
||||
"open-in-a-new-tab": "Open in a new tab",
|
||||
"open-in-a-new-split": "Open in a new split",
|
||||
"insert-note-after": "Insert note after",
|
||||
"insert-child-note": "Insert child note",
|
||||
"archive": "Archive",
|
||||
"unarchive": "Unarchive",
|
||||
"delete": "Delete",
|
||||
"search-in-subtree": "Search in subtree",
|
||||
"hoist-note": "Hoist note",
|
||||
@@ -1771,7 +1787,9 @@
|
||||
"ws": {
|
||||
"sync-check-failed": "Sync check failed!",
|
||||
"consistency-checks-failed": "Consistency checks failed! See logs for details.",
|
||||
"encountered-error": "Encountered error \"{{message}}\", check out the console."
|
||||
"encountered-error": "Encountered error \"{{message}}\", check out the console.",
|
||||
"lost-websocket-connection-title": "Lost connection to the server",
|
||||
"lost-websocket-connection-message": "Check your reverse proxy (e.g. nginx or Apache) configuration to ensure WebSocket connections are properly allowed and not being blocked."
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "Requested note '{{requestedNote}}' is outside of hoisted note '{{hoistedNote}}' subtree and you must unhoist to access the note. Do you want to proceed with unhoisting?"
|
||||
@@ -1847,7 +1865,7 @@
|
||||
"native-title-bar": "Native title bar",
|
||||
"native-title-bar-description": "For Windows and macOS, keeping the native title bar off makes the application look more compact. On Linux, keeping the native title bar on integrates better with the rest of the system.",
|
||||
"background-effects": "Enable background effects (Windows 11 only)",
|
||||
"background-effects-description": "The Mica effect adds a blurred, stylish background to app windows, creating depth and a modern look.",
|
||||
"background-effects-description": "The Mica effect adds a blurred, stylish background to app windows, creating depth and a modern look. \"Native title bar\" must be disabled.",
|
||||
"restart-app-button": "Restart the application to view the changes",
|
||||
"zoom-factor": "Zoom factor"
|
||||
},
|
||||
@@ -1946,7 +1964,11 @@
|
||||
"editorfeatures": {
|
||||
"title": "Features",
|
||||
"emoji_completion_enabled": "Enable Emoji auto-completion",
|
||||
"note_completion_enabled": "Enable note auto-completion"
|
||||
"emoji_completion_description": "If enabled, emojis can be easily inserted into text by typing `:`, followed by the name of an emoji.",
|
||||
"note_completion_enabled": "Enable note auto-completion",
|
||||
"note_completion_description": "If enabled, links to notes can be created by typing `@` followed by the title of a note.",
|
||||
"slash_commands_enabled": "Enable slash commands",
|
||||
"slash_commands_description": "If enabled, editing commands such as inserting line breaks or headings can be toggled by typing `/`."
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "New row",
|
||||
@@ -1982,14 +2004,21 @@
|
||||
"delete_row": "Delete row"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "Delete Note",
|
||||
"delete-note": "Delete note...",
|
||||
"remove-from-board": "Remove from board",
|
||||
"archive-note": "Archive note",
|
||||
"unarchive-note": "Unarchive note",
|
||||
"move-to": "Move to",
|
||||
"insert-above": "Insert above",
|
||||
"insert-below": "Insert below",
|
||||
"delete-column": "Delete column",
|
||||
"delete-column-confirmation": "Are you sure you want to delete this column? The corresponding attribute will be deleted in the notes under this column as well.",
|
||||
"new-item": "New item",
|
||||
"add-column": "Add Column"
|
||||
"new-item-placeholder": "Enter note title...",
|
||||
"add-column": "Add Column",
|
||||
"add-column-placeholder": "Enter column name...",
|
||||
"edit-note-title": "Click to edit note title",
|
||||
"edit-column-title": "Click to edit column title"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "Tree: {{name}}",
|
||||
@@ -2031,5 +2060,12 @@
|
||||
},
|
||||
"units": {
|
||||
"percentage": "%"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "Page of {{startIndex}} - {{endIndex}}",
|
||||
"total_notes": "{{count}} notes"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Unable to show content due to an error."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -276,7 +276,12 @@
|
||||
"mime": "MIME: ",
|
||||
"file_size": "Tamaño del archivo:",
|
||||
"preview": "Vista previa:",
|
||||
"preview_not_available": "La vista previa no está disponible para este tipo de notas."
|
||||
"preview_not_available": "La vista previa no está disponible para este tipo de notas.",
|
||||
"diff_off": "Mostrar contenido",
|
||||
"diff_on": "Mostrar diferencia",
|
||||
"diff_off_hint": "Haga clic para mostrar el contenido de la nota",
|
||||
"diff_not_available": "Diferencias no disponibles.",
|
||||
"diff_on_hint": "Haga clic para ver las diferencias"
|
||||
},
|
||||
"sort_child_notes": {
|
||||
"sort_children_by": "Ordenar hijos por...",
|
||||
@@ -577,7 +582,7 @@
|
||||
"cannot_find_day_note": "No se puede encontrar la nota del día",
|
||||
"cannot_find_week_note": "No se puede encontrar la nota de la semana",
|
||||
"january": "Enero",
|
||||
"febuary": "Febrero",
|
||||
"february": "Febrero",
|
||||
"march": "Marzo",
|
||||
"april": "Abril",
|
||||
"may": "Mayo",
|
||||
@@ -587,7 +592,18 @@
|
||||
"september": "Septiembre",
|
||||
"october": "Octubre",
|
||||
"november": "Noviembre",
|
||||
"december": "Diciembre"
|
||||
"december": "Diciembre",
|
||||
"week": "Semana",
|
||||
"week_previous": "Semana anterior",
|
||||
"week_next": "Semana siguiente",
|
||||
"month": "Mes",
|
||||
"month_previous": "Mes anterior",
|
||||
"month_next": "Mes siguiente",
|
||||
"year": "Año",
|
||||
"year_previous": "Año anterior",
|
||||
"year_next": "Año siguiente",
|
||||
"list": "Lista",
|
||||
"today": "Hoy"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Cerrar este panel"
|
||||
@@ -748,7 +764,8 @@
|
||||
"book_properties": "Propiedades de colección",
|
||||
"table": "Tabla",
|
||||
"geo-map": "Mapa Geo",
|
||||
"board": "Tablero"
|
||||
"board": "Tablero",
|
||||
"include_archived_notes": "Mostrar notas archivadas"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "Aún no hay notas editadas en este día...",
|
||||
@@ -949,7 +966,9 @@
|
||||
"no_attachments": "Esta nota no tiene archivos adjuntos."
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "Esta nota de tipo libro no tiene ninguna subnota así que no hay nada que mostrar. Véa la <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> para más detalles."
|
||||
"no_children_help": "Esta nota de tipo libro no tiene ninguna subnota así que no hay nada que mostrar. Véa la <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> para más detalles.",
|
||||
"drag_locked_title": "Bloqueado para edición",
|
||||
"drag_locked_message": "No se permite Arrastrar pues la colección está bloqueada para edición."
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "Escriba el contenido de su nota de código aquí..."
|
||||
@@ -1490,7 +1509,7 @@
|
||||
"oauth_title": "OAuth/OpenID",
|
||||
"oauth_description": "OpenID es una forma estandarizada de permitirle iniciar sesión en sitios web utilizando una cuenta de otro servicio, como Google, para verificar su identidad. Siga estas <a href = \"https://developers.google.com/identity/openid-connect/openid-connect\">instrucciones</a> para configurar un servicio OpenID a través de Google.",
|
||||
"oauth_description_warning": "Para habilitar OAuth/OpenID, necesita establecer la URL base de OAuth/OpenID, ID de cliente y secreto de cliente en el archivo config.ini y reiniciar la aplicación. Si desea establecerlas desde variables de ambiente, por favor establezca TRILIUM_OAUTH_BASE_URL, TRILIUM_OAUTH_CLIENT_ID y TRILIUM_OAUTH_CLIENT_SECRET.",
|
||||
"oauth_missing_vars": "Ajustes faltantes: {{variables}}",
|
||||
"oauth_missing_vars": "Ajustes faltantes: {{-variables}}",
|
||||
"oauth_user_account": "Cuenta de usuario: ",
|
||||
"oauth_user_email": "Correo electrónico de usuario: ",
|
||||
"oauth_user_not_logged_in": "¡No ha iniciado sesión!"
|
||||
@@ -1563,7 +1582,7 @@
|
||||
"button-tree-map": "Mapa de Árbol"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "Abrir en nueva pestaña <kbd>Ctrl+Click</kbd>",
|
||||
"open-in-a-new-tab": "Abrir en nueva pestaña",
|
||||
"open-in-a-new-split": "Abrir en nueva división",
|
||||
"insert-note-after": "Insertar nota después de",
|
||||
"insert-child-note": "Insertar subnota",
|
||||
@@ -1593,7 +1612,9 @@
|
||||
"apply-bulk-actions": "Aplicar acciones en lote",
|
||||
"converted-to-attachments": "{{count}} notas han sido convertidas en archivos adjuntos.",
|
||||
"convert-to-attachment-confirm": "¿Está seguro que desea convertir las notas seleccionadas en archivos adjuntos de sus notas padres?",
|
||||
"open-in-popup": "Edición rápida"
|
||||
"open-in-popup": "Edición rápida",
|
||||
"archive": "Archivar",
|
||||
"unarchive": "Desarchivar"
|
||||
},
|
||||
"shared_info": {
|
||||
"shared_publicly": "Esta nota está compartida públicamente en {{- link}}",
|
||||
@@ -1676,7 +1697,8 @@
|
||||
"hoist-this-note-workspace": "Anclar esta nota (espacio de trabajo)",
|
||||
"refresh-saved-search-results": "Refrescar resultados de búsqueda guardados",
|
||||
"create-child-note": "Crear subnota",
|
||||
"unhoist": "Desanclar"
|
||||
"unhoist": "Desanclar",
|
||||
"toggle-sidebar": "Alternar barra lateral"
|
||||
},
|
||||
"title_bar_buttons": {
|
||||
"window-on-top": "Mantener esta ventana en la parte superior"
|
||||
@@ -1751,13 +1773,15 @@
|
||||
"undeleting-notes-finished-successfully": "La recuperación de notas finalizó exitosamente."
|
||||
},
|
||||
"frontend_script_api": {
|
||||
"async_warning": "Está pasando una función asíncrona a `api.runOnBackend ()` que probablemente no funcionará como pretendía.",
|
||||
"sync_warning": "Estás pasando una función sincrónica a `api.runasynconbackendwithmanualTransactionHandling ()`, \\ n while debería usar `api.runonbackend ()` en su lugar."
|
||||
"async_warning": "Está pasando una función asíncrona a `api.runOnBackend ()` que probablemente no funcionará como pretendía.\\nO haga la función sincrónica (removiendo la palabra `async`), o use `api.runAsyncOnBackendWithManualTransactionHandling()`.",
|
||||
"sync_warning": "Estás pasando una función sincrónica a `api.runasynconbackendwithmanualTransactionHandling ()`, \\n while debería usar `api.runonbackend ()` en su lugar."
|
||||
},
|
||||
"ws": {
|
||||
"sync-check-failed": "¡La comprobación de sincronización falló!",
|
||||
"consistency-checks-failed": "¡Las comprobaciones de consistencia fallaron! Vea los registros para más detalles.",
|
||||
"encountered-error": "Error encontrado \"{{message}}\", compruebe la consola."
|
||||
"encountered-error": "Error encontrado \"{{message}}\", compruebe la consola.",
|
||||
"lost-websocket-connection-title": "Se ha perdido la conexión con el servidor",
|
||||
"lost-websocket-connection-message": "Compruebe la configuración de su proxy inverso (por ejemplo, nginx o Apache) para asegurarse de que las conexiones WebSocket están correctamente permitidas y no están bloqueadas."
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "La nota requerida '{{requestedNote}}' está fuera del subárbol de la nota anclada '{{hoistedNote}}' y debe desanclarla para acceder a la nota. ¿Desea proceder con el desanclaje?"
|
||||
@@ -1833,7 +1857,7 @@
|
||||
"native-title-bar": "Barra de título nativa",
|
||||
"native-title-bar-description": "Para Windows y macOS, quitar la barra de título nativa hace que la aplicación se vea más compacta. En Linux, mantener la barra de título nativa hace que se integre mejor con el resto del sistema.",
|
||||
"background-effects": "Habilitar efectos de fondo (sólo en Windows 11)",
|
||||
"background-effects-description": "El efecto Mica agrega un fondo borroso y elegante a las ventanas de aplicaciones, creando profundidad y un aspecto moderno.",
|
||||
"background-effects-description": "El efecto Mica agrega un fondo borroso y elegante a las ventanas de la aplicación, creando profundidad y un aspecto moderno. \"Título nativo de la barra\" debe deshabilitarse.",
|
||||
"restart-app-button": "Reiniciar la aplicación para ver los cambios",
|
||||
"zoom-factor": "Factor de zoom"
|
||||
},
|
||||
@@ -1943,14 +1967,20 @@
|
||||
"delete_row": "Eliminar fila"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "Eliminar nota",
|
||||
"delete-note": "Eliminar nota...",
|
||||
"move-to": "Mover a",
|
||||
"insert-above": "Insertar arriba",
|
||||
"insert-below": "Insertar abajo",
|
||||
"delete-column": "Eliminar columna",
|
||||
"delete-column-confirmation": "¿Seguro que desea eliminar esta columna? El atributo correspondiente también se eliminará de las notas de esta columna.",
|
||||
"add-column": "Añadir columna",
|
||||
"new-item": "Nuevo elemento"
|
||||
"new-item": "Nuevo elemento",
|
||||
"archive-note": "Archivar nota",
|
||||
"unarchive-note": "Desarchivar nota",
|
||||
"new-item-placeholder": "Ingresar título de la nota...",
|
||||
"add-column-placeholder": "Ingresar título de la columna...",
|
||||
"edit-note-title": "Haga clic para editar el título de la nota",
|
||||
"edit-column-title": "Haga clic para editar el título de la columna"
|
||||
},
|
||||
"content_renderer": {
|
||||
"open_externally": "Abrir externamente"
|
||||
@@ -1978,7 +2008,11 @@
|
||||
"editorfeatures": {
|
||||
"note_completion_enabled": "Activar autocompletado de notas",
|
||||
"emoji_completion_enabled": "Activar autocompletado de emojis",
|
||||
"title": "Funciones"
|
||||
"title": "Funciones",
|
||||
"emoji_completion_description": "Si está habilitado, los emojis pueden fácilmente insertarse en el texto escribiendo `:`, seguido del nombre de un emoji.",
|
||||
"note_completion_description": "Si está habilitado, los vínculos a notas pueden crearse escribiendo `@` seguido del título de una nota.",
|
||||
"slash_commands_enabled": "Habilitar comandos de barra",
|
||||
"slash_commands_description": "Si está habilitado, editar comandos como insertar saltos de línea o títulos, puede alternarse escribiendo `/`."
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "Árbol:{{name}}",
|
||||
@@ -2012,7 +2046,9 @@
|
||||
"title": "Rendimiento",
|
||||
"enable-motion": "Habilitar transiciones y animaciones",
|
||||
"enable-shadows": "Activar sombras",
|
||||
"enable-backdrop-effects": "Habilitar efectos de fondo para menús, ventanas emergentes y paneles"
|
||||
"enable-backdrop-effects": "Habilitar efectos de fondo para menús, ventanas emergentes y paneles",
|
||||
"enable-smooth-scroll": "Habilitar desplazamiento suave",
|
||||
"app-restart-required": "(es necesario reiniciar la aplicación para que el cambio surta efecto)"
|
||||
},
|
||||
"settings": {
|
||||
"related_settings": "Configuración relacionada"
|
||||
@@ -2023,5 +2059,9 @@
|
||||
},
|
||||
"units": {
|
||||
"percentage": "%"
|
||||
},
|
||||
"pagination": {
|
||||
"total_notes": "{{count}} notas",
|
||||
"page_title": "Página de {{startIndex}} - {{endIndex}}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
},
|
||||
"widget-error": {
|
||||
"title": "Widgetin luonti epäonnistui"
|
||||
},
|
||||
"bundle-error": {
|
||||
"title": "Mukautetun skriptin lataus epäonnistui"
|
||||
}
|
||||
},
|
||||
"add_link": {
|
||||
|
||||
@@ -576,7 +576,7 @@
|
||||
"sun": "Dim",
|
||||
"cannot_find_day_note": "Note journalière introuvable",
|
||||
"january": "Janvier",
|
||||
"febuary": "Février",
|
||||
"february": "Février",
|
||||
"march": "Mars",
|
||||
"april": "Avril",
|
||||
"may": "Mai",
|
||||
@@ -587,7 +587,18 @@
|
||||
"october": "Octobre",
|
||||
"november": "Novembre",
|
||||
"december": "Décembre",
|
||||
"cannot_find_week_note": "Impossible de trouver la note de la semaine"
|
||||
"cannot_find_week_note": "Impossible de trouver la note de la semaine",
|
||||
"week": "Semaine",
|
||||
"week_previous": "Semaine précédente",
|
||||
"week_next": "Semaine suivante",
|
||||
"month": "Mois",
|
||||
"month_previous": "Mois précédent",
|
||||
"month_next": "Mois suivant",
|
||||
"year": "Année",
|
||||
"year_previous": "Année précédente",
|
||||
"year_next": "Année suivante",
|
||||
"list": "Liste",
|
||||
"today": "Aujourd'hui"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Fermer ce volet"
|
||||
@@ -732,7 +743,8 @@
|
||||
"note_type": "Type de note",
|
||||
"editable": "Modifiable",
|
||||
"basic_properties": "Propriétés de base",
|
||||
"language": "Langage"
|
||||
"language": "Langage",
|
||||
"configure_code_notes": "Configurer les notes de code..."
|
||||
},
|
||||
"book_properties": {
|
||||
"view_type": "Type d'affichage",
|
||||
@@ -747,7 +759,8 @@
|
||||
"book_properties": "Propriétés de la collection",
|
||||
"table": "Tableau",
|
||||
"geo-map": "Carte géographique",
|
||||
"board": "Tableau de bord"
|
||||
"board": "Tableau de bord",
|
||||
"include_archived_notes": "Afficher les notes archivées"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "Aucune note modifiée ce jour-là...",
|
||||
@@ -948,7 +961,9 @@
|
||||
"no_attachments": "Cette note ne contient aucune pièce jointe."
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "Cette note de type Livre n'a aucune note enfant, donc il n'y a rien à afficher. Consultez le <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> pour plus de détails."
|
||||
"no_children_help": "Cette note de type Livre n'a aucune note enfant, donc il n'y a rien à afficher. Consultez le <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> pour plus de détails.",
|
||||
"drag_locked_title": "Edition verrouillée",
|
||||
"drag_locked_message": "Le glisser-déposer n'est pas autorisé car l'édition de cette collection est verrouillé."
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "Saisir le contenu de votre note de code ici..."
|
||||
@@ -1357,7 +1372,7 @@
|
||||
"button-tree-map": "Carte de l'arborescence"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "Ouvrir dans un nouvel onglet <kbd>Ctrl+Clic</kbd>",
|
||||
"open-in-a-new-tab": "Ouvrir dans un nouvel onglet",
|
||||
"open-in-a-new-split": "Ouvrir dans une nouvelle division",
|
||||
"insert-note-after": "Insérer une note après",
|
||||
"insert-child-note": "Insérer une note enfant",
|
||||
@@ -1690,6 +1705,72 @@
|
||||
"anthropic_configuration": "Configuration Anthropic",
|
||||
"voyage_configuration": "Configuration IA Voyage",
|
||||
"voyage_url_description": "Défaut: https://api.voyageai.com/v1",
|
||||
"ollama_configuration": "Configuration Ollama"
|
||||
"ollama_configuration": "Configuration Ollama",
|
||||
"total_notes": "Notes totales",
|
||||
"progress": "Progrès",
|
||||
"queued_notes": "Notes dans la file d'attente",
|
||||
"refresh_stats": "Rafraîchir les statistiques",
|
||||
"enable_ai_features": "Activer les fonctionnalités IA/LLM",
|
||||
"enable_ai_description": "Activer les fonctionnalités IA telles que le résumé des notes, la génération de contenu et autres fonctionnalités LLM",
|
||||
"openai_tab": "OpenAI",
|
||||
"anthropic_tab": "Anthropic",
|
||||
"voyage_tab": "Voyage AI",
|
||||
"ollama_tab": "Ollama",
|
||||
"enable_ai": "Activer les fonctionnalités IA/LLM",
|
||||
"enable_ai_desc": "Activer les fonctionnalités IA telles que le résumé des notes, la génération de contenu et autres fonctionnalités LLM",
|
||||
"provider_configuration": "Configuration du fournisseur IA",
|
||||
"provider_precedence_description": "Liste de fournisseurs séparés par virgule, par ordre de préférence (ex. 'openai,anthopic,ollama')",
|
||||
"temperature": "Température",
|
||||
"temperature_description": "Contrôle de l'aléatoirité dans les réponses (0 = déterministe, 2 = hasard maximum)",
|
||||
"system_prompt": "Prompt système",
|
||||
"system_prompt_description": "Prompt système par défaut pour toutes les intéractions IA",
|
||||
"openai_configuration": "Configuration OpenAI",
|
||||
"openai_settings": "Options OpenAI",
|
||||
"api_key": "Clef API",
|
||||
"url": "URL de base",
|
||||
"model": "Modèle",
|
||||
"openai_api_key_description": "Votre clef API OpenAI pour accéder à leurs services IA",
|
||||
"anthropic_api_key_description": "Votre clef API Anthropic pour accéder aux modèles Claude",
|
||||
"default_model": "Modèle par défaut",
|
||||
"openai_model_description": "Exemples : gpt-4o, gpt-4-turbo, gpt-3.5-turbo",
|
||||
"base_url": "URL de base",
|
||||
"openai_url_description": "Défaut : https://api.openai.com/v1",
|
||||
"anthropic_settings": "Réglages Anthropic",
|
||||
"enable_ollama": "Activer Ollama",
|
||||
"enable_ollama_description": "Activer Ollama comme modèle d'IA local",
|
||||
"ollama_url": "URL Ollama",
|
||||
"ollama_model": "Modèle Ollama",
|
||||
"refresh_models": "Rafraîchir les modèles",
|
||||
"refreshing_models": "Mise à jour...",
|
||||
"enable_automatic_indexing": "Activer l'indexage automatique",
|
||||
"rebuild_index": "Rafraîchir l'index",
|
||||
"rebuild_index_error": "Erreur dans le démarrage du rafraichissement de l'index. Veuillez consulter les logs pour plus de détails.",
|
||||
"note_title": "Titre de la note",
|
||||
"error": "Erreur",
|
||||
"last_attempt": "Dernier essai",
|
||||
"actions": "Actions",
|
||||
"retry": "Réessayer",
|
||||
"partial": "Complété à {{ percentage }}%",
|
||||
"retry_queued": "Note ajoutée à la file d'attente",
|
||||
"retry_failed": "Echec de l'ajout de la note à la file d'attente",
|
||||
"max_notes_per_llm_query": "Notes maximum par requête",
|
||||
"max_notes_per_llm_query_description": "Nombre maximum de notes similaires à inclure dans le contexte IA",
|
||||
"active_providers": "Fournisseurs actifs",
|
||||
"disabled_providers": "Fournisseurs désactivés",
|
||||
"remove_provider": "Retirer le fournisseur de la recherche",
|
||||
"similarity_threshold": "Seuil de similarité",
|
||||
"similarity_threshold_description": "Seuil de similarité minimum (0-1) pour que inclure les notes dans le contexte d'une requête IA",
|
||||
"reprocess_index": "Rafraîchir l'index de recherche",
|
||||
"reprocessing_index": "Mise à jour...",
|
||||
"reprocess_index_started": "L'optimisation de l'indice de recherche à commencer en arrière-plan",
|
||||
"reprocess_index_error": "Erreur dans le rafraichissement de l'indice de recherche"
|
||||
},
|
||||
"ui-performance": {
|
||||
"title": "Performance",
|
||||
"enable-motion": "Activer les transitions et animations",
|
||||
"enable-shadows": "Activer les ombres",
|
||||
"enable-backdrop-effects": "Activer les effets d'arrière plan pour les menus, popups et panneaux",
|
||||
"enable-smooth-scroll": "Active le défilement fluide",
|
||||
"app-restart-required": "(redémarrer l'application pour appliquer les changements)"
|
||||
}
|
||||
}
|
||||
|
||||
1
apps/client/src/translations/hr/translation.json
Normal file
1
apps/client/src/translations/hr/translation.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -31,7 +31,7 @@
|
||||
"link_title_mirrors": "il titolo del collegamento rispecchia il titolo della nota corrente",
|
||||
"link_title_arbitrary": "il titolo del collegamento può essere modificato arbitrariamente",
|
||||
"link_title": "Titolo del collegamento",
|
||||
"button_add_link": "Aggiungi il collegamento <kbd>invio</kbd>",
|
||||
"button_add_link": "Aggiungi il collegamento",
|
||||
"help_on_links": "Aiuto sui collegamenti"
|
||||
},
|
||||
"branch_prefix": {
|
||||
@@ -63,7 +63,7 @@
|
||||
"search_for_note_by_its_name": "cerca una nota per nome",
|
||||
"cloned_note_prefix_title": "Le note clonate saranno mostrate nell'albero delle note con il dato prefisso",
|
||||
"prefix_optional": "Prefisso (opzionale)",
|
||||
"clone_to_selected_note": "Clona sotto la nota selezionata <kbd>invio</kbd>",
|
||||
"clone_to_selected_note": "Clona verso la nota selezionata <kbd>invio</kbd>",
|
||||
"no_path_to_clone_to": "Nessun percorso per clonare dentro.",
|
||||
"note_cloned": "La nota \"{{clonedTitle}}\" è stata clonata in \"{{targetTitle}}\""
|
||||
},
|
||||
@@ -79,7 +79,7 @@
|
||||
"ok": "OK",
|
||||
"close": "Chiudi",
|
||||
"delete_notes_preview": "Anteprima di eliminazione delle note",
|
||||
"delete_all_clones_description": "Elimina anche tutti i cloni (può essere disfatto tramite i cambiamenti recenti)",
|
||||
"delete_all_clones_description": "Elimina anche tutti i cloni (può essere ripristinato nella sezione cambiamenti recenti)",
|
||||
"erase_notes_description": "L'eliminazione normale (soft) marca le note come eliminate e potranno essere recuperate entro un certo lasso di tempo (dalla finestra dei cambiamenti recenti). Selezionando questa opzione le note si elimineranno immediatamente e non sarà possibile recuperarle.",
|
||||
"erase_notes_warning": "Elimina le note in modo permanente (non potrà essere disfatto), compresi tutti i cloni. Ciò forzerà un nuovo caricamento dell'applicazione.",
|
||||
"cancel": "Annulla",
|
||||
@@ -105,7 +105,10 @@
|
||||
"format_html": "HTML - raccomandato in quanto mantiene tutti i formati",
|
||||
"format_html_zip": "HTML in archivio ZIP - questo è raccomandato in quanto conserva tutta la formattazione.",
|
||||
"format_markdown": "MArkdown - questo conserva la maggior parte della formattazione.",
|
||||
"export_type_single": "Solo questa nota, senza le sottostanti"
|
||||
"export_type_single": "Solo questa nota, senza le sottostanti",
|
||||
"format_opml": "OPML - formato per scambio informazioni outline. Formattazione, immagini e files non sono inclusi.",
|
||||
"opml_version_1": "OPML v.1.0 - solo testo semplice",
|
||||
"opml_version_2": "OPML v2.0 - supporta anche HTML"
|
||||
},
|
||||
"password_not_set": {
|
||||
"body1": "Le note protette sono crittografate utilizzando una password utente, ma la password non è stata ancora impostata.",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -15,15 +15,39 @@
|
||||
"message": "클라이언트 애플리케이션 시작 도중 심각한 오류가 발생했습니다:\n\n{{message}}\n\n이는 스크립트가 예기치 않게 실패하면서 발생한 것일 수 있습니다. 애플리케이션을 안전 모드로 시작한 뒤 문제를 해결해 보세요."
|
||||
},
|
||||
"widget-error": {
|
||||
"title": "위젯 초기화 실패"
|
||||
"title": "위젯 초기화 실패",
|
||||
"message-custom": "ID가 \"{{id}}\"고 ,제목이 \"{{title}}\" 인 노트에서 사용자 지정 위젯을 초기화 하는데 실패했습니다:\n\n{{message}}",
|
||||
"message-unknown": "알 수 없는 위젯이 초기화 하는데 실패했습니다:\n\n{{message}}"
|
||||
},
|
||||
"bundle-error": {
|
||||
"title": "사용자 정의 스크립트를 불러오는데 실패했습니다",
|
||||
"message": "ID가 \"{{id}}\"고, 제목이 \"{{title}}\"인 노트에서 스크립트가 실행되지 못했습니다:\n\n{{message}}"
|
||||
}
|
||||
},
|
||||
"add_link": {
|
||||
"add_link": "링크 추가",
|
||||
"note": "노트",
|
||||
"search_note": "이름으로 노트 검색하기"
|
||||
"search_note": "이름으로 노트 검색하기",
|
||||
"help_on_links": "링크 관련 도움말",
|
||||
"link_title_mirrors": "링크 제목은 노트의 현재 제목을 반영합니다",
|
||||
"link_title_arbitrary": "링크 제목은 임의로 변경될 수 있습니다",
|
||||
"link_title": "링크 제목",
|
||||
"button_add_link": "링크 추가"
|
||||
},
|
||||
"branch_prefix": {
|
||||
"save": "저장"
|
||||
"save": "저장",
|
||||
"edit_branch_prefix": "브랜치 접두사 편집",
|
||||
"help_on_tree_prefix": "트리 접두사에 대한 도움말",
|
||||
"prefix": "접두사: ",
|
||||
"branch_prefix_saved": "브랜치 접두사가 저장되었습니다."
|
||||
},
|
||||
"bulk_actions": {
|
||||
"bulk_actions": "대량 작업",
|
||||
"affected_notes": "영향을 받은 노트들",
|
||||
"include_descendants": "선택한 노트의 자손 포함",
|
||||
"available_actions": "가능한 액션들",
|
||||
"chosen_actions": "선택한 액션들",
|
||||
"execute_bulk_actions": "대량 액션들 실행",
|
||||
"bulk_actions_executed": "대량 액션들이 성공적으로 실행되었습니다."
|
||||
}
|
||||
}
|
||||
|
||||
1
apps/client/src/translations/md/translation.json
Normal file
1
apps/client/src/translations/md/translation.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
apps/client/src/translations/nb-NO/translation.json
Normal file
1
apps/client/src/translations/nb-NO/translation.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -4,6 +4,67 @@
|
||||
"homepage": "Homepagina:",
|
||||
"app_version": "App versie:",
|
||||
"db_version": "DB Versie:",
|
||||
"sync_version": "Sync Versie:"
|
||||
"sync_version": "Sync Versie:",
|
||||
"build_date": "Build datum:",
|
||||
"build_revision": "Build revisie:",
|
||||
"data_directory": "Gegevensmap:"
|
||||
},
|
||||
"toast": {
|
||||
"critical-error": {
|
||||
"title": "Kritische Error",
|
||||
"message": "Een kritieke fout heeft plaatsgevonden waardoor de cliënt zich aanmeldt vanaf het begin:\n\n84X\n\nDit is waarschijnlijk veroorzaakt door een script dat op een onverwachte manier faalt. Probeer de sollicitatie in veilige modus te starten en de kwestie aan te spreken."
|
||||
}
|
||||
},
|
||||
"add_link": {
|
||||
"add_link": "Voeg link toe",
|
||||
"help_on_links": "Hulp bij links",
|
||||
"note": "notitie",
|
||||
"search_note": "zoek voor notitie op naam",
|
||||
"link_title_mirrors": "De link titel is hetzelfde als de notitie's huidige titel",
|
||||
"link_title": "Link titel",
|
||||
"button_add_link": "Link toevoegen"
|
||||
},
|
||||
"branch_prefix": {
|
||||
"edit_branch_prefix": "Bewerk branch prefix",
|
||||
"save": "Opslaan",
|
||||
"branch_prefix_saved": "Branch prefix is opgeslagen.",
|
||||
"help_on_tree_prefix": "Help bij boomvoorvoegsel",
|
||||
"prefix": "Voorvoegsel: "
|
||||
},
|
||||
"bulk_actions": {
|
||||
"bulk_actions": "Bulk acties",
|
||||
"affected_notes": "Getroffen notities",
|
||||
"available_actions": "Beschikbare acties",
|
||||
"chosen_actions": "Kies acties",
|
||||
"execute_bulk_actions": "Bulk acties uitvoeren",
|
||||
"bulk_actions_executed": "Bulk acties zijn succesvol uitgevoerd.",
|
||||
"none_yet": "Nog niks... voeg een actie toe door een van de beschikbare bovenstaande opties te klikken.",
|
||||
"labels": "Labels",
|
||||
"relations": "Relaties",
|
||||
"notes": "Notities",
|
||||
"other": "Andere"
|
||||
},
|
||||
"calendar": {
|
||||
"april": "April",
|
||||
"may": "Mei",
|
||||
"june": "Juni",
|
||||
"july": "Juli",
|
||||
"august": "Augustus",
|
||||
"september": "September",
|
||||
"october": "Oktober",
|
||||
"november": "November",
|
||||
"december": "December"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Sluit dit paneel"
|
||||
},
|
||||
"create_pane_button": {
|
||||
"create_new_split": "Maak nieuwe split"
|
||||
},
|
||||
"edit_button": {
|
||||
"edit_this_note": "Notitie bewerken"
|
||||
},
|
||||
"show_toc_widget_button": {
|
||||
"show_toc": "Laat Inhoudsopgave zien"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,8 @@
|
||||
"chosen_actions": "Wybrane działania",
|
||||
"execute_bulk_actions": "Wykonaj zbiór działań",
|
||||
"bulk_actions_executed": "Zbiór działań został wykonany prawidłowo.",
|
||||
"none_yet": "Brak zaznaczonych działań... dodaj działanie poprzez kliknięcie jednej z dostępnych opcji powyżej."
|
||||
"none_yet": "Brak zaznaczonych działań... dodaj działanie poprzez kliknięcie jednej z dostępnych opcji powyżej.",
|
||||
"affected_notes": "Dotyczy notatek"
|
||||
},
|
||||
"confirm": {
|
||||
"ok": "OK",
|
||||
@@ -102,7 +103,8 @@
|
||||
"clone_to_selected_note": "Sklonuj do wybranej notatki",
|
||||
"no_path_to_clone_to": "Brak ścieżki do sklonowania.",
|
||||
"note_cloned": "Notatka \"{{clonedTitle}}\" została sklonowana do \"{{targetTitle}}\"",
|
||||
"help_on_links": "Pomoc dotycząca linków"
|
||||
"help_on_links": "Pomoc dotycząca linków",
|
||||
"target_parent_note": "Docelowa główna notatka"
|
||||
},
|
||||
"help": {
|
||||
"title": "Ściągawka",
|
||||
@@ -138,6 +140,495 @@
|
||||
"cutNotes": "przytnij obecną notatkę (lub obecną sekcję) do schowka (zastosowanie dla przenoszenia notatek)",
|
||||
"pasteNotes": "wklej notatkę jako podnotatka w obecnej notatce (rozumiane jako przenieś lub skopiuj, w zależności czy notatka była skopiowana czy wycięta)",
|
||||
"deleteNotes": "usuń notatkę / gałąź",
|
||||
"editingNotes": "Edytowanie notatek"
|
||||
"editingNotes": "Edytowanie notatek",
|
||||
"other": "Inne",
|
||||
"editNoteTitle": "W panelu drzewa nastąpi przejście z panelu drzewa do tytułu notatki. Naciśnięcie klawisza Enter w tytule notatki spowoduje przejście do edytora tekstu. <kbd>Ctrl+.</kbd> spowoduje powrót z edytora do panelu drzewa.",
|
||||
"createEditLink": "stwórz / edytuj zewnętrzny link",
|
||||
"createInternalLink": "stwórz wewnętrzny link",
|
||||
"followLink": "kliknij link pod kursorem",
|
||||
"insertDateTime": "wstaw aktualną datę i godzinę w pozycji kursora",
|
||||
"markdownAutoformat": "Autoformatowanie w stylu Markdown",
|
||||
"headings": "<code>##</code>, <code>###</code>, <code>####</code> itd., po których następuje miejsce na nagłówki",
|
||||
"bulletList": "<code>*</code> lub <code>-</code>, a następnie spacja, aby utworzyć listę",
|
||||
"jumpToTreePane": "przejdź do panelu drzewa i przewiń do aktywnej notatki",
|
||||
"numberedList": "<code>1.</code> or <code>1)</code> po którym następuje miejsce na listę numerowaną",
|
||||
"blockQuote": "zacznij linijkę od <code></code> aby po kliknięciu spacji dodać blok cytatu",
|
||||
"troubleshooting": "Rozwiązywanie błędów",
|
||||
"reloadFrontend": "Załaduj ponownie Frontend Trilium",
|
||||
"showDevTools": "pokaż narzędzia deweloperskie",
|
||||
"showSQLConsole": "pokaż konsolę SQL",
|
||||
"quickSearch": "skup się na szybkim wyszukiwaniu",
|
||||
"inPageSearch": "wyszukiwanie wewnątrz strony"
|
||||
},
|
||||
"book_properties": {
|
||||
"list": "Lista"
|
||||
},
|
||||
"board_view": {
|
||||
"move-to": "Przenieś do",
|
||||
"insert-above": "Umieść nad",
|
||||
"insert-below": "Umieść pod",
|
||||
"delete-column": "Usuń kolumnę",
|
||||
"delete-column-confirmation": "Czy na pewno chcesz usunąć tę kolumnę? Odpowiedni atrybut zostanie również usunięty w notatkach pod tą kolumną.",
|
||||
"new-item": "Nowy element",
|
||||
"new-item-placeholder": "Wpisz tytuł notatki...",
|
||||
"add-column": "Dodaj kolumnę",
|
||||
"add-column-placeholder": "Wpisz tytuł kolumny...",
|
||||
"edit-note-title": "Naciśnij aby edytować tytuł notatki",
|
||||
"edit-column-title": "Naciśnij aby edytować tytuł kolumny",
|
||||
"delete-note": "Usuń notatkę...",
|
||||
"remove-from-board": "Usuń z tablicy",
|
||||
"archive-note": "Archiwalna notatka",
|
||||
"unarchive-note": "Usuń notatkę z archiwum"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "Drzewo: {{name}}",
|
||||
"export_note_title": "Wyeksportuj notatkę",
|
||||
"export_note_description": "Wyeksportuj aktualną notatkę",
|
||||
"show_attachments_title": "Pokaż załączniki",
|
||||
"show_attachments_description": "Zobacz załączniki notatki",
|
||||
"search_notes_title": "Szukaj notatek",
|
||||
"search_notes_description": "Otwórz zaawansowane wyszukiwanie",
|
||||
"search_subtree_title": "Poszukaj w poddrzewie",
|
||||
"search_subtree_description": "poszukaj wewnątrz poddrzewa",
|
||||
"search_history_title": "Pokaż historię wyszukiwania",
|
||||
"search_history_description": "Pokaż poprzednie wyszukiwania",
|
||||
"configure_launch_bar_title": "Ustaw Launch Bar",
|
||||
"configure_launch_bar_description": "Otwórz konfigurację Launch Bar, aby dodać lub usunąć elementy."
|
||||
},
|
||||
"content_renderer": {
|
||||
"open_externally": "Otwórz zewnętrznie"
|
||||
},
|
||||
"modal": {
|
||||
"close": "Zamknij",
|
||||
"help_title": "Pokaż więcej informacji na temat tego ekranu"
|
||||
},
|
||||
"call_to_action": {
|
||||
"next_theme_title": "Spróbuj nowy motyw Trilium",
|
||||
"next_theme_message": "Obecnie używasz starszego motywu. Czy chcesz wypróbować nowy motyw?",
|
||||
"next_theme_button": "Spróbuj nowego motywu",
|
||||
"background_effects_title": "Efekty w tle są już stabilne",
|
||||
"dismiss": "Odrzuć",
|
||||
"background_effects_button": "Włącz efekty w tle"
|
||||
},
|
||||
"settings": {
|
||||
"related_settings": "Powiązane ustawienia"
|
||||
},
|
||||
"settings_appearance": {
|
||||
"related_code_blocks": "Schemat kolorów dla bloków kodu w notatkach tekstowych",
|
||||
"related_code_notes": "Schemat kolorów dla kodu"
|
||||
},
|
||||
"units": {
|
||||
"percentage": "%"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "Strony:{{startIndex}}-{{endIndex}}",
|
||||
"total_notes": "{{count}}notatek"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Błąd - Nie można pokazać treści."
|
||||
},
|
||||
"add_label": {
|
||||
"add_label": "Dodaj etykietę",
|
||||
"label_name_placeholder": "Nazwa etykiety",
|
||||
"label_name_title": "Dozwolone są znaki alfanumeryczne, podkreślenie i dwukropek.",
|
||||
"to_value": "do wartości",
|
||||
"new_value_placeholder": "nowa wartość",
|
||||
"help_text": "We wszystkich dopasowanych notatkach:",
|
||||
"help_text_item2": "albo zmień wartość istniejącej etykiety"
|
||||
},
|
||||
"attribute_detail": {
|
||||
"delete": "Usuń",
|
||||
"related_notes_title": "Inne notatki z tą etykietą",
|
||||
"more_notes": "Więcej notatek",
|
||||
"label": "Szczegóły etykiety",
|
||||
"label_definition": "Szczegóły definicji etykiety",
|
||||
"relation": "Szczegóły powiązania",
|
||||
"relation_definition": "Szczegóły definicji powiązania",
|
||||
"disable_versioning": "Wyłącza automatyczne wersjonowanie. Przydatne np. w przypadku dużych, ale nieistotnych notatek – np. dużych bibliotek JS używanych do skryptów",
|
||||
"precision": "Prezycja",
|
||||
"digits": "znaki",
|
||||
"inverse_relation_title": "Opcjonalne ustawienie definiujące, do której relacji jest ta relacja przeciwna. Przykład: Główna - podnotatka są relacjami odwrotnymi do siebie.",
|
||||
"inverse_relation": "Odwrócone powiązanie"
|
||||
},
|
||||
"import": {
|
||||
"importIntoNote": "Importuj do notatki",
|
||||
"chooseImportFile": "Wybierz plik do zaimportowania",
|
||||
"importDescription": "Zawartość wybranego pliku(ów) zostanie zaimportowana jako notatka(i) podrzędna(e) do",
|
||||
"options": "Opcje",
|
||||
"shrinkImages": "Zmniejsz obrazy",
|
||||
"safeImport": "Bezpieczny import",
|
||||
"import-status": "Status importu",
|
||||
"in-progress": "Import w trakcie: {{progress}}",
|
||||
"successful": "Importowanie zakończone sukcesem.",
|
||||
"safeImportTooltip": "Pliki eksportu Trilium <code>.zip</code> mogą zawierać skrypty wykonywalne, które mogą powodować szkodliwe zachowania. Bezpieczny import dezaktywuje automatyczne wykonywanie wszystkich importowanych skryptów. Odznacz opcję „Bezpieczny import” tylko wtedy, gdy importowane archiwum ma zawierać skrypty wykonywalne i masz pełne zaufanie do zawartości importowanego pliku.",
|
||||
"import": "Import",
|
||||
"failed": "Błąd importu: {{message}}.",
|
||||
"html_import_tags": {
|
||||
"title": "Tagi importu HTML",
|
||||
"description": "Skonfiguruj, które tagi HTML mają zostać zachowane podczas importowania notatek. Tagi spoza tej listy zostaną usunięte podczas importu. Niektóre tagi (np. „script”) są zawsze usuwane ze względów bezpieczeństwa.",
|
||||
"placeholder": "Wpisz tagi HTML, jedna na linijkę",
|
||||
"reset_button": "Zresetuj do domyślnej listy"
|
||||
}
|
||||
},
|
||||
"image_properties": {
|
||||
"title": "Obraz",
|
||||
"original_file_name": "Oryginalna nazwa pliku",
|
||||
"file_type": "Typ pliku",
|
||||
"file_size": "Rozmiar pliku",
|
||||
"download": "Pobierz",
|
||||
"open": "Otwórz",
|
||||
"copy_reference_to_clipboard": "Kopiuj odniesienie do schowka",
|
||||
"upload_new_revision": "Wgraj nową wersję",
|
||||
"upload_success": "Nowa wersja obrazu została wysłana.",
|
||||
"upload_failed": "Wysyłanie nowej wersji obrazu nie powiodło się: {{message}}"
|
||||
},
|
||||
"inherited_attribute_list": {
|
||||
"title": "Odziedziczone atrybuty",
|
||||
"no_inherited_attributes": "Brak odziedziczonych atrybutów."
|
||||
},
|
||||
"note_info_widget": {
|
||||
"note_id": "ID notatki",
|
||||
"created": "Stworzona",
|
||||
"modified": "Zmodyfikowano",
|
||||
"type": "Typ",
|
||||
"note_size": "Rozmiar notatki",
|
||||
"note_size_info": "Rozmiar notatki pozwala oszacować przybliżoną ilość miejsca potrzebnego na przechowanie jej. Uwzględnia ona jej treść oraz treść jej poprawek.",
|
||||
"calculate": "oblicz",
|
||||
"subtree_size": "(rozmiar poddrzewa: {{size}} w {{count}} notatkach)",
|
||||
"title": "Informacje o notatce"
|
||||
},
|
||||
"note_map": {
|
||||
"open_full": "Pełne rozszerzenie",
|
||||
"collapse": "Zmniejsz do normalnego rozmiaru",
|
||||
"title": "Mapa notatki",
|
||||
"fix-nodes": "Napraw węzły",
|
||||
"link-distance": "Odległość linku"
|
||||
},
|
||||
"note_paths": {
|
||||
"title": "Ścieżki notatki",
|
||||
"clone_button": "Sklonuj notatkę do nowej lokalizacji...",
|
||||
"intro_placed": "Ta notatka jest umieszczona w następujących lokalizacjach:",
|
||||
"intro_not_placed": "Ta notatka nie została jeszcze umieszczona w drzewie.",
|
||||
"outside_hoisted": "Ta ścieżka znajduje się poza podniesioną notatką i trzeba ją odwiesić.",
|
||||
"archived": "Zarchiwizowane",
|
||||
"search": "Szukaj"
|
||||
},
|
||||
"note_properties": {
|
||||
"this_note_was_originally_taken_from": "Ta notatka oryginalnie została wzięta z:",
|
||||
"info": "Info"
|
||||
},
|
||||
"owned_attribute_list": {
|
||||
"owned_attributes": "Posiadane atrybuty"
|
||||
},
|
||||
"promoted_attributes": {
|
||||
"promoted_attributes": "Promowane atrybuty",
|
||||
"unset-field-placeholder": "nie ustawione",
|
||||
"url_placeholder": "http://strona...",
|
||||
"open_external_link": "Otwórz link zewnętrzny",
|
||||
"unknown_label_type": "Nieznany typ etykiety \"{{type}}\"",
|
||||
"unknown_attribute_type": "Nieznany typ atrybutu \"{{type}}\"",
|
||||
"add_new_attribute": "Dodaj nowy atrybut",
|
||||
"remove_this_attribute": "Usuń ten atrybut",
|
||||
"remove_color": "Usuń ten kolor etykiety"
|
||||
},
|
||||
"script_executor": {
|
||||
"query": "Zapytanie",
|
||||
"script": "Skrypt",
|
||||
"execute_query": "Wykonaj zapytanie",
|
||||
"execute_script": "Wykonaj skrypt"
|
||||
},
|
||||
"search_definition": {
|
||||
"add_search_option": "Dodaj opcje wyszukiwania:",
|
||||
"search_string": "ciąg wyszukiwania",
|
||||
"search_script": "skrypt wyszukiwania",
|
||||
"ancestor": "przodek",
|
||||
"fast_search": "szybkie wyszukiwanie",
|
||||
"fast_search_description": "Opcja szybkiego wyszukiwania wyłącza pełno tekstowe przeszukiwanie zawartości notatek, co może przyspieszyć przeszukiwanie dużych baz danych.",
|
||||
"include_archived": "dodaj zarchiwizowane",
|
||||
"include_archived_notes_description": "Domyślnie zarchiwizowane notatki są wyłączone z wyszukiwania, z tą opcją zostaną dodane do wyszukiwania.",
|
||||
"order_by": "sortuj",
|
||||
"limit": "limituj",
|
||||
"limit_description": "Limituj liczbę wyników",
|
||||
"save_to_note": "Zapisz do notatki",
|
||||
"search_parameters": "Parametry wyszukiwania",
|
||||
"unknown_search_option": "Nieznana opcja wyszukiwania {{searchOptionName}}",
|
||||
"search_note_saved": "Wyszukiwana notatka została zapisana do {{- notePathTitle}}",
|
||||
"actions_executed": "Akcja została wykonana."
|
||||
},
|
||||
"similar_notes": {
|
||||
"title": "Podobne notatki",
|
||||
"no_similar_notes_found": "Nie znaleziono podobnych notatek."
|
||||
},
|
||||
"abstract_search_option": {
|
||||
"remove_this_search_option": "Usuń tą opcję wyszukiwania",
|
||||
"failed_rendering": "Nieudana opcja wyszukiwania: {{dto}} z błędem: {{error}} {{stack}}"
|
||||
},
|
||||
"ancestor": {
|
||||
"label": "Przodek",
|
||||
"placeholder": "szukaj notatki po jej nazwie",
|
||||
"depth_label": "glębokość",
|
||||
"depth_doesnt_matter": "nie ważne",
|
||||
"depth_eq": "jest dokładnie {{count}}",
|
||||
"direct_children": "bezpośrednie podnotatki",
|
||||
"depth_gt": "jest więcej niż {{count}}",
|
||||
"depth_lt": "jest mniej niż {{count}}"
|
||||
},
|
||||
"debug": {
|
||||
"debug": "Debuguj",
|
||||
"debug_info": "Debugowanie wyświetli dodatkowe informacje debugowania w konsoli, aby ułatwić debugowanie złożonych zapytań."
|
||||
},
|
||||
"fast_search": {
|
||||
"fast_search": "Szybkie wyszukiwanie"
|
||||
},
|
||||
"file_properties": {
|
||||
"download": "Pobierz",
|
||||
"open": "Otwórz",
|
||||
"upload_new_revision": "Wgraj nową wersję",
|
||||
"upload_success": "Nowa wersja pliku nie została wysłana.",
|
||||
"upload_failed": "Wysyłanie nowej wersji pliku się nie udało.",
|
||||
"title": "Plik"
|
||||
},
|
||||
"include_note": {
|
||||
"label_note": "Notatka",
|
||||
"placeholder_search": "szukaj notatki po jej nazwie",
|
||||
"dialog_title": "Dołącz notatkę",
|
||||
"button_include": "Dołącz notatkę"
|
||||
},
|
||||
"info": {
|
||||
"closeButton": "Zamknij",
|
||||
"okButton": "OK",
|
||||
"modalTitle": "Wiadomość"
|
||||
},
|
||||
"jump_to_note": {
|
||||
"search_placeholder": "Szukaj notatki po jej nazwie albo typie > komendy...",
|
||||
"search_button": "Wyszukiwanie pełno tekstowe"
|
||||
},
|
||||
"markdown_import": {
|
||||
"dialog_title": "Zaimportuj Markdown",
|
||||
"import_button": "Import",
|
||||
"import_success": "Treść Markdown została zaimportowana do dokumentu."
|
||||
},
|
||||
"limit": {
|
||||
"limit": "Limit"
|
||||
},
|
||||
"link_context_menu": {
|
||||
"open_note_in_popup": "Szybka edycja",
|
||||
"open_note_in_new_tab": "Otwórz notatkę w nowej karcie",
|
||||
"open_note_in_new_split": "Otwórz notatkę w nowym podziale ekranu",
|
||||
"open_note_in_new_window": "Otwórz notatkę w nowym oknie"
|
||||
},
|
||||
"electron_integration": {
|
||||
"desktop-application": "Aplikacja desktopowa"
|
||||
},
|
||||
"electron_context_menu": {
|
||||
"cut": "Wytnij",
|
||||
"copy": "Kopiuj",
|
||||
"copy-link": "Kopiuj link",
|
||||
"paste": "Wklej",
|
||||
"paste-as-plain-text": "Wklej jako plain text",
|
||||
"search_online": "Szukaj \"{{term}}\" za pomocą {{searchEngine}}"
|
||||
},
|
||||
"image_context_menu": {
|
||||
"copy_reference_to_clipboard": "Skopiuj odnośnik do schowka",
|
||||
"copy_image_to_clipboard": "Skopiuj obraz do schowka"
|
||||
},
|
||||
"note_autocomplete": {
|
||||
"clear-text-field": "Wyczyść pole tekstowe",
|
||||
"show-recent-notes": "Pokaż ostatnie notatki",
|
||||
"full-text-search": "Wyszukiwanie pełnotekstowe"
|
||||
},
|
||||
"note_tooltip": {
|
||||
"note-has-been-deleted": "Notatka została usunięta.",
|
||||
"quick-edit": "Szybka edycja"
|
||||
},
|
||||
"duration": {
|
||||
"seconds": "sekundy",
|
||||
"minutes": "minuty",
|
||||
"hours": "godziny",
|
||||
"days": "dni"
|
||||
},
|
||||
"share": {
|
||||
"title": "Ustawienia udostępniania"
|
||||
},
|
||||
"tasks": {
|
||||
"due": {
|
||||
"today": "Dziś",
|
||||
"tomorrow": "Jutro",
|
||||
"yesterday": "Wczoraj"
|
||||
}
|
||||
},
|
||||
"content_widget": {
|
||||
"unknown_widget": "Nieznany widget dla \"{{id}}\"."
|
||||
},
|
||||
"note_language": {
|
||||
"not_set": "Nie ustawione",
|
||||
"configure-languages": "Konfiguracja języków..."
|
||||
},
|
||||
"content_language": {
|
||||
"title": "Język treści",
|
||||
"description": "Wybierz jeden lub więcej języków, które mają być wyświetlane w sekcji Właściwości Podstawowe Notatki Tekstowej tylko do odczytu lub edytowalnej. Umożliwi to korzystanie z takich funkcji, jak sprawdzanie pisowni czy obsługa pisania od prawej do lewej."
|
||||
},
|
||||
"switch_layout_button": {
|
||||
"title_vertical": "Przesuń panel edycji na dół",
|
||||
"title_horizontal": "Przesuń panel edycji do lewej"
|
||||
},
|
||||
"toggle_read_only_button": {
|
||||
"unlock-editing": "Odblokuj edycję",
|
||||
"lock-editing": "Zablokuj edycję"
|
||||
},
|
||||
"png_export_button": {
|
||||
"button_title": "Wyeksportuj diagram jako PNG"
|
||||
},
|
||||
"svg": {
|
||||
"export_to_png": "Diagram nie może zostać wyeksportowany jako PNG."
|
||||
},
|
||||
"code_theme": {
|
||||
"title": "Wygląd",
|
||||
"word_wrapping": "Zawijanie słów",
|
||||
"color-scheme": "Schemat kolorów"
|
||||
},
|
||||
"cpu_arch_warning": {
|
||||
"title": "Proszę o pobranie wersji ARM64",
|
||||
"message_macos": "TriliumNext działa obecnie w oparciu o technologię Rosetta 2, co oznacza, że używasz wersji Intel (x64) na komputerze Mac z procesorem Apple Silicon. Będzie to miało znaczący wpływ na wydajność i czas pracy baterii.",
|
||||
"message_windows": "TriliumNext działa obecnie w trybie emulacji, co oznacza, że używasz wersji Intel (x64) na urządzeniu z systemem Windows na procesorze ARM. Będzie to miało znaczący wpływ na wydajność i czas pracy baterii.",
|
||||
"recommendation": "Aby uzyskać najlepsze wrażenia, pobierz natywną wersję ARM64 aplikacji TriliumNext ze strony poświęconej wydaniom.",
|
||||
"download_link": "Pobierz wersję natywną",
|
||||
"continue_anyway": "Kontynuuj mimo wszystko",
|
||||
"dont_show_again": "Nie pokazuj więcej tego ostrzeżenia"
|
||||
},
|
||||
"editorfeatures": {
|
||||
"title": "Cechy",
|
||||
"emoji_completion_enabled": "Włącz autouzupełnianie Emoji",
|
||||
"note_completion_enabled": "Włącz autouzupełnianie notatki"
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "Nowy wiersz",
|
||||
"new-column": "Nowa kolumna",
|
||||
"sort-column-by": "Sotuj po \"{{title}}\"",
|
||||
"sort-column-ascending": "Rosnąco",
|
||||
"sort-column-descending": "Malejąco",
|
||||
"sort-column-clear": "Wyczyść sortowanie",
|
||||
"hide-column": "Ukryj kolumnę \"{{title}}\"",
|
||||
"show-hide-columns": "Pokaż/ukryj kolumny",
|
||||
"row-insert-above": "Wstaw wiersz nad",
|
||||
"row-insert-below": "Wstaw wiersz pod",
|
||||
"row-insert-child": "Wstaw podnotatkę",
|
||||
"add-column-to-the-left": "Dodaj kolumnę po lewej",
|
||||
"add-column-to-the-right": "Dodaj kolumnę po prawej",
|
||||
"edit-column": "Edytuj kolumnę",
|
||||
"delete_column_confirmation": "Czy na pewno chcesz usunąć tę kolumnę? Odpowiedni atrybut zostanie usunięty ze wszystkich notatek.",
|
||||
"delete-column": "Usuń kolumnę",
|
||||
"new-column-label": "Etykieta",
|
||||
"new-column-relation": "Relacje"
|
||||
},
|
||||
"book_properties_config": {
|
||||
"hide-weekends": "Ukryj weekendy",
|
||||
"display-week-numbers": "Pokaż numery tygodni",
|
||||
"map-style": "Styl mapy:",
|
||||
"max-nesting-depth": "Maksymalna głębokość zagnieżdżenia:",
|
||||
"raster": "Raster",
|
||||
"vector_light": "Wektor (jasny)",
|
||||
"vector_dark": "Wektor (ciemny)",
|
||||
"show-scale": "Pokaż skalę"
|
||||
},
|
||||
"table_context_menu": {
|
||||
"delete_row": "Usuń wiersz"
|
||||
},
|
||||
"move_to": {
|
||||
"dialog_title": "Przenieś notatki do ...",
|
||||
"notes_to_move": "Notatki do przeniesienia"
|
||||
},
|
||||
"note_type_chooser": {
|
||||
"modal_title": "Wybierz typ notatki",
|
||||
"modal_body": "Wybierz typ / szablon notatki dla nowej notatki:",
|
||||
"templates": "Szablony",
|
||||
"builtin_templates": "Wbudowane szablony"
|
||||
},
|
||||
"password_not_set": {
|
||||
"title": "Hasło nie zostało ustawione"
|
||||
},
|
||||
"add_relation": {
|
||||
"add_relation": "Dodaj powiązanie",
|
||||
"relation_name": "nazwa powiązania",
|
||||
"allowed_characters": "Dozwolone są znaki alfanumeryczne, podkreślenie i dwukropek.",
|
||||
"to": "do",
|
||||
"target_note": "docelowa notatka"
|
||||
},
|
||||
"ai_llm": {
|
||||
"actions": "Akcje",
|
||||
"retry": "Spróbuj ponownie",
|
||||
"partial": "{{ percentage }}% wykonania",
|
||||
"retry_queued": "notatka dodana do kolejki",
|
||||
"retry_failed": "Nieudana próba dodania notatki do kolejki",
|
||||
"max_notes_per_llm_query": "Maksymalna ilość notatek w zapytaniu",
|
||||
"index_all_notes": "Zindeksuj wszystkie notatki",
|
||||
"index_status": "Status indeksowania",
|
||||
"indexed_notes": "Zindeksowane notatki",
|
||||
"indexing_stopped": "Indeksowanie zatrzymane",
|
||||
"indexing_in_progress": "Indeksowanie w trakcie...",
|
||||
"last_indexed": "Ostatnio zindeksowane",
|
||||
"n_notes_queued_0": "{{ count }} notatka zakolejkowana do indeksowania",
|
||||
"n_notes_queued_1": "{{ count }} notatek zakolejkowanych do indeksowania",
|
||||
"n_notes_queued_2": "{{ count }} notatek zakolejkowanych do indeksowania",
|
||||
"note_chat": "Czat notatki",
|
||||
"note_title": "Tytuł notatki",
|
||||
"error": "Błąd",
|
||||
"last_attempt": "Ostatnia próba",
|
||||
"queued_notes": "Zakolejkowane notatki",
|
||||
"failed_notes": "Nieudane notatki",
|
||||
"last_processed": "Ostatnio procesowane",
|
||||
"refresh_stats": "Odśwież Statystyki",
|
||||
"enable_ai_features": "Włącz funkcje AI/LLM",
|
||||
"enable_ai_description": "Włącz funkcje AI, takie jak podsumowywanie notatek, generowanie treści i inne możliwości LLM",
|
||||
"openai_tab": "OpenAI",
|
||||
"anthropic_tab": "Anthropic",
|
||||
"voyage_tab": "Voyage AI",
|
||||
"ollama_tab": "Ollama",
|
||||
"enable_ai": "Włącz funkcje AI/LLM",
|
||||
"enable_ai_desc": "Włącz funkcje AI, takie jak podsumowywanie notatek, generowanie treści i inne możliwości LLM",
|
||||
"provider_configuration": "Konfiguracja dostawcy AI",
|
||||
"provider_precedence": "Pierwszeństwo dostawcy",
|
||||
"provider_precedence_description": "Lista dostawców przedzielonych przecinkami w kolejności (np. „openai,anthropic,ollama”)",
|
||||
"temperature": "Temperatura",
|
||||
"temperature_description": "Kontroluje losowość odpowiedzi (0 = deterministyczna, 2 = maksymalna losowość)",
|
||||
"system_prompt": "Monit systemowy",
|
||||
"system_prompt_description": "Domyślny monit systemowy używany do wszystkich interakcji ze sztuczną inteligencją",
|
||||
"openai_configuration": "Konfiguracja OpenAI",
|
||||
"openai_settings": "Ustawienia OpenAI",
|
||||
"api_key": "Klucz API",
|
||||
"url": "Bazowy URL",
|
||||
"model": "Model",
|
||||
"openai_api_key_description": "Klucz API OpenAI umożliwiający dostęp do usług AI",
|
||||
"anthropic_api_key_description": "Klucz API Anthropic umożliwiający dostęp do usług AI",
|
||||
"default_model": "Domyślny Model",
|
||||
"openai_model_description": "Przykłady: gpt-4o, gpt-4-turbo, gpt-3.5-turbo",
|
||||
"base_url": "Bazowy URL",
|
||||
"openai_url_description": "Domyślny: https://api.openai.com/v1",
|
||||
"anthropic_settings": "Ustawienia Anthropic",
|
||||
"anthropic_url_description": "Bazowy URL dla Anthropic API (domyślny: https://api.anthropic.com)",
|
||||
"anthropic_model_description": "Modele Anthropic Claude'a do uzupełniania czatów",
|
||||
"voyage_settings": "Ustawienia Voyage AI",
|
||||
"ollama_settings": "Ustawienia Ollama",
|
||||
"ollama_url_description": "URL dla Ollama API (domyślny: http://localhost:11434)",
|
||||
"ollama_model_description": "Model Ollama używany do uzupełniania czatów",
|
||||
"anthropic_configuration": "Konfiguracja Anthropic",
|
||||
"voyage_configuration": "Konfiguracja Voyage AI",
|
||||
"voyage_url_description": "Domyślny: https://api.voyageai.com/v1",
|
||||
"ollama_configuration": "Konfiguracja Ollama",
|
||||
"enable_ollama": "Włącz Ollama",
|
||||
"enable_ollama_description": "Włącz Ollama dla lokalnego modelu AI",
|
||||
"ollama_url": "Ollama URL",
|
||||
"ollama_model": "Model Ollama",
|
||||
"refresh_models": "Odśwież modele",
|
||||
"refreshing_models": "Odświeżanie...",
|
||||
"enable_automatic_indexing": "Włącz automatyczne indeksowanie",
|
||||
"rebuild_index": "Odbuduj indeks",
|
||||
"rebuild_index_error": "Błąd uruchomienia odbudowy indeksu. Sprawdź logi.",
|
||||
"max_notes_per_llm_query_description": "Maksymalna liczba podobnych notatek do uwzględnienia w kontekście sztucznej inteligencji",
|
||||
"active_providers": "Aktywni dostawcy",
|
||||
"disabled_providers": "Wyłączeni dostawcy",
|
||||
"remove_provider": "Usuń dostawcę z wyszukiwania",
|
||||
"restore_provider": "Przywróć dostawcę do wyszukiwania",
|
||||
"similarity_threshold": "Próg podobieństwa"
|
||||
}
|
||||
}
|
||||
|
||||
1
apps/client/src/translations/pt/translation.json
Normal file
1
apps/client/src/translations/pt/translation.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -432,7 +432,12 @@
|
||||
"mime": "MIME: ",
|
||||
"file_size": "Tamanho do arquivo:",
|
||||
"preview": "Visualizar:",
|
||||
"preview_not_available": "A visualização não está disponível para este tipo de nota."
|
||||
"preview_not_available": "A visualização não está disponível para este tipo de nota.",
|
||||
"diff_on": "Exibir diferença",
|
||||
"diff_off": "Exibir conteúdo",
|
||||
"diff_on_hint": "Clique para exibir a diferença de fonte da nota",
|
||||
"diff_off_hint": "Clique para exibir o conteúdo da nota",
|
||||
"diff_not_available": "A diferença não está disponível."
|
||||
},
|
||||
"sort_child_notes": {
|
||||
"sort_children_by": "Ordenar notas filhas por...",
|
||||
@@ -744,7 +749,7 @@
|
||||
"button-tree-map": "Mapa em Árvore"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "Abrir em uma nova aba <kbd>Ctrl+Click</kbd>",
|
||||
"open-in-a-new-tab": "Abrir em uma nova aba",
|
||||
"open-in-a-new-split": "Abrir em um novo painel dividido",
|
||||
"insert-note-after": "Inserir nota após",
|
||||
"insert-child-note": "Inserir nota filha",
|
||||
@@ -774,7 +779,9 @@
|
||||
"apply-bulk-actions": "Aplicar ações em massa",
|
||||
"converted-to-attachments": "{{count}} notas foram convertidas em anexos.",
|
||||
"convert-to-attachment-confirm": "Tem certeza de que deseja converter as notas selecionadas em anexos de suas notas-pai?",
|
||||
"open-in-popup": "Edição rápida"
|
||||
"open-in-popup": "Edição rápida",
|
||||
"archive": "Ficheiro",
|
||||
"unarchive": "Desarquivar"
|
||||
},
|
||||
"command_palette": {
|
||||
"search_subtree_title": "Buscar na Subárvore",
|
||||
@@ -833,7 +840,7 @@
|
||||
"cannot_find_day_note": "Nota do dia não encontrada",
|
||||
"cannot_find_week_note": "Nota semanal não encontrada",
|
||||
"january": "Janeiro",
|
||||
"febuary": "Fevereiro",
|
||||
"february": "Fevereiro",
|
||||
"march": "Março",
|
||||
"april": "Abril",
|
||||
"may": "Maio",
|
||||
@@ -843,7 +850,18 @@
|
||||
"september": "Setembro",
|
||||
"october": "Outubro",
|
||||
"november": "Novembro",
|
||||
"december": "Dezembro"
|
||||
"december": "Dezembro",
|
||||
"week": "Semana",
|
||||
"week_previous": "Semana passada",
|
||||
"week_next": "Próxima semana",
|
||||
"month": "Mês",
|
||||
"month_previous": "Mês passado",
|
||||
"month_next": "Próximo mês",
|
||||
"year": "Ano",
|
||||
"year_previous": "Ano passado",
|
||||
"year_next": "Próximo ano",
|
||||
"list": "Lista",
|
||||
"today": "Hoje"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Fechar este painel"
|
||||
@@ -995,7 +1013,8 @@
|
||||
"calendar": "Calendário",
|
||||
"table": "Tabela",
|
||||
"geo-map": "Mapa geográfico",
|
||||
"board": "Quadro"
|
||||
"board": "Quadro",
|
||||
"include_archived_notes": "Exibir notas arquivadas"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "Ainda não há nenhuma nota editada neste dia…",
|
||||
@@ -1350,7 +1369,9 @@
|
||||
"title": "Desempenho",
|
||||
"enable-motion": "Habilitar transições e animações",
|
||||
"enable-shadows": "Habilitar sombras",
|
||||
"enable-backdrop-effects": "Habilitar efeitos de fundo para menus, popups e painéis"
|
||||
"enable-backdrop-effects": "Habilitar efeitos de fundo para menus, popups e painéis",
|
||||
"enable-smooth-scroll": "Habilitar rolagem suave",
|
||||
"app-restart-required": "(é necessário reiniciar o programa para que a mudança tenha efeito)"
|
||||
},
|
||||
"zoom_factor": {
|
||||
"title": "Fator do Zoom (apenas versão de área de trabalho)",
|
||||
@@ -1730,7 +1751,7 @@
|
||||
"native-title-bar": "Barra de título nativa",
|
||||
"native-title-bar-description": "Para Windows e macOS, manter a barra de título nativa desabilitada faz a aplicação parecer mais compacta. No Linux, manter a barra de título nativa habilitada faz a aplicação se integrar melhor com o restante do sistema.",
|
||||
"background-effects": "Habilitar efeitos de fundo (apenas Windows 11)",
|
||||
"background-effects-description": "O efeito Mica adicionar um fundo borrado e estilizado às janelas da aplicação, criando profundidade e um visual moderno.",
|
||||
"background-effects-description": "O efeito Mica adiciona um fundo borrado e estilizado às janelas da aplicação, criando profundidade e um visual moderno. \"Barra de título nativa\" precisa ser desativada.",
|
||||
"restart-app-button": "Reiniciar a aplicação para ver as alterações",
|
||||
"zoom-factor": "Fator de Zoom"
|
||||
},
|
||||
@@ -1865,14 +1886,21 @@
|
||||
"delete_row": "Excluir linha"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "Excluir Nota",
|
||||
"delete-note": "Deletar nota...",
|
||||
"move-to": "Mover para",
|
||||
"insert-above": "Inserir acima",
|
||||
"insert-below": "Inserir abaixo",
|
||||
"delete-column": "Excluir coluna",
|
||||
"delete-column-confirmation": "Tem certeza de que deseja excluir esta coluna? O atributo correspondente também será removido de todas as notas abaixo desta coluna.",
|
||||
"new-item": "Novo item",
|
||||
"add-column": "Adicionar Coluna"
|
||||
"add-column": "Adicionar Coluna",
|
||||
"remove-from-board": "Remover do quadro",
|
||||
"archive-note": "Arquivar nota",
|
||||
"unarchive-note": "Desarquivar nota",
|
||||
"new-item-placeholder": "Escreva o título da nota...",
|
||||
"add-column-placeholder": "Escreva o nome da coluna...",
|
||||
"edit-note-title": "Clique para editar o título da nota",
|
||||
"edit-column-title": "Clique para editar o título da coluna"
|
||||
},
|
||||
"call_to_action": {
|
||||
"next_theme_title": "Testar no novo tema do Trilium",
|
||||
@@ -1894,7 +1922,9 @@
|
||||
"percentage": "%"
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "Esta coleção não possui nenhum nota filha, então não há nada para exibir. Veja <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> para detalhes."
|
||||
"no_children_help": "Esta coleção não possui nenhum nota filha, então não há nada para exibir. Veja <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> para detalhes.",
|
||||
"drag_locked_title": "Bloqueado para edição",
|
||||
"drag_locked_message": "Arrastar não é permitido pois a coleção está bloqueada para edição."
|
||||
},
|
||||
"render": {
|
||||
"note_detail_render_help_1": "Esta nota de ajuda é mostrada porque esta nota do tipo Renderizar HTML não possui a relação necessária para funcionar corretamente.",
|
||||
@@ -1978,7 +2008,7 @@
|
||||
"oauth_title": "OAuth/OpenID",
|
||||
"oauth_description": "OpenID é uma forma padronizada de permitir que você faça login em sites usando uma conta de outro serviço, como o Google, para verificar sua identidade. O emissor padrão é o Google, mas você pode alterá-lo para qualquer outro provedor OpenID. Consulte <a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">aqui</a> para mais informações. Siga estas <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">instruções</a> para configurar um serviço OpenID através do Google.",
|
||||
"oauth_description_warning": "Para habilitar o OAuth/OpenID, você precisa definir a URL base do OAuth/OpenID, o client ID e o client secret no arquivo config.ini e reiniciar a aplicação. Se quiser configurar via variáveis de ambiente, defina TRILIUM_OAUTH_BASE_URL, TRILIUM_OAUTH_CLIENT_ID e TRILIUM_OAUTH_CLIENT_SECRET.",
|
||||
"oauth_missing_vars": "Configurações ausentes: {{variables}}",
|
||||
"oauth_missing_vars": "Configurações ausentes: {{-variables}}",
|
||||
"oauth_user_account": "Conta do Usuário: ",
|
||||
"oauth_user_email": "E-mail do Usuário: ",
|
||||
"oauth_user_not_logged_in": "Não está logado!"
|
||||
@@ -2026,5 +2056,12 @@
|
||||
"help_link": "Para ajuda, visite a <a href=\"https://triliumnext.github.io/Docs/Wiki/sharing.html\">wiki</a>.",
|
||||
"shared_publicly": "Esta nota é compartilhada publicamente em {{- link}}.",
|
||||
"shared_locally": "Esta nota é compartilhada localmente em {{- link}}."
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "Página de {{startIndex}} - {{endIndex}}",
|
||||
"total_notes": "{{count}} notas"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Não foi possível exibir o conteúdo devido a um erro."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,10 +267,13 @@
|
||||
"basic_properties": "Proprietăți de bază",
|
||||
"editable": "Editabil",
|
||||
"note_type": "Tipul notiței",
|
||||
"language": "Limbă"
|
||||
"language": "Limbă",
|
||||
"configure_code_notes": "Configurează notițele de tip cod..."
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "Această notiță de tip Carte nu are nicio subnotiță așadar nu este nimic de afișat. Vedeți <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> pentru detalii."
|
||||
"no_children_help": "Această notiță de tip Carte nu are nicio subnotiță așadar nu este nimic de afișat. Vedeți <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> pentru detalii.",
|
||||
"drag_locked_title": "Blocat pentru editare",
|
||||
"drag_locked_message": "Glisarea notițelor nu este permisă deoarece colecția este blocată pentru editare."
|
||||
},
|
||||
"book_properties": {
|
||||
"collapse": "Minimizează",
|
||||
@@ -285,7 +288,8 @@
|
||||
"book_properties": "Proprietăți colecție",
|
||||
"table": "Tabel",
|
||||
"geo-map": "Hartă geografică",
|
||||
"board": "Tablă Kanban"
|
||||
"board": "Tablă Kanban",
|
||||
"include_archived_notes": "Afișează notițele arhivate"
|
||||
},
|
||||
"bookmark_switch": {
|
||||
"bookmark": "Semn de carte",
|
||||
@@ -318,7 +322,7 @@
|
||||
"august": "August",
|
||||
"cannot_find_day_note": "Nu se poate găsi notița acelei zile",
|
||||
"december": "Decembrie",
|
||||
"febuary": "Februarie",
|
||||
"february": "Februarie",
|
||||
"fri": "Vin",
|
||||
"january": "Ianuarie",
|
||||
"july": "Iulie",
|
||||
@@ -334,7 +338,18 @@
|
||||
"thu": "Joi",
|
||||
"tue": "Mar",
|
||||
"wed": "Mie",
|
||||
"cannot_find_week_note": "Nu s-a putut găsi notița săptămânală"
|
||||
"cannot_find_week_note": "Nu s-a putut găsi notița săptămânală",
|
||||
"week": "Săptămână",
|
||||
"week_previous": "Săptămâna trecută",
|
||||
"week_next": "Următoarea săptămână",
|
||||
"month": "Lună",
|
||||
"month_previous": "Luna anterioară",
|
||||
"month_next": "Următoarea lună",
|
||||
"year": "An",
|
||||
"year_previous": "Anul trecut",
|
||||
"year_next": "Anul următor",
|
||||
"list": "Agendă",
|
||||
"today": "Astăzi"
|
||||
},
|
||||
"clone_to": {
|
||||
"clone_notes_to": "Clonează notițele către...",
|
||||
@@ -1070,7 +1085,12 @@
|
||||
"revisions_deleted": "Notița reviziei a fost ștearsă.",
|
||||
"maximum_revisions": "Numărul maxim de revizii pentru notița curentă: {{number}}.",
|
||||
"settings": "Setări revizii ale notițelor",
|
||||
"snapshot_interval": "Intervalul de creare a reviziilor pentru notițe: {{seconds}}s."
|
||||
"snapshot_interval": "Intervalul de creare a reviziilor pentru notițe: {{seconds}}s.",
|
||||
"diff_on": "Evidențiază diferențele",
|
||||
"diff_off": "Afișează conținutul",
|
||||
"diff_on_hint": "Clic pentru a afișa diferențele față de revizia anterioară, la nivel de cod sursă",
|
||||
"diff_off_hint": "Clic pentru a afișa întregul conținut al reviziei",
|
||||
"diff_not_available": "Diferențele nu pot fi evidențiate."
|
||||
},
|
||||
"revisions_button": {
|
||||
"note_revisions": "Revizii ale notiței"
|
||||
@@ -1357,7 +1377,7 @@
|
||||
"insert-note-after": "Inserează după notiță",
|
||||
"move-to": "Mutare la...",
|
||||
"open-in-a-new-split": "Deschide în lateral",
|
||||
"open-in-a-new-tab": "Deschide în tab nou <kbd>Ctrl+Clic</kbd>",
|
||||
"open-in-a-new-tab": "Deschide în tab nou",
|
||||
"paste-after": "Lipește după notiță",
|
||||
"paste-into": "Lipește în notiță",
|
||||
"protect-subtree": "Protejează ierarhia",
|
||||
@@ -1369,12 +1389,14 @@
|
||||
"unhoist-note": "Defocalizează notița",
|
||||
"converted-to-attachments": "{{count}} notițe au fost convertite în atașamente.",
|
||||
"convert-to-attachment-confirm": "Doriți convertirea notițelor selectate în atașamente ale notiței părinte?",
|
||||
"open-in-popup": "Editare rapidă"
|
||||
"open-in-popup": "Editare rapidă",
|
||||
"archive": "Arhivează",
|
||||
"unarchive": "Dezarhivează"
|
||||
},
|
||||
"shared_info": {
|
||||
"help_link": "Pentru informații vizitați <a href=\"https://triliumnext.github.io/Docs/Wiki/sharing.html\">wiki-ul</a>.",
|
||||
"shared_locally": "Această notiță este partajată local la {{- link}}",
|
||||
"shared_publicly": "Această notiță este partajată public la {{- link}}"
|
||||
"shared_locally": "Această notiță este partajată local la {{- link}}.",
|
||||
"shared_publicly": "Această notiță este partajată public la {{- link}}."
|
||||
},
|
||||
"note_types": {
|
||||
"book": "Colecție",
|
||||
@@ -1472,7 +1494,8 @@
|
||||
"create-child-note": "Crează subnotiță",
|
||||
"hoist-this-note-workspace": "Focalizează spațiul de lucru",
|
||||
"refresh-saved-search-results": "Reîmprospătează căutarea salvată",
|
||||
"unhoist": "Defocalizează notița"
|
||||
"unhoist": "Defocalizează notița",
|
||||
"toggle-sidebar": "Comută bara laterală"
|
||||
},
|
||||
"title_bar_buttons": {
|
||||
"window-on-top": "Menține fereastra mereu vizibilă"
|
||||
@@ -1564,7 +1587,9 @@
|
||||
"ws": {
|
||||
"consistency-checks-failed": "Au fost identificate erori de consistență! Vedeți mai multe detalii în loguri.",
|
||||
"encountered-error": "A fost întâmpinată o eroare: „{{message}}”. Vedeți în loguri pentru mai multe detalii.",
|
||||
"sync-check-failed": "Verificările de sincronizare au eșuat!"
|
||||
"sync-check-failed": "Verificările de sincronizare au eșuat!",
|
||||
"lost-websocket-connection-title": "S-a pierdut conexiunea la server",
|
||||
"lost-websocket-connection-message": "Verificați configurația reverse proxy-ului (e.g. nginx sau Apache) astfel încât să permită comunicarea prin WebSocket."
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "Notița dorită „{{requestedNote}}” este în afara ierarhiei notiței focalizate „{{hoistedNote}}”. Doriți defocalizarea pentru a accesa notița?"
|
||||
@@ -1645,7 +1670,7 @@
|
||||
},
|
||||
"electron_integration": {
|
||||
"background-effects": "Activează efectele de fundal (doar pentru Windows 11)",
|
||||
"background-effects-description": "Efectul Mica adaugă un fundal estompat și elegant ferestrelor aplicațiilor, creând profunzime și un aspect modern.",
|
||||
"background-effects-description": "Efectul Mica adaugă un fundal estompat și elegant ferestrelor aplicațiilor, creând profunzime și un aspect modern. Opțiunea „Bară de titlu nativă” trebuie să fie dezactivată.",
|
||||
"desktop-application": "Aplicația desktop",
|
||||
"native-title-bar": "Bară de titlu nativă",
|
||||
"native-title-bar-description": "Pentru Windows și macOS, dezactivarea bării de titlu native face aplicația să pară mai compactă. Pe Linux, păstrarea bării integrează mai bine aplicația cu restul sistemului de operare.",
|
||||
@@ -1908,7 +1933,7 @@
|
||||
"oauth_title": "OAuth/OpenID",
|
||||
"oauth_description": "OpenID este o cale standardizată ce permite autentificarea într-un site folosind un cont dintr-un alt serviciu, precum Google, pentru a verifica identitatea. În mod implicit furnizorul este Google, dar se poate schimba cu orice furnizor OpenID. Pentru mai multe informații, consultați <a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">ghidul</a>. Urmați <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">aceste instrucțiuni</a> pentru a putea configura OpenID prin Google.",
|
||||
"oauth_description_warning": "Pentru a activa OAuth sau OpenID, trebuie să configurați URL-ul de bază, ID-ul de client și secretul de client în fișierul config.ini și să reporniți aplicația. Dacă doriți să utilizați variabile de environment, puteți seta TRILIUM_OAUTH_BASE_URL, TRILIUM_OAUTH_CLIENT_ID și TRILIUM_OAUTH_CLIENT_SECRET.",
|
||||
"oauth_missing_vars": "Setări lipsă: {{variables}}",
|
||||
"oauth_missing_vars": "Setări lipsă: {{-variables}}",
|
||||
"oauth_user_account": "Cont: ",
|
||||
"oauth_user_email": "Email: ",
|
||||
"oauth_user_not_logged_in": "Neautentificat!"
|
||||
@@ -1933,7 +1958,11 @@
|
||||
"editorfeatures": {
|
||||
"title": "Funcții",
|
||||
"emoji_completion_enabled": "Activează auto-completarea pentru emoji-uri",
|
||||
"note_completion_enabled": "Activează auto-completarea pentru notițe"
|
||||
"note_completion_enabled": "Activează auto-completarea pentru notițe",
|
||||
"emoji_completion_description": "Dacă această funcție este pornită, emoji-urile pot fi inserate rapid prin tastarea caracterului „:”, urmat de denumirea emoji-ului.",
|
||||
"note_completion_description": "Dacă această funcție este pornită, se pot crea ușor legături către notițe prin tastarea „@”, urmată de titlul notiței dorite.",
|
||||
"slash_commands_enabled": "Activează comenzi rapide prin tasta slash",
|
||||
"slash_commands_description": "Dacă această funcție este pornită, se poate folosi tasta „/” pentru a rula rapid comenzi de editare precum inserarea de întreruperi de pagină sau titluri."
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "Rând nou",
|
||||
@@ -1969,14 +1998,21 @@
|
||||
"delete_row": "Șterge rândul"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "Șterge notița",
|
||||
"delete-note": "Șterge notița...",
|
||||
"move-to": "Mută la",
|
||||
"insert-above": "Inserează deasupra",
|
||||
"insert-below": "Inserează dedesubt",
|
||||
"delete-column": "Șterge coloana",
|
||||
"delete-column-confirmation": "Doriți ștergerea acestei coloane? Atributul corespunzător va fi șters din notițele din acest tabel.",
|
||||
"new-item": "Intrare nouă",
|
||||
"add-column": "Adaugă coloană"
|
||||
"add-column": "Adaugă coloană",
|
||||
"remove-from-board": "Înlătură de pe tablă",
|
||||
"archive-note": "Arhivează notița",
|
||||
"unarchive-note": "Dezarhivează notița",
|
||||
"new-item-placeholder": "Introduceți titlul notiței...",
|
||||
"add-column-placeholder": "Introduceți denumirea coloanei...",
|
||||
"edit-note-title": "Clic pentru a edita titlul notiței",
|
||||
"edit-column-title": "Clic pentru a edita titlul coloanei"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "Listă de notițe: {{name}}",
|
||||
@@ -2026,5 +2062,12 @@
|
||||
},
|
||||
"units": {
|
||||
"percentage": "%"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "Pagina pentru {{startIndex}} - {{endIndex}}",
|
||||
"total_notes": "{{count}} notițe"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Nu a putut fi afișat conținutul din cauza unei erori."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,13 +282,13 @@
|
||||
"editBranchPrefix": "изменить <a class=\"external\" href=\"https://triliumnext.github.io/Docs/Wiki/tree-concepts.html#prefix\">префикс</a> клона активной заметки",
|
||||
"multiSelectNote": "множественный выбор заметки выше/ниже",
|
||||
"selectNote": "выбрать заметку",
|
||||
"copyNotes": "скопировать активную заметку (или выделение) в буфер обмер (используется для <a class=\"external\" href=\"https://triliumnext.github.io/Docs/Wiki/cloning-notes.html#cloning-notes\">клонирования</a>)",
|
||||
"copyNotes": "скопировать активную заметку (или выделение) в буфер обмена (используется для <a class=\"external\" href=\"https://triliumnext.github.io/Docs/Wiki/cloning-notes.html#cloning-notes\">клонирования</a>)",
|
||||
"createEditLink": "создать/редактировать внешнюю ссылку",
|
||||
"headings": "<code>##</code>, <code>###</code>, <code>####</code> и т. д., за которыми следует пробел для заголовков",
|
||||
"bulletList": "<code>*</code> или <code>-</code> с последующим пробелом для маркированного списка",
|
||||
"numberedList": "<code>1.</code> или <code>1)</code> с последующим пробелом для нумерованного списка",
|
||||
"blockQuote": "начните строку с <code>></code>, а затем пробела для блока цитаты",
|
||||
"quickSearch": "сфокусироваться на полее ввода быстрого поиска",
|
||||
"quickSearch": "сфокусироваться на поле ввода быстрого поиска",
|
||||
"editNoteTitle": "в области дерева переключится с области дерева на заголовок заметки. Сочетание клавиш Enter из области заголовка заметки переключит фокус на текстовый редактор. <kbd>Ctrl+.</kbd> переключит обратно с редактора на область дерева.",
|
||||
"title": "Справка"
|
||||
},
|
||||
@@ -301,7 +301,7 @@
|
||||
"chooseImportFile": "Выберите файл импорта",
|
||||
"safeImport": "Безопасный импорт",
|
||||
"shrinkImages": "Уменьшить изображения",
|
||||
"textImportedAsText": "Импортировать HTML, Markdown и TXT как текстовые заметки, если из метаданные не позволяют определить тип заметки",
|
||||
"textImportedAsText": "Импортировать HTML, Markdown и TXT как текстовые заметки, если их метаданные не позволяют определить тип заметки",
|
||||
"replaceUnderscoresWithSpaces": "Заменить подчеркивания пробелами в названиях импортированных заметок",
|
||||
"import": "Импорт",
|
||||
"failed": "Сбой при импорте: {{message}}.",
|
||||
@@ -370,7 +370,7 @@
|
||||
"confirm_delete": "Вы хотите удалить эту версию?",
|
||||
"revisions_deleted": "Версии заметки были удалены.",
|
||||
"revision_restored": "Версия заметки была восстановлена.",
|
||||
"revision_deleted": "Версия заметки были удалены.",
|
||||
"revision_deleted": "Версия заметки была удалена.",
|
||||
"download_button": "Скачать",
|
||||
"file_size": "Размер файла:",
|
||||
"preview": "Предпросмотр:",
|
||||
@@ -379,7 +379,12 @@
|
||||
"settings": "Настройка версионирования заметок",
|
||||
"no_revisions": "У этой заметки еще нет версий...",
|
||||
"snapshot_interval": "Интервал создания версии заметки: {{seconds}} с.",
|
||||
"maximum_revisions": "Максимальное количество версий заметки: {{number}}."
|
||||
"maximum_revisions": "Максимальное количество версий заметки: {{number}}.",
|
||||
"diff_on": "Сравнить",
|
||||
"diff_off": "Показать содержимое",
|
||||
"diff_on_hint": "Отобразить сравнение исходного кода заметки",
|
||||
"diff_off_hint": "Отобразить контент заметки",
|
||||
"diff_not_available": "Сравнение недоступно."
|
||||
},
|
||||
"sort_child_notes": {
|
||||
"sort_children_by": "Сортировать дочерние заметки по...",
|
||||
@@ -458,7 +463,7 @@
|
||||
"run_at_hour": "В какой час это должно выполняться? Следует использовать вместе с <code>#run=hourly</code>. Можно задать несколько раз для большего количества запусков в течение дня.",
|
||||
"disable_inclusion": "скрипты с этой меткой не будут включены в выполнение родительского скрипта.",
|
||||
"sorted": "сохраняет алфавитную сортировку дочерних заметок",
|
||||
"sort_direction": "ASC (по возрастани, по умолчанию) или DESC (по убыванию)",
|
||||
"sort_direction": "ASC (по возрастанию, по умолчанию) или DESC (по убыванию)",
|
||||
"sort_folders_first": "Папки (заметки, включая дочерние) должны быть отсортированы вверх",
|
||||
"top": "закрепить заданную заметку наверху в ее родителе (применяется только к отсортированным родительским заметкам)",
|
||||
"hide_promoted_attributes": "Скрыть продвигаемых атрибуты в этой заметке",
|
||||
@@ -474,7 +479,7 @@
|
||||
"workspace_search_home": "новые заметки поиска будут созданы как дочерние записи этой заметки при перемещении их к какому-либо предку этой заметки рабочей области",
|
||||
"workspace_calendar_root": "Определяет корень календаря для каждого рабочего пространства",
|
||||
"hide_highlight_widget": "Скрыть виджет «Выделенное»",
|
||||
"is_owned_by_note": "принадлежит записке",
|
||||
"is_owned_by_note": "принадлежит заметке",
|
||||
"and_more": "... и ещё {{count}}.",
|
||||
"app_theme": "отмечает заметки CSS, которые являются полноценными темами Trilium и, таким образом, доступны в опциях Trilium.",
|
||||
"title_template": "Заголовок по умолчанию для заметок, создаваемых как дочерние элементы данной заметки. Значение вычисляется как строка JavaScript\n и, таким образом, может быть дополнено динамическим контентом с помощью внедренных переменных <code>now</code> и <code>parentNote</code>. Примеры:\n \n <ul>\n <li><code>Литературные произведения ${parentNote.getLabelValue('authorName')}</code></li>\n <li><code>Лог для ${now.format('YYYY-MM-DD HH:mm:ss')}</code></li>\n </ul>\n \n Подробности см. в <a href=\"https://triliumnext.github.io/Docs/Wiki/default-note-title.html\">вики</a>, документации API для <a href=\"https://zadam.github.io/trilium/backend_api/Note.html\">parentNote</a> и <a href=\"https://day.js.org/docs/en/display/format\">now</a>.",
|
||||
@@ -523,7 +528,7 @@
|
||||
"run_on_note_deletion": "выполняется при удалении заметки",
|
||||
"run_on_branch_creation": "выполняется при создании ветви. Ветвь — это связующее звено между родительской и дочерней заметками и создаётся, например, при клонировании или перемещении заметки.",
|
||||
"run_on_branch_change": "выполняется при обновлении ветки.",
|
||||
"run_on_attribute_creation": "выполняется, когда создается новый атрибут для заметка, определяющей это отношение",
|
||||
"run_on_attribute_creation": "выполняется, когда создается новый атрибут для заметки, определяющей это отношение",
|
||||
"run_on_attribute_change": " выполняется при изменении атрибута заметки, определяющей это отношение. Также срабатывает при удалении атрибута",
|
||||
"relation_template": "атрибуты заметки будут унаследованы даже без родительско-дочерних отношений. Содержимое заметки и её поддерево будут добавлены к экземпляру заметки, если оно пустое. Подробности см. в документации.",
|
||||
"inherit": "атрибуты заметки будут унаследованы даже без родительско-дочерних отношений. См. описание шаблонных отношений для получения аналогичной информации. См. раздел «Наследование атрибутов» в документации.",
|
||||
@@ -555,7 +560,14 @@
|
||||
"insert-below": "Вставить ниже",
|
||||
"insert-above": "Вставить выше",
|
||||
"move-to": "Переместить",
|
||||
"delete-note": "Удалить заметку"
|
||||
"delete-note": "Удалить заметку...",
|
||||
"remove-from-board": "Удалить из доски",
|
||||
"archive-note": "Архивировать заметку",
|
||||
"unarchive-note": "Разархивировать заметку",
|
||||
"edit-column-title": "Нажмите, чтобы изменить заголовок столбца",
|
||||
"edit-note-title": "Нажмите, чтобы изменить название заметки",
|
||||
"add-column-placeholder": "Введите имя столбца...",
|
||||
"new-item-placeholder": "Введите название заметки..."
|
||||
},
|
||||
"table_context_menu": {
|
||||
"delete_row": "Удалить строку"
|
||||
@@ -573,7 +585,11 @@
|
||||
"editorfeatures": {
|
||||
"note_completion_enabled": "Включить автодополнение",
|
||||
"emoji_completion_enabled": "Включить автодополнение эмодзи",
|
||||
"title": "Особенности"
|
||||
"title": "Особенности",
|
||||
"slash_commands_description": "Если эта опция включена, команды редактирования, такие как вставка переносов строк или заголовков, можно переключать, вводя `/`.",
|
||||
"slash_commands_enabled": "Включить слэш-команды",
|
||||
"note_completion_description": "Если эта опция включена, ссылки на заметки можно создавать, вводя `@`, а затем название заметки.",
|
||||
"emoji_completion_description": "Если эта функция включена, эмодзи можно легко вставлять в текст, набрав `:`, а затем название эмодзи."
|
||||
},
|
||||
"cpu_arch_warning": {
|
||||
"dont_show_again": "Больше не показывать это предупреждение",
|
||||
@@ -653,10 +669,10 @@
|
||||
"electron_integration": {
|
||||
"zoom-factor": "Коэффициент масштабирования",
|
||||
"restart-app-button": "Применить изменения и перезапустить приложение",
|
||||
"background-effects-description": "Эффект Mica добавляет размытый, стильный фон окнам приложений, создавая глубину и современный вид.",
|
||||
"background-effects-description": "Эффект Mica добавляет размытый, стильный фон окнам приложений, создавая глубину и современный вид. Опция \"Системная строка заголовка\" должна быть отключена.",
|
||||
"background-effects": "Включить фоновые эффекты (только Windows 11)",
|
||||
"native-title-bar-description": "В Windows и macOS отключение нативной строки заголовка делает приложение более компактным. В Linux включение нативной строки заголовка улучшает интеграцию с остальной частью системы.",
|
||||
"native-title-bar": "Нативная панель заголовка",
|
||||
"native-title-bar-description": "В Windows и macOS отключение системной строки заголовка делает приложение более компактным. В Linux включение системной строки заголовка улучшает интеграцию с остальной частью системы.",
|
||||
"native-title-bar": "Системная панель заголовка",
|
||||
"desktop-application": "Десктопное приложение"
|
||||
},
|
||||
"link_context_menu": {
|
||||
@@ -700,7 +716,7 @@
|
||||
},
|
||||
"code_block": {
|
||||
"copy_title": "Копировать в буфер обмена",
|
||||
"theme_group_dark": "Темныце темы",
|
||||
"theme_group_dark": "Темные темы",
|
||||
"theme_group_light": "Светлые темы",
|
||||
"theme_none": "Нет подсветки синтаксиса",
|
||||
"word_wrapping": "Перенос слов"
|
||||
@@ -771,7 +787,7 @@
|
||||
"beta-feature": "Бета",
|
||||
"widget": "Виджет",
|
||||
"image": "Изображение",
|
||||
"file": "Файд",
|
||||
"file": "Файл",
|
||||
"canvas": "Холст",
|
||||
"mermaid-diagram": "Диаграмма Mermaid",
|
||||
"book": "Коллекция",
|
||||
@@ -797,9 +813,9 @@
|
||||
"cut": "Вырезать",
|
||||
"duplicate": "Создать дубликат",
|
||||
"export": "Экспорт",
|
||||
"open-in-a-new-tab": "Открыть в новой вкладке <kbd>Ctrl+Click</kbd>",
|
||||
"open-in-a-new-tab": "Открыть в новой вкладке",
|
||||
"open-in-a-new-split": "Открыть в новой панели",
|
||||
"unhoist-note": "Отрепить заметку",
|
||||
"unhoist-note": "Открепить заметку",
|
||||
"hoist-note": "Закрепить заметку",
|
||||
"protect-subtree": "Защитить поддерево",
|
||||
"unprotect-subtree": "Снять защиту с поддерева",
|
||||
@@ -812,7 +828,7 @@
|
||||
"expand-subtree": "Развернуть поддерево",
|
||||
"collapse-subtree": "Свернуть поддерево",
|
||||
"sort-by": "Сортировать по...",
|
||||
"insert-note-after": "Вставить замтку после",
|
||||
"insert-note-after": "Вставить заметку после",
|
||||
"insert-child-note": "Вставить дочернюю заметку",
|
||||
"search-in-subtree": "Поиск в поддереве",
|
||||
"edit-branch-prefix": "Изменить префикс ветки",
|
||||
@@ -821,7 +837,9 @@
|
||||
"recent-changes-in-subtree": "Последние изменения в поддереве",
|
||||
"copy-note-path-to-clipboard": "Копировать путь к заметке в буфер обмена",
|
||||
"convert-to-attachment-confirm": "Вы уверены, что хотите преобразовать выбранные заметки во вложения их родительских заметок?",
|
||||
"converted-to-attachments": "{{count}} заметок были преобразованы во вложения."
|
||||
"converted-to-attachments": "{{count}} заметок были преобразованы во вложения.",
|
||||
"archive": "Архивировать",
|
||||
"unarchive": "Разархивировать"
|
||||
},
|
||||
"info": {
|
||||
"closeButton": "Закрыть",
|
||||
@@ -850,7 +868,7 @@
|
||||
"to": "в",
|
||||
"move_note": "Переместить заметку",
|
||||
"target_parent_note": "целевая версии заметки",
|
||||
"on_all_matched_notes": "На всех совпадающих нотах",
|
||||
"on_all_matched_notes": "На всех совпадающих заметках",
|
||||
"move_note_new_parent": "переместить заметку в новый родительский элемент, если у заметки есть только один родительский элемент (т. е. старая ветвь удаляется и создается новая ветвь в новом родительском элементе)",
|
||||
"clone_note_new_parent": "клонировать заметку в новый родительский элемент, если у заметки есть несколько клонов/ветвей (неясно, какую ветвь следует удалить)",
|
||||
"nothing_will_happen": "ничего не произойдет, если эту заметку невозможно переместить в целевую заметку (т.е. это создаст цикл дерева)"
|
||||
@@ -888,7 +906,7 @@
|
||||
"delete_attachment": "Удалить вложение",
|
||||
"upload_new_revision": "Загрузить новую версию",
|
||||
"open_custom": "Открыть как...",
|
||||
"open_custom_client_only": "Иной способ открытие вложений возможен только из десктопного приложения.",
|
||||
"open_custom_client_only": "Открытие вложений другим способом возможно только в десктопном приложении.",
|
||||
"open_externally_detail_page": "Открытие вложения извне доступно только из детальной страницы. Для этого сначала нажмите на сведения о вложении и повторите действие.",
|
||||
"open_custom_title": "Файл будет открыт во внешнем приложении и отслеживаться на наличие изменений. После этого вы сможете загрузить изменённую версию обратно в Trilium.",
|
||||
"open_externally_title": "Файл будет открыт во внешнем приложении и отслеживаться на наличие изменений. После этого вы сможете загрузить изменённую версию обратно в Trilium.",
|
||||
@@ -911,7 +929,7 @@
|
||||
"sat": "Сбт",
|
||||
"sun": "Вс",
|
||||
"january": "Январь",
|
||||
"febuary": "Февраль",
|
||||
"february": "Февраль",
|
||||
"march": "Март",
|
||||
"april": "Апрель",
|
||||
"may": "Май",
|
||||
@@ -923,7 +941,18 @@
|
||||
"november": "Ноябрь",
|
||||
"december": "Декабрь",
|
||||
"cannot_find_week_note": "Не удалось найти заметку недели",
|
||||
"cannot_find_day_note": "Не удалось найти заметку дня"
|
||||
"cannot_find_day_note": "Не удалось найти заметку дня",
|
||||
"week": "Неделя",
|
||||
"week_previous": "Прошлая неделя",
|
||||
"week_next": "Следующая неделя",
|
||||
"month": "Месяц",
|
||||
"month_previous": "Предыдущий месяц",
|
||||
"month_next": "Следующий месяц",
|
||||
"year": "Год",
|
||||
"year_previous": "Предыдущий год",
|
||||
"year_next": "Следующий год",
|
||||
"list": "Список",
|
||||
"today": "Сегодня"
|
||||
},
|
||||
"global_menu": {
|
||||
"menu": "Меню",
|
||||
@@ -984,7 +1013,8 @@
|
||||
"geo-map": "Карта",
|
||||
"invalid_view_type": "Недопустимый тип представления '{{type}}'",
|
||||
"expand_all_children": "Развернуть все дочерние элементы",
|
||||
"collapse_all_notes": "Свернуть все заметки"
|
||||
"collapse_all_notes": "Свернуть все заметки",
|
||||
"include_archived_notes": "Показать заархивированные заметки"
|
||||
},
|
||||
"edited_notes": {
|
||||
"deleted": "(удалено)",
|
||||
@@ -994,8 +1024,8 @@
|
||||
"file_properties": {
|
||||
"download": "Скачать",
|
||||
"open": "Открыть",
|
||||
"title": "Файд",
|
||||
"upload_success": "Загрузка новой версии файла не удалась.",
|
||||
"title": "Файл",
|
||||
"upload_success": "Новая версия файла успешно загружена.",
|
||||
"upload_new_revision": "Загрузить новую версию",
|
||||
"file_size": "Размер файла",
|
||||
"file_type": "Тип файла",
|
||||
@@ -1127,7 +1157,7 @@
|
||||
"label_abc": "возвращает заметки с меткой abc",
|
||||
"label_year": "ищет заметки с меткой year, имеющей значение 2019",
|
||||
"label_rock_pop": "соответствует заметкам с метками как rock, так и pop",
|
||||
"label_rock_or_pop": "должна присутствовать только одна из vtnjr",
|
||||
"label_rock_or_pop": "должна присутствовать только одна из меток",
|
||||
"label_year_comparison": "числовое сравнение (также >, >=, <).",
|
||||
"label_date_created": "заметки, созданные за последний месяц",
|
||||
"error": "Ошибка поиска: {{error}}",
|
||||
@@ -1181,7 +1211,7 @@
|
||||
"native_title_bar": {
|
||||
"enabled": "включено",
|
||||
"disabled": "выключено",
|
||||
"title": "Нативная панель заголовка (требует перезапуска приложения)"
|
||||
"title": "Системная панель заголовка (требует перезапуска приложения)"
|
||||
},
|
||||
"ai_llm": {
|
||||
"progress": "Прогресс",
|
||||
@@ -1387,7 +1417,7 @@
|
||||
"first-week-contains-first-day": "Первая неделя содержит первый день года",
|
||||
"first-week-contains-first-thursday": "Первая неделя содержит первый четверг года",
|
||||
"first-week-has-minimum-days": "Первая неделя имеет минимальное количество дней",
|
||||
"min-days-in-first-week": "Минимальное количество дней в первую неделю",
|
||||
"min-days-in-first-week": "Минимальное количество дней в первой неделе",
|
||||
"first-week-info": "Первая неделя содержит первый четверг года в соответствии со стандартом <a href=\"https://en.wikipedia.org/wiki/ISO_week_date#First_week\">ISO 8601</a>.",
|
||||
"first-week-warning": "Изменение параметров первой недели может привести к дублированию существующих недельных заметок, и существующие недельные заметки не будут обновлены соответствующим образом.",
|
||||
"formatting-locale": "Формат даты и числа"
|
||||
@@ -1449,7 +1479,7 @@
|
||||
"totp_secret_generated": "Создан секрет TOTP",
|
||||
"recovery_keys_generate": "Генерация кодов восстановления",
|
||||
"recovery_keys_regenerate": "Регенерация кодов восстановления",
|
||||
"oauth_missing_vars": "Отсутствуют настройки: {{variables}}",
|
||||
"oauth_missing_vars": "Отсутствуют настройки: {{-variables}}",
|
||||
"oauth_user_not_logged_in": "Не выполнен вход!",
|
||||
"totp_title": "Одноразовый пароль с ограничением по времени (TOTP)",
|
||||
"recovery_keys_title": "Ключи восстановления единого входа",
|
||||
@@ -1693,7 +1723,7 @@
|
||||
"database_vacuumed": "База данных была сжата"
|
||||
},
|
||||
"vim_key_bindings": {
|
||||
"use_vim_keybindings_in_code_notes": "Раскладка клавиш VIM",
|
||||
"use_vim_keybindings_in_code_notes": "Сочетания клавиш Vim",
|
||||
"enable_vim_keybindings": "Включить сочетания клавиш Vim в заметках кода (без режима ex)"
|
||||
},
|
||||
"network_connections": {
|
||||
@@ -1776,7 +1806,7 @@
|
||||
"button_title": "Экспортировать диаграмму как SVG"
|
||||
},
|
||||
"copy_image_reference_button": {
|
||||
"button_title": "Скопировать ссылку на изображение в буфер обмена, можент быть вставлена в текстовую заметку."
|
||||
"button_title": "Скопировать ссылку на изображение в буфер обмена, может быть вставлена в текстовую заметку."
|
||||
},
|
||||
"note_launcher": {
|
||||
"this_launcher_doesnt_define_target_note": "Этот лаунчер не определяет целевую заметку."
|
||||
@@ -1947,7 +1977,9 @@
|
||||
"ws": {
|
||||
"sync-check-failed": "Проверка синхронизации не удалась!",
|
||||
"encountered-error": "Обнаружена ошибка \"{{message}}\", проверьте консоль.",
|
||||
"consistency-checks-failed": "Проверка целостности не пройдена! Подробности смотрите в логах."
|
||||
"consistency-checks-failed": "Проверка целостности не пройдена! Подробности смотрите в логах.",
|
||||
"lost-websocket-connection-title": "Потеряно соединение с сервером",
|
||||
"lost-websocket-connection-message": "Проверьте конфигурацию обратного прокси (например, nginx или Apache), чтобы убедиться, что соединения WebSocket должным образом разрешены и не заблокированы."
|
||||
},
|
||||
"attachment_detail_2": {
|
||||
"role_and_size": "Роль: {{role}}, Размер: {{size}}",
|
||||
@@ -2019,12 +2051,23 @@
|
||||
"could_not_find_typewidget": "Не удалось найти typeWidget для типа '{{type}}'"
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "В этой коллекции нет дочерних заметок, поэтому отображать нечего. Подробности см. на <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a>."
|
||||
"no_children_help": "В этой коллекции нет дочерних заметок, поэтому отображать нечего. Подробности см. в <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a>.",
|
||||
"drag_locked_title": "Защищено от изменения",
|
||||
"drag_locked_message": "Перетаскивание не допускается, так как коллекция защищена от редактирования."
|
||||
},
|
||||
"ui-performance": {
|
||||
"title": "Производительность",
|
||||
"enable-motion": "Включить визуальные эффекты и анимации",
|
||||
"enable-shadows": "Включить тени",
|
||||
"enable-backdrop-effects": "Включить эффекты размытия фона меню, всплывающих окон и панелей"
|
||||
"enable-backdrop-effects": "Включить эффекты размытия фона меню, всплывающих окон и панелей",
|
||||
"enable-smooth-scroll": "Включить плавную прокрутку",
|
||||
"app-restart-required": "(для вступления изменений в силу требуется перезапуск приложения)"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Невозможно отобразить содержимое из-за ошибки."
|
||||
},
|
||||
"pagination": {
|
||||
"total_notes": "{{count}} заметок",
|
||||
"page_title": "Страница {{startIndex}} - {{endIndex}}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,26 +1,96 @@
|
||||
{
|
||||
"about": {
|
||||
"homepage": "Giriş sayfası:",
|
||||
"app_version": "Uygulama versiyonu:",
|
||||
"db_version": "Veritabanı versiyonu:"
|
||||
"about": {
|
||||
"homepage": "Anasayfa:",
|
||||
"app_version": "Uygulama versiyonu:",
|
||||
"db_version": "Veritabanı versiyonu:",
|
||||
"title": "Trilium Notes Hakkında",
|
||||
"sync_version": "Eşleştirme versiyonu:",
|
||||
"data_directory": "Veri dizini:"
|
||||
},
|
||||
"branch_prefix": {
|
||||
"save": "Kaydet",
|
||||
"edit_branch_prefix": "Dalın önekini düzenle",
|
||||
"prefix": "Önek: ",
|
||||
"branch_prefix_saved": "Dal öneki kaydedildi."
|
||||
},
|
||||
"delete_notes": {
|
||||
"close": "Kapat",
|
||||
"delete_notes_preview": "Not önizlemesini sil",
|
||||
"delete_all_clones_description": "Tüm klonları da sil (son değişikliklerden geri alınabilir)"
|
||||
},
|
||||
"export": {
|
||||
"close": "Kapat"
|
||||
},
|
||||
"import": {
|
||||
"chooseImportFile": "İçe aktarım dosyası",
|
||||
"importDescription": "Seçilen dosya(lar) alt not olarak içe aktarılacaktır"
|
||||
},
|
||||
"info": {
|
||||
"closeButton": "Kapat"
|
||||
},
|
||||
"protected_session_password": {
|
||||
"close_label": "Kapat"
|
||||
},
|
||||
"toast": {
|
||||
"critical-error": {
|
||||
"title": "Kritik hata",
|
||||
"message": "İstemci uygulamasının başlatılmasını engelleyen kritik bir hata meydana geldi\n\n{{message}}\n\nBu muhtemelen bir betiğin beklenmedik şekilde başarısız olmasından kaynaklanıyor. Uygulamayı güvenli modda başlatarak sorunu ele almayı deneyin."
|
||||
},
|
||||
"branch_prefix": {
|
||||
"save": "Kaydet"
|
||||
"widget-error": {
|
||||
"title": "Bir widget başlatılamadı",
|
||||
"message-unknown": "Bilinmeyen widget aşağıdaki sebeple başlatılamadı\n\n{{message}}"
|
||||
},
|
||||
"delete_notes": {
|
||||
"close": "Kapat"
|
||||
},
|
||||
"export": {
|
||||
"close": "Kapat"
|
||||
},
|
||||
"import": {
|
||||
"chooseImportFile": "İçe aktarım dosyası",
|
||||
"importDescription": "Seçilen dosya(lar) alt not olarak içe aktarılacaktır"
|
||||
},
|
||||
"info": {
|
||||
"closeButton": "Kapat"
|
||||
},
|
||||
"protected_session_password": {
|
||||
"close_label": "Kapat"
|
||||
"bundle-error": {
|
||||
"title": "Özel bir betik yüklenemedi"
|
||||
}
|
||||
},
|
||||
"add_link": {
|
||||
"add_link": "Bağlantı ekle",
|
||||
"help_on_links": "Bağlantılar konusunda yardım",
|
||||
"note": "Not",
|
||||
"search_note": "isimle not ara",
|
||||
"link_title_mirrors": "bağlantı adı notun şu anki adıyla aynı",
|
||||
"link_title_arbitrary": "bağlantı adı isteğe bağlı olarak değiştirilebilir",
|
||||
"link_title": "Bağlantı adı",
|
||||
"button_add_link": "Bağlantı ekle"
|
||||
},
|
||||
"bulk_actions": {
|
||||
"bulk_actions": "Toplu eylemler",
|
||||
"affected_notes": "Etkilenen notlar",
|
||||
"include_descendants": "Seçili notların alt notlarını da ekle",
|
||||
"available_actions": "Mevcut eylemler",
|
||||
"chosen_actions": "Seçili eylemler",
|
||||
"execute_bulk_actions": "Toplu eylemleri uygula",
|
||||
"bulk_actions_executed": "Toplu eylemler başarıyla uygulandı.",
|
||||
"none_yet": "Henüz yok... yukarıda mevcut eylemler arasından birine tıklayarak eylem ekle.",
|
||||
"labels": "Etiketler",
|
||||
"relations": "İlişkiler",
|
||||
"notes": "Notlar",
|
||||
"other": "Diğer"
|
||||
},
|
||||
"clone_to": {
|
||||
"clone_notes_to": "Notları klonla...",
|
||||
"help_on_links": "Bağlantılar konusunda yardım",
|
||||
"notes_to_clone": "Klonlanacak notlar",
|
||||
"target_parent_note": "Hedef üst not",
|
||||
"search_for_note_by_its_name": "isme göre not ara",
|
||||
"cloned_note_prefix_title": "Klonlanan not, not ağacında belirtilen önek ile gösterilecektir",
|
||||
"prefix_optional": "önek (opsiyonel)",
|
||||
"clone_to_selected_note": "Seçili nota klonla",
|
||||
"no_path_to_clone_to": "Klonlanacak bir yol yok.",
|
||||
"note_cloned": "\"{{clonedTitle}}\" notu \"{{targetTitle}}\"'a klonlandı"
|
||||
},
|
||||
"confirm": {
|
||||
"confirmation": "Onay",
|
||||
"cancel": "İptal",
|
||||
"ok": "OK",
|
||||
"are_you_sure_remove_note": "\"{{title}}\" notunu ilişki haritasından kaldırmak istediğinize emin misiniz?. ",
|
||||
"also_delete_note": "Notu da sil"
|
||||
},
|
||||
"ai_llm": {
|
||||
"n_notes_queued": "{{ count }} not dizinleme için sıraya alındı",
|
||||
"n_notes_queued_plural": "{{ count }} not dizinleme için sıraya alındı",
|
||||
"notes_indexed": "{{ count }} not dizinlendi",
|
||||
"notes_indexed_plural": "{{ count }} not dizinlendi"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -276,7 +276,12 @@
|
||||
"preview": "預覽:",
|
||||
"preview_not_available": "無法預覽此類型的筆記。",
|
||||
"restore_button": "還原",
|
||||
"delete_button": "刪除"
|
||||
"delete_button": "刪除",
|
||||
"diff_on": "顯示差異",
|
||||
"diff_off": "顯示內容",
|
||||
"diff_on_hint": "點擊以顯示筆記原始碼差異",
|
||||
"diff_off_hint": "點擊以顯示筆記內容",
|
||||
"diff_not_available": "差異不可用。"
|
||||
},
|
||||
"sort_child_notes": {
|
||||
"sort_children_by": "依…排序子筆記",
|
||||
@@ -576,7 +581,7 @@
|
||||
"sun": "日",
|
||||
"cannot_find_day_note": "無法找到日記",
|
||||
"january": "一月",
|
||||
"febuary": "二月",
|
||||
"february": "二月",
|
||||
"march": "三月",
|
||||
"april": "四月",
|
||||
"may": "五月",
|
||||
@@ -587,7 +592,18 @@
|
||||
"october": "十月",
|
||||
"november": "十一月",
|
||||
"december": "十二月",
|
||||
"cannot_find_week_note": "無法找到週記"
|
||||
"cannot_find_week_note": "無法找到週記",
|
||||
"week": "週",
|
||||
"week_previous": "上週",
|
||||
"week_next": "下週",
|
||||
"month": "月",
|
||||
"month_previous": "上個月",
|
||||
"month_next": "下個月",
|
||||
"year": "年",
|
||||
"year_previous": "前一年",
|
||||
"year_next": "後一年",
|
||||
"list": "列表",
|
||||
"today": "今天"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "關閉此面板"
|
||||
@@ -745,7 +761,8 @@
|
||||
"calendar": "日曆",
|
||||
"table": "表格",
|
||||
"geo-map": "地理地圖",
|
||||
"board": "看板"
|
||||
"board": "看板",
|
||||
"include_archived_notes": "顯示已封存筆記"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "今天還沒有編輯過的筆記...",
|
||||
@@ -946,7 +963,9 @@
|
||||
"no_attachments": "此筆記沒有附件。"
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "此類型為書籍的筆記沒有任何子筆記,因此沒有內容可顯示。請參閱 <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> 以了解詳情。"
|
||||
"no_children_help": "此類型為書籍的筆記沒有任何子筆記,因此沒有內容可顯示。請參閱 <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">wiki</a> 以了解詳情。",
|
||||
"drag_locked_title": "鎖定編輯",
|
||||
"drag_locked_message": "無法拖曳,因為此集合已被鎖定編輯。"
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "在這裡輸入您的程式碼筆記內容…"
|
||||
@@ -1366,7 +1385,7 @@
|
||||
"button-tree-map": "樹狀地圖"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "在新分頁中打開 <kbd>Ctrl+Click</kbd>",
|
||||
"open-in-a-new-tab": "在新分頁中打開",
|
||||
"open-in-a-new-split": "在新頁面分割中打開",
|
||||
"insert-note-after": "在後面插入筆記",
|
||||
"insert-child-note": "插入子筆記",
|
||||
@@ -1396,7 +1415,9 @@
|
||||
"converted-to-attachments": "{{count}} 個筆記已被轉換為附件。",
|
||||
"convert-to-attachment-confirm": "確定要將所選的筆記轉換為其父級筆記的附件嗎?",
|
||||
"duplicate": "複製副本",
|
||||
"open-in-popup": "快速編輯"
|
||||
"open-in-popup": "快速編輯",
|
||||
"archive": "封存",
|
||||
"unarchive": "解除封存"
|
||||
},
|
||||
"shared_info": {
|
||||
"help_link": "如需幫助,請訪問 <a href=\"https://triliumnext.github.io/Docs/Wiki/sharing.html\">wiki</a>。",
|
||||
@@ -1561,7 +1582,9 @@
|
||||
"ws": {
|
||||
"sync-check-failed": "同步檢查失敗!",
|
||||
"consistency-checks-failed": "一致性檢查失敗!請查看日誌以了解詳細資訊。",
|
||||
"encountered-error": "遇到錯誤 \"{{message}}\",請查看控制台。"
|
||||
"encountered-error": "遇到錯誤 \"{{message}}\",請查看控制台。",
|
||||
"lost-websocket-connection-title": "與伺服器的連線中斷",
|
||||
"lost-websocket-connection-message": "檢查您的反向代理(如 nginx 或 Apache)設定以確保 Websocket 連線沒有被阻擋。"
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "請求的筆記 '{{requestedNote}}' 位於聚焦的筆記 '{{hoistedNote}}' 的子階層之外,您必須取消聚焦才能訪問該筆記。是否繼續取消聚焦?"
|
||||
@@ -1822,7 +1845,7 @@
|
||||
"oauth_title": "OAuth / OpenID 驗證",
|
||||
"oauth_description": "OpenID 是一種標準化的方式,可讓您使用其他服務(如 Google)的帳號登入網站,以驗證您的身份。預設的提供者是 Google,但您可以將其變更為任何其他 OpenID 提供者。查看<a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">此處</a>以瞭解更多資訊。依照這些 <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">指示</a>以透過 Google 設定 OpenID 服務。",
|
||||
"oauth_description_warning": "要啟用 OAuth / OpenID,您需要設定 config.ini 文件中的 OAuth / OpenID 基礎 URL、客戶端 ID 和客戶端金鑰,並重新啟動應用程式。如果要從環境變數設置,請設定 TRILIUM_OAUTH_BASE_URL、TRILIUM_OAUTH_CLIENT_ID 和 TRILIUM_OAUTH_CLIENT_SECRET 環境變數。",
|
||||
"oauth_missing_vars": "缺少以下設定:{{variables}}",
|
||||
"oauth_missing_vars": "缺少以下設定:{{-variables}}",
|
||||
"oauth_user_account": "用戶帳號: ",
|
||||
"oauth_user_email": "用戶信箱: ",
|
||||
"oauth_user_not_logged_in": "尚未登入!"
|
||||
@@ -1832,7 +1855,7 @@
|
||||
"native-title-bar": "原生標題列",
|
||||
"native-title-bar-description": "對於 Windows 和 macOS,關閉原生標題列會讓應用程式看起來更緊湊。在 Linux 上,開啟原生標題列可以與系統的其他部分整合得更好。",
|
||||
"background-effects": "啟用背景效果(僅適用於 Windows 11)",
|
||||
"background-effects-description": "Mica 效果為程式視窗新增模糊且時尚的背景,營造出深度感和現代化外觀。",
|
||||
"background-effects-description": "Mica 效果為程式視窗新增模糊且時尚的背景,營造出深度感和現代化外觀。「原生標題列」必須被禁用。",
|
||||
"restart-app-button": "重新啟動應用程式以查看更改",
|
||||
"zoom-factor": "縮放係數"
|
||||
},
|
||||
@@ -1931,7 +1954,11 @@
|
||||
"editorfeatures": {
|
||||
"title": "功能",
|
||||
"emoji_completion_enabled": "啟用 Emoji 自動完成",
|
||||
"note_completion_enabled": "啟用筆記自動完成"
|
||||
"note_completion_enabled": "啟用筆記自動完成",
|
||||
"emoji_completion_description": "如果啟用,emoji 可以輕易地經由輸入 `:` 加上 emoji 名稱來插入。",
|
||||
"note_completion_description": "如果啟用,導向筆記的連結可以經由輸入 `@` 加上筆記標題來建立。",
|
||||
"slash_commands_enabled": "啟用斜線命令",
|
||||
"slash_commands_description": "如果啟用,可以經由輸入 `/` 來觸發命令,如插入換行符或標題。"
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "新增列",
|
||||
@@ -1967,14 +1994,21 @@
|
||||
"delete_row": "刪除列"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "刪除筆記",
|
||||
"delete-note": "刪除筆記…",
|
||||
"move-to": "移動至",
|
||||
"insert-above": "在上方插入",
|
||||
"insert-below": "在下方插入",
|
||||
"delete-column": "刪除行",
|
||||
"delete-column-confirmation": "您確定要刪除此行嗎?此行中所有筆記對應的屬性也將被移除。",
|
||||
"new-item": "新增項目",
|
||||
"add-column": "新增行"
|
||||
"add-column": "新增行",
|
||||
"remove-from-board": "從看板上移除",
|
||||
"archive-note": "封存筆記",
|
||||
"unarchive-note": "解除封存筆記",
|
||||
"new-item-placeholder": "輸入筆記標題…",
|
||||
"add-column-placeholder": "輸入行名…",
|
||||
"edit-note-title": "點擊以編輯筆記標題",
|
||||
"edit-column-title": "點擊以編輯行標題"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "樹:{{name}}",
|
||||
@@ -2021,6 +2055,15 @@
|
||||
"title": "效能",
|
||||
"enable-motion": "啟用轉場與動畫",
|
||||
"enable-shadows": "啟用陰影",
|
||||
"enable-backdrop-effects": "啟用選單、彈出視窗和面板的背景特效"
|
||||
"enable-backdrop-effects": "啟用選單、彈出視窗和面板的背景特效",
|
||||
"enable-smooth-scroll": "啟用平滑滾動",
|
||||
"app-restart-required": "(需要重啟程式以套用更改)"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "第 {{startIndex}} - {{endIndex}} 頁",
|
||||
"total_notes": "{{count}} 筆記"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "發現錯誤,無法顯示內容。"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,7 +326,12 @@
|
||||
"mime": "МІМЕ: ",
|
||||
"file_size": "Розмір файлу:",
|
||||
"preview": "Попередній перегляд:",
|
||||
"preview_not_available": "Попередній перегляд недоступний для цього типу нотатки."
|
||||
"preview_not_available": "Попередній перегляд недоступний для цього типу нотатки.",
|
||||
"diff_on": "Показати різницю",
|
||||
"diff_off": "Показати вміст",
|
||||
"diff_on_hint": "Натисніть, щоб показати різницю в джерелі нотатки",
|
||||
"diff_off_hint": "Натисніть, щоб показати вміст нотатки",
|
||||
"diff_not_available": "Різниця недоступна."
|
||||
},
|
||||
"include_note": {
|
||||
"dialog_title": "Включити нотатку",
|
||||
@@ -555,7 +560,7 @@
|
||||
"oauth_title": "OAuth/OpenID",
|
||||
"oauth_description": "OpenID – це стандартизований спосіб входу на веб-сайти за допомогою облікового запису з іншого сервісу, такого як Google, для підтвердження вашої особи. Емітентом за замовчуванням є Google, але ви можете змінити його на будь-якого іншого постачальника OpenID. Перегляньте <a href=\"#root/_hidden/_help/_help_Otzi9La2YAUX/_help_WOcw2SLH6tbX/_help_7DAiwaf8Z7Rz\">тут</a> для отримання додаткової інформації. Дотримуйтесь цих <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">інструкцій</a>, щоб налаштувати сервіс OpenID через Google.",
|
||||
"oauth_description_warning": "Щоб увімкнути OAuth/OpenID, потрібно встановити базову URL-адресу OAuth/OpenID, ідентифікатор клієнта та секрет клієнта у файлі config.ini та перезапустити програму. Якщо ви хочете встановити зі змінних середовища, встановіть TRILIUM_OAUTH_BASE_URL, TRILIUM_OAUTH_CLIENT_ID та TRILIUM_OAUTH_CLIENT_SECRET.",
|
||||
"oauth_missing_vars": "Відсутні налаштування: {{variables}}",
|
||||
"oauth_missing_vars": "Відсутні налаштування: {{-variables}}",
|
||||
"oauth_user_account": "Обліковий запис користувача: ",
|
||||
"oauth_user_email": "Електронна пошта користувача: ",
|
||||
"oauth_user_not_logged_in": "Ви не ввійшли в систему!"
|
||||
@@ -717,7 +722,7 @@
|
||||
"cannot_find_day_note": "Не вдається знайти денну нотатку",
|
||||
"cannot_find_week_note": "Не вдається знайти тижневу нотатку",
|
||||
"january": "Січень",
|
||||
"febuary": "Лютий",
|
||||
"february": "Лютий",
|
||||
"march": "Березень",
|
||||
"april": "Квітень",
|
||||
"may": "Травень",
|
||||
@@ -727,7 +732,18 @@
|
||||
"september": "Вересень",
|
||||
"october": "Жовтень",
|
||||
"november": "Листопад",
|
||||
"december": "Грудень"
|
||||
"december": "Грудень",
|
||||
"week": "Тиждень",
|
||||
"week_previous": "Попередній тиждень",
|
||||
"week_next": "Наступний тиждень",
|
||||
"month": "Місяць",
|
||||
"month_previous": "Попередній місяць",
|
||||
"month_next": "Наступний місяць",
|
||||
"year": "Рік",
|
||||
"year_previous": "Попередній рік",
|
||||
"year_next": "Наступний рік",
|
||||
"list": "Список",
|
||||
"today": "Сьогодні"
|
||||
},
|
||||
"close_pane_button": {
|
||||
"close_this_pane": "Закрити цю панель"
|
||||
@@ -860,7 +876,8 @@
|
||||
"calendar": "Календар",
|
||||
"table": "Таблиця",
|
||||
"geo-map": "Географічна карта",
|
||||
"board": "Дошка"
|
||||
"board": "Дошка",
|
||||
"include_archived_notes": "Показати архівовані нотатки"
|
||||
},
|
||||
"edited_notes": {
|
||||
"no_edited_notes_found": "Цього дня ще немає редагованих нотаток...",
|
||||
@@ -1052,7 +1069,9 @@
|
||||
"no_attachments": "Ця нотатка не має вкладень."
|
||||
},
|
||||
"book": {
|
||||
"no_children_help": "Ця колекція не має дочірніх нотаток, тому нічого відображати. Див. <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">вікі</a> для отримання детальної інформації."
|
||||
"no_children_help": "Ця колекція не має дочірніх нотаток, тому нічого відображати. Див. <a href=\"https://triliumnext.github.io/Docs/Wiki/book-note.html\">вікі</a> для отримання детальної інформації.",
|
||||
"drag_locked_title": "Заблоковано для редагування",
|
||||
"drag_locked_message": "Перетягування заборонено, оскільки колекцію заблоковано для редагування."
|
||||
},
|
||||
"editable_code": {
|
||||
"placeholder": "Введіть тут вміст вашої нотатки з кодом..."
|
||||
@@ -1650,7 +1669,9 @@
|
||||
"ws": {
|
||||
"sync-check-failed": "Перевірка синхронізації не вдалася!",
|
||||
"consistency-checks-failed": "Перевірка узгодженості не вдалася! Див. logs для отримання інформації.",
|
||||
"encountered-error": "Виникла помилка \"{{message}}\", перевірте консоль."
|
||||
"encountered-error": "Виникла помилка \"{{message}}\", перевірте консоль.",
|
||||
"lost-websocket-connection-title": "Втрачено з'єднання із сервером",
|
||||
"lost-websocket-connection-message": "Перевірте конфігурацію вашого зворотного проксі-сервера (наприклад, nginx або Apache), щоб переконатися, що з’єднання WebSocket належним чином дозволені та не блокуються."
|
||||
},
|
||||
"hoisted_note": {
|
||||
"confirm_unhoisting": "Запитана нотатка '{{requestedNote}}' знаходиться поза піддеревом закріплених нотаток '{{hoistedNote}}', і вам потрібно відкріпити нотатку, щоб отримати до неї доступ. Ви хочете продовжити відкріплення?"
|
||||
@@ -1679,7 +1700,7 @@
|
||||
"native-title-bar": "Нативний рядок заголовка",
|
||||
"native-title-bar-description": "У Windows та macOS вимкнення рядка заголовка робить програму компактнішою. У Linux увімкнення рядка заголовка краще інтегрується з рештою системи.",
|
||||
"background-effects": "Увімкнення фонових ефектів (лише для Windows 11)",
|
||||
"background-effects-description": "Ефект слюди додає розмитий, стильний фон вікнам програм, створюючи глибину та сучасний вигляд.",
|
||||
"background-effects-description": "Ефект слюди додає розмитий, стильний фон вікнам програм, створюючи глибину та сучасний вигляд. \"Нативний рядок заголовка\" має бути вимкнено.",
|
||||
"restart-app-button": "Перезапустіть програму, щоб переглянути зміни",
|
||||
"zoom-factor": "Коефіцієнт масштабування"
|
||||
},
|
||||
@@ -1778,7 +1799,11 @@
|
||||
"editorfeatures": {
|
||||
"title": "Особливості",
|
||||
"emoji_completion_enabled": "Увімкнути автозаповнення емодзі",
|
||||
"note_completion_enabled": "Увімкнути автозаповнення нотаток"
|
||||
"note_completion_enabled": "Увімкнути автозаповнення нотаток",
|
||||
"emoji_completion_description": "Якщо цю функцію ввімкнено, емодзі можна легко вставляти в текст, ввівши `:`, а потім назву емодзі.",
|
||||
"note_completion_description": "Якщо ввімкнено, посилання на нотатки можна створювати, вводячи `@`, а потім назву нотатки.",
|
||||
"slash_commands_enabled": "Увімкнути команди зі слеш",
|
||||
"slash_commands_description": "Якщо ввімкнено, команди редагування, такі як вставка розривів рядків або заголовків, можна перемикати, натискаючи `/`."
|
||||
},
|
||||
"table_view": {
|
||||
"new-row": "Новий рядок",
|
||||
@@ -1878,7 +1903,7 @@
|
||||
"button-tree-map": "Карта дерева"
|
||||
},
|
||||
"tree-context-menu": {
|
||||
"open-in-a-new-tab": "Відкрити в новій вкладці <kbd>Ctrl+Клік</kbd>",
|
||||
"open-in-a-new-tab": "Відкрити в новій вкладці",
|
||||
"open-in-a-new-split": "Відкрити в новому розділі",
|
||||
"insert-note-after": "Вставити нотатку після",
|
||||
"insert-child-note": "Вставити дочірню нотатку",
|
||||
@@ -1908,7 +1933,9 @@
|
||||
"apply-bulk-actions": "Застосувати масові дії",
|
||||
"converted-to-attachments": "({{count}}) нотаток перетворено на вкладення.",
|
||||
"convert-to-attachment-confirm": "Ви впевнені, що хочете конвертувати вибрані нотатки у вкладення до їхніх батьківських нотаток?",
|
||||
"open-in-popup": "Швидке редагування"
|
||||
"open-in-popup": "Швидке редагування",
|
||||
"archive": "Архівувати",
|
||||
"unarchive": "Розархівувати"
|
||||
},
|
||||
"shared_info": {
|
||||
"shared_publicly": "Ця нотатка опублікована на {{- link}}.",
|
||||
@@ -1975,14 +2002,21 @@
|
||||
"delete_row": "Видалити рядок"
|
||||
},
|
||||
"board_view": {
|
||||
"delete-note": "Видалити нотатку",
|
||||
"delete-note": "Видалити нотатку...",
|
||||
"move-to": "Перемістити до",
|
||||
"insert-above": "Вставити вище",
|
||||
"insert-below": "Вставити нижче",
|
||||
"delete-column": "Видалити стовпець",
|
||||
"delete-column-confirmation": "Ви впевнені, що хочете видалити цей стовпець? Відповідний атрибут також буде видалено в нотатках під цим стовпцем.",
|
||||
"new-item": "Новий елемент",
|
||||
"add-column": "Додати стовпець"
|
||||
"add-column": "Додати стовпець",
|
||||
"remove-from-board": "Видалити з дошки",
|
||||
"archive-note": "Архівувати нотатка",
|
||||
"unarchive-note": "Розархівувати нотатку",
|
||||
"new-item-placeholder": "Введіть заголовок нотатки...",
|
||||
"add-column-placeholder": "Введіть назву стовпця...",
|
||||
"edit-note-title": "Натисніть, щоб редагувати заголовок нотатки",
|
||||
"edit-column-title": "Натисніть, щоб редагувати заголовок стовпця"
|
||||
},
|
||||
"command_palette": {
|
||||
"tree-action-name": "Дерево: {{name}}",
|
||||
@@ -2025,6 +2059,15 @@
|
||||
"title": "Продуктивність",
|
||||
"enable-motion": "Увімкнути переходи та анімацію",
|
||||
"enable-shadows": "Увімкнути тіні",
|
||||
"enable-backdrop-effects": "Увімкнути фонові ефекти для меню, спливаючих вікон та панелей"
|
||||
"enable-backdrop-effects": "Увімкнути фонові ефекти для меню, спливаючих вікон та панелей",
|
||||
"enable-smooth-scroll": "Увімкнути плавне прокручування",
|
||||
"app-restart-required": "(щоб зміни набули чинності, потрібен перезапуск програми)"
|
||||
},
|
||||
"pagination": {
|
||||
"page_title": "Сторінка {{startIndex}} - {{endIndex}}",
|
||||
"total_notes": "{{count}} нотаток"
|
||||
},
|
||||
"collections": {
|
||||
"rendering_error": "Не вдалося показати вміст через помилку."
|
||||
}
|
||||
}
|
||||
|
||||
9
apps/client/src/types-lib.d.ts
vendored
9
apps/client/src/types-lib.d.ts
vendored
@@ -51,3 +51,12 @@ declare module "leaflet" {
|
||||
markers?: GPXMarker | undefined;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Navigator {
|
||||
/** Returns a boolean indicating whether the browser is running in standalone mode. Available on Apple's iOS Safari only. */
|
||||
standalone?: boolean;
|
||||
/** Returns the WindowControlsOverlay interface which exposes information about the geometry of the title bar in desktop Progressive Web Apps, and an event to know whenever it changes. */
|
||||
windowControlsOverlay?: unknown;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
.floating-buttons-children,
|
||||
.show-floating-buttons {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
top: var(--floating-buttons-vert-offset, 10px);
|
||||
right: var(--floating-buttons-horiz-offset, 10px);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
z-index: 100;
|
||||
@@ -28,8 +28,8 @@
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.type-canvas .floating-buttons-children {
|
||||
top: 70px;
|
||||
.type-canvas {
|
||||
--floating-buttons-vert-offset: 70px;
|
||||
}
|
||||
|
||||
.type-canvas .floating-buttons-children > * {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ParentComponent } from "./react/react_utils";
|
||||
import { EventData, EventNames } from "../components/app_context";
|
||||
import { type FloatingButtonsList, type FloatingButtonContext } from "./FloatingButtonsDefinitions";
|
||||
import ActionButton from "./react/ActionButton";
|
||||
import { ViewTypeOptions } from "../services/note_list_renderer";
|
||||
import { ViewTypeOptions } from "./collections/interface";
|
||||
|
||||
interface FloatingButtonsProps {
|
||||
items: FloatingButtonsList;
|
||||
|
||||
@@ -19,7 +19,7 @@ import { getHelpUrlForNote } from "../services/in_app_help";
|
||||
import froca from "../services/froca";
|
||||
import NoteLink from "./react/NoteLink";
|
||||
import RawHtml from "./react/RawHtml";
|
||||
import { ViewTypeOptions } from "../services/note_list_renderer";
|
||||
import { ViewTypeOptions } from "./collections/interface";
|
||||
|
||||
export interface FloatingButtonContext {
|
||||
parentComponent: Component;
|
||||
@@ -218,8 +218,8 @@ function SaveToNoteButton({ note }: FloatingButtonContext) {
|
||||
/>
|
||||
}
|
||||
|
||||
function RelationMapButtons({ note, triggerEvent }: FloatingButtonContext) {
|
||||
const isEnabled = (note.type === "relationMap");
|
||||
function RelationMapButtons({ note, isDefaultViewMode, triggerEvent }: FloatingButtonContext) {
|
||||
const isEnabled = (note.type === "relationMap" && isDefaultViewMode);
|
||||
return isEnabled && (
|
||||
<>
|
||||
<FloatingButton
|
||||
|
||||
@@ -18,7 +18,7 @@ dayjs.extend(isSameOrAfter);
|
||||
|
||||
const MONTHS = [
|
||||
t("calendar.january"),
|
||||
t("calendar.febuary"),
|
||||
t("calendar.february"),
|
||||
t("calendar.march"),
|
||||
t("calendar.april"),
|
||||
t("calendar.may"),
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
import type { EventData } from "../../components/app_context.js";
|
||||
import { t } from "../../services/i18n.js";
|
||||
import OnClickButtonWidget from "./onclick_button.js";
|
||||
|
||||
export default class ClosePaneButton extends OnClickButtonWidget {
|
||||
isEnabled() {
|
||||
return (
|
||||
super.isEnabled() &&
|
||||
// main note context should not be closeable
|
||||
this.noteContext &&
|
||||
!!this.noteContext.mainNtxId
|
||||
);
|
||||
}
|
||||
|
||||
async noteContextReorderEvent({ ntxIdsInOrder }: EventData<"noteContextReorder">) {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.icon("bx-x")
|
||||
.title(t("close_pane_button.close_this_pane"))
|
||||
.titlePlacement("bottom")
|
||||
.onClick((widget, e) => {
|
||||
// to avoid split pane container detecting click within the pane which would try to activate this
|
||||
// pane (which is being removed)
|
||||
e.stopPropagation();
|
||||
|
||||
widget.triggerCommand("closeThisNoteSplit", { ntxId: widget.getClosestNtxId() });
|
||||
})
|
||||
.class("icon-action");
|
||||
}
|
||||
}
|
||||
31
apps/client/src/widgets/buttons/close_pane_button.tsx
Normal file
31
apps/client/src/widgets/buttons/close_pane_button.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
import { t } from "../../services/i18n";
|
||||
import ActionButton from "../react/ActionButton";
|
||||
import { useNoteContext, useTriliumEvent } from "../react/hooks";
|
||||
|
||||
export default function ClosePaneButton() {
|
||||
const { noteContext, ntxId, parentComponent } = useNoteContext();
|
||||
const [ isEnabled, setIsEnabled ] = useState(false);
|
||||
|
||||
function refresh() {
|
||||
setIsEnabled(!!(noteContext && !!noteContext.mainNtxId));
|
||||
}
|
||||
|
||||
useTriliumEvent("noteContextReorder", refresh);
|
||||
useEffect(refresh, [ ntxId ]);
|
||||
|
||||
return (
|
||||
<ActionButton
|
||||
icon="bx bx-x"
|
||||
text={t("close_pane_button.close_this_pane")}
|
||||
className={!isEnabled ? "hidden-ext" : ""}
|
||||
onClick={(e) => {
|
||||
// to avoid split pane container detecting click within the pane which would try to activate this
|
||||
// pane (which is being removed)
|
||||
e.stopPropagation();
|
||||
|
||||
parentComponent?.triggerCommand("closeThisNoteSplit", { ntxId: parentComponent.getClosestNtxId() });
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
import { t } from "../../services/i18n.js";
|
||||
import OnClickButtonWidget from "./onclick_button.js";
|
||||
|
||||
export default class CreatePaneButton extends OnClickButtonWidget {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.icon("bx-dock-right")
|
||||
.title(t("create_pane_button.create_new_split"))
|
||||
.titlePlacement("bottom")
|
||||
.onClick((widget, e) => {
|
||||
widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() });
|
||||
e.stopPropagation();
|
||||
})
|
||||
.class("icon-action");
|
||||
}
|
||||
}
|
||||
21
apps/client/src/widgets/buttons/create_pane_button.tsx
Normal file
21
apps/client/src/widgets/buttons/create_pane_button.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { useContext } from "preact/hooks";
|
||||
import { t } from "../../services/i18n.js";
|
||||
import ActionButton from "../react/ActionButton.jsx";
|
||||
import { ParentComponent } from "../react/react_utils.jsx";
|
||||
import BasicWidget from "../basic_widget.js";
|
||||
|
||||
export default function CreatePaneButton() {
|
||||
const widget = useContext(ParentComponent) as BasicWidget | undefined;
|
||||
|
||||
return (
|
||||
<ActionButton
|
||||
icon="bx bx-dock-right"
|
||||
text={t("create_pane_button.create_new_split")}
|
||||
onClick={(e) => {
|
||||
widget?.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() });
|
||||
e.stopPropagation();
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -8,31 +8,50 @@
|
||||
min-width: 20em;
|
||||
}
|
||||
|
||||
.global-menu-button {
|
||||
button.global-menu-button {
|
||||
position: relative;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
position: relative;
|
||||
border: none;
|
||||
padding: 6px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.global-menu-button svg > g {
|
||||
transform-origin: center;
|
||||
transition: transform 300ms ease-in-out;
|
||||
}
|
||||
|
||||
.global-menu-button:active svg > g,
|
||||
.global-menu-button.show svg > g{
|
||||
transform: scale(0.85) rotate(-10deg);
|
||||
}
|
||||
|
||||
.global-menu-button svg path {
|
||||
fill: var(--launcher-pane-text-color);
|
||||
}
|
||||
|
||||
.global-menu-button:hover { border: 0; }
|
||||
.global-menu-button:hover svg path {
|
||||
transition: 200ms ease-in-out fill;
|
||||
.global-menu-button:hover {
|
||||
border: none;
|
||||
}
|
||||
.global-menu-button:hover svg path.st0 { fill:#95C980; }
|
||||
.global-menu-button:hover svg path.st1 { fill:#72B755; }
|
||||
.global-menu-button:hover svg path.st2 { fill:#4FA52B; }
|
||||
.global-menu-button:hover svg path.st3 { fill:#EE8C89; }
|
||||
.global-menu-button:hover svg path.st4 { fill:#E96562; }
|
||||
.global-menu-button:hover svg path.st5 { fill:#E33F3B; }
|
||||
.global-menu-button:hover svg path.st6 { fill:#EFB075; }
|
||||
.global-menu-button:hover svg path.st7 { fill:#E99547; }
|
||||
.global-menu-button:hover svg path.st8 { fill:#E47B19; }
|
||||
|
||||
.global-menu-button:hover svg path,
|
||||
.global-menu-button.show svg path {
|
||||
transition: 300ms linear fill;
|
||||
}
|
||||
|
||||
.global-menu-button svg path {
|
||||
transition: fill 1000ms ease-out;
|
||||
}
|
||||
|
||||
.global-menu-button:is(:hover, .show) svg path.st0 { fill:#95C980; transition-delay: 0ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st1 { fill:#72B755; transition-delay: 50ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st2 { fill:#4FA52B; transition-delay: 100ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st3 { fill:#EE8C89; transition-delay: 200ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st4 { fill:#E96562; transition-delay: 250ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st5 { fill:#E33F3B; transition-delay: 300ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st6 { fill:#EFB075; transition-delay: 400ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st7 { fill:#E99547; transition-delay: 450ms; }
|
||||
.global-menu-button:is(:hover, .show) svg path.st8 { fill:#E47B19; transition-delay: 500ms; }
|
||||
|
||||
.global-menu-button-update-available {
|
||||
position: absolute;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Dropdown from "../react/Dropdown";
|
||||
import "./global_menu.css";
|
||||
import { useStaticTooltip, useStaticTooltipWithKeyboardShortcut, useTriliumOption, useTriliumOptionBool } from "../react/hooks";
|
||||
import { useStaticTooltip, useStaticTooltipWithKeyboardShortcut, useTriliumOption, useTriliumOptionBool, useTriliumOptionInt } from "../react/hooks";
|
||||
import { useContext, useEffect, useRef, useState } from "preact/hooks";
|
||||
import { t } from "../../services/i18n";
|
||||
import { FormDropdownDivider, FormDropdownSubmenu, FormListItem } from "../react/FormList";
|
||||
@@ -37,6 +37,7 @@ export default function GlobalMenu({ isHorizontalLayout }: { isHorizontalLayout:
|
||||
<span className="bx bx-sync global-menu-button-update-available-button" title={t("update_available.update_available")}></span>
|
||||
</div>}
|
||||
</>}
|
||||
noDropdownListStyle
|
||||
>
|
||||
|
||||
<MenuItem command="openNewWindow" icon="bx bx-window-open" text={t("global_menu.open_new_window")} />
|
||||
@@ -141,31 +142,25 @@ function VerticalLayoutIcon() {
|
||||
}
|
||||
|
||||
function ZoomControls({ parentComponent }: { parentComponent?: Component | null }) {
|
||||
const [ zoomLevel, setZoomLevel ] = useState(100);
|
||||
const [ zoomLevel ] = useTriliumOption("zoomFactor");
|
||||
|
||||
function updateZoomState() {
|
||||
if (!isElectron()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const zoomFactor = dynamicRequire("electron").webFrame.getZoomFactor();
|
||||
setZoomLevel(Math.round(zoomFactor * 100));
|
||||
}
|
||||
|
||||
useEffect(updateZoomState, []);
|
||||
|
||||
function ZoomControlButton({ command, title, icon, children }: { command: KeyboardActionNames, title: string, icon?: string, children?: ComponentChildren }) {
|
||||
function ZoomControlButton({ command, title, icon, children, dismiss }: { command: KeyboardActionNames, title: string, icon?: string, children?: ComponentChildren, dismiss?: boolean }) {
|
||||
const linkRef = useRef<HTMLAnchorElement>(null);
|
||||
useStaticTooltipWithKeyboardShortcut(linkRef, title, command);
|
||||
useStaticTooltipWithKeyboardShortcut(linkRef, title, command, {
|
||||
placement: "bottom",
|
||||
fallbackPlacements: [ "bottom" ]
|
||||
});
|
||||
return (
|
||||
<a
|
||||
ref={linkRef}
|
||||
tabIndex={0}
|
||||
onClick={(e) => {
|
||||
parentComponent?.triggerCommand(command);
|
||||
setTimeout(() => updateZoomState(), 300)
|
||||
e.stopPropagation();
|
||||
if (!dismiss) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
}}
|
||||
className={icon}
|
||||
className={`dropdown-item-button ${icon}`}
|
||||
>{children}</a>
|
||||
)
|
||||
}
|
||||
@@ -173,15 +168,17 @@ function ZoomControls({ parentComponent }: { parentComponent?: Component | null
|
||||
return isElectron() ? (
|
||||
<FormListItem
|
||||
icon="bx bx-empty"
|
||||
container
|
||||
className="zoom-container"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
{t("global_menu.zoom")}
|
||||
<>
|
||||
<div className="zoom-buttons">
|
||||
<ZoomControlButton command="toggleFullscreen" title={t("global_menu.toggle_fullscreen")} icon="bx bx-expand-alt" />
|
||||
<ZoomControlButton command="toggleFullscreen" title={t("global_menu.toggle_fullscreen")} icon="bx bx-expand-alt" dismiss />
|
||||
|
||||
<ZoomControlButton command="zoomOut" title={t("global_menu.zoom_out")} icon="bx bx-minus" />
|
||||
<ZoomControlButton command="zoomReset" title={t("global_menu.reset_zoom_level")}>{zoomLevel}{t("units.percentage")}</ZoomControlButton>
|
||||
<ZoomControlButton command="zoomReset" title={t("global_menu.reset_zoom_level")}>{(parseFloat(zoomLevel) * 100).toFixed(0)}{t("units.percentage")}</ZoomControlButton>
|
||||
<ZoomControlButton command="zoomIn" title={t("global_menu.zoom_in")} icon="bx bx-plus" />
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
import OnClickButtonWidget from "./onclick_button.js";
|
||||
import appContext from "../../components/app_context.js";
|
||||
import { t } from "../../services/i18n.js";
|
||||
|
||||
export default class MovePaneButton extends OnClickButtonWidget {
|
||||
|
||||
private isMovingLeft: boolean;
|
||||
|
||||
constructor(isMovingLeft: boolean) {
|
||||
super();
|
||||
|
||||
this.isMovingLeft = isMovingLeft;
|
||||
|
||||
this.icon(isMovingLeft ? "bx-chevron-left" : "bx-chevron-right")
|
||||
.title(isMovingLeft ? t("move_pane_button.move_left") : t("move_pane_button.move_right"))
|
||||
.titlePlacement("bottom")
|
||||
.onClick(async (widget, e) => {
|
||||
e.stopPropagation();
|
||||
widget.triggerCommand("moveThisNoteSplit", { ntxId: widget.getClosestNtxId(), isMovingLeft: this.isMovingLeft });
|
||||
})
|
||||
.class("icon-action");
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
if (!super.isEnabled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.isMovingLeft) {
|
||||
// movable if the current context is not a main context, i.e. non-null mainNtxId
|
||||
return !!this.noteContext?.mainNtxId;
|
||||
} else {
|
||||
const currentIndex = appContext.tabManager.noteContexts.findIndex((c) => c.ntxId === this.ntxId);
|
||||
const nextContext = appContext.tabManager.noteContexts[currentIndex + 1];
|
||||
// movable if the next context is not null and not a main context, i.e. non-null mainNtxId
|
||||
return !!nextContext?.mainNtxId;
|
||||
}
|
||||
}
|
||||
|
||||
async noteContextRemovedEvent() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
async newNoteContextCreatedEvent() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
async noteContextReorderEvent() {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
async contextsReopenedEvent() {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
42
apps/client/src/widgets/buttons/move_pane_button.tsx
Normal file
42
apps/client/src/widgets/buttons/move_pane_button.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
import { useContext, useState } from "preact/hooks";
|
||||
import { t } from "../../services/i18n";
|
||||
import ActionButton from "../react/ActionButton";
|
||||
import { ParentComponent } from "../react/react_utils";
|
||||
import BasicWidget from "../basic_widget";
|
||||
import { useNoteContext, useTriliumEvents } from "../react/hooks";
|
||||
import appContext from "../../components/app_context";
|
||||
|
||||
interface MovePaneButtonProps {
|
||||
direction: "left" | "right";
|
||||
}
|
||||
|
||||
export default function MovePaneButton({ direction }: MovePaneButtonProps) {
|
||||
const parentWidget = useContext(ParentComponent) as BasicWidget | undefined;
|
||||
const { noteContext, ntxId } = useNoteContext();
|
||||
const [ refreshCounter, setRefreshCounter ] = useState(0);
|
||||
|
||||
function isEnabled() {
|
||||
if (direction === "left") {
|
||||
// movable if the current context is not a main context, i.e. non-null mainNtxId
|
||||
return !!noteContext?.mainNtxId;
|
||||
} else {
|
||||
const currentIndex = appContext.tabManager.noteContexts.findIndex((c) => c.ntxId === ntxId);
|
||||
const nextContext = appContext.tabManager.noteContexts[currentIndex + 1];
|
||||
// movable if the next context is not null and not a main context, i.e. non-null mainNtxId
|
||||
return !!nextContext?.mainNtxId;
|
||||
}
|
||||
}
|
||||
|
||||
useTriliumEvents([ "noteContextRemoved", "newNoteContextCreated", "noteContextReorder", "contextsReopened" ], () => {
|
||||
setRefreshCounter(refreshCounter + 1);
|
||||
});
|
||||
|
||||
return (
|
||||
<ActionButton
|
||||
icon={direction === "left" ? "bx bx-chevron-left" : "bx bx-chevron-right"}
|
||||
text={direction === "left" ? t("move_pane_button.move_left") : t("move_pane_button.move_right")}
|
||||
onClick={(() => parentWidget?.triggerCommand("moveThisNoteSplit", { ntxId: parentWidget.getClosestNtxId(), isMovingLeft: direction === "left" }))}
|
||||
className={!isEnabled() ? "hidden-ext" : ""}
|
||||
/>
|
||||
);
|
||||
}
|
||||
25
apps/client/src/widgets/collections/NoteList.css
Normal file
25
apps/client/src/widgets/collections/NoteList.css
Normal file
@@ -0,0 +1,25 @@
|
||||
.note-list-widget {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
contain: none !important;
|
||||
}
|
||||
|
||||
.note-list-widget .note-list {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.note-list-widget.full-height,
|
||||
.note-list-widget.full-height .note-list-widget-content {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.note-list-widget video {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* #region Pagination */
|
||||
.note-list-pager span.current-page {
|
||||
text-decoration: underline;
|
||||
font-weight: bold;
|
||||
}
|
||||
/* #endregion */
|
||||
204
apps/client/src/widgets/collections/NoteList.tsx
Normal file
204
apps/client/src/widgets/collections/NoteList.tsx
Normal file
@@ -0,0 +1,204 @@
|
||||
import { allViewTypes, ViewModeProps, ViewTypeOptions } from "./interface";
|
||||
import { useNoteContext, useNoteLabel, useNoteLabelBoolean, useTriliumEvent } from "../react/hooks";
|
||||
import FNote from "../../entities/fnote";
|
||||
import "./NoteList.css";
|
||||
import { ListView, GridView } from "./legacy/ListOrGridView";
|
||||
import { useEffect, useRef, useState } from "preact/hooks";
|
||||
import GeoView from "./geomap";
|
||||
import ViewModeStorage from "./view_mode_storage";
|
||||
import CalendarView from "./calendar";
|
||||
import TableView from "./table";
|
||||
import BoardView from "./board";
|
||||
import { subscribeToMessages, unsubscribeToMessage as unsubscribeFromMessage } from "../../services/ws";
|
||||
import { WebSocketMessage } from "@triliumnext/commons";
|
||||
import froca from "../../services/froca";
|
||||
|
||||
interface NoteListProps<T extends object> {
|
||||
note: FNote | null | undefined;
|
||||
notePath: string | null | undefined;
|
||||
highlightedTokens?: string[] | null;
|
||||
/** if set to `true` then only collection-type views are displayed such as geo-map and the calendar. The original book types grid and list will be ignored. */
|
||||
displayOnlyCollections?: boolean;
|
||||
isEnabled: boolean;
|
||||
ntxId: string | null | undefined;
|
||||
}
|
||||
|
||||
export default function NoteList<T extends object>(props: Pick<NoteListProps<T>, "displayOnlyCollections">) {
|
||||
const { note, noteContext, notePath, ntxId } = useNoteContext();
|
||||
const isEnabled = noteContext?.hasNoteList();
|
||||
return <CustomNoteList note={note} isEnabled={!!isEnabled} notePath={notePath} ntxId={ntxId} {...props} />
|
||||
}
|
||||
|
||||
export function SearchNoteList<T extends object>(props: Omit<NoteListProps<T>, "isEnabled">) {
|
||||
return <CustomNoteList {...props} isEnabled={true} />
|
||||
}
|
||||
|
||||
function CustomNoteList<T extends object>({ note, isEnabled: shouldEnable, notePath, highlightedTokens, displayOnlyCollections, ntxId }: NoteListProps<T>) {
|
||||
const widgetRef = useRef<HTMLDivElement>(null);
|
||||
const viewType = useNoteViewType(note);
|
||||
const noteIds = useNoteIds(note, viewType, ntxId);
|
||||
const isFullHeight = (viewType && viewType !== "list" && viewType !== "grid");
|
||||
const [ isIntersecting, setIsIntersecting ] = useState(false);
|
||||
const shouldRender = (isFullHeight || isIntersecting || note?.type === "book");
|
||||
const isEnabled = (note && shouldEnable && !!viewType && shouldRender);
|
||||
|
||||
useEffect(() => {
|
||||
if (isFullHeight || displayOnlyCollections || note?.type === "book") {
|
||||
// Double role: no need to check if the note list is visible if the view is full-height or book, but also prevent legacy views if `displayOnlyCollections` is true.
|
||||
return;
|
||||
}
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
if (!isIntersecting) {
|
||||
setIsIntersecting(entries[0].isIntersecting);
|
||||
observer.disconnect();
|
||||
}
|
||||
},
|
||||
{
|
||||
rootMargin: "50px",
|
||||
threshold: 0.1
|
||||
}
|
||||
);
|
||||
|
||||
// there seems to be a race condition on Firefox which triggers the observer only before the widget is visible
|
||||
// (intersection is false). https://github.com/zadam/trilium/issues/4165
|
||||
setTimeout(() => widgetRef.current && observer.observe(widgetRef.current), 10);
|
||||
return () => observer.disconnect();
|
||||
}, [ widgetRef, isFullHeight, displayOnlyCollections, note ]);
|
||||
|
||||
// Preload the configuration.
|
||||
let props: ViewModeProps<any> | undefined | null = null;
|
||||
const viewModeConfig = useViewModeConfig(note, viewType);
|
||||
if (note && notePath && viewModeConfig) {
|
||||
props = {
|
||||
note, noteIds, notePath,
|
||||
highlightedTokens,
|
||||
viewConfig: viewModeConfig[0],
|
||||
saveConfig: viewModeConfig[1]
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref={widgetRef} className={`note-list-widget component ${isFullHeight ? "full-height" : ""}`}>
|
||||
{props && isEnabled && (
|
||||
<div className="note-list-widget-content">
|
||||
{getComponentByViewType(viewType, props)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function getComponentByViewType(viewType: ViewTypeOptions, props: ViewModeProps<any>) {
|
||||
switch (viewType) {
|
||||
case "list":
|
||||
return <ListView {...props} />;
|
||||
case "grid":
|
||||
return <GridView {...props} />;
|
||||
case "geoMap":
|
||||
return <GeoView {...props} />;
|
||||
case "calendar":
|
||||
return <CalendarView {...props} />
|
||||
case "table":
|
||||
return <TableView {...props} />
|
||||
case "board":
|
||||
return <BoardView {...props} />
|
||||
}
|
||||
}
|
||||
|
||||
function useNoteViewType(note?: FNote | null): ViewTypeOptions | undefined {
|
||||
const [ viewType ] = useNoteLabel(note, "viewType");
|
||||
|
||||
if (!note) {
|
||||
return undefined;
|
||||
} else if (!(allViewTypes as readonly string[]).includes(viewType || "")) {
|
||||
// when not explicitly set, decide based on the note type
|
||||
return note.type === "search" ? "list" : "grid";
|
||||
} else {
|
||||
return viewType as ViewTypeOptions;
|
||||
}
|
||||
}
|
||||
|
||||
function useNoteIds(note: FNote | null | undefined, viewType: ViewTypeOptions | undefined, ntxId: string | null | undefined) {
|
||||
const [ noteIds, setNoteIds ] = useState<string[]>([]);
|
||||
const [ includeArchived ] = useNoteLabelBoolean(note, "includeArchived");
|
||||
|
||||
async function refreshNoteIds() {
|
||||
if (!note) {
|
||||
setNoteIds([]);
|
||||
} else {
|
||||
setNoteIds(await getNoteIds(note));
|
||||
}
|
||||
}
|
||||
|
||||
async function getNoteIds(note: FNote) {
|
||||
if (viewType === "list" || viewType === "grid") {
|
||||
return note.getChildNoteIds();
|
||||
} else {
|
||||
return await note.getSubtreeNoteIds(includeArchived);
|
||||
}
|
||||
}
|
||||
|
||||
// Refresh on note switch.
|
||||
useEffect(() => { refreshNoteIds() }, [ note, includeArchived ]);
|
||||
|
||||
// Refresh on alterations to the note subtree.
|
||||
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
|
||||
if (note && loadResults.getBranchRows().some(branch =>
|
||||
branch.parentNoteId === note.noteId
|
||||
|| noteIds.includes(branch.parentNoteId ?? ""))
|
||||
|| loadResults.getAttributeRows().some(attr => attr.name === "archived" && attr.noteId && noteIds.includes(attr.noteId))
|
||||
) {
|
||||
refreshNoteIds();
|
||||
}
|
||||
})
|
||||
|
||||
// Refresh on search.
|
||||
useTriliumEvent("searchRefreshed", ({ ntxId: eventNtxId }) => {
|
||||
if (eventNtxId !== ntxId) return;
|
||||
refreshNoteIds();
|
||||
});
|
||||
|
||||
// Refresh on import.
|
||||
useEffect(() => {
|
||||
async function onImport(message: WebSocketMessage) {
|
||||
if (!("taskType" in message) || message.taskType !== "importNotes" || message.type !== "taskSucceeded") return;
|
||||
const { parentNoteId, importedNoteId } = message.result;
|
||||
if (!parentNoteId || !importedNoteId) return;
|
||||
if (importedNoteId && (parentNoteId === note?.noteId || noteIds.includes(parentNoteId))) {
|
||||
const importedNote = await froca.getNote(importedNoteId);
|
||||
if (!importedNote) return;
|
||||
setNoteIds([
|
||||
...noteIds,
|
||||
...await getNoteIds(importedNote),
|
||||
importedNoteId
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
subscribeToMessages(onImport);
|
||||
return () => unsubscribeFromMessage(onImport);
|
||||
}, [ note, noteIds, setNoteIds ])
|
||||
|
||||
return noteIds;
|
||||
}
|
||||
|
||||
function useViewModeConfig<T extends object>(note: FNote | null | undefined, viewType: ViewTypeOptions | undefined) {
|
||||
const [ viewConfig, setViewConfig ] = useState<[T | undefined, (data: T) => void]>();
|
||||
|
||||
useEffect(() => {
|
||||
if (!note || !viewType) return;
|
||||
setViewConfig(undefined);
|
||||
const viewStorage = new ViewModeStorage<T>(note, viewType);
|
||||
viewStorage.restore().then(config => {
|
||||
const storeFn = (config: T) => {
|
||||
setViewConfig([ config, storeFn ]);
|
||||
viewStorage.store(config);
|
||||
};
|
||||
setViewConfig([ config, storeFn ]);
|
||||
});
|
||||
}, [ note, viewType ]);
|
||||
|
||||
return viewConfig;
|
||||
}
|
||||
85
apps/client/src/widgets/collections/Pagination.tsx
Normal file
85
apps/client/src/widgets/collections/Pagination.tsx
Normal file
@@ -0,0 +1,85 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
import { Dispatch, StateUpdater, useEffect, useState } from "preact/hooks";
|
||||
import FNote from "../../entities/fnote";
|
||||
import froca from "../../services/froca";
|
||||
import { useNoteLabelInt } from "../react/hooks";
|
||||
import { t } from "../../services/i18n";
|
||||
|
||||
interface PaginationContext {
|
||||
page: number;
|
||||
setPage: Dispatch<StateUpdater<number>>;
|
||||
pageNotes?: FNote[];
|
||||
pageCount: number;
|
||||
pageSize: number;
|
||||
totalNotes: number;
|
||||
}
|
||||
|
||||
export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit<PaginationContext, "pageNotes">) {
|
||||
if (pageCount < 2) return;
|
||||
|
||||
let lastPrinted = false;
|
||||
let children: ComponentChildren[] = [];
|
||||
for (let i = 1; i <= pageCount; i++) {
|
||||
if (pageCount < 20 || i <= 5 || pageCount - i <= 5 || Math.abs(page - i) <= 2) {
|
||||
lastPrinted = true;
|
||||
|
||||
const startIndex = (i - 1) * pageSize + 1;
|
||||
const endIndex = Math.min(totalNotes, i * pageSize);
|
||||
|
||||
if (i !== page) {
|
||||
children.push((
|
||||
<a
|
||||
href="javascript:"
|
||||
title={t("pagination.page_title", { startIndex, endIndex })}
|
||||
onClick={() => setPage(i)}
|
||||
>
|
||||
{i}
|
||||
</a>
|
||||
))
|
||||
} else {
|
||||
// Current page
|
||||
children.push(<span className="current-page">{i}</span>)
|
||||
}
|
||||
|
||||
children.push(<>{" "} {" "}</>);
|
||||
} else if (lastPrinted) {
|
||||
children.push(<>{"... "} {" "}</>);
|
||||
lastPrinted = false;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div class="note-list-pager">
|
||||
{children}
|
||||
|
||||
<span className="note-list-pager-total-count">({t("pagination.total_notes", { count: totalNotes })})</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function usePagination(note: FNote, noteIds: string[]): PaginationContext {
|
||||
const [ page, setPage ] = useState(1);
|
||||
const [ pageNotes, setPageNotes ] = useState<FNote[]>();
|
||||
|
||||
// Parse page size.
|
||||
const [ pageSize ] = useNoteLabelInt(note, "pageSize");
|
||||
const normalizedPageSize = (pageSize && pageSize > 0 ? pageSize : 20);
|
||||
|
||||
// Calculate start/end index.
|
||||
const startIdx = (page - 1) * normalizedPageSize;
|
||||
const endIdx = startIdx + normalizedPageSize;
|
||||
const pageCount = Math.ceil(noteIds.length / normalizedPageSize);
|
||||
|
||||
// Obtain notes within the range.
|
||||
const pageNoteIds = noteIds.slice(startIdx, Math.min(endIdx, noteIds.length));
|
||||
|
||||
useEffect(() => {
|
||||
froca.getNotes(pageNoteIds).then(setPageNotes);
|
||||
}, [ note, noteIds, page, pageSize ]);
|
||||
|
||||
return {
|
||||
page, setPage, pageNotes, pageCount,
|
||||
pageSize: normalizedPageSize,
|
||||
totalNotes: noteIds.length
|
||||
};
|
||||
}
|
||||
210
apps/client/src/widgets/collections/board/api.ts
Normal file
210
apps/client/src/widgets/collections/board/api.ts
Normal file
@@ -0,0 +1,210 @@
|
||||
import { BoardViewData } from ".";
|
||||
import appContext from "../../../components/app_context";
|
||||
import FNote from "../../../entities/fnote";
|
||||
import attributes from "../../../services/attributes";
|
||||
import branches from "../../../services/branches";
|
||||
import { executeBulkActions } from "../../../services/bulk_action";
|
||||
import froca from "../../../services/froca";
|
||||
import { t } from "../../../services/i18n";
|
||||
import note_create from "../../../services/note_create";
|
||||
import server from "../../../services/server";
|
||||
import { ColumnMap } from "./data";
|
||||
|
||||
export default class BoardApi {
|
||||
|
||||
constructor(
|
||||
private byColumn: ColumnMap | undefined,
|
||||
public columns: string[],
|
||||
private parentNote: FNote,
|
||||
private statusAttribute: string,
|
||||
private viewConfig: BoardViewData,
|
||||
private saveConfig: (newConfig: BoardViewData) => void,
|
||||
private setBranchIdToEdit: (branchId: string | undefined) => void
|
||||
) {};
|
||||
|
||||
async createNewItem(column: string, title: string) {
|
||||
try {
|
||||
// Get the parent note path
|
||||
const parentNotePath = this.parentNote.noteId;
|
||||
|
||||
// Create a new note as a child of the parent note
|
||||
const { note: newNote, branch: newBranch } = await note_create.createNote(parentNotePath, {
|
||||
activate: false,
|
||||
title
|
||||
});
|
||||
|
||||
if (newNote && newBranch) {
|
||||
await this.changeColumn(newNote.noteId, column);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Failed to create new item:", error);
|
||||
}
|
||||
}
|
||||
|
||||
async changeColumn(noteId: string, newColumn: string) {
|
||||
await attributes.setLabel(noteId, this.statusAttribute, newColumn);
|
||||
}
|
||||
|
||||
async addNewColumn(columnName: string) {
|
||||
if (!columnName.trim()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.viewConfig) {
|
||||
this.viewConfig = {};
|
||||
}
|
||||
|
||||
if (!this.viewConfig.columns) {
|
||||
this.viewConfig.columns = [];
|
||||
}
|
||||
|
||||
// Add the new column to persisted data if it doesn't exist
|
||||
const existingColumn = this.viewConfig.columns.find(col => col.value === columnName);
|
||||
if (!existingColumn) {
|
||||
this.viewConfig.columns.push({ value: columnName });
|
||||
this.saveConfig(this.viewConfig);
|
||||
}
|
||||
}
|
||||
|
||||
async removeColumn(column: string) {
|
||||
// Remove the value from the notes.
|
||||
const noteIds = this.byColumn?.get(column)?.map(item => item.note.noteId) || [];
|
||||
await executeBulkActions(noteIds, [
|
||||
{
|
||||
name: "deleteLabel",
|
||||
labelName: this.statusAttribute
|
||||
}
|
||||
]);
|
||||
|
||||
this.viewConfig.columns = (this.viewConfig.columns ?? []).filter(col => col.value !== column);
|
||||
this.saveConfig(this.viewConfig);
|
||||
}
|
||||
|
||||
async renameColumn(oldValue: string, newValue: string) {
|
||||
const noteIds = this.byColumn?.get(oldValue)?.map(item => item.note.noteId) || [];
|
||||
|
||||
// Change the value in the notes.
|
||||
await executeBulkActions(noteIds, [
|
||||
{
|
||||
name: "updateLabelValue",
|
||||
labelName: this.statusAttribute,
|
||||
labelValue: newValue
|
||||
}
|
||||
]);
|
||||
|
||||
// Rename the column in the persisted data.
|
||||
for (const column of this.viewConfig.columns || []) {
|
||||
if (column.value === oldValue) {
|
||||
column.value = newValue;
|
||||
}
|
||||
}
|
||||
this.saveConfig(this.viewConfig);
|
||||
}
|
||||
|
||||
reorderColumn(fromIndex: number, toIndex: number) {
|
||||
if (!this.columns || fromIndex === toIndex) return;
|
||||
|
||||
const newColumns = [...this.columns];
|
||||
const [movedColumn] = newColumns.splice(fromIndex, 1);
|
||||
|
||||
// Adjust toIndex after removing the element
|
||||
// When moving forward (right), the removal shifts indices left
|
||||
let adjustedToIndex = toIndex;
|
||||
if (fromIndex < toIndex) {
|
||||
adjustedToIndex = toIndex - 1;
|
||||
}
|
||||
|
||||
newColumns.splice(adjustedToIndex, 0, movedColumn);
|
||||
|
||||
// Update view config with new column order
|
||||
const newViewConfig = {
|
||||
...this.viewConfig,
|
||||
columns: newColumns.map(col => ({ value: col }))
|
||||
};
|
||||
|
||||
this.saveConfig(newViewConfig);
|
||||
return newColumns;
|
||||
}
|
||||
|
||||
async insertRowAtPosition(
|
||||
column: string,
|
||||
relativeToBranchId: string,
|
||||
direction: "before" | "after") {
|
||||
const { note, branch } = await note_create.createNote(this.parentNote.noteId, {
|
||||
activate: false,
|
||||
targetBranchId: relativeToBranchId,
|
||||
target: direction,
|
||||
title: t("board_view.new-item")
|
||||
});
|
||||
|
||||
if (!note || !branch) {
|
||||
throw new Error("Failed to create note");
|
||||
}
|
||||
|
||||
const { noteId } = note;
|
||||
await this.changeColumn(noteId, column);
|
||||
this.startEditing(branch.branchId);
|
||||
|
||||
return note;
|
||||
}
|
||||
|
||||
openNote(noteId: string) {
|
||||
appContext.triggerCommand("openInPopup", { noteIdOrPath: noteId });
|
||||
}
|
||||
|
||||
startEditing(branchId: string) {
|
||||
this.setBranchIdToEdit(branchId);
|
||||
}
|
||||
|
||||
dismissEditingTitle() {
|
||||
this.setBranchIdToEdit(undefined);
|
||||
}
|
||||
|
||||
renameCard(noteId: string, newTitle: string) {
|
||||
return server.put(`notes/${noteId}/title`, { title: newTitle.trim() });
|
||||
}
|
||||
|
||||
removeFromBoard(noteId: string) {
|
||||
const note = froca.getNoteFromCache(noteId);
|
||||
if (!note) return;
|
||||
return attributes.removeOwnedLabelByName(note, this.statusAttribute);
|
||||
}
|
||||
|
||||
async moveWithinBoard(noteId: string, sourceBranchId: string, sourceIndex: number, targetIndex: number, sourceColumn: string, targetColumn: string) {
|
||||
const targetItems = this.byColumn?.get(targetColumn) ?? [];
|
||||
|
||||
const note = froca.getNoteFromCache(noteId);
|
||||
if (!note) return;
|
||||
|
||||
if (sourceColumn !== targetColumn) {
|
||||
// Moving to a different column
|
||||
await this.changeColumn(noteId, targetColumn);
|
||||
|
||||
// If there are items in the target column, reorder
|
||||
if (targetItems.length > 0 && targetIndex < targetItems.length) {
|
||||
const targetBranch = targetItems[targetIndex].branch;
|
||||
await branches.moveBeforeBranch([ sourceBranchId ], targetBranch.branchId);
|
||||
}
|
||||
} else if (sourceIndex !== targetIndex) {
|
||||
// Reordering within the same column
|
||||
let targetBranchId: string | null = null;
|
||||
|
||||
if (targetIndex < targetItems.length) {
|
||||
// Moving before an existing item
|
||||
const adjustedIndex = sourceIndex < targetIndex ? targetIndex : targetIndex;
|
||||
if (adjustedIndex < targetItems.length) {
|
||||
targetBranchId = targetItems[adjustedIndex].branch.branchId;
|
||||
if (targetBranchId) {
|
||||
await branches.moveBeforeBranch([ sourceBranchId ], targetBranchId);
|
||||
}
|
||||
}
|
||||
} else if (targetIndex > 0) {
|
||||
// Moving to the end - place after the last item
|
||||
const lastItem = targetItems[targetItems.length - 1];
|
||||
await branches.moveAfterBranch([ sourceBranchId ], lastItem.branch.branchId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
125
apps/client/src/widgets/collections/board/card.tsx
Normal file
125
apps/client/src/widgets/collections/board/card.tsx
Normal file
@@ -0,0 +1,125 @@
|
||||
import { useCallback, useContext, useEffect, useRef, useState } from "preact/hooks";
|
||||
import FBranch from "../../../entities/fbranch";
|
||||
import FNote from "../../../entities/fnote";
|
||||
import BoardApi from "./api";
|
||||
import { BoardViewContext, TitleEditor } from ".";
|
||||
import { ContextMenuEvent } from "../../../menus/context_menu";
|
||||
import { openNoteContextMenu } from "./context_menu";
|
||||
import { t } from "../../../services/i18n";
|
||||
|
||||
export const CARD_CLIPBOARD_TYPE = "trilium/board-card";
|
||||
|
||||
export interface CardDragData {
|
||||
noteId: string;
|
||||
branchId: string;
|
||||
index: number;
|
||||
fromColumn: string;
|
||||
}
|
||||
|
||||
export default function Card({
|
||||
api,
|
||||
note,
|
||||
branch,
|
||||
column,
|
||||
index,
|
||||
isDragging
|
||||
}: {
|
||||
api: BoardApi,
|
||||
note: FNote,
|
||||
branch: FBranch,
|
||||
column: string,
|
||||
index: number,
|
||||
isDragging: boolean
|
||||
}) {
|
||||
const { branchIdToEdit, setBranchIdToEdit, setDraggedCard } = useContext(BoardViewContext)!;
|
||||
const isEditing = branch.branchId === branchIdToEdit;
|
||||
const colorClass = note.getColorClass() || '';
|
||||
const editorRef = useRef<HTMLInputElement>(null);
|
||||
const isArchived = note.isArchived;
|
||||
const [ isVisible, setVisible ] = useState(true);
|
||||
const [ title, setTitle ] = useState(note.title);
|
||||
|
||||
const handleDragStart = useCallback((e: DragEvent) => {
|
||||
e.dataTransfer!.effectAllowed = 'move';
|
||||
const data: CardDragData = { noteId: note.noteId, branchId: branch.branchId, fromColumn: column, index };
|
||||
setDraggedCard(data);
|
||||
e.dataTransfer!.setData(CARD_CLIPBOARD_TYPE, JSON.stringify(data));
|
||||
}, [note.noteId, branch.branchId, column, index]);
|
||||
|
||||
const handleDragEnd = useCallback((e: DragEvent) => {
|
||||
setDraggedCard(null);
|
||||
}, [setDraggedCard]);
|
||||
|
||||
const handleContextMenu = useCallback((e: ContextMenuEvent) => {
|
||||
openNoteContextMenu(api, e, note, branch.branchId, column);
|
||||
}, [ api, note, branch, column ]);
|
||||
|
||||
const handleOpen = useCallback(() => {
|
||||
api.openNote(note.noteId);
|
||||
}, [ api, note ]);
|
||||
|
||||
const handleEdit = useCallback((e: MouseEvent) => {
|
||||
e.stopPropagation(); // don't also open the note
|
||||
setBranchIdToEdit?.(branch.branchId);
|
||||
}, [ setBranchIdToEdit, branch ]);
|
||||
|
||||
const handleKeyDown = useCallback((e: KeyboardEvent) => {
|
||||
if (e.key === "Enter") {
|
||||
api.openNote(note.noteId);
|
||||
} else if (e.key === "F2") {
|
||||
setBranchIdToEdit?.(branch.branchId);
|
||||
}
|
||||
}, [ setBranchIdToEdit, note ]);
|
||||
|
||||
useEffect(() => {
|
||||
editorRef.current?.focus();
|
||||
}, [ isEditing ]);
|
||||
|
||||
useEffect(() => {
|
||||
setTitle(note.title);
|
||||
}, [ note ]);
|
||||
|
||||
useEffect(() => {
|
||||
setVisible(!isDragging);
|
||||
}, [ isDragging ]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`board-note ${colorClass} ${isDragging ? 'dragging' : ''} ${isEditing ? "editing" : ""} ${isArchived ? "archived" : ""}`}
|
||||
draggable
|
||||
onDragStart={handleDragStart}
|
||||
onDragEnd={handleDragEnd}
|
||||
onContextMenu={handleContextMenu}
|
||||
onClick={!isEditing ? handleOpen : undefined}
|
||||
onKeyDown={handleKeyDown}
|
||||
style={{
|
||||
display: !isVisible ? "none" : undefined
|
||||
}}
|
||||
tabIndex={300}
|
||||
>
|
||||
{!isEditing ? (
|
||||
<>
|
||||
<span className="title">
|
||||
<span class={`icon ${note.getIcon()}`} />
|
||||
{title}
|
||||
</span>
|
||||
<span
|
||||
className="edit-icon icon bx bx-edit"
|
||||
title={t("board_view.edit-note-title")}
|
||||
onClick={handleEdit}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<TitleEditor
|
||||
currentValue={note.title}
|
||||
save={newTitle => {
|
||||
api.renameCard(note.noteId, newTitle);
|
||||
setTitle(newTitle);
|
||||
}}
|
||||
dismiss={() => api.dismissEditingTitle()}
|
||||
multiline
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
293
apps/client/src/widgets/collections/board/column.tsx
Normal file
293
apps/client/src/widgets/collections/board/column.tsx
Normal file
@@ -0,0 +1,293 @@
|
||||
import { useCallback, useContext, useEffect, useRef, useState } from "preact/hooks";
|
||||
import FBranch from "../../../entities/fbranch";
|
||||
import FNote from "../../../entities/fnote";
|
||||
import { BoardViewContext, TitleEditor } from ".";
|
||||
import branches from "../../../services/branches";
|
||||
import { openColumnContextMenu } from "./context_menu";
|
||||
import { ContextMenuEvent } from "../../../menus/context_menu";
|
||||
import Icon from "../../react/Icon";
|
||||
import { t } from "../../../services/i18n";
|
||||
import BoardApi from "./api";
|
||||
import Card, { CARD_CLIPBOARD_TYPE, CardDragData } from "./card";
|
||||
import { JSX } from "preact/jsx-runtime";
|
||||
import froca from "../../../services/froca";
|
||||
import { DragData, TREE_CLIPBOARD_TYPE } from "../../note_tree";
|
||||
|
||||
interface DragContext {
|
||||
column: string;
|
||||
columnIndex: number,
|
||||
columnItems?: { note: FNote, branch: FBranch }[];
|
||||
}
|
||||
|
||||
export default function Column({
|
||||
column,
|
||||
columnIndex,
|
||||
isDraggingColumn,
|
||||
columnItems,
|
||||
api,
|
||||
onColumnHover,
|
||||
isAnyColumnDragging,
|
||||
}: {
|
||||
columnItems?: { note: FNote, branch: FBranch }[];
|
||||
isDraggingColumn: boolean,
|
||||
api: BoardApi,
|
||||
onColumnHover?: (index: number, mouseX: number, rect: DOMRect) => void,
|
||||
isAnyColumnDragging?: boolean
|
||||
} & DragContext) {
|
||||
const [ isVisible, setVisible ] = useState(true);
|
||||
const { columnNameToEdit, setColumnNameToEdit, dropTarget, draggedCard, dropPosition } = useContext(BoardViewContext)!;
|
||||
const isEditing = (columnNameToEdit === column);
|
||||
const editorRef = useRef<HTMLInputElement>(null);
|
||||
const { handleColumnDragStart, handleColumnDragEnd, handleDragOver, handleDragLeave, handleDrop } = useDragging({
|
||||
column, columnIndex, columnItems, isEditing
|
||||
});
|
||||
|
||||
const handleEdit = useCallback(() => {
|
||||
setColumnNameToEdit?.(column);
|
||||
}, [column]);
|
||||
|
||||
const handleContextMenu = useCallback((e: ContextMenuEvent) => {
|
||||
openColumnContextMenu(api, e, column);
|
||||
}, [ api, column ]);
|
||||
|
||||
const handleTitleKeyDown = useCallback((e: KeyboardEvent) => {
|
||||
if (e.key === "F2") {
|
||||
setColumnNameToEdit?.(column);
|
||||
}
|
||||
}, [ column ]);
|
||||
|
||||
/** Allow using mouse wheel to scroll inside card, while also maintaining column horizontal scrolling. */
|
||||
const handleScroll = useCallback((event: JSX.TargetedWheelEvent<HTMLDivElement>) => {
|
||||
const el = event.currentTarget;
|
||||
if (!el) return;
|
||||
|
||||
const needsScroll = el.scrollHeight > el.clientHeight;
|
||||
if (needsScroll) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
editorRef.current?.focus();
|
||||
}, [ isEditing ]);
|
||||
|
||||
useEffect(() => {
|
||||
setVisible(!isDraggingColumn);
|
||||
}, [ isDraggingColumn ]);
|
||||
|
||||
const handleColumnDragOver = useCallback((e: DragEvent) => {
|
||||
if (!isAnyColumnDragging || !onColumnHover) return;
|
||||
e.preventDefault();
|
||||
const rect = (e.currentTarget as HTMLElement).getBoundingClientRect();
|
||||
onColumnHover(columnIndex, e.clientX, rect);
|
||||
}, [isAnyColumnDragging, onColumnHover, columnIndex]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`board-column ${dropTarget === column && draggedCard?.fromColumn !== column ? 'drag-over' : ''}`}
|
||||
onDragOver={isAnyColumnDragging ? handleColumnDragOver : handleDragOver}
|
||||
onDragLeave={handleDragLeave}
|
||||
onDrop={handleDrop}
|
||||
style={{
|
||||
display: !isVisible ? "none" : undefined
|
||||
}}
|
||||
>
|
||||
<h3
|
||||
className={`${isEditing ? "editing" : ""}`}
|
||||
draggable
|
||||
onDragStart={handleColumnDragStart}
|
||||
onDragEnd={handleColumnDragEnd}
|
||||
onContextMenu={handleContextMenu}
|
||||
onKeyDown={handleTitleKeyDown}
|
||||
tabIndex={300}
|
||||
>
|
||||
{!isEditing ? (
|
||||
<>
|
||||
<span className="title">{column}</span>
|
||||
<span
|
||||
className="edit-icon icon bx bx-edit-alt"
|
||||
title={t("board_view.edit-column-title")}
|
||||
onClick={handleEdit}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<TitleEditor
|
||||
currentValue={column}
|
||||
save={newTitle => api.renameColumn(column, newTitle)}
|
||||
dismiss={() => setColumnNameToEdit?.(undefined)}
|
||||
/>
|
||||
)}
|
||||
</h3>
|
||||
|
||||
<div className="board-column-content" onWheel={handleScroll}>
|
||||
{(columnItems ?? []).map(({ note, branch }, index) => {
|
||||
const showIndicatorBefore = dropPosition?.column === column &&
|
||||
dropPosition.index === index &&
|
||||
draggedCard?.noteId !== note.noteId;
|
||||
|
||||
return (
|
||||
<>
|
||||
{showIndicatorBefore && (
|
||||
<div className="board-drop-placeholder show" />
|
||||
)}
|
||||
<Card
|
||||
key={note.noteId}
|
||||
api={api}
|
||||
note={note}
|
||||
branch={branch}
|
||||
column={column}
|
||||
index={index}
|
||||
isDragging={draggedCard?.noteId === note.noteId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
})}
|
||||
{dropPosition?.column === column && dropPosition.index === (columnItems?.length ?? 0) && (
|
||||
<div className="board-drop-placeholder show" />
|
||||
)}
|
||||
|
||||
<AddNewItem api={api} column={column} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function AddNewItem({ column, api }: { column: string, api: BoardApi }) {
|
||||
const [ isCreatingNewItem, setIsCreatingNewItem ] = useState(false);
|
||||
const addItemCallback = useCallback(() => setIsCreatingNewItem(true), []);
|
||||
const handleKeyDown = useCallback((e: KeyboardEvent) => {
|
||||
if (!isCreatingNewItem && e.key === "Enter") {
|
||||
setIsCreatingNewItem(true);
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`board-new-item ${isCreatingNewItem ? "editing" : ""}`}
|
||||
onClick={addItemCallback}
|
||||
onKeyDown={handleKeyDown}
|
||||
tabIndex={300}
|
||||
>
|
||||
{!isCreatingNewItem ? (
|
||||
<>
|
||||
<Icon icon="bx bx-plus" />{" "}
|
||||
{t("board_view.new-item")}
|
||||
</>
|
||||
) : (
|
||||
<TitleEditor
|
||||
placeholder={t("board_view.new-item-placeholder")}
|
||||
save={(title) => api.createNewItem(column, title)}
|
||||
dismiss={() => setIsCreatingNewItem(false)}
|
||||
multiline isNewItem
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function useDragging({ column, columnIndex, columnItems, isEditing }: DragContext & { isEditing: boolean }) {
|
||||
const { api, parentNote, draggedColumn, setDraggedColumn, setDropTarget, setDropPosition, dropPosition } = useContext(BoardViewContext)!;
|
||||
/** Needed to track if current column is dragged in real-time, since {@link draggedColumn} is populated one render cycle later. */
|
||||
const isDraggingRef = useRef(false);
|
||||
|
||||
const handleColumnDragStart = useCallback((e: DragEvent) => {
|
||||
if (isEditing) return;
|
||||
|
||||
isDraggingRef.current = true;
|
||||
e.dataTransfer!.effectAllowed = 'move';
|
||||
e.dataTransfer!.setData('text/plain', column);
|
||||
setDraggedColumn({ column, index: columnIndex });
|
||||
e.stopPropagation(); // Prevent card drag from interfering
|
||||
}, [column, columnIndex, setDraggedColumn, isEditing]);
|
||||
|
||||
const handleColumnDragEnd = useCallback(() => {
|
||||
isDraggingRef.current = false;
|
||||
setDraggedColumn(null);
|
||||
}, [setDraggedColumn]);
|
||||
|
||||
const handleDragOver = useCallback((e: DragEvent) => {
|
||||
if (isEditing || draggedColumn || isDraggingRef.current) return; // Don't handle card drops when dragging columns
|
||||
if (!e.dataTransfer?.types.includes(CARD_CLIPBOARD_TYPE) && !e.dataTransfer?.types.includes(TREE_CLIPBOARD_TYPE)) return;
|
||||
|
||||
e.preventDefault();
|
||||
setDropTarget(column);
|
||||
|
||||
// Calculate drop position based on mouse position
|
||||
const cards = Array.from((e.currentTarget as HTMLElement)?.querySelectorAll('.board-note'));
|
||||
const mouseY = e.clientY;
|
||||
|
||||
let newIndex = cards.length;
|
||||
for (let i = 0; i < cards.length; i++) {
|
||||
const card = cards[i] as HTMLElement;
|
||||
const rect = card.getBoundingClientRect();
|
||||
const cardMiddle = rect.top + rect.height / 2;
|
||||
|
||||
if (mouseY < cardMiddle) {
|
||||
newIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(dropPosition?.column === column && dropPosition.index === newIndex)) {
|
||||
setDropPosition({ column, index: newIndex });
|
||||
}
|
||||
}, [column, setDropTarget, dropPosition, setDropPosition, isEditing]);
|
||||
|
||||
const handleDragLeave = useCallback((e: DragEvent) => {
|
||||
const relatedTarget = e.relatedTarget as HTMLElement;
|
||||
const currentTarget = e.currentTarget as HTMLElement;
|
||||
|
||||
if (!currentTarget.contains(relatedTarget)) {
|
||||
setDropTarget(null);
|
||||
setDropPosition(null);
|
||||
}
|
||||
}, [setDropTarget, setDropPosition]);
|
||||
|
||||
const handleDrop = useCallback(async (e: DragEvent) => {
|
||||
if (draggedColumn) return; // Don't handle card drops when dragging columns
|
||||
e.preventDefault();
|
||||
setDropTarget(null);
|
||||
setDropPosition(null);
|
||||
|
||||
const data = e.dataTransfer?.getData(CARD_CLIPBOARD_TYPE) || e.dataTransfer?.getData("text");
|
||||
if (!data) return;
|
||||
|
||||
let draggedCard: CardDragData | DragData[];
|
||||
try {
|
||||
draggedCard = JSON.parse(data);
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Array.isArray(draggedCard)) {
|
||||
// From note tree.
|
||||
const { noteId, branchId } = draggedCard[0];
|
||||
const targetNote = await froca.getNote(noteId, true);
|
||||
const parentNoteId = parentNote?.noteId;
|
||||
if (!parentNoteId || !dropPosition) return;
|
||||
|
||||
const targetIndex = dropPosition.index - 1;
|
||||
const targetItems = columnItems || [];
|
||||
const targetBranch = targetIndex >= 0 ? targetItems[targetIndex].branch : null;
|
||||
|
||||
await api?.changeColumn(noteId, column);
|
||||
|
||||
const parents = targetNote?.getParentNoteIds();
|
||||
if (!parents?.includes(parentNoteId)) {
|
||||
if (!targetBranch) {
|
||||
// First.
|
||||
await branches.cloneNoteToParentNote(noteId, parentNoteId);
|
||||
} else {
|
||||
await branches.cloneNoteAfter(noteId, targetBranch.branchId);
|
||||
}
|
||||
} else if (targetBranch) {
|
||||
await branches.moveAfterBranch([ branchId ], targetBranch.branchId);
|
||||
}
|
||||
} else if (draggedCard && dropPosition) {
|
||||
api?.moveWithinBoard(draggedCard.noteId, draggedCard.branchId, draggedCard.index, dropPosition.index, draggedCard.fromColumn, column);
|
||||
}
|
||||
|
||||
}, [ api, draggedColumn, dropPosition, columnItems, column, setDropTarget, setDropPosition ]);
|
||||
|
||||
return { handleColumnDragStart, handleColumnDragEnd, handleDragOver, handleDragLeave, handleDrop };
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user