Compare commits

...

2528 Commits

Author SHA1 Message Date
Elian Doran
ab6d68fc68 chore(release): 0.92.6 2025-04-06 12:46:07 +03:00
Elian Doran
7cd8554d11 fix(client): modal text color on dark mode 2025-04-06 12:38:09 +03:00
Elian Doran
807a2dc2c6 Merge pull request #1637 from TriliumNext/renovate/eslint-linter-browserify-9.x
fix(deps): update dependency eslint-linter-browserify to v9.24.0
2025-04-06 11:05:32 +03:00
Elian Doran
a82490302c Merge pull request #1636 from TriliumNext/renovate/jquery.fancytree-2.x
fix(deps): update dependency jquery.fancytree to v2.38.5
2025-04-06 11:02:19 +03:00
renovate[bot]
213da7c32d fix(deps): update dependency eslint-linter-browserify to v9.24.0 2025-04-06 01:35:35 +00:00
renovate[bot]
5db8b59b51 fix(deps): update dependency jquery.fancytree to v2.38.5 2025-04-06 01:35:22 +00:00
Elian Doran
d51151e84b chore(docs): minor cleanup 2025-04-06 00:26:22 +03:00
Elian Doran
0b8eb66c05 fix(docs): improve reference links and fix broken links 2025-04-06 00:19:55 +03:00
Elian Doran
7c6e7cacae fix(docs): extra ** for inline code 2025-04-06 00:00:44 +03:00
Elian Doran
8e1f0f8b27 feat(docs): document similar notes 2025-04-05 23:45:54 +03:00
Elian Doran
67f3b4d414 chore(docs): sync 2025-04-05 23:39:32 +03:00
Elian Doran
9593aa13bf Merge pull request #1635 from TriliumNext/renovate/eslint-monorepo
chore(deps): update eslint monorepo to v9.24.0
2025-04-05 23:29:13 +03:00
renovate[bot]
503c7b6538 chore(deps): update eslint monorepo to v9.24.0 2025-04-05 19:45:58 +00:00
Elian Doran
572357cb18 Merge pull request #1634 from TriliumNext/renovate/typescript-5.x
chore(deps): update dependency typescript to v5.8.3
2025-04-05 22:44:49 +03:00
Elian Doran
3a07422238 Merge pull request #1633 from TriliumNext/renovate/electron-35.x
chore(deps): update dependency electron to v35.1.4
2025-04-05 22:44:10 +03:00
Elian Doran
af76c18837 Merge pull request #1632 from TriliumNext/renovate/bootstrap-5.x
chore(deps): update dependency bootstrap to v5.3.5
2025-04-05 22:43:31 +03:00
Elian Doran
60ad5743a7 Merge pull request #1631 from TriliumNext/renovate/better-sqlite3-7.x
chore(deps): update dependency @types/better-sqlite3 to v7.6.13
2025-04-05 22:41:58 +03:00
Elian Doran
820ea59c82 Merge pull request #1630 from TriliumNext/renovate/better-sqlite3-7.x-lockfile
chore(deps): update dependency @types/better-sqlite3 to v7.6.13
2025-04-05 22:41:49 +03:00
Elian Doran
74d55d500c feat(editor): rewrite <s> to <del> 2025-04-05 22:37:02 +03:00
Elian Doran
ab416e02b4 feat(import/markdown): preserve column widths 2025-04-05 21:43:26 +03:00
Elian Doran
b6c185fd32 feat(import/markdown): preserve image width 2025-04-05 21:43:26 +03:00
Elian Doran
447439efd6 feat(import/markdown): preserve fractional widths 2025-04-05 21:43:26 +03:00
Elian Doran
698e68f280 Merge branch 'develop' into renovate/better-sqlite3-7.x-lockfile 2025-04-05 17:53:01 +03:00
Elian Doran
88cd8dfebb Merge branch 'develop' into renovate/bootstrap-5.x 2025-04-05 17:52:47 +03:00
Elian Doran
680eb76970 Merge branch 'develop' into renovate/better-sqlite3-7.x 2025-04-05 17:51:57 +03:00
Elian Doran
12c9822db4 Merge branch 'develop' into renovate/electron-35.x 2025-04-05 17:51:41 +03:00
Elian Doran
cfcc4740a1 Merge branch 'develop' into renovate/typescript-5.x 2025-04-05 17:51:34 +03:00
Elian Doran
8977926c00 fix(test): failed test due to change in figure handling 2025-04-05 17:51:03 +03:00
Elian Doran
cdb5ebb080 feat(import/markdown): preserve trailing semicolon in figure style 2025-04-05 12:37:06 +03:00
Elian Doran
8cb10764b6 feat(import/markdown): preserve trailing semicolon in img 2025-04-05 12:31:02 +03:00
Elian Doran
64ccea5702 feat(import/markdown): preserve figure image size 2025-04-05 11:37:26 +03:00
Elian Doran
7293f59a80 fix(export/markdown): math expressions not working due to string escaping 2025-04-05 11:05:27 +03:00
Elian Doran
4bb767f8ee fix(import/markdown): preserve escaped math expressions 2025-04-05 10:46:33 +03:00
Elian Doran
721bf455e1 refactor(import/markdown): add guard condition for processing math 2025-04-05 09:59:42 +03:00
Elian Doran
e6b9ecda5c feat(import/markdown): import in-line math properly 2025-04-05 09:59:10 +03:00
Elian Doran
07b5cd3b05 feat(import/markdown): import in-display math properly 2025-04-05 09:57:44 +03:00
Elian Doran
fc4eb13e8d feat(export/markdown): export display math properly 2025-04-05 09:32:08 +03:00
Elian Doran
894cfe4f7a feat(export/markdown): export in-line math properly 2025-04-05 09:28:18 +03:00
renovate[bot]
116e4839cf chore(deps): update dependency typescript to v5.8.3 2025-04-05 00:38:17 +00:00
renovate[bot]
62e72e7250 chore(deps): update dependency electron to v35.1.4 2025-04-05 00:38:07 +00:00
renovate[bot]
67ff1e7e29 chore(deps): update dependency bootstrap to v5.3.5 2025-04-05 00:37:56 +00:00
renovate[bot]
c878602f57 chore(deps): update dependency @types/better-sqlite3 to v7.6.13 2025-04-05 00:37:44 +00:00
renovate[bot]
df13dfc4eb chore(deps): update dependency @types/better-sqlite3 to v7.6.13 2025-04-05 00:37:30 +00:00
Elian Doran
173fa36fca chore(docs): bring back figure sizes 2025-04-05 03:33:53 +03:00
Elian Doran
c80d016305 feat(markdown): preserve figures 2025-04-05 03:23:31 +03:00
Elian Doran
319cccfb15 feat(markdown): preserve image width/height attribute 2025-04-05 03:01:06 +03:00
Elian Doran
1f98e75c54 chore(docs): add back some image sizes 2025-04-05 03:00:43 +03:00
Elian Doran
da42ddeee7 refactor(export/markdown): use let instead of var 2025-04-05 02:42:24 +03:00
Elian Doran
79fa2a2200 chore(docs): add back some reference links 2025-04-05 02:42:14 +03:00
Elian Doran
6a69e9b208 feat(markdown): use different approach for reference links 2025-04-05 02:31:52 +03:00
Elian Doran
4f22850ea9 feat(import/export): import reference links 2025-04-05 01:56:31 +03:00
Elian Doran
320439333d fix(demo): convert to LF & add link to include note function 2025-04-05 01:25:54 +03:00
Elian Doran
fdc946ef49 chore(scripts): allow editing demo notes on NixOS 2025-04-05 01:23:12 +03:00
Elian Doran
bdfb2300bb feat(docs): minor mermaid improvements 2025-04-05 01:21:33 +03:00
Elian Doran
10b3ede686 feat(docs): improve include note 2025-04-05 01:18:25 +03:00
Elian Doran
1e6c197794 refactor(docs): reposition calendar view 2025-04-05 01:09:30 +03:00
Elian Doran
ed53b034f7 feat(docs): document note list 2025-04-05 01:05:40 +03:00
Elian Doran
e50c1b36f6 feat(docs): document file note type 2025-04-05 00:54:03 +03:00
Elian Doran
78fba191e1 feat(docs): document note ID and collisions 2025-04-05 00:06:45 +03:00
Elian Doran
bb23ae6813 feat(docs): revamp "button use case" 2025-04-04 23:46:07 +03:00
Elian Doran
65e914f916 feat(docs): improve documentation for read-only notes 2025-04-04 23:17:12 +03:00
Elian Doran
65ddfe8776 fix(docs): layout in geomap 2025-04-04 22:50:53 +03:00
Elian Doran
418da69b8a feat(docs): document quick search & jump to note 2025-04-04 22:46:19 +03:00
Elian Doran
18f812f568 feat(docs): quick overview of options 2025-04-04 22:32:38 +03:00
Elian Doran
2d61944036 feat(docs): document mind map 2025-04-04 22:13:26 +03:00
Elian Doran
4cef5a3e16 feat(docs): fix case for Geo Map and add photo 2025-04-04 22:01:06 +03:00
Elian Doran
be3e213ba3 feat(docs): improve documentation on Mermaid 2025-04-04 21:56:44 +03:00
Elian Doran
2a8ab728a7 feat(docs): document note types 2025-04-04 21:29:18 +03:00
Elian Doran
cf46f8cf70 fix(docs): missing images in ELK layout 2025-04-04 21:11:00 +03:00
Elian Doran
7d40405b8c feat(docs): document note tree in relation to split view 2025-04-04 21:01:05 +03:00
Elian Doran
c8f2798fc2 feat(docs): document tabs 2025-04-04 20:55:11 +03:00
Elian Doran
92c1dd1177 chore(edit-docs): erase attachments before exporting 2025-04-04 20:35:55 +03:00
Elian Doran
d0c1ffc581 feat(docs): document split view 2025-04-04 20:35:26 +03:00
Elian Doran
65d017390e fix(edit-docs): fix random erase of attachments due to consistency issues 2025-04-04 20:01:28 +03:00
Elian Doran
3a16bf59ef chore(docs): sync meta 2025-04-04 19:59:04 +03:00
Elian Doran
f83d342594 chore(docs): format keyboard shortcut 2025-04-04 18:41:26 +03:00
Elian Doran
99fd4225f4 chore(docs): remove unused attachments 2025-04-04 18:36:36 +03:00
Elian Doran
8e97a06d1c feat(electron-docs-main): set default options 2025-04-04 18:35:29 +03:00
Elian Doran
dc103348d5 fix(client): build errors due to types 2025-04-04 18:07:26 +03:00
Elian Doran
67f39e8bde fix(client): strange behaviour when navigating between tabs (closes #1615) 2025-04-04 17:57:54 +03:00
Elian Doran
6dc2e4088f fix(ci): tsx not found when updating build info 2025-04-04 16:36:13 +03:00
Elian Doran
c6681801fe Merge pull request #1625 from TriliumNext/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4
2025-04-04 16:21:45 +03:00
Elian Doran
545e199232 fix(geomap): map cut off at first start 2025-04-04 14:19:44 +03:00
Elian Doran
9204be3157 chore(webpack): add script to run stats 2025-04-04 14:06:48 +03:00
Elian Doran
849fd5a2af fix(ci): unrecognized name-value "inputs" 2025-04-04 14:06:30 +03:00
Elian Doran
ab0213fc3f refactor(geomap): use webpack for importing marker icon (closes #1628) 2025-04-04 14:02:34 +03:00
Elian Doran
4c05c8ab5e feat(launch_bar): display popups at the bottom on horizontal layout 2025-04-04 11:44:42 +03:00
JYC333
4eb435aeea Merge pull request #1627 from TriliumNext/fix_turndown-plugin-gfm-audit
fix(turndown-plugin-gfm): run npm audit fix
2025-04-04 15:33:45 +08:00
JYC333
b267b6ad66 Merge pull request #1624 from TriliumNext/renovate/sass-1.x
chore(deps): update dependency sass to v1.86.3
2025-04-04 15:30:07 +08:00
JYC333
08132faa83 Merge pull request #1623 from TriliumNext/renovate/bootstrap-5.x
chore(deps): update dependency bootstrap to v5.3.4
2025-04-04 15:29:35 +08:00
Panagiotis Papadopoulos
53d1aafa0a fix(dump-db): run npm audit fix
fixes
1 high severity vulnerability
tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File - https://github.com/advisories/GHSA-pq67-2wwv-3xjx
2025-04-04 09:28:21 +02:00
Panagiotis Papadopoulos
241eeefc0f fix(turndown-plugin-gfm): run npm audit fix
fixes
3 vulnerabilities (1 high, 2 critical)
2025-04-04 09:23:12 +02:00
renovate[bot]
4bfa90fad8 chore(deps): update actions/checkout action to v4 2025-04-04 02:44:05 +00:00
renovate[bot]
7fb37f174a chore(deps): update dependency sass to v1.86.3 2025-04-04 02:44:00 +00:00
renovate[bot]
2686943504 chore(deps): update dependency bootstrap to v5.3.4 2025-04-04 02:43:49 +00:00
JYC333
614d395d72 Merge pull request #1620 from TriliumNext/fix_leaflet-marker
fix(geo_map): fix leaflet asset copying/loading
2025-04-03 23:05:34 +02:00
Panagiotis Papadopoulos
b8af8b4709 fix(geo_map): fix leaflet asset copying
necessary, now that we moved leaflet to devDeps
2025-04-03 22:35:09 +02:00
Elian Doran
0f792ca21d feat(docs): document automatic opening of PDF 2025-04-03 21:52:29 +03:00
Elian Doran
a4f39d6376 feat(docs): document the items of the ribbon 2025-04-03 21:40:02 +03:00
Elian Doran
25fe6c2690 fix(docs): missing images in theme development 2025-04-03 21:08:18 +03:00
Elian Doran
38ed8b6592 fix(docs): missing image in geomap 2025-04-03 20:53:54 +03:00
Elian Doran
0b82489ea0 chore(package): use different port for no-dir 2025-04-03 20:33:12 +03:00
Elian Doran
0acc14fc46 chore(backup): log when backup starts 2025-04-03 20:23:25 +03:00
Elian Doran
14b0a9cb18 chore(docs): normalize non-breaking spaces 2025-04-03 19:35:59 +03:00
Elian Doran
32db26684d feat(import/markdown): normalize non-breaking spaces 2025-04-03 19:29:51 +03:00
Elian Doran
99461dbf7e Merge pull request #1606 from TriliumNext/renovate/fullcalendar-monorepo
chore(deps): update fullcalendar monorepo to v6.1.17
2025-04-03 18:44:18 +03:00
Elian Doran
690f365875 chore(release): disable manual workflow triggering
We can use the nightly if we need it.
2025-04-03 18:16:10 +03:00
Elian Doran
3c820fcc68 chore(docker): update build info for dev builds as well 2025-04-03 17:58:26 +03:00
Elian Doran
a7ba7d6528 fix(docker): display correct build date (closes #1380) 2025-04-03 17:49:07 +03:00
Elian Doran
947e6b8113 Revert "desktop app: use a custom user agent string" (closes #1538)
This reverts commit ccbd47e03d.
2025-04-03 17:35:53 +03:00
Elian Doran
9c8e066826 fix(client): calendar dropdown cut off 2025-04-03 15:59:21 +03:00
Elian Doran
a8e37d1a51 Merge branch 'develop' into renovate/fullcalendar-monorepo 2025-04-03 15:43:25 +03:00
Elian Doran
f4b085df3a Merge pull request #1603 from TriliumNext/renovate/react-monorepo
chore(deps): update dependency @types/react-dom to v18.3.6
2025-04-03 15:42:33 +03:00
Elian Doran
b4b2934e60 Merge pull request #1604 from TriliumNext/renovate/electron-35.x
chore(deps): update dependency electron to v35.1.3
2025-04-03 15:42:03 +03:00
Elian Doran
be29a699f4 Merge pull request #1605 from TriliumNext/renovate/sass-1.x
chore(deps): update dependency sass to v1.86.2
2025-04-03 15:41:41 +03:00
Elian Doran
d8a507382b Merge pull request #1607 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.14.0
2025-04-03 15:41:28 +03:00
Elian Doran
ac96005eb4 Merge pull request #1608 from TriliumNext/renovate/rollup-4.x-lockfile
chore(deps): update dependency rollup to v4.39.0
2025-04-03 15:41:20 +03:00
renovate[bot]
4dee990189 chore(deps): update fullcalendar monorepo to v6.1.17 2025-04-03 12:22:06 +00:00
Elian Doran
9a69becf9a Merge pull request #1610 from TriliumNext/deps_mermaid
deps: move packages to devDeps that are now packed by webpack
2025-04-03 15:21:03 +03:00
Elian Doran
8b823f2a57 Merge branch 'develop' into deps_mermaid 2025-04-03 14:28:30 +03:00
Elian Doran
429b600a22 Merge pull request #1613 from TriliumNext/feature/report_bundle_size
Report bundle size
2025-04-03 14:27:59 +03:00
Elian Doran
2b8ec8f01f fix(ci): remove appending 2025-04-03 13:18:22 +03:00
Elian Doran
8730a99aeb chore(ci): display size in MB 2025-04-03 12:58:02 +03:00
Elian Doran
194f05dc9d fix(ci): allow slashes for branch names in server build 2025-04-03 12:44:00 +03:00
Elian Doran
9c2329a5e6 feat(ci): report server size as well 2025-04-03 12:22:57 +03:00
Elian Doran
acbdf98c84 refactor(ci): remove unnecessary variables 2025-04-03 12:20:07 +03:00
Elian Doran
4bf8e28595 fix(ci): add permissions to write comments 2025-04-03 11:58:58 +03:00
Elian Doran
a039e15418 feat(ci): report electron size 2025-04-03 11:44:17 +03:00
Elian Doran
de3fdbe01a chore(gitignore): add upload dir 2025-04-03 11:39:05 +03:00
Elian Doran
1e47203b61 Revert "chore(ci): remove server build temporarily" (closes #1612)
This reverts commit c50a67f36b.
2025-04-03 10:55:14 +03:00
Panagiotis Papadopoulos
d6e1ad75e0 deps: move jsplumb and panzoom to devDeps
this is now handled by webpack since b44bb4053c
2025-04-03 08:28:17 +02:00
Panagiotis Papadopoulos
77e9a90904 deps: move leaflet to devDeps
this is now handled by webpack since accf245179
2025-04-03 08:20:46 +02:00
Panagiotis Papadopoulos
2833d2fe92 deps: move mermaid to devDeps –
this is now handled by webpack since 28c51cb38a
2025-04-03 08:16:43 +02:00
renovate[bot]
d273748d34 chore(deps): update dependency rollup to v4.39.0 2025-04-03 01:42:15 +00:00
renovate[bot]
2a251c0810 chore(deps): update dependency @types/node to v22.14.0 2025-04-03 01:42:07 +00:00
renovate[bot]
b3bc90b010 chore(deps): update dependency sass to v1.86.2 2025-04-03 01:41:46 +00:00
renovate[bot]
f0770c07d0 chore(deps): update dependency electron to v35.1.3 2025-04-03 01:41:35 +00:00
renovate[bot]
c5dcc35cae chore(deps): update dependency @types/react-dom to v18.3.6 2025-04-03 01:41:25 +00:00
JYC333
39d466caf8 Merge pull request #1602 from TriliumNext/chore_format_tests
chore(format): format .spec files
2025-04-02 23:55:08 +02:00
Jin
170375fe04 fix: 🐛 fix mfa get option error 2025-04-02 23:13:59 +02:00
Panagiotis Papadopoulos
df5ac3e77d chore(format): fix auto-fixable format issues in *.spec.ts 2025-04-02 23:00:22 +02:00
Panagiotis Papadopoulos
2112bbee0a chore(format): fix auto-fixable format issues in data_dir.spec.ts 2025-04-02 22:41:14 +02:00
Elian Doran
6a3c44f866 fix(markdown/import): markdown quotes not escaping 2025-04-02 23:41:04 +03:00
Elian Doran
749a398128 fix(docs): use LF instead of CRLF 2025-04-02 23:41:04 +03:00
Elian Doran
4b8e3b39fe chore(docs): fix <kbd> 2025-04-02 23:41:04 +03:00
Elian Doran
a3a2bf4484 refactor(docs): use in-memory model 2025-04-02 23:41:04 +03:00
Panagiotis Papadopoulos
f0a2808e3e chore(format): fix format issues in sanitize_attribute_name.spec.ts 2025-04-02 22:38:51 +02:00
Panagiotis Papadopoulos
ff58184691 chore(format): fix format issues in tree.spec.ts 2025-04-02 22:37:38 +02:00
Panagiotis Papadopoulos
80ce77cdcf chore(format): fix format issues in utils.spec.ts
from
374 problems down to 40
2025-04-02 22:33:14 +02:00
Panagiotis Papadopoulos
3f0dbb9063 chore: fix typo in verifyRecoveryCode function name 2025-04-02 21:41:48 +02:00
Panagiotis Papadopoulos
4e413f6702 chore(eslint): add sort-imports rule
https://eslint.org/docs/latest/rules/sort-imports
2025-04-02 21:28:44 +02:00
Elian Doran
56eda374e0 Merge pull request #1575 from TriliumNext/chore_eslint-formatting
chore: use eslint for formatting and replace dprint
2025-04-02 21:19:55 +03:00
Elian Doran
ce340b2128 chore(vscode): add ESLint to recommendations 2025-04-02 21:17:02 +03:00
Elian Doran
c6d39e4f1f chore(eslint): set max code length to 100 2025-04-02 21:16:18 +03:00
Elian Doran
a8319fcbdf fix(tab_bar): empty tabs not properly removed at app start 2025-04-02 21:13:41 +03:00
Elian Doran
0c5cd66eae feat(a11y): set autocomplete for protected session 2025-04-02 21:04:22 +03:00
Elian Doran
8ec97602c8 feat(a11y): set autocomplete for login 2025-04-02 21:02:24 +03:00
Elian Doran
af835dfe26 style(set_password): add some margins 2025-04-02 20:59:01 +03:00
Elian Doran
c475094284 feat(a11y): suggest new password in set password 2025-04-02 20:51:53 +03:00
Elian Doran
f420b5cbd4 feat(electron): constrain setup window size 2025-04-02 20:47:53 +03:00
Elian Doran
3e5bd01fc1 feat(electron): set window minimum size (closes #994) 2025-04-02 20:44:39 +03:00
Elian Doran
d8a1852935 feat(launch_bar): make scrollable when icons don't fit 2025-04-02 20:36:24 +03:00
Elian Doran
86433e4c51 feat(launch_bar): improve look on small windows 2025-04-02 20:22:10 +03:00
Elian Doran
69b2824f9c fix(client): note context not correctly define (closes #1193) 2025-04-02 20:08:18 +03:00
Elian Doran
db66d86bc2 fix(in-app-help): help not rendering in other languages (fixes #1600) 2025-04-02 16:39:16 +03:00
JYC333
ea2de4e4f3 Merge pull request #1591 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.17
2025-04-02 11:47:50 +02:00
JYC333
f6c0c09e20 Merge pull request #1592 from TriliumNext/renovate/ws-8.x
chore(deps): update dependency @types/ws to v8.18.1
2025-04-02 11:47:17 +02:00
JYC333
df328d576f Merge pull request #1598 from TriliumNext/autoComplete1
Forced to trigger search after compositionend
2025-04-02 11:46:33 +02:00
JYC333
4b64c34cbb Merge pull request #1595 from TriliumNext/fix/logout-headers-sent-error
Fix "Cannot set headers after they are sent" error in logout function
2025-04-02 11:44:19 +02:00
JYC333
9f3076755c Merge pull request #1597 from TriliumNext/hotfix/totp-validation-bypass
hotfix(auth): fix TOTP validation bypass issue
2025-04-02 11:42:38 +02:00
SiriusXT
cc87ff44a5 Forced to trigger search after compositionend 2025-04-02 15:44:47 +08:00
SiriusXT
30056e7ffe Forced to trigger search after compositionend 2025-04-02 15:19:19 +08:00
Panagiotis Papadopoulos
d1b08e535e Merge branch 'develop' into chore_eslint-formatting 2025-04-02 09:05:42 +02:00
Panagiotis Papadopoulos
7812c0574c chore(eslint): correctly pickup ts files as well 2025-04-02 08:58:52 +02:00
Panagiotis Papadopoulos
e98516df8a chore(eslint): remove leftover plugin 2025-04-02 08:54:10 +02:00
Panagiotis Papadopoulos
42edb0c0bd chore(eslint): ignore "demo" folder for now 2025-04-02 08:42:14 +02:00
Panagiotis Papadopoulos
d432a56211 chore(scripts): update dev:format scripts to eslint 2025-04-02 08:37:57 +02:00
Panagiotis Papadopoulos
a0fe60eff1 chore(eslint): move formatting rules to own config file for now
this will allow us to run linting and formatting separately for now, where we have a ton of linting errors still
2025-04-02 08:35:24 +02:00
Nriver
30fb754a5f hotfix(auth): fix TOTP validation bypass issue 2025-04-02 14:29:37 +08:00
Nriver
dab65a6364 Fix "Cannot set headers after they are sent" error in logout function 2025-04-02 14:13:38 +08:00
renovate[bot]
4000387f44 chore(deps): update dependency @types/ws to v8.18.1 2025-04-02 01:38:52 +00:00
renovate[bot]
e9ece00450 chore(deps): update dependency @types/node to v22.13.17 2025-04-02 01:38:42 +00:00
Elian Doran
9a5793dfdd fix(pdf): hide title bar buttons when exporting to PDF (closes #1587) 2025-04-01 23:53:38 +03:00
Elian Doran
2a68c28f2e fix(pdf): hide center pane widgets when exporting to PDF 2025-04-01 23:48:08 +03:00
Elian Doran
ba506c9c10 refactor(dev): use es6-string-html for some of the SQL statements (closes #274) 2025-04-01 23:30:21 +03:00
Elian Doran
7a879d7cc8 feat(vscode): add es6-string-html to recommendations 2025-04-01 23:25:03 +03:00
Elian Doran
815078168f refactor(dev): use es6-string-html for templates 2025-04-01 23:24:34 +03:00
Elian Doran
3f2945018c feat(demo): reorganize, add icons & geo map 2025-04-01 22:55:20 +03:00
Elian Doran
6aba18887f chore(docs): change icons & expanded branches 2025-04-01 22:30:37 +03:00
Elian Doran
242706e4ac chore(docs):: remove unnecessary <div>s 2025-04-01 22:27:29 +03:00
Elian Doran
d7fef36b46 Merge pull request #1589 from TriliumNext/autoComplete
To prevent search lag when there are a large number of notes
2025-04-01 22:08:39 +03:00
Elian Doran
b94bda6670 chore(note_autocomplete): remove logging 2025-04-01 22:07:59 +03:00
Elian Doran
dd46ffa137 Merge pull request #1590 from TriliumNext/fix_543
fix(electron_context_menu): fix disabled search engine contex menu on readonly notes
2025-04-01 21:39:18 +03:00
Panagiotis Papadopoulos
a6206d2bd6 fix(electron_context_menu): fix disabled search engine context menu on readonly notes
fixes #543
2025-04-01 19:25:10 +02:00
Panagiotis Papadopoulos
a715de6472 chore(deps): run npm audit fix
goes from
7 vulnerabilities (6 moderate, 1 high)
to
5 moderate severity vulnerabilities
2025-04-01 19:15:25 +02:00
SiriusXT
adcb803caa To prevent search lag when there are a large number of notes 2025-04-01 21:07:15 +08:00
JYC333
31d81ea2cd Merge pull request #1585 from TriliumNext/renovate/vitest-monorepo
chore(deps): update vitest monorepo to v3.1.1
2025-04-01 14:24:00 +02:00
JYC333
c5f2c6b449 Merge pull request #1584 from TriliumNext/renovate/typescript-eslint-monorepo
chore(deps): update dependency typescript-eslint to v8.29.0
2025-04-01 14:23:22 +02:00
JYC333
1c84069717 Merge pull request #1583 from TriliumNext/renovate/sass-1.x
chore(deps): update dependency sass to v1.86.1
2025-04-01 14:22:37 +02:00
SiriusXT
a7799d32b0 To prevent search lag when there are a large number of notes 2025-04-01 18:47:07 +08:00
Panagiotis Papadopoulos
8dfdb48e8d chore(eslint): configure @stylistic/quotes rule 2025-04-01 09:17:24 +02:00
Panagiotis Papadopoulos
e93d7e6bd1 chore: remove .dprint.json config file -> now unused 2025-04-01 09:01:11 +02:00
Panagiotis Papadopoulos
cd992806a6 chore(tsconfig): add "*.js" to include, to fix eslint "ProjectService" error
added it only to the "dev" tsconfig.
The tsconfig.build.json, which is used for build output does not require it.

eslint was previosuly reporting on itself:
"TriliumNextNotes/eslint.config.js was not found by the project service. Consider either including it in the tsconfig.json or including it in allowDefaultProject"
2025-04-01 09:00:37 +02:00
Panagiotis Papadopoulos
237fcdab20 chore: run eslint on eslint.config.js :-) 2025-04-01 08:57:24 +02:00
Panagiotis Papadopoulos
ad18883952 chore: add padded-blocks @stylistic rule 2025-04-01 08:56:36 +02:00
Panagiotis Papadopoulos
8354fec70e chore: add initial @stylistic rules
based on what we had with dprint -> which in turn was based on what we had with prettier
2025-04-01 08:50:43 +02:00
renovate[bot]
217a28ef01 chore(deps): update vitest monorepo to v3.1.1 2025-04-01 01:38:36 +00:00
renovate[bot]
5db393bfda chore(deps): update dependency typescript-eslint to v8.29.0 2025-04-01 01:38:19 +00:00
renovate[bot]
f80c5ba29e chore(deps): update dependency sass to v1.86.1 2025-04-01 01:38:04 +00:00
Elian Doran
8c6dbb4446 feat(docs): preserve note IDs 2025-03-31 23:20:14 +03:00
Elian Doran
b6137c0747 chore(docs): normalize whitespace 2025-03-31 22:56:47 +03:00
Elian Doran
96eb7487e7 chore(gitattributes): set up CRLF handling 2025-03-31 22:51:54 +03:00
Elian Doran
a5b481146b Merge pull request #1581 from TriliumNext/totp
Fix redirect url with reverse proxy
2025-03-31 22:38:35 +03:00
Jin
ff43537942 fix: 🐛 fix redirect url with reverse proxy 2025-03-31 21:08:22 +02:00
JYC333
9397dfd6a6 Merge pull request #1577 from kliu/theme
Use --link-color as the color of links
2025-03-31 20:58:42 +02:00
JYC333
d665a4c611 Merge branch 'develop' into theme 2025-03-31 20:57:34 +02:00
Elian Doran
6976c9555e fix(mermaid): bypass security issue when generating PNG 2025-03-31 21:18:40 +03:00
Elian Doran
3d0ec27038 fix(mermaid): fix export to PNG for some diagram types 2025-03-31 20:57:39 +03:00
Elian Doran
3cdbc76fff feat(mermaid): display an error when PNG export could not occur 2025-03-31 18:37:05 +03:00
kliu
4ca296894d Use --link-color as the color of links 2025-03-31 18:01:52 +08:00
Panagiotis Papadopoulos
66cfc78d8d deps: @stylistic/eslint-plugin for formatting
replaces previously used dprint
2025-03-31 09:01:39 +02:00
Panagiotis Papadopoulos
f261c5841a deps: remove dprint
to be replaced by eslint-stylistic
https://eslint.style/
2025-03-31 09:00:15 +02:00
Elian Doran
f3b866fa7b fix(import/zip): remove nesting of ck-content divs 2025-03-31 00:58:35 +03:00
Elian Doran
f32b76d047 refactor(import/zip): extract method and test it 2025-03-31 00:27:36 +03:00
Elian Doran
2a69a98dd3 chore(demo): remove extremely nested content 2025-03-30 23:51:46 +03:00
Elian Doran
c2feb56a0a feat(edit-demo): clean up directory 2025-03-30 23:09:17 +03:00
Elian Doran
dc31ea2333 chore(docs): keep root naming 2025-03-30 22:29:29 +03:00
Elian Doran
9c83738a16 chore(edit-demo): export root instead 2025-03-30 22:27:09 +03:00
Elian Doran
9590f5362e feat(edit-demo): use in-memory database 2025-03-30 22:26:23 +03:00
Elian Doran
428f00425a chore(demo): export as root 2025-03-30 22:26:01 +03:00
Elian Doran
e6d77f3058 chore(demo): rename top-level note 2025-03-30 22:08:52 +03:00
Elian Doran
575201fbe8 feat(in-app-help): display day notes help for #calendarRoot 2025-03-30 22:04:16 +03:00
Elian Doran
743c053584 feat(demo): create top-level calendar root 2025-03-30 21:54:59 +03:00
Elian Doran
4605f9f38f chore(docs): commit contents of the demo zip for diffing changes 2025-03-30 21:37:36 +03:00
Elian Doran
293314b8ef feat(edit-demo): unzip demo for easy diffing 2025-03-30 21:37:10 +03:00
Elian Doran
827c228cdc feat(demo): add entrypoint for editing the demo safely 2025-03-30 21:31:35 +03:00
Elian Doran
78c8b17e33 chore(release): turn into beta 2025-03-30 20:51:08 +03:00
Elian Doran
60becbc38c fix(build): add dprint to optional dependencies to support ARMv7 (closes #1556) 2025-03-30 18:04:09 +03:00
Elian Doran
d69ff1e3cf Merge pull request #1569 from TriliumNext/feature/fix_release
fix(release): appdmg not found
2025-03-30 17:59:48 +03:00
Elian Doran
2d3a1e9023 fix(build): flaky copy of the artifact 2025-03-30 17:43:34 +03:00
Elian Doran
7b2bbdd52a fix(release): unable to find appdmg 2025-03-30 17:23:20 +03:00
Elian Doran
93dc16de45 chore(package): update lock 2025-03-30 17:06:59 +03:00
Elian Doran
85000a2b7f Revert "fix(release): appdmg not found"
This reverts commit 095fbb7015.
2025-03-30 17:04:29 +03:00
Elian Doran
a9c3c98fa5 chore(nighly): trigger on forge config change 2025-03-30 16:54:14 +03:00
Elian Doran
fb800eb96b fix(forge): slashes in ref name breaking copying 2025-03-30 16:44:46 +03:00
Elian Doran
095fbb7015 fix(release): appdmg not found 2025-03-30 16:24:39 +03:00
Elian Doran
11dc52f0ce chore(release): prepare for 0.92.5 2025-03-30 15:32:43 +03:00
Elian Doran
e01dc5751a Merge pull request #1566 from TriliumNext/tray
Fix program crash during initial setup and the tray not showing.
2025-03-30 14:50:11 +03:00
Elian Doran
283229d597 chore(client): add .mobile-only class 2025-03-30 14:30:18 +03:00
Elian Doran
30c14297d0 feat(backend-options): add a refresh floating button 2025-03-30 14:30:18 +03:00
Elian Doran
a0d562e01b feat(backend-options): reduce padding 2025-03-30 14:30:18 +03:00
SiriusXT
10bc7a8bd6 Merge branch 'develop' into tray 2025-03-30 18:48:54 +08:00
SiriusXT
4c063251e0 Fix program crash during initial setup and the tray not showing. 2025-03-30 17:39:28 +08:00
Elian Doran
9c291e3d41 Merge pull request #1561 from TriliumNext/renovate/rollup-4.x-lockfile
chore(deps): update dependency rollup to v4.38.0
2025-03-30 12:16:05 +03:00
Elian Doran
bc4918ed5b feat(backend_log): respect user's word wrapping (closes #1496) 2025-03-30 11:59:38 +03:00
Elian Doran
fcd7df52ee Merge branch 'develop' into renovate/rollup-4.x-lockfile 2025-03-30 11:40:36 +03:00
Elian Doran
fbb010edf4 Merge pull request #1560 from TriliumNext/renovate/mind-elixir-4.x
chore(deps): update dependency mind-elixir to v4.5.0
2025-03-30 11:38:14 +03:00
renovate[bot]
66f7ba0065 chore(deps): update dependency rollup to v4.38.0 2025-03-30 02:26:39 +00:00
renovate[bot]
b9ae39a3d1 chore(deps): update dependency mind-elixir to v4.5.0 2025-03-30 02:26:30 +00:00
Elian Doran
fd53e35f6f feat(autocomplete): don't search unless length is 3 2025-03-29 22:22:51 +02:00
Elian Doran
766b0723f7 feat(autocomplete): support default icons like on client 2025-03-29 22:18:42 +02:00
Elian Doran
a9193fdcd4 feat(autocomplete): display note icon 2025-03-29 22:04:34 +02:00
Elian Doran
eb097ec1ea fix(highlights): unable to navigate to italic links (closes #1555) 2025-03-29 14:12:17 +02:00
Elian Doran
a44bf7fb49 chore(highlights): prevent crash if unable to find target element 2025-03-29 14:10:12 +02:00
Elian Doran
04a7ad8d4e fix(highlights): new italic format not displayed 2025-03-29 14:08:57 +02:00
Elian Doran
9a3f765d42 fix(import/markdown): unable to import code blocks with XML/HTML content if safe mode on (closes #1530) 2025-03-29 13:47:02 +02:00
Elian Doran
fd76f8dac9 chore(vitest): switch to JSON for workspace config
Fixes random error due to the presence of the file in `build` directory.
2025-03-29 13:40:44 +02:00
Elian Doran
0982a0e503 feat(docs): improve documentation, add icons, reorganize 2025-03-29 13:07:28 +02:00
Elian Doran
5ae6b18762 fix(docs): remove accidentally added file 2025-03-29 13:07:28 +02:00
Elian Doran
49c41850ad feat(docs): add basic Bash script for ETAPI 2025-03-29 13:07:28 +02:00
Elian Doran
644d79b1ce feat(docs): improve documentation on note map/relation map 2025-03-29 13:07:28 +02:00
Elian Doran
80cfd73cae feat(docs): document some of the technologies used 2025-03-29 13:07:28 +02:00
Elian Doran
fbfeb7d2bf feat(docs): document note source (viewing & editing) 2025-03-29 13:07:28 +02:00
Elian Doran
7be71fc6fa Merge pull request #401 from TriliumNext/feature/MFA
Feature addition: Multi-Factor Authentication
2025-03-29 13:06:00 +02:00
Jin
ed58be1578 Merge branch 'develop' into feature/MFA 2025-03-29 11:23:38 +01:00
Jin
17b4bfca39 chore: 🤖 improve instruction 2025-03-29 11:23:00 +01:00
Elian Doran
96d3d661c2 chore(docs): sync import/export 2025-03-29 11:28:59 +02:00
Elian Doran
e62137f245 fix(docs): meta for HTML documentation changing due to root notePosition 2025-03-29 11:28:31 +02:00
Elian Doran
4dd300b702 fix(docs): meta for HTML documentation changing due to isExpanded 2025-03-29 11:25:28 +02:00
Elian Doran
ce9a2a258e Merge pull request #1550 from TriliumNext/renovate/sanitize-html-2.x
chore(deps): update dependency @types/sanitize-html to v2.15.0
2025-03-29 02:56:02 +02:00
Jin
a8e37b5b92 Merge branch 'develop' into feature/MFA 2025-03-29 01:45:18 +01:00
Jin
02c4a269be feat: 🎸 upgrade db version 2025-03-29 01:44:25 +01:00
Jin
77f62b94cc refactor: 💡 refact recovery code 2025-03-29 01:40:17 +01:00
renovate[bot]
c18e56d12f chore(deps): update dependency @types/sanitize-html to v2.15.0 2025-03-29 00:39:33 +00:00
Elian Doran
d84e8c347a Merge pull request #1546 from TriliumNext/webpack
Move library loader to webpack
2025-03-29 02:38:34 +02:00
Elian Doran
c7c8af28f7 fix(editor): header formatting remaining after cut to note (closes #687) 2025-03-29 02:07:29 +02:00
Jin
2eeb376d24 refactor: 💡 fix typo and imporve code quality 2025-03-29 01:00:08 +01:00
Elian Doran
d8b9448b91 fix(editor): not being able to copy from the included note (closes #588) 2025-03-29 01:55:20 +02:00
Jin
ce66397257 Merge branch 'develop' into webpack 2025-03-29 00:52:27 +01:00
Jin
608378193f fix: 🐛 fix mark.js load error 2025-03-29 00:51:36 +01:00
Elian Doran
bd092e0119 chore(i18n): typo 2025-03-29 00:45:16 +02:00
Elian Doran
f743cfc35c fix(options/mfa): double colons in warning 2025-03-29 00:44:51 +02:00
Elian Doran
4cde9253ed style(options/mfa): use admonitions 2025-03-29 00:42:20 +02:00
Elian Doran
9c835d0f7f chore(docs): always use LF on Windows 2025-03-29 00:22:49 +02:00
Elian Doran
68e1e68cfe chore(zen): change default keyboard shortcut to F9 (closes #1372) 2025-03-29 00:22:27 +02:00
Jin
534c146542 Merge branch 'develop' into webpack 2025-03-28 23:00:59 +01:00
Jin
47a363be0f refactor: 💡 improve image zoom 2025-03-28 22:28:09 +01:00
Jin
25aa08bb4c chore: 🤖 fix lock file 2025-03-28 22:07:43 +01:00
Jin
797ed2a494 Merge branch 'develop' into feature/MFA 2025-03-28 22:04:23 +01:00
Elian Doran
df6c6647c7 chore(deps): remove leaflet from dist 2025-03-28 22:40:19 +02:00
Elian Doran
83890ba130 Merge pull request #1537 from TriliumNext/build_webpack-excalidraw-font
build: use webpack for excalidraw
2025-03-28 22:31:32 +02:00
Elian Doran
041c801065 Merge pull request #1539 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.14
2025-03-28 22:24:33 +02:00
Elian Doran
9585c6a55f fix(client): "Note not found" tooltip for some URLs 2025-03-28 22:22:42 +02:00
Elian Doran
4ac52e17da Merge pull request #1541 from TriliumNext/renovate/mime-types-3.x
fix(deps): update dependency mime-types to v3
2025-03-28 22:08:43 +02:00
Elian Doran
bf1896f4fa Merge pull request #1540 from TriliumNext/renovate/electron-35.x
chore(deps): update dependency electron to v35.1.2
2025-03-28 22:08:12 +02:00
Elian Doran
597874250a fix(electron): spacing increases when entering Chinese and digits (fixes #1327) 2025-03-28 22:07:01 +02:00
Jin
4a2c075935 chore: 🤖 remove calendar css from library_loader 2025-03-28 17:08:34 +01:00
Jin
accf245179 chore: 🤖 remove leaflet css from library_loader 2025-03-28 16:58:06 +01:00
Jin
b30035834a chore: 🤖 remove mark.js from asset 2025-03-28 16:43:11 +01:00
Jin
3dc7636910 chore: 🤖 remove wheelzoom from asset 2025-03-28 16:40:48 +01:00
Jin
2476e0b504 chore: 🤖 move mark.js to webpack 2025-03-28 16:23:06 +01:00
Jin
94bc550c67 chore: 🤖 move wheel zoom to webpack 2025-03-28 16:16:33 +01:00
Jin
121f297fcb chore: 🤖 better oauth instruction 2025-03-28 12:08:32 +01:00
Jin
b51814abeb fix: 🐛 remove oauth default config 2025-03-28 12:03:27 +01:00
Jin
cb3627ed50 chore: 🤖 better totp instruction 2025-03-28 12:01:18 +01:00
Jin
f19ec9b3c4 fix: 🐛 fix open id check error 2025-03-28 11:59:32 +01:00
Jin
aaecb43f8a fix: 🐛 fix oauth logout error 2025-03-28 04:05:00 +01:00
Jin
bde58e5836 fix: 🐛 fix login error 2025-03-28 04:01:18 +01:00
Jin
5987dedff8 Merge branch 'develop' into feature/MFA 2025-03-28 03:47:26 +01:00
Jin
2bd408cf8a feat: 🎸 better instruction 2025-03-28 03:46:58 +01:00
Jin
44c8b7d9ea feat: 🎸 improve oauth option page 2025-03-28 03:44:40 +01:00
Jin
7929aaf91a feat: 🎸 returen missing vars for oauth 2025-03-28 03:43:44 +01:00
renovate[bot]
def9bbeac7 fix(deps): update dependency mime-types to v3 2025-03-28 02:43:35 +00:00
renovate[bot]
9fe40e2ce6 chore(deps): update dependency electron to v35.1.2 2025-03-28 02:43:19 +00:00
renovate[bot]
bc76ba4149 chore(deps): update dependency @types/node to v22.13.14 2025-03-28 02:43:08 +00:00
Jin
332de4e67f feat: 🎸 add subtree translation 2025-03-28 03:42:59 +01:00
Jin
c217ccd347 feat: 🎸 remove totp from config 2025-03-28 03:05:04 +01:00
Jin
243d7d0ee9 feat: 🎸 remove totp config 2025-03-28 03:02:55 +01:00
Jin
c921982ae7 feat: 🎸 set generate totp function 2025-03-28 03:02:03 +01:00
Jin
ea7fbb154f fix: 🐛 init error with totp 2025-03-28 02:38:51 +01:00
Jin
5742d3068e feat: 🎸 move totp services to encryption logic 2025-03-28 02:15:25 +01:00
Jin
687d506ca5 refactor: 💡 rename error class 2025-03-28 01:56:49 +01:00
Jin
18a417addd feat: 🎸 add totp encryption 2025-03-28 01:53:53 +01:00
Jin
04cbe9d3d1 style: 💄 restyle 2025-03-28 01:53:32 +01:00
Jin
d4cd0e8eff feat: 🎸 restyle option page 2025-03-28 01:22:30 +01:00
Jin
d92fa82ad0 feat: 🎸 set option status 2025-03-28 01:00:58 +01:00
Jin
d42b839c32 feat: 🎸 init move mfa option 2025-03-28 00:39:59 +01:00
Panagiotis Papadopoulos
73fa06a06a deps: move react/react-dom to devDeps
these are only used for excalidraw and are bundled by webpack now
2025-03-28 00:20:00 +01:00
Panagiotis Papadopoulos
c81fb5dd14 deps: move @excalidraw to devDeps
it is bundled by webpack now
2025-03-28 00:16:30 +01:00
Panagiotis Papadopoulos
98df7bcd83 chore(excalidraw): update comment about EXCALIDRAW_ASSET_PATH 2025-03-28 00:14:04 +01:00
Panagiotis Papadopoulos
db959aa997 chore(excalidraw): update EXCALIDRAW_ASSET_PATH
used for the fonts excalidraw requires
2025-03-28 00:06:50 +01:00
Panagiotis Papadopoulos
1c49cb0569 build(webpack): fix copy-to path name
this will now end up in "src/public/app-dist/excalidraw/fonts/"

excalidraw *needs* the fonts to be in a folder called "fonts" as it appends the "EXCALIDRAW_ASSET_PATH" variable with "fonts" automatically -> therefore switch names around to fix the issue
2025-03-27 23:53:08 +01:00
Panagiotis Papadopoulos
ee2ee2c291 build(webpack): copy required excalidraw fonts 2025-03-27 23:15:47 +01:00
Panagiotis Papadopoulos
7b6f04e30d deps: add copy-webpack-plugin
to be used for copying excalidraw fonts as assets
2025-03-27 23:12:24 +01:00
Elian Doran
1a312bf01c Merge pull request #1322 from TriliumNext/chore_dprint
chore: replace prettier with dprint
2025-03-27 22:57:58 +02:00
Panagiotis Papadopoulos
e95172e2db build(scripts): replace prettier with dprint
also renaming the script from "dev:prettier" to a more "generic" term "dev:format"
2025-03-27 21:29:18 +01:00
Panagiotis Papadopoulos
cdc6ce2118 chore: remove prettier
replaced by dprint due to its configurability
2025-03-27 21:26:39 +01:00
Panagiotis Papadopoulos
f965be9f8f deps: add dprint as devDep 2025-03-27 21:24:51 +01:00
Panagiotis Papadopoulos
1c04aa9963 chore: add dprint config
add initial dprint configuration, settings partially taken from the prettier config,

still might need some finetuning
2025-03-27 21:22:07 +01:00
Panagiotis Papadopoulos
6336699618 build(server): improve "node" folder cleanup
* remove useless symlinks to non-existing files (npm, npx -> the actual file gets deleted by "rm -r $BUILD_DIR/node/lib/node_modules/npm"
=> fixes #1499
(this time fully ;-))

* remove unused corepack

* remove useless CHANGELOG.md (LICENSE and README.md should of course still remain)
2025-03-27 21:06:35 +01:00
Elian Doran
91242b6cab fix(next): regression in mica dark 2025-03-27 19:55:06 +02:00
Elian Doran
1b6ab7e7f2 fix(dropdowns): overlap with quick search results 2025-03-27 19:36:58 +02:00
Elian Doran
10f044aced Merge pull request #1436 from TriliumNext/build_copy-dist-trilium-merge
build: port copy-trilium.sh cleanup functionality to cross-platform TS
2025-03-27 19:26:34 +02:00
--global
cbf3ee9f6e fix(ci): bring back ref name in artifact (fixes #1532) 2025-03-27 19:03:44 +02:00
Adorian Doran
04a41ca5f4 style(next): add some remarks 2025-03-27 18:50:26 +02:00
Adorian Doran
63efa8ffe4 style(next): improve the window dragging functionality for the vertical toolbar layout 2025-03-27 18:46:03 +02:00
Adorian Doran
b6565c3b13 style(next): improve the window dragging functionality also for the vertical toolbar layout 2025-03-27 18:40:49 +02:00
Adorian Doran
b9c4d83223 style(next): improve the window dragging functionality for the horizontal toolbar layout 2025-03-27 18:26:21 +02:00
Adorian Doran
66cebf4ebf style(next)/scrollbars: add a remark 2025-03-27 16:12:51 +02:00
Adorian Doran
25d83752e5 style(next): refactor 2025-03-27 16:08:34 +02:00
Adorian Doran
10ea58a368 style(next)/scrollbars: restore the support for custom background color 2025-03-27 16:06:53 +02:00
Adorian Doran
4ab70fcb8a style(next): rename CSS variable 2025-03-27 15:43:33 +02:00
Adorian Doran
01004ac425 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-27 15:41:27 +02:00
Adorian Doran
99bdf33236 style(next): fix scrollbar appearance in code blocks 2025-03-27 15:41:24 +02:00
Elian Doran
2ce1858d40 Merge pull request #1533 from FliegendeWurst/patch-1
README.md: TriliumDroid link, documentation update
2025-03-27 15:27:41 +02:00
Arne Keller
8c4e504cd4 README.md: link to old docs 2025-03-27 14:23:55 +01:00
Arne Keller
a7d6f1e4d1 README.md: TriliumDroid link, documentation update 2025-03-27 12:50:39 +01:00
Panagiotis Papadopoulos
5a2c5d8047 Merge branch 'develop' into build_copy-dist-trilium-merge 2025-03-27 09:37:03 +01:00
Panagiotis Papadopoulos
9fe37465c7 build(electron-forge): use double quotes for the buildPath in afterPrune
attempt to fix failing Windows build in CI, which uses cmd shell, which apparently treats single apostrophes differently
2025-03-27 09:35:48 +01:00
Panagiotis Papadopoulos
6218ae6cd7 chore(docker): move exception below TODO comment 2025-03-27 09:07:29 +01:00
Panagiotis Papadopoulos
fa0358662a build(docker): add missing cleanupNodeModules removal to Dockerfile
previously forgot to add this here as well -> had it only in the Dockerfile.alpine
2025-03-27 09:06:09 +01:00
Panagiotis Papadopoulos
d5bc9841e3 build(docker): use absolute path to stay consistent 2025-03-27 09:05:17 +01:00
Panagiotis Papadopoulos
e9fa37c4ee chore(docker): remove TODO 2025-03-27 09:04:10 +01:00
Panagiotis Papadopoulos
75431ca634 build: make running of npm ci in build scripts configurable
* moved the running of npm ci from copy-dist to cleanupNodeModules
* added flag to disable it (necessary for electron-forge)
2025-03-27 00:00:41 +01:00
Elian Doran
cd5bfcf136 Merge branch 'develop' into feature/MFA 2025-03-26 22:33:15 +02:00
Elian Doran
683bf64100 Merge pull request #1528 from TriliumNext/renovate/mermaid-11.x
fix(deps): update dependency mermaid to v11.6.0
2025-03-26 22:31:42 +02:00
Adorian Doran
cdcfab1011 style(next)/scrollbars: tweak size 2025-03-26 19:47:37 +02:00
Elian Doran
b95dca71db Merge branch 'develop' into renovate/mermaid-11.x 2025-03-26 19:34:55 +02:00
Adorian Doran
733293c09a Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-26 19:33:13 +02:00
Adorian Doran
dcd64554eb style(next): fix Firefox scrollbar styles overriding WebKit scrollbar styles 2025-03-26 19:33:11 +02:00
Elian Doran
84d75c3ee8 Merge pull request #1487 from TriliumNext/tray
Fix tray exception when multiple windows
2025-03-26 19:32:22 +02:00
Elian Doran
51913ecccf Merge pull request #1520 from TriliumNext/renovate/electron-forge-monorepo
chore(deps): update electron-forge monorepo to v7.8.0
2025-03-26 19:16:54 +02:00
Adorian Doran
40e990d39a Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-26 19:15:32 +02:00
Adorian Doran
be9b19d81c style(next): improve CSS formatting 2025-03-26 19:15:29 +02:00
--global
4b1551f5ec Merge branch 'develop' of github.com:TriliumNext/Notes into develop 2025-03-26 19:11:13 +02:00
--global
fd0018677c test(i18n): add refresh button click after language change 2025-03-26 19:11:07 +02:00
Adorian Doran
4b9ea651a1 style(next): restyle Firefox scrollbars 2025-03-26 19:06:22 +02:00
--global
e85b7f5e79 chore(vscode): add playwright to recommendations 2025-03-26 18:56:28 +02:00
Adorian Doran
c2d917b926 style(next): restyle WebKit scrollbars 2025-03-26 18:53:17 +02:00
--global
0cedd697cc fix(electron): not starting on an empty DB 2025-03-26 18:41:36 +02:00
Jin
647226858d feat: 🎸 Disable MFA on electron instance 2025-03-26 11:04:04 +01:00
Jin
0741c8546f feat: 🎸 fix electron login logic 2025-03-26 10:58:34 +01:00
Jin
347c644f23 Merge branch 'develop' into feature/MFA 2025-03-26 10:48:16 +01:00
Panagiotis Papadopoulos
0b428035ae build(cleanupNodeModules): move removal of elements to its own function
also added a logging function for debugging purposes
2025-03-26 09:48:06 +01:00
Panagiotis Papadopoulos
51f2e23c2f build(cleanupNodeModules): delete .bin folder
this is only needed for executing package scripts -> which we don't do in production

fixes #1499
2025-03-26 09:28:50 +01:00
Panagiotis Papadopoulos
1528703ed9 build(cleanupNodeModules): add some minimalistic logging 2025-03-26 09:26:22 +01:00
Panagiotis Papadopoulos
1150f78b15 build(cleanupNodeModules): use path.join and basePath for extraFoldersDelete 2025-03-26 09:18:16 +01:00
Panagiotis Papadopoulos
6fe23f9a13 chore(cleanupNodeModules): remove commented out paths
extra note on mermaid: that should be packed by webpack now, so we just need to move it to devDeps and and we should be good
2025-03-26 09:15:33 +01:00
Panagiotis Papadopoulos
b457fa2e87 chore(cleanupNodeModules): rename nodeDir to nodeModulesContent 2025-03-26 09:12:22 +01:00
Panagiotis Papadopoulos
83da24b38d build(dockerignore): add cleanupNodeModules as exception 2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
57ee61938d build(copy-trilium): delete now unused script
all of its functionality has been "absorbed" by the cross-platform copy-dist and cleanupNodeModules scripts, that can be used for all of our builds now
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
f79b925e49 build(server): use cleanupNodeModules script 2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
3e3344b329 chore(scripts): remove now unneeded electron-forge:prepare 2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
1ceaafa1e8 build: move cleanupNodeModules to its own file
this is necessary, since for Docker and electron-forge, we need to run this as an extra step after copy-dist

for electron-forge: after it is done with its own "pruning", as we otherwise would need to also take care of certain electron related pruning

for Docker: as a last step in the build stage
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
cd8401089d build(copy-trilium): update list of useless deps paths
* image-q/demo -> doesn't exist anymore (and even if it did - previous cleanup step, would've removed this anyways)
* @excalidraw/excalidraw/dist/* -> updated to point to the dev folder
* boxicons -> only fonts and css folders are used, so remove the other ones
* jimp -> updated paths and removed non-existent path

fixing here for historical reasons, next step is to move these over to copy-dist.ts
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
6749d8084b build(copy-dist): add further cleanupNodeModules functionality
deleting of ts and map files from node_modules folder,
adapted from copy-trilium.sh.
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
8275f3c867 build(copy-dist): execute filterableDirs cleanup in one chain 2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
a9643174cc build(copy-dist): add further folders to list of filterableDirs
same as before, but some of the modules use singular/plural, so just check for both
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
6260ea1532 build(copy-dist): add initial cleanupNodeModules functionality
adapted from copy-trilium.sh
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
bee7793d32 build(copy-trilium): remove now unnecessary package.json patching
this is not needed anymore since commit 6b9d8f0d67
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
8feb201d3d build(electron-forge): set prune to false
since we our own more "sophisticated" pruning during copy-dist, we need to set this to false, as otherwise build will fail
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
6fb270e4f8 build(copy-dist): copy over existing node_modules
helps avoiding downloading the packages a 2nd time during our prune stage
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
8977492981 build(copy-dist): move "pruning" to copy-dist from copy-trilium.sh 2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
1640000291 build(build-server): move "build:prepare-dist" call to build-server from copy-trilium
in preparation to get rid of the file altogether - rest of the functionality will be merged into copy-dist.ts
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
17d5fdb4b0 build(copy-dist): get rid of manual node_module copying
this is useless at the moment, as all build processes are running "npm ci --omit=dev" anyways, i.e. they will just install everything remaining again
2025-03-26 08:12:48 +01:00
Panagiotis Papadopoulos
1e713469e7 build(server): bump to latest node v22.14.0 -> fixes EBADENGINE warning
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'node-abi@4.2.0',
npm warn EBADENGINE   required: { node: '>=22.12.0' },
npm warn EBADENGINE   current: { node: 'v20.18.1', npm: '10.8.2' }
npm warn EBADENGINE }
2025-03-26 08:12:22 +01:00
Panagiotis Papadopoulos
b97c28bc13 ci: bump to node v22 -> fixes EBADENGINE warning
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'node-abi@4.2.0',
npm warn EBADENGINE   required: { node: '>=22.12.0' },
npm warn EBADENGINE   current: { node: 'v20.18.1', npm: '10.8.2' }
npm warn EBADENGINE }
2025-03-26 08:10:04 +01:00
Elian Doran
5ec3d58f6f fix(electron): option does not exist 2025-03-26 08:30:56 +02:00
Jin
d010e6cc73 Merge branch 'develop' into feature/MFA 2025-03-26 03:56:53 +01:00
Jin
7024166fc0 feat: 🎸 Add CN translation 2025-03-26 03:55:06 +01:00
Jin
ce053323a9 feat: 🎸 Format code 2025-03-26 03:53:00 +01:00
Jin
e2ea6f96ce feat: 🎸 Add CN translation 2025-03-26 03:51:09 +01:00
Jin
4959dbf126 feat: 🎸 Improve TOTP setting page 2025-03-26 03:22:57 +01:00
renovate[bot]
e0522fcd48 fix(deps): update dependency mermaid to v11.6.0 2025-03-26 02:11:39 +00:00
Jin
979000c5c8 feat: 🎸 Fix recovery key error 2025-03-26 02:55:42 +01:00
Jin
f2a29653b2 feat: 🎸 Fix SSO login 2025-03-26 02:39:29 +01:00
Jin
d4b657e4d8 feat: 🎸 Fix import naming 2025-03-26 02:04:24 +01:00
Jin
4762287d61 feat: 🎸 Remove redundant func 2025-03-26 01:58:54 +01:00
Jin
886e63f128 feat: 🎸 Add SSO login button 2025-03-26 01:48:42 +01:00
Jin
a30695b9fb feat: 🎸 Remove redundant check auth 2025-03-26 01:36:48 +01:00
Jin
e957a17f1c feat: 🎸 Seperate auth check 2025-03-26 00:50:37 +01:00
Jin
083ee5d23b feat: 🎸 Fix TOTP not load correctly 2025-03-26 00:42:19 +01:00
Jin
8f157e04d4 feat: 🎸 Show correct login error to user 2025-03-26 00:13:56 +01:00
Jin
c1ed471403 feat: 🎸 Ask user to login if any MFA configs are changed 2025-03-26 00:04:55 +01:00
Jin
c2a6d517f0 feat: 🎸 Better naming for vars 2025-03-25 23:53:49 +01:00
Jin
1afccb4129 feat: 🎸 Fix app start error with MFA configs 2025-03-25 23:14:25 +01:00
Jin
ae794a562f feat: 🎸 Use config.ini configure 2025-03-25 22:44:59 +01:00
Jin
3fa89b2eba feat: 🎸 Remove unuse gitignore file 2025-03-25 22:32:52 +01:00
Jin
924044ae52 feat: 🎸 Remove dotenv dep 2025-03-25 22:31:07 +01:00
Jin
94cd54f17e feat: 🎸 Use ini file to configure MFA 2025-03-25 22:30:14 +01:00
Jin
8d7339b50a feat: 🎸 Use i18n for text, remove unused vars 2025-03-25 21:00:32 +01:00
Elian Doran
5148ce64ae chore(i18n): translate missing Romanian messages 2025-03-25 21:51:40 +02:00
Elian Doran
03fd34eeb0 feat(settings/i18n): dedicated restart button 2025-03-25 21:48:02 +02:00
Elian Doran
e408cc5b10 feat(settings/i18n): hide formatting locale on non-electron 2025-03-25 21:40:35 +02:00
Elian Doran
f0b4acd15a style(settings): present i18n settings in a different fahsion 2025-03-25 21:23:32 +02:00
Elian Doran
90794fed88 fix(electron): wrong value for --lang 2025-03-25 20:26:21 +02:00
Elian Doran
ab58671625 feat(options): restart when setting locale 2025-03-25 20:15:39 +02:00
Elian Doran
a5a7a30cd5 feat(electron): respect formatting locale 2025-03-25 20:10:19 +02:00
Elian Doran
45208c8039 chore(i18n): define electron locales for all the supported languages 2025-03-25 19:59:05 +02:00
Elian Doran
b923a23d95 feat(settings): make the formatting locale value adjustable 2025-03-25 19:56:07 +02:00
Elian Doran
c4559749f1 feat(settings): display option to adjust formatting locale 2025-03-25 19:48:07 +02:00
Elian Doran
73fc7304c7 Merge branch 'develop' into renovate/electron-forge-monorepo 2025-03-25 19:08:50 +02:00
Elian Doran
90ab31329e Merge pull request #1507 from TriliumNext/feature/windows_signing_v3
Windows Signing
2025-03-25 17:51:12 +02:00
Elian Doran
ec7b645d36 Merge pull request #1516 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.13
2025-03-25 11:53:07 +02:00
Elian Doran
3dbce19301 Merge pull request #1519 from TriliumNext/renovate/typescript-eslint-monorepo
chore(deps): update dependency typescript-eslint to v8.28.0
2025-03-25 11:52:52 +02:00
renovate[bot]
4aa834b23a chore(deps): update dependency @types/node to v22.13.13 2025-03-25 08:51:39 +00:00
Elian Doran
efb0bf9e21 Merge branch 'develop' into renovate/typescript-eslint-monorepo 2025-03-25 10:50:24 +02:00
Elian Doran
19287f6474 Merge pull request #1517 from TriliumNext/renovate/react-monorepo
chore(deps): update dependency @types/react to v18.3.20
2025-03-25 10:49:45 +02:00
Elian Doran
9506d0774e Merge pull request #1518 from TriliumNext/renovate/supertest-6.x
chore(deps): update dependency @types/supertest to v6.0.3
2025-03-25 10:49:31 +02:00
Elian Doran
269cfc4689 feat(ci): trigger on renovate electron forge 2025-03-25 10:48:19 +02:00
Elian Doran
d0549ebdf9 Merge branch 'develop' into feature/windows_signing_v3 2025-03-25 10:40:48 +02:00
renovate[bot]
9b96cb61cc chore(deps): update electron-forge monorepo to v7.8.0 2025-03-25 02:59:03 +00:00
renovate[bot]
220bcbd12c chore(deps): update dependency typescript-eslint to v8.28.0 2025-03-25 02:58:48 +00:00
renovate[bot]
042172cd53 chore(deps): update dependency @types/supertest to v6.0.3 2025-03-25 02:58:33 +00:00
renovate[bot]
19389e4ea0 chore(deps): update dependency @types/react to v18.3.20 2025-03-25 02:58:22 +00:00
Elian Doran
bb1143e582 feat(note_icon): disable in note source (closes #1377) 2025-03-24 22:57:56 +02:00
Elian Doran
4ac57c6b46 fix(client): note icon not hiding after switching notes (closes #964) 2025-03-24 19:42:23 +02:00
Elian Doran
06e1b0f720 fix(client): tooltip overlapping with CKEditor pane (closes #844) 2025-03-24 19:36:42 +02:00
Elian Doran
0686c81a81 Merge pull request #1509 from TriliumNext/renovate/leaflet-1.x
chore(deps): update dependency @types/leaflet to v1.9.17
2025-03-24 19:25:30 +02:00
Elian Doran
76550b761e Merge pull request #1510 from TriliumNext/renovate/rollup-4.x-lockfile
chore(deps): update dependency rollup to v4.37.0
2025-03-24 19:25:08 +02:00
Elian Doran
9108ea9b8a fix(electron): disable the creation of desktop icon at runtime (closes #1488) 2025-03-24 19:21:04 +02:00
Elian Doran
b0e584924b fix(eslint): disable linting of TypeScript due to types (closes #1503) 2025-03-24 19:17:54 +02:00
Adorian Doran
2c694fe5d7 style(next): remove useless CSS code 2025-03-24 19:13:28 +02:00
Elian Doran
a7d6bf1bd8 feat(forge): match name for artifacts 2025-03-24 19:10:29 +02:00
Elian Doran
4108f7f353 chore(forge): ignore certain artifacts 2025-03-24 19:04:38 +02:00
Adorian Doran
2e15c926c5 style(next)/floating buttons/show table of contents: fix the rounded corners being placed on the wrong side 2025-03-24 18:42:08 +02:00
Adorian Doran
7a2eb81a81 style(next)/floating buttons: make sure the container will have a consistent height 2025-03-24 18:19:28 +02:00
Elian Doran
6f26f4d798 fix(forge): allow local building by ignoring the signing options 2025-03-24 17:53:04 +02:00
Elian Doran
9aef24eecc chore(ci): remove unnecessary extension input 2025-03-24 17:52:01 +02:00
Elian Doran
3e14ffe1e7 fix(test): flaky test due to concurrency 2025-03-24 17:42:38 +02:00
Adorian Doran
e0007f7578 style(next)/floating buttons/backlink counter: fix rounded corners on hover 2025-03-24 17:34:33 +02:00
Elian Doran
04a8bb94b6 fix(ci): wrong runner for signing 2025-03-24 17:32:14 +02:00
Elian Doran
c25d42cf5d chore(ci): solve issues after review 2025-03-24 17:30:37 +02:00
Adorian Doran
3159b19c46 style(next)/floating buttons/backlink counter: improve the appearance of the dropdown panel 2025-03-24 17:30:35 +02:00
Elian Doran
9f3fee2d06 chore(ci): remove now redundant input 2025-03-24 17:15:46 +02:00
Elian Doran
2045865df2 chore(ci): add back all platforms 2025-03-24 17:14:22 +02:00
Elian Doran
3acb5dad30 refactor(ci): remove redundant main workflow 2025-03-24 17:13:08 +02:00
Elian Doran
6a2818cea6 chore(ci): define forge_platform everywhere 2025-03-24 17:12:11 +02:00
Elian Doran
d942daea94 chore(ci): customize shell per platform 2025-03-24 17:10:19 +02:00
Adorian Doran
283b8e9bc8 style(next)/floating buttons/backlink counter: fix the dropdown not showing up 2025-03-24 17:05:09 +02:00
Elian Doran
9aaada3f6e refactor(forge): deduplicate windows signing configuration 2025-03-24 17:04:22 +02:00
Adorian Doran
8cc7d02f36 client: add a CSS class to facilitate identifying visible widgets 2025-03-24 17:00:52 +02:00
Elian Doran
34043a8a70 feat(signing): use environment variables for the executable path 2025-03-24 17:00:37 +02:00
Elian Doran
3413c5e401 fix(nightly): double .zip in name 2025-03-24 16:55:47 +02:00
Elian Doran
d4e8d9e942 fix(docker): missing sign windows script 2025-03-24 16:55:39 +02:00
Elian Doran
308632ea51 chore(ci): re-enable Windows signing logs 2025-03-24 13:30:37 +02:00
Elian Doran
18a5a55384 chore(ci): remove debug logs 2025-03-24 12:42:01 +02:00
Elian Doran
d5a8387c06 Revert "chore(ci): try to use basic sign tool config"
This reverts commit 53860c4885.
2025-03-24 12:41:38 +02:00
Elian Doran
53860c4885 chore(ci): try to use basic sign tool config 2025-03-24 12:15:15 +02:00
Elian Doran
6f54ac7446 chore(ci): change signing log 2025-03-24 12:05:46 +02:00
Elian Doran
10d8cd95a6 chore(ci): enable windows installer logs 2025-03-24 12:05:34 +02:00
Elian Doran
58e9c7e389 feat(ci): pass signing to squirrel 2025-03-24 11:21:31 +02:00
Elian Doran
bfdb3e2add fix(ci): double trigger for nightly 2025-03-24 09:25:19 +02:00
Elian Doran
ad8b5c7c9d fix(ci): path for hook module script 2025-03-24 08:59:46 +02:00
renovate[bot]
728d2ccfaf chore(deps): update dependency rollup to v4.37.0 2025-03-24 01:55:36 +00:00
renovate[bot]
cb7de2430d chore(deps): update dependency @types/leaflet to v1.9.17 2025-03-24 01:55:27 +00:00
Elian Doran
40f4fdab47 feat(ci): set up signing hook 2025-03-23 23:22:22 +02:00
Elian Doran
ad0f844681 chore(ci): use signing runner 2025-03-23 23:20:13 +02:00
Elian Doran
dd26762b1f feat(ci): upload test artifacts for nightly build 2025-03-23 23:17:54 +02:00
Elian Doran
5d2ea4337c fix(ci): use right directory for artifact gathering 2025-03-23 23:08:02 +02:00
Elian Doran
fae9a1f796 chore(ci): use electron-forge hook for gathering artifacts 2025-03-23 23:06:41 +02:00
Elian Doran
a709f68af9 chore(ci): set up node modules 2025-03-23 22:47:59 +02:00
Elian Doran
8e2a95b5c4 chore(ci): use different way of specifying app dir pt. 2 2025-03-23 22:41:26 +02:00
Elian Doran
b4dc493a5f chore(ci): use different way of specifying app dir 2025-03-23 22:12:31 +02:00
Elian Doran
ab927ad885 chore(ci): set up npm ci again 2025-03-23 21:55:48 +02:00
Elian Doran
d128e9df25 chore(ci): run with debug 2025-03-23 21:48:40 +02:00
Elian Doran
9358f90b48 chore(ci): revert change 2025-03-23 21:41:27 +02:00
Elian Doran
a13c9790bd chore(ci): try running npm i at build step 2025-03-23 21:35:11 +02:00
Elian Doran
c477e728ea chore(ci): define forge platform at workflow level 2025-03-23 21:14:51 +02:00
Elian Doran
98013bc725 chore(ci): use cmd 2025-03-23 21:10:55 +02:00
Elian Doran
c50a67f36b chore(ci): remove server build temporarily 2025-03-23 21:02:37 +02:00
Elian Doran
d77b3a07e2 chore(ci): remove unnecessary shell 2025-03-23 21:02:16 +02:00
Elian Doran
89efc55d52 chore(ci): trigger windows only for now 2025-03-23 21:00:37 +02:00
Elian Doran
6aee38337e fix(mobile): width on tablet view 2025-03-23 20:03:24 +02:00
Elian Doran
6312bd8817 Merge pull request #1384 from TriliumNext/chore_lint-share
chore: fix lint issues in `src/share`
2025-03-23 13:20:50 +02:00
Elian Doran
8f25d4c810 Merge pull request #1500 from TriliumNext/revert-1495-renovate/apple-actions-import-codesign-certs-4.x
Revert "chore(deps): update apple-actions/import-codesign-certs action to v4"
2025-03-23 12:39:40 +02:00
Elian Doran
3173062f48 Revert "chore(deps): update apple-actions/import-codesign-certs action to v4" 2025-03-23 12:29:34 +02:00
Elian Doran
f341bb3547 feat(ci): trigger nightly without publish on build-electron change 2025-03-23 12:29:13 +02:00
Elian Doran
d52ca626e9 Merge branch 'develop' into chore_lint-share 2025-03-23 12:13:22 +02:00
Elian Doran
27875c4622 fix(e2e): broken after change in Mermaid 2025-03-23 12:10:11 +02:00
Elian Doran
613a7d72ad Merge pull request #1480 from jshprentz/develop
Add {isoMonth} month pattern to day notes
2025-03-23 09:53:40 +02:00
Elian Doran
f815420d1f Merge pull request #1493 from TriliumNext/renovate/eslint-monorepo
chore(deps): update eslint monorepo to v9.23.0
2025-03-23 09:31:10 +02:00
Elian Doran
0994e33933 Merge pull request #1494 from TriliumNext/renovate/eslint-linter-browserify-9.x
fix(deps): update dependency eslint-linter-browserify to v9.23.0
2025-03-23 09:29:07 +02:00
Elian Doran
be2b8d2080 Merge pull request #1495 from TriliumNext/renovate/apple-actions-import-codesign-certs-4.x
chore(deps): update apple-actions/import-codesign-certs action to v4
2025-03-23 09:28:28 +02:00
SiriusXT
87c70cb46e Fixed focusing on old windows when opening new windows from tray 2025-03-23 10:44:01 +08:00
Elian Doran
4af586e237 Merge branch 'develop' into renovate/eslint-monorepo 2025-03-23 00:28:03 +02:00
Elian Doran
d2406a7574 Merge branch 'develop' into renovate/eslint-linter-browserify-9.x 2025-03-23 00:27:51 +02:00
Elian Doran
25c66e7c57 Merge branch 'develop' into renovate/apple-actions-import-codesign-certs-4.x 2025-03-23 00:27:37 +02:00
Elian Doran
0313b4b9c9 Merge pull request #1492 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.11
2025-03-23 00:27:15 +02:00
Elian Doran
f5a4acc097 Merge branch 'develop' into tray 2025-03-22 19:00:06 +02:00
Elian Doran
bc41deea14 Merge branch 'develop' into renovate/node-22.x 2025-03-22 18:59:48 +02:00
Elian Doran
c97f6da615 Merge pull request #1498 from hasecilu/i18n/Spanish
chore(i18n): update Spanish translation
2025-03-22 18:43:32 +02:00
hasecilu
81e250f5c5 chore(i18n): update Spanish translation 2025-03-22 09:56:22 -06:00
Jin
f42ecb2e83 Merge branch 'develop' into feature/MFA 2025-03-22 15:56:16 +01:00
Jin
e3fb871e4f feat: 🎸 Reformat MFA option page 2025-03-22 15:55:14 +01:00
Elian Doran
ccb98d69fa fix(mindmap): pane resizer not always working 2025-03-22 16:47:01 +02:00
Elian Doran
ab4e9db864 feat(mindmap): add PNG export 2025-03-22 16:35:07 +02:00
Elian Doran
67bfeda3d9 chore(svg_export): change icon 2025-03-22 16:33:00 +02:00
Elian Doran
7cc8dd082d feat(mermaid): enable export as PNG (closes #536) 2025-03-22 16:30:19 +02:00
Jin
717ad3b97d feat: 🎸 Port MFA to ts 2025-03-22 14:56:17 +01:00
Elian Doran
047c4dc4ca fix(mermaid): not scrolling up properly (closes #282) 2025-03-22 15:55:55 +02:00
Elian Doran
9e75c32ded fix(mermaid): enforce vertical layout on mobile 2025-03-22 15:51:21 +02:00
Elian Doran
5282f9f0bf feat(mermaid): set right mime type 2025-03-22 15:48:03 +02:00
Elian Doran
858ad91708 feat(import/single): mermaid with .mmd extension 2025-03-22 15:45:36 +02:00
Jin
54a5f8164a feat: 🎸 Fix option defintions 2025-03-22 14:43:32 +01:00
Elian Doran
3dae771e90 feat(import/single): mermaid with .mermaid extension 2025-03-22 15:41:56 +02:00
Jin
c3d3ab4330 Merge branch 'develop' into feature/MFA 2025-03-22 14:38:22 +01:00
Jin
9d49546bc9 feat: 🎸 Fix ts compile error 2025-03-22 14:35:37 +01:00
Elian Doran
16cbd2f793 feat(export/single): mermaid with right extension and MIME 2025-03-22 15:22:55 +02:00
Elian Doran
6ab820f172 refactor(export/single): make note type mapping testable 2025-03-22 15:20:58 +02:00
Elian Doran
60d3bafc8e fix(types): build errors due to CodeMirror opts 2025-03-22 15:04:31 +02:00
Elian Doran
7c9a7c9ff6 refactor(mermaid): move mermaid config to service 2025-03-22 15:02:04 +02:00
Elian Doran
1463411ad1 refactor(mermaid): stop using deprecated APIs 2025-03-22 14:57:11 +02:00
Elian Doran
26fa1ec420 fix(text/mermaid): not rendering due to webpack change 2025-03-22 14:51:13 +02:00
Elian Doran
985b1b7fce chore(mermaid): remove redundant message 2025-03-22 14:42:07 +02:00
Elian Doran
87209285df feat(mermaid): use admonition style for error messages 2025-03-22 14:39:43 +02:00
Elian Doran
5bea0680fb style(mermaid): preserve whitespace in error messages 2025-03-22 14:36:05 +02:00
Elian Doran
5a72d66321 feat(mermaid): recenter even when under error 2025-03-22 14:34:42 +02:00
Elian Doran
82cb31da53 style(mermaid): vertical layout for errors 2025-03-22 14:15:05 +02:00
Elian Doran
72c024fc26 fix(mermaid): toggle read-only for protected note 2025-03-22 14:12:24 +02:00
Elian Doran
b777e916c4 feat(mermaid): hide layout switcher if in readonly mode 2025-03-22 14:10:38 +02:00
Elian Doran
3bbb2c3e80 feat(mermaid): save SVG attachment only when needed 2025-03-22 13:56:29 +02:00
Jin
c8164c81be feat: 🎸 fix recovery_codes error 2025-03-22 12:47:49 +01:00
Jin
b320553d18 feat: 🎸 fix open_id error 2025-03-22 12:46:59 +01:00
Jin
0871d16fbc feat: 🎸 remove conflict code 2025-03-22 12:41:22 +01:00
Elian Doran
fd46cd7529 feat(mermaid): custom zoom buttons 2025-03-22 13:36:11 +02:00
Jin
fdc10d0120 feat: 🎸 fix ts error 2025-03-22 12:35:37 +01:00
Jin
8df1e3263b Merge branch 'develop' into feature/MFA 2025-03-22 12:35:00 +01:00
Elian Doran
77fbeb4351 refactor(note_map): extract floating button style 2025-03-22 13:06:00 +02:00
Elian Doran
68b3c06c95 feat(mermaid): reintroduce editability basic widget 2025-03-22 12:58:36 +02:00
Elian Doran
2bbd9a4362 fix(mermaid): read-only button shown in view source 2025-03-22 12:57:32 +02:00
Elian Doran
831cd19d0b refactor(client): implement read-only toggle floating button 2025-03-22 12:55:30 +02:00
Elian Doran
cd6ef4d3ab refactor(client): move edit button to floating buttons dir 2025-03-22 12:32:06 +02:00
Elian Doran
8996a56680 feat(mermaid): support readonly mode 2025-03-22 12:23:50 +02:00
Elian Doran
ef9bec9dd4 feat(mermaid): custom title for switch layout button 2025-03-22 10:48:12 +02:00
Elian Doran
b54603b7d7 feat(mermaid): change icon based on new layout 2025-03-22 10:43:24 +02:00
Elian Doran
afa865765b fix(mermaid): split on vertical layout 2025-03-22 10:36:54 +02:00
Elian Doran
4860594758 feat(mermaid): react to layout change immediately 2025-03-22 10:34:22 +02:00
Elian Doran
cf874b5ee8 feat(mermaid): add basic support for vertical layout 2025-03-22 10:27:42 +02:00
renovate[bot]
007817bbdb chore(deps): update apple-actions/import-codesign-certs action to v4 2025-03-22 01:59:15 +00:00
renovate[bot]
88e0aec3d6 fix(deps): update dependency eslint-linter-browserify to v9.23.0 2025-03-22 01:59:08 +00:00
renovate[bot]
cc9b0987b2 chore(deps): update eslint monorepo to v9.23.0 2025-03-22 01:58:58 +00:00
renovate[bot]
e8242e87fb chore(deps): update dependency @types/node to v22.13.11 2025-03-22 01:58:47 +00:00
Elian Doran
91dca2df35 feat(mermaid): disable line wrapping by default 2025-03-22 02:36:47 +02:00
Elian Doran
acf6d9dc4f refactor(split_editor): allow different attachment name 2025-03-22 02:21:24 +02:00
Elian Doran
98e4d563ad chore(mermaid): remove old widget 2025-03-22 02:15:09 +02:00
Elian Doran
373c0799fe chore(mermaid): disable linter for now 2025-03-22 02:15:09 +02:00
Elian Doran
9985e9b623 feat(mermaid): add visual indicator for preview on error 2025-03-22 02:15:09 +02:00
Elian Doran
f42a89a548 feat(mermaid): add an error display continer 2025-03-22 02:15:09 +02:00
Elian Doran
d4cd550b7a feat(linter/mermaid): improve parsing of messages 2025-03-22 02:15:09 +02:00
Elian Doran
8b08e67fdc feat(linter/mermaid): better handling of zero position 2025-03-22 02:15:09 +02:00
Elian Doran
5d8ac3b9f7 feat(test): add test for mermaid linter 2025-03-22 02:15:09 +02:00
Elian Doran
44db1545a1 feat(mermaid): start implementing a basic linter 2025-03-22 02:15:09 +02:00
Elian Doran
c416fca88a fix(mermaid): bring back export as SVG 2025-03-22 02:15:09 +02:00
Elian Doran
1fb2b5341d fix(mermaid): saving of attachment 2025-03-22 02:15:09 +02:00
Elian Doran
b8a560354f refactor(mermaid): recenter on new note 2025-03-22 02:15:09 +02:00
Elian Doran
28c51cb38a refactor(client): use webpack for mermaid 2025-03-22 02:15:09 +02:00
Elian Doran
f4d5b9fc29 feat(mermaid): swap preview and content 2025-03-22 02:15:09 +02:00
Elian Doran
8cab2aec0f fix(mermaid): bring back ELK rendering 2025-03-22 02:15:09 +02:00
Elian Doran
2b19675d1a feat(mermaid): smoother split drag 2025-03-22 02:15:09 +02:00
Elian Doran
ae18b4b634 fix(mermaid): bring back auto resize on drag 2025-03-22 02:15:09 +02:00
Elian Doran
cbc6efdad2 fix(mermaid): bring back pan/zoom 2025-03-22 02:15:09 +02:00
Elian Doran
e0a8b64b4d fix(mermaid): refresh when editing 2025-03-22 02:15:09 +02:00
Elian Doran
67ab91267d fix(mermaid): bring back rendering 2025-03-22 02:15:09 +02:00
Elian Doran
8952ff512f feat(split_editor): make the two panes resizable 2025-03-22 02:15:09 +02:00
Elian Doran
395d76a156 feat(mermaid): basic horizontal layout 2025-03-22 02:15:09 +02:00
Elian Doran
56da5f7761 refactor(client/ts): start implementing experimental split type view for mermaid 2025-03-22 02:15:09 +02:00
Elian Doran
7a16774cdc feat(mermaid): make diagram full width for pan/zoom purposes 2025-03-22 02:15:09 +02:00
Adorian Doran
592a7fe771 style(next)/floating buttons: update the highlight animation 2025-03-22 01:28:53 +02:00
Adorian Doran
4292d67b95 style(next)/floating buttons: tweak 2025-03-22 01:08:57 +02:00
Adorian Doran
44419b7cb5 style/floating buttons: change some icons 2025-03-22 01:08:30 +02:00
Adorian Doran
eab644248b style(next): use the new floating buttons style for the geo map notes as well 2025-03-22 00:04:02 +02:00
Adorian Doran
1299e0c855 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-21 20:21:46 +02:00
Adorian Doran
058983e98d style(next)/floating buttons: tweak 2025-03-21 20:21:44 +02:00
Elian Doran
772d07a60f Merge pull request #1466 from TriliumNext/feature/port_ts
client: port ts
2025-03-21 18:49:52 +02:00
Elian Doran
eab10acc98 Merge branch 'develop' into feature/port_ts 2025-03-21 18:39:33 +02:00
Elian Doran
7008acf511 chore(client/ts): remove check_ts_progress script 2025-03-21 18:16:37 +02:00
Elian Doran
c2a7b92660 chore(client/ts): port desktop_layout 2025-03-21 18:14:37 +02:00
Elian Doran
8e3a75ad57 chore(client/ts): reduce log level for syntax highlight widget 2025-03-21 17:48:54 +02:00
Elian Doran
b876f98d69 fix(client/ts): fix rest of build errors 2025-03-21 17:39:18 +02:00
Elian Doran
1ab87be0e6 chore(client/ts): fix errors in editable_text 2025-03-21 17:34:39 +02:00
Elian Doran
ebbf29b1a5 chore(client/ts): port syntax_highlight 2025-03-21 15:50:58 +02:00
Elian Doran
08df7e6484 Merge pull request #1481 from TriliumNext/renovate/electron-35.x
chore(deps): update dependency electron to v35.0.3
2025-03-21 13:43:30 +02:00
Elian Doran
7277c10f38 Merge pull request #1482 from TriliumNext/renovate/typedoc-0.x
chore(deps): update dependency typedoc to v0.28.1
2025-03-21 13:43:06 +02:00
Elian Doran
6569a72bc4 Merge pull request #1483 from TriliumNext/renovate/codemirror-5.x
fix(deps): update dependency codemirror to v5.65.19
2025-03-21 13:42:49 +02:00
Elian Doran
cb630337ca Merge pull request #1484 from TriliumNext/renovate/force-graph-1.x
fix(deps): update dependency force-graph to v1.49.5
2025-03-21 13:42:24 +02:00
Elian Doran
60d5497a6c Merge pull request #1485 from TriliumNext/renovate/multer-1.x
fix(deps): update dependency multer to v1.4.5-lts.2
2025-03-21 13:41:48 +02:00
Elian Doran
98d3b54c5e Merge pull request #1486 from TriliumNext/renovate/supertest-7.x
chore(deps): update dependency supertest to v7.1.0
2025-03-21 13:41:11 +02:00
SiriusXT
da59dd2ece Add Chinese translation 2025-03-21 13:56:21 +08:00
SiriusXT
21b17889ac Merge branch 'develop' into tray 2025-03-21 11:12:03 +08:00
SiriusXT
be2064fbf0 Fix tray exception when multiple windows 2025-03-21 11:08:33 +08:00
renovate[bot]
90cdb5d641 chore(deps): update dependency supertest to v7.1.0 2025-03-21 02:40:58 +00:00
renovate[bot]
0e8cd3b4ba fix(deps): update dependency multer to v1.4.5-lts.2 2025-03-21 02:40:48 +00:00
renovate[bot]
1b5d665fbc fix(deps): update dependency force-graph to v1.49.5 2025-03-21 02:40:38 +00:00
renovate[bot]
8755c84dea fix(deps): update dependency codemirror to v5.65.19 2025-03-21 02:40:27 +00:00
renovate[bot]
f9878962b8 chore(deps): update dependency typedoc to v0.28.1 2025-03-21 02:40:17 +00:00
renovate[bot]
cf70dd0b4f chore(deps): update dependency electron to v35.0.3 2025-03-21 02:40:05 +00:00
Adorian Doran
6d82905ad4 style(next)/floating buttons: tweak 2025-03-21 04:12:12 +02:00
Adorian Doran
99bd803d81 style(next)/floating buttons: tweak the separator color 2025-03-21 03:40:07 +02:00
Adorian Doran
6b71efbfd3 style(next): restyle the floating buttons 2025-03-21 03:17:43 +02:00
Joel Shprentz
c1e8542f74 Correct placeholder name in documentation 2025-03-21 00:59:45 +00:00
Joel Shprentz
5f26a503af In month note title patterns, replace {isoMonth} with e.g. "2025-03" for March 2025. 2025-03-20 22:59:20 +00:00
Elian Doran
5b82b750dc chore(client/ts): port editable_text 2025-03-20 23:42:32 +02:00
Elian Doran
1f69259a93 chore(client/ts): port abstract_text_type_widget 2025-03-20 23:09:06 +02:00
Adorian Doran
7202afab8e style(next)/options: add a gap between consecutive buttons 2025-03-20 22:22:39 +02:00
Elian Doran
b44bb4053c refactor(deps): use webpack for jsplumb & panzoom 2025-03-20 21:51:03 +02:00
Elian Doran
3047957239 chore(client/ts): port type_widgets/relation_map 2025-03-20 21:07:10 +02:00
Adorian Doran
4cb866c0e6 client/options/sync: reorder the input fields 2025-03-20 19:59:13 +02:00
Adorian Doran
480292dc01 style(next)/options/appearance/fonts: refactor input groups 2025-03-20 19:02:46 +02:00
Adorian Doran
b705e24a97 style(next): tweak number input groups 2025-03-20 18:58:19 +02:00
Elian Doran
e682f01c47 chore(client/ts): port promoted_attributes 2025-03-20 18:39:04 +02:00
Elian Doran
c27d5afdf2 chore(client/ts): port inherited_attribute_list 2025-03-20 18:28:37 +02:00
Elian Doran
bd06d1d7b2 chore(client/ts): port image_properties 2025-03-20 18:25:17 +02:00
Adorian Doran
861f1efa5b Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-20 18:22:44 +02:00
Elian Doran
a2b6bb7ecf chore(client/ts): port file_properties 2025-03-20 18:22:42 +02:00
Adorian Doran
0086d645ef client/options/other/snapshot limit: specify the measurement unit inside of the input field 2025-03-20 18:22:35 +02:00
Elian Doran
af0db5d508 style(next): fix regression in horizontal mica 2025-03-20 18:17:15 +02:00
Adorian Doran
113b42f32d Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-20 18:04:39 +02:00
Adorian Doran
e8a745c11a client/options/sync/timeout: specify the measurement unit inside of the input field 2025-03-20 18:04:36 +02:00
Elian Doran
947dea5e3a Merge pull request #1343 from TriliumNext/renovate/electron-35.x
chore(deps): update dependency electron to v35
2025-03-20 18:03:11 +02:00
Elian Doran
48e9e30efe Merge branch 'feature/port_ts' of ssh://github.com/TriliumNext/Notes into feature/port_ts 2025-03-20 17:57:16 +02:00
Adorian Doran
5e6fc5b183 client/options/images/JPEG quality: specify the measurement unit inside of the input field 2025-03-20 17:55:22 +02:00
Adorian Doran
772b69eebe client/options/images/max dimensions: specify the measurement unit inside of the input field 2025-03-20 17:53:07 +02:00
Adorian Doran
4f3bc20bac client/options/code notes/automatic read-only size: specify the measurement unit inside of the input field 2025-03-20 17:48:40 +02:00
Adorian Doran
65ee564518 client/options/text notes/automatic read-only size: specify the measurement unit inside of the input field 2025-03-20 17:45:22 +02:00
Adorian Doran
de7b7e3d8f client/options/text notes/table of contents: specify the measurement unit inside of the input field 2025-03-20 17:41:30 +02:00
Adorian Doran
bec15fb9c3 client/options/appearance/max content width: specify the measurement unit inside of the input field 2025-03-20 17:34:58 +02:00
Adorian Doran
7288757777 style(next)/options/appearance: tweak font size inputs 2025-03-20 17:23:29 +02:00
Adorian Doran
d189f2b66b Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-20 14:40:44 +02:00
Adorian Doran
57b5e47b5a style(next): reorganize CSS 2025-03-20 14:40:42 +02:00
JYC333
d70cf14947 Merge branch 'develop' into renovate/electron-35.x 2025-03-20 10:56:49 +01:00
Elian Doran
8f6fcee67d chore(client/ts): port import dialog 2025-03-20 10:41:19 +02:00
Elian Doran
3527ab2c5d chore(client/ts): port include dialog 2025-03-20 10:41:19 +02:00
Elian Doran
8d14092a91 chore(client/ts): port more dialogs 2025-03-20 10:41:19 +02:00
Elian Doran
ffa463f1fc chore(client/ts): fix build errors 2025-03-20 10:41:19 +02:00
Elian Doran
7c805eb427 chore(client/ts): port find_in_html/text 2025-03-20 10:41:19 +02:00
Elian Doran
ef59b636b1 client: port ts 2025-03-20 10:41:19 +02:00
Elian Doran
7ea6c97c6f feat(in-app-help): improve code block style 2025-03-20 10:28:24 +02:00
Elian Doran
911e112964 Merge pull request #1470 from TriliumNext/renovate/react-monorepo
chore(deps): update dependency @types/react to v18.3.19
2025-03-20 10:21:57 +02:00
Adorian Doran
5f12ddaa14 style(next): reorganize CSS 2025-03-20 10:20:25 +02:00
Adorian Doran
2191b1b9fd style(next): reorganize CSS 2025-03-20 10:04:05 +02:00
Adorian Doran
431ffa7820 style(next): reorganize CSS 2025-03-20 09:32:22 +02:00
Adorian Doran
ea467c392d Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-20 09:18:43 +02:00
Adorian Doran
f6e0e93629 style(next): reorganize CSS 2025-03-20 09:18:39 +02:00
Elian Doran
7fe594d4ad chore(deps): update mind-elixir to latest (closes #1464) 2025-03-20 09:03:30 +02:00
Elian Doran
6d9c41f524 Merge pull request #1467 from TriliumNext/deps_move-mind-elixir_webpack
deps: bundle mind-elixir with webpack
2025-03-20 08:59:30 +02:00
Elian Doran
3e7d41c738 Merge pull request #1469 from TriliumNext/renovate/express-5.x
chore(deps): update dependency @types/express to v5.0.1
2025-03-20 08:56:36 +02:00
Elian Doran
7fda0dd572 Merge pull request #1474 from TriliumNext/renovate/typescript-eslint-monorepo
chore(deps): update dependency typescript-eslint to v8.27.0
2025-03-20 08:56:02 +02:00
Elian Doran
60a33d8279 Merge pull request #1475 from TriliumNext/renovate/sanitize-html-2.x
fix(deps): update dependency sanitize-html to v2.15.0
2025-03-20 08:55:29 +02:00
Elian Doran
50b9120bdc Merge pull request #1473 from TriliumNext/renovate/axios-1.x
fix(deps): update dependency axios to v1.8.4
2025-03-20 08:55:09 +02:00
Elian Doran
bce4cfe731 chore(turndown-plugin-gfm): fix build warnings 2025-03-20 08:53:01 +02:00
Elian Doran
419d5ffd1b chore(deps): update turndown-plugin-gfm to latest deps 2025-03-20 08:53:01 +02:00
renovate[bot]
b26555604c fix(deps): update dependency sanitize-html to v2.15.0 2025-03-20 02:13:24 +00:00
renovate[bot]
1e5f7ef6dd chore(deps): update dependency typescript-eslint to v8.27.0 2025-03-20 02:13:14 +00:00
renovate[bot]
3b9fcede0d fix(deps): update dependency axios to v1.8.4 2025-03-20 02:12:59 +00:00
renovate[bot]
0ae705b925 chore(deps): update dependency @types/react to v18.3.19 2025-03-20 02:11:14 +00:00
renovate[bot]
49a77790f2 chore(deps): update dependency @types/express to v5.0.1 2025-03-20 02:11:03 +00:00
Adorian Doran
2031882c0d style(next)/jump to note: tweak the modal's padding 2025-03-19 23:38:03 +02:00
Elian Doran
9eec7237de chore(client/ts): port include dialog 2025-03-19 23:27:52 +02:00
Elian Doran
d0e33f8aaa chore(client/ts): port more dialogs 2025-03-19 23:06:16 +02:00
Elian Doran
fac575bd4a Merge remote-tracking branch 'origin/develop' into feature/port_ts 2025-03-19 22:41:08 +02:00
Elian Doran
119bb38062 chore(client/ts): fix build errors 2025-03-19 22:39:49 +02:00
Elian Doran
89d51a9c4f chore(client/ts): port find_in_html/text 2025-03-19 22:00:41 +02:00
Panagiotis Papadopoulos
90d0c859fc chore(mind_map): import node-menu's style.css to allow webpack to bundle it
previously this was loaded from the node_modules folder and was exposed via a static asset path
-> since we got rid of this with the last commit, we need to instead let webpack bundle it "importing" the css here
2025-03-19 21:00:37 +01:00
Panagiotis Papadopoulos
feb9fa03c3 chore(deps): move mind-elixir related packages to devDependencies
webpack takes care of bundling these, so we don't need the modules at runtime anymore
2025-03-19 20:03:24 +01:00
Elian Doran
7f87318f8f Merge pull request #1462 from TriliumNext/port_dialogs
Port dialogs to ts
2025-03-19 20:23:33 +02:00
JYC333
83d6e329ba Merge branch 'develop' into port_dialogs 2025-03-19 19:20:46 +01:00
Elian Doran
d6d08cbb89 chore(deps): update package lock 2025-03-19 20:19:24 +02:00
Elian Doran
68f212a679 refactor(types): unnecessary any 2025-03-19 20:19:24 +02:00
Elian Doran
d0948727df Merge pull request #1457 from TriliumNext/e2e_fix
refactor: 💡 Improve e2e test stability
2025-03-19 20:18:20 +02:00
Elian Doran
716f8ecc17 Merge pull request #1340 from TriliumNext/fix_tab
Fix bug after porting tab manager
2025-03-19 20:17:21 +02:00
Elian Doran
83afecdced Merge branch 'develop' into fix_tab 2025-03-19 20:10:38 +02:00
Elian Doran
80066fd2f5 chore(docs): update meta and sync import/export 2025-03-19 20:06:02 +02:00
Elian Doran
957642caaa fix(build): dependency issue when run under docker 2025-03-19 20:00:22 +02:00
Panagiotis Papadopoulos
33922c52f8 fix(mind_map): fix node-menu visibility
=> rename css class name to match upstream

the class name got changed from ".mind-elixir → .map-container" by upstream via 294c2d5bb0

partially addresses #1464 → this allows us to see the node-menu sidebar again
2025-03-19 18:37:42 +01:00
Elian Doran
0408b3d260 chore(deps): remove @joplin/turndown-plugin-gfm 2025-03-19 19:24:06 +02:00
Elian Doran
a4ae0ba628 chore(build): add turndown-plugin-gfm to copy-dist 2025-03-19 19:23:43 +02:00
Elian Doran
7315d38cb6 Merge remote-tracking branch 'origin/develop' into develop 2025-03-19 18:56:44 +02:00
Elian Doran
18a50c6339 feat(export/markdown): remove joplin table wrapper 2025-03-19 18:54:39 +02:00
Elian Doran
909b7f5d39 chore(docs): remove incorrect # or ~ prefix in calendar view 2025-03-19 18:50:39 +02:00
Elian Doran
f23b45318d fix(export/markdown): fix code in tables 2025-03-19 18:42:40 +02:00
Elian Doran
884c5986ec chore(markdown/export): use in-tree plugin 2025-03-19 18:31:45 +02:00
Adorian Doran
f14c101d6d style(next)/launcher bar: fix the focus outline for the global menu on the vertical layout 2025-03-19 18:26:13 +02:00
Elian Doran
2021c8f751 chore(turndown-plugin-gfm): align with upstream
219d5bcae3
2025-03-19 18:22:20 +02:00
Elian Doran
d3423127d8 Add 'packages/turndown-plugin-gfm/' from commit '0f43299c17108e9508e7e6237369e86f504ea60a'
git-subtree-dir: packages/turndown-plugin-gfm
git-subtree-mainline: ebebdd0b07
git-subtree-split: 0f43299c17
2025-03-19 18:16:20 +02:00
Adorian Doran
c93ac0445e style(next)/launcher bar: use a custom focus rectangle for the global menu button 2025-03-19 18:10:54 +02:00
Adorian Doran
eb13b34429 style(next)/launcher bar: use a custom focus rectangle for buttons 2025-03-19 18:02:58 +02:00
Elian Doran
ebebdd0b07 docs(calendar): mention different views 2025-03-19 18:01:52 +02:00
Elian Doran
be5e2f529f fix(in-app-help): in-app help buttons not pointing to the right page 2025-03-19 17:53:40 +02:00
Adorian Doran
28cb621bea style(next)/launcher bar: tweak the appearance in the horizontal layout 2025-03-19 17:39:38 +02:00
Adorian Doran
f2f5af1c4b style(next)/launcher bar: use distinct theme variables for the vertical / horizontal layouts 2025-03-19 17:30:30 +02:00
Jin
a0c025014c fix: 🐛 Fix right click behavior
Fix the bug that when right click on unactive note and do move and clone
command, it still gonna move and clone the active note
2025-03-19 15:14:17 +01:00
Panagiotis Papadopoulos
20bbb80805 chore(deps): move @fullcalendar related to devDependencies
webpack takes care of bundling these, so we don't need the modules at runtime anymore
2025-03-19 14:47:51 +01:00
Jin
43ef9415d2 refactor: 💡 Port clone_to to ts 2025-03-19 14:27:33 +01:00
Jin
1aa6c17b56 refactor: 💡 Port bulk actions to ts 2025-03-19 14:22:40 +01:00
Jin
91a963fafd refactor: 💡 Port branch prefix to ts 2025-03-19 13:59:36 +01:00
SiriusXT
606e6bcca2 Click the icon to show the window 2025-03-19 15:35:12 +08:00
Jin
49d7fa1735 fix: 🐛 Fix playwright test 2025-03-18 22:01:08 +01:00
Jin
ae1a4b7a80 fix: 🐛 Fix tab empty path behavior 2025-03-18 21:02:20 +01:00
Jin
b18cfb5d20 refactor: 💡 Fix ts error 2025-03-18 21:02:20 +01:00
Jin
e12be14dc9 refactor: 💡 remove redundant code 2025-03-18 21:02:20 +01:00
Jin
0858f531e4 fix: 🐛 can't move a tab to new window 2025-03-18 21:02:20 +01:00
Jin
c9c18146f4 refactor: 💡 refactor serval event names
refactore serval event names to follow the current usage in repo
2025-03-18 21:02:20 +01:00
Jin
a9d8d7d3c5 fix: 🐛 fix wrong triggerEvent usage 2025-03-18 21:02:20 +01:00
Jin
469c2c3ce9 Revert "Revert "port tab manager to ts""
This reverts commit 3855f0e75f.
2025-03-18 21:02:20 +01:00
Elian Doran
96e2cc29e0 fix(mermaid): diagram still displayed on error 2025-03-18 20:43:11 +02:00
Elian Doran
475374a04b feat(mermaid): reduce flicker when editing chart 2025-03-18 20:37:06 +02:00
Elian Doran
b66677720d feat(mermaid): restore pan & zoom when changing chart 2025-03-18 20:35:47 +02:00
Elian Doran
eeb88ea559 refactor(mermaid): deduplicate gutter size constant 2025-03-18 19:57:41 +02:00
Elian Doran
b524f7876a feat(mermaid): add split between diagram and code 2025-03-18 19:35:23 +02:00
Elian Doran
3fe8fede9a fix(mermaid): event leak 2025-03-18 19:03:25 +02:00
Elian Doran
4e81e1e5a8 style(mermaid): redundant margins 2025-03-18 18:36:20 +02:00
Elian Doran
6f15169b18 feat(mermaid): better zoom mechanism (closes #474) 2025-03-18 18:31:22 +02:00
Jin
464084ebf4 refactor: 💡 Improve e2e test stability 2025-03-18 14:17:35 +01:00
Elian Doran
16cc543d59 Merge pull request #1454 from TriliumNext/renovate/helmet-8.x
fix(deps): update dependency helmet to v8.1.0
2025-03-18 09:17:01 +02:00
Elian Doran
165b5ad251 Merge branch 'develop' into renovate/helmet-8.x 2025-03-18 09:06:13 +02:00
Elian Doran
2f42fee9b3 Merge pull request #1452 from TriliumNext/renovate/better-sqlite3-11.x-lockfile
fix(deps): update dependency better-sqlite3 to v11.9.1
2025-03-18 09:05:43 +02:00
Elian Doran
71188ab98d Merge pull request #1440 from TriliumNext/renovate/better-sqlite3-11.x
fix(deps): update dependency better-sqlite3 to v11.9.1
2025-03-18 09:04:13 +02:00
Elian Doran
ab38005817 Merge pull request #1450 from TriliumNext/renovate/playwright-monorepo
chore(deps): update dependency @playwright/test to v1.51.1
2025-03-18 09:03:45 +02:00
Elian Doran
a07b734a91 Merge pull request #1451 from TriliumNext/renovate/vitest-monorepo
chore(deps): update vitest monorepo to v3.0.9
2025-03-18 09:03:20 +02:00
Elian Doran
1e3d7ce5df Merge pull request #1453 from TriliumNext/renovate/sass-1.x
chore(deps): update dependency sass to v1.86.0
2025-03-18 09:02:57 +02:00
Elian Doran
48d987d25d chore(package): get rid of tsyncserver (closes #1455) 2025-03-18 09:01:14 +02:00
renovate[bot]
0cfeeac4e3 fix(deps): update dependency helmet to v8.1.0 2025-03-18 02:55:36 +00:00
renovate[bot]
5ed25cbce7 fix(deps): update dependency better-sqlite3 to v11.9.1 2025-03-18 02:55:29 +00:00
renovate[bot]
ce97d36500 chore(deps): update dependency sass to v1.86.0 2025-03-18 02:55:20 +00:00
renovate[bot]
7ae1f6e02b fix(deps): update dependency better-sqlite3 to v11.9.1 2025-03-18 02:55:10 +00:00
renovate[bot]
611d93cf20 chore(deps): update vitest monorepo to v3.0.9 2025-03-18 02:54:58 +00:00
renovate[bot]
a5fe3788a4 chore(deps): update dependency @playwright/test to v1.51.1 2025-03-18 02:54:43 +00:00
Elian Doran
f68347f92c client: port ts 2025-03-17 22:46:00 +02:00
Elian Doran
4f7f7c460a fix(admonitions): unnecessary right margin 2025-03-17 18:28:32 +02:00
Elian Doran
74064c8d49 fix(calendar): regression in multi-day selection 2025-03-16 21:56:19 +02:00
Elian Doran
e34817d89f feat(docs): update calendar view 2025-03-16 21:31:58 +02:00
Elian Doran
2544294811 feat(calendar): save and restore selected view 2025-03-16 21:20:28 +02:00
Elian Doran
e4bb8cb233 feat(calendar): add year view 2025-03-16 20:57:57 +02:00
Elian Doran
d67dd27568 feat(calendar): add list view & improve styling 2025-03-16 20:53:54 +02:00
Elian Doran
ceddc1b497 feat(calendar): add switch between day/month view 2025-03-16 20:46:59 +02:00
Elian Doran
4d55374784 feat(calendar): add now indicator 2025-03-16 20:40:14 +02:00
Elian Doran
2b24673019 chore(calendar): remove redundant log 2025-03-16 20:38:25 +02:00
Elian Doran
d7e31f94fd feat(calendar): allow dragging timed events 2025-03-16 20:34:05 +02:00
Elian Doran
ccd9bfc1e7 fix(calendar): end date when inserting with time 2025-03-16 20:26:03 +02:00
Elian Doran
55ccbfe1cc fix(calendar): handling of start time/end time 2025-03-16 20:16:52 +02:00
Elian Doran
680729de63 feat(calendar): allow dragging to set the time 2025-03-16 20:09:21 +02:00
Elian Doran
9412cfc19f feat(calendar): support missing end time 2025-03-16 20:00:43 +02:00
Elian Doran
9083c18392 feat(calendar): support start & end date 2025-03-16 19:54:27 +02:00
Elian Doran
7570205059 feat(calendar): set up time grid 2025-03-16 19:46:39 +02:00
Elian Doran
4e7572cf04 chore(client/ts): port more files 2025-03-16 18:31:31 +02:00
Elian Doran
7f4f8bcc75 chore(client/ts): port some more files 2025-03-16 17:31:28 +02:00
Elian Doran
62706a6af2 chore(release): 0.92.4 2025-03-16 16:04:21 +02:00
Elian Doran
79c82b16ce feat(docs): document admonitions 2025-03-16 16:00:10 +02:00
Elian Doran
ba96806fab chore(docs): change order of top level elements 2025-03-16 15:56:59 +02:00
Elian Doran
8c1f4b0014 feat(docs): erase unnecessary attachments 2025-03-16 14:45:21 +02:00
Elian Doran
051cba9a6d fix(docs): content language attachment 2025-03-16 14:41:58 +02:00
Elian Doran
800424405a fix(import/zip): support special characters for attachments 2025-03-16 14:39:27 +02:00
Elian Doran
132a8f7c65 chore(docs): update to match new img handling 2025-03-16 14:05:38 +02:00
Elian Doran
3eaa68da23 feat(import/markdown): maintain consistency with CKEditor for images 2025-03-16 13:58:31 +02:00
Elian Doran
8aaf2367e9 feat(in-app-help): hide notes that are hidden from share 2025-03-16 13:33:07 +02:00
Elian Doran
6f799692e0 feat(in-app-help): render note list 2025-03-16 13:24:34 +02:00
Elian Doran
7df86dd60b Merge pull request #1439 from TriliumNext/renovate/better-sqlite3-11.x-lockfile
fix(deps): update dependency better-sqlite3 to v11.9.0
2025-03-16 12:27:32 +02:00
Elian Doran
dd8818f0ac Merge pull request #1438 from TriliumNext/renovate/typedoc-0.x
chore(deps): update dependency typedoc to v0.28.0
2025-03-16 12:26:22 +02:00
Elian Doran
35dad6ffce Merge pull request #1437 from TriliumNext/renovate/mind-elixir-4.x
fix(deps): update dependency mind-elixir to v4.4.2
2025-03-16 12:24:51 +02:00
renovate[bot]
b13cab411b fix(deps): update dependency better-sqlite3 to v11.9.0 2025-03-16 02:48:25 +00:00
renovate[bot]
09a1227b63 chore(deps): update dependency typedoc to v0.28.0 2025-03-16 02:48:13 +00:00
renovate[bot]
511c69bdb0 fix(deps): update dependency mind-elixir to v4.4.2 2025-03-16 02:48:00 +00:00
Elian Doran
2828b39f48 chore(client/ts): port some more files 2025-03-16 00:45:46 +02:00
Elian Doran
ee5eba193a Merge pull request #1395 from TriliumNext/build_improve-electron-forge_v3
build(electron-forge): improve electron-forge build process
2025-03-15 23:53:56 +02:00
Elian Doran
c1acaa0159 Merge branch 'develop' into build_improve-electron-forge_v3 2025-03-15 23:42:43 +02:00
Elian Doran
bb14667bdf fix(text): PHP, Sass, TypeScript/JSX not rendered in code blocks 2025-03-15 23:12:07 +02:00
Elian Doran
7b1299a758 fix(client): error due to typings 2025-03-15 22:45:13 +02:00
Elian Doran
3c93fdc202 feat(markdown/import): remove space in admonition 2025-03-15 22:39:33 +02:00
Elian Doran
40d233dccc chore(deps): remove no longer necessary html-minifier 2025-03-15 22:20:43 +02:00
Elian Doran
182bccad39 chore(client/ts): port some dialogs 2025-03-15 22:14:21 +02:00
Elian Doran
1bf16bfa22 feat(import/markdown): remove spaces in lists 2025-03-15 21:30:19 +02:00
Elian Doran
30593eeeac refactor(import/markdown): change renderer instead of applying an uglifier 2025-03-15 21:07:02 +02:00
Elian Doran
36fa0af706 fix(docs): update calendar view documentation 2025-03-15 19:44:15 +02:00
Elian Doran
00106580ca fix(admonitions): floating images breaking out 2025-03-15 19:31:45 +02:00
Elian Doran
ac419e8ab4 feat(docs): remove inline warnings and apply admonitions 2025-03-15 18:56:55 +02:00
Elian Doran
2b1bbd4ad3 fix(build): node ABI 2025-03-15 18:37:29 +02:00
Elian Doran
3734f81752 Merge pull request #1433 from TriliumNext/renovate/better-sqlite3-11.x
fix(deps): update dependency better-sqlite3 to v11.9.0
2025-03-15 18:25:56 +02:00
Elian Doran
103894f733 Merge pull request #1432 from TriliumNext/renovate/better-sqlite3-11.x-lockfile
fix(deps): update dependency better-sqlite3 to v11.9.0
2025-03-15 18:24:27 +02:00
Elian Doran
bd9fce0a50 Merge branch 'develop' into renovate/electron-35.x 2025-03-15 18:24:10 +02:00
Elian Doran
c27f13d49f fix(test): one more broken test 2025-03-15 18:18:17 +02:00
Elian Doran
2b966afbe1 fix(test): tests that got broken along the way 2025-03-15 17:51:10 +02:00
Elian Doran
bc8cca664b feat(ci): trigger dev workflow on PR and main branch 2025-03-15 17:14:17 +02:00
Elian Doran
e9a0c68a28 Merge branch 'develop' into build_improve-electron-forge_v3 2025-03-15 17:00:53 +02:00
Elian Doran
103b29d3de Revert "fix(flatpak): try setting different bin to avoid sandbox issue"
This reverts commit a778ec617f.
2025-03-15 13:44:30 +02:00
Panagiotis Papadopoulos
73305a5327 chore(share): remove unused args
addresses https://github.com/TriliumNext/Notes/pull/1384#discussion_r1989045491
2025-03-15 12:31:33 +01:00
Panagiotis Papadopoulos
ae1ef55522 chore(share): remove unused "_next"
addresses https://github.com/TriliumNext/Notes/pull/1384#discussion_r1989044764
2025-03-15 12:27:02 +01:00
Panagiotis Papadopoulos
a5a66a12e2 chore(share): fix tsc nagging about svg not existing on unknown
JSON and TS without using a validation library like zod, is really a bit of a pain in the backside...
2025-03-15 12:19:27 +01:00
Panagiotis Papadopoulos
2a5ac80c05 chore(utils/safeExtractMessageAndStackFromError): add explicit return type to have it as a named tuple 2025-03-15 12:19:27 +01:00
Panagiotis Papadopoulos
c2aae45456 chore(share): fix no-unused-vars and prefer-const lint issues 2025-03-15 12:19:27 +01:00
Panagiotis Papadopoulos
cd9d90323c chore(share): fix @typescript-eslint/no-unused-vars for unused note variable
there's no need to assign a variable, if we never use the value outside of the if check
2025-03-15 12:19:26 +01:00
Panagiotis Papadopoulos
c2b75a6421 chore(share): fix @typescript-eslint/no-unused-vars for "next"
alternative solution, since they are unused and it is the last argument → remove it.
We can still go that route later on though, if we agree upon it.
2025-03-15 12:19:26 +01:00
Panagiotis Papadopoulos
bdc829198c chore(share): use safeExtractMessageAndStackFromError to get rid of "any" in try/catch blocks 2025-03-15 12:19:26 +01:00
Panagiotis Papadopoulos
3b8c645cca Merge branch 'develop' into build_improve-electron-forge_v3 2025-03-15 12:09:52 +01:00
Elian Doran
a778ec617f fix(flatpak): try setting different bin to avoid sandbox issue 2025-03-15 13:01:28 +02:00
Elian Doran
df5939b201 feat(share): add basic support for admonitions 2025-03-15 12:30:07 +02:00
Elian Doran
f841b139d9 fix(admonitions): missing style on mobile 2025-03-15 12:25:48 +02:00
Elian Doran
535233fec8 feat(import/markdown): basic support for admonitions 2025-03-15 11:58:11 +02:00
Elian Doran
6d67e69e2f feat(export/markdown): basic support for admonitions 2025-03-15 11:30:56 +02:00
Elian Doran
b1e3ea4c80 fix(admonition): inserting new admonitions of given type not working 2025-03-15 10:50:04 +02:00
Elian Doran
0f41afe841 fix(tmp): files not cleaned up 2025-03-15 10:34:17 +02:00
Elian Doran
aa6ee3fd60 fix(global_menu): double separator on mobile 2025-03-15 10:34:07 +02:00
Elian Doran
0f28bbb1be feat(server): use custom temporary directory within trilium-data 2025-03-15 10:11:54 +02:00
renovate[bot]
9136f07968 fix(deps): update dependency better-sqlite3 to v11.9.0 2025-03-15 02:52:57 +00:00
renovate[bot]
bd39f38d1a fix(deps): update dependency better-sqlite3 to v11.9.0 2025-03-15 02:52:41 +00:00
Elian Doran
45b7d51db9 fix(zen): missing edit read-only note (closes #1371) 2025-03-15 02:21:00 +02:00
Elian Doran
6c1f631ddb fix(right_pane): buttons disappearing (force min width, closes #1419). 2025-03-15 02:08:46 +02:00
Elian Doran
6acb490df4 feat(editor): move code formatting back to main level (closes #1375) 2025-03-15 02:00:42 +02:00
Elian Doran
598413b56d test(editor): ensure both toolbars have same items 2025-03-15 01:57:53 +02:00
Elian Doran
fd029ac451 fix(ribbon): exception about focusing 2025-03-15 01:40:46 +02:00
Elian Doran
b4ea96b7c7 Merge pull request #1428 from pchemguy/bat-files-fixes
Fixes missing quotes in the `bat` files.
2025-03-15 01:20:37 +02:00
Elian Doran
63ad784021 feat(math/display): allow inserting in display in a list 2025-03-15 01:07:59 +02:00
Elian Doran
4db2aab47f feat(admonition): integrate autoformatting 2025-03-14 23:09:46 +02:00
Elian Doran
9ff1ea4b8f style(admonition): bottom margin for last item 2025-03-14 22:29:24 +02:00
Elian Doran
265d54e44b fix(export): remove non-functional PDF export type 2025-03-14 22:24:10 +02:00
Elian Doran
d9764365cb feat(import): allow importing .excalidraw files 2025-03-14 22:13:31 +02:00
Elian Doran
ad8c1a4a29 feat(export): use right extension for canvas 2025-03-14 22:01:04 +02:00
Elian Doran
abddde910c refactor(canvas): use better approach to disabling export 2025-03-14 21:59:02 +02:00
Elian Doran
3c146cdb20 fix(canvas): unable to export as image (closes #1431) 2025-03-14 21:53:23 +02:00
Elian Doran
ae3f0e0e4b fix(types): add missing dependency 2025-03-14 21:43:37 +02:00
Elian Doran
56d3cd038c fix(deps): add missing dependency 2025-03-14 21:42:59 +02:00
Elian Doran
a2f0896c2a feat(import/markdown): collapse unnecessary whitespace when importing 2025-03-14 19:50:26 +02:00
Elian Doran
c892c95aae chore(docs): collapse unnecessary whitespace 2025-03-14 19:47:08 +02:00
Elian Doran
bbf6ae6aab feat(sql_console): preserve whitespace in columns 2025-03-14 18:53:04 +02:00
Elian Doran
8b0ddf6f9d chore(docs): update markdown documentation with proper keyboard shortcuts 2025-03-14 18:01:53 +02:00
Elian Doran
6b89bffffb feat(export/markdown): preserve keyboard shortcuts 2025-03-14 17:59:50 +02:00
Elian Doran
80421bb220 refactor(server): rename md -> markdown for consistency 2025-03-14 16:25:10 +02:00
PChemGuy
df9a413ef8 Strip trailing backslash
%~dp0 always contains a trailing backslash. The way %DIR% is used in the following line, the trailing slash should be stripped. Alternatively, `%DIR%\\` may be replaced with `%DIR%`, but I would advice against. It is ok to have `%~dp0trilium-data`, which is a conventional pattern. Once %~dp0 is replaced with %DIR% (which is not really warranted here), stripping the trailing slash right after assignment is preferable.
2025-03-14 14:29:37 +03:00
PChemGuy
4971619b69 Missing quotes 2025-03-14 14:19:11 +03:00
Elian Doran
875e65284c feat(docs): use <kbd> for keyboard shortcuts 2025-03-14 12:11:09 +02:00
Elian Doran
806cd7129a fix(docs): rtl image 2025-03-14 11:34:27 +02:00
Elian Doran
c8725ce6ef feat(docs): align documentation with new settings 2025-03-14 11:32:07 +02:00
Elian Doran
0c55b1eee8 feat(editor): rewrite <i> to <em> for compatibility with Markdown 2025-03-14 11:31:46 +02:00
Elian Doran
9b217a5b82 Merge pull request #1366 from rom1dep/calendar_enh_displayed
feat(calendar) improvements
2025-03-14 11:17:44 +02:00
Elian Doran
a50b8c7f0a Merge pull request #1425 from TriliumNext/renovate/mermaid-11.x
fix(deps): update dependency mermaid to v11.5.0
2025-03-14 11:15:51 +02:00
Elian Doran
5efb5fd303 Merge pull request #1424 from TriliumNext/renovate/i18next-24.x
fix(deps): update dependency i18next to v24.2.3
2025-03-14 11:15:12 +02:00
renovate[bot]
2e436cdd46 chore(deps): update dependency electron to v35 2025-03-14 09:14:49 +00:00
Elian Doran
3656b1e0eb Merge pull request #1423 from TriliumNext/renovate/force-graph-1.x
fix(deps): update dependency force-graph to v1.49.4
2025-03-14 11:14:47 +02:00
Elian Doran
b2060799c4 Merge pull request #1422 from TriliumNext/renovate/axios-1.x
fix(deps): update dependency axios to v1.8.3
2025-03-14 11:14:13 +02:00
Elian Doran
b18e5a34c4 Merge pull request #1421 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.3.3
2025-03-14 11:13:57 +02:00
Elian Doran
2578c2d4f6 Merge pull request #1398 from TriliumNext/renovate/happy-dom-monorepo
chore(deps): update dependency happy-dom to v17.4.4
2025-03-14 11:13:17 +02:00
renovate[bot]
618bba71da fix(deps): update dependency mermaid to v11.5.0 2025-03-14 02:53:05 +00:00
renovate[bot]
8bff71fed4 fix(deps): update dependency i18next to v24.2.3 2025-03-14 02:52:56 +00:00
renovate[bot]
839cfac2ac fix(deps): update dependency force-graph to v1.49.4 2025-03-14 02:52:45 +00:00
renovate[bot]
ded979b6ff fix(deps): update dependency axios to v1.8.3 2025-03-14 02:52:32 +00:00
renovate[bot]
948c60277d chore(deps): update dependency electron to v34.3.3 2025-03-14 02:52:20 +00:00
Elian Doran
f487348cc5 chore(admonitions): remove formatting plugin for now 2025-03-14 00:04:23 +02:00
Elian Doran
ee76e81d1f feat(admonitions): integrate custom admonitions plugin 2025-03-14 00:02:55 +02:00
Elian Doran
507a594198 feat(admonitions): color the icon 2025-03-13 16:22:05 +02:00
Elian Doran
732252df5b feat(admonitions): add custom color per admonition 2025-03-13 16:19:58 +02:00
Elian Doran
ba39769174 feat(admonitions): add icon 2025-03-13 16:13:16 +02:00
Panagiotis Papadopoulos
6a9342abce build(Docker): add a temporary exception for files that copy-dist tries to copy for electron-forge, as otherwise copy-dist will fail inside Docker build
this will be fixed in an upcoming PR where I overhaul copy-dist to allow for build target specific copying of files
2025-03-13 08:44:31 +01:00
Panagiotis Papadopoulos
67c752c11b ci: adjust build-electron action to use the newly introduced outDir "./dist" for electron-forge 2025-03-13 08:21:12 +01:00
Elian Doran
adf5bee98f feat(admonitions): apply basic styling & configure for paragraphs 2025-03-13 09:15:11 +02:00
Panagiotis Papadopoulos
cc0931b402 build(electron-forge): set outDir to ./dist, to have the same behaviour as the Server builds
since we run electron-forge inside the ./build folder, we need to go up a directory (using ../dist), to have it output to ./dist
2025-03-13 08:09:53 +01:00
Panagiotis Papadopoulos
b48fbbe583 build(copy-dist): copy over desktop.ejs for electron-forge as well
it is required for Flatpak/Deb/RPM Linux packages
2025-03-13 07:59:12 +01:00
Panagiotis Papadopoulos
1877d26296 chore(scripts): electron-forge:prepare -> copy node_modules folder as is
electron-forge does not like, if we get rid of devDeps ourselves already it seems.
It *wants* to do it itself, otherwise build fails…

It does seem to correctly strip all the devDeps though, at least there's that.
2025-03-13 07:59:12 +01:00
Panagiotis Papadopoulos
4ce2c10d72 build(copy-dist): copy over the start scripts for now 2025-03-13 07:59:12 +01:00
Panagiotis Papadopoulos
11772860b6 build(electron-forge): stop copying unused .anonymize-database.sql as ressource 2025-03-13 07:59:12 +01:00
Panagiotis Papadopoulos
6b9d8f0d67 build(electron-forge): execute electron-forge commands in our "build" output context
since we build TS and webpack ourselves and are not using any electron-forge plugins (at least at the moment) -> we should use the "build" folder as build context for electron-forge:

in comparison to running electron-forge in the root folder of the project, this avoids electron-forge from packing the source code multiple times (e.g. once as uncompiled TS, then as compiled JS, and then (partially) a third time as webpack bundled JS files), same as some of the assets.

to achieve this, we run our usual TS/Webpack build process, but then install the npm dependencies *inside* the build folder (as otherwise electron-forge would choke on the missing node_modules it and abort building).

In theory we could avoid cd-ing into the build folder, by providing the "dir" as argument to electron-forge's CLI -- BUT that wouldn't play well with our CI, where we are passing --arch and --platform options to it, which need to come *before* the dir argument.

since we now cd into the "build" folder, we also need to adjust the path in package.json "main" again
2025-03-13 07:59:12 +01:00
Adorian Doran
10de4e798b client/options: fix failing test 2025-03-13 06:10:09 +02:00
Adorian Doran
eb630c80d6 client/options: format code 2025-03-13 05:50:29 +02:00
Adorian Doran
5cab7eb403 client/options: reorder sections 2025-03-13 05:46:34 +02:00
Adorian Doran
04c6813b0a client/options: relocate the "Localization" section to the "Language & Region" page 2025-03-13 05:35:43 +02:00
Adorian Doran
1369a44d9b style/options/ETAPI: add an icon to the create token button 2025-03-13 05:25:34 +02:00
Adorian Doran
88aa9a4e79 client/options/code notes: create the "Editor" section, reorganize 2025-03-13 05:20:58 +02:00
Adorian Doran
0e748fbce0 style/options/ETAPI: update the icon of the edit token button 2025-03-13 04:30:42 +02:00
Adorian Doran
6c6d20a830 style: fix note title input overlapping with the zen mode exit button 2025-03-13 04:19:42 +02:00
Adorian Doran
69f95068f1 style(next)/shell/right pane: minor restyle 2025-03-13 04:04:08 +02:00
Adorian Doran
2066f821cb style(next)/ribbon/image properties: improve the layout 2025-03-13 03:24:04 +02:00
Adorian Doran
25a787f9dc Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-12 22:30:51 +02:00
Adorian Doran
a2b73feb25 style/image properties: add icons to buttons 2025-03-12 22:30:49 +02:00
Elian Doran
062955aa81 feat(editor): integrate styles support 2025-03-12 22:08:23 +02:00
Elian Doran
b8cbd79ae1 refactor(client): rename ckeditor config file 2025-03-12 22:08:23 +02:00
Adorian Doran
fc4712240c Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-12 21:42:43 +02:00
Adorian Doran
18882d0b7e style(next)/toasts: change the dark mode colors 2025-03-12 21:42:39 +02:00
Elian Doran
d469670a46 feat(docs): document formatting keyboard shortcuts + fix broken image 2025-03-12 19:03:33 +02:00
Elian Doran
e0cebf1c00 style(next): apply kbd style to content 2025-03-12 18:08:39 +02:00
Elian Doran
383408e884 style(editor): add some separators to formatting toolbar 2025-03-12 18:06:34 +02:00
Elian Doran
87d28c8c2f style(editor): group some formatting options for floating toolbar 2025-03-12 18:04:20 +02:00
Elian Doran
bec7a526ad feat(editor): add support for marking keyboard shortcuts 2025-03-12 17:58:12 +02:00
Adorian Doran
bb8325cf8d Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-12 15:08:26 +02:00
Adorian Doran
da9a029f8f style(next)/note list: remove a no longer needed border 2025-03-12 15:08:22 +02:00
Elian Doran
c02b5468a6 feat(docs): clean up RTL and reorder 2025-03-12 14:47:42 +02:00
Elian Doran
5dd5e8da91 feat(docs): document adjusting image alignment 2025-03-12 13:36:30 +02:00
Adorian Doran
f991cee3ac Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-12 13:31:07 +02:00
Adorian Doran
1426e43fb8 style(next): move color variables to color scheme-related stylesheets 2025-03-12 13:31:04 +02:00
Elian Doran
61899aa32d chore(edit-docs): ignore document.db 2025-03-12 13:14:09 +02:00
Elian Doran
e90bbe31ba feat(docs): document the launch bar 2025-03-12 13:14:09 +02:00
Elian Doran
034998fa97 feat(docs): document vertical vs horizontal layout 2025-03-12 13:14:08 +02:00
Elian Doran
3a41d8fd11 feat(docs): improve note tree documentation 2025-03-12 13:14:08 +02:00
Elian Doran
e9175d60ec feat(docs): improve documentation for code notes, code blocks 2025-03-12 13:14:08 +02:00
Adorian Doran
4f87bd101e Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-12 12:55:57 +02:00
Adorian Doran
9c78415a1f style(next): restyle toasts 2025-03-12 12:55:55 +02:00
Elian Doran
06d848ba17 feat(code): support mips (closes #1406) 2025-03-12 10:54:44 +02:00
Elian Doran
42821d47c8 refactor(mime): sort alphabetically 2025-03-12 10:54:19 +02:00
Panagiotis Papadopoulos
d7aedfbd36 build(copy-dist): exit on any caught error to make sure copy-dist fails during CI if any error occurs
if we don't exit, it will just log the issue - however we *want* it to fail it there is an error, so that it doesn't continue in the CI

alternative would be to rethrow the error, but then we'd print the error into the logs twice :-)

closes https://github.com/TriliumNext/Notes/issues/1413
2025-03-12 09:52:42 +01:00
Adorian Doran
b730ca0033 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-12 10:44:04 +02:00
Adorian Doran
bad7776076 style/toasts: get rid of some !important properties 2025-03-12 10:43:53 +02:00
Panagiotis Papadopoulos
d088c8e5b2 build(copy-dist): fix path to excalidraw fonts 2025-03-12 08:57:05 +01:00
Elian Doran
2463e44bf8 chore(deps): downgrade to react 18 2025-03-12 09:15:37 +02:00
renovate[bot]
b600b51fe8 chore(deps): update dependency happy-dom to v17.4.4 2025-03-12 02:59:14 +00:00
Adorian Doran
ddd2babe21 style/content renderer: localize some strings 2025-03-12 03:40:56 +02:00
Adorian Doran
b082f95d42 style/content renderer: add icons to the "download" and "open" buttons 2025-03-12 03:32:54 +02:00
Adorian Doran
79fb87d9ff style(next)/search: refactor 2025-03-12 03:13:41 +02:00
Adorian Doran
027577c709 style(next)/search: change the alignment of the search-related buttons 2025-03-12 03:12:22 +02:00
Adorian Doran
dd62979d65 style/attachments page: add an icon to the upload button 2025-03-12 02:49:40 +02:00
Adorian Doran
f86170f553 style/note revisions dialog: add icons to buttons 2025-03-12 02:38:34 +02:00
Adorian Doran
82b012a38b style(next)/ribbon/file properties: refactor 2025-03-12 02:13:32 +02:00
Adorian Doran
4b6998975f style(next)/ribbon/file properties: improve the layout 2025-03-12 02:06:29 +02:00
Adorian Doran
600585bfd3 style(next)/ribbon/file properties: improve the layout 2025-03-12 02:02:18 +02:00
Adorian Doran
0c8e7806f4 style/ribbon/file properties: add icons to buttons 2025-03-12 02:01:19 +02:00
Adorian Doran
62b5bbc9ce style(next): fix the submenu arrows overlapping the keyboard shortcuts 2025-03-12 00:57:16 +02:00
Elian Doran
3ae48bba00 chore(deps): update react to latest 2025-03-12 00:06:11 +02:00
Elian Doran
cf76358dd7 fix(canvas): font loading 2025-03-11 23:03:34 +02:00
Elian Doran
c2cb48a25c chore(deps): update to excalidraw 0.18.0 2025-03-11 22:59:16 +02:00
Elian Doran
39f3cb47fa Merge pull request #1393 from TriliumNext/build_hotfix-electron
fix(build/electron): hotfix for failing nightly electron builds
2025-03-11 22:20:17 +02:00
Elian Doran
15c04c38b9 chore(docs): add HTML user guide 2025-03-11 22:04:19 +02:00
Elian Doran
3723824246 chore(scripts): downgrade Electron to 33 for Nix 2025-03-11 22:02:05 +02:00
Elian Doran
5ee13623ee feat(edit-docs): generate HTML documentation as well 2025-03-11 21:58:32 +02:00
Elian Doran
9d161a007e feat(etc/reddit): add icon 2025-03-11 21:57:43 +02:00
Elian Doran
3457c2e4d8 feat(content_renderer): render docnotes 2025-03-11 21:57:33 +02:00
Elian Doran
32f84e8378 refactor(client): extract doc rendering to dedicated service 2025-03-11 21:32:48 +02:00
Panagiotis Papadopoulos
4494662d2a fix(build/electron): hot fix for failing nightly electron builds
this is caused by recently reverting the output of "build:prepare-dist" from "dist" to "build"

-> this is just a temporary fix -> I am working in parallel already on an improved electron-forge build process, whihc will be ready by end of the week
2025-03-11 20:24:11 +01:00
Elian Doran
4124c96e02 fix(docs): syntax highlighting for Nginx 2025-03-11 21:12:42 +02:00
Elian Doran
b278bc8ce4 refactor(test): use matrix for testing import/export 2025-03-11 21:11:23 +02:00
Elian Doran
8c71e6aa90 fix(export/markdown): proper language tag for Nginx 2025-03-11 21:05:55 +02:00
Elian Doran
09c081fdcf feat(edit-docs): remove input file 2025-03-11 20:48:40 +02:00
Elian Doran
ba17ce8616 fix(docs): numbering in Nginx 2025-03-11 20:46:50 +02:00
Elian Doran
34ffba54ac feat(edit-docs): do proper becca cleaning before starting 2025-03-11 20:42:53 +02:00
Elian Doran
d3cfc1c88b feat(edit-docs): ignore options change 2025-03-11 20:40:25 +02:00
Elian Doran
4969cf7d5b feat(edit-docs): wait for import to finish before starting electron 2025-03-11 20:39:30 +02:00
Elian Doran
ac4a8a44d4 chore(docs): import canvas note documentation 2025-03-11 20:27:54 +02:00
Elian Doran
69a39bca2f fix(docs): clean up documentation 2025-03-11 20:23:36 +02:00
Elian Doran
c79eeea060 fix(docs): few broken image references 2025-03-11 19:50:29 +02:00
Elian Doran
f86434523e fix(export): maintain same order of attachments 2025-03-11 18:27:08 +02:00
Elian Doran
bb288c5c68 fix(edit-docs): consistency check issues 2025-03-11 18:26:49 +02:00
Elian Doran
0af357ece8 chore(docs): update with deterministic order 2025-03-11 18:05:42 +02:00
Elian Doran
a2795f3440 fix(import/markdown): title deduplication breaking special chars 2025-03-11 17:51:35 +02:00
Elian Doran
3d10ac5e1f chore(docs): solve import/export errors 2025-03-11 17:36:42 +02:00
Elian Doran
997e962fbe fix(edit-docs): attachments duplication 2025-03-11 17:24:29 +02:00
Elian Doran
e939b7b3d9 fix(docs): unescaped URL in images 2025-03-11 17:24:15 +02:00
Elian Doran
a441ea2461 feat(md): rewrite image URL with spaces 2025-03-11 17:12:56 +02:00
Elian Doran
f67e2ebcd5 chore(edit-docs): move Markdown documentation outside src for now 2025-03-11 16:11:16 +02:00
Elian Doran
971b388d1a Merge pull request #1392 from TriliumNext/Note_Revisions
Fix the bug where note revisions cannot be previewed.
2025-03-11 13:39:00 +02:00
Elian Doran
a33d532958 Merge pull request #1382 from TriliumNext/renovate/happy-dom-monorepo
chore(deps): update dependency happy-dom to v17.4.3
2025-03-11 13:38:25 +02:00
Elian Doran
80d1985882 Merge pull request #1381 from TriliumNext/renovate/autoprefixer-10.x
chore(deps): update dependency autoprefixer to v10.4.21
2025-03-11 13:38:05 +02:00
Elian Doran
ecc5e0f3b8 Merge pull request #1388 from TriliumNext/build_electron-dump-db
build(electron-forge): stop packing dump-db folder
2025-03-11 13:37:19 +02:00
Elian Doran
5252fe3d1e Merge pull request #1390 from TriliumNext/renovate/typescript-eslint-monorepo
chore(deps): update dependency typescript-eslint to v8.26.1
2025-03-11 13:34:45 +02:00
Elian Doran
182da7717f Merge pull request #1389 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.3.2
2025-03-11 13:34:21 +02:00
Elian Doran
6b3bf1151a Merge branch 'develop' into renovate/happy-dom-monorepo 2025-03-11 13:27:41 +02:00
Elian Doran
c16f240f31 Merge branch 'develop' into renovate/autoprefixer-10.x 2025-03-11 13:27:38 +02:00
SiriusXT
4b269c2859 Fix the bug where note revisions cannot be previewed. 2025-03-11 16:24:35 +08:00
renovate[bot]
5299da6525 chore(deps): update dependency typescript-eslint to v8.26.1 2025-03-11 02:37:37 +00:00
renovate[bot]
ca6253f3bb chore(deps): update dependency electron to v34.3.2 2025-03-11 02:37:19 +00:00
Elian Doran
d639798fa8 refactor(server): deduplicate options init 2025-03-10 21:21:59 +02:00
Elian Doran
e79f18f001 fix(edit-docs): convert to Markdown 2025-03-10 21:15:33 +02:00
Elian Doran
d134ee0552 fix(edit-docs): preserve attachment IDs 2025-03-10 20:50:57 +02:00
Elian Doran
b412f06b79 fix(edit-docs): doubly nested directories 2025-03-10 20:16:56 +02:00
Elian Doran
7a4b1b41b4 feat(edit-docs): periodic export 2025-03-10 19:34:10 +02:00
Elian Doran
841bc54f78 feat(edit-docs): preserve IDs when importing 2025-03-10 19:14:46 +02:00
Panagiotis Papadopoulos
02a00000fb build(electron-forge): stop packing dump-db folder
see https://github.com/TriliumNext/Notes/issues/1115
2025-03-10 18:11:56 +01:00
Elian Doran
966ad36919 fix(edit-docs): allow import of contents 2025-03-10 18:56:00 +02:00
Elian Doran
8ac5d01f43 feat(edit-docs): start importing zip 2025-03-10 18:51:40 +02:00
Elian Doran
15936ff8b8 fix(edit-docs): relative path 2025-03-10 17:57:56 +02:00
Elian Doran
a1918ad491 feat(edit-docs): start creating input zip file 2025-03-10 17:50:58 +02:00
Elian Doran
2b891adc34 feat(edit-docs): create child note for importing 2025-03-10 17:41:13 +02:00
Elian Doran
42d3236fe7 fix(edit-docs): stop initializing if DB is already so 2025-03-10 17:08:40 +02:00
Elian Doran
f3d753cc46 feat(edit-docs): initialize database automatically 2025-03-10 17:04:17 +02:00
Elian Doran
6a549af34a feat(edit-docs): clean up meta 2025-03-10 16:37:39 +02:00
Elian Doran
bffb0963df feat(edit-docs): clean up ZIP file 2025-03-10 16:31:44 +02:00
Elian Doran
df2a9aed44 feat(edit-docs): automatically write documentation on start-up 2025-03-10 16:20:48 +02:00
Elian Doran
2530c01a31 chore(docs): update in-app documentation 2025-03-10 16:20:13 +02:00
Elian Doran
054a919fad chore(docs): small structure update 2025-03-10 15:04:04 +02:00
Elian Doran
9fa19469fd chore(docs): improvements + new doc 2025-03-10 14:21:53 +02:00
Elian Doran
b9c409ec33 chore(scripts): edit documentation with Nix 2025-03-10 10:53:49 +02:00
Elian Doran
6c845102d3 fix(build): missing arguments in eslint.spec.ts 2025-03-10 09:25:33 +02:00
Elian Doran
e6c04e70e4 Merge pull request #1369 from TriliumNext/build_improve-server-build
build: fix/improve server build
2025-03-10 09:19:09 +02:00
renovate[bot]
9dcfae56a1 chore(deps): update dependency happy-dom to v17.4.3 2025-03-10 02:33:38 +00:00
renovate[bot]
05b2f8c097 chore(deps): update dependency autoprefixer to v10.4.21 2025-03-10 02:33:29 +00:00
Romain DEP.
5658f22f9a feat(calendar): do no longer require # or ~ to be specified by the user
to signify that the provided attribute is a label or a relation. It will now
work either way, giving preference to the label if one is found.
2025-03-09 22:44:45 +01:00
Elian Doran
0232fee905 chore(docs): reorder and improve slightly 2025-03-09 23:29:01 +02:00
Romain DEP.
85917d7207 feat(calendar): support displaying of attributes and realtions with multiple cardinality 2025-03-09 21:26:41 +01:00
Elian Doran
e129e0369d server(attachments): render empty SVGs properly (closes #1378) 2025-03-09 22:23:01 +02:00
Elian Doran
be6e56fbe8 feat(eslint): add support for module.exports 2025-03-09 21:41:13 +02:00
Elian Doran
1fb4634b7b feat(eslint): add globals for jQuery 2025-03-09 21:38:16 +02:00
Panagiotis Papadopoulos
afe4fc2d1a build(build-server): add more detail to status "echo"s 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
3450066214 build(build.sh): remove unused build script
this is not used anymore at all, it was replaced by GitHub CI Actions

it even mentions several other scripts, that got removed in the meantime as well
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
36fad35be5 build(build-server): rename archive name to the same naming scheme used in the Github CI 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
56340009ca build(build-server): remove now unused DONTCOPY check 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
d110c8b067 build(build-server): add some status "echo"s 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
d8ad018819 build(build-server): also delete electron map files 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
33de342842 build(build-server): download and extract node in a single step 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
4bba061629 build(build-server): get rid of now unnecessary arch handling for node
directly use "ARCH" instead of creating 2 variables with the identical content as "ARCH"
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
87d37366e4 build(build-server): remove unnecessary copying of translations
already happens during build:prepare-dist step
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
1324cc2e53 build(build-server): add TODO remark 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
80d6cd0356 build(build-server): delete temp build dir copy in dist folder 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
e0413b528f build(build-server): use a single "rm" command 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
19abd14058 build(build-server): use build dir for build and dist for final archive output 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
9bd31698e1 build(copy-trilium): use "|" as sed separator
allows us to avoid having to escape "/"
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
1ae5c43010 build(copy-trilium): do all the work inside build dir, no target directory needed anymore
-> all of these steps will eventually be merged with copy-dist script to have a unified copying script
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
f8b06f0634 build(copy-trilium): get rid of unecessary copying of files
-> already handled by "build:prepare-dist" step
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
930be2de05 build(copy-dist): copy LICENSE and README as well
copied over from copy-trilium.sh script
2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
c89d86acb1 build(copy-trilium): use "build:prepare-dist" build script 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
d65281bfa5 build(copy-trilium): use npm ci 2025-03-09 18:59:54 +01:00
Panagiotis Papadopoulos
607f9096aa build: output into "build" folder again → "dist" will be used for the final output in archive form
this will allow for cleaner separation -> build for the output from the build stage (i.e. TS/Webpack + asset copying) and dist for the archive format of the build folder
2025-03-09 18:59:54 +01:00
Romain DEP.
6c1cb71c9f feat(calendar): make it so that events with customized calendar:startDate and calendar:endDate can be drag&dropped on the calendar view 2025-03-09 13:03:15 +01:00
Elian Doran
064799e8cb feat(docs): add v1 of the full documentation 2025-03-09 13:19:48 +02:00
Elian Doran
b7cb2e6e97 feat(docs): basic integration with shared db 2025-03-09 13:19:38 +02:00
Elian Doran
b00224c63c Merge pull request #1367 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.10
2025-03-09 09:41:29 +02:00
Elian Doran
5b5fb6bbd9 Merge pull request #1368 from TriliumNext/renovate/happy-dom-monorepo
chore(deps): update dependency happy-dom to v17.4.2
2025-03-09 09:40:42 +02:00
renovate[bot]
4ef1c5d4e2 chore(deps): update dependency happy-dom to v17.4.2 2025-03-09 01:53:34 +00:00
renovate[bot]
56c575cec2 chore(deps): update dependency @types/node to v22.13.10 2025-03-09 01:53:24 +00:00
Romain DEP.
3fe78cad61 feat(calendar): rename "promotedAttributes" into "displayedAttributes" and permit non-promoted attributes to be displayed 2025-03-08 22:17:58 +01:00
Adorian Doran
eb9d7dd172 style/login: prevent the page content being rendered before the stylesheet is loaded 2025-03-08 20:53:54 +02:00
Adorian Doran
7434fb372e style/login: prevent the icon from being dragged 2025-03-08 20:45:12 +02:00
Adorian Doran
d17513bec0 style(next): tweak the style of the login page 2025-03-08 20:40:00 +02:00
Adorian Doran
fc87f64840 style(next)/options: restyle the warning boxes 2025-03-08 19:32:56 +02:00
Adorian Doran
f6e869f2ac Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-08 19:17:13 +02:00
Adorian Doran
69fab9a6d6 style(next)/options/shortcuts: improve the appearance of the page 2025-03-08 19:16:48 +02:00
Elian Doran
14c3fd5892 Merge pull request #1347 from TriliumNext/chore_eslint-fixes_src-routes
chore(lint): fix eslint issues in `src/routes`
2025-03-08 18:25:47 +02:00
Panagiotis Papadopoulos
c120132cbb Merge branch 'develop' into chore_eslint-fixes_src-routes 2025-03-08 17:15:53 +01:00
Panagiotis Papadopoulos
ecf1a0e4ad refactor(utils): add safeExtractMessageAndStackFromError util to remove code duplication 2025-03-08 17:07:25 +01:00
Panagiotis Papadopoulos
e20b662ea7 chore(routes): fix no-explicit-any lint/ts error for restoreRevision 2025-03-08 16:12:37 +01:00
Panagiotis Papadopoulos
7bd9be7b29 chore: use more narrow NoteType for RevisionRow 2025-03-08 16:11:58 +01:00
Panagiotis Papadopoulos
e3d0c53d03 chore(routes): fix no-explicit-any lint/ts error for catch blocks 2025-03-08 16:03:30 +01:00
Panagiotis Papadopoulos
272d7cd652 chore(routes/api/clipper): fix prefer-const lint errors 2025-03-08 15:31:12 +01:00
Panagiotis Papadopoulos
dd9e1e69d7 fix(routes/api/clipper): fix typo in error message 2025-03-08 15:27:39 +01:00
Panagiotis Papadopoulos
08a6053c38 refactor(routes/api/clipper): get rid of second htmlSanitizer call for pageUrl
-> the value is already sanitized in line 112, there's no need to call htmlSanitizer a second time here
2025-03-08 15:27:04 +01:00
Elian Doran
4cffc50218 Merge pull request #1361 from TriliumNext/themeUseNextAsBase
Theme use next as base
2025-03-08 09:55:11 +02:00
SiriusXT
1a54b8f5a5 Add themes that can be base 2025-03-08 15:10:38 +08:00
SiriusXT
e2c317f59c Add themes that can be base 2025-03-08 14:58:19 +08:00
Adorian Doran
1e81831ea0 style(next)/options: improve (again) the layout of the option cards 2025-03-08 05:49:18 +02:00
Adorian Doran
240ee2b6ac style(next)/options: improve the layout of the option cards 2025-03-08 05:34:43 +02:00
Adorian Doran
d47350363a style(next): remove no longer unused style 2025-03-08 04:45:55 +02:00
Adorian Doran
6a1f1948f0 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-08 04:44:26 +02:00
Adorian Doran
db4c5bcac2 client/options/advanced: use a table for "Existing anonymized databases" 2025-03-08 04:44:23 +02:00
Elian Doran
268b666d52 feat(template): duplicate content for geomap & mindmap (closes #357) 2025-03-08 04:28:24 +02:00
Elian Doran
ed06a3ee97 feat(template): duplicate content for relation map 2025-03-08 04:26:30 +02:00
Elian Doran
5d9bea8987 feat(template): duplicate content for canvas 2025-03-08 04:24:09 +02:00
Elian Doran
c7b99adb6a feat(template): duplicate content for mermaid diagrams 2025-03-08 04:23:05 +02:00
Adorian Doran
82a63a65da style(next)/options/shortcuts: tweak group headings 2025-03-08 04:17:16 +02:00
Adorian Doran
7582b1c43d style/options/appearance: fix the width of the "Main font" combo box 2025-03-08 04:01:49 +02:00
Adorian Doran
fa60e66a75 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-08 03:52:31 +02:00
Adorian Doran
d16708cf75 style(next)/options: tweak labels 2025-03-08 03:52:14 +02:00
Elian Doran
4f671738e6 fix(client): remove misleading message about removing revisions (closes #1308) 2025-03-08 03:45:02 +02:00
Adorian Doran
decf62c58c style: add a gap between consecutive radios / check boxes 2025-03-08 03:33:02 +02:00
Adorian Doran
9626b42443 style(next): add a gap between consecutive radios / check boxes 2025-03-08 03:27:59 +02:00
Adorian Doran
15d3285a90 client/options/text notes: convert the "Heading Style" combo box into radio buttons 2025-03-08 03:21:32 +02:00
Adorian Doran
a694017c87 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-08 03:18:57 +02:00
Adorian Doran
2cfb83a93c client/options/appearance: convert the "First day of the week" combo box into radio buttons 2025-03-08 03:18:42 +02:00
Elian Doran
4839edb3d7 feat(dump-db): use tsx instead of esrun 2025-03-08 03:14:38 +02:00
Elian Doran
9db5557cc1 Merge pull request #1359 from TriliumNext/renovate/eslint-monorepo
chore(deps): update eslint monorepo to v9.22.0
2025-03-08 03:10:33 +02:00
Elian Doran
acedb0e94c Merge pull request #1225 from TriliumNext/build_improve-ts-webpack
build: improvements for TS & Webpack & Docker
2025-03-08 03:08:30 +02:00
Elian Doran
d2ffd4a8cd Merge pull request #1358 from TriliumNext/renovate/happy-dom-monorepo
chore(deps): update dependency happy-dom to v17.4.0
2025-03-08 03:05:41 +02:00
Elian Doran
2ff7d7bc6d Merge branch 'develop' into renovate/eslint-monorepo 2025-03-08 03:03:00 +02:00
Elian Doran
7ade401018 feat(eslint): downgrade unused variables to warning 2025-03-08 03:02:25 +02:00
Elian Doran
3756524ad3 feat(test): basic tests for ESLint 2025-03-08 02:55:59 +02:00
Elian Doran
770b4afff3 Merge pull request #1360 from TriliumNext/renovate/eslint-linter-browserify-9.x
fix(deps): update dependency eslint-linter-browserify to v9.22.0
2025-03-08 02:50:24 +02:00
renovate[bot]
e530df8645 fix(deps): update dependency eslint-linter-browserify to v9.22.0 2025-03-08 00:46:50 +00:00
renovate[bot]
9d6adef5bf chore(deps): update dependency happy-dom to v17.4.0 2025-03-08 00:46:41 +00:00
Elian Doran
79adb0b20e feat(client): add recommended rules 2025-03-08 02:45:40 +02:00
Elian Doran
0273fad0ba refactor(deps): use different approach for eslint 2025-03-08 02:37:29 +02:00
renovate[bot]
7d21bcd611 chore(deps): update eslint monorepo to v9.22.0 2025-03-08 00:37:21 +00:00
Elian Doran
c4f8e9605f fix(client): update ESLint to latest 2025-03-08 02:20:56 +02:00
Elian Doran
3c84d0558d fix(style): login in dark mode not rendering correctly 2025-03-08 02:10:14 +02:00
Elian Doran
f8d759cbc3 chore(lock): version 2025-03-08 02:10:14 +02:00
Elian Doran
c297f88395 chore(server): remove unnecessary log 2025-03-08 02:10:14 +02:00
Adorian Doran
e74de6105a client/options: minor tweaks 2025-03-08 01:59:29 +02:00
Panagiotis Papadopoulos
91c37fa235 chore(routes/electron): disable lint rule for specific line
in this case using "{}" allows all primitive values, which seems to be what is required here.
so let's disable the rule "@typescript-eslint/no-empty-object-type" for this line
2025-03-08 00:54:29 +01:00
Panagiotis Papadopoulos
b56ff558a4 refactor(routes/api/import): get rid of "any" type in catch blocks 2025-03-08 00:39:01 +01:00
Panagiotis Papadopoulos
07fd5327b1 refactor(routes/custom): get rid of "any" type catch blocks 2025-03-08 00:22:12 +01:00
Panagiotis Papadopoulos
4b6972fb21 refactor(error_handlers): get rid of "any" type in csrf error handler 2025-03-08 00:15:46 +01:00
Panagiotis Papadopoulos
76574f0938 refactor(error_handlers): use HttpError classes in errorHandler
also gets rid of "any" type :-)
2025-03-08 00:14:24 +01:00
Adorian Doran
6d39c404c4 client/options/appearance/ribbon widgets: place checkboxes on separate lines 2025-03-08 01:01:05 +02:00
Adorian Doran
d24b5a232f style: fix the form text color 2025-03-08 00:54:53 +02:00
Adorian Doran
9a09a89066 client/options/appearance: change the layout of the "Native title bar" and "Enable background effects" options 2025-03-08 00:52:02 +02:00
Panagiotis Papadopoulos
0c8df7f885 refactor(error_handlers): use newly added ForbiddenError class 2025-03-07 23:30:12 +01:00
Panagiotis Papadopoulos
70e227f4c3 build(Docker): improve image size, by deleting node-compile-cache 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
907b8c503e build: copy package-lock.json into dist folder as well 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
38690053a8 build(Docker): improve image size, by deleting unnecessary node_modules fodler from dist folder
added a TODO as well, to get rid of this strange step here at some point
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
3553d64060 build(Docker/ci): get rid of running partial build locally
this is now handled fully inside Docker.

exception for "test_docker" job in "main-docker"
-> it seems that one needs to be there still, since it runs Playwright tests from outside the container
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
f544a84f6d build(Docker): simplify Docker alpine build and runtime stage
same changes as for the "non-alpine" Dockerfile previously commited, but adapted to Alpine.

this Dockerfile is aimed at production builds, i.e. trying to keep size as small as possible at the cost of "rebuild speed", due to missed docker cache opportunities.

Build Stage:
* do the complete build inside docker as oposed to the previous "hybrid", where tsc was run locally and the output got copied into the Docker build stage → you can now build this with Docker, without having to install the whole node/TS env locally

* build into a "build" subfolder, for easier clean up during build stage

* get rid of now unnecessary extra file/asset handling, as this is now handled by `npm run build:prepare-dist`

* no `npm prune` needed here, as we delete the whole build folder anyways in the last build step

Runtime stage:
* move the "electron" dep removal from the builder stage to the runtime stage, before installing the dependencies

* move to `npm ci` for reproducible installations – but only installing runtime deps here

* get rid of now unnecessary copying commands from the builder stage, as everything is now neatly available in "/usr/src/app"
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
68875683af build(Docker): get rid of apparently unused packages at build stage 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
e9824c4568 build(dockerignore): ignore unnecessary files 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
c68b0b02e4 build(Docker): simplify Docker build and runtime stage
this Dockerfile is aimed at production builds, i.e. trying to keep size as small as possible at the cost of "rebuild speed", due to missed docker cache opportunities.

Build Stage:
* do the complete build inside docker as oposed to the previous "hybrid", where tsc was run locally and the output got copied into the Docker build stage → you can now build this with Docker, without having to install the whole node/TS env locally

* build into a "build" subfolder, for easier clean up during build stage

* get rid of now unnecessary extra file/asset handling, as this is now handled by `npm run build:prepare-dist`

* no `npm prune` needed here, as we delete the whole build folder anyways in the last build step

Runtime stage:
* move the "electron" dep removal from the builder stage to the runtime stage, before installing the dependencies

* move to `npm ci` for reproducible installations – but only installing runtime deps here

* get rid of now unnecessary copying commands from the builder stage, as everything is now neatly available in "/usr/src/app"
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
2973d38db0 build(Docker): move server-package.json preparation into Dockerfile 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
bb7a4f9bc3 build(Docker): comment out seemingly useless installation of build dependencies 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
e389592017 build(copy-dist): copying build folder is not required anymore
TS and Webpack build into the dist folder directly now
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
5e289ea12d build: get rid of intermediary "build" folder -> use "dist" directly 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
3032156b45 build(copy-dist): execute code in try/catch -> get rid of function
since we don't export this anywhere, might as well just call the steps directly
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
d75cf8c11e build(copy-dist): consolidate nodeModules copying into a single loop 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
a816abb372 build(copy-dist): use sync copying
since this is a "standalone" script we are running and no other JS scritps are running "in the background", there's no real benefit for async here.
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
37f1525d0e build(copy-dist): remove unused paths 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
dbeae62709 build(copy-dist): simplify "copyNodeModuleFileOrFolder" copying
there's no benefit from stripping "node_modules/" from the string, to later add it again using the `DEST_DIR_NODE_MODULES` constant

=> just copy directly into the `DEST_DIR` folder and preserver the `node_modules` part in the path
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
ac3e96291a build(copy-dist): simplify "build" copying
there's no need to read the folder structure and then copy each single file in a loop

=> just copy the whole folder and be done with it :-)
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
9ac451e2b2 build(copy-dist): consolidate files and folder copying into one asset copying job
there's no benefit in having them split up like before
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
dbc2df0820 build(copy-dist): consolidate folder copying
the "srcDirsToCopy" block is useless now, we can just use the previous dirsToCopy to achieve the exact same thing
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
24382d8176 build(copy-dist): avoid copying over the app dir into dist
we have the bundled "app-dist" already in the "dist", copying over the original unbundled "app" folder serves no benefit here
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
af5e4ee3b5 build(copy-dist): copy over required folders/files from "public" folder 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
135101f57b build(copy-dist): do not copy build folder into src folder
stop the build folder from being copied into the dist/src subfolder
→ there is no sense in doing that
→ the contents of the build folder are corretly copied previously already (see line 26ff)
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
60a2b56636 chore(copy-dist): removee unnecesary copy of tsconfig.webpack.json
webpack bundling already ran before this script, so there is no need to copy this file over
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
e483cbca3c build(tsconfig): remove unnecessary exclude lines
these folder are already "excluded" implicitly, since we only include "./src" folder
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
3e307f4711 build(scripts): add "build:clean" script for removing dist and build folders 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
6c4a1732ad build(copy-trilium): use npm run build:ts 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
d0bb5f9768 build(scripts): add webpack progress flag 2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
3a87d71073 build(scripts): add build:ts and update build:prepare-dist
since we build into the build folder -> we should also clean the folder before building as well

also it makes sense to run tsc first, as it runs faster, so if there's any TS errors, we will have a faster failing build
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
e0c0086eb3 build(tsconfig): fix glob for build config
not sure why, but seems like it doesn't like `[jt]s` – which causes it to skip certain .d.ts files, making tsc fail
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
2be9389f3b build(webpack): change to nosources-source-map
as per https://webpack.js.org/configuration/devtool/#production

serving the `source-map` file to "normal" users seems to be not recommended, so instead let's go with `nosources-source-map`:

a) this drastically reduces app-dist folder size from 20MB down to 8.7MB
b) it still allows for stack traces
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
745b294ca1 build(webpack): output webpack build in build folder
output the bundled files directly in the build folder
a) keeps the src folder clean from build output
b) it saves us some "manual" copying work
2025-03-07 23:14:56 +01:00
Panagiotis Papadopoulos
cefc402263 build: add separate tsconfig.build.json
this prevents tsc from unnecessarily transpiling the frontend part as well:
previously it was transpiled by tsc, but the files got discarded and replaced by the files built by webpack.

speeds up tsc command a bit as well:
from 14 seconds to ~8 secs
2025-03-07 23:14:56 +01:00
Elian Doran
a6e7f98f69 chore(release): 0.92.3-beta 2025-03-07 23:59:10 +02:00
Elian Doran
e76601cd21 fix(bin): empty package.json 2025-03-07 23:58:41 +02:00
Elian Doran
e252b491ba chore(bin): make less error-tolerant 2025-03-07 23:57:31 +02:00
Elian Doran
555dcc956e chore(release): 0.92.3-beta 2025-03-07 23:55:26 +02:00
Panagiotis Papadopoulos
2c91f6e7bc refactor(errors): add HttpError class and extend existing errors from it 2025-03-07 22:47:03 +01:00
Panagiotis Papadopoulos
39d45dc11b refactor(error_handlers): use existing NotFoundError class
also gets rid of "any" type :-)
2025-03-07 22:31:55 +01:00
Panagiotis Papadopoulos
d8ce385134 refactor(routes): refactor handleException and get rid of "any" type 2025-03-07 22:27:13 +01:00
Panagiotis Papadopoulos
ba5152de40 refactor(errors): extend errors from Error and add/assign statusCode
this is in preparation for updating the routes/handleException method, to get rid of "any" (and improve in general)
2025-03-07 22:22:44 +01:00
Elian Doran
3958312651 fix(e2e): flaky test due to navigation 2025-03-07 20:34:08 +02:00
Elian Doran
eb19e31fc3 fix(e2e): tests failing when run locally 2025-03-07 20:34:01 +02:00
Elian Doran
9d05fedc69 Merge pull request #1355 from TriliumNext/renovate/npm-axios-vulnerability
fix(deps): update dependency axios to v1.8.2 [security]
2025-03-07 20:25:21 +02:00
Elian Doran
cbd6278a0b Merge pull request #1348 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.3.1
2025-03-07 20:14:30 +02:00
Elian Doran
f6b52f5ce9 Merge pull request #1349 from TriliumNext/renovate/vitest-monorepo
chore(deps): update vitest monorepo to v3.0.8
2025-03-07 20:14:17 +02:00
renovate[bot]
efc57e383c fix(deps): update dependency axios to v1.8.2 [security] 2025-03-07 18:13:51 +00:00
Elian Doran
40d6a28751 Merge pull request #1350 from TriliumNext/renovate/force-graph-1.x
fix(deps): update dependency force-graph to v1.49.3
2025-03-07 20:13:43 +02:00
Elian Doran
73791211c5 Merge pull request #1351 from TriliumNext/renovate/playwright-monorepo
chore(deps): update dependency @playwright/test to v1.51.0
2025-03-07 20:13:18 +02:00
Elian Doran
b0f86af57e Merge branch 'develop' into renovate/playwright-monorepo 2025-03-07 20:13:10 +02:00
Elian Doran
4c6556cf18 Merge pull request #1352 from TriliumNext/renovate/happy-dom-monorepo
chore(deps): update dependency happy-dom to v17.3.0
2025-03-07 20:12:57 +02:00
Elian Doran
3465bc3f1a Merge branch 'develop' into renovate/happy-dom-monorepo 2025-03-07 19:44:26 +02:00
Elian Doran
c1c9bf9122 Merge branch 'develop' into renovate/playwright-monorepo 2025-03-07 19:44:24 +02:00
Elian Doran
02b50703b2 Merge branch 'develop' into renovate/force-graph-1.x 2025-03-07 19:44:19 +02:00
Elian Doran
ab104af9ac Merge branch 'develop' into renovate/vitest-monorepo 2025-03-07 19:44:16 +02:00
Elian Doran
178a58375a Merge branch 'develop' into renovate/electron-34.x 2025-03-07 19:43:42 +02:00
Elian Doran
313d418345 fix(test): rollback database version 2025-03-07 10:23:02 +02:00
renovate[bot]
633369b5bd chore(deps): update dependency happy-dom to v17.3.0 2025-03-07 01:27:34 +00:00
renovate[bot]
06d5abded4 chore(deps): update dependency @playwright/test to v1.51.0 2025-03-07 01:27:24 +00:00
renovate[bot]
41368db8b6 fix(deps): update dependency force-graph to v1.49.3 2025-03-07 01:27:12 +00:00
renovate[bot]
4ff3b87f23 chore(deps): update vitest monorepo to v3.0.8 2025-03-07 01:27:02 +00:00
renovate[bot]
a40dc2047b chore(deps): update dependency electron to v34.3.1 2025-03-07 01:26:47 +00:00
Panagiotis Papadopoulos
04f3b637f9 chore(lint): fix no-explicit-any in export.ts 2025-03-06 23:32:05 +01:00
Panagiotis Papadopoulos
7feb38ffa1 chore(lint): fix no-unused-vars errors 2025-03-06 23:21:47 +01:00
Panagiotis Papadopoulos
c8e36942fc chore(lint): get rid of "any" in attachments
req.file is of type "Express.Multer.File | undefined".
Returning with an "uploaded: false" type object -> same handling as in
image.ts
2025-03-06 23:09:24 +01:00
Elian Doran
00e576b052 Revert "Merge pull request #1234 from TriliumNext/feature/task_list"
This reverts commit 58a8821c22, reversing
changes made to 50d491b432.
2025-03-06 23:52:01 +02:00
Elian Doran
ee7b97ae56 revert(db): back to 228 (no tasks) 2025-03-06 23:45:06 +02:00
Panagiotis Papadopoulos
dfb8982a99 chore(lint): improve type and get rid of "any" 2025-03-06 22:44:54 +01:00
Elian Doran
89767d0135 feat(client): allow triggering search on hash change 2025-03-06 22:21:50 +02:00
Elian Doran
79cc1cbf17 fix(link): search from URL not working (closes #1335) 2025-03-06 22:17:14 +02:00
Elian Doran
1ba6104e36 feat(vscode): set XML formatter 2025-03-06 21:19:35 +02:00
Elian Doran
f209e4f14d feat(vscode): add vitest integration 2025-03-06 21:19:28 +02:00
Elian Doran
a162fbfe42 fix(mermaid): <br> breaking diagram rendering (closes #1345) 2025-03-06 21:18:36 +02:00
Elian Doran
e795caa2f3 fix(note_language): no separator when no languages 2025-03-06 20:50:58 +02:00
Elian Doran
ddd0c3a878 Merge pull request #1319 from TriliumNext/feature/rtl
Right-to-left support
2025-03-06 18:12:44 +02:00
Elian Doran
7c5430ba49 Merge pull request #1341 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.9
2025-03-06 08:22:03 +02:00
Elian Doran
c155702d91 Merge pull request #1342 from TriliumNext/renovate/ws-8.x
chore(deps): update dependency @types/ws to v8.18.0
2025-03-06 08:21:37 +02:00
renovate[bot]
ab578f9379 chore(deps): update dependency @types/ws to v8.18.0 2025-03-06 02:50:55 +00:00
renovate[bot]
ebaa909488 chore(deps): update dependency @types/node to v22.13.9 2025-03-06 02:50:47 +00:00
Adorian Doran
c463106ccc style(next): tweak modals 2025-03-06 03:02:41 +02:00
Adorian Doran
283d192fe8 style(next)/jump to note: fix modal footer background 2025-03-06 02:30:32 +02:00
Adorian Doran
fbba1021cc style(next): restyle modals 2025-03-06 02:28:19 +02:00
Elian Doran
a3a34cfab0 fix(rtl): wrong content when switching to an empty note 2025-03-05 23:06:18 +02:00
Elian Doran
77d6cdc546 fix(note_language): double separator when only RTL languages 2025-03-05 23:00:48 +02:00
Elian Doran
deb5d82c02 fix(test): broken after adding content-only languages 2025-03-05 22:18:24 +02:00
Elian Doran
ca757b20d5 fix(note_language): duplicate separators if no language selected 2025-03-05 22:16:31 +02:00
Elian Doran
15075c8626 fix(build): tests failing due to cyclic dependencies 2025-03-05 22:11:03 +02:00
Elian Doran
07dbacb61f fix(build): incorrect import 2025-03-05 22:05:12 +02:00
Elian Doran
1976fe6729 Merge remote-tracking branch 'origin/develop' into feature/rtl
; Conflicts:
;	src/public/app/widgets/floating_buttons/help_button.ts
2025-03-05 21:57:53 +02:00
Elian Doran
c99c4a4302 Revert "feat(rtl): add language switcher toolbar"
This reverts commit e930ae5f40.
2025-03-05 21:57:08 +02:00
Elian Doran
8d60429b9c style(note_language): size and positioning of the help button 2025-03-05 21:51:08 +02:00
Elian Doran
84c480c4c6 feat(in-app-help): remove "contextual-help" suffix 2025-03-05 21:44:40 +02:00
Elian Doran
01f9ddaea7 fix(in-app-help): unnecessary bottom padding 2025-03-05 21:39:26 +02:00
Elian Doran
07b1f69f7a fix(in-app-help): fix image max width 2025-03-05 21:38:56 +02:00
Elian Doran
dd28ce9e5d feat(note_language): add in-app help 2025-03-05 21:38:41 +02:00
Elian Doran
e514396c42 feat(docs): prepare documentation for RTL text support 2025-03-05 21:27:53 +02:00
Adorian Doran
f2d1726852 style(next)/tab bar: do not use a distinct visual state for tabs being dragged in horizontal toolbar layout 2025-03-05 21:15:35 +02:00
Adorian Doran
6b9311f9ef style(next)/toolbar: rollback the sync status icon animation 2025-03-05 21:03:23 +02:00
Elian Doran
9ced699751 feat(rtl): reposition buttons for read-only language change 2025-03-05 19:23:04 +02:00
Elian Doran
c217d1c037 chore(i18n: rename localization setting 2025-03-05 19:20:34 +02:00
Panagiotis Papadopoulos
0f0e55deb2 chore(lint): fix lint issues in src/routes 2025-03-05 18:09:44 +01:00
Elian Doran
a9938cbf7d feat(options/language): improve description & add translations 2025-03-05 18:54:59 +02:00
Elian Doran
3d600c885a feat(note_language): refresh rtl for read-only notes 2025-03-05 17:33:46 +02:00
Elian Doran
24c2b54bc9 feat(note_language): reload list of languages when changed 2025-03-05 17:23:22 +02:00
Elian Doran
8e2517459f feat(rtl): align floating buttons properly 2025-03-05 17:12:14 +02:00
Elian Doran
25c9f52cf4 feat(note_language): add a button to configure the language 2025-03-05 16:44:36 +02:00
Elian Doran
4a75f9f48b feat(rtl): adjust padding for read-only text 2025-03-05 14:39:26 +02:00
Elian Doran
51813099b3 feat(note_language): reinitialize editor when switching between RTL and LTR notes 2025-03-05 14:35:05 +02:00
Elian Doran
93e2515190 Merge pull request #1332 from TriliumNext/port_dialogs
port dialogs
2025-03-05 14:21:02 +02:00
JYC333
883a67bcfe Merge branch 'develop' into port_dialogs 2025-03-05 13:09:00 +01:00
Elian Doran
17e3bd9f6d Merge pull request #1339 from TriliumNext/build_server-build-dump-db
build(build-server): stop copying dump-db during build
2025-03-05 13:48:13 +02:00
Jin
d4fe8cf4b9 refactor: 💡 add event data and remove redundant code 2025-03-05 12:44:36 +01:00
Elian Doran
4c0ecc4df9 Merge pull request #1315 from TriliumNext/chore_add-eslint
chore: add eslint as linter
2025-03-05 12:55:48 +02:00
Elian Doran
2b0cb8225f Merge branch 'develop' into build_server-build-dump-db 2025-03-05 12:55:14 +02:00
Elian Doran
3d7798859f Merge pull request #1338 from TriliumNext/chore_move-deps-to-dev
chore(deps): move deps to devDeps
2025-03-05 12:54:59 +02:00
Panagiotis Papadopoulos
f8c8b9eb3f build(build-server): stop copying dump-db during build 2025-03-05 09:28:41 +01:00
Panagiotis Papadopoulos
33eb8fe820 chore(deps): move deps to devDeps
* happy-dom → only needed for tests
* knockout → this is now bundled by webpack during build stage
* ts-loader → only needed during build stage
2025-03-05 09:24:20 +01:00
Panagiotis Papadopoulos
d8ea415b84 Merge branch 'develop' into chore_add-eslint 2025-03-05 09:16:02 +01:00
Elian Doran
7bcbf29f21 fix(canvas): unable to copy-paste 2025-03-05 09:27:20 +02:00
Elian Doran
ea3364ab09 feat(note_language): support RTL in read-only text 2025-03-04 23:13:23 +02:00
Elian Doran
115c3bbeb0 chore(client/ts): port read_only_text 2025-03-04 22:59:46 +02:00
Elian Doran
f150ec15bc refactor(client): move finding by locale in service 2025-03-04 22:45:38 +02:00
Elian Doran
d582fdea02 feat(settings/i18n): filter only display languages 2025-03-04 22:19:37 +02:00
Elian Doran
775fd3f22b feat(note_language): filter by enabled languages 2025-03-04 21:56:21 +02:00
Elian Doran
9f6b97cdfa feat(note_language): display checkbox to the right 2025-03-04 21:31:19 +02:00
Elian Doran
d31ba6f47c feat(note_language): add checkbox 2025-03-04 21:04:50 +02:00
Elian Doran
b150a05a55 feat(note_language): group right-to-left languages 2025-03-04 20:58:32 +02:00
Elian Doran
4c89a2ac27 feat(i18n): sort languages alphabetically 2025-03-04 20:51:22 +02:00
Elian Doran
951f4c4921 feat(note_language): align list of languages to the right 2025-03-04 20:48:36 +02:00
Elian Doran
856410120c feat(note_language): improve layout of list of languages 2025-03-04 20:39:30 +02:00
Elian Doran
427b7fe992 feat(note_language): rebuild editor when language is switched 2025-03-04 20:34:36 +02:00
Elian Doran
c6b3c1bf88 feat(note_language): add right-to-left languages 2025-03-04 20:31:51 +02:00
Elian Doran
42d3334c9d feat(note_language): initialize CKEditor with right language 2025-03-04 19:29:02 +02:00
Elian Doran
3546ac6ded refactor(note_language): remove unnecessary fields 2025-03-04 18:40:26 +02:00
Elian Doran
b81fd69981 fix(note_language): crash if user entered invalid locale 2025-03-04 18:38:07 +02:00
Elian Doran
bb42b5fb19 feat(note_language): allow removing language tag 2025-03-04 18:35:42 +02:00
Elian Doran
598586f735 feat(note_language): update value of combobox 2025-03-04 18:30:43 +02:00
Elian Doran
bccfeed431 feat(note_language): set language attribute for note 2025-03-04 17:54:52 +02:00
Elian Doran
dbea35f9f3 feat(note_language): set a default value for the combo 2025-03-04 17:49:58 +02:00
Elian Doran
acc76f9b74 feat(note_language): add an option for no language set 2025-03-04 17:48:04 +02:00
Elian Doran
5b4d323936 feat(client): display list of languages 2025-03-04 17:43:24 +02:00
Elian Doran
fd652ea7a5 feat(client): hide language for non-text notes 2025-03-04 17:29:37 +02:00
Elian Doran
642b84ce6b feat(client): create an empty language switcher at note level 2025-03-04 17:27:00 +02:00
Elian Doran
c0c85e96ce chore(client/ts): port basic_properties 2025-03-04 17:18:17 +02:00
Panagiotis Papadopoulos
2c7a25b7fc chore(eslint): add rule for unused vars
this is already used across codebase: using "_" as placeholder for deliberately unused vars (e.g. when destructuring arrays)
2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
6a5e622637 scripts(linter): remove "--cache" flag
using it is not recommended for ts-eslint:
https://typescript-eslint.io/troubleshooting/faqs/eslint#can-i-use-eslints---cache-with-typescript-eslint
2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
b2ac5b6337 chore(eslint): ignore certain folders 2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
40144fc171 deps: update typescript-eslint to 8.26.0 2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
1e599af480 chore(eslint): disable 'no-undef' rule
For TS projects this is already enforced by tsc, see:
https://eslint.org/docs/latest/rules/no-undef#handled_by_typescript
2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
744a0b8042 chore: ignore build related folder in eslint config 2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
0d66f9d4eb chore(scripts): add dev:linter-check and dev:linter-fix
purposely *not* named as dev:eslint, just to "decouple" the script from eslint, in case there ever is the need to change that :-)
2025-03-04 12:19:23 +01:00
Panagiotis Papadopoulos
aed835b6c2 chore: add initial eslint configuration
rules will need some finetuning still
2025-03-04 12:19:23 +01:00
Adorian Doran
ce2961ebd6 style(next)/toolbar: animate the sync status icon 2025-03-04 11:55:37 +02:00
Adorian Doran
b03c75c09b style(next): fix note menu artifacts in split view 2025-03-04 11:19:33 +02:00
Adorian Doran
77c4b50215 style(next)/SQL Console: tweak appearance 2025-03-04 11:14:10 +02:00
Elian Doran
901d2d72ae feat(print): improve code block style 2025-03-04 09:29:53 +02:00
Adorian Doran
6555add2aa client/options/other: tweak the "HTML Import Tags" section 2025-03-04 01:48:09 +02:00
Jin
c4d2c2b8de refactor: 💡 remove redundant code 2025-03-04 00:42:31 +01:00
Jin
f1ecab84d9 refactor: 💡 remove unused code 2025-03-04 00:35:29 +01:00
Jin
f1f55fd4f8 fix: 🐛 fix add external link
fix can't add external link from add link dialog
2025-03-04 00:33:09 +01:00
Adorian Doran
a97c8087a1 style(next)/shell: correct border offset, add entrance animation for notes 2025-03-04 01:31:36 +02:00
Adorian Doran
ee40bb3b33 style(next)/ribbon/note info: improve the layout on constrained width 2025-03-04 00:55:24 +02:00
Jin
5543650166 chore: 🤖 (ts) port add_link dialog 2025-03-03 23:54:09 +01:00
Adorian Doran
dcea67fa9d Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-04 00:12:15 +02:00
Adorian Doran
3d2801096f style(next): add a border to separate note splits 2025-03-04 00:12:02 +02:00
Elian Doran
c41fbe8e45 fix(client): build error due to null 2025-03-03 23:40:32 +02:00
Elian Doran
3855f0e75f Revert "port tab manager to ts"
This reverts commit 45a50f3aa1.
2025-03-03 23:34:54 +02:00
Adorian Doran
3f641c98fb Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-03 23:08:25 +02:00
Adorian Doran
9ca43aceed style(next)/search in note: tweak the border line 2025-03-03 23:08:16 +02:00
Jin
0e81f086c0 chore: 🤖 (ts) port about dialog 2025-03-03 22:06:04 +01:00
Elian Doran
5289f94553 Merge pull request #1320 from TriliumNext/porting_js
chore: port more js to ts
2025-03-03 23:04:14 +02:00
Adorian Doran
d779cc1854 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-03-03 22:49:16 +02:00
Adorian Doran
3b16ad508e style(next)/search in note: gracefully handle narrow widths 2025-03-03 22:47:32 +02:00
Elian Doran
cf554fc4af Merge branch 'develop' into porting_js 2025-03-03 22:46:10 +02:00
Jin
1b76442367 chore: 🤖 fix webpack build error 2025-03-03 21:03:45 +01:00
Elian Doran
2213c500c2 fix(client): allow overriding position using getter (closes #1321) 2025-03-03 21:03:45 +01:00
Elian Doran
3c290c9fc5 fix(client): allow overriding position using getter (closes #1321) 2025-03-03 21:20:42 +02:00
Elian Doran
8e66dc300f Merge branch 'develop' into porting_js 2025-03-03 20:30:15 +02:00
Elian Doran
ef9eebc030 Merge pull request #1283 from TriliumNext/chore_prettier
chore: fix prettier code style issues
2025-03-03 20:28:33 +02:00
Elian Doran
65a51153b3 Merge remote-tracking branch 'origin/develop' into chore_prettier 2025-03-03 20:21:47 +02:00
Elian Doran
741a4af570 fix(build): an argument was not provided 2025-03-03 20:00:52 +02:00
Elian Doran
2a4d3b71f2 Merge pull request #1324 from TriliumNext/renovate/prettier-3.x
chore(deps): update dependency prettier to v3.5.3
2025-03-03 19:57:33 +02:00
JYC333
0d5bef422a Merge branch 'develop' into renovate/prettier-3.x 2025-03-03 18:30:58 +01:00
Adorian Doran
605d99a7e8 style(next): horizontal toolbar layout tweaks 2025-03-03 18:17:13 +02:00
Elian Doran
e930ae5f40 feat(rtl): add language switcher toolbar 2025-03-03 18:12:15 +02:00
Adorian Doran
4d6e115208 style(next)/attribute detail dialog: tweak input labels 2025-03-03 18:04:21 +02:00
Adorian Doran
495a394d79 style(next)/search in note: remove the italic font style from the match counters 2025-03-03 17:50:59 +02:00
Adorian Doran
e55708f79f client/settings/appearance: fix restart application button style 2025-03-03 16:04:23 +02:00
Adorian Doran
c7e9963db1 client/setup dialog: add a margin after the password field 2025-03-03 16:00:03 +02:00
Jin
ad711ff00c chore: 🤖 clean up debug code 2025-03-03 11:29:37 +01:00
renovate[bot]
125eef234b chore(deps): update dependency prettier to v3.5.3 2025-03-03 02:26:21 +00:00
Jin
45a50f3aa1 port tab manager to ts 2025-03-03 01:04:42 +01:00
Jin
8e0b9d17a4 port split note container to ts 2025-03-02 21:52:48 +01:00
Elian Doran
b99ead6a84 feat(setings): add option section for settings 2025-03-02 22:23:47 +02:00
Elian Doran
e7d2be4663 feat(options/language): store list of languages 2025-03-02 21:58:40 +02:00
Panagiotis Papadopoulos
2efc1a0e2e chore(prettier): ignore public/app/doc_notes 2025-03-02 20:48:07 +01:00
Panagiotis Papadopoulos
2beaaa95bf chore(prettier): fix code style 2025-03-02 20:47:57 +01:00
Elian Doran
bc787213f4 feat(options/language): display list of languages 2025-03-02 21:47:53 +02:00
Elian Doran
73daec6644 feat(settings): create a language settings section 2025-03-02 21:24:31 +02:00
Elian Doran
43d8affcc8 feat(i18n): translate unknown content widget message 2025-03-02 21:17:04 +02:00
Elian Doran
67509bc92f fix(migration): no such table "tasks" 2025-03-02 20:43:52 +02:00
Elian Doran
1ca485e4b5 fix(migration): using async in transaction 2025-03-02 20:43:01 +02:00
Elian Doran
16ad054d2a refactor(migration): remove async import from migration scripts 2025-03-02 20:28:41 +02:00
Elian Doran
b4310b5275 fix(migration): ESM imports not working on Windows 2025-03-02 20:23:38 +02:00
Elian Doran
f04e747786 fix(migration): TypeScript migrations not run 2025-03-02 19:59:50 +02:00
Elian Doran
a80c3e32f1 fix(migration): JavaScript-based migrations not working 2025-03-02 19:39:06 +02:00
Elian Doran
01ff3d396d chore(test): add database testing migration 2025-03-02 17:11:07 +02:00
Elian Doran
49a22bce80 Merge pull request #1316 from TriliumNext/renovate/force-graph-1.x
fix(deps): update dependency force-graph to v1.49.2
2025-03-02 11:43:36 +02:00
renovate[bot]
436788cf96 fix(deps): update dependency force-graph to v1.49.2 2025-03-02 02:33:14 +00:00
Elian Doran
c8a7f893e1 Merge pull request #1312 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.8
2025-03-01 10:18:47 +02:00
Elian Doran
17884558ad fix(server): build errors after newer types 2025-03-01 10:16:24 +02:00
Elian Doran
8e4530293d Merge pull request #1314 from hasecilu/i18n/Spanish
chore(i18n): update Spanish translation
2025-03-01 10:07:11 +02:00
Elian Doran
072b5b2035 Merge pull request #1313 from TriliumNext/renovate/typescript-5.x
chore(deps): update dependency typescript to v5.8.2
2025-03-01 10:06:30 +02:00
renovate[bot]
455b2bf338 chore(deps): update dependency @types/node to v22.13.8 2025-03-01 08:05:52 +00:00
Elian Doran
9a5c08f117 Merge pull request #1304 from TriliumNext/chore_ts-port_read_only_code
chore(ts): start porting read_only_code
2025-03-01 10:05:11 +02:00
hasecilu
038e3a15cd chore(i18n): update Spanish translation 2025-02-28 22:44:48 -06:00
renovate[bot]
6c67c9a41f chore(deps): update dependency typescript to v5.8.2 2025-03-01 01:31:56 +00:00
Panagiotis Papadopoulos
d6b164413e chore(ts): port read_only_code 2025-02-28 23:19:42 +01:00
Elian Doran
259ce440c5 fix(build): type error due to test 2025-02-28 22:02:41 +02:00
Elian Doran
2a75819734 chore(docs): start writing entrypoint for editing docs 2025-02-28 22:02:29 +02:00
Elian Doran
4211e4e11c chore(deps): npm audit fix 2025-02-28 21:24:26 +02:00
Elian Doran
f76f679800 feat(calendar): allow relations in promoted attributes 2025-02-28 20:46:41 +02:00
Elian Doran
e7d06fceba test(calendar): labels as promoted attributes 2025-02-28 20:34:30 +02:00
Elian Doran
a8b119e4df test(calendar): relation as custom title with attribute relation 2025-02-28 20:13:37 +02:00
Elian Doran
f953f6514f test(calendar): relation as custom title with attribute label 2025-02-28 20:11:45 +02:00
Elian Doran
ca7cff45c9 test(calendar): relation as custom title 2025-02-28 19:55:02 +02:00
Elian Doran
6f2a0f9ee1 refactor(types): better type definitions 2025-02-28 19:44:32 +02:00
Elian Doran
5b9bfac1f8 test(calendar): custom label as title 2025-02-28 19:36:50 +02:00
Elian Doran
f674ba0d4a test(calendar): custom start/end date 2025-02-28 19:32:32 +02:00
Elian Doran
5731cb9b4d test(calendar): start date & end date 2025-02-28 19:23:45 +02:00
Elian Doran
d83b2a6a38 refactor(test): dedicated helper for froca 2025-02-28 19:18:37 +02:00
Elian Doran
ad18916973 refactor(test): dedicated folder for test support 2025-02-28 19:13:33 +02:00
Elian Doran
2531e5617f refactor(test): remove need for async import 2025-02-28 19:12:19 +02:00
Elian Doran
f646e0f724 refactor(test): global initialisation 2025-02-28 19:11:12 +02:00
Elian Doran
7a34a2f59c Merge branch 'develop' of ssh://github.com/TriliumNext/Notes into develop 2025-02-28 19:03:50 +02:00
Elian Doran
85882d843b chore(test): basic test harness for calendar view event testing 2025-02-28 19:03:08 +02:00
Elian Doran
f60667b618 Merge pull request #1306 from clsty/develop
Translation: Fix, improve and finish for zh-CN
2025-02-28 18:56:19 +02:00
clsty
c8c7680a10 Fix missing translation on zh-CN translation 2025-03-01 00:13:25 +08:00
Elian Doran
6df588da22 chore(client/ts): port backend_log 2025-02-28 17:59:38 +02:00
Elian Doran
423037b9d6 chore(client/ts): port search_options 2025-02-28 17:58:51 +02:00
Elian Doran
2c714afa21 chore(client/ts): port floating buttons 2025-02-28 17:55:47 +02:00
Elian Doran
83d25964c7 Merge pull request #1307 from TriliumNext/porting_js
porting js
2025-02-28 17:49:35 +02:00
Elian Doran
e58a61051b Merge pull request #1302 from TriliumNext/build_webpack-i18n-dayjs-splitjs
build: let webpack handle `dayjs`, `split.js` and `i18next`
2025-02-28 17:44:33 +02:00
clsty
77c0bfe93b Minor improves on zh-CN translation 2025-02-28 23:23:29 +08:00
clsty
9826256e29 Fix indent 2025-02-28 23:03:59 +08:00
Jin
a3d9b04d96 port history navigation, remove redundance 2025-02-28 15:45:26 +01:00
Jin
c67445f511 optimize month selector behavior 2025-02-28 15:09:28 +01:00
Jin
a99c86ea9f port calender to ts 2025-02-28 15:09:01 +01:00
clsty
23553692ac Update zh-CN translation. 2025-02-28 19:30:14 +08:00
Panagiotis Papadopoulos
1450e57a6a chore(deps): move "i18next-http-backend" to devDependencies
since it is not used in server side code and it is bundled by webpack, it is only needed during build stage -> devDependency
on server-side we use i18next and i18next-fs-backend -> so these need to stay in dependencies
2025-02-28 08:35:57 +01:00
Panagiotis Papadopoulos
d3283746fc fix(type_widgets/doc): import i18next
since we don't export the full i18n object (not sure why?),
I had to add an additional export "getCurrentLanguage"

-> needs to be a function, because otherwise it will be a static value (being set to undefined),
which is *not* what we want
2025-02-28 08:30:35 +01:00
Panagiotis Papadopoulos
f3148bf478 build: let webpack bundle i18next 2025-02-28 08:26:48 +01:00
Panagiotis Papadopoulos
b60f22c6b9 chore(deps): move "split.js" to devDependencies
since it is not used in server side code and it is bundled by webpack, it is only needed during build stage -> devDependency
2025-02-28 08:09:36 +01:00
Panagiotis Papadopoulos
559517ace1 build: let webpack bundle split.js 2025-02-27 23:00:44 +01:00
Panagiotis Papadopoulos
49a2eb0ccf build: let webpack bundle dayjs 2025-02-27 22:44:18 +01:00
Elian Doran
06a439e95d feat(options/apperance): hide layout orientation section 2025-02-27 19:31:36 +02:00
Elian Doran
a615b473a7 Merge pull request #1297 from TriliumNext/renovate/force-graph-1.x
fix(deps): update dependency force-graph to v1.49.1
2025-02-27 19:17:05 +02:00
Elian Doran
1a9c28f9bd Merge pull request #1298 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.3.0
2025-02-27 19:16:29 +02:00
Elian Doran
93d5b20362 Merge pull request #1299 from TriliumNext/renovate/axios-1.x
fix(deps): update dependency axios to v1.8.1
2025-02-27 19:14:51 +02:00
Elian Doran
6501b95eac Merge pull request #1300 from TriliumNext/renovate/mind-elixir-4.x
fix(deps): update dependency mind-elixir to v4.4.1
2025-02-27 19:14:08 +02:00
renovate[bot]
b0fa70870c fix(deps): update dependency mind-elixir to v4.4.1 2025-02-27 02:27:48 +00:00
renovate[bot]
74fc5562b2 fix(deps): update dependency axios to v1.8.1 2025-02-27 02:27:39 +00:00
renovate[bot]
c033ad261c chore(deps): update dependency electron to v34.3.0 2025-02-27 02:27:30 +00:00
renovate[bot]
fe7f2e43be fix(deps): update dependency force-graph to v1.49.1 2025-02-27 02:27:17 +00:00
Elian Doran
5435b3c8fd feat(calendar): allow customisable start & end dates 2025-02-27 00:02:58 +02:00
Elian Doran
7d5b0f825c Merge pull request #1295 from TriliumNext/feat_add-link-to-swagger-ui
feat(options/etapi): improve etapi options page description
2025-02-26 23:42:38 +02:00
Elian Doran
fd66da95f3 fix(options/etapi): comments being visible to the user 2025-02-26 23:42:03 +02:00
Elian Doran
8e5762b125 chore(i18n/ro): translate new messages 2025-02-26 23:09:39 +02:00
Elian Doran
bee1df4fdf feat(options/etapi): open swagger UI in in-app-help 2025-02-26 23:06:35 +02:00
Elian Doran
4df76fafe1 Merge branch 'develop' into feat_add-link-to-swagger-ui 2025-02-26 22:46:31 +02:00
Elian Doran
3d36d6d121 Merge pull request #1276 from TriliumNext/renovate/apple-actions-import-codesign-certs-3.x
chore(deps): update apple-actions/import-codesign-certs action to v3
2025-02-26 22:46:15 +02:00
Elian Doran
995d963450 Merge pull request #1294 from TriliumNext/fix-macos-artifact-names
Fix MacOS artifact names
2025-02-26 22:45:02 +02:00
Elian Doran
5d61f9fb12 fix(tasks): alignment of checkbox 2025-02-26 22:43:38 +02:00
Elian Doran
09f7645925 feat(tasks): improve layout 2025-02-26 22:43:38 +02:00
Elian Doran
2ea85dc238 feat(tasks): trim task name 2025-02-26 22:43:38 +02:00
Elian Doran
d0c703515b feat(tasks): display due date without time 2025-02-26 22:43:38 +02:00
Elian Doran
d73c9308a9 chore(server/test): adjust includes/excludes 2025-02-26 22:43:38 +02:00
Elian Doran
89eab387ba chore(test): html coverage 2025-02-26 22:43:38 +02:00
Elian Doran
6f9fd76465 fix(share): double request of credentials 2025-02-26 22:43:38 +02:00
Elian Doran
7ea3cb71f3 chore(server/test): password protected share 2025-02-26 22:43:38 +02:00
Elian Doran
fa60295ab2 feat(note_list): improve file footer 2025-02-26 22:43:38 +02:00
Elian Doran
ab5df9e010 feat(note_list): improve video preview 2025-02-26 22:43:38 +02:00
Elian Doran
e330d91df2 feat(file): display videos in full width 2025-02-26 22:43:38 +02:00
Elian Doran
07c2342b7b feat(file): display video in full-width & full-height 2025-02-26 22:43:38 +02:00
Elian Doran
9cc3598095 chore(ci): separate client & server coverage 2025-02-26 22:43:38 +02:00
Panagiotis Papadopoulos
0f1b4614fb chore(options/etapi): add TODO notice to get rid of current workaround 2025-02-26 21:07:56 +01:00
Panagiotis Papadopoulos
f1f5839ea2 feat(options/etapi): link to the swagger UI that we ship
since we are shipping it, why not link to it as well :-)
2025-02-26 21:07:56 +01:00
Panagiotis Papadopoulos
ba84c694b2 i18n(options/etapi): improve translatability of description string
convert the split up string into a single interpolated string,
which improves translatability (and allows LTR translations)
2025-02-26 21:07:56 +01:00
perf3ct
5109f865c7 Fix MacOS artifact names 2025-02-26 20:06:18 +00:00
Elian Doran
47f84fe4b4 Merge pull request #1292 from TriliumNext/bugfix/macos-fix2
Pass the required `APPLE` secrets to the `build-electron` action
2025-02-26 21:01:29 +02:00
perf3ct
1056176624 we have to pass the secret values to the composite github actions 2025-02-26 18:51:14 +00:00
perf3ct
634b57ce5d let's see if we can contain the signing explosion to just build-electron 2025-02-26 18:33:57 +00:00
Elian Doran
6fcd229b52 chore(ci): run unit tests in dev workflow 2025-02-26 18:58:27 +02:00
Elian Doran
bd933dde28 chore(test): disable download of images 2025-02-26 18:58:08 +02:00
Elian Doran
ef736edf09 chore(test): separate client & server tests 2025-02-26 18:39:00 +02:00
Elian Doran
909a74e8ac chore(test): disable regularly scheduled backup 2025-02-26 18:00:53 +02:00
Elian Doran
180c02d647 chore(test): migrate database to new version 2025-02-26 18:00:45 +02:00
Elian Doran
d92959e23a chore(i18n): reach 100% for Romanian 2025-02-26 17:44:25 +02:00
Elian Doran
3c8a42ed73 Merge pull request #1289 from Potjoe-97/FR-tra
Translation : FR update & tweaks
2025-02-26 17:33:27 +02:00
Elian Doran
43b1b8a306 Merge pull request #1286 from TriliumNext/fix_views_appPath_#1285
fix: EJS crash after failed login
2025-02-26 17:32:53 +02:00
Elian Doran
bb8277d035 Merge pull request #1281 from TriliumNext/porting_js
port toc widget button
2025-02-26 17:28:36 +02:00
Potjoe-97
9d188f9ecc Merge pull request #8 from Potjoe-97/patch-2
Translation: Update FR translation.json
2025-02-26 15:52:15 +01:00
Potjoe-97
f04d749440 Update translation.json 2025-02-26 15:47:25 +01:00
Potjoe-97
631a4ed9b2 Update server.json 2025-02-26 15:13:20 +01:00
Panagiotis Papadopoulos
1a0c35f43d refactor(routes/login): use "shorter" syntax for passing to ejs render 2025-02-26 08:50:36 +01:00
Panagiotis Papadopoulos
0aa1d602a1 fix(routes/login): add missing "appPath" to ejs render 2025-02-26 08:45:35 +01:00
Jin
d28dfc2b64 port toc widget button 2025-02-26 00:53:15 +01:00
Elian Doran
8b2788fa8c chore(scripts): fix start-prod environment 2025-02-25 20:44:10 +02:00
Elian Doran
ea04457c06 chore(i18n): refine error message for DB migration 2025-02-25 20:18:23 +02:00
Elian Doran
c935cb65a0 fix(tasks): not being able to mark tasks as done 2025-02-25 20:10:57 +02:00
Elian Doran
e7601f65bb feat(tasks): highlight overdue tasks 2025-02-25 19:55:10 +02:00
Elian Doran
64647df043 feat(tasks): sort by due date 2025-02-25 19:48:26 +02:00
Elian Doran
5838ac3bca feat(tasks): display due date in calendar-relative format 2025-02-25 19:38:15 +02:00
Elian Doran
7bc9114976 feat(tasks): display due date 2025-02-25 19:19:09 +02:00
Elian Doran
637ba78100 feat(tasks): display due date in editable textbox 2025-02-25 18:40:20 +02:00
Elian Doran
fcd7b986aa feat(tasks): make due date editable 2025-02-25 18:36:46 +02:00
Elian Doran
84e8559401 feat(tasks): allow only one editable section at one time 2025-02-25 17:46:17 +02:00
Elian Doran
06831ddc76 feat(tasks): start implementing expandable edit container 2025-02-25 17:43:28 +02:00
Elian Doran
cd78955080 Merge pull request #1270 from TriliumNext/porting_js
port js to ts
2025-02-25 17:21:22 +02:00
Elian Doran
175852f6cb refactor(client): remove unnecessary return type 2025-02-25 17:20:13 +02:00
Elian Doran
4149ebdc69 Merge pull request #1277 from TriliumNext/build_fix-missing-types-webpack
build(webpack): fix missing type declarations
2025-02-25 17:19:29 +02:00
Elian Doran
6d52d7943b Merge pull request #1275 from TriliumNext/renovate/chardet-2.x
fix(deps): update dependency chardet to v2.1.0
2025-02-25 17:18:26 +02:00
Elian Doran
8e4aead110 Merge pull request #1274 from TriliumNext/renovate/vitest-monorepo
chore(deps): update vitest monorepo to v3.0.7
2025-02-25 17:17:51 +02:00
Elian Doran
d434b416f3 Merge pull request #1273 from TriliumNext/renovate/typedoc-0.x
chore(deps): update dependency typedoc to v0.27.9
2025-02-25 17:17:28 +02:00
Elian Doran
ac050bca3b Merge pull request #1272 from TriliumNext/renovate/sass-1.x
chore(deps): update dependency sass to v1.85.1
2025-02-25 17:17:05 +02:00
Panagiotis Papadopoulos
194640db66 build(webpack): fix missing type declarations 2025-02-25 08:58:37 +01:00
renovate[bot]
05975a02fb chore(deps): update apple-actions/import-codesign-certs action to v3 2025-02-25 02:37:14 +00:00
renovate[bot]
7345cddc0a fix(deps): update dependency chardet to v2.1.0 2025-02-25 02:37:10 +00:00
renovate[bot]
a01da98b37 chore(deps): update vitest monorepo to v3.0.7 2025-02-25 02:37:01 +00:00
renovate[bot]
c80ec03126 chore(deps): update dependency typedoc to v0.27.9 2025-02-25 02:36:48 +00:00
renovate[bot]
cd5df24e6a chore(deps): update dependency sass to v1.85.1 2025-02-25 02:36:38 +00:00
Jin
1be92baf4a remove edit_button.js 2025-02-25 02:11:53 +01:00
Jin
16b58a58a3 port js to ts 2025-02-25 02:02:20 +01:00
Elian Doran
34762236d1 fix(build): errors due to missing command 2025-02-24 22:50:16 +02:00
Elian Doran
4240af6c43 Merge pull request #1267 from perfectra1n/develop
Enable MacOS code signing and notarization in GitHub Actions
2025-02-24 22:37:09 +02:00
Elian Doran
d85c670d7b Merge pull request #1268 from TriliumNext/port/client_ts
Port note tree to TypeScript
2025-02-24 21:59:31 +02:00
Elian Doran
23d01ec351 fix(build): type definitions for context menu 2025-02-24 21:35:35 +02:00
Elian Doran
7874e88b4a fix(build): fancytree's JQuery UI interfering with bootstrap 2025-02-24 21:35:23 +02:00
Jon Fuller
9d6caa84cd Merge branch 'develop' into develop 2025-02-24 08:13:59 -08:00
perf3ct
36ce2a3342 add back prettier-ignore comment for pano 2025-02-24 16:12:53 +00:00
Elian Doran
65804f9c2a chore(deps): revert changges to package-lock 2025-02-24 17:46:44 +02:00
Elian Doran
28ed616fa6 feat(search): focus on search string by default 2025-02-24 13:51:02 +02:00
Elian Doran
675a5e96e6 chore(client/ts): port search_string 2025-02-24 13:50:08 +02:00
Elian Doran
8ab0084e10 chore(client/ts): port search_definition 2025-02-24 13:45:36 +02:00
Elian Doran
2ab22e7b0e fix(client): type errors due to command change 2025-02-24 12:39:40 +02:00
Elian Doran
147c340529 Merge remote-tracking branch 'origin/develop' into port/client_ts 2025-02-24 10:14:52 +02:00
Elian Doran
87e687147d Merge remote-tracking branch 'origin/develop' into port/client_ts 2025-02-24 10:10:34 +02:00
perf3ct
b88980ea49 Clean up some of the verbosity 2025-02-24 00:59:08 +00:00
perf3ct
fe93ee90c7 Update Entitlements for MacOS 2025-02-24 00:59:02 +00:00
perf3ct
e9d4356492 Now we'll try the name with a space in it? 2025-02-24 00:44:50 +00:00
perf3ct
226cf8dfd7 Set up Signing and Notarizing for MacOS 2025-02-23 23:36:30 +00:00
Elian Doran
b91b243432 fix(tasks): selection contains spaces 2025-02-23 22:00:50 +02:00
Elian Doran
0ba4c9b9c7 fix(tasks): content flash when updating list of tasks 2025-02-23 21:54:58 +02:00
Elian Doran
31fcf7ea60 feat(tasks): clear text box when entering a task 2025-02-23 21:39:05 +02:00
Elian Doran
24c02e013b fix(import/enex): "Missing or wrong content type for resource" (fixes #943) 2025-02-23 19:58:43 +02:00
Elian Doran
d319eede1f style(views/calendar): disable link underline 2025-02-23 19:23:00 +02:00
Elian Doran
143b91936c Merge pull request #1261 from rom1dep/calendar_enh_attributes
feat(view/calendar): let the user specify attributes to be promoted o…
2025-02-23 19:16:35 +02:00
Elian Doran
95e6919dcf chore(calendar/view): remove unnecessary comment 2025-02-23 19:15:33 +02:00
Elian Doran
07147bf857 fix(view/calendar): add basic support for promoted attributes 2025-02-23 19:14:09 +02:00
Elian Doran
249c42e781 fix(view/calendar): guard condition breaking recursion 2025-02-23 18:39:34 +02:00
Elian Doran
2578d480a8 Merge remote-tracking branch 'origin/develop' into calendar_enh_attributes 2025-02-23 18:38:11 +02:00
Elian Doran
937a314260 Merge pull request #1260 from TriliumNext/chore_port-to-ts_attach
chore(ts): port various attachment related files to TS
2025-02-23 18:33:41 +02:00
Elian Doran
560b7ebe35 refactor(client): use workaround for TS error 2025-02-23 18:32:53 +02:00
Elian Doran
4883debd8d Merge remote-tracking branch 'origin/develop' into chore_port-to-ts_attach 2025-02-23 18:28:29 +02:00
Elian Doran
637845c396 Merge pull request #1258 from TriliumNext/fix_zenmode-ui-fixes
fix/i18n: tiny zen mode UI fixes
2025-02-23 18:27:56 +02:00
Elian Doran
d16026f8e6 Merge pull request #1257 from TriliumNext/chore_deps-update
chore: package.json maintenance
2025-02-23 18:26:59 +02:00
Elian Doran
e5aed0a3fc Merge pull request #1167 from TriliumNext/chore_ts-port_sync_status
chore(ts): port sync_status.ts
2025-02-23 18:26:23 +02:00
Elian Doran
8a08664dd5 Merge pull request #1263 from TriliumNext/renovate/prettier-3.x
chore(deps): update dependency prettier to v3.5.2
2025-02-23 18:24:51 +02:00
Elian Doran
b9f30fc501 chore(build): update Electron version for nix 2025-02-23 18:22:56 +02:00
Adorian Doran
70af260f0f style(next): note map: tweak the color of the "fix nodes" button while toggled 2025-02-23 17:48:58 +02:00
Adorian Doran
474b44608b style(next): forms: remove the background for range inputs 2025-02-23 17:13:56 +02:00
Adorian Doran
12f7119427 style(next): forms: fix tool buttons wrapped inside button groups 2025-02-23 17:01:32 +02:00
Panagiotis Papadopoulos
223a1fb203 refactor: FAttachment/Attachment_details - make fields public and get rid of getters
as per
https://github.com/TriliumNext/Notes/pull/1260#discussion_r1966615186
2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
fb0487ca36 chore(ts): port widgets/attachment_detail to TS 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
add6f80aeb chore(ts/content_renderer): add FAttachment types as used in attachment_detail 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
5d4dc91cc3 chore(ts/Fattachment): add getContentLength, since contentLength is private 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
99e520cbbc chore(ts/Fattachment): add getUtcDateScheduledForErasureSince, since UtcDateScheduledForErasureSince is private 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
1e7dee51fc chore(ts/Fattachment): add getOwnerId, since ownerId is private 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
4ddc36f6b8 chore(ts): import AttachmentRow type in load_results 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
3f2ae81fe4 chore(ts): start port of widgets/attachment_detail 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
d99a44867c chore(ts): add temporary ts-ignore to widgets/buttons/attachments_actions 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
8f643c62e3 chore(ts): port of type_widgets/attachment_list 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
f6785f7980 chore(ts): add missing isDeleted and deleteId types to AttachmentRow 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
bf15192b25 chore(ts): start port of widgets/buttons/attachment_actions 2025-02-23 12:52:37 +01:00
Panagiotis Papadopoulos
70756fe795 chore(ts): start port of type_widgets/attachment_detail 2025-02-23 12:52:36 +01:00
Panagiotis Papadopoulos
31170744d1 chore(ts): allow link.createLink notePath type to accept undefined
it can also accept undefined -> it is even handled in that first if block.
change required for upcoming port of attachment_*.js files
2025-02-23 12:52:36 +01:00
Adorian Doran
1dfa4a8bc2 client: note map: improve the appearance 2025-02-23 06:17:57 +02:00
renovate[bot]
e9f5272d98 chore(deps): update dependency prettier to v3.5.2 2025-02-23 02:09:16 +00:00
Romain DEP.
07443042a1 feat(view/calendar): let the user specify attributes to be promoted onto the calendar view, and render them inside the event title 2025-02-22 23:34:14 +01:00
Panagiotis Papadopoulos
4523307ead i18n(close_zen_button): add a translatable title to the button
previously it only displayed the keyboard shortcut, without any extra info
2025-02-22 16:12:12 +01:00
Panagiotis Papadopoulos
755b20bbab fix(global_menu): add missing <kbd> to zen mode 2025-02-22 16:01:49 +01:00
Panagiotis Papadopoulos
49b52d3124 chore: run npm audit fix
1 vuln fixed, 6 still open, but there is no fix for these yet
https://github.com/advisories/GHSA-67mh-4wv8-2f99
2025-02-22 15:47:30 +01:00
Panagiotis Papadopoulos
da69ee3285 chore(types): move types to devDependencies 2025-02-22 15:44:35 +01:00
Panagiotis Papadopoulos
9fb95585f5 chore(ts): port sync_status.ts 2025-02-22 14:21:56 +01:00
Elian Doran
2380d0af85 Merge pull request #1254 from TriliumNext/ci_remove-extra-arm64-handling
ci: remove unneeded extra arm64 handling
2025-02-22 14:58:50 +02:00
Elian Doran
f6224d9ec4 Merge pull request #1168 from TriliumNext/chore_bootstrap-ts-ignore
build: bundle bootstrap with webpack
2025-02-22 14:57:47 +02:00
Elian Doran
58a8821c22 Merge pull request #1234 from TriliumNext/feature/task_list
Task List
2025-02-22 14:37:44 +02:00
Elian Doran
fc27c4fc7b feat(db): create task database in schema 2025-02-22 14:36:15 +02:00
Elian Doran
0b11f4d9c7 chore(server): bump sync version 2025-02-22 14:34:44 +02:00
Elian Doran
50d491b432 build(release): update master branch automatically 2025-02-22 14:25:31 +02:00
Panagiotis Papadopoulos
2492bf60df chore(ci): add zip to description 2025-02-22 13:15:45 +01:00
Panagiotis Papadopoulos
49550e8e69 chore(ci): remove now unneeded arm64 workaround
the change is now part of electron-forge 7.7.0 which we depend on since
fa05f15753
2025-02-22 13:15:45 +01:00
Panagiotis Papadopoulos
a0442ded58 chore: get rid of bootstrap related ts-ignore 2025-02-22 13:09:28 +01:00
Panagiotis Papadopoulos
cdb988ff64 webpack: revert accidental changing of devtool 2025-02-22 13:02:40 +01:00
Elian Doran
899ad6450a build(release): use different commit message 2025-02-22 14:02:13 +02:00
Elian Doran
8390807212 release 0.92.2-beta 2025-02-22 13:59:41 +02:00
Elian Doran
60da367570 Merge pull request #1253 from TriliumNext/ci_fix-missing-windows-zip
fix(ci): add missing windows zip build target
2025-02-22 13:56:01 +02:00
Panagiotis Papadopoulos
36b0970835 fix(ci): add missing windows zip build target 2025-02-22 12:41:24 +01:00
Elian Doran
3bea6af20e chore(release): 0.92.1-beta 2025-02-22 12:58:30 +02:00
Panagiotis Papadopoulos
e7d204dfd2 chore(copy-dist): remove now unneeded manual copying of bootstrap dir
webpack is taking care of that for us
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
1ded78975e deps: remove now unused style-loader 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
55bdd4fffc views: add TODO comment 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
0b4f5e998e webpack: add filename option to miniCssExtractPlugin
commented out for now, because it currently does not make sense yet.
This will be working, when I change webpack output to the "build" folder
instead of the current (messy) way, where it outputs into src/public/app-dist
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
dde24785b8 entrypoint: add missing login entry point and port to TS 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
f6d9b42911 entrypoint: add missing, currently required set_password entry point
TODO: I think this can actually be part of the setup entrypoint/view at some point
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
f78a6ed14b views: import webpack created entrypoint css
→ this is currently only consisting of bootstrap, but should in future be more useful
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
837697c503 bootstrap: import bootstrap css in entry points 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
1b309675c8 fix(webpackMiddleware): add (now) missing plugins declaration from productionConfig
required since we used `mini-css-extract-plugin` now
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
ac53079a39 webpack: replace style-loader with mini-css-extract-plugin
will allow to have css files instead of style blocks in the html file
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
19e19ca052 assets: remove bootstrap reference 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
5361161433 views: remove bootstrap references 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
762c7dab83 build: add bootstrap webpack related dependencies
https://getbootstrap.com/docs/5.3/getting-started/webpack/
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
ba3599911f chore(bootstrap): import Bootstrap modules 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
fc6b9e00bc webpack: add bootstrap webpack config
https://getbootstrap.com/docs/5.3/getting-started/webpack/
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
17860e6715 fix(note_type_choosers): fix glob.activeDialog assignment
the same thing is done in `confirm.ts` as well, where glob.activeDialog is set to `this.$widget`
2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
ad8adeda0a fix(global_menu): fix non-existing option (according to TS) 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
bc28f323b8 chore(ts): get rid of bootstrap related ts-ignores 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
4f171fd966 chore(ts): get rid of bootstrap related ts-ignores 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
65ad4c3a2b chore(ts): get rid of bootstrap related ts-ignores 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
cc1a01955a chore(ts): get rid of bootstrap related ts-ignores 2025-02-22 11:56:56 +01:00
Panagiotis Papadopoulos
cf11be7f35 chore(ts): get rid of bootstrap related ts-ignores 2025-02-22 11:56:56 +01:00
Elian Doran
3c83112240 Merge pull request #1250 from TriliumNext/feat_typescript-codenote
feat(options_init): add typescript as default set codeNotesMimeTypes value
2025-02-22 12:55:40 +02:00
Elian Doran
4e876ed24d fix(build): build errors after changing meta data type 2025-02-22 12:52:25 +02:00
Elian Doran
94ce01bbc2 chore(docs): update documentation 2025-02-22 12:49:09 +02:00
Elian Doran
411e3dfa0e server(export): export Markdown using ATX heading syntax (closes #1251) 2025-02-22 12:45:21 +02:00
Elian Doran
a1bfc6aae7 feat(hidden_subtree): update help note icons 2025-02-22 12:31:39 +02:00
Elian Doran
97bc103e76 feat(in_app_help): support folder icons 2025-02-22 12:30:47 +02:00
Panagiotis Papadopoulos
9da1f55409 feat(options_init): add typescript as default set codeNotesMimeTypes value
since it is a very widespread/popular language, it makes sense to have it on by default.

closes #1219
2025-02-22 11:19:32 +01:00
Elian Doran
017fba518d feat(in_app_help): remove help notes that are no longer present in structure 2025-02-22 12:09:11 +02:00
Elian Doran
63584c153c feat(views/calendar): filter notes by ancestor 2025-02-22 11:31:36 +02:00
Adorian Doran
a4a2e55415 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-22 11:13:24 +02:00
Adorian Doran
4a1691ac31 style(next): promoted attributes widget: update narrow view breakpoint 2025-02-22 11:13:20 +02:00
Elian Doran
a3fbf15902 Merge remote-tracking branch 'origin/develop' into feature/task_list 2025-02-22 11:03:18 +02:00
Elian Doran
5a8d5c59f5 feat(views/calendar): support workspaceCalendarRoot 2025-02-22 10:59:03 +02:00
Elian Doran
a9cebe312f refactor(views/calendar): use specific API for date notes for performance 2025-02-22 10:59:03 +02:00
Elian Doran
43f79ca813 feat(views/calendar): click to go to day note 2025-02-22 10:59:03 +02:00
Elian Doran
5c1db3cab2 feat(views/calendar): disable interaction in calendar root mode 2025-02-22 10:59:03 +02:00
Elian Doran
bc4d820cb0 feat(views/calendar): display child notes of days 2025-02-22 10:59:03 +02:00
Elian Doran
f4e6edd19e feat(views/calendar): basic recursion for calendar root 2025-02-22 10:59:03 +02:00
Elian Doran
530340f753 fix(client): sporadious crash with classic toolbar not being available 2025-02-22 10:59:03 +02:00
Adorian Doran
fcc1068b06 style(next): promoted attributes widget: improve appearance 2025-02-22 10:55:01 +02:00
Adorian Doran
6d19e315f4 style(next): promoted attributes widget: improve appearance on narrow width 2025-02-22 10:19:26 +02:00
Adorian Doran
7269c1b0aa style(next): promoted attributes widget: improve appearance 2025-02-22 10:10:58 +02:00
Adorian Doran
8e69cf79a6 client: promoted attributes widget: add placeholder for blank input fields 2025-02-22 10:05:14 +02:00
Elian Doran
46f543ad54 Merge pull request #1207 from maphew/bare2share2
Bare2share - Redirect bare domain to defined #shareRoot
2025-02-22 09:25:30 +02:00
Elian Doran
38dbf6efcd Merge pull request #1220 from TriliumNext/feat_friendly-numbers-note-revision
feat: friendly numbers note revision
2025-02-22 09:24:37 +02:00
Elian Doran
8e68ddafd5 Merge pull request #1239 from TriliumNext/i18n_use-empty-string-instead-of-english
i18n: use empty string instead of English string
2025-02-22 09:24:14 +02:00
Elian Doran
0c43b387ce Merge pull request #1228 from TriliumNext/feat_friendly-numbers-protected_session_timeout
feat: friendly numbers protected session timeout
2025-02-22 09:23:23 +02:00
Elian Doran
8aa560eb82 Merge pull request #1243 from TriliumNext/renovate/typedoc-0.x
chore(deps): update dependency typedoc to v0.27.8
2025-02-22 09:22:23 +02:00
Elian Doran
3a2b8e9791 Merge pull request #1242 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.5
2025-02-22 09:22:09 +02:00
Elian Doran
468b3b6027 Merge pull request #1244 from TriliumNext/renovate/swagger-ui-express-4.x
fix(deps): update dependency @types/swagger-ui-express to v4.1.8
2025-02-22 09:21:48 +02:00
Elian Doran
f872073f65 Merge pull request #1245 from TriliumNext/renovate/ws-8.x
fix(deps): update dependency ws to v8.18.1
2025-02-22 09:21:23 +02:00
Elian Doran
ef4fc0a180 feat(html_sanitizer): enforce strict style rules (closes #931) 2025-02-22 09:18:47 +02:00
Adorian Doran
1d47df5f28 style(next): forms/input groups: improve CSS 2025-02-22 02:37:13 +02:00
Adorian Doran
77264b5385 style(next): forms/input groups: fix icons being skewed in certain conditions 2025-02-22 02:35:24 +02:00
Adorian Doran
41e925dc94 style(next): forms: add support for date and time input fields 2025-02-22 02:31:20 +02:00
Adorian Doran
789178061b style(next): promoted attributes widget: improve CSS, add right margin 2025-02-22 02:21:19 +02:00
renovate[bot]
8011969b9d fix(deps): update dependency ws to v8.18.1 2025-02-22 00:06:30 +00:00
renovate[bot]
9ab2fe85bd fix(deps): update dependency @types/swagger-ui-express to v4.1.8 2025-02-22 00:06:21 +00:00
renovate[bot]
6c818427fc chore(deps): update dependency typedoc to v0.27.8 2025-02-22 00:06:14 +00:00
renovate[bot]
7dab171a0c chore(deps): update dependency @types/node to v22.13.5 2025-02-22 00:06:04 +00:00
Adorian Doran
c680c3476b Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-22 02:05:22 +02:00
Adorian Doran
bf0b6ce554 style(next): promoted attributes widget: improve appearance 2025-02-22 02:05:19 +02:00
Elian Doran
bedc61c3d0 feat(import/zip): support UTF-16 LE with BOM (closes #1241) 2025-02-22 01:37:22 +02:00
Elian Doran
c925ae5f15 feat(import/single): support UTF-16 LE with BOM for markdown notes 2025-02-22 01:37:22 +02:00
Elian Doran
77ee7f96c1 feat(import/single): support UTF-16 LE with BOM for text notes 2025-02-22 01:37:22 +02:00
Elian Doran
cadd78524c feat(import/single): support UTF-16 LE with BOM for code notes 2025-02-22 01:37:22 +02:00
Elian Doran
fd4f35e879 feat(import/single): support UTF-16 LE with BOM for HTML 2025-02-22 01:37:22 +02:00
Adorian Doran
39f00bd568 style(next): promoted attributes widget: tweak input groups 2025-02-22 01:35:10 +02:00
Adorian Doran
ee2d4c6830 style(next): promoted attributes widget: tweak checkboxes 2025-02-22 01:30:55 +02:00
Adorian Doran
e93d47f664 style(next): promoted attributes widget: tweak buttons 2025-02-22 00:53:24 +02:00
Adorian Doran
0c88c4c3ee style(next): partially restyle the promoted attributes widget 2025-02-21 21:31:26 +02:00
Elian Doran
81bdd57398 feat(views/calendar): display event icon 2025-02-21 18:40:54 +02:00
Elian Doran
fe5182ebc6 feat(views/calendar): add option to show week numbers 2025-02-21 17:56:34 +02:00
Elian Doran
42d46bdb72 feat(views/calendar): add option to hide weekends 2025-02-21 17:56:34 +02:00
Elian Doran
710cf68c06 feat(views/calendar): make calendar full height 2025-02-21 17:56:34 +02:00
Elian Doran
300bb561bb Merge pull request #1240 from rom1dep/calendar_enh_color
feat(view/calendar): support coloring
2025-02-21 17:56:24 +02:00
Panagiotis Papadopoulos
96961898ca i18n: use empty string instead of English string
it will fallback to the English string by default
2025-02-21 08:04:43 +01:00
Panagiotis Papadopoulos
1520913686 i18n: use empty string instead of English string
it will fallback to the English string by default
2025-02-21 07:57:07 +01:00
Elian Doran
0e5b8af3a4 Merge remote-tracking branch 'origin/develop' into feature/task_list 2025-02-21 08:53:51 +02:00
Panagiotis Papadopoulos
6fae7a98f5 i18n: use empty string instead of English string
it will fallback to the English string by default
2025-02-21 07:41:50 +01:00
Elian Doran
57dc168c26 Merge pull request #1223 from TriliumNext/feat_timeSelector-min-input
feat: time selector add support for handling min required input
2025-02-20 22:49:14 +02:00
Elian Doran
946d9aee40 feat(settings/share): add subtitles 2025-02-20 22:34:51 +02:00
Elian Doran
16b16927ef feat(settings/share): add title to section 2025-02-20 22:08:04 +02:00
Elian Doran
c2e4def523 Merge branch 'develop' into feat_friendly-numbers-note-revision 2025-02-20 21:45:49 +02:00
Elian Doran
1e11625f14 Merge branch 'develop' into feat_friendly-numbers-protected_session_timeout 2025-02-20 21:45:30 +02:00
Elian Doran
5495677fc2 Merge branch 'develop' into feat_timeSelector-min-input 2025-02-20 21:45:24 +02:00
Elian Doran
2cefdf8b9f Merge pull request #1229 from McSido/feature/colorful-marker-icons
Enhance geomap marker icons with color
2025-02-20 21:43:42 +02:00
Elian Doran
57b3035559 feat(geomap): refresh map if color attribute is changed 2025-02-20 21:39:35 +02:00
Elian Doran
4f84ad8b81 Merge pull request #1230 from TriliumNext/renovate/tsx-4.x
chore(deps): update dependency tsx to v4.19.3
2025-02-20 21:31:28 +02:00
Elian Doran
1626767f30 Merge pull request #1231 from TriliumNext/renovate/vitest-monorepo
chore(deps): update vitest monorepo to v3.0.6
2025-02-20 21:30:57 +02:00
Elian Doran
91003af092 Merge pull request #1232 from TriliumNext/renovate/electron-forge-monorepo
chore(deps): update electron-forge monorepo to v7.7.0
2025-02-20 21:30:11 +02:00
Elian Doran
860de346a7 feat(import/single): treat mdx as markdown 2025-02-20 20:38:58 +02:00
Elian Doran
324a3d0d8b feat(import): trim .mdx extension from import 2025-02-20 20:29:00 +02:00
Elian Doran
f9e4ae7210 feat(import/zip): treat mdx as markdown (closes #1236) 2025-02-20 20:25:42 +02:00
matt wilkie
bdd6395a76 works! verify shareRoot is set and note is shared 2025-02-20 09:08:24 -07:00
Elian Doran
1c118f2aa9 feat(startup): display migration errors using system modal 2025-02-20 18:06:19 +02:00
Elian Doran
4010cb2789 Merge branch 'develop' into renovate/electron-forge-monorepo 2025-02-20 17:35:40 +02:00
Elian Doran
f83beafd76 Merge branch 'develop' into renovate/vitest-monorepo 2025-02-20 17:35:38 +02:00
Elian Doran
366264f3a9 Merge branch 'develop' into renovate/tsx-4.x 2025-02-20 17:35:35 +02:00
Elian Doran
ba91ed1855 Merge branch 'develop' into feature/colorful-marker-icons 2025-02-20 17:34:54 +02:00
Elian Doran
ef487f46d1 Merge branch 'develop' into feature/task_list 2025-02-20 17:34:36 +02:00
matt wilkie
2734e230ab WIP: 1st step at verifying shareRoot is set 2025-02-20 08:12:51 -07:00
Elian Doran
ca1d5207d8 fix(build): try using ARM runner for building docker 2025-02-20 17:10:16 +02:00
Elian Doran
f6b6b2e740 feat(test): ensure backend translations are valid JSON 2025-02-20 12:42:42 +02:00
Elian Doran
c255af67c9 fix(i18n): Chinese translations missing due to invalid JSON 2025-02-20 12:40:11 +02:00
Elian Doran
34b4e6d069 feat(test): ensure frontend translations are valid JSON 2025-02-20 12:39:56 +02:00
Elian Doran
4e01534d76 refactor(i18n): move list of locales out of options 2025-02-20 12:27:33 +02:00
Elian Doran
a433c9c189 feat(tasks): add SQL migration 2025-02-20 12:07:10 +02:00
renovate[bot]
fa05f15753 chore(deps): update electron-forge monorepo to v7.7.0 2025-02-20 02:57:15 +00:00
renovate[bot]
68c7df797d chore(deps): update vitest monorepo to v3.0.6 2025-02-20 02:57:00 +00:00
renovate[bot]
587a051430 chore(deps): update dependency tsx to v4.19.3 2025-02-20 02:56:46 +00:00
McSido
04a6175630 feat(geomap): enhance icon building to include color class 2025-02-19 22:52:38 +01:00
Panagiotis Papadopoulos
bf6c5dfb20 i18n: adjust protected_session_timeout_label
we are not limited to seconds now anymore (at least in the UI :-))
2025-02-19 22:45:07 +01:00
Panagiotis Papadopoulos
19816493d6 chore: rename ProtectedSessionTimeoutOption to plural
matches the remaining Options widgets
2025-02-19 22:37:08 +01:00
Panagiotis Papadopoulos
cecde349b7 feat: add ProtectedSessionTimeoutOption to content_widget 2025-02-19 22:35:02 +01:00
Panagiotis Papadopoulos
1a80a379dc refactor(password): move password.ts to password subfolder 2025-02-19 22:32:48 +01:00
Panagiotis Papadopoulos
739eaf9fc0 refactor(password): remove protected_session_timeout TPL element
-> now part of protected_session_timeout widget
2025-02-19 22:27:35 +01:00
Panagiotis Papadopoulos
7f173b287a feat(protected_session_timeout): add minimumSeconds 2025-02-19 22:21:49 +01:00
Elian Doran
62c96fc95e feat(tasks): implement basic refresh support 2025-02-19 22:34:52 +02:00
Elian Doran
c0d3e8d834 feat(tasks): filter by parent note 2025-02-19 22:13:13 +02:00
Elian Doran
bb822126cd feat(tasks): store parent note ID 2025-02-19 21:52:33 +02:00
Elian Doran
034b93c99c feat(tasks): support entities reloaded properly 2025-02-19 21:30:53 +02:00
Elian Doran
f743f634b4 feat(tasks): hide completed tasks for now 2025-02-19 20:33:20 +02:00
Elian Doran
9ed075b675 fix(tasks): task list not clearing properly 2025-02-19 20:02:43 +02:00
Elian Doran
7f0df441b5 fix(tasks): initial state for checkbox 2025-02-19 19:45:23 +02:00
Elian Doran
2de46eb5d2 fix(build): task row should be optional 2025-02-19 19:37:07 +02:00
Elian Doran
2a3546edd5 feat(client/tasks): display completed tasks 2025-02-19 19:27:04 +02:00
Elian Doran
7c0b43db85 feat(tasks): mark tasks as completed 2025-02-19 19:22:38 +02:00
Elian Doran
d4ef15212f style(tasks): improve individual items design 2025-02-19 18:40:26 +02:00
Elian Doran
ad492619f5 style(tasks): floating header 2025-02-19 18:30:39 +02:00
Elian Doran
35af12b6e7 fix(vscode): F5 to start server 2025-02-19 18:18:28 +02:00
Elian Doran
0baa804544 fix(server/tasks): becca not updating on task creation 2025-02-19 18:18:20 +02:00
Elian Doran
575ef5e10e fix(build): missing note type in help button 2025-02-19 18:14:49 +02:00
Matt Wilkie
5a6c3ae426 use the standard classes
per @pano9000 advice, https://github.com/TriliumNext/Notes/pull/1207#issuecomment-2667896424
2025-02-19 08:33:03 -07:00
Elian Doran
6b5d905ebe fix(client/file): flicker when too big alert is not needed 2025-02-19 13:43:50 +02:00
Elian Doran
61f2e35717 feat(client/file): trim big files in order to improve performance 2025-02-19 13:41:05 +02:00
Elian Doran
4a34d5b2df Merge pull request #1227 from greg1904/feat/german_translation
feat/german translation - adding missing translations from base english and adding adjustments of inconsistent german translations
2025-02-19 09:39:37 +02:00
greg1904
549917c1f1 small consistency adjustment 2025-02-18 23:56:15 +01:00
greg1904
4ed3a28e29 german adjustments 2025-02-18 23:49:27 +01:00
greg1904
c261bf7f7a Kind --> Unternotiz and some other additions 2025-02-18 23:30:14 +01:00
greg1904
62c9e865f5 added some fields in translation.json + switched "Hinweis" to "Notiz" 2025-02-18 23:12:57 +01:00
Panagiotis Papadopoulos
bd75a26803 feat: use TimeSelector for protected_session_timeout
to be used in the Password options
2025-02-18 22:37:20 +01:00
Panagiotis Papadopoulos
9a1d26e129 feat: add protectedSessionTimeoutScale option
to be used in the protected_session_timeout widget, when it is ported to use TimeSelector
2025-02-18 22:37:20 +01:00
Panagiotis Papadopoulos
bf41c54bd0 feat: set TimeSelector minimumSeconds for revision_snapshot_interval and remove TODO 2025-02-18 22:32:43 +01:00
Panagiotis Papadopoulos
28148b32d2 i18n: adjust labels for update revision_snapshot_interval options
we don't do seconds only anymore, so strings needed adjusting
2025-02-18 22:29:56 +01:00
Panagiotis Papadopoulos
eb08a976dd feat: use TimeSelector for revision_snapshot_interval
added one TODO that needs to be handled in TimeSelector: minimum allowed value (!in seconds!)
2025-02-18 22:29:56 +01:00
Panagiotis Papadopoulos
eeb99cf37c feat: add revisionSnapshotTimeIntervalTimeScale option
to be used in the revision_snapshot_interval widget, when it is ported to use TimeSelector
2025-02-18 22:29:56 +01:00
Panagiotis Papadopoulos
a0c2715980 i18n(time_selector): add i18n for minimum_input 2025-02-18 22:26:32 +01:00
greg1904
e35ff07b9b Launchbar --> Startleiste 2025-02-18 22:25:05 +01:00
Panagiotis Papadopoulos
ce1f418aa7 feat(time_selector): make use of optionsService 2025-02-18 22:18:58 +01:00
greg1904
fbc4206908 adding new fields for launchbar to german translation 2025-02-18 22:18:55 +01:00
Panagiotis Papadopoulos
bb4c3ae6ff feat(time_selector): add minimumSeconds handling 2025-02-18 22:18:11 +01:00
Panagiotis Papadopoulos
0332ade13c refactor(time_selector): simplify setting of includedTimeScales 2025-02-18 22:16:13 +01:00
Panagiotis Papadopoulos
2d968b8e9c refactor(time_selector): mark methods as private 2025-02-18 22:15:36 +01:00
Panagiotis Papadopoulos
fd2c65dcc0 feat(time_selector): add minimumSeconds class property 2025-02-18 22:14:56 +01:00
Elian Doran
0b8e3b976f fix(client/tasks): error due to froca update 2025-02-18 21:16:32 +02:00
Elian Doran
373e0b45f2 fix(server/tasks): missing utcDateModified causing errors on create 2025-02-18 21:07:06 +02:00
Elian Doran
c00505cd7b feat(client/tasks): create flow for creating a task 2025-02-18 21:06:51 +02:00
Elian Doran
fc1ee7c6f0 feat(client/tasks): add a text box for adding a new task 2025-02-18 20:01:04 +02:00
Elian Doran
7cba5a7c7d feat(client/tasks): display tasks 2025-02-18 19:58:00 +02:00
Elian Doran
1024733252 feat(client/tasks): create task list note type 2025-02-18 19:42:27 +02:00
Elian Doran
17f9fa7e89 feat(tasks): add POST API 2025-02-18 19:30:02 +02:00
Elian Doran
98dff61305 feat(tasks): add GET API 2025-02-18 19:06:02 +02:00
Elian Doran
c0e42e23a6 feat(tasks): create backend model for task 2025-02-18 18:42:26 +02:00
Matt Wilkie
aab35955bf remove duplicated sync_2 2025-02-17 16:45:47 -07:00
Romain DEP.
bcb40b531f feat(view/calendar): support coloring 2025-02-17 22:20:20 +01:00
Matt Wilkie
32bb43f9c1 fix indent 2025-02-17 13:55:55 -07:00
Matt Wilkie
86ab2d4008 Merge remote-tracking branch 'origin/develop' into bare2share2
# Conflicts:
#	src/public/translations/en/translation.json
2025-02-17 13:54:40 -07:00
Matt Wilkie
657638ee54 responding to code review (thanks pano!) 2025-02-17 13:46:03 -07:00
Elian Doran
50d37bbcb1 chore(client/ts): port note_type 2025-02-17 22:28:54 +02:00
Elian Doran
6706332be3 Merge pull request #1204 from TriliumNext/feat_timeScaleSelectWidget
feat: add time selector option widget
2025-02-17 22:23:29 +02:00
Matt Wilkie
2ec2d784ec results of npx prettier 2025-02-17 13:19:55 -07:00
Elian Doran
16caae191e fix(geomap): stuck viewport and zoom when switching between two geomaps 2025-02-17 21:59:02 +02:00
Elian Doran
c7d75b759c feat(webview): remove disclaimer 2025-02-17 21:50:59 +02:00
Elian Doran
b837c57d06 chore(lock): update 2025-02-17 21:49:34 +02:00
Elian Doran
ef3a75d58e feat(webview): set up some sandboxing for <iframe> 2025-02-17 21:49:24 +02:00
Elian Doran
59b474df35 feat(webview): render in browser using iframe 2025-02-17 21:26:00 +02:00
Elian Doran
fd47412d51 chore(client/ts): port web_view 2025-02-17 21:22:58 +02:00
Elian Doran
237f2ead73 fix(ci): server platform name missing due to invalid input 2025-02-17 21:16:53 +02:00
Elian Doran
558bee72e9 fix(ci): add missing zip for Windows on nightly 2025-02-17 21:15:12 +02:00
Elian Doran
ed082f34d5 fix(ci): add missing zip for Windows 2025-02-17 21:01:06 +02:00
Elian Doran
fabafeac86 fix(ci): missing os name in server release artifact 2025-02-17 19:53:25 +02:00
Elian Doran
4dd531e036 chore(release): 0.92.0-beta 2025-02-17 19:29:59 +02:00
Elian Doran
7bcfb1df96 chore(docs): minor updates 2025-02-17 19:28:54 +02:00
Elian Doran
e39bee23aa fix(electron): background effects on fixed light/dark mode (closes #1209) 2025-02-17 18:07:36 +02:00
Elian Doran
5550885206 fix(build): run prepare-dist for electron-forge:make 2025-02-17 17:42:15 +02:00
Panagiotis Papadopoulos
d26d668741 feat(time_selector): avoid "template concatenation" 2025-02-17 09:00:44 +01:00
Panagiotis Papadopoulos
fc8f805b28 i18n(time_selector): adjust attachment erasure message
as we now are allowing entering the time in other formats (minutes, hours, days) – it doesn't make sense for the label to say "after X seconds".
2025-02-17 06:52:29 +01:00
matt wilkie
ed8b8e50a4 feature complete; tested and working on local linux machine 2025-02-16 22:47:50 -07:00
matt wilkie
bc66e98533 okay, we can start npm server now, but new db redirects to share 2025-02-16 22:17:59 -07:00
matt wilkie
7af4e52766 brought over changes from 879035d
The last known good state before I got sidetracked into docker changes
2025-02-16 21:29:38 -07:00
Elian Doran
152f3193d1 Merge pull request #1183 from TriliumNext/feature/calendar_view
Calendar view
2025-02-16 20:16:02 +02:00
Elian Doran
725a9fc333 feat(view/calendar): add help 2025-02-16 19:57:44 +02:00
Panagiotis Papadopoulos
ccbed7bbc3 feat(time_selector): use showError since this is an error 2025-02-16 18:30:56 +01:00
Panagiotis Papadopoulos
10ba467202 chore(prettier): run prettier on time_selector related files 2025-02-16 18:30:56 +01:00
Panagiotis Papadopoulos
793b0c9fe8 feat(time_selector): add possibility to omit time scales 2025-02-16 18:30:56 +01:00
Panagiotis Papadopoulos
35a3d326f7 i18n(time_selector): translate invalid_input message 2025-02-16 18:30:56 +01:00
Panagiotis Papadopoulos
f672054441 feat(time_selector): use time_selector in attachment_erasure_timeout 2025-02-16 18:30:56 +01:00
Panagiotis Papadopoulos
e0e530b219 feat(time_selector): use time_selector in note_erasure_timeout 2025-02-16 18:30:56 +01:00
Panagiotis Papadopoulos
c0714a92d5 feat(time_selector): add time_selector options widget 2025-02-16 18:30:56 +01:00
Elian Doran
114a70b442 feat(view/calendar): remove redundant margin when in zen mode 2025-02-16 19:20:59 +02:00
Elian Doran
169b2269b1 feat(view/calendar): improve display when creating empty note 2025-02-16 19:17:15 +02:00
Elian Doran
e73ea36161 feat(in_app_help): contextual help for book types 2025-02-16 18:09:01 +02:00
Elian Doran
c17d10114f feat(mobile): enable prompt dialog for inserting notes 2025-02-16 17:52:04 +02:00
Elian Doran
5677be2dd5 Merge remote-tracking branch 'origin/develop' into feature/calendar_view 2025-02-16 17:43:04 +02:00
Adorian Doran
fbacb5bb71 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-16 15:48:42 +02:00
Adorian Doran
630eb5ac8d style(next): restyle the alert bar 2025-02-16 15:47:44 +02:00
Elian Doran
a532ae6426 Merge pull request #1196 from TriliumNext/feature/zen_mode
Zen Mode
2025-02-16 15:39:54 +02:00
Elian Doran
dc0ac4daa2 fix(zen): buttons on darwin 2025-02-16 15:38:31 +02:00
Elian Doran
753da46935 Merge remote-tracking branch 'origin/develop' into feature/zen_mode 2025-02-16 15:24:28 +02:00
Elian Doran
569ed0868d Merge pull request #1195 from dousha/bugfix-unsharing-hoisted
Allow removing weak branches even if it's hoisted
2025-02-16 15:05:17 +02:00
Elian Doran
324233be50 Merge pull request #1201 from TriliumNext/chore_fix-copy-dist-log
chore(copy-dist): "unpack" log messages before printing
2025-02-16 15:00:41 +02:00
Elian Doran
135f3d913a Merge pull request #1191 from TriliumNext/chore_npm-scripts-namescape
chore: npm scripts namespacing
2025-02-16 14:58:29 +02:00
Elian Doran
ee5cc18ef2 fix(view/calendar): end date offset on display 2025-02-16 13:34:39 +02:00
Elian Doran
6d3325766d feat(view/calendar): refresh calendar when entities change 2025-02-16 13:22:44 +02:00
Elian Doran
eff93d8e27 Merge remote-tracking branch 'origin/develop' into feature/calendar_view 2025-02-16 11:47:54 +02:00
Elian Doran
952ec516ee feat(test): add test for code block mpapings 2025-02-16 11:43:20 +02:00
Elian Doran
a8f9403990 feat(code_block): map a few more themes 2025-02-16 11:43:12 +02:00
Elian Doran
aa5c69d97a feat(view/calendar): add flow to create a note 2025-02-15 23:48:06 +02:00
Elian Doran
b524abb883 feat(view/calendar): use locale translation for buttons 2025-02-15 21:47:44 +02:00
Elian Doran
f8c3587717 feat(view/calendar): add locale support 2025-02-15 21:45:53 +02:00
Elian Doran
9d9b45cafb feat(calendar_view): set first day of the week based on option 2025-02-15 20:18:27 +02:00
Elian Doran
0bcabacd3a feat(calendar_view): translate buttons 2025-02-15 20:15:54 +02:00
Elian Doran
03282e12b7 style(calendar_view): improve layout slightly 2025-02-15 14:15:43 +02:00
Panagiotis Papadopoulos
dd4f8a8c27 chore(copy-dist): "unpack" log messages before printing
previously it was printin all messages as part of an array, i.e.
["message"]
After spreading the array, we get the desired out
"message"
2025-02-15 13:08:13 +01:00
Elian Doran
660a393ca6 fix(calendar_view): double scrollbar 2025-02-15 14:07:39 +02:00
Elian Doran
22c8cf3bee feat(calendar_view): allow resizing & fix date offset 2025-02-15 12:47:46 +02:00
Elian Doran
e71f0cb091 feat(calendar_view): draggable events 2025-02-15 12:05:35 +02:00
Elian Doran
23cbc82708 feat(calendar_view): clickable events 2025-02-15 11:46:17 +02:00
Elian Doran
1b4281cf77 feat(calendar_view): allow rendering multiple events from multiple relation 2025-02-15 11:42:06 +02:00
Elian Doran
a8509d8b1d feat(calendar_view): allow rendering by custom relation 2025-02-15 11:41:08 +02:00
Elian Doran
10b2d19710 feat(calendar_view): allow rendering by custom attribute 2025-02-15 11:13:44 +02:00
Elian Doran
8111352300 feat(calendar_view): render notes by their end date 2025-02-15 10:58:12 +02:00
Elian Doran
64b446315d feat(calendar_view): render notes by their start date 2025-02-15 10:43:46 +02:00
Elian Doran
4dc2803cc6 style(calendar_view): apply a padding 2025-02-15 10:35:14 +02:00
Elian Doran
557e4cdfea style(calendar_view): disable link color 2025-02-15 10:24:40 +02:00
Elian Doran
fd22d05d9b feat(calendar_view): disable user selection 2025-02-15 10:23:57 +02:00
Elian Doran
462a2713a2 feat(calendar_view): integrate fullcalendar 2025-02-15 10:23:33 +02:00
Elian Doran
68ccd23540 refactor(views): pass argument to constructor 2025-02-15 10:13:47 +02:00
Panagiotis Papadopoulos
11a9dfd693 Merge branch 'develop' into chore_npm-scripts-namescape 2025-02-15 09:02:23 +01:00
Elian Doran
fc77f56516 chore(in_app_help): update docs 2025-02-15 01:05:37 +02:00
Elian Doran
ecb2c53c6f feat(in_app_help): support webviews 2025-02-15 01:02:24 +02:00
Elian Doran
9299f90b85 feat(docs): internal API docs 2025-02-15 00:33:12 +02:00
Elian Doran
81d5d16e1a chore(bin): convert generate-openapi to typescript 2025-02-15 00:02:00 +02:00
Elian Doran
2fe6881d73 Merge pull request #1192 from FliegendeWurst/openapi-docs-2
More OpenAPI docs
2025-02-14 23:57:39 +02:00
Elian Doran
552f87e2b3 Merge pull request #1194 from TriliumNext/test-unskip-tests
test: fix and enable ex-flaky tests in `services/search.spec.ts`
2025-02-14 23:43:01 +02:00
Elian Doran
689af591d1 Merge pull request #1190 from TriliumNext/deps_jasmine-types
deps: remove leftover @types/jasmine
2025-02-14 23:41:45 +02:00
Elian Doran
ab2a7a6c4a Merge pull request #1187 from TriliumNext/renovate/webpack-5.x
chore(deps): update dependency webpack to v5.98.0
2025-02-14 23:41:16 +02:00
Elian Doran
a716d97e83 Merge pull request #1188 from TriliumNext/renovate/node-22.x
chore(deps): update node.js to v22.14.0
2025-02-14 23:40:32 +02:00
Elian Doran
9f18eb55cb Merge pull request #1185 from TriliumNext/renovate/prettier-3.x
chore(deps): update dependency prettier to v3.5.1
2025-02-14 23:39:59 +02:00
Elian Doran
2cb27d4b03 Merge pull request #1186 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.2.0
2025-02-14 23:38:17 +02:00
dousha
9d7f1a2d71 Allow removing weak branches even if it's hoisted 2025-02-15 01:52:07 +08:00
Elian Doran
be39668488 feat(zen): add keyboard shortcut 2025-02-14 19:45:57 +02:00
Elian Doran
137aa93451 fix(zen): not working properly when native titlebar is on 2025-02-14 19:07:13 +02:00
Elian Doran
ab7457cf90 fix(next): transparency issue when background effects are off 2025-02-14 19:07:02 +02:00
Elian Doran
9221932abb style(zen): improve position slightly 2025-02-14 18:56:36 +02:00
Elian Doran
1ad8c6b1cb style(next): apply mica to entire zen screen 2025-02-14 18:51:04 +02:00
Panagiotis Papadopoulos
84429e6e90 test: use integration-tests/db as data dir for tests
we have an initialized DB there, so that "integration like" tests that depend on the DB are not failing
2025-02-14 17:47:24 +01:00
Elian Doran
e829abbad3 feat(zen): set up draggable regions 2025-02-14 18:47:15 +02:00
Elian Doran
2c80607bfd feat(zen): use dedicated floating button to stop zen mode 2025-02-14 18:18:28 +02:00
Elian Doran
e8f0af8954 feat(zen): hide some more buttons 2025-02-14 17:39:03 +02:00
Elian Doran
5b5fd77ca8 feat(global_menu): indicate state of zen mode 2025-02-14 14:14:13 +02:00
Elian Doran
f93eef28f3 feat(zen): hide most UI elements 2025-02-14 14:11:22 +02:00
Elian Doran
5c81627112 feat(zen): toggle body class for zen 2025-02-14 13:55:04 +02:00
Elian Doran
568a84f5d2 feat(global-menu): add option to toggle zen mode 2025-02-14 13:45:40 +02:00
Elian Doran
70d6d375f9 chore(i18n/ro): fix translation for landscape 2025-02-14 11:04:28 +02:00
FliegendeWurst
a115214070 Document some note, branch, tree routes 2025-02-14 09:40:38 +01:00
Panagiotis Papadopoulos
0e18c405d8 test: "unskip" skipped tests 2025-02-14 09:17:57 +01:00
Panagiotis Papadopoulos
e89d1b2413 chore(scripts): fix electron:switch in docs 2025-02-14 09:11:35 +01:00
Panagiotis Papadopoulos
21d18b1bdf chore(scripts): add generate-* to namespace "chore:*" 2025-02-14 09:00:42 +01:00
Panagiotis Papadopoulos
0cace7f3f9 chore(scripts): add integration test servers to namespace "test:*" 2025-02-14 08:57:03 +01:00
Panagiotis Papadopoulos
218a889725 chore(scripts): namespace "dev:*" 2025-02-14 08:54:05 +01:00
Panagiotis Papadopoulos
ae41555b51 chore(scripts): namespace "test:*" 2025-02-14 08:50:43 +01:00
Panagiotis Papadopoulos
5f5d7b5432 chore(scripts): namespace "electron-forge:*" 2025-02-14 08:48:14 +01:00
Panagiotis Papadopoulos
d23734dd3f chore(scripts): add some line breaks for better separation 2025-02-14 08:44:25 +01:00
Panagiotis Papadopoulos
4f6085a1a4 chore(scripts): namespace "build:prepare-dist" 2025-02-14 08:43:41 +01:00
Panagiotis Papadopoulos
9cddb1deac chore(scripts): namespace "build:webpack" 2025-02-14 08:41:34 +01:00
Panagiotis Papadopoulos
47002aa95a chore(scripts): namespace "chore:update-build-info" 2025-02-14 08:38:18 +01:00
Panagiotis Papadopoulos
d2e8f946a0 chore(scripts): namespace "chore:ci-update-nightly-version" 2025-02-14 08:35:46 +01:00
Panagiotis Papadopoulos
688eb4d93f chore(scripts): namespace "docs:" 2025-02-14 08:31:07 +01:00
Panagiotis Papadopoulos
58eaf5eb5b test(etapi): mark as TODO for now
fixes typescript build for now
(not even sure, why we are building the tests as well)
2025-02-14 08:01:30 +01:00
Panagiotis Papadopoulos
a30d361b1d deps: remove leftover @types/jasmine 2025-02-14 07:52:34 +01:00
Panagiotis Papadopoulos
0145636fc5 chore(scripts): namespace "electron:"
reorder entries
2025-02-14 07:39:01 +01:00
Panagiotis Papadopoulos
06890585d2 chore(scripts): namespace "electron:" 2025-02-14 07:36:49 +01:00
renovate[bot]
3d320308c9 chore(deps): update node.js to v22.14.0 2025-02-14 02:12:50 +00:00
renovate[bot]
325431f050 chore(deps): update dependency webpack to v5.98.0 2025-02-14 02:12:39 +00:00
renovate[bot]
35f9af15e5 chore(deps): update dependency electron to v34.2.0 2025-02-14 02:12:30 +00:00
renovate[bot]
4dfce746e9 chore(deps): update dependency prettier to v3.5.1 2025-02-14 02:12:18 +00:00
FliegendeWurst
0f0ebed78a Document sync push/pull 2025-02-13 23:51:42 +01:00
Panagiotis Papadopoulos
469519f5df chore(scripts): namespace electron:start 2025-02-13 23:25:38 +01:00
Panagiotis Papadopoulos
7b062badf0 chore(scripts): namespace server
server:switch
2025-02-13 23:18:57 +01:00
Panagiotis Papadopoulos
f3dda940ec chore(scripts): namespace server
server:start-safe
server:start-no-dir
server:start-test
server:qstart
2025-02-13 23:00:53 +01:00
Panagiotis Papadopoulos
786f3e8d40 chore(scripts): namespace server:start 2025-02-13 22:53:40 +01:00
Elian Doran
4592d6750b feat(view/calendar): render a text in calendar view 2025-02-13 23:46:20 +02:00
Elian Doran
e2bbee8e16 refactor(client): move implementation out of note_list_renderer 2025-02-13 23:23:18 +02:00
Elian Doran
27168b0dc5 feat(view/calendar): add calendar entry to views 2025-02-13 22:57:30 +02:00
Elian Doran
e347cdda36 chore(client/ts): port book_properties 2025-02-13 22:45:48 +02:00
Elian Doran
283482caa5 Merge pull request #1163 from TriliumNext/feat_erasure-timeout-ui
feat: friendly number handling for note erasure timeouts
2025-02-13 22:22:27 +02:00
Elian Doran
27b825e511 Merge remote-tracking branch 'origin/develop' into feat_erasure-timeout-ui
; Conflicts:
;	src/public/translations/ro/translation.json
2025-02-13 22:21:38 +02:00
Elian Doran
4b9667b756 feat(settings): make duration selector slightly smaller 2025-02-13 22:21:09 +02:00
Elian Doran
e79c742d56 feat(i18n): translate duration units 2025-02-13 22:19:02 +02:00
Elian Doran
7ffece36f0 Merge branch 'develop' of ssh://github.com/TriliumNext/Notes into develop 2025-02-13 22:09:12 +02:00
Elian Doran
eecbfd0206 fix(client): note autocomplete not working properly on enter (closes #1100) 2025-02-13 22:09:08 +02:00
Elian Doran
bfd894b5eb Merge pull request #1156 from TriliumNext/feat_custom_cookie-session-expiration
feat: allow setting custom session cookie expiration
2025-02-13 21:50:09 +02:00
Elian Doran
508908ded8 Merge pull request #1173 from TriliumNext/fix_etapi-openapi-integration
build: fix missing copying of etapi.openapi.yaml in build process
2025-02-13 21:49:04 +02:00
Elian Doran
4d280f37ea Merge pull request #1179 from FliegendeWurst/openapi-docs
Automated OpenAPI spec generation
2025-02-13 21:48:45 +02:00
Elian Doran
cc74164b94 chore(i18n): achieve 100% completion for Romanian 2025-02-13 21:46:11 +02:00
Elian Doran
3f4458ea2f Merge pull request #1178 from hasecilu/i18n/Spanish
chore(i18n): update Spanish translation
2025-02-13 21:32:35 +02:00
Elian Doran
030e3cb805 fix(i18n): accidentally translated values 2025-02-13 21:31:54 +02:00
Elian Doran
6e17346768 feat(share): allow serving raw file via query parameter (closes #1182) 2025-02-13 21:28:01 +02:00
Elian Doran
4b597c5d2c fix(client/revisions): improper rendering of nested lists (closes #1177) 2025-02-13 20:57:34 +02:00
Elian Doran
e2cd875c03 refactor(client): fix global event handling for modal 2025-02-13 20:39:00 +02:00
Elian Doran
8f6376e537 chore(client/ts): port revisions 2025-02-13 20:25:13 +02:00
FliegendeWurst
be4b74e791 Automated OpenAPI spec generation 2025-02-13 17:02:03 +01:00
hasecilu
4ed71f30f2 chore(i18n): update Spanish translation 2025-02-13 09:39:04 -06:00
Panagiotis Papadopoulos
b692c00b8d feat(config): improve typesafety by definitely returning a number
previously it was either a number like string (in case env or config.ini was used) or a number (the fallback value)

we now parseInt the value -> if any value is NaN (e.g. because it was incorrectly set) it will try with the next, before it uses the fallback value

the strange looking `parseInt(String(process.env.TRILIUM_SESSION_COOKIEMAXAGE))` is required to make TypeScript happy, other variants of trying to get the value into a string were not good enough for typescript :-)

The `String(process.env.TRILIUM_SESSION_COOKIEMAXAGE)` will now either return a number like value or 'undefined' (as string), which parseInt parses into NaN, which is falsy.
2025-02-13 09:46:49 +01:00
Panagiotis Papadopoulos
cab0a5e41f feat(config): improve Session descriptions 2025-02-13 09:25:24 +01:00
Panagiotis Papadopoulos
201663d9ec chore(prettier): fix prettier issues 2025-02-13 09:07:25 +01:00
Panagiotis Papadopoulos
38215c46ae feat(login): make use of default maxAge by sessionParser
cookie will use the default value set in sessionParser middleware, which is controlled by
config.Session.cookieMaxAge

if rememberMe is not set -> the value is unset and the cookie becomes a non-persistent cookie,
which the browser delete after the current session (e.g. when you close the browser)
2025-02-13 09:04:34 +01:00
Panagiotis Papadopoulos
2a740781cb feat(session_parser): use seconds for setting maxAge and update default value to 21 days
21 days was used in the login route previously, when "remember me" was set
2025-02-13 08:52:05 +01:00
Panagiotis Papadopoulos
04827c0ce1 fix(session_parser): FileStore ttl should be ideally the same as session cookies maxAge
this avoids having "unused" dead session on the filesystem
2025-02-13 08:21:29 +01:00
Panagiotis Papadopoulos
4e23b5193d feat(session_parser): use Session.cookieMaxAge from config 2025-02-13 08:21:29 +01:00
Panagiotis Papadopoulos
53576f5578 feat(config): add Session.cookieMaxAge
allows users to control how long their session will be live, before it expires and they are forced to login again

defaults to 1 day  ("24 * 60 * 60 * 1000") as previously set in sessionParser
2025-02-13 08:21:29 +01:00
Panagiotis Papadopoulos
010783102a build: fix missing copying of etapi.openapi.yaml into dist folder
fixes build via electron-forge
2025-02-12 23:09:20 +01:00
Elian Doran
e7f5d1d280 fix(client/ts): load only needed CodeMirror plugins 2025-02-12 22:49:47 +02:00
Elian Doran
69a6739d1f fix(client): markdown code block not working (closes #1164) 2025-02-12 22:49:09 +02:00
Elian Doran
75afdbe093 chore(client/ts): port editable_code 2025-02-12 21:56:58 +02:00
Adorian Doran
cb7b25f054 repo: exclude irrelevant NPM tasks in VS Code 2025-02-12 12:06:55 +02:00
Adorian Doran
9c4aa4f220 style(next): tweak the "Change note icon" button 2025-02-12 01:55:56 +02:00
Adorian Doran
fc1e5ce23b style(next): fix comment 2025-02-12 01:46:17 +02:00
Adorian Doran
faabec5360 style(next): tweak the note icon popup 2025-02-12 01:45:26 +02:00
Adorian Doran
202bb9e126 style(next): combo boxes: fix the dropdown arrow disappearing in certain situations while in the focused state 2025-02-12 01:29:50 +02:00
Adorian Doran
2f00839f52 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-12 01:17:02 +02:00
Adorian Doran
d8962393af style(next): combo boxes: prevent the text overlapping the dropdown arrow 2025-02-12 01:16:57 +02:00
Elian Doran
d9e39fa792 Merge branch 'develop' of ssh://github.com/TriliumNext/Notes into develop 2025-02-11 22:20:38 +02:00
Elian Doran
0ca9809457 feat(client,server): support mid: links 2025-02-11 22:18:29 +02:00
Elian Doran
4d0969da0a refactor(client,server): support for URL schemes 2025-02-11 22:14:44 +02:00
Elian Doran
f517e4a37a refactor(editor): move all options into this repo 2025-02-11 20:34:49 +02:00
Elian Doran
0d26446262 refactor(editor): move all options into this repo 2025-02-11 20:23:48 +02:00
Elian Doran
aad38fdd21 refactor(editor): move floating toolbar config into this repo 2025-02-11 20:17:02 +02:00
Elian Doran
2ac5e860b1 refactor(editor): move classic toolbar config into this repo 2025-02-11 19:48:26 +02:00
Elian Doran
bd5232ed14 feat(mobile): add recent changes dialog 2025-02-11 19:38:06 +02:00
Elian Doran
aafd905c72 Merge pull request #1158 from TriliumNext/renovate/compression-1.x
fix(deps): update dependency compression to v1.8.0
2025-02-11 19:32:28 +02:00
Elian Doran
11e2dcfc64 refactor(client/ts): port a few small files 2025-02-11 19:29:53 +02:00
Elian Doran
44811f4f4b refactor(client/ts): port two containers 2025-02-11 19:09:04 +02:00
Elian Doran
13f7129717 refactor(client/ts): port a few more widgets 2025-02-11 19:04:27 +02:00
Elian Doran
b69641c0e9 refactor(client): remove abstract doRefresh 2025-02-11 18:59:35 +02:00
Elian Doran
8b9b843c2d Merge pull request #1140 from dousha/bugfix-protection-box
Fix the password box not removed after entering protected mode
2025-02-11 18:57:41 +02:00
Panagiotis Papadopoulos
a5cb78c5ec i18n: adjust note_erasure_timeout.erase_notes_after
since we now don't erase after "x" seconds, we need to change the message
2025-02-11 09:07:46 +01:00
Panagiotis Papadopoulos
8b066b1fc8 chore: add i18n TODO
(it does not make sense yet, to expose these as i18n, as I will be refactoring this whole thing into a standalone widget)
2025-02-11 09:07:46 +01:00
Panagiotis Papadopoulos
2bb79c4209 feat: "friendly number handling" for note erasure timeouts 2025-02-11 09:06:29 +01:00
Elian Doran
b1bf6931f2 Merge pull request #1162 from TriliumNext/refactor_routes-login
refactor(routes/login): simplify login function and get rid of deprecated usage of expires
2025-02-11 10:03:09 +02:00
Panagiotis Papadopoulos
e3b7ae018f refactor(routes/login): refactor login fn
I also got rid of the deprecated use of "expires" - setting maxAge to undefined is the preferred way
2025-02-11 07:55:18 +01:00
renovate[bot]
d7399f6bb5 fix(deps): update dependency compression to v1.8.0 2025-02-11 00:34:18 +00:00
Elian Doran
d0399c173e Merge pull request #1144 from TriliumNext/feature/swagger-ui-in-server
Add Swagger UI endpoint
2025-02-10 23:46:18 +02:00
Elian Doran
905983e794 Merge pull request #1155 from TriliumNext/feat_custom-cookie-path
feat: allow setting custom cookiePath
2025-02-10 23:42:08 +02:00
Elian Doran
5390b97730 Merge pull request #1157 from TriliumNext/fix_disable-dropdown-select-text
fix(ui): disallow text selection in dropdown-menus
2025-02-10 23:33:28 +02:00
Panagiotis Papadopoulos
c8f5f8dfcc fix(ui): disallow text selection in dropdown-menus 2025-02-10 20:18:35 +01:00
Panagiotis Papadopoulos
62f8f8f1a7 refactor(config): rename Cookies to Session
as requested in PR #1155
2025-02-10 19:44:19 +01:00
Panagiotis Papadopoulos
b6d73df92e feat(csrf_protection): use cookiePath from config 2025-02-10 19:03:10 +01:00
perf3ct
9c86a03acc Do this thing to make Pano happy :) 2025-02-10 16:03:01 +00:00
Panagiotis Papadopoulos
a600568ab8 feat(session_parser): use cookiePath from config 2025-02-10 08:35:01 +01:00
Panagiotis Papadopoulos
3c8723a404 feat(config): add Cookies.cookiePath option to config
defaults to "/" as previously set by default options
2025-02-10 08:33:31 +01:00
Elian Doran
1e95135720 Merge pull request #1147 from TriliumNext/renovate/typedoc-0.x
chore(deps): update dependency typedoc to v0.27.7
2025-02-10 09:19:43 +02:00
Elian Doran
022f2b6e62 Merge pull request #1148 from TriliumNext/renovate/marked-15.x
fix(deps): update dependency marked to v15.0.7
2025-02-10 09:19:23 +02:00
Elian Doran
4160ff2a8b Merge pull request #1149 from TriliumNext/renovate/mind-elixir-4.x
fix(deps): update dependency mind-elixir to v4.3.7
2025-02-10 09:18:42 +02:00
Elian Doran
d7e134d18e Merge pull request #1151 from TriliumNext/renovate/prettier-3.x
chore(deps): update dependency prettier to v3.5.0
2025-02-10 09:18:14 +02:00
Elian Doran
b9aa976068 Merge pull request #1152 from TriliumNext/chore_remove-jasmine
chore(deps): remove unused jasmine
2025-02-10 09:17:27 +02:00
Elian Doran
df47198616 Merge pull request #1153 from TriliumNext/feat_autofocus-protected-note
feat/fix(protected_session): input improvements
2025-02-10 09:16:53 +02:00
Panagiotis Papadopoulos
6c4c9785ff fix(protected_session): fix input->label association 2025-02-10 07:16:36 +01:00
Panagiotis Papadopoulos
f657b9dec1 feat(protected_session): set autofocus to password field 2025-02-10 07:15:14 +01:00
Panagiotis Papadopoulos
c004adfdff chore(deps): remove unused jasmine 2025-02-10 07:04:09 +01:00
perf3ct
57a34e5c02 use fs/promises instead of fs 2025-02-10 00:50:43 +00:00
renovate[bot]
7083b57ce4 chore(deps): update dependency prettier to v3.5.0 2025-02-10 00:37:05 +00:00
renovate[bot]
316e239a3c fix(deps): update dependency mind-elixir to v4.3.7 2025-02-10 00:36:49 +00:00
renovate[bot]
5632932873 fix(deps): update dependency marked to v15.0.7 2025-02-10 00:36:40 +00:00
renovate[bot]
3ce7fef64b chore(deps): update dependency typedoc to v0.27.7 2025-02-10 00:36:31 +00:00
perf3ct
d859f50c98 Change Swagger endpoint and site title 2025-02-09 22:17:31 +00:00
perf3ct
18f5f1b759 add Swagger UI endpoint and add to router 2025-02-09 21:15:12 +00:00
perf3ct
72fe367988 Add @types/js-yaml, @types/swagger-ui-express, js-yaml, and swagger-ui-express to support Swagger UI 2025-02-09 21:15:01 +00:00
Elian Doran
48d4093274 Merge pull request #1143 from TriliumNext/fix_ts-file-mime-import
fix(import/mime): fix ts file mime import handling
2025-02-09 23:07:49 +02:00
Panagiotis Papadopoulos
2d1381b4f8 fix(import/mime): fix TypeScript handling
.ts file are now treated as code type with text/x-typescript as MIME type

fixes #1142
2025-02-09 17:45:15 +01:00
Panagiotis Papadopoulos
5d019137fa test: add test for .ts file 2025-02-09 17:43:25 +01:00
Elian Doran
c79651add8 fix(print): scrollbar shown in some circumstances 2025-02-09 13:05:42 +02:00
Elian Doran
b6a9df981a feat(login): autofocus the password field 2025-02-09 11:59:09 +02:00
Elian Doran
27397be7f4 feat(export/md): update to latest turndown version (fixes #337) 2025-02-08 22:59:28 +02:00
Elian Doran
9d517988ce style(client): remove 10px padding if full width file 2025-02-08 22:05:02 +02:00
Elian Doran
90ca4e923e chore(client/ts): port file 2025-02-08 22:01:21 +02:00
Elian Doran
659e551cdd feat(client): display PDFs as full width 2025-02-08 21:49:30 +02:00
Elian Doran
2a90f4c6e9 chore(client/ts): port note_wrapper 2025-02-08 21:42:12 +02:00
Elian Doran
4c44ce0ebe fix(mobile): fix closing tab not always working on iOS 2025-02-08 20:31:10 +02:00
Elian Doran
25cf16c101 feat(mobile): reduced tab right margin 2025-02-08 13:24:55 +02:00
Elian Doran
3d531c9bca fix(mobile): switching tabs not working 2025-02-08 13:00:14 +02:00
Elian Doran
ab5a6c59b8 fix(mobile): improve alignment of the title bar 2025-02-08 12:14:58 +02:00
Elian Doran
1bf2f10c98 feat(geo_map): enable retina detection 2025-02-08 12:09:07 +02:00
Elian Doran
f5b0c3b68b fix(doc): tables that break out of bounds 2025-02-08 12:01:27 +02:00
Elian Doran
bf342f7bcf fix(doc): width on mobile with images 2025-02-08 11:58:21 +02:00
Elian Doran
c98df4d6c2 style(next): improve fit of calendar on mobile 2025-02-08 11:54:17 +02:00
Elian Doran
1bc70e9fed fix(mobile): dropdowns on tablet view 2025-02-08 11:46:47 +02:00
Elian Doran
6fcd14c23e feat(mobile): add calendar button (fixes #1128) 2025-02-08 11:42:25 +02:00
Elian Doran
7b8c4d2179 fix(client): freeze if empty doc 2025-02-08 11:16:04 +02:00
Elian Doran
f50f767e79 fix(client): console error if latest version could not be retrieved 2025-02-08 10:50:55 +02:00
Elian Doran
a2995ef267 feat(mobile): add open today's journal note (closes #1129). 2025-02-08 10:46:06 +02:00
Elian Doran
f8f1e537db feat(mobile): add new note launcher bar (fixes #1105) 2025-02-08 10:43:18 +02:00
Elian Doran
96dc063b50 refactor(hidden-subtree): deduplicate launchers 2025-02-08 10:37:17 +02:00
Elian Doran
303cf65020 feat(mobile): improve fixed tree layout 2025-02-08 10:34:08 +02:00
Elian Doran
89db97e97d feat(mobile): make the title smaller 2025-02-08 10:27:22 +02:00
Elian Doran
57c9e0477e feat(mobile): launch bar config now has a fixed tree 2025-02-08 10:24:55 +02:00
Elian Doran
7b36040b26 refactor(hidden_subtree): launch bar config in dedicated file 2025-02-08 10:05:31 +02:00
Elian Doran
914a731094 feat(mobile): collapsible advanced section in global menu 2025-02-08 09:55:38 +02:00
Elian Doran
ab7fc8871a fix(geo_map): zoom buttons overlapping with global menu 2025-02-08 09:55:22 +02:00
Elian Doran
a4021e94ad style(next): improve menu separator width on mobile 2025-02-08 09:35:29 +02:00
Elian Doran
777e504a72 style(mobile): minimal formatting bar scrolll 2025-02-08 09:32:44 +02:00
dousha
e063eb9ac1 Fix the password box not being removed after entering protected mode (#1078) 2025-02-08 15:25:09 +08:00
Adorian Doran
2db3765bd4 style(next): restyle menu item group headings 2025-02-08 02:37:57 +02:00
Adorian Doran
61a2b2cc3a Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-08 01:47:42 +02:00
Adorian Doran
592e58099d client: search/actions/execute script: fix misaligned close button 2025-02-08 01:47:39 +02:00
Elian Doran
45ab9d4395 fix(electron): auto-reload for static assets 2025-02-08 01:41:48 +02:00
Adorian Doran
9ff8b53ae6 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-08 01:33:37 +02:00
Adorian Doran
8f45fb3c40 style(next): tweak the bookmark folder popup 2025-02-08 01:33:26 +02:00
Elian Doran
a1c97142a8 feat(build): set up faster electron build by skipping dist 2025-02-08 00:41:39 +02:00
Elian Doran
7f314d2d75 feat(build): set up webpack cache 2025-02-08 00:41:39 +02:00
Elian Doran
61b7d887cc chore(deps): update electron to 34.1.1 2025-02-08 00:41:39 +02:00
Adorian Doran
172eb8a529 client: quick search results: fix dropdown compatibility with the Next theme 2025-02-08 00:38:18 +02:00
Adorian Doran
02c08e79ae style(next): remove a not longer needed style 2025-02-08 00:34:01 +02:00
Adorian Doran
94d1dcd99b client: quick search results: remove a redundant button 2025-02-08 00:33:23 +02:00
Adorian Doran
1bfce1c8ed style(next): extend the input field style to cover date/time pickers also 2025-02-08 00:05:36 +02:00
Adorian Doran
9f7a218772 style(next): add some margins to the promoted attributes section 2025-02-08 00:02:04 +02:00
Elian Doran
f7397dc2f1 Merge pull request #1124 from TriliumNext/feature/in_app_help
In-app help
2025-02-07 22:56:06 +02:00
Elian Doran
f12aed9ac0 feat(in-app-help): hide #docName from note preview 2025-02-07 22:55:50 +02:00
Elian Doran
50dcc92307 fix(in-app-help): note list when rendering in sidebar 2025-02-07 22:45:41 +02:00
Elian Doran
5552db034b fix(client): regression in new tab 2025-02-07 22:37:43 +02:00
Elian Doran
cecd7eccad Merge remote-tracking branch 'origin/develop' into feature/in_app_help 2025-02-07 22:28:01 +02:00
Elian Doran
0138776a72 feat(tab-bar): prevent user selection 2025-02-07 22:03:22 +02:00
Elian Doran
35207b8df0 feat(geo_map): middle click to open note in new tab 2025-02-07 22:03:00 +02:00
Elian Doran
0dbd136b48 feat(note_tooltip): clickable note title (closes #1063) 2025-02-07 21:44:17 +02:00
Elian Doran
02d16d0125 feat(note_tooltip): improve layout for empty notes 2025-02-07 21:36:22 +02:00
Elian Doran
f77a29d7fe fix(note_tooltip): redundant padding on empty note with no children 2025-02-07 21:19:58 +02:00
Elian Doran
9d097a0ee7 feat(note_tooltip): hide #geolocation 2025-02-07 21:14:40 +02:00
Elian Doran
c3c5ab18ef fix(e2e): broken test after shortcut change 2025-02-07 21:02:30 +02:00
Elian Doran
4463f215d8 fix(demo): broken attributes due to safe import 2025-02-07 20:34:31 +02:00
Elian Doran
d3b55932a6 fix(build): errors after refactoring 2025-02-07 20:27:22 +02:00
Elian Doran
2c5fb7edee fix(in-app-help): navigating to new page breakign scope 2025-02-07 19:33:26 +02:00
Elian Doran
c087d3c331 fix(toc): doc type not rendering the first time 2025-02-07 19:23:12 +02:00
Elian Doran
a98ed6cd29 fix(toc): not hiding if too few headings 2025-02-07 18:27:13 +02:00
Elian Doran
c68cc70f76 chore(build): change flatpak ID 2025-02-07 18:17:06 +02:00
Elian Doran
97b7033959 Merge pull request #1130 from TriliumNext/build_add-flatpak-electron
build: add flatpak build via electron-forge
2025-02-07 18:13:34 +02:00
Elian Doran
56d36c6c11 Merge pull request #1134 from pano9000/fix_ci-linux-server-name
chore(ci): improve server build release file names
2025-02-07 18:12:38 +02:00
Elian Doran
816b0da8ba Merge pull request #1132 from TriliumNext/chore_linux-desktop-category
build(electron): Add "Office" as category for Desktop file
2025-02-07 18:11:32 +02:00
MeIchthys
f7bf2fe614 Update README to include support options. 2025-02-07 09:58:27 -05:00
Panagiotis Papadopoulos
db48e3a987 chore(ci): improve server build release file names 2025-02-07 10:36:28 +01:00
Panagiotis Papadopoulos
8cf6a4bec7 build(electron): Add "Office" as category for Desktop file
as per https://specifications.freedesktop.org/menu-spec/latest/category-registry.html

checked with other NoteTaking apps and they all (e.g. Obsidian, Joplin) use "Office" as main category as well, which makes sense here
2025-02-07 08:57:20 +01:00
Panagiotis Papadopoulos
47e2100920 build(electron): use baseLinuxMakerConfigOptions for flatpak as well 2025-02-07 08:52:55 +01:00
Panagiotis Papadopoulos
f38f9e640b chore: add .flatpak-builder to .gitignore 2025-02-07 08:18:23 +01:00
Panagiotis Papadopoulos
7c721c4aaa fix(ci): add temp arm64 workaround
currently required, because Flatpak arm64 build currently fails – and if it fails, the remaining builds (deb, rpm, zip) fail as well, as they are created in the same run.
once the fix is released in the next electron-forge, we can get rid of this again.
2025-02-07 08:08:38 +01:00
Panagiotis Papadopoulos
1ec2b8b145 feat(ci): add flatpak build via electron-forge
arm64 currently is broken due to a bug in electron-forge's maker-flatpak, but PR with a fix was submitted already
2025-02-06 23:34:36 +01:00
Panagiotis Papadopoulos
1a89a0989d build(electron): update flatpak config to latest base
previously it was defaulting to an EOL version of the Platform/SDK

Explicitly setting it to 24.08 however makes the build fail, because it defaults to using an outdated "zypak" module, so we need to explicitly mention the latest version here too
2025-02-06 23:34:36 +01:00
Panagiotis Papadopoulos
4bf8cdfc39 deps: add @electron-forge/maker-flatpak to package-lock as well 2025-02-06 23:34:36 +01:00
Panagiotis Papadopoulos
7753905df9 build(electron): add flatpak config 2025-02-06 23:34:36 +01:00
Panagiotis Papadopoulos
399fd481ba deps: add @electron-forge/maker-flatpak 2025-02-06 23:34:36 +01:00
Adorian Doran
e288272b22 style(next): attribute detail dialog: add a gap before note paths 2025-02-06 23:01:31 +02:00
Adorian Doran
ead3229c1e style(next): settings/advanced: fix bullet list margin 2025-02-06 22:56:24 +02:00
Adorian Doran
f2021f8ca1 style(next): note revisions dialog: fix the list appeareance 2025-02-06 22:18:01 +02:00
Adorian Doran
e1850281e5 style(next): tweak (again) the note type dropdown 2025-02-06 21:49:19 +02:00
Adorian Doran
919a977643 client: reorder note types 2025-02-06 21:45:17 +02:00
Adorian Doran
48af3e9cf5 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-06 21:24:36 +02:00
Adorian Doran
9ac7369df4 style(next): tweak the note type dropdown 2025-02-06 21:24:32 +02:00
Elian Doran
acb858bc29 chore(test): simplify import of becca_mocking 2025-02-06 20:55:46 +02:00
Elian Doran
a767ee3d2c fix(server): sorting notes by custom attribute with missing value not idempotent 2025-02-06 20:41:35 +02:00
Adorian Doran
5e62f4999d client: use a "Beta" badge for beta note types 2025-02-06 20:24:13 +02:00
Adorian Doran
5d845a81f8 style(next): tweak (again) the editability dropdown 2025-02-06 19:50:19 +02:00
Adorian Doran
97cd79e083 style(next): tweak the editability dropdown 2025-02-06 19:49:23 +02:00
Adorian Doran
2ddac39b65 client: tweak the editability dropdown 2025-02-06 19:32:58 +02:00
Adorian Doran
93ee8ea3af Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-06 19:20:14 +02:00
Adorian Doran
746e8ac5ea style(next): tweak the attribute detail dialog 2025-02-06 19:20:10 +02:00
Elian Doran
e007840d9d Merge pull request #1125 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.1.0
2025-02-06 18:57:04 +02:00
Elian Doran
c964f61155 fix(ci): stop nightly release from being draft 2025-02-06 18:50:49 +02:00
Adorian Doran
8ca00c2138 client: use the icon action style for the help buttons of the attachment pages 2025-02-06 17:29:41 +02:00
Adorian Doran
ef0431fc58 client: fix the style of a checkbox 2025-02-06 16:36:45 +02:00
Adorian Doran
b4929d772a style(next): fix disabled menu items not being grayed out 2025-02-06 16:31:38 +02:00
Adorian Doran
cba504fb24 style(next): file input: change the foreground color depending on the state 2025-02-06 07:28:12 +02:00
Adorian Doran
e4d49cc45d style(next): calendar: remove useless property 2025-02-06 07:19:34 +02:00
Adorian Doran
cd35215819 client: use the new file input fields 2025-02-06 07:17:58 +02:00
Adorian Doran
7d2ace92eb style(next): create a style for file (upload) input fields 2025-02-06 07:13:15 +02:00
Adorian Doran
0dcd2718c8 client: fix some broken checkboxes on the legacy theme 2025-02-06 06:22:30 +02:00
Adorian Doran
09ae998437 style(next): calendar: adapt to the changes from the base theme 2025-02-06 06:07:42 +02:00
Adorian Doran
f628114923 client: fix the calendar appearance on the legacy theme 2025-02-06 06:05:44 +02:00
Adorian Doran
5ab455adf2 style(next): calendar: various tweaks 2025-02-06 05:36:51 +02:00
Adorian Doran
4c1aeaca93 style(next): calendar: tweak the next/previous buttons 2025-02-06 05:25:18 +02:00
Adorian Doran
57bf142c4c style(next): calendar: tweak the month input field 2025-02-06 05:20:22 +02:00
Adorian Doran
abf93dc11d style(next): calendar: tweak the year input field 2025-02-06 05:07:37 +02:00
renovate[bot]
e356a34f0d chore(deps): update dependency electron to v34.1.0 2025-02-06 00:34:24 +00:00
Elian Doran
91073e5e70 feat(electron): larger windows installer 2025-02-05 22:34:17 +02:00
Elian Doran
2e1b2004dc feat(in-app-help): add a custom style for contextual help headings 2025-02-05 21:25:34 +02:00
Elian Doran
b84b7e1cdf chore(client/ts): port content_widget 2025-02-05 21:13:17 +02:00
Elian Doran
5173e37d8f chore(client/ts): port type_widget 2025-02-05 21:06:21 +02:00
Elian Doran
7fa0ad336e Merge remote-tracking branch 'origin/develop' into feature/in_app_help 2025-02-05 19:56:03 +02:00
Elian Doran
780c7377de Merge remote-tracking branch 'origin/master' into develop 2025-02-05 19:25:00 +02:00
Elian Doran
fe85e1e16c refactor(ci): try to deploy nightly with same release action 2025-02-05 19:10:08 +02:00
Elian Doran
7590c1da24 fix(ci): remove debug action 2025-02-05 18:53:40 +02:00
Elian Doran
803f59260d fix(ci): error in building electron due to extensions 2025-02-05 18:47:14 +02:00
Elian Doran
856a8a754e Merge pull request #1122 from TriliumNext/refactor_electron-forge-config
refactor: electron forge config
2025-02-05 18:16:13 +02:00
Elian Doran
e050efd1bd fix(ci): nightly artifact building 2025-02-05 13:36:53 +02:00
Panagiotis Papadopoulos
62099abb29 refactor(forge.config): simplify getExtraResourcesForPlatform 2025-02-05 09:56:08 +01:00
Panagiotis Papadopoulos
2b83470de6 refactor(forge.config): call getExtraResourcesForPlatform once only 2025-02-05 09:33:33 +01:00
Panagiotis Papadopoulos
e0862ce8f3 refactor(forge.config): avoid duplication for linux makers
adds a baseLinuxMakersConfigOptions
2025-02-05 09:30:55 +01:00
Panagiotis Papadopoulos
0c1185df33 refactor(forge.config): make afterComplete more concise 2025-02-05 08:53:06 +01:00
Elian Doran
ddc6ac4590 fix(server): improve tolerance for node version 2025-02-05 08:55:40 +02:00
Adorian Doran
0d62493b77 style(next): ribbon: minor tweaks 2025-02-05 03:43:13 +02:00
Adorian Doran
a8050c9bf8 style(next): input group: fix the color of disabled action buttons 2025-02-05 02:51:08 +02:00
Adorian Doran
d080c763f4 style(next): tweak note's menu icon alignment 2025-02-05 02:43:52 +02:00
Adorian Doran
36b138655c style(next): text notes: fix the table caption colors on dark theme 2025-02-05 02:38:15 +02:00
Adorian Doran
d9f37dfc19 style(next): delete note preview dialog: add some gap between note's name and its path 2025-02-05 02:31:35 +02:00
Adorian Doran
c6787a9cf2 style(next): dropdown menus: fix the scrollbar background for Chromium-based browsers 2025-02-05 02:23:36 +02:00
Elian Doran
b851287100 chore(ci): add debug log 2025-02-04 23:50:03 +02:00
Elian Doran
8ad8041689 Merge pull request #1108 from TriliumNext/build_add-rpm-electron
build: add RPM build via electron-forge
2025-02-04 23:26:14 +02:00
Elian Doran
5d3d9162cb Merge remote-tracking branch 'origin/develop' into build_add-rpm-electron 2025-02-04 23:08:10 +02:00
Elian Doran
a9d667e5a9 fix(ci): nightly build for server ARM 2025-02-04 23:00:38 +02:00
Elian Doran
d847eab697 fix(ci): nightly artifact build 2025-02-04 22:48:17 +02:00
Elian Doran
51cbe12866 fix(ci): nightly not working due to missing deps 2025-02-04 22:30:08 +02:00
Adorian Doran
13239500f9 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-04 22:25:00 +02:00
Adorian Doran
bc82cdbd01 style(next): fix broken backdrop blur when scrolling dropdowns 2025-02-04 22:24:56 +02:00
Elian Doran
ca10d94acb fix(ci): nightly not working due to missing deps 2025-02-04 22:05:10 +02:00
Elian Doran
880c1537d4 Merge remote-tracking branch 'origin/develop' into build_add-rpm-electron 2025-02-04 22:00:00 +02:00
Elian Doran
b818320e43 Merge pull request #1119 from TriliumNext/refactor/deduplicate_ci_workflows
Deduplicate CI workflows
2025-02-04 21:55:59 +02:00
Elian Doran
3fb60b64c0 fix(ci): add missing shell config 2025-02-04 21:55:26 +02:00
Elian Doran
0dfd01858b fix(ci): remove unnecessary artifact upload 2025-02-04 21:50:42 +02:00
Elian Doran
6ae143cc38 refactor(ci): deduplicate server build 2025-02-04 21:49:10 +02:00
Elian Doran
711ab84557 chore(editorconfig): add config for yaml files 2025-02-04 21:41:09 +02:00
Elian Doran
cfdb561bf6 fix(ci): required shell 2025-02-04 21:40:59 +02:00
Elian Doran
ddb42bfe88 fix(ci): add missing file 2025-02-04 21:40:52 +02:00
Elian Doran
836bbba7fe refactor(ci): deduplicate preparing artifacts 2025-02-04 21:37:00 +02:00
Elian Doran
bfdb69292c refactor(ci): deduplicate electron-forge 2025-02-04 21:37:00 +02:00
Elian Doran
f9082fa812 refactor(ci): deduplicate installing dependencies & updating build 2025-02-04 21:37:00 +02:00
Elian Doran
688b5317c1 refactor(ci): deduplicate dmg init 2025-02-04 21:37:00 +02:00
Adorian Doran
7514e2348c Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-04 21:31:19 +02:00
Adorian Doran
f3a0965312 client: mark some checkboxes to use the new style 2025-02-04 21:31:16 +02:00
Elian Doran
dfc6eb8523 Merge pull request #1075 from TriliumNext/test_server-utils
server/utils: add tests and smaller refactors / fixes
2025-02-04 21:29:30 +02:00
Elian Doran
892734bce3 Merge develop into test_server-utils 2025-02-04 21:28:44 +02:00
Elian Doran
0c35714801 Merge pull request #1099 from TriliumNext/refactor_simplify-electron-desktop-ejs
refactor(bin/electron-forge): make desktop.ejs easier to read
2025-02-04 21:24:25 +02:00
Elian Doran
67b46018a2 Merge pull request #1104 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.13.1
2025-02-04 21:23:11 +02:00
Elian Doran
a3d3f9f231 Merge pull request #1103 from TriliumNext/renovate/playwright-monorepo
chore(deps): update dependency @playwright/test to v1.50.1
2025-02-04 21:22:50 +02:00
Elian Doran
e1ac3e8451 Merge pull request #1118 from TriliumNext/renovate/npm-vitest-vulnerability
chore(deps): update dependency vitest to v3.0.5 [security]
2025-02-04 21:22:14 +02:00
Elian Doran
a0f6534cc9 Merge pull request #1113 from TriliumNext/renovate/vitest-monorepo
chore(deps): update dependency @vitest/coverage-v8 to v3.0.5
2025-02-04 21:22:03 +02:00
Elian Doran
902ee74b27 Merge pull request #1114 from TriliumNext/renovate/semver-7.x
fix(deps): remove dependency semver
2025-02-04 21:16:26 +02:00
Elian Doran
ce45309818 feat(deps): remove dependency on semver 2025-02-04 21:15:47 +02:00
renovate[bot]
0af08c2a7b chore(deps): update dependency vitest to v3.0.5 [security] 2025-02-04 18:56:44 +00:00
renovate[bot]
e126d7be34 chore(deps): update dependency @types/node to v22.13.1 2025-02-04 01:45:31 +00:00
renovate[bot]
d908c9044b fix(deps): update dependency semver to v7.7.1 2025-02-04 01:45:21 +00:00
renovate[bot]
6facc3d05c chore(deps): update vitest monorepo to v3.0.5 2025-02-04 01:45:13 +00:00
Adorian Doran
805405484e client: mark the add and save buttons from the "Owned Attributes" tab to use the icon button style 2025-02-04 00:10:38 +02:00
Adorian Doran
90732a5324 style(next): add an alias CSS class (tn-tool-button) for icon buttons 2025-02-04 00:08:43 +02:00
Adorian Doran
5376abac0b style(next): find & replace: tweak appearance 2025-02-03 23:48:37 +02:00
Adorian Doran
caf613a4ef client: find & replace: move the current index and total results counters inside the "Find in text" input field 2025-02-03 23:47:42 +02:00
Adorian Doran
404c53ddcd Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-03 23:11:40 +02:00
Adorian Doran
4631298ad0 style(next): improve the layout of the find and replace panel 2025-02-03 23:11:37 +02:00
Elian Doran
6953928f7a feat(in_app_help): reuse contextual help if possible 2025-02-03 22:50:00 +02:00
Elian Doran
c649f473b4 style(geo_map): improve floating buttons 2025-02-03 22:40:41 +02:00
Elian Doran
2b5f37e19d style(next): improve global menu update badge on horizontal layout 2025-02-03 22:27:41 +02:00
Adorian Doran
4efc86b9a3 style(next): fix the up / down buttons of the "Find in text" input box 2025-02-03 22:15:53 +02:00
Adorian Doran
59fdc7d048 client: fix broken selector 2025-02-03 20:52:48 +02:00
Adorian Doran
16cc4fadd7 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-03 20:26:09 +02:00
Adorian Doran
631d46028c client: tweak the label definition / relation definition dialog 2025-02-03 20:25:43 +02:00
Elian Doran
79e830b6ea fix(search): empty mindmap note breaking search (closes #1107) 2025-02-03 19:06:51 +02:00
Elian Doran
766473c291 fix(search): empty mindmap note breaking search (closes #1107) 2025-02-03 18:59:56 +02:00
Adorian Doran
c9bfd07722 style(next): tweak the new tab page 2025-02-03 17:49:07 +02:00
Adorian Doran
664b1e32a6 style(next): create a CSS file for the empty note (shown when opening a blank tab) 2025-02-03 17:29:10 +02:00
Adorian Doran
6f1f728c1b client: "Setup" dialog: use a consistent format for radio buttons 2025-02-03 17:17:39 +02:00
Adorian Doran
3ec24231f2 client: "Include note" dialog: use a consistent format for radio buttons 2025-02-03 17:06:04 +02:00
Adorian Doran
4dafb47a36 client: add some gap between protected session password prompt form elements 2025-02-03 17:00:01 +02:00
Adorian Doran
8a51f05bf4 client: mark some links to use the new style 2025-02-03 16:52:15 +02:00
Adorian Doran
9a84dec222 client: "Label detail" dialog: use a consistent checkbox format 2025-02-03 16:44:22 +02:00
Adorian Doran
c832eed0d7 style(next): fix the combo box style being overridden in some particular cases 2025-02-03 16:37:27 +02:00
Panagiotis Papadopoulos
0ce3ae9476 build(release): fix Unix artefact preparation 2025-02-03 09:40:33 +01:00
Panagiotis Papadopoulos
e3c7a72eee build(release): add rpm build for Linux 2025-02-03 09:40:33 +01:00
Panagiotis Papadopoulos
1cd49130dd build(electron): add rpm config 2025-02-03 09:40:33 +01:00
Panagiotis Papadopoulos
aa446f7bd6 deps: add @electron-forge/maker-rpm 2025-02-03 09:40:33 +01:00
Elian Doran
438f28b5b0 chore(release): prepare for 0.91.6 2025-02-03 09:48:06 +02:00
Elian Doran
fd7f3ef2ff Merge pull request #1101 from TriliumNext/bugfix/mac-paste
Remove `mac_init` as it was breaking MacOS
2025-02-03 09:35:58 +02:00
renovate[bot]
528fe1904c chore(deps): update dependency @playwright/test to v1.50.1 2025-02-03 01:09:17 +00:00
Adorian Doran
7d81c65e8e Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-03 01:09:04 +02:00
Adorian Doran
ccbd47e03d desktop app: use a custom user agent string 2025-02-03 01:09:01 +02:00
Elian Doran
c32778eb65 Merge pull request #1101 from TriliumNext/bugfix/mac-paste
Remove `mac_init` as it was breaking MacOS
2025-02-03 00:49:45 +02:00
Panagiotis Papadopoulos
61e56023d4 refactor(electron-forge/deb): make desktop.ejs easier to read
in theory we could use variables in ejs, but unfortunately electron uses lodash template to create the file, which itself DOES NOT like any let/const/var assignments – wasted a bit of time finding this out, before coming up with this solution
2025-02-02 22:25:56 +01:00
Elian Doran
e2c0c6ef92 feat(in-app-help): don't open table of contents when in help view 2025-02-02 21:37:41 +02:00
Elian Doran
b2bbf9cc5b fix(in-app-help): set proper hoist for split help 2025-02-02 20:49:28 +02:00
Elian Doran
868ca2d982 feat(in-app-help): contextual help button for geo notes 2025-02-02 20:44:36 +02:00
perfectra1n
363360f0d5 we can just remove mac_init now since we're not using it 2025-02-02 10:21:59 -08:00
Elian Doran
64654290be fix(client/ts): regression in table of contents 2025-02-02 20:21:35 +02:00
perfectra1n
512440684e remove mac_init functionality as it was overriding paste (and other) functionality, and is no longer needed 2025-02-02 10:19:21 -08:00
Elian Doran
d0317f4bb6 chore(client/ts): port toc 2025-02-02 19:44:18 +02:00
Elian Doran
d901a0f787 fix(in-app-help): style error when loading a note 2025-02-02 19:21:36 +02:00
Elian Doran
3796818a78 fix(in-app-help): headings not always updated properly 2025-02-02 19:08:44 +02:00
Elian Doran
ff0514a7dc fix(in-app-help): jumping to headings in table of contents 2025-02-02 18:35:41 +02:00
Elian Doran
e41a02893f feat(in-app-help): enable table of contents 2025-02-02 18:33:58 +02:00
Elian Doran
aca0588b26 feat(in-app-help): disable adding child notes 2025-02-02 18:13:47 +02:00
Elian Doran
989918efe6 feat(in-app-help): show syntax highlighting 2025-02-02 18:01:42 +02:00
Elian Doran
b298f4acea fix(in-app-help): duplicate icon 2025-02-02 17:56:51 +02:00
Elian Doran
45ddafba6d fix(in-app-help): proper note hoisting 2025-02-02 17:54:14 +02:00
Elian Doran
e24013adf5 feat(in-app-help): integrate into existing help command 2025-02-02 17:49:26 +02:00
Elian Doran
122c1ad1ec feat(in-app-help): render folders as book 2025-02-02 17:34:52 +02:00
Elian Doran
02708d593f feat(in-app-help): add default icon for notes 2025-02-02 17:03:27 +02:00
Elian Doran
6215a21bae feat(in-app-help): add dedicated icon for folders 2025-02-02 17:02:10 +02:00
Elian Doran
62dc11f9b8 feat(in-app-help): add icons for text notes 2025-02-02 16:54:09 +02:00
Elian Doran
bac529f1f1 feat(in-app-help): remove duplicate <h1> 2025-02-02 16:18:07 +02:00
Elian Doran
ebaba4ff4a feat(in-app-help): render images 2025-02-02 16:14:29 +02:00
Elian Doran
7c34a6178a feat(in-app-help): render documentation 2025-02-02 15:34:44 +02:00
Elian Doran
61ee15cc01 feat(in-app-help): update docName attribute if it got changed 2025-02-02 15:32:28 +02:00
Elian Doran
94d53727d1 feat(in-app-help): support child nesting 2025-02-02 14:31:07 +02:00
Elian Doran
f1d641ac32 feat(in-app-help): create notes at root level 2025-02-02 14:20:02 +02:00
Elian Doran
58e82fb0f8 chore(in-app-help): add first draft of the user guide 2025-02-02 14:17:25 +02:00
Elian Doran
acbd936654 chore(types): add type for note meta file 2025-02-02 13:55:15 +02:00
Elian Doran
5afddb4ecc feat(inapp-help): add hidden item for user guide 2025-02-02 13:30:22 +02:00
Elian Doran
00bb7af5bd chore(client/ts): port doc 2025-02-02 12:59:00 +02:00
Elian Doran
2fdac9b438 style(next): small margin to promoted attribute cells 2025-02-02 12:52:50 +02:00
Elian Doran
71cd35c25d style(next): fix italic text for buttons 2025-02-02 12:50:57 +02:00
Elian Doran
ec95f62cd2 fix(server): doc notes not being served in dev mode 2025-02-02 12:47:41 +02:00
Elian Doran
3911c0c22b refactor(geo_map): extract build icon into method 2025-02-02 11:07:28 +02:00
Adorian Doran
6cd2a16155 style(print): skip highlighting Trilium internal links 2025-02-02 02:51:46 +02:00
Adorian Doran
9b775a142d style(print): improve footnotes 2025-02-02 02:37:39 +02:00
Adorian Doran
120b8466ac style(print): improve the TODO list check boxes 2025-02-02 02:04:25 +02:00
Elian Doran
65e593f3ff fix(geo-map): duplicate tracks after refresh 2025-02-01 23:35:34 +02:00
Adorian Doran
c84737b90e Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-01 22:52:48 +02:00
Adorian Doran
72a9004643 style(print): restyle the TODO list check boxes 2025-02-01 22:52:45 +02:00
Elian Doran
7a0199595d feat(geo_map): react to changes in hierarchy 2025-02-01 22:22:19 +02:00
Elian Doran
15881dfb6b feat(geo_map): add basic support for gpx files 2025-02-01 22:13:47 +02:00
Elian Doran
211b557920 refactor(geo_map): move marker processing to dedicated method 2025-02-01 21:46:11 +02:00
Elian Doran
bd638b689f feat(print): improve todo list rendering 2025-02-01 19:45:10 +02:00
Adorian Doran
3eccdd5cff style(print): justify the note's text 2025-02-01 19:41:33 +02:00
Adorian Doran
7702726012 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-01 19:16:49 +02:00
Adorian Doran
ca496e1d12 desktop app/export pdf: enable background colors 2025-02-01 19:16:47 +02:00
Elian Doran
6ac868555f feat(print): fix widowed headings 2025-02-01 19:16:28 +02:00
Elian Doran
2bb006d80e feat(print): better widows & orphans support 2025-02-01 19:16:28 +02:00
Adorian Doran
e3816c30c0 style(print): tweak figure captions 2025-02-01 19:07:51 +02:00
Adorian Doran
170bba1a89 style(print): tweak blockquotes 2025-02-01 19:02:53 +02:00
Adorian Doran
b5ee642c2d style(print): tweak footnotes 2025-02-01 18:58:50 +02:00
Adorian Doran
16f62bdde9 style(print): tweak links 2025-02-01 18:41:43 +02:00
Elian Doran
fa655ea45e feat(pdf): describe the attributes & fix conflict in name 2025-02-01 17:34:42 +02:00
Adorian Doran
2659bd33e8 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-01 17:17:57 +02:00
Adorian Doran
3cd02f6ceb client(print): use a larger page margins 2025-02-01 17:17:49 +02:00
Elian Doran
f41138800f feat(pdf): allow changing page size via attribute 2025-02-01 17:10:49 +02:00
Elian Doran
9a3a6f90ea Add option to export 2025-02-01 16:59:23 +02:00
Elian Doran
eedad4170e Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-01 16:59:17 +02:00
Adorian Doran
f2cc98eeec client(print): fix the content having a left margin when the note is read-only 2025-02-01 16:58:52 +02:00
Adorian Doran
8b8f0c289e client(print): use a different base font size 2025-02-01 16:51:04 +02:00
Adorian Doran
9c4535bade desktop app(export pdf): enable document outline and PDF tags generation 2025-02-01 16:31:25 +02:00
Elian Doran
dd12d7f314 chore(client/ts): port export 2025-02-01 16:23:55 +02:00
Adorian Doran
02d4d011c3 Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-01 16:15:25 +02:00
Adorian Doran
6d6272e5b6 desktop app(export pdf): refactor 2025-02-01 16:14:49 +02:00
Panagiotis Papadopoulos
e710409134 test(server/utils): remove completed TODO 2025-02-01 15:10:31 +01:00
Panagiotis Papadopoulos
08c32da0d2 test(server/utils): fix warnings and explicitly await timeLimit tests 2025-02-01 15:06:07 +01:00
Panagiotis Papadopoulos
13e72c5e0a test(server/utils): add basic test for toObject 2025-02-01 15:00:47 +01:00
Panagiotis Papadopoulos
5c904f100a test(server/utils): add prettier ignore statement to avoid newlines getting mangled 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
4917296d96 test(server/utils): add basic test for deferred
this needs to be expanded, but I don't fully understand
what the exact purpose is of this deferred fn
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
e1795a0ad1 test(server/utils): add tests for toMap 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
ab0c84a57e refactor(server/utils): use a "real" Map for toMap 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
f0ba056bb7 test(server/utils): add tests for escapeHtml & unescapeHtml 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
d71e127828 refactor(server/utils): re-export escape/unescape instead of wrapping them in function
-> since the functions did not do *anything* other than calling the escape/unescape module -> let's just re-export them directly
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
72f0de6b78 test(server/utils): add todo remarks 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9f2dd21865 test(server/utils): add tests for randomSecureToken
(bit ugly I have to say, as we are essentially partially testing "crypto" module here,
probably should be instead replaced by a version that mocks crypto module and checks, if the called functions match the expectations)
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
a4ce2ddd5e refactor(server/utils): simplify getResourceDir
get rid of unnecessary else branch here
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
6e5e6989ed fix(server/utils): fix potentially "empty looking" title from getNoteTitle
when the noteMeta title consists of just spaces, it will fall back to "normal" handling again → instead of showing " " as title, which would be perceived as "empty"
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
46f28f4f09 test(server/utils): add edge case test for getNoteTitle
when the noteMeta title consists of just spaces, it should fall back to "normal" handling again → currently this fails
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
65be2cf048 refactor(server/utils): simplify getNoteTitle 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
c3587ad536 test(server/utils): add tests for getNoteTitle 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
c15e46bf25 chore(server/utils): improve types for getNoteTitle 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
b812e67794 test(server/utils): adapt tests for getContentDisposition
since we merged these functions, adapt the previous tests of sanitizeFilenameForHeader and use them for the newly merged function getContentDisposition
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
fedaec6c79 refactor(server/utils): merge sanitizeFilenameForHeader into getContentDisposition
sanitizeFilenameForHeader is not used anywhere else and is tiny, so let's merge it
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
29b1befd60 fix(server/utils): missing export for sanitizeFilenameForHeader 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
6ab9a3979d refactor(server/utils): simplify sanitizeFilenameForHeader
since "" is falsy, we can just use "||" here
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
acb7098bb8 test(server/utils): add tests for sanitizeFilenameForHeader 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
df1d479720 chore(server/utils): sort exports alphabetically 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
ef66d330ec chore(server/utils): timeLimit - add TODO comment 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9a8a27c02c refactor(server/utils): avoid same variable name for error in timeLimit
rename the error created in timeLimit to `errorTimeLimit` to differentiate it from the error that is caught inside the promise

makes it a bit easier to quickly distinguish these
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9eeedc827c test(server/utils): add tests for timeLimit 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
440dbfd4d4 refactor(server/utils): use Set for isStringNote 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
3094b1779e test(server/utils): add tests for isStringNote 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
5c20a6d5ee test(server/utils): add tests for isDev 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
283b19c716 fix(server/utils): add missed export of isDev in default export object 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
de5ffb591d test(server/utils): add tests for isMac/isWindows/isElectron 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
81db681732 refactor(server/utils): remove unused union
function is not used at all anywhere
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
45cf0334f1 test(server/utils): add tests for stripTags 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
738436061c test(server/utils): add tests for removeDiacritic and normalize 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
92123e1761 refactor(server/utils): get rid of isString
let's use typeof x === "string" → works exactly the same and at the same speed as this custom isString fn
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
41c96fb202 test(server/utils): add tests for envToBoolean 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9689222fd4 test(server/utils): add tests for removeTextFileExtension 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
05a0acbdb5 test(server/utils): add tests for newEntityId
and randomString
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
33346e0cee test(server/utils): add tests for sanitizeSqlIdentifier 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
03c1128a72 fix(isEmptyOrWhitespace): avoid exception throwing when passed value is undefined
the req.body value from "routes/api/branches" actually seems to never get parsed into a JS object, but arrives as text string, so req.body.prefix could be undefined, which of course would cause an error to be thrown, when trying to call "match" on undefined.
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
8546fe2333 test(server/utils): add tests for isEmptyOrWhitespace 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
e6f5321444 test(server/utils): move formatDownloadTitle tests to spec file 2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
668cc7e1a4 test(import/utils): prepare spec file 2025-02-01 14:37:12 +01:00
Elian Doran
a2f1d71754 chore(client/ts): port mobile_widgets 2025-02-01 14:45:12 +02:00
Elian Doran
2baf75d0c1 feat(electron): custom icon for the windows installer 2025-02-01 14:39:36 +02:00
Adorian Doran
dcf164e2ff Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-02-01 14:37:36 +02:00
Adorian Doran
a1dfeb14e1 desktop app(export pdf): add page numbering 2025-02-01 14:37:21 +02:00
Elian Doran
72991a5649 fix(tray): improve fit for recent notes 2025-02-01 14:00:56 +02:00
Elian Doran
50514e2418 feat(tray): display recent note date as detail 2025-02-01 13:23:14 +02:00
Elian Doran
495fce7594 feat(tray): use template for menu icons 2025-02-01 12:57:51 +02:00
Elian Doran
ddb277e8e5 feat(tray): use template for main icon 2025-02-01 12:53:11 +02:00
Elian Doran
6db51d648b feat(tray): black icon for macOS 2025-02-01 12:49:01 +02:00
Elian Doran
c80bf48d13 fix(tray): bring back dev icon 2025-02-01 12:45:32 +02:00
Elian Doran
0f2e50d265 feat(tray): higher DPI icon 2025-02-01 12:41:43 +02:00
Elian Doran
e10256e5bd fix(tray): error if today's note was missing 2025-02-01 12:25:12 +02:00
Elian Doran
43ba49833d feat(tray): try add 1.25x and 1.5x for Windows high-DPI 2025-02-01 12:22:13 +02:00
Elian Doran
755774042e feat(tray): support hi-DPI 2025-02-01 11:59:42 +02:00
Elian Doran
0acd3c621e Merge pull request #1086 from TriliumNext/fix_search_of_autocomplete
Fix a bug in the full text search in AutoComplete
2025-02-01 11:41:06 +02:00
Elian Doran
0bf3f890a2 feat(tray): support custom icon for dev mode 2025-02-01 11:34:35 +02:00
Elian Doran
80ddc8b4ef feat(tray): react to language changes 2025-02-01 11:20:29 +02:00
Elian Doran
54f9cf831d feat(i18n): translate tray icon 2025-02-01 11:16:46 +02:00
Elian Doran
60d8bc8238 feat(tray): reload recent notes on change 2025-02-01 11:07:47 +02:00
Elian Doran
ebc523a0fd feat(tray): reload bookmarks on change 2025-02-01 11:04:49 +02:00
Elian Doran
09bf48e5a4 feat(tray): support bookmark folders 2025-02-01 10:54:00 +02:00
Elian Doran
ae4f012390 feat(tray): ensure window is visible 2025-02-01 10:46:27 +02:00
Elian Doran
c1f8c8a0b9 feat(tray): react to dark mode change 2025-02-01 10:41:08 +02:00
Elian Doran
4701edff4c feat(tray): support dark theme for icons 2025-02-01 10:32:57 +02:00
Elian Doran
736f329857 feat(tray): use icons for tray items 2025-02-01 10:21:25 +02:00
Elian Doran
4bd9d32c74 feat(tray): use checkbox for show windows and move to top 2025-02-01 02:46:33 +02:00
Elian Doran
839e8a4143 feat(tray): display recent notes 2025-02-01 02:40:04 +02:00
Elian Doran
cd0c79e3d2 feat(tray): show a list of bookmarks 2025-02-01 02:29:34 +02:00
Elian Doran
84edf0348f feat(tray): open today's journal note 2025-02-01 02:18:10 +02:00
Elian Doran
4b1cbca76d feat(tray): add option to create new note 2025-02-01 02:08:19 +02:00
Elian Doran
9e0d002704 refactor(tray): use named functions instead of arrow fn 2025-02-01 01:54:51 +02:00
Elian Doran
c09ef76f87 Merge pull request #1091 from TriliumNext/feature/different_printing_mechanism
Export as PDF
2025-02-01 01:35:43 +02:00
Elian Doran
b59f98d63b Merge pull request #1092 from lly-c232733/develop
Band-Aid fix for the bootleg eslint
2025-02-01 01:32:03 +02:00
Elian Doran
bd363dac93 chore(review): use async 2025-02-01 01:21:38 +02:00
Elian Doran
81755d804b feat(print): improve code notes 2025-02-01 01:16:35 +02:00
Elian Doran
6ad19198c6 feat(print): improve on mobile 2025-02-01 01:12:53 +02:00
Elian Doran
8e88645fd3 feat(print): hide placeholder if note is empty 2025-02-01 00:55:00 +02:00
Elian Doran
2cc7113c2c refactor(deps): get rid of print-this 2025-02-01 00:52:46 +02:00
Elian Doran
ac5f911d4f fix(print): include note not always full-height 2025-02-01 00:43:51 +02:00
Elian Doran
e20180014b chore(i18n): translate new messages to Romanian 2025-02-01 00:37:32 +02:00
Elian Doran
719046e2ca feat(pdf): add keyboard shortcut 2025-02-01 00:36:06 +02:00
Elian Doran
f3a3906db7 feat(pdf): support landscape mode at note level 2025-02-01 00:28:48 +02:00
Elian Doran
658ce103fc feat(pdf): maintain table heading background 2025-02-01 00:08:38 +02:00
Elian Doran
bfadd36f3d style(next): don't print box shadow for code 2025-02-01 00:01:13 +02:00
Elian Doran
d1a5d317ed feat(print): improve rendering of tables 2025-01-31 23:57:50 +02:00
Elian Doran
3927548afb fix(print): width is not always 100% 2025-01-31 23:50:46 +02:00
Elian Doran
ae5a9df5cc fix(print): sidebar reduces width 2025-01-31 23:49:51 +02:00
Elian Doran
3720ca6fc4 fix(print): hide promoted attributes, note list 2025-01-31 23:45:25 +02:00
Elian Doran
cd031336ab fix(print): disable rounded corners on some containers 2025-01-31 23:44:21 +02:00
Elian Doran
30b1da0f41 fix(print): tabs sometimes visible 2025-01-31 23:43:00 +02:00
Elian Doran
143217be88 fix(print): background color 2025-01-31 23:41:23 +02:00
Elian Doran
84532d42ec feat(pdf): error handling 2025-01-31 23:29:53 +02:00
Elian Doran
d4965e8d41 feat(pdf): improve save filter on Windows 2025-01-31 22:51:58 +02:00
lly-c232733
08133dcf3d Update eslint.js
not sure why 'latest' is not working, but this fixes the annoying errors related to es5 being default
2025-01-31 15:41:41 -05:00
Elian Doran
7813c896c3 feat(pdf): hide the option if not electron 2025-01-31 22:22:45 +02:00
Elian Doran
508ce4c962 feat(pdf): open the exported file 2025-01-31 22:19:19 +02:00
Elian Doran
8ac1beaee7 chore(i18n): translate one message 2025-01-31 22:13:48 +02:00
Elian Doran
edaf030b87 chore(pdf: change icon 2025-01-31 22:01:44 +02:00
Elian Doran
e029a3991a fix(pdf): not disabled for unprintable note types 2025-01-31 22:00:26 +02:00
Elian Doran
615218513a feat(pdf): suggest proper file name 2025-01-31 21:58:52 +02:00
Adorian Doran
46573714a4 style(next): tweak the text segments of input groups 2025-01-31 21:52:53 +02:00
Elian Doran
414a4d7b17 feat(print): add filter for PDF 2025-01-31 21:51:15 +02:00
Adorian Doran
09c14f8663 style(next): settings/appearance: fix the length of font size input boxes 2025-01-31 21:50:07 +02:00
Elian Doran
0f7826d6d0 feat(print): implement basic export as PDF support 2025-01-31 21:44:59 +02:00
Adorian Doran
c5edfbc127 style(next): restyle the text segments of input groups 2025-01-31 21:35:08 +02:00
Adorian Doran
b56b42bea0 style(next): improve the color contrast for switches 2025-01-31 21:26:19 +02:00
Elian Doran
dbf004d673 feat(print): add option to print as PDF (not yet implemented) 2025-01-31 21:18:24 +02:00
Elian Doran
e3dbe21c5a chore(client/ts): port note_actions 2025-01-31 21:08:09 +02:00
Adorian Doran
48b4f37f91 style(next): adjust the vertical offset of the menu item icons to align with the new font metrics 2025-01-31 21:02:11 +02:00
Elian Doran
298634ceaa refactor(print): use dedicated print CSS 2025-01-31 20:47:18 +02:00
Elian Doran
561c50706e feat(print): carry over original print stylesheet 2025-01-31 20:45:18 +02:00
Elian Doran
4a5bf28f06 fix(print): remove title & reduce paddings 2025-01-31 20:43:35 +02:00
Elian Doran
d201fe7a06 fix(print): left padding of text notes 2025-01-31 20:40:11 +02:00
Elian Doran
7dfba9f513 feat(print): respect page breaks 2025-01-31 20:32:12 +02:00
Elian Doran
c06642ba1e fix(print): remove extra spacing 2025-01-31 20:27:32 +02:00
Elian Doran
d5d7c1565e feat(print): implement stylesheet for global note printing 2025-01-31 20:24:19 +02:00
SiriusXT
b44df12148 Fix a bug in the full text search in AutoComplete 2025-01-31 19:10:45 +08:00
Adorian Doran
c878a6d2fd Merge pull request #1074 from TriliumNext/style/next/forms
Style Next: Restyle form elements
2025-01-31 11:19:25 +02:00
Elian Doran
77bbdc3857 chore(client/ts): port new version of switch 2025-01-31 09:57:25 +02:00
Elian Doran
0dd91ad737 revert: accidental changes after merge 2025-01-31 09:41:53 +02:00
Adorian Doran
c6bbc284aa style(next): remove a not longer needed style 2025-01-31 03:32:06 +02:00
Adorian Doran
e742bdf401 client: fix the style of the icon category combo box 2025-01-31 02:54:24 +02:00
Adorian Doran
e270b0b587 style(next): tweak the colors of the dark theme 2025-01-31 00:26:49 +02:00
Adorian Doran
076c9f4d96 style(next): tweak the colors of the dark theme 2025-01-31 00:09:46 +02:00
Adorian Doran
e425f64616 style(next): icon buttons: properly align the buttons in the right panes' header 2025-01-31 00:01:41 +02:00
Adorian Doran
f59515fe36 style(next): use the new icon button style for the help buttons associated to switches 2025-01-30 23:56:41 +02:00
Adorian Doran
67904e16a8 client: rollback some buttons as secondary buttons 2025-01-30 23:49:53 +02:00
Adorian Doran
9c847686a6 style(next): use the new icon button style for the ETAPI token table buttons 2025-01-30 23:49:25 +02:00
Adorian Doran
c8a556723c style(next): icon buttons: use a distinctive style for the "x" buttons 2025-01-30 23:23:12 +02:00
Adorian Doran
ac89c2cb65 style(next): icon buttons: tweak the alignment of the "Create new split" button relative to the note's menu button 2025-01-30 23:08:09 +02:00
Adorian Doran
9cfd01200a style(next): icon buttons: add a style for the visible focus state 2025-01-30 22:50:35 +02:00
Adorian Doran
f2f0bf3e10 style(next): icon buttons: keep the button highlighted while the dropdown is open 2025-01-30 22:47:24 +02:00
Adorian Doran
3311f4f01c style(next): restyle icon buttons 2025-01-30 22:44:11 +02:00
Adorian Doran
b170c234ce style(next): refactor 2025-01-30 21:00:46 +02:00
Adorian Doran
349ae84c8e style(next): tweak combo box-like dropdown buttons 2025-01-30 20:57:36 +02:00
Adorian Doran
c3656e27c8 client: mark a button to by styled as a combo box-like dropdown 2025-01-30 20:46:42 +02:00
Adorian Doran
b27537a9c3 style(next): buttons: fix combo box-like dropdown buttons regression 2025-01-30 20:44:27 +02:00
Adorian Doran
c26dd283fa client: rollback some buttons as secondary buttons 2025-01-30 20:30:51 +02:00
Elian Doran
3f6e66b5f1 chore(release): bump to v0.91.5 2025-01-30 20:14:22 +02:00
Elian Doran
730a43c922 fix(mobile): formatting bar overlapping with bottom bar (fixes #970) 2025-01-30 19:44:17 +02:00
Elian Doran
047b226426 Merge commit 'ef5f5b35db25bd532c1f22424a7f17576cc219a4' into develop 2025-01-30 18:04:49 +02:00
Elian Doran
565989dd4c feat(client/ts): port tree (WIP) 2025-01-30 10:14:10 +02:00
Elian Doran
795dec77cf Merge pull request #1076 from TriliumNext/renovate/electron-34.x
chore(deps): update dependency electron to v34.0.2
2025-01-30 09:01:49 +02:00
Elian Doran
4f69fd664c Merge pull request #1077 from TriliumNext/renovate/semver-7.x
fix(deps): update dependency semver to v7.7.0
2025-01-30 09:01:26 +02:00
renovate[bot]
d27e33c9f0 fix(deps): update dependency semver to v7.7.0 2025-01-30 01:56:57 +00:00
renovate[bot]
3318c9fec6 chore(deps): update dependency electron to v34.0.2 2025-01-30 01:56:48 +00:00
Adorian Doran
ad06eaca5e Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-30 00:17:24 +02:00
Adorian Doran
a889170844 style(next): buttons: remove useless property 2025-01-30 00:17:03 +02:00
Adorian Doran
774249d6ad style(next): buttons: improve layout 2025-01-29 23:41:57 +02:00
Adorian Doran
700598ed63 style(next): buttons: remove the previously defined gap between buttons 2025-01-29 23:23:47 +02:00
Adorian Doran
4988468103 style(next): buttons: refactor, document 2025-01-29 23:21:44 +02:00
Adorian Doran
0fed7842cf Merge branch 'style/next/forms' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-29 23:14:38 +02:00
Adorian Doran
bd37055965 style(next): buttons: style icons 2025-01-29 23:14:27 +02:00
Elian Doran
748162b997 fix(e2e): broken test after style changes 2025-01-29 22:40:43 +02:00
Panagiotis Papadopoulos
092c288df2 chore(issue_templates): add simple Task template 2025-01-29 22:40:43 +02:00
Panagiotis Papadopoulos
818cc30650 refactor(server/utils): isDev move to utils and replace fn with boolean
this value cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
2025-01-29 22:40:43 +02:00
Panagiotis Papadopoulos
13a1b42e12 refactor(server/utils): isElectron - replace fn with boolean
this values cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
5630a7b2e3 refactor(server/utils): isMac/isWin - replace fn with boolean
those values cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
013b42bdd1 fix(setup): make keyboard navigation work
fixes #94
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
a110161b2e fix(setup): use safer text method instead of html to prevent possible XSS
see also https://api.jquery.com/html/
under "Additional Notes":
"Do not use these methods to insert strings obtained from untrusted sources such as URL query parameters, cookies, or form inputs. Doing so can introduce cross-site-scripting (XSS) vulnerabilities. Remove or escape any user input before adding content to the document. "

fixes #1072
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
328c53b725 chore(assets): remove manual provision of knockout
this is only used in setup.ts and there it is already packed by webpack – so no need to manually provide it as static asset anymore
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
06d9b998de chore(prettier): fix code style for setup.ts 2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
e6103bf11a chore(views/setup): remove knockout src tag
-> this is now handled inside setup.ts and is handled by webpack
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
726683078e chore(views/setup): move syncInProgress to meta tag
makes it easier to hanlde in the setup.ts file
2025-01-29 22:40:42 +02:00
Panagiotis Papadopoulos
52814030d8 chore(client/ts): port setup.js entrypoint to TS 2025-01-29 22:40:42 +02:00
Adorian Doran
e96b9f3251 style(next): buttons: style keyboard shortcut 2025-01-29 22:20:52 +02:00
Elian Doran
67a23f0bae Merge pull request #1070 from TriliumNext/chore_github-issue_task
chore(issue_templates): add simple Task template
2025-01-29 22:17:45 +02:00
Elian Doran
6fab899898 Merge pull request #1073 from TriliumNext/refactor_utils-isPlatform
refactor(server/utils): turn isMac/isWin/isElectron/isDev into boolean
2025-01-29 22:16:20 +02:00
Elian Doran
fd53d49937 Merge pull request #1071 from TriliumNext/fix_setup-keyboard-navigation_#94
fix(setup): make keyboard navigation work
2025-01-29 22:10:29 +02:00
Adorian Doran
e29389296d style(next): buttons: handle visible focus 2025-01-29 22:02:25 +02:00
Adorian Doran
8718dafe88 style(next): buttons: style disabled buttons 2025-01-29 21:59:18 +02:00
Elian Doran
e255fb5a20 Merge pull request #1065 from TriliumNext/chore_port_setup-entrypoint
chore(client/ts): port setup entrypoint
2025-01-29 21:55:39 +02:00
Adorian Doran
2bfb253a2a style(next): buttons: handle "success" button types 2025-01-29 21:53:22 +02:00
Adorian Doran
7d88e43555 client: mark some buttons with their type (primary or secondary) 2025-01-29 21:50:35 +02:00
Adorian Doran
82074ea7eb style(next): buttons: restore a legacy CSS variable 2025-01-29 21:20:31 +02:00
Adorian Doran
16ea6186dd style(next): buttons: rename the CSS variables to avoid clashing with another button styles 2025-01-29 21:17:20 +02:00
Adorian Doran
96b25b8e5e style(next): buttons: use a more accurate CSS selectors 2025-01-29 18:51:00 +02:00
Elian Doran
ef5f5b35db feat(i18n): translate template switch off button 2025-01-29 18:40:56 +02:00
Elian Doran
3c60f181ff chore(client/ts): port template_switch 2025-01-29 18:39:59 +02:00
Elian Doran
6aba099a29 chore(client/ts): port switch 2025-01-29 18:38:27 +02:00
Elian Doran
f86d9b11b1 feat(i18n): translate unable to render note type 2025-01-29 18:37:02 +02:00
Adorian Doran
90afd01d1f style(next): restyle buttons 2025-01-29 18:24:05 +02:00
Adorian Doran
dee221e18a Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-29 17:26:24 +02:00
Panagiotis Papadopoulos
31c46753de refactor(server/utils): isDev move to utils and replace fn with boolean
this value cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
2025-01-29 10:58:00 +01:00
Panagiotis Papadopoulos
ca2bb94200 refactor(server/utils): isElectron - replace fn with boolean
this values cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
2025-01-29 10:55:53 +01:00
Panagiotis Papadopoulos
94411cf418 refactor(server/utils): isMac/isWin - replace fn with boolean
those values cannot change during runtime,
=> there is no need to have these checks
as dynamic function, instead just
export the boolean value directly
2025-01-29 10:55:53 +01:00
Elian Doran
dadda026fb Merge pull request #1068 from TriliumNext/chore_github-issue-type
chore(issue_templates): Use new type field
2025-01-29 11:19:03 +02:00
Panagiotis Papadopoulos
c9c8ee5556 fix(setup): use safer text method instead of html to prevent possible XSS
see also https://api.jquery.com/html/
under "Additional Notes":
"Do not use these methods to insert strings obtained from untrusted sources such as URL query parameters, cookies, or form inputs. Doing so can introduce cross-site-scripting (XSS) vulnerabilities. Remove or escape any user input before adding content to the document. "

fixes #1072
2025-01-29 10:07:40 +01:00
Panagiotis Papadopoulos
66c42f0524 fix(setup): make keyboard navigation work
fixes #94
2025-01-29 09:53:03 +01:00
Panagiotis Papadopoulos
1b35ba762f chore(issue_templates): add simple Task template 2025-01-29 09:16:13 +01:00
Panagiotis Papadopoulos
8344dcee85 chore(issue_templates): Use new type field
https://github.com/orgs/community/discussions/148715#discussioncomment-11845050
also removed title field, as duplicating the issue "type" info in there is not
necessary anymore
2025-01-29 09:08:32 +01:00
Panagiotis Papadopoulos
ed33b72f57 chore(assets): remove manual provision of knockout
this is only used in setup.ts and there it is already packed by webpack – so no need to manually provide it as static asset anymore
2025-01-29 08:48:03 +01:00
Elian Doran
7c28b93477 Merge pull request #1066 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.12.0
2025-01-29 09:20:33 +02:00
renovate[bot]
b49ea378cb chore(deps): update dependency @types/node to v22.12.0 2025-01-29 00:29:12 +00:00
Panagiotis Papadopoulos
4adaa4bd58 chore(prettier): fix code style for setup.ts 2025-01-28 23:18:17 +01:00
Panagiotis Papadopoulos
0559ebb48a chore(views/setup): remove knockout src tag
-> this is now handled inside setup.ts and is handled by webpack
2025-01-28 23:16:16 +01:00
Panagiotis Papadopoulos
98c4baeb6b chore(views/setup): move syncInProgress to meta tag
makes it easier to hanlde in the setup.ts file
2025-01-28 23:15:16 +01:00
Panagiotis Papadopoulos
c7b368fa46 chore(client/ts): port setup.js entrypoint to TS 2025-01-28 23:13:06 +01:00
Elian Doran
05b67fc486 fix(mobile): backend log not shown (fixes #1058) 2025-01-28 22:02:52 +02:00
Elian Doran
44928093bb chore(build): rebuild electron for start-electron-nix 2025-01-28 21:23:20 +02:00
Elian Doran
4da67443c4 feat(print): preserve highlighted text (closes #905) 2025-01-28 21:23:04 +02:00
Elian Doran
feb7ceacd8 style(next): fix strikethrough undelete button 2025-01-28 21:11:18 +02:00
Elian Doran
5c31a0afeb fix(client): quote breaking tooltips (fixes #1003) 2025-01-28 21:03:39 +02:00
Elian Doran
a2b6504d9d feat(ci): build server for Linux ARM 2025-01-28 19:06:14 +02:00
Adorian Doran
2f5ac6d114 client: mark the check boxes and radio buttons that should use the new style 2025-01-24 22:55:12 +02:00
Adorian Doran
fa867cd75d Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-24 22:48:21 +02:00
Adorian Doran
97295e959b style(next): fall back to the user agent's default check boxes and radio buttons if the ":has" selector is not supported 2025-01-24 22:45:58 +02:00
Adorian Doran
41ef47576d client: mark the check boxes and radio buttons that should use the new style 2025-01-24 22:35:45 +02:00
Adorian Doran
ed201ff9a4 style(next): use the new check box and radio button style only for the elements using the "tn-checkbox" and "tn-radio" CSS classes 2025-01-24 22:35:08 +02:00
Adorian Doran
b43c85157b client: mark the links that should use the new style 2025-01-24 10:49:14 +02:00
Adorian Doran
03e7f4b991 style(next): links: add light / dark theme support 2025-01-24 10:21:50 +02:00
Adorian Doran
d6cb2a3751 style(next): links: fix hover state artifacts on Chromium-based browsers 2025-01-24 10:14:18 +02:00
Adorian Doran
0f2fcebe40 client: mark the links that should use the new style 2025-01-23 01:28:35 +02:00
Adorian Doran
f4d2c5a2d2 client: mark the links that should use the new style 2025-01-23 01:12:05 +02:00
Adorian Doran
027649213a style(next): create a new style for links 2025-01-23 00:47:14 +02:00
Adorian Doran
b0014de365 Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-22 23:48:29 +02:00
Adorian Doran
84c03c214e Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-22 19:28:26 +02:00
Adorian Doran
455bb38865 client: switch widget: refactor 2025-01-22 01:30:10 +02:00
Adorian Doran
d4ef84e0b7 client: switch widget: handle the disabled state 2025-01-22 01:24:09 +02:00
Adorian Doran
356c0570f3 client: switch widget: improve appearance 2025-01-22 00:48:25 +02:00
Adorian Doran
7f78504223 style(next): improve the matching of check boxes and radio buttons that have to be restyled 2025-01-21 23:46:27 +02:00
Adorian Doran
ec0d7c0835 client: switch widget: redo the switch style 2025-01-21 21:59:08 +02:00
Adorian Doran
8bdc5c9fea client: switch widget: prevent the check box to become out of sync with the switch toggle status 2025-01-21 05:11:34 +02:00
Adorian Doran
039112f106 client: switch widget: refactor 2025-01-21 04:49:07 +02:00
Adorian Doran
76b99a00f4 client: switch widget: use a simpler HTML structure and refactor its internals 2025-01-21 04:21:01 +02:00
Adorian Doran
8f612f4683 style(next): properly handle disabled check boxes and radio buttons 2025-01-20 17:09:01 +02:00
Adorian Doran
5ad4092cb2 Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-18 20:23:16 +02:00
Adorian Doran
faa4a5fcd8 client: update the markup for the "Available MIME types" check boxes 2025-01-17 01:36:54 +02:00
Adorian Doran
e8f6f68987 style(next): disable text selection for check boxes and radio buttons 2025-01-17 01:24:34 +02:00
Adorian Doran
07dd8995b6 style(next): overhaul the check / uncheck animation for radio buttons 2025-01-17 01:22:09 +02:00
Adorian Doran
4c84bc724d style(next): refactor 2025-01-17 01:06:25 +02:00
Adorian Doran
2773d560b9 style(next): enforce left padding for radios and check boxes 2025-01-17 01:00:19 +02:00
Adorian Doran
a2a9bee7eb style(next): rename some variables 2025-01-17 00:58:11 +02:00
Adorian Doran
398591fb1f style(next): restyle check boxes 2025-01-17 00:51:26 +02:00
Adorian Doran
fe539b1647 style(next): tweak the colors of the radio buttons 2025-01-16 23:39:18 +02:00
Adorian Doran
15dbaf441d style(next): restyle radio buttons 2025-01-16 18:51:35 +02:00
Adorian Doran
edd39ad0db style(next): fix the quick search box 2025-01-15 02:59:55 +02:00
Adorian Doran
c2dbf0a463 style(next): fix the note title text box 2025-01-15 02:44:28 +02:00
Adorian Doran
896d7a383b style(next): tweak combo boxes 2025-01-15 02:31:49 +02:00
Adorian Doran
a184d5bb26 client: use combo box-like dropdown buttons in the "Basic Properties" widget 2025-01-15 02:14:56 +02:00
Adorian Doran
0339d83434 style(next): create a style for dropdown buttons to mimic combo boxes 2025-01-15 02:11:17 +02:00
Adorian Doran
f7efc033e1 style(next): fix broken states on textareas 2025-01-15 01:28:18 +02:00
Adorian Doran
cb65591004 style(next): tweak the group header for combo box items 2025-01-14 22:39:30 +02:00
Adorian Doran
40b95325dd style(next): tweak the combo box arrow 2025-01-14 22:10:06 +02:00
Adorian Doran
99a6e65d15 style(next): update the colors of combo boxes 2025-01-14 21:40:05 +02:00
Adorian Doran
9724b19cd2 style(next): add visual cues for the input action buttons when focused via keyboard 2025-01-14 02:12:26 +02:00
Adorian Doran
707d406ee9 style(next): fix the background of disabled input action buttons 2025-01-14 01:51:18 +02:00
Adorian Doran
26e3c13575 style(next): add states for input action buttons, tweak card background color on dark theme 2025-01-14 01:46:28 +02:00
Adorian Doran
f462e7f93b style(next): add the initial style for input groups 2025-01-14 01:30:31 +02:00
Adorian Doran
5dd7b2c049 style(next): tweak the inputs wrapped inside input groups 2025-01-13 21:45:56 +02:00
Adorian Doran
9ea7b35e6a style(next): use the text box appearance for text areas as well 2025-01-13 21:23:12 +02:00
Adorian Doran
56fb70ab5e style(next): refactor CSS 2025-01-13 21:12:27 +02:00
Adorian Doran
93e740cf36 style(next): restyle text boxes 2025-01-13 14:51:23 +02:00
Adorian Doran
c9bf752b1f Merge branch 'develop' of https://github.com/TriliumNext/Notes into style/next/forms 2025-01-12 23:45:03 +02:00
Adorian Doran
0115ea8088 style(next): create a CSS file for form-related styles 2025-01-09 01:23:17 +02:00
Elian Doran
0916d87e3d feat(client/mfa): improve headings 2024-12-24 14:02:52 +02:00
Elian Doran
e20e53f606 feat(client/mfa): improve layout by separating into multiple sections 2024-12-24 14:02:00 +02:00
Elian Doran
2eb4d4fb66 Merge remote-tracking branch 'origin/develop' into feature/MFA 2024-12-24 13:30:37 +02:00
chesspro13
120f1677e8 Removed unused import 2024-09-14 10:12:14 -07:00
chesspro13
d92820280d Fixed problem with using existing databases. 2024-09-14 10:04:39 -07:00
chesspro13
2e21a45fc1 Merge branch 'develop' into feature/MFA 2024-09-09 16:30:18 -07:00
Chesspro13
fa5c5ce183 Added OpenID and TOTP to readme 2024-09-09 12:29:32 -07:00
Chesspro13
953f539dcc Changed wording from "Regerate TOTP Secret" to "Generate TOTP Secret" 2024-09-09 12:07:48 -07:00
Chesspro13
d8c8fe0a6d Added check for running both OpenID and TOTP at the same time. 2024-09-09 12:01:41 -07:00
chesspro13
55b0f0e3f4 Simplified .env 2024-09-07 15:00:12 -07:00
chesspro13
06da11ff41 Disabled TOTP checkbox 2024-09-07 14:38:08 -07:00
chesspro13
ede7bbd8ed Fixed recovery code refresh bug. 2024-09-07 14:37:09 -07:00
chesspro13
9dd185e37e Removed unused files/code/imports/comments. 2024-09-07 14:25:48 -07:00
chesspro13
13937a2568 Removed outdated comments 2024-09-07 14:19:16 -07:00
chesspro13
d76396056a Removed unused script 2024-09-07 14:17:34 -07:00
chesspro13
df3cbf85e1 Removed references to disconnecting OpenID Accounts. For now. 2024-09-07 14:12:27 -07:00
chesspro13
c74da18e23 OAuth working 2024-09-07 13:18:47 -07:00
chesspro13
1a8625b558 Added package-lock.json 2024-09-07 11:53:26 -07:00
chesspro13
494721f38f Changed Verification order. 2024-09-07 11:51:29 -07:00
chesspro13
37b4bf6b58 Fixed login errors 2024-09-07 11:47:29 -07:00
chesspro13
e232c6634e TOTP working 2024-09-07 11:41:54 -07:00
chesspro13
9c748f326a Ported from branch OIDC 2024-09-07 10:21:41 -07:00
Laurent
0f43299c17 Update README.md 2021-06-27 11:45:17 +01:00
Laurent Cozic
d160d5c8d5 1.0.12 2020-01-08 16:52:08 +00:00
Laurent Cozic
0b2f3dc10a Fixed issue with tables that contain only one cell 2020-01-08 16:51:43 +00:00
Laurent Cozic
9a12000eb0 1.0.11 2019-10-12 19:33:40 +02:00
Laurent Cozic
4368e08c32 1.0.10 2019-10-12 19:33:01 +02:00
Laurent Cozic
4304c3ad92 1.0.9 2019-10-12 19:32:48 +02:00
Laurent Cozic
c00d538f88 Fixes #1: Some tables were imported with an extra header 2019-10-12 19:32:33 +02:00
Laurent Cozic
6fb98621ce Publis script 2019-09-07 10:28:14 +01:00
Laurent Cozic
a120d4ec9c Fix importing tables that contain pipes 2019-09-07 10:27:34 +01:00
Laurent Cozic
3358d85996 Fix importing tables that contain pipes 2019-09-07 10:27:01 +01:00
Laurent Cozic
b33431774b Fix security issues 2019-09-07 10:18:23 +01:00
Laurent Cozic
7051ce787c 1.0.8 2019-05-11 00:26:38 +01:00
Laurent Cozic
1452200c79 Fixed handling of tables with empty headers 2019-05-11 00:26:27 +01:00
Laurent Cozic
54f84c12fd 1.0.7 2018-06-09 19:41:25 +01:00
Laurent Cozic
118a856ee7 Merge branch 'master' of github.com:laurent22/joplin-turndown-plugin-gfm 2018-06-09 19:41:11 +01:00
Laurent Cozic
11225771b6 Don't render table outline if it contains only one cell, or no cell at all 2018-06-09 19:40:57 +01:00
Laurent Cozic
18e93d7c0b Update package.json 2018-05-24 12:34:39 +01:00
Laurent Cozic
ec895d31fb 1.0.6 2018-05-24 12:31:46 +01:00
Laurent Cozic
59153ece46 Handle colspan in TD tags 2018-05-24 12:31:40 +01:00
Laurent Cozic
44aa7353f0 1.0.5 2018-05-22 00:15:34 +01:00
Laurent Cozic
ecb6142c5a Fixed: Ensure there are no blank lines inside tables 2018-05-22 00:15:21 +01:00
Laurent Cozic
a2d99a266b 1.0.4 2018-05-21 23:56:00 +01:00
Laurent Cozic
36179a8394 Make table cells at least 3 char long 2018-05-21 23:55:53 +01:00
Laurent Cozic
90cff86ac0 1.0.3 2018-05-21 23:42:28 +01:00
Laurent Cozic
a1fa10e997 Merge branch 'master' of github.com:laurent22/joplin-turndown-plugin-gfm 2018-05-21 23:42:14 +01:00
Laurent Cozic
7af39b57f0 Replace newlines inside table cells so that resulting markdown is valid 2018-05-21 23:42:02 +01:00
Laurent Cozic
d1563a336a Update README.md 2018-05-21 23:23:19 +01:00
Laurent Cozic
0f64fe53cb Merge branch 'master' of github.com:laurent22/joplin-turndown-plugin-gfm 2018-05-21 23:22:44 +01:00
Laurent Cozic
36263e6295 Moved package to different namespace so that it can be published to npm 2018-05-21 23:22:32 +01:00
Laurent Cozic
616cc129e2 Don't render the border of tables that contain other tables 2018-05-21 23:21:37 +01:00
Laurent Cozic
9bcb5ec3a9 Update README.md 2018-05-21 23:20:53 +01:00
Laurent Cozic
813b9a61b0 Fix trailing space issue 2018-05-17 01:29:33 +01:00
Laurent Cozic
e77328fb23 Handle tables with no headers by creating an empty Markdown header 2018-05-17 01:01:36 +01:00
Dom Christie
61a981b8c6 1.0.2 2018-05-11 12:05:19 +01:00
Dom Christie
22f423429c Merge pull request #9 from domchristie/tables_with_no_heading_row
Keep tables with no definitive heading row
2018-05-11 12:03:16 +01:00
Dom Christie
93d5aed1fe Keep tables with no definitive heading row 2018-05-11 11:55:21 +01:00
Dom Christie
7eeb773b6b Update security vulnerabilities according to npm audit 2018-05-11 11:20:17 +01:00
Dom Christie
cbe8dc5e5c 1.0.1 2017-12-19 10:01:33 +00:00
Dom Christie
aa1b4789ca Merge pull request #2 from domchristie/update_turndown_4.0.1
Update turndown dev dependency to latest version
2017-12-19 10:01:00 +00:00
Dom Christie
b80a6dcb27 Update turndown dev dependency to latest version 2017-12-19 09:55:46 +00:00
Dom Christie
27e789a749 Merge pull request #1 from Galadirith/fix-unpkg-url
Use correct unpkg url for plugin
2017-12-18 18:30:04 +00:00
Edward Fauchon-Jones
1830087ab8 Use correct unpkg url for plugin 2017-12-18 14:03:52 +00:00
Dom Christie
874b9c7ecb 1.0.0 2017-12-17 12:26:55 +00:00
Dom Christie
77c6234c2f Add repository field 2017-12-17 12:26:45 +00:00
Dom Christie
81077a68dd Clarify module files 2017-12-17 12:25:01 +00:00
Dom Christie
20bde1cef6 Update turndown version 2017-12-17 12:24:03 +00:00
Dom Christie
4730ad37bc Fix turndown require path 2017-12-15 08:45:56 +00:00
Dom Christie
a999761fa0 Add travis config 2017-12-15 08:36:34 +00:00
Dom Christie
ac25f96d4c Update package-lock 2017-12-15 08:32:40 +00:00
Dom Christie
37fadbdcf1 0.0.3 2017-12-13 20:53:12 +00:00
Dom Christie
7354350a22 Use widely-supported method to get align attribute 2017-12-12 22:55:54 +00:00
Dom Christie
abd6a18b50 0.0.2 2017-11-24 11:26:12 +00:00
Dom Christie
5603573b6d Build test in build script 2017-11-24 11:26:00 +00:00
Dom Christie
5663b4e006 Do not track test browser build 2017-11-24 11:20:42 +00:00
Dom Christie
b2f021ee9e Remove gfm test browser build 2017-11-24 11:20:22 +00:00
Dom Christie
611f0f037c Add highlighted code block rules 2017-11-24 11:19:37 +00:00
Dom Christie
a4ef6870b7 Improve table heading row conversion 2017-11-24 11:18:27 +00:00
Dom Christie
42e4a09b57 Add gfm plugins 2017-11-10 14:21:46 +00:00
Dom Christie
216791b9da Use minimal gitignore 2017-11-10 14:14:35 +00:00
Dom Christie
202027774a Initial commit 2017-11-10 14:09:07 +00:00
1588 changed files with 85275 additions and 123966 deletions

View File

@@ -1,10 +1,44 @@
.git
.idea
# ignored Files
.dockerignore
.editorconfig
.git*
.prettier*
electron*
entitlements.plist
nodemon.json
renovate.json
trilium.iml
Dockerfile
Dockerfile.*
npm-debug.log
/src/**/*.spec.ts
# ignored folders
/.cache
/.git
/.github
/.idea
/.vscode
/bin
/build
/dist
/docs
/npm-debug.log
node_modules
/dump-db
/e2e
/integration-tests
/spec
/test
/test-etapi
/node_modules
src/**/*.ts
!src/services/asset_path.ts
# exceptions
!/bin/copy-dist.ts
!/bin/cleanupNodeModules.ts
# temporary exception to make copy-dist inside Docker build not fail
# TriliumNextTODO: make copy-dist *not* requiring to copy these file for builds other than electron-forge
!forge.config.cjs
!/bin/tpl
!/bin/electron-forge/desktop.ejs
!/bin/electron-forge/sign-windows.cjs

View File

@@ -15,3 +15,9 @@ indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.yml]
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

10
.gitattributes vendored
View File

@@ -1,3 +1,13 @@
package-lock.json linguist-generated=true
**/package-lock.json linguist-generated=true
src/public/app/doc_notes/en/User[[:space:]]Guide/** linguist-generated=true
src/public/app/doc_notes/en/User[[:space:]]Guide/**/*.md eol=lf
demo/**/*.html eol=lf
demo/**/*.json eol=lf
demo/**/*.svg eol=lf
demo/**/*.txt eol=lf
demo/**/*.js eol=lf
demo/**/*.css eol=lf
libraries/** linguist-vendored

View File

@@ -1,7 +1,6 @@
name: Bug Report
description: Report a bug
title: "(Bug report) "
labels: "Type: Bug"
type: "Bug"
body:
- type: textarea
attributes:

View File

@@ -1,12 +1,11 @@
name: Feature Request
description: Ask for a new feature to be added
title: "(Feature request) "
labels: "Type: Enhancement"
type: "Feature"
body:
- type: textarea
attributes:
label: Describe feature
description: A clear and concise description of what you want to be added..
description: A clear and concise description of what you want to be added.
validations:
required: true
- type: textarea

10
.github/ISSUE_TEMPLATE/task.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
name: Task
description: Create a new Task
type: "Task"
body:
- type: textarea
attributes:
label: Describe Task
description: A clear and concise description of what the task is about.
validations:
required: true

View File

@@ -0,0 +1,163 @@
name: "Build Electron App"
description: "Builds and packages the Electron app for different platforms"
inputs:
os:
description: "One of the supported platforms: macos, linux, windows"
required: true
arch:
description: "The architecture to build for: x64, arm64"
required: true
shell:
description: "Which shell to use"
required: true
forge_platform:
description: "The --platform to pass to Electron Forge"
required: true
runs:
using: composite
steps:
# Certificate setup
- name: Import Apple certificates
if: inputs.os == 'macos'
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ env.APPLE_APP_CERTIFICATE_BASE64 }}
p12-password: ${{ env.APPLE_APP_CERTIFICATE_PASSWORD }}
keychain: build
keychain-password: ${{ github.run_id }}
- name: Install Installer certificate
if: inputs.os == 'macos'
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ env.APPLE_INSTALLER_CERTIFICATE_BASE64 }}
p12-password: ${{ env.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
keychain: build
keychain-password: ${{ github.run_id }}
# We don't need to create a keychain here because we're using the build keychain that was created in the previous step
create-keychain: false
- name: Verify certificates
if: inputs.os == 'macos'
shell: ${{ inputs.shell }}
run: |
echo "Available signing identities:"
security find-identity -v -p codesigning build.keychain
- name: Set up Python and other macOS dependencies
if: ${{ inputs.os == 'macos' }}
shell: ${{ inputs.shell }}
run: |
brew install python-setuptools
brew install create-dmg
- name: Install dependencies for RPM and Flatpak package building
if: ${{ inputs.os == 'linux' }}
shell: ${{ inputs.shell }}
run: |
sudo apt-get update && sudo apt-get install rpm flatpak-builder elfutils
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
FLATPAK_ARCH=$(if [[ ${{ inputs.arch }} = 'arm64' ]]; then echo 'aarch64'; else echo 'x86_64'; fi)
FLATPAK_VERSION='24.08'
flatpak install --user --no-deps --arch $FLATPAK_ARCH --assumeyes runtime/org.freedesktop.Platform/$FLATPAK_ARCH/$FLATPAK_VERSION runtime/org.freedesktop.Sdk/$FLATPAK_ARCH/$FLATPAK_VERSION org.electronjs.Electron2.BaseApp/$FLATPAK_ARCH/$FLATPAK_VERSION
# Build setup
- name: Install dependencies
shell: ${{ inputs.shell }}
run: npm ci
- name: Update build info
shell: ${{ inputs.shell }}
run: npm run chore:update-build-info
# Critical debugging configuration
- name: Run electron-forge build with enhanced logging
shell: ${{ inputs.shell }}
env:
# Pass through required environment variables for signing and notarization
APPLE_TEAM_ID: ${{ env.APPLE_TEAM_ID }}
APPLE_ID: ${{ env.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }}
WINDOWS_SIGN_EXECUTABLE: ${{ env.WINDOWS_SIGN_EXECUTABLE }}
TRILIUM_ARTIFACT_NAME_HINT: TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}
run: |
npm run electron-forge:make -- \
--arch=${{ inputs.arch }} \
--platform=${{ inputs.forge_platform }}
# Add DMG signing step
- name: Sign DMG
if: inputs.os == 'macos'
shell: ${{ inputs.shell }}
run: |
echo "Signing DMG file..."
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
if [ -n "$dmg_file" ]; then
echo "Found DMG: $dmg_file"
# Get the first valid signing identity from the keychain
SIGNING_IDENTITY=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')
if [ -z "$SIGNING_IDENTITY" ]; then
echo "Error: No valid Developer ID Application certificate found in keychain"
exit 1
fi
echo "Using signing identity: $SIGNING_IDENTITY"
# Sign the DMG
codesign --force --sign "$SIGNING_IDENTITY" --options runtime --timestamp "$dmg_file"
# Notarize the DMG
xcrun notarytool submit "$dmg_file" --apple-id "$APPLE_ID" --password "$APPLE_ID_PASSWORD" --team-id "$APPLE_TEAM_ID" --wait
# Staple the notarization ticket
xcrun stapler staple "$dmg_file"
else
echo "No DMG found to sign"
fi
- name: Verify code signing
if: inputs.os == 'macos'
shell: ${{ inputs.shell }}
run: |
echo "Verifying code signing for all artifacts..."
# First check the .app bundle
echo "Looking for .app bundle..."
app_bundle=$(find ./dist -name "*.app" -print -quit)
if [ -n "$app_bundle" ]; then
echo "Found app bundle: $app_bundle"
echo "Verifying app bundle signing..."
codesign --verify --deep --strict --verbose=2 "$app_bundle"
echo "Displaying app bundle signing info..."
codesign --display --verbose=2 "$app_bundle"
echo "Checking entitlements..."
codesign --display --entitlements :- "$app_bundle"
echo "Checking notarization status..."
xcrun stapler validate "$app_bundle" || echo "Warning: App bundle not notarized yet"
else
echo "No .app bundle found to verify"
fi
# Then check DMG if it exists
echo "Looking for DMG..."
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
if [ -n "$dmg_file" ]; then
echo "Found DMG: $dmg_file"
echo "Verifying DMG signing..."
codesign --verify --deep --strict --verbose=2 "$dmg_file"
echo "Displaying DMG signing info..."
codesign --display --verbose=2 "$dmg_file"
echo "Checking DMG notarization..."
xcrun stapler validate "$dmg_file" || echo "Warning: DMG not notarized yet"
else
echo "No DMG found to verify"
fi
# Finally check ZIP if it exists
echo "Looking for ZIP..."
zip_file=$(find ./dist -name "*.zip" -print -quit)
if [ -n "$zip_file" ]; then
echo "Found ZIP: $zip_file"
echo "Note: ZIP files are not code signed, but their contents should be"
fi

32
.github/actions/build-server/action.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
inputs:
os:
description: "One of the supported platforms: windows"
required: true
arch:
description: "The architecture to build for: x64, arm64"
required: true
runs:
using: composite
steps:
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Install dependencies
shell: bash
run: npm ci
- name: Run Linux server build
env:
MATRIX_ARCH: ${{ inputs.arch }}
shell: bash
run: |
npm run chore:update-build-info
./bin/build-server.sh
- name: Prepare artifacts
shell: bash
run: |
mkdir -p upload
file=$(find dist -name '*.tar.xz' -print -quit)
name=${{ github.ref_name }}
cp "$file" "upload/TriliumNextNotes-Server-${name//\//-}-${{ inputs.os }}-${{ inputs.arch }}.tar.xz"

79
.github/actions/report-size/action.yml vendored Normal file
View File

@@ -0,0 +1,79 @@
name: 'Bundle size reporter'
description: 'Post bundle size difference compared to another branch'
inputs:
branch:
description: 'Branch to compare to'
required: true
default: 'main'
paths:
description:
'Paths to json file bundle size report or folder containing bundles'
required: true
default: '/'
onlyDiff:
description: 'Report only different sizes'
required: false
default: 'false'
filter:
description: 'Regex filter based on file path'
required: false
unit:
description: 'Size unit'
required: false
default: 'KB'
# Comment inputs
comment:
description: 'Post comment'
required: false
default: 'true'
header:
description: 'Comment header'
required: false
default: 'Bundle size report'
append:
description: 'Append comment'
required: false
default: 'false'
ghToken:
description: 'Github token'
required: false
runs:
using: 'composite'
steps:
# Checkout branch to compare to [required]
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
path: br-base
token: ${{ inputs.ghToken }}
# Generate the bundle size difference report [required]
- name: Generate report
id: bundleSize
uses: nejcm/bundle-size-reporter-action@v1.4.1
with:
paths: ${{ inputs.paths }}
onlyDiff: ${{ inputs.onlyDiff }}
filter: ${{ inputs.filter }}
unit: ${{ inputs.unit }}
# Post github action summary
- name: Post summary
if: ${{ steps.bundleSize.outputs.hasDifferences == 'true' }} # post only in case of changes
run: |
echo '${{ steps.bundleSize.outputs.summary }}' >> $GITHUB_STEP_SUMMARY
shell: bash
# Post github action comment
- name: Post comment
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ steps.bundleSize.outputs.hasDifferences == 'true' }} # post only in case of changes
with:
number: ${{ github.event.pull_request.number }}
header: ${{ inputs.header }}
append: ${{ inputs.append }}
message: '${{ steps.bundleSize.outputs.summary }}'
GITHUB_TOKEN: ${{ inputs.ghToken }}

View File

@@ -1,9 +1,9 @@
name: Dev
on:
push:
branches-ignore:
- 'develop'
- 'feature/update**'
branches: [ develop ]
pull_request:
branches: [ develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -15,7 +15,73 @@ env:
IMAGE_NAME: ${{ github.repository_owner }}/notes
TEST_TAG: ${{ github.repository_owner }}/notes:test
permissions:
pull-requests: write # for PR comments
jobs:
report-electron-size:
name: Report Electron size
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- run: npm ci
- name: Run the build
uses: ./.github/actions/build-electron
with:
os: linux
arch: x64
shell: bash
forge_platform: linux
- name: Run the Electron size report
uses: ./.github/actions/report-size
with:
paths: 'upload/**/*'
onlyDiff: 'true'
branch: 'develop'
header: 'Electron size report'
unit: "MB"
ghToken: ${{ secrets.GITHUB_TOKEN }}
report-server-size:
name: Report server size
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- run: npm ci
- name: Run the build
uses: ./.github/actions/build-server
with:
os: linux
arch: x64
- name: Run the server size report
uses: ./.github/actions/report-size
with:
paths: 'upload/**/*'
onlyDiff: 'true'
branch: 'develop'
header: 'Server size report'
unit: "MB"
ghToken: ${{ secrets.GITHUB_TOKEN }}
test_dev:
name: Test development
runs-on: ubuntu-latest
@@ -26,13 +92,17 @@ jobs:
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "npm"
- run: npm ci
- name: Run the TypeScript build
run: npx tsc
- name: Run the unit tests
run: npm run test
build_docker:
name: Build Docker image
runs-on: ubuntu-latest
@@ -40,22 +110,16 @@ jobs:
- test_dev
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run the TypeScript build
run: npx tsc
- name: Create server-package.json
run: cat package.json | grep -v electron > server-package.json
- name: Install dependencies
run: npm ci
- name: Update build info
run: npm run chore:update-build-info
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
test_docker:
name: Check Docker build
runs-on: ubuntu-latest
@@ -69,7 +133,13 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Update build info
run: npm run chore:update-build-info
- name: Set IMAGE_NAME to lowercase
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV
- name: Set TEST_TAG to lowercase
@@ -78,20 +148,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run the TypeScript build
run: npx tsc
- name: Create server-package.json
run: cat package.json | grep -v electron > server-package.json
- name: Build and export to Docker
uses: docker/build-push-action@v6
with:
@@ -101,12 +157,12 @@ jobs:
tags: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Validate container run output
run: |
CONTAINER_ID=$(docker run -d --log-driver=journald --rm --name trilium_local ${{ env.TEST_TAG }})
echo "Container ID: $CONTAINER_ID"
- name: Wait for the healthchecks to pass
uses: stringbean/docker-healthcheck-action@v3
with:

View File

@@ -33,7 +33,7 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set IMAGE_NAME to lowercase
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV
- name: Set TEST_TAG to lowercase
@@ -45,20 +45,17 @@ jobs:
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "npm"
- name: Install npm dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run the TypeScript build
run: npx tsc
- name: Create server-package.json
run: cat package.json | grep -v electron > server-package.json
- name: Build and export to Docker
uses: docker/build-push-action@v6
@@ -69,12 +66,12 @@ jobs:
tags: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Validate container run output
run: |
CONTAINER_ID=$(docker run -d --log-driver=journald --rm --network=host -e TRILIUM_PORT=8082 --volume ./integration-tests/db:/home/node/trilium-data --name trilium_local ${{ env.TEST_TAG }})
echo "Container ID: $CONTAINER_ID"
- name: Wait for the healthchecks to pass
uses: stringbean/docker-healthcheck-action@v3
with:
@@ -82,7 +79,7 @@ jobs:
wait-time: 50
require-status: running
require-healthy: true
- name: Run Playwright tests
run: TRILIUM_DOCKER=1 npx playwright test
- uses: actions/upload-artifact@v4
@@ -100,7 +97,20 @@ jobs:
build:
name: Build Docker images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: Dockerfile.alpine
platform: linux/amd64
image: ubuntu-latest
- dockerfile: Dockerfile
platform: linux/arm64
image: ubuntu-24.04-arm
- dockerfile: Dockerfile
platform: linux/arm/v7
image: ubuntu-24.04-arm
runs-on: ${{ matrix.image }}
needs:
- test_docker
permissions:
@@ -108,16 +118,6 @@ jobs:
packages: write
attestations: write
id-token: write
strategy:
fail-fast: false
matrix:
include:
- dockerfile: Dockerfile.alpine
platform: linux/amd64
- dockerfile: Dockerfile
platform: linux/arm64
- dockerfile: Dockerfile
platform: linux/arm/v7
steps:
- name: Prepare
run: |
@@ -131,6 +131,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Update build info
run: npm run chore:update-build-info
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
@@ -144,24 +151,12 @@ jobs:
type=sha
flavor: |
latest=false
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run the TypeScript build
run: npx tsc
- name: Create server-package.json
run: cat package.json | grep -v electron > server-package.json
- name: Login to GHCR
uses: docker/login-action@v3
@@ -169,14 +164,14 @@ jobs:
registry: ${{ env.GHCR_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKERHUB_REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push by digest
id: build
uses: docker/build-push-action@v6
@@ -186,13 +181,13 @@ jobs:
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
@@ -220,7 +215,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
@@ -237,14 +232,14 @@ jobs:
registry: ${{ env.GHCR_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKERHUB_REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
@@ -255,7 +250,7 @@ jobs:
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
-t ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:${REF_NAME} \
$(printf '${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
-t ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:${REF_NAME} \
$(printf '${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
@@ -267,25 +262,25 @@ jobs:
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
-t ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:stable \
$(printf '${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
-t ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:stable \
$(printf '${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
# Small delay to ensure stable tag is fully propagated
sleep 5
# Now update latest tags
docker buildx imagetools create \
-t ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:stable
docker buildx imagetools create \
-t ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:stable
fi
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}

View File

@@ -1,110 +0,0 @@
name: Main
on:
push:
branches:
- "feature/update**"
- "feature/server_esm**"
paths-ignore:
- "docs/**"
- ".github/workflows/main-docker.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
make-electron:
name: Make Electron
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
os:
- name: macos
image: macos-latest
extension: dmg
- name: linux
image: ubuntu-latest
extension: deb
- name: windows
image: windows-latest
extension: exe
runs-on: ${{ matrix.os.image }}
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Python for appdmg to be installed
if: ${{ matrix.os.name == 'macos' }}
run: brew install python-setuptools
- name: Install dependencies
run: npm ci
- name: Update build info
run: npm run update-build-info
- name: Run electron-forge
run: npm run make-electron -- --arch=${{ matrix.arch }}
- name: Prepare artifacts (Unix)
if: runner.os != 'windows'
run: |
mkdir -p upload
file=$(find out/make -name '*.zip' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}-${{ github.ref_name }}.zip"
file=$(find out/make -name '*.${{ matrix.os.extension }}' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}-${{ github.ref_name }}.${{ matrix.os.extension }}"
- name: Prepare artifacts (Windows)
if: runner.os == 'windows'
run: |
mkdir upload
$file = Get-ChildItem -Path out/make -Filter '*.zip' -Recurse | Select-Object -First 1
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}-${{ github.ref_name }}.zip"
$file = Get-ChildItem -Path out/make -Filter '*.${{ matrix.os.extension }}' -Recurse | Select-Object -First 1
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}-${{ github.ref_name }}.${{ matrix.os.extension }}"
- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}.zip
path: upload/*.zip
- name: Publish installer artifacts
uses: actions/upload-artifact@v4
with:
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}.${{matrix.os.extension}}
path: upload/*.${{ matrix.os.extension }}
build_linux_server:
name: Build Linux Server
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
runs-on: ubuntu-latest
- arch: arm64
runs-on: ubuntu-24.04-arm
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run Linux server build
env:
MATRIX_ARCH: ${{ matrix.arch }}
run: |
npm run update-build-info
./bin/build-server.sh
- name: Prepare artifacts
run: |
mkdir -p upload
file=$(find dist -name '*.tar.xz' -print -quit)
cp "$file" "upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz"
- uses: actions/upload-artifact@v4
with:
name: TriliumNextNotes linux server ${{ matrix.arch }}
path: upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz

View File

@@ -2,9 +2,16 @@ name: Nightly Release
on:
# This can be used to automatically publish nightlies at UTC nighttime
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
- cron: "0 2 * * *" # run at 2 AM UTC
# This can be used to allow manually triggering nightlies from the web interface
workflow_dispatch:
push:
branches:
- renovate/electron-forge*
pull_request:
paths:
- .github/actions/build-electron/*
- forge.config.cjs
env:
GITHUB_UPLOAD_URL: https://uploads.github.com/repos/TriliumNext/Notes/releases/179589950/assets{?name,label}
GITHUB_RELEASE_ID: 179589950
@@ -12,7 +19,7 @@ permissions:
contents: write
jobs:
nightly-electron:
name: Deploy nightly
name: Deploy nightly
strategy:
fail-fast: false
matrix:
@@ -20,110 +27,92 @@ jobs:
os:
- name: macos
image: macos-latest
extension: dmg
shell: bash
forge_platform: darwin
- name: linux
image: ubuntu-latest
extension: deb
shell: bash
forge_platform: linux
- name: windows
image: windows-latest
extension: exe
runs-on: ${{ matrix.os.image }}
image: win-signing
shell: cmd
forge_platform: win32
runs-on: ${{ matrix.os.image }}
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Python for appdmg to be installed
if: ${{ matrix.os.name == 'macos' }}
run: brew install python-setuptools
node-version: 22
- name: Install dependencies
run: npm ci
- name: Update build info
run: npm run update-build-info
- name: Update nightly version
run: npm run ci-update-nightly-version
- name: Run electron-forge
run: npm run make-electron -- --arch=${{ matrix.arch }}
- name: Prepare artifacts (Unix)
if: runner.os != 'windows'
run: |
mkdir -p upload
file=$(find out/make -name '*.zip' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}.zip"
file=$(find out/make -name '*.${{ matrix.os.extension }}' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }}"
- name: Prepare artifacts (Windows)
if: runner.os == 'windows'
run: |
mkdir upload
$file = Get-ChildItem -Path out/make -Filter '*.zip' -Recurse | Select-Object -First 1
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}.zip"
$file = Get-ChildItem -Path out/make -Filter '*.${{ matrix.os.extension }}' -Recurse | Select-Object -First 1
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }}"
run: npm run chore:ci-update-nightly-version
- name: Run the build
uses: ./.github/actions/build-electron
with:
os: ${{ matrix.os.name }}
arch: ${{ matrix.arch }}
shell: ${{ matrix.os.shell }}
forge_platform: ${{ matrix.os.forge_platform }}
env:
APPLE_APP_CERTIFICATE_BASE64: ${{ secrets.APPLE_APP_CERTIFICATE_BASE64 }}
APPLE_APP_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_APP_CERTIFICATE_PASSWORD }}
APPLE_INSTALLER_CERTIFICATE_BASE64: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_BASE64 }}
APPLE_INSTALLER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }}
- name: Publish release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name != 'pull_request' }}
with:
make_latest: false
prerelease: true
draft: false
fail_on_unmatched_files: true
files: upload/*.*
tag_name: nightly
name: Nightly Build
- name: Publish artifacts
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'pull_request' }}
with:
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}
path: upload/*.zip
overwrite: true
- name: Publish installer artifacts
uses: actions/upload-artifact@v4
with:
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}
path: upload/*.${{ matrix.os.extension }}
overwrite: true
path: upload
- name: Deploy release
uses: WebFreak001/deploy-nightly@v3.2.0
with:
upload_url: ${{ env.GITHUB_UPLOAD_URL }}
release_id: ${{ env.GITHUB_RELEASE_ID }}
asset_path: upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}.zip # path to archive to upload
asset_name: TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}-nightly.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/zip # required by GitHub API
- name: Deploy installer release
uses: WebFreak001/deploy-nightly@v3.2.0
with:
upload_url: ${{ env.GITHUB_UPLOAD_URL }}
release_id: ${{ env.GITHUB_RELEASE_ID }}
asset_path: upload/TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }} # path to archive to upload
asset_name: TriliumNextNotes-${{ matrix.os.name }}-${{ matrix.arch }}-nightly.${{ matrix.os.extension }} # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/zip # required by GitHub API
nightly-server:
name: Deploy server nightly
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
runs-on: ubuntu-latest
- arch: arm64
runs-on: ubuntu-24.04-arm
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run Linux server build (x86_64)
run: |
npm run update-build-info
npm run ci-update-nightly-version
./bin/build-server.sh
- name: Prepare artifacts
if: runner.os != 'windows'
run: |
mkdir -p upload
file=$(find dist -name '*.tar.xz' -print -quit)
cp "$file" "upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz"
- uses: actions/upload-artifact@v4
with:
name: TriliumNextNotes linux server x64
path: upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz
overwrite: true
- name: Deploy release
uses: WebFreak001/deploy-nightly@v3.2.0
- name: Run the build
uses: ./.github/actions/build-server
with:
upload_url: ${{ env.GITHUB_UPLOAD_URL }}
release_id: ${{ env.GITHUB_RELEASE_ID }}
asset_path: upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz # path to archive to upload
asset_name: TriliumNextNotes-linux-x64-nightly.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/zip # required by GitHub API
os: linux
arch: ${{ matrix.arch }}
- name: Publish release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name != 'pull_request' }}
with:
make_latest: false
prerelease: true
draft: false
fail_on_unmatched_files: true
files: upload/*.*
tag_name: nightly
name: Nightly Build

View File

@@ -3,7 +3,6 @@ on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
concurrency:
@@ -20,76 +19,71 @@ jobs:
os:
- name: macos
image: macos-latest
extension: dmg
shell: bash
forge_platform: darwin
- name: linux
image: ubuntu-latest
extension: deb
shell: bash
forge_platform: linux
- name: windows
image: windows-latest
extension: exe
image: win-signing
shell: cmd
forge_platform: win32
runs-on: ${{ matrix.os.image }}
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Python for appdmg to be installed
if: ${{ matrix.os.name == 'macos' }}
run: brew install python-setuptools
- name: Install dependencies
run: npm ci
- name: Update build info
run: npm run update-build-info
- name: Run electron-forge
run: npm run make-electron -- --arch=${{ matrix.arch }}
- name: Prepare artifacts (Unix)
if: runner.os != 'windows'
run: |
mkdir -p upload
file=$(find out/make -name '*.zip' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.zip"
file=$(find out/make -name '*.${{ matrix.os.extension }}' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }}"
- name: Prepare artifacts (Windows)
if: runner.os == 'windows'
run: |
mkdir upload
$file = Get-ChildItem -Path out/make -Filter '*.zip' -Recurse | Select-Object -First 1
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.zip"
$file = Get-ChildItem -Path out/make -Filter '*.${{ matrix.os.extension }}' -Recurse | Select-Object -First 1
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }}"
node-version: 22
- name: Run the build
uses: ./.github/actions/build-electron
with:
os: ${{ matrix.os.name }}
arch: ${{ matrix.arch }}
shell: ${{ matrix.os.shell }}
forge_platform: ${{ matrix.os.forge_platform }}
env:
APPLE_APP_CERTIFICATE_BASE64: ${{ secrets.APPLE_APP_CERTIFICATE_BASE64 }}
APPLE_APP_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_APP_CERTIFICATE_PASSWORD }}
APPLE_INSTALLER_CERTIFICATE_BASE64: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_BASE64 }}
APPLE_INSTALLER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }}
- name: Publish release
uses: softprops/action-gh-release@v2
with:
draft: true
fail_on_unmatched_files: true
files: upload/*.*
build_linux_server-x64:
name: Build Linux Server x86_64
runs-on: ubuntu-latest
name: Build Linux Server
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
runs-on: ubuntu-latest
- arch: arm64
runs-on: ubuntu-24.04-arm
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
- name: Run the build
uses: ./.github/actions/build-server
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run Linux server build (x86_64)
run: |
npm run update-build-info
./bin/build-server.sh
- name: Prepare artifacts
if: runner.os != 'windows'
run: |
mkdir -p upload
file=$(find dist -name '*.tar.xz' -print -quit)
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-server-linux-x64.tar.xz"
os: linux
arch: ${{ matrix.arch }}
- name: Publish release
uses: softprops/action-gh-release@v2
with:
draft: true
fail_on_unmatched_files: true
files: upload/*.*
files: upload/*.*

16
.gitignore vendored
View File

@@ -1,14 +1,18 @@
.cache
.DS_Store
node_modules/
dist/
upload/
build/
coverage/
src/public/app-dist/
npm-debug.log
yarn-error.log
po-*/
.flatpak-builder/
*.db
!test/**/*.db
!integration-tests/db/document.db
!integration-tests/db/config.ini
integration-tests/db/log
@@ -23,6 +27,7 @@ server-package.json
.idea/shelf/
data/
data-test/
data-demo/
tmp/
.eslintcache
@@ -33,4 +38,13 @@ images/app-icons/mac/*.png
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
/playwright/.auth/
data-docs/backup
data-docs/log
data-docs/session
data-docs/session_secret.txt
data-docs/document.*
# Webpack
webpack-stats.json

View File

@@ -4,7 +4,7 @@ image:
tasks:
- before: nvm install 20.15.1 && nvm use 20.15.1
init: npm install
command: npm run start-server
command: npm run server:start
ports:
- port: 8080

View File

@@ -1,5 +0,0 @@
*.html
*.md
*.yml
libraries/*
docs/*

View File

@@ -1,22 +0,0 @@
{
"printWidth": 200,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"overrides": [
{
"files": ["*.json"],
"options": {
"tabWidth": 2
}
}
]
}

View File

@@ -1,3 +1,10 @@
{
"recommendations": ["lokalise.i18n-ally", "editorconfig.editorconfig"]
"recommendations": [
"lokalise.i18n-ally",
"editorconfig.editorconfig",
"vitest.explorer",
"ms-playwright.playwright",
"tobermory.es6-string-html",
"dbaeumer.vscode-eslint"
]
}

View File

@@ -18,5 +18,13 @@
"github-actions.workflows.pinned.workflows": [".github/workflows/nightly.yml"],
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"npm.exclude": [
"**/build",
"**/dist",
"**/out/**"
],
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
}
}

View File

@@ -1,62 +1,49 @@
# Build stage
FROM node:22.13.1-bullseye-slim AS builder
FROM node:22.14.0-bullseye-slim AS builder
# Configure build dependencies in a single layer
RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \
automake \
g++ \
gcc \
libtool \
make \
nasm \
libpng-dev \
python3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
WORKDIR /usr/src/app/build
# Copy only necessary files for build
COPY . .
COPY server-package.json package.json
# Build and cleanup in a single layer
RUN cp -R build/src/* src/. && \
cp build/docker_healthcheck.js . && \
rm docker_healthcheck.ts && \
npm install && \
npm run webpack && \
npm prune --omit=dev && \
RUN npm ci && \
npm run build:prepare-dist && \
npm cache clean --force && \
cp -r src/public/app/doc_notes src/public/app-dist/. && \
rm -rf src/public/app/* && \
mkdir -p src/public/app/services && \
cp -r build/src/public/app/services/mime_type_definitions.js src/public/app/services/mime_type_definitions.js && \
rm src/services/asset_path.ts && \
rm -r build
rm -rf build/node_modules && \
mv build/* \
start-docker.sh \
/usr/src/app/ && \
rm -rf \
/usr/src/app/build \
/tmp/node-compile-cache
#TODO: improve node_modules handling in copy-dist/Dockerfile -> remove duplicated work
# currently copy-dist will copy certain node_module folders, but in the Dockerfile we delete them again (to keep image size down),
# as we install necessary dependencies in runtime buildstage anyways
# Runtime stage
FROM node:22.13.1-bullseye-slim
# Install only runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gosu \
&& rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/*
FROM node:22.14.0-bullseye-slim
WORKDIR /usr/src/app
# Copy only necessary files from builder
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app/src ./src
COPY --from=builder /usr/src/app/db ./db
COPY --from=builder /usr/src/app/docker_healthcheck.js .
COPY --from=builder /usr/src/app/start-docker.sh .
COPY --from=builder /usr/src/app/package.json .
COPY --from=builder /usr/src/app/config-sample.ini .
COPY --from=builder /usr/src/app/images ./images
COPY --from=builder /usr/src/app/translations ./translations
COPY --from=builder /usr/src/app/libraries ./libraries
# Install only runtime dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gosu && \
rm -rf \
/var/lib/apt/lists/* \
/var/cache/apt/*
COPY --from=builder /usr/src/app ./
RUN sed -i "/electron/d" package.json && \
npm ci --omit=dev && \
node --experimental-strip-types ./bin/cleanupNodeModules.ts . --skip-prune-dev-deps && \
npm cache clean --force && \
rm -rf \
/tmp/node-compile-cache \
/usr/src/app/bin/cleanupNodeModules.ts
# Configure container
EXPOSE 8080

View File

@@ -1,58 +1,44 @@
# Build stage
FROM node:22.13.1-alpine AS builder
FROM node:22.14.0-alpine AS builder
# Configure build dependencies
RUN apk add --no-cache --virtual .build-dependencies \
autoconf \
automake \
g++ \
gcc \
libtool \
make \
nasm \
libpng-dev \
python3
WORKDIR /usr/src/app
WORKDIR /usr/src/app/build
# Copy only necessary files for build
COPY . .
COPY server-package.json package.json
# Build and cleanup in a single layer
RUN cp -R build/src/* src/. && \
cp build/docker_healthcheck.js . && \
rm docker_healthcheck.ts && \
npm install && \
npm run webpack && \
npm prune --omit=dev && \
RUN npm ci && \
npm run build:prepare-dist && \
npm cache clean --force && \
cp -r src/public/app/doc_notes src/public/app-dist/. && \
rm -rf src/public/app && \
mkdir -p src/public/app/services && \
cp -r build/src/public/app/services/mime_type_definitions.js src/public/app/services/mime_type_definitions.js && \
rm src/services/asset_path.ts && \
rm -r build
rm -rf build/node_modules && \
mv build/* \
start-docker.sh \
/usr/src/app/ && \
rm -rf \
/usr/src/app/build \
/tmp/node-compile-cache
#TODO: improve node_modules handling in copy-dist/Dockerfile -> remove duplicated work
# currently copy-dist will copy certain node_module folders, but in the Dockerfile we delete them again (to keep image size down),
# as we install necessary dependencies in runtime buildstage anyways
# Runtime stage
FROM node:22.13.1-alpine
FROM node:22.14.0-alpine
# Install runtime dependencies
RUN apk add --no-cache su-exec shadow
WORKDIR /usr/src/app
# Copy only necessary files from builder
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app/src ./src
COPY --from=builder /usr/src/app/db ./db
COPY --from=builder /usr/src/app/docker_healthcheck.js .
COPY --from=builder /usr/src/app/start-docker.sh .
COPY --from=builder /usr/src/app/package.json .
COPY --from=builder /usr/src/app/config-sample.ini .
COPY --from=builder /usr/src/app/images ./images
COPY --from=builder /usr/src/app/translations ./translations
COPY --from=builder /usr/src/app/libraries ./libraries
COPY --from=builder /usr/src/app ./
RUN sed -i "/electron/d" package.json && \
npm ci --omit=dev && \
node --experimental-strip-types ./bin/cleanupNodeModules.ts . --skip-prune-dev-deps && \
npm cache clean --force && \
rm -rf \
/tmp/node-compile-cache \
/usr/src/app/bin/cleanupNodeModules.ts
# Add application user
RUN adduser -s /bin/false node; exit 0

View File

@@ -78,7 +78,7 @@ Trilium 也提供 Flatpak
```shell
npm install
npm run start-server
npm run server:start
```
## 👏 致谢

View File

@@ -86,7 +86,7 @@ Clone localmente y ejecute
```shell
npm install
npm run start-server
npm run server:start
```
## 👏 Reconocimientos

View File

@@ -73,7 +73,7 @@ Clona localmente ed esegui
```shell
npm install
npm run start-server
npm run server:start
```
## 👏 Riconoscimenti

View File

@@ -54,7 +54,7 @@ Trilium は Flatpak としても提供されます:
```shell
npm install
npm run start-server
npm run server:start
```
## 📢 シャウトアウト

View File

@@ -37,6 +37,7 @@ Feel free to join our official conversations. We would love to hear what feature
* Fast and easy [navigation between notes](https://triliumnext.github.io/Docs/Wiki/note-navigation), full text search and [note hoisting](https://triliumnext.github.io/Docs/Wiki/note-hoisting)
* Seamless [note versioning](https://triliumnext.github.io/Docs/Wiki/note-revisions)
* Note [attributes](https://triliumnext.github.io/Docs/Wiki/attributes) can be used for note organization, querying and advanced [scripting](https://triliumnext.github.io/Docs/Wiki/scripts)
* Direct OpenID and TOTP integration for more secure login
* [Synchronization](https://triliumnext.github.io/Docs/Wiki/synchronization) with self-hosted sync server
* there's a [3rd party service for hosting synchronisation server](https://trilium.cc/paid-hosting)
* [Sharing](https://triliumnext.github.io/Docs/Wiki/sharing) (publishing) notes to public internet
@@ -79,10 +80,11 @@ xattr -c "/path/to/Trilium Next.app"
### Mobile
To use TriliumNext on a mobile device:
To use TriliumNext on a mobile device, you can use a mobile web browser to access the mobile interface of a server installation (see below).
* Use a mobile web browser to access the mobile interface of a server installation (see below)
* Use of a mobile app is not yet supported ([see here](https://github.com/TriliumNext/Notes/issues/72)) to track mobile improvements.
If you prefer a native Android app, you can use [TriliumDroid](https://apt.izzysoft.de/fdroid/index/apk/eu.fliegendewurst.triliumdroid). Report bugs and missing features at [their repository](https://github.com/FliegendeWurst/TriliumDroid).
See issue https://github.com/TriliumNext/Notes/issues/72 for more information on mobile app support.
### Server
@@ -102,12 +104,13 @@ You can also read [Patterns of personal knowledge base](https://triliumnext.gith
git clone https://github.com/TriliumNext/Notes.git
cd Notes
npm install
npm run start-server
npm run server:start
```
### Documentation
Head on over to our [Docs repo](https://github.com/TriliumNext/Docs)
We are currently transitioning to a new documentation mechanism.
Meanwhile you can still view the [archived Docs repository](https://github.com/TriliumNext/Docs).
## 👏 Shoutouts
@@ -118,8 +121,10 @@ Head on over to our [Docs repo](https://github.com/TriliumNext/Docs)
## 🤝 Support
You can support the original Trilium developer using GitHub Sponsors, [PayPal](https://paypal.me/za4am) or Bitcoin (bitcoin:bc1qv3svjn40v89mnkre5vyvs2xw6y8phaltl385d2).
Support for the TriliumNext organization will be possible in the near future.
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/Notes/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).
## 🔑 License

View File

@@ -44,7 +44,7 @@ Trilium предоставляется в виде десктопного при
```shell
npm install
npm run start-server
npm run server:start
```
## 👏 Благодарности

View File

@@ -1,13 +0,0 @@
#!/usr/bin/env bash
cd src/public
echo Summary
cloc HEAD \
--git --md \
--include-lang=javascript,typescript
echo By file
cloc HEAD \
--git --md \
--include-lang=javascript,typescript \
--by-file | grep \.js\|

View File

@@ -5,11 +5,6 @@ set -e # Fail on any command error
VERSION=`jq -r ".version" package.json`
SERIES=${VERSION:0:4}-latest
cat package.json | grep -v electron > server-package.json
echo "Compiling typescript..."
npx tsc
sudo docker build -t triliumnext/notes:$VERSION --network host -t triliumnext/notes:$SERIES .
if [[ $VERSION != *"beta"* ]]; then

View File

@@ -21,56 +21,53 @@ fi
echo "Selected Arch: $ARCH"
# Set Node.js version and architecture-specific filename
NODE_VERSION=20.15.1
NODE_ARCH=$ARCH
NODE_VERSION=22.14.0
# Debug output
echo "Node arch: $NODE_ARCH"
BUILD_DIR="./build"
DIST_DIR="./dist"
CLEANUP_SCRIPT="./bin/cleanupNodeModules.ts"
# Special case for x64 in Node.js downloads
if [ "$NODE_ARCH" = "x64" ]; then
NODE_FILENAME="x64"
elif [ "$NODE_ARCH" = "arm64" ]; then
NODE_FILENAME="arm64"
fi
# Debug output
echo "Node filename: $NODE_FILENAME"
# Trigger the build
echo "Build start"
npm run build:prepare-dist
echo "Build finished"
PKG_DIR=dist/trilium-linux-${ARCH}-server
echo "Package directory: $PKG_DIR"
# pruning of unnecessary files and devDeps in node_modules
node --experimental-strip-types $CLEANUP_SCRIPT $BUILD_DIR
if [ "$1" != "DONTCOPY" ]
then
# Need to modify copy-trilium.sh to accept the target directory
./bin/copy-trilium.sh "$PKG_DIR"
fi
NODE_FILENAME=node-v${NODE_VERSION}-linux-${ARCH}
cd dist
wget https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_FILENAME}.tar.xz
tar xfJ node-v${NODE_VERSION}-linux-${NODE_FILENAME}.tar.xz
rm node-v${NODE_VERSION}-linux-${NODE_FILENAME}.tar.xz
echo "Downloading Node.js runtime $NODE_FILENAME..."
cd $BUILD_DIR
wget -qO- https://nodejs.org/dist/v${NODE_VERSION}/${NODE_FILENAME}.tar.xz | tar xfJ -
mv $NODE_FILENAME node
cd ..
mv dist/node-v${NODE_VERSION}-linux-${NODE_FILENAME} $PKG_DIR/node
rm -r $PKG_DIR/node/lib/node_modules/npm
rm -r $PKG_DIR/node/include/node
rm -r $BUILD_DIR/node/lib/node_modules/{npm,corepack} \
$BUILD_DIR/node/bin/{npm,npx,corepack} \
$BUILD_DIR/node/CHANGELOG.md \
$BUILD_DIR/node/include/node \
$BUILD_DIR/node_modules/electron* \
$BUILD_DIR/electron*.{js,map}
rm -r $PKG_DIR/node_modules/electron*
rm -r $PKG_DIR/electron*.js
printf "#!/bin/sh\n./node/bin/node src/main" > $BUILD_DIR/trilium.sh
chmod 755 $BUILD_DIR/trilium.sh
printf "#!/bin/sh\n./node/bin/node src/main" > $PKG_DIR/trilium.sh
chmod 755 $PKG_DIR/trilium.sh
cp bin/tpl/anonymize-database.sql $PKG_DIR/
cp -r translations $PKG_DIR/
cp -r dump-db $PKG_DIR/
rm -rf $PKG_DIR/dump-db/node_modules
# TriliumNextTODO: is this still required? If yes → move to copy-dist/copy-trilium
cp bin/tpl/anonymize-database.sql $BUILD_DIR/
VERSION=`jq -r ".version" package.json`
cd dist
tar cJf trilium-linux-${ARCH}-server-${VERSION}.tar.xz trilium-linux-${ARCH}-server
ARCHIVE_NAME="TriliumNextNotes-Server-${VERSION}-linux-${ARCH}"
echo "Creating Archive $ARCHIVE_NAME..."
mkdir $DIST_DIR
cp -r "$BUILD_DIR" "$DIST_DIR/$ARCHIVE_NAME"
cd $DIST_DIR
tar cJf "$ARCHIVE_NAME.tar.xz" "$ARCHIVE_NAME"
rm -rf "$ARCHIVE_NAME"
echo "Server Build Completed!"

View File

@@ -1,53 +0,0 @@
#!/usr/bin/env bash
set -e # Fail on any command error
if ! command -v jq &> /dev/null; then
echo "Missing command: jq"
exit 1
fi
if ! command -v fakeroot &> /dev/null; then
echo "Missing command: fakeroot"
exit 1
fi
if ! command -v dpkg-deb &> /dev/null; then
echo "Missing command: dpkg-deb"
exit 1
fi
if dpkg-deb 2>&1 | grep BusyBox &> /dev/null; then
echo "The dpkg-deb binary provided by BusyBox is not compatible. The Debian tool needs to be used instead."
exit 1
fi
if ! command -v wine &> /dev/null; then
echo "Missing command: wine"
exit 1
fi
echo "Deleting existing builds"
rm -rf dist/*
SRC_DIR=dist/trilium-src
bin/copy-trilium.sh $SRC_DIR
# we'll just copy the same SRC dir to all the builds so we don't have to do npm install in each separately
cp -r $SRC_DIR ./dist/trilium-linux-x64-src
cp -r $SRC_DIR ./dist/trilium-linux-x64-server
cp -r $SRC_DIR ./dist/trilium-windows-x64-src
cp -r $SRC_DIR ./dist/trilium-mac-x64-src
cp -r $SRC_DIR ./dist/trilium-mac-arm64-src
bin/build-win-x64.sh DONTCOPY
bin/build-mac-x64.sh DONTCOPY
bin/build-mac-arm64.sh DONTCOPY
bin/build-linux-x64.sh DONTCOPY
bin/build-server.sh DONTCOPY

109
bin/cleanupNodeModules.ts Normal file
View File

@@ -0,0 +1,109 @@
import fs from "fs-extra";
import path from "path";
import type { Dirent } from "fs-extra";
import { execSync } from "node:child_process";
/**
* Example usage with node >= v22:
* node --experimental-strip-types bin/cleanupNodeModules.ts /path/to/build/folder [--skip-prune-dev-deps]
* Example usage with tsx:
* tsx bin/cleanupNodeModules.ts /path/to/build/folder [--skip-prune-dev-deps]
*/
function main() {
if (process.argv.length > 4 || process.argv.length < 3) {
console.error("Usage: cleanupNodeModules.ts [path-to-build-folder] [--skip-prune-dev-deps]");
process.exit(1);
}
const basePath = process.argv[2];
const pruneDevDeps = process.argv[3] !== "--skip-prune-dev-deps";
if (!fs.existsSync(basePath)) {
console.error(`Supplied path '${basePath}' does not exist. Aborting.`);
process.exit(1);
}
console.log(`Starting pruning of node_modules ${!pruneDevDeps ? '(skipping npm pruning)' : ''} in '${basePath}'...`);
cleanupNodeModules(basePath, pruneDevDeps);
console.log("Successfully pruned node_modules.");
}
function cleanupNodeModules(basePath: string, pruneDevDeps: boolean = true) {
// This needs to run for the server and Docker build,
// but needs to be skipped for electron-forge: its
// built-in pruning takes care of it already
if (pruneDevDeps) {
execSync(`npm ci --omit=dev --prefix ${basePath}`);
}
const nodeModulesDirPath = path.join(basePath, "node_modules");
const nodeModulesContent = fs.readdirSync(nodeModulesDirPath, { recursive: true, withFileTypes: true });
//const libDir = fs.readdirSync(path.join(basePath, "./libraries"), { recursive: true, withFileTypes: true });
/**
* Delete unnecessary folders
*/
const filterableDirs = new Set([
"demo",
"demos",
"doc",
"docs",
"example",
"examples",
"test",
"tests"
]);
nodeModulesContent
.filter(el => el.isDirectory() && filterableDirs.has(el.name))
.forEach(dir => removeDirent(dir));
/**
* Delete unnecessary files based on file extension
* TODO filter out useless (README).md files
*/
const filterableFileExt = new Set([
"ts",
"map"
]);
nodeModulesContent
// TriliumNextTODO: check if we can improve this naive file ext matching, without introducing any additional dependency
.filter(el => el.isFile() && filterableFileExt.has(el.name.split(".").at(-1) || ""))
.forEach(dir => removeDirent(dir));
/**
* Delete specific unnecessary folders
* TODO: check if we want removeSync to throw an error, if path does not exist anymore -> currently it will silently fail
*/
const extraFoldersDelete = new Set([
path.join(nodeModulesDirPath, ".bin"),
path.join(nodeModulesDirPath, "@excalidraw", "excalidraw", "dist", "dev"),
path.join(nodeModulesDirPath, "boxicons", "svg"),
path.join(nodeModulesDirPath, "boxicons", "node_modules"),
path.join(nodeModulesDirPath, "boxicons", "src"),
path.join(nodeModulesDirPath, "boxicons", "iconjar"),
path.join(nodeModulesDirPath, "@jimp", "plugin-print", "fonts"),
path.join(nodeModulesDirPath, "jimp", "dist", "browser") // missing "@" in front of jimp is not a typo here
]);
nodeModulesContent
.filter(el => el.isDirectory() && extraFoldersDelete.has(path.join(el.parentPath, el.name)))
.forEach(dir => removeDirent(dir))
}
function removeDirent(el: Dirent) {
const elementToDelete = path.join(el.parentPath, el.name);
fs.removeSync(elementToDelete);
if (process.env.VERBOSE) {
console.log(`Deleted ${elementToDelete}`);
}
}
main()

View File

@@ -1,50 +1,50 @@
import fs from "fs-extra";
import path from "path";
const DEST_DIR = "./dist";
const DEST_DIR_SRC = path.join(DEST_DIR, "src");
const DEST_DIR_NODE_MODULES = path.join(DEST_DIR, "node_modules");
const DEST_DIR = "./build";
const VERBOSE = process.env.VERBOSE;
function log(...args) {
function log(...args: any[]) {
if (VERBOSE) {
console.log(args);
console.log(...args);
}
}
async function copyNodeModuleFileOrFolder(source: string) {
const adjustedSource = source.substring(13);
const destination = path.join(DEST_DIR_NODE_MODULES, adjustedSource);
try {
log(`Copying ${source} to ${destination}`);
await fs.ensureDir(path.dirname(destination));
await fs.copy(source, destination);
}
const assetsToCopy = new Set([
// copy node_module, to avoid downloading packages a 2nd time during pruning
"./node_modules",
"./images",
"./libraries",
"./translations",
"./db",
"./config-sample.ini",
"./package-lock.json",
"./package.json",
"./LICENSE",
"./README.md",
"./forge.config.cjs",
"./bin/tpl/",
"./bin/cleanupNodeModules.ts",
"./bin/electron-forge/desktop.ejs",
"./bin/electron-forge/sign-windows.cjs",
"./src/views/",
"./src/etapi/etapi.openapi.yaml",
"./src/routes/api/openapi.json",
"./src/public/icon.png",
"./src/public/manifest.webmanifest",
"./src/public/robots.txt",
"./src/public/fonts",
"./src/public/stylesheets",
"./src/public/translations",
"./packages/turndown-plugin-gfm/src"
]);
const copy = async () => {
for (const srcFile of fs.readdirSync("build")) {
const destFile = path.join(DEST_DIR, path.basename(srcFile));
log(`Copying source ${srcFile} -> ${destFile}.`);
fs.copySync(path.join("build", srcFile), destFile, { recursive: true });
}
const filesToCopy = ["config-sample.ini", "tsconfig.webpack.json"];
for (const file of filesToCopy) {
log(`Copying ${file}`);
await fs.copy(file, path.join(DEST_DIR, file));
}
const dirsToCopy = ["images", "libraries", "translations", "db"];
for (const dir of dirsToCopy) {
log(`Copying ${dir}`);
await fs.copy(dir, path.join(DEST_DIR, dir));
}
const srcDirsToCopy = ["./src/public", "./src/views", "./build"];
for (const dir of srcDirsToCopy) {
log(`Copying ${dir}`);
await fs.copy(dir, path.join(DEST_DIR_SRC, path.basename(dir)));
for (const asset of assetsToCopy) {
log(`Copying ${asset}`);
fs.copySync(asset, path.join(DEST_DIR, asset));
}
/**
@@ -53,62 +53,13 @@ const copy = async () => {
const publicDirsToCopy = ["./src/public/app/doc_notes"];
const PUBLIC_DIR = path.join(DEST_DIR, "src", "public", "app-dist");
for (const dir of publicDirsToCopy) {
await fs.copy(dir, path.join(PUBLIC_DIR, path.basename(dir)));
fs.copySync(dir, path.join(PUBLIC_DIR, path.basename(dir)));
}
const nodeModulesFile = [
"node_modules/react/umd/react.production.min.js",
"node_modules/react/umd/react.development.js",
"node_modules/react-dom/umd/react-dom.production.min.js",
"node_modules/react-dom/umd/react-dom.development.js",
"node_modules/katex/dist/katex.min.js",
"node_modules/katex/dist/contrib/mhchem.min.js",
"node_modules/katex/dist/contrib/auto-render.min.js",
"node_modules/@highlightjs/cdn-assets/highlight.min.js",
"node_modules/@mind-elixir/node-menu/dist/node-menu.umd.cjs"
];
console.log("Copying complete!")
for (const file of nodeModulesFile) {
await copyNodeModuleFileOrFolder(file);
}
} catch(err) {
console.error("Error during copy:", err)
process.exit(1)
}
const nodeModulesFolder = [
"node_modules/@excalidraw/excalidraw/dist/",
"node_modules/katex/dist/",
"node_modules/dayjs/",
"node_modules/boxicons/css/",
"node_modules/boxicons/fonts/",
"node_modules/mermaid/dist/",
"node_modules/jquery/dist/",
"node_modules/jquery-hotkeys/",
"node_modules/print-this/",
"node_modules/split.js/dist/",
"node_modules/panzoom/dist/",
"node_modules/i18next/",
"node_modules/i18next-http-backend/",
"node_modules/jsplumb/dist/",
"node_modules/vanilla-js-wheel-zoom/dist/",
"node_modules/mark.js/dist/",
"node_modules/knockout/build/output/",
"node_modules/normalize.css/",
"node_modules/jquery.fancytree/dist/",
"node_modules/bootstrap/dist/",
"node_modules/autocomplete.js/dist/",
"node_modules/codemirror/lib/",
"node_modules/codemirror/addon/",
"node_modules/codemirror/mode/",
"node_modules/codemirror/keymap/",
"node_modules/mind-elixir/dist/",
"node_modules/@highlightjs/cdn-assets/languages",
"node_modules/@highlightjs/cdn-assets/styles",
"node_modules/leaflet/dist"
];
for (const folder of nodeModulesFolder) {
await copyNodeModuleFileOrFolder(folder);
}
};
copy()
.then(() => console.log("Copying complete!"))
.catch((err) => console.error("Error during copy:", err));

View File

@@ -1,74 +0,0 @@
#!/usr/bin/env bash
set -e # Fail on any command error
shopt -s globstar
if [[ $# -eq 0 ]] ; then
echo "Missing argument of target directory"
exit 1
fi
if ! [[ $(which npm) ]]; then
echo "Missing npm"
exit 1
fi
# Trigger the TypeScript build
echo TypeScript build start
npx tsc
echo TypeScript build finished
# Copy the TypeScript artifacts
DIR="$1"
rm -rf "$DIR"
mkdir -pv "$DIR"
echo Webpack start
npm run webpack
echo Webpack finish
echo "Copying Trilium to build directory $DIR"
for d in 'images' 'libraries' 'src' 'db'; do
cp -r "$d" "$DIR"/
done
for f in 'package.json' 'package-lock.json' 'README.md' 'LICENSE' 'config-sample.ini'; do
cp "$f" "$DIR"/
done
# Patch package.json main
sed -i 's/.\/dist\/electron-main.js/electron-main.js/g' "$DIR/package.json"
script_dir=$(realpath $(dirname $0))
cp -R "$script_dir/../build/src" "$DIR"
cp "$script_dir/../build/electron-main.js" "$DIR"
# run in subshell (so we return to original dir)
(cd $DIR && npm install --omit=dev --legacy-peer-deps)
if [[ -d "$DIR"/node_modules ]]; then
# cleanup of useless files in dependencies
for d in 'image-q/demo' \
'@excalidraw/excalidraw/dist/excalidraw-assets-dev' '@excalidraw/excalidraw/dist/excalidraw.development.js' '@excalidraw/excalidraw/dist/excalidraw-with-preact.development.js' \
'mermaid/dist/mermaid.js' \
'boxicons/svg' 'boxicons/node_modules/react'/* \
'@jimp/plugin-print/fonts' 'jimp/browser' 'jimp/fonts'; do
[[ -e "$DIR"/node_modules/"$d" ]] && rm -r "$DIR"/node_modules/"$d"
done
# delete all tests (there are often large images as test file for jimp etc.)
for d in 'test' 'docs' 'demo' 'example'; do
find "$DIR"/node_modules -name "$d" -exec rm -rf {} +
done
fi
find $DIR/libraries -name "*.map" -type f -delete
find $DIR/node_modules -name "*.map" -type f -delete
find $DIR -name "*.ts" -type f -delete
d="$DIR"/src/public
[[ -d "$d"/app-dist ]] || mkdir -pv "$d"/app-dist
cp -r "$d"/app/doc_notes "$d"/app-dist/
rm -rf "$d"/app
unset f d DIR

View File

@@ -22,6 +22,10 @@ inkscape -w 180 -h 180 "../icon-color.svg" -o "./ios/apple-touch-icon.png"
# Build PNGs
inkscape -w 128 -h 128 "../icon-color.svg" -o "./png/128x128.png"
inkscape -w 256 -h 256 "../icon-color.svg" -o "./png/256x256.png"
# Build dev icons (including tray)
inkscape -w 16 -h 16 "../icon-purple.svg" -o "./png/16x16-dev.png"
inkscape -w 32 -h 32 "../icon-purple.svg" -o "./png/32x32-dev.png"
inkscape -w 256 -h 256 "../icon-purple.svg" -o "./png/256x256-dev.png"
# Build Mac .icns
@@ -41,5 +45,8 @@ icnsutil compose -f "mac/icon.icns" ./mac/*.png
# Build Windows icon
magick -background none "../icon-color.svg" -define icon:auto-resize=16,32,48,64,128,256 "./icon.ico"
# Build Windows setup icon
magick -background none "../icon-installer.svg" -define icon:auto-resize=16,32,48,64,128,256 "./win/setup.ico"
# Build Squirrel splash image
magick "./png/256x256.png" -background "#ffffff" -gravity center -extent 640x480 "./win/setup-banner.gif"

View File

@@ -1,12 +1,17 @@
[Desktop Entry]
<% if (productName) { %>Name=<%= productName %>
<% } %><% if (description) { %>Comment=<%= description %>
<% } %><% if (genericName) { %>GenericName=<%= genericName %>
<% } %><% if (name) { %>Exec=<%= name %> %U
Icon=<%= name %>
<% } %>Type=Application
StartupNotify=true
<% if (productName) { %>StartupWMClass=<%= productName %>
<% } if (categories && categories.length) { %>Categories=<%= categories.join(';') %>;
<% } %><% if (mimeType && mimeType.length) { %>MimeType=<%= mimeType.join(';') %>;
<% } %>
<%=
Object.entries({
"Name": productName,
"Comment": description,
"GenericName": genericName,
"Exec": name ? `${name} %U` : undefined,
"Icon": name,
"Type": "Application",
"StartupNotify": "true",
"StartupWMClass": productName,
"Categories": categories?.length ? `${categories.join(";")};` : undefined,
"MimeType": mimeType?.length ? `${mimeType.join(";")};` : undefined
})
.map(line => line[1] ? line.join("=") : undefined)
.filter(line => !!line)
.join("\n")%>

View File

@@ -0,0 +1,14 @@
const child_process = require("child_process");
module.exports = function (filePath) {
const { WINDOWS_SIGN_EXECUTABLE } = process.env;
if (!WINDOWS_SIGN_EXECUTABLE) {
console.warn("[Sign] Skip signing due to missing environment variable.");
return;
}
const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`;
console.log(`[Sign] ${command}`);
child_process.execSync(command);
}

191
bin/generate-openapi.ts Normal file
View File

@@ -0,0 +1,191 @@
import { fileURLToPath } from "url";
import { dirname, join } from "path";
import swaggerJsdoc from "swagger-jsdoc";
import fs from "fs";
/*
* Usage: npm run generate-openapi | tail -n1 > x.json
*
* Inspect generated file by opening it in https://editor-next.swagger.io/
*
*/
const options = {
definition: {
openapi: "3.1.1",
info: {
title: "Trilium Notes - Sync server API",
version: "0.96.6",
description:
"This is the internal sync server API used by Trilium Notes / TriliumNext Notes.\n\n_If you're looking for the officially supported External Trilium API, see [here](https://triliumnext.github.io/Docs/Wiki/etapi.html)._\n\nThis page does not yet list all routes. For a full list, see the [route controller](https://github.com/TriliumNext/Notes/blob/v0.91.6/src/routes/routes.ts).",
contact: {
name: "TriliumNext issue tracker",
url: "https://github.com/TriliumNext/Notes/issues"
},
license: {
name: "GNU Free Documentation License 1.3 (or later)",
url: "https://www.gnu.org/licenses/fdl-1.3"
}
}
},
apis: [
// Put individual files here to have them ordered first.
"./src/routes/api/setup.ts",
// all other files
"./src/routes/api/*.ts",
"./bin/generate-openapi.js"
]
};
const openapiSpecification = swaggerJsdoc(options);
const scriptDir = dirname(fileURLToPath(import.meta.url));
const outputPath = join(scriptDir, "..", "src", "routes", "api", "openapi.json");
fs.writeFileSync(outputPath, JSON.stringify(openapiSpecification));
console.log("Saved to ", outputPath);
/**
* @swagger
* tags:
* - name: auth
* description: Authentication
* - name: sync
* description: Synchronization
* - name: data
*/
/**
* @swagger
* components:
* schemas:
* Attribute:
* type: object
* properties:
* attributeId:
* type: string
* example: "4G1DPrI58PAb"
* noteId:
* $ref: "#/components/schemas/NoteId"
* type:
* type: string
* enum: ["attribute", "relation"]
* name:
* type: string
* example: "internalLink"
* value:
* type: string
* example: "hA8aHSpTRdZ6"
* description: "If type = \"relation\", a note ID. Otherwise, the attribute content."
* position:
* type: integer
* example: 20
* isInheritable:
* type: boolean
* Blob:
* type: object
* properties:
* blobId:
* type: string
* example: "8iqMIB8eiY1tPYmElfjm"
* content:
* type:
* - string
* - 'null'
* description: "`null` if not text."
* contentLength:
* type: integer
* dateModified:
* $ref: "#/components/schemas/DateTime"
* utcDateModified:
* $ref: "#/components/schemas/UtcDateTime"
* Branch:
* type: object
* properties:
* branchId:
* $ref: "#/components/schemas/BranchId"
* noteId:
* $ref: "#/components/schemas/NoteId"
* parentNoteId:
* $ref: "#/components/schemas/NoteId"
* notePosition:
* type: integer
* example: 20
* prefix:
* type:
* - string
* - 'null'
* isExpanded:
* type: boolean
* BranchId:
* type: string
* example: "WUjhaGp4EKah_ur11rSfHkzeV"
* description: Equal to `{parentNoteId}_{noteId}`
* DateTime:
* type: string
* example: "2025-02-14 08:19:59.203+0100"
* EntityChange:
* type: object
* properties:
* entityChange:
* type: object
* properties:
* entityName:
* type: string
* example: "notes"
* description: Database table for this entity.
* changeId:
* type: string
* example: "changeId9630"
* description: ID, referenced in `entity_changes` table.
* entity:
* type: object
* description: Encoded entity data. Object has one property for each database column.
* Note:
* type: object
* properties:
* noteId:
* $ref: "#/components/schemas/NoteId"
* title:
* type: string
* isProtected:
* type: boolean
* type:
* type: string
* example: "text"
* enum: ["text", "code", "render", "file", "image", "search", "relationMap", "book", "noteMap", "mermaid", "canvas", "webView", "launcher", "doc", "contentWidget", "mindMap", "geoMap"]
* description: "[Reference list](https://github.com/TriliumNext/Notes/blob/v0.91.6/src/services/note_types.ts)"
* mime:
* type: string
* example: "text/html"
* blobId:
* type: string
* example: "z4PhNX7vuL3xVChQ1m2A"
* NoteId:
* type: string
* example: "ur11rSfHkzeV"
* description: "12-character note ID. Special values: \"none\"`, `\"root\"."
* Timestamps:
* type: object
* properties:
* dateCreated:
* $ref: "#/components/schemas/DateTime"
* dateModified:
* $ref: "#/components/schemas/DateTime"
* utcDateCreated:
* $ref: "#/components/schemas/UtcDateTime"
* utcDateModified:
* $ref: "#/components/schemas/UtcDateTime"
* UtcDateTime:
* type: string
* example: "2025-02-13T07:42:47.698Z"
* description: "Result of `new Date().toISOString().replace('T', ' ')`"
* securitySchemes:
* user-password:
* type: apiKey
* name: trilium-cred
* in: header
* description: "Username and password, formatted as `user:password`"
* session:
* type: apiKey
* in: cookie
* name: trilium.sid
*/

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
export GITHUB_REPO=trilium
set -e
if [[ $# -eq 0 ]] ; then
echo "Missing argument of new version"
@@ -32,7 +32,7 @@ mv package.json.tmp package.json
git add package.json
npm run update-build-info
npm run chore:update-build-info
git add src/services/build.ts
@@ -40,10 +40,18 @@ TAG=v$VERSION
echo "Committing package.json version change"
git commit -m "release $VERSION"
git commit -m "chore(release): $VERSION"
git push
echo "Tagging commit with $TAG"
git tag $TAG
git push origin $TAG
echo "Updating master"
git fetch
git checkout master
git reset --hard origin/master
git merge origin/develop
git push

View File

@@ -16,7 +16,7 @@ chcp 65001
:: Get Current Trilium executable directory and compute data directory
SET DIR=%~dp0
set NODE_TLS_REJECT_UNAUTHORIZED=0
cd %DIR%
cd "%DIR%"
start trilium.exe
GOTO END

View File

@@ -15,8 +15,9 @@ chcp 65001
:: Get Current Trilium executable directory and compute data directory
SET DIR=%~dp0
SET DIR=%DIR:~0,-1%
SET TRILIUM_DATA_DIR=%DIR%\trilium-data
cd %DIR%
cd "%DIR%"
start trilium.exe
GOTO END

View File

@@ -16,7 +16,7 @@ chcp 65001
:: Get Current Trilium executable directory and compute data directory
SET DIR=%~dp0
SET TRILIUM_SAFE_MODE=1
cd %DIR%
cd "%DIR%"
start trilium.exe --disable-gpu
GOTO END

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-bookmark"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z" /></svg>

After

Width:  |  Height:  |  Size: 383 B

View File

@@ -0,0 +1,39 @@
#!/usr/bin/env bash
if ! command -v magick &> /dev/null; then
echo "This tool requires ImageMagick to be installed in order to create the icons."
exit 1
fi
if ! command -v inkscape &> /dev/null; then
echo "This tool requires Inkscape to be render sharper SVGs than ImageMagick."
exit 1
fi
script_dir=$(realpath $(dirname $0))
images_dir="$script_dir/../../images"
output_dir="$images_dir/app-icons/tray"
function generateDpiScaledIcons {
file=$1
suffix=$2
name="$(basename $file .svg)$suffix"
inkscape -w 16 -h 16 "$file" -o "$output_dir/$name.png"
inkscape -w 20 -h 20 "$file" -o "$output_dir/$name@1.25x.png"
inkscape -w 24 -h 24 "$file" -o "$output_dir/$name@1.5x.png"
inkscape -w 32 -h 32 "$file" -o "$output_dir/$name@2x.png"
}
generateDpiScaledIcons "$images_dir/icon-black.svg" "Template"
generateDpiScaledIcons "$images_dir/icon-color.svg"
generateDpiScaledIcons "$images_dir/icon-purple.svg"
for file in *.svg; do
name="$(basename $file .svg)Template"
generateDpiScaledIcons "$file" "Template"
magick "$output_dir/$name.png" -channel RGB -negate "$output_dir/$name-inverted.png"
magick "$output_dir/$name@1.25x.png" -channel RGB -negate "$output_dir/$name-inverted@1.25x.png"
magick "$output_dir/$name@1.5x.png" -channel RGB -negate "$output_dir/$name-inverted@1.5x.png"
magick "$output_dir/$name@2x.png" -channel RGB -negate "$output_dir/$name-inverted@2x.png"
done

1
bin/tray-icons/close.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>

After

Width:  |  Height:  |  Size: 356 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-plus"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 5l0 14" /><path d="M5 12l14 0" /></svg>

After

Width:  |  Height:  |  Size: 357 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-history"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 8l0 4l2 2" /><path d="M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5" /></svg>

After

Width:  |  Height:  |  Size: 387 B

1
bin/tray-icons/today.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-calendar-star"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M11 21h-5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v3.5" /><path d="M16 3v4" /><path d="M8 3v4" /><path d="M4 11h11" /><path d="M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z" /></svg>

After

Width:  |  Height:  |  Size: 734 B

View File

@@ -8,9 +8,6 @@ noAuthentication=false
# set to true to disable backups (e.g. because of limited space on server)
noBackup=false
# Disable automatically generating desktop icon
# noDesktopIcon=true
[Network]
# host setting is relevant only for web deployments - set the host on which the server will listen
# host=0.0.0.0
@@ -28,7 +25,35 @@ keyPath=
# expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)
trustedReverseProxy=false
[Session]
# Use this setting to set a custom value for the "Path" Attribute value of the session cookie.
# This can be useful, when you have several instances running on the same domain, under different paths (e.g. by using a reverse proxy).
# It prevents your instances from overwriting each others' cookies, allowing you to stay logged in multiple instances simultanteously.
# E.g. if you have instances running under https://your-domain.com/triliumNext/instanceA and https://your-domain.com/triliumNext/instanceB
# you would want to set the cookiePath value to "/triliumNext/instanceA" for your first and "/triliumNext/instanceB" for your second instance
cookiePath=/
# Use this setting to set a custom value for the "Max-Age" Attribute of the session cookie.
# This controls how long your session will be valid, before it expires and you need to log in again, when you use the "Remember Me" option.
# Value needs to be entered in Seconds.
# Default value is 1814400 Seconds, which is 21 Days.
cookieMaxAge=1814400
[Sync]
#syncServerHost=
#syncServerTimeout=
#syncServerProxy=
#syncServerProxy=
[MultiFactorAuthentication]
# Set the base URL for OAuth/OpenID authentication
# This is the URL of the service that will be used to verify the user's identity
oauthBaseUrl=
# Set the client ID for OAuth/OpenID authentication
# This is the ID of the client that will be used to verify the user's identity
oauthClientId=
# Set the client secret for OAuth/OpenID authentication
# This is the secret of the client that will be used to verify the user's identity
oauthClientSecret=

49
data-docs/config.ini Normal file
View File

@@ -0,0 +1,49 @@
[General]
# Instance name can be used to distinguish between different instances using backend api.getInstanceName()
instanceName=
# set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)
noAuthentication=false
# set to true to disable backups (e.g. because of limited space on server)
noBackup=false
# Disable automatically generating desktop icon
# noDesktopIcon=true
[Network]
# host setting is relevant only for web deployments - set the host on which the server will listen
# host=0.0.0.0
# port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
port=8080
# true for TLS/SSL/HTTPS (secure), false for HTTP (insecure).
https=false
# path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
certPath=
keyPath=
# setting to give trust to reverse proxies, a comma-separated list of trusted rev. proxy IPs can be specified (CIDR notation is permitted),
# alternatively 'true' will make use of the leftmost IP in X-Forwarded-For, ultimately an integer can be used to tell about the number of hops between
# Trilium (which is hop 0) and the first trusted rev. proxy.
# once set, expressjs will use the X-Forwarded-For header set by the rev. proxy to determinate the real IPs of clients.
# expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7)
trustedReverseProxy=false
[Session]
# Use this setting to set a custom value for the "Path" Attribute value of the session cookie.
# This can be useful, when you have several instances running on the same domain, under different paths (e.g. by using a reverse proxy).
# It prevents your instances from overwriting each others' cookies, allowing you to stay logged in multiple instances simultanteously.
# E.g. if you have instances running under https://your-domain.com/triliumNext/instanceA and https://your-domain.com/triliumNext/instanceB
# you would want to set the cookiePath value to "/triliumNext/instanceA" for your first and "/triliumNext/instanceB" for your second instance
cookiePath=/
# Use this setting to set a custom value for the "Max-Age" Attribute of the session cookie.
# This controls how long your session will be valid, before it expires and you need to log in again, when you use the "Remember Me" option.
# Value needs to be entered in Seconds.
# Default value is 1814400 Seconds, which is 21 Days.
cookieMaxAge=1814400
[Sync]
#syncServerHost=
#syncServerTimeout=
#syncServerProxy=

Binary file not shown.

View File

@@ -1,11 +1,24 @@
module.exports = () => {
const sql = require("../../src/services/sql");
const utils = require("../../src/services/utils");
import sql from "../../src/services/sql";
import utils from "../../src/services/utils";
interface NoteContentsRow {
noteId: string;
content: string | Buffer;
dateModified: string;
utcDateModified: string;
}
interface NoteRevisionContents {
noteRevisionId: string;
content: string | Buffer;
utcDateModified: string;
}
export default () => {
const existingBlobIds = new Set();
for (const noteId of sql.getColumn(`SELECT noteId FROM note_contents`)) {
const row = sql.getRow(`SELECT noteId, content, dateModified, utcDateModified FROM note_contents WHERE noteId = ?`, [noteId]);
for (const noteId of sql.getColumn<string>(/*sql*/`SELECT noteId FROM note_contents`)) {
const row = sql.getRow<NoteContentsRow>(/*sql*/`SELECT noteId, content, dateModified, utcDateModified FROM note_contents WHERE noteId = ?`, [noteId]);
const blobId = utils.hashedBlobId(row.content);
if (!existingBlobIds.has(blobId)) {
@@ -27,8 +40,8 @@ module.exports = () => {
sql.execute("UPDATE notes SET blobId = ? WHERE noteId = ?", [blobId, row.noteId]);
}
for (const noteRevisionId of sql.getColumn(`SELECT noteRevisionId FROM note_revision_contents`)) {
const row = sql.getRow(`SELECT noteRevisionId, content, utcDateModified FROM note_revision_contents WHERE noteRevisionId = ?`, [noteRevisionId]);
for (const noteRevisionId of sql.getColumn(/*sql*/`SELECT noteRevisionId FROM note_revision_contents`)) {
const row = sql.getRow<NoteRevisionContents>(/*sql*/`SELECT noteRevisionId, content, utcDateModified FROM note_revision_contents WHERE noteRevisionId = ?`, [noteRevisionId]);
const blobId = utils.hashedBlobId(row.content);
if (!existingBlobIds.has(blobId)) {
@@ -44,7 +57,7 @@ module.exports = () => {
sql.execute("UPDATE entity_changes SET entityName = 'blobs', entityId = ? WHERE entityName = 'note_revision_contents' AND entityId = ?", [blobId, row.noteRevisionId]);
} else {
// duplicates
sql.execute("DELETE FROM entity_changes WHERE entityName = 'note_revision_contents' AND entityId = ?", [row.noteId]);
sql.execute("DELETE FROM entity_changes WHERE entityName = 'note_revision_contents' AND entityId = ?", [row.noteRevisionId]);
}
sql.execute("UPDATE note_revisions SET blobId = ? WHERE noteRevisionId = ?", [blobId, row.noteRevisionId]);

View File

@@ -1,15 +1,15 @@
module.exports = () => {
const beccaLoader = require("../../src/becca/becca_loader");
const becca = require("../../src/becca/becca");
const cls = require("../../src/services/cls");
const log = require("../../src/services/log");
const sql = require("../../src/services/sql");
import becca from "../../src/becca/becca";
import becca_loader from "../../src/becca/becca_loader";
import cls from "../../src/services/cls";
import log from "../../src/services/log";
import sql from "../../src/services/sql";
export default () => {
cls.init(() => {
// emergency disabling of image compression since it appears to make problems in migration to 0.61
sql.execute(`UPDATE options SET value = 'false' WHERE name = 'compressImages'`);
sql.execute(/*sql*/`UPDATE options SET value = 'false' WHERE name = 'compressImages'`);
beccaLoader.load();
becca_loader.load();
for (const note of Object.values(becca.notes)) {
try {

View File

@@ -0,0 +1,14 @@
-- Add the oauth user data table
CREATE TABLE IF NOT EXISTS "user_data"
(
tmpID INT,
username TEXT,
email TEXT,
userIDEncryptedDataKey TEXT,
userIDVerificationHash TEXT,
salt TEXT,
derivedKey TEXT,
isSetup TEXT DEFAULT "false",
UNIQUE (tmpID),
PRIMARY KEY (tmpID)
);

View File

@@ -126,6 +126,19 @@ CREATE TABLE IF NOT EXISTS "attachments"
utcDateScheduledForErasureSince TEXT DEFAULT NULL,
isDeleted INT not null,
deleteId TEXT DEFAULT NULL);
CREATE TABLE IF NOT EXISTS "user_data"
(
tmpID INT,
username TEXT,
email TEXT,
userIDEncryptedDataKey TEXT,
userIDVerificationHash TEXT,
salt TEXT,
derivedKey TEXT,
isSetup TEXT DEFAULT "false",
UNIQUE (tmpID),
PRIMARY KEY (tmpID)
);
CREATE INDEX IDX_attachments_ownerId_role
on attachments (ownerId, role);

6088
demo/!!!meta.json Normal file

File diff suppressed because it is too large Load Diff

11
demo/index.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<frameset cols="25%,75%">
<frame name="navigation" src="navigation.html">
<frame name="detail" src="root/Journal.dat">
</frameset>
</html>

646
demo/navigation.html Normal file
View File

@@ -0,0 +1,646 @@
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul>
<li>root
<ul>
<li><a href="root/Journal.dat" target="detail">Journal</a>
</li>
<li><a href="root/Trilium%20Demo.html" target="detail">Trilium Demo</a>
<ul>
<li><a href="root/Trilium%20Demo/Inbox.html" target="detail">Inbox</a>
<ul>
<li><a href="root/Trilium%20Demo/Inbox/Grocery%20list%20for%20today.html"
target="detail">Grocery list for today</a>
</li>
<li><a href="root/Trilium%20Demo/Inbox/Book%20to%20read.html" target="detail">Book to read</a>
</li>
<li><a href="root/Trilium%20Demo/Inbox/The%20Last%20Question.html" target="detail">The Last Question</a>
<ul>
<li><a href="root/Trilium%20Demo/Inbox/The%20Last%20Question/The%20Last%20Question%20by%20Issac.pdf"
target="detail">The Last Question by Issac Asimov.pdf</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Formatting examples
<ul>
<li><a href="root/Trilium%20Demo/Formatting%20examples/School%20schedule.html"
target="detail">School schedule</a>
</li>
<li><a href="root/Trilium%20Demo/Formatting%20examples/Checkbox%20lists.html"
target="detail">Checkbox lists</a>
</li>
<li><a href="root/Trilium%20Demo/Formatting%20examples/Highlighting.html"
target="detail">Highlighting</a>
</li>
<li><a href="root/Trilium%20Demo/Formatting%20examples/Code%20blocks.html"
target="detail">Code blocks</a>
</li>
<li><a href="root/Trilium%20Demo/Formatting%20examples/Math.html" target="detail">Math</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal.html" target="detail">Journal</a>
<ul>
<li>2021
<ul>
<li>11 - November
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/11%20-%20November/28%20-%20Tuesday.html"
target="detail">28 - Tuesday</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/11%20-%20November/28%20-%20Tuesday/Phone%20call%20about%20work%20project.html"
target="detail">Phone call about work project</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/11%20-%20November/28%20-%20Tuesday/Christmas%20gift%20ideas.html"
target="detail">Christmas gift ideas</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/11%20-%20November/28%20-%20Tuesday/Trusted%20timestamping.html"
target="detail">Trusted timestamping</a>
</li>
</ul>
</li>
</ul>
</li>
<li>12 - December
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday.html"
target="detail">18 - Monday</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Meeting%20minutes.html"
target="detail">Meeting minutes</a>
</li>
<li>Photos from the trip
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/01.jpeg"
target="detail">01.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/02.jpeg"
target="detail">02.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/03.jpeg"
target="detail">03.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/04.jpeg"
target="detail">04.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/05.jpeg"
target="detail">05.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/06.jpeg"
target="detail">06.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/07.jpeg"
target="detail">07.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/08.jpeg"
target="detail">08.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/09.jpeg"
target="detail">09.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/10.jpeg"
target="detail">10.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/11.jpeg"
target="detail">11.jpeg</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/Photos%20from%20the%20trip/12.jpeg"
target="detail">12.jpeg</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/18%20-%20Monday/TODO%20-%20Send%20invites%20for%20christ.html"
target="detail">TODO - Send invites for christmas party</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/19%20-%20Tuesday.html"
target="detail">19 - Tuesday</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/19%20-%20Tuesday/DONE%20-%20Dentist%20appointment.html"
target="detail">DONE - Dentist appointment</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/20%20-%20Wednesday.html"
target="detail">20 - Wednesday</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/21%20-%20Thursday.html"
target="detail">21 - Thursday</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/21%20-%20Thursday/Christmas%20shopping.html"
target="detail">Christmas shopping</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/21%20-%20Thursday/Office%20party.html"
target="detail">Office party</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/22%20-%20Friday.html"
target="detail">22 - Friday</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/22%20-%20Friday/Christmas%20shopping.html"
target="detail">Christmas shopping</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/22%20-%20Friday/The%20Mechanical.html"
target="detail">The Mechanical</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/22%20-%20Friday/The%20Mechanical/Highlights.html"
target="detail">Highlights</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/23%20-%20Saturday.html"
target="detail">23 - Saturday</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!.html"
target="detail">24 - Sunday - Christmas Eve!</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!/DONE%20-%20Buy%20a%20board%20game%20for%20Al.html"
target="detail">DONE - Buy a board game for Alice</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/24%20-%20Sunday%20-%20Christmas%20Eve!/TODO%20-%20Buy%20milk.html"
target="detail">TODO - Buy milk</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/30%20-%20Thursday.html"
target="detail">30 - Thursday</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/Epics.html" target="detail">Epics</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/Epics/Christmas.html" target="detail">Christmas</a>
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/Epics/Christmas/Vacation%20days.html"
target="detail">Vacation days</a>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/Epics/Christmas/Christmas%20dinner.html"
target="detail">Christmas dinner</a>
</li>
<li>Shopping
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/11%20-%20November/28%20-%20Tuesday/Christmas%20gift%20ideas.html"
target="detail">28. 11. 2017 - Christmas gift ideas</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/2021/Epics/Vacation.html" target="detail">Vacation</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Journal/Day%20template.html" target="detail">Day template</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Tech.html" target="detail">Tech</a>
<ul>
<li>Security
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/11%20-%20November/28%20-%20Tuesday/Trusted%20timestamping.html"
target="detail">Trusted timestamping</a>
</li>
</ul>
</li>
<li>Linux
<ul>
<li><a href="root/Trilium%20Demo/Tech/Linux/History.html" target="detail">History</a>
</li>
<li><a href="root/Trilium%20Demo/Tech/Linux/Bash%20scripting.html" target="detail">Bash scripting</a>
<ul>
<li><a href="root/Trilium%20Demo/Tech/Linux/Bash%20scripting/While%20loop.html"
target="detail">While loop</a>
</li>
<li><a href="root/Trilium%20Demo/Tech/Linux/Bash%20scripting/Bash%20startup%20modes.html"
target="detail">Bash startup modes</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Tech/Linux/Ubuntu.html" target="detail">Ubuntu</a>
<ul>
<li><a href="root/Trilium%20Demo/Tech/Linux/Ubuntu/Unity%20shortcuts.html"
target="detail">Unity shortcuts</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Programming
<ul>
<li><a href="root/Trilium%20Demo/Tech/Programming/Java.html" target="detail">Java</a>
</li>
<li><a href="root/Trilium%20Demo/Tech/Linux/Bash%20scripting.html" target="detail">Bash scripting</a>
</li>
</ul>
</li>
<li>Node.js
<ul>
<li><a href="root/Trilium%20Demo/Tech/Node.js/Intro.html" target="detail">Intro</a>
</li>
<li><a href="root/Trilium%20Demo/Tech/Node.js/Overview.html" target="detail">Overview</a>
<ul>
<li><a href="root/Trilium%20Demo/Tech/Node.js/Overview/History.html" target="detail">History</a>
</li>
<li><a href="root/Trilium%20Demo/Tech/Node.js/Overview/Platform%20architecture.html"
target="detail">Platform architecture</a>
</li>
<li><a href="root/Trilium%20Demo/Tech/Node.js/Overview/Industry%20support.html"
target="detail">Industry support</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Tech/Node.js/Releases.html" target="detail">Releases</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Note Types
<ul>
<li><a href="root/Trilium%20Demo/Note%20Types/Canvas.json" target="detail">Canvas</a>
</li>
<li>Mermaid Diagrams
<ul>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Flow.txt"
target="detail">Flow</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Flow%20(ELK).txt"
target="detail">Flow (ELK)</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Sequence.txt"
target="detail">Sequence</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Gantt.txt"
target="detail">Gantt</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Class.txt"
target="detail">Class</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/State.txt"
target="detail">State</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Mind%20Map.txt"
target="detail">Mind Map</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Pie.txt"
target="detail">Pie</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Journey.txt"
target="detail">Journey</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Git.txt"
target="detail">Git</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Entity%20Relationship.txt"
target="detail">Entity Relationship</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/Bar%20chart.txt"
target="detail">Bar chart</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mermaid%20Diagrams/C4.txt" target="detail">C4</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Mind%20Map.json" target="detail">Mind Map</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20.json"
target="detail">Geo Map (The Seven Wonders of the World)</a>
<ul>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/The%20Colosseum%2C%20Rome%2C%20Italy.html"
target="detail">The Colosseum, Rome, Italy</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/The%20Great%20Wall%20of%20China.html"
target="detail">The Great Wall of China</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/The%20Taj%20Mahal%2C%20India.html"
target="detail">The Taj Mahal, India</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/Christ%20the%20Redeemer%2C%20Brazil.html"
target="detail">Christ the Redeemer, Brazil</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/Machu%20Picchu%2C%20Peru.html"
target="detail">Machu Picchu, Peru</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/Chich%C3%A9n%20Itz%C3%A1%2C%20Mexico.html"
target="detail">Chichén Itzá, Mexico</a>
</li>
<li><a href="root/Trilium%20Demo/Note%20Types/Geo%20Map%20(The%20Seven%20Wonders%20of%20the%20World)/Petra%2C%20Jordan.html"
target="detail">Petra, Jordan</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Books
<ul>
<li><a href="root/Trilium%20Demo/Books/To%20read.html" target="detail">To read</a>
</li>
<li><a href="root/Trilium%20Demo/Books/Book%20template.html" target="detail">Book template</a>
<ul>
<li><a href="root/Trilium%20Demo/Books/Book%20template/Highlights.html" target="detail">Highlights</a>
</li>
</ul>
</li>
<li>Reviews
<ul>
<li><a href="root/Trilium%20Demo/Journal/2021/12%20-%20December/22%20-%20Friday/The%20Mechanical.html"
target="detail">The Mechanical</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Work
<ul>
<li><a href="root/Trilium%20Demo/Work/HR.html" target="detail">HR</a>
</li>
<li><a href="root/Trilium%20Demo/Work/Processes.html" target="detail">Processes</a>
</li>
<li><a href="root/Trilium%20Demo/Work/Projects.html" target="detail">Projects</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Steel%20Blue.css" target="detail">Steel Blue</a>
<ul>
<li><a href="root/Trilium%20Demo/Steel%20Blue/eb-garamond-v9-latin-reg.woff2"
target="detail">eb-garamond-v9-latin-regular.woff2</a>
</li>
<li><a href="root/Trilium%20Demo/Steel%20Blue/raleway-v12-latin-regula.woff2"
target="detail">raleway-v12-latin-regular.woff2</a>
</li>
</ul>
</li>
<li>Scripting examples
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager.html"
target="detail">Task manager</a>
<ul>
<li>Locations
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/gym.html"
target="detail">gym</a>
</li>
<li>work
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/work/Send%20invites%20for%20christmas%20par.html"
target="detail">Send invites for christmas party</a>
</li>
</ul>
</li>
<li>tesco
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/tesco/Buy%20milk.html"
target="detail">Buy milk</a>
</li>
</ul>
</li>
<li>mall
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/mall/Buy%20some%20book%20for%20Bob.html"
target="detail">Buy some book for Bob</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/mall/Buy%20some%20book%20for%20Bob/Maybe%20Black%20Swan.html"
target="detail">Maybe Black Swan?</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Done
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Done/Buy%20a%20board%20game%20for%20Alice.html"
target="detail">Buy a board game for Alice</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Done/Dentist%20appointment.html"
target="detail">Dentist appointment</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Done/Get%20a%20gym%20membership.html"
target="detail">Get a gym membership</a>
</li>
</ul>
</li>
<li>TODO
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/work/Send%20invites%20for%20christmas%20par.html"
target="detail">Send invites for christmas party</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/tesco/Buy%20milk.html"
target="detail">Buy milk</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/mall/Buy%20some%20book%20for%20Bob.html"
target="detail">Buy some book for Bob</a>
</li>
</ul>
</li>
<li>Implementation
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Implementation/attribute%20changed.js"
target="detail">attribute changed</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Implementation/attribute%20changed/reconcileAssignments.js"
target="detail">reconcileAssignments</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Implementation/CSS.css"
target="detail">CSS</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Implementation/task%20template.html"
target="detail">task template</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Implementation/createNewTask.js"
target="detail">createNewTask</a>
</li>
</ul>
</li>
<li>Tags
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Tags/health.html"
target="detail">health</a>
</li>
<li>shopping
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/mall/Buy%20some%20book%20for%20Bob.html"
target="detail">Buy some book for Bob</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/tesco/Buy%20milk.html"
target="detail">Buy milk</a>
</li>
</ul>
</li>
<li>groceries
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/tesco/Buy%20milk.html"
target="detail">Buy milk</a>
</li>
</ul>
</li>
<li>christmas
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Locations/mall/Buy%20some%20book%20for%20Bob.html"
target="detail">Buy some book for Bob</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Task%20manager/Create%20Launcher.js"
target="detail">Create Launcher</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Word%20count%20widget.js"
target="detail">Word count widget</a>
</li>
<li>Weight Tracker
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Weight%20Tracker/Implementation.html"
target="detail">Implementation</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Weight%20Tracker/Implementation/JS%20code.js"
target="detail">JS code</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Weight%20Tracker/Implementation/JS%20code/chart.js"
target="detail">chart.js</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Statistics
<ul>
<li>Attribute count
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template.html"
target="detail">template</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js.js"
target="detail">js</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js/renderPieChart.js"
target="detail">renderPieChart</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js/renderPieChart/chartjs-plugin-datalabe.min.js"
target="detail">chartjs-plugin-datalabels.min.js</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Weight%20Tracker/Implementation/JS%20code/chart.js"
target="detail">chart.js</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Weight%20Tracker/Implementation/JS%20code/chart.js"
target="detail">chart.js</a>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js/renderTable.js"
target="detail">renderTable</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Largest notes
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Largest%20notes/template.html"
target="detail">template</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Largest%20notes/template/js.js"
target="detail">js</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Most edited notes
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Most%20edited%20notes/template.html"
target="detail">template</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Most%20edited%20notes/template/js.js"
target="detail">js</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Most linked notes
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Most%20linked%20notes/template.html"
target="detail">template</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Most%20linked%20notes/template/js.js"
target="detail">js</a>
</li>
</ul>
</li>
</ul>
</li>
<li>Note type count
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Note%20type%20count/template.html"
target="detail">template</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Note%20type%20count/template/js.js"
target="detail">js</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Note%20type%20count/template/js/renderTable.js"
target="detail">renderTable</a>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Attribute%20count/template/js/renderPieChart.js"
target="detail">renderPieChart</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Most cloned notes
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Most%20cloned%20notes/template.html"
target="detail">template</a>
<ul>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Statistics/Most%20cloned%20notes/template/js.js"
target="detail">js</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="root/Trilium%20Demo/Scripting%20examples/Custom%20request%20handler.js"
target="detail">Custom request handler</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</body>
</html>

0
demo/root/Journal.dat Normal file
View File

View File

@@ -0,0 +1,81 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../style.css">
<base target="_parent">
<title data-trilium-title>Trilium Demo</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Trilium Demo</h1>
<div class="ck-content">
<figure class="image image-style-align-right image_resized" style="width:29.84%;">
<img style="aspect-ratio:150/150;" src="Trilium Demo_icon-color.svg" width="150"
height="150">
</figure>
<p><strong>Welcome to TriliumNext Notes!</strong>
</p>
<p>This is initial "demo" document provided by TriliumNext by default to
showcase some of its features and also give you some ideas how you might
structure your notes. You can play with it, modify note content and tree
structure as you wish.</p>
<p>If you need any help, visit TriliumNext website: <a href="https://github.com/TriliumNext">https://github.com/TriliumNext</a>
</p>
<h3>Cleanup</h3>
<p>Once you're finished with experimenting and want to cleanup these pages,
you can simply delete them all.</p>
<h3>Formatting</h3>
<p>TriliumNext supports classic formatting like <em>italic</em>, <strong>bold</strong>, <em><strong>bold and italic</strong></em>.
Of course you can add links like this one pointing to <a href="http://www.google.com">google.com</a>
</p>
<p>Lists</p>
<p><strong>Ordered:</strong>
</p>
<ol>
<li>First Item</li>
<li>Second item
<ol>
<li>First sub-item
<ol>
<li>sub-sub-item</li>
</ol>
</li>
</ol>
</li>
</ol>
<p><strong>Unordered:</strong>
</p>
<ul>
<li>Item</li>
<li>Another item
<ul>
<li>Sub-item</li>
</ul>
</li>
</ul>
<p>Block quotes</p>
<blockquote>
<p>Whereof one cannot speak, thereof one must be silent”</p>
<p> Ludwig Wittgenstein</p>
</blockquote>
<p>Checkout also other examples like <a href="Trilium%20Demo/Formatting%20examples/School%20schedule.html">tables</a>,
<a
href="Trilium%20Demo/Formatting%20examples/Checkbox%20lists.html">checkbox lists,</a> <a href="Trilium%20Demo/Formatting%20examples/Highlighting.html">highlighting</a>,
<a
href="Trilium%20Demo/Formatting%20examples/Code%20blocks.html">code blocks</a>and&nbsp;<a href="Trilium%20Demo/Formatting%20examples/Math.html">math examples</a>.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,40 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Book template</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Book template</h1>
<div class="ck-content">
<h2>Main characters</h2>
<p>… here put main characters …</p>
<p>&nbsp;</p>
<h2>Plot</h2>
<p>… describe main plot lines …</p>
<p>&nbsp;</p>
<h2>Tone</h2>
<p>&nbsp;</p>
<h2>Genre</h2>
<p>scifi / drama / romance</p>
<p>&nbsp;</p>
<h2>Similar books</h2>
<ul>
<li></li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,24 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../style.css">
<base target="_parent">
<title data-trilium-title>Highlights</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Highlights</h1>
<div class="ck-content">
<blockquote>
<p>highlght 1</p>
</blockquote>
<p>my comment</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,21 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../style.css">
<base target="_parent">
<title data-trilium-title>The Mechanical</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>The Mechanical</h1>
<div class="ck-content">
<p>This is a clone of a note. Go to its <a href="../../Journal/2021/12%20-%20December/22%20-%20Friday/The%20Mechanical.html">primary location</a>.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,31 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>To read</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>To read</h1>
<div class="ck-content">
<p>Checkout Kindle daily deals: <a href="https://www.amazon.com/gp/feature.html?docId=1000677541">https://www.amazon.com/gp/feature.html?docId=1000677541</a>
</p>
<ul>
<li>Cixin Liu - <a href="https://www.amazon.com/Dark-Forest-Remembrance-Earths-Past/dp/0765386690/ref=pd_bxgy_14_img_2?_encoding=UTF8&amp;pd_rd_i=0765386690&amp;pd_rd_r=AB0J179TM9NTEAMHE240&amp;pd_rd_w=FAhxX&amp;pd_rd_wg=pLGK7&amp;psc=1&amp;refRID=AB0J179TM9NTEAMHE240">The Dark Forest</a>
</li>
<li>Ann Leckie - <a href="https://www.amazon.com/Ancillary-Sword-Imperial-Radch-Leckie/dp/0316246654/ref=pd_sim_14_1?_encoding=UTF8&amp;pd_rd_i=0316246654&amp;pd_rd_r=D7KDTGZFP7YM1YSYVY4G&amp;pd_rd_w=jkn28&amp;pd_rd_wg=JVhtw&amp;psc=1&amp;refRID=D7KDTGZFP7YM1YSYVY4G">Ancillary Sword</a>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,47 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Checkbox lists</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Checkbox lists</h1>
<div class="ck-content">
<p>Create easy TODO-lists with checkboxes:</p>
<ul class="todo-list">
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">buy milk&nbsp;&nbsp;</span>
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">do the laundry&nbsp;&nbsp;</span>
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">watch TV&nbsp;&nbsp;</span>
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">eat ice cream&nbsp;&nbsp;</span>
</label>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,33 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Code blocks</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Code blocks</h1>
<div class="ck-content">
<p>Code blocks are useful to add short snippets of code blocks inside text
notes. Depending on your preference, it's possible to enable or disable
word wrapping for these code blocks.</p>
<p>We added syntax highlighting to code blocks as well. When a code block
is first created it will try to automatically determine the programming
language, should that fail it is possible to manually adjust it. The color
scheme for the syntax highlighting is adjustable in settings.&nbsp;</p><pre><code class="language-application-javascript-env-frontend">function helloWorld() {
alert("Hello world");
}</code></pre>
<p>For larger pieces of code it is better to use a code note, which uses
a fully-fledged code editor (CodeMirror). For an example of a code note,
see&nbsp;<a class="reference-link" href="../Scripting%20examples/Custom%20request%20handler.js">Custom request handler</a>.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,35 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Highlighting</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Highlighting</h1>
<div class="ck-content">
<p><span class="text-big">Space Shuttle Discovery</span> (Orbiter Vehicle
Designation: <code>OV-103</code>) is one of the orbiters from NASA's Space
Shuttle program and the third of five fully operational orbiters to be
built. Its first mission, STS-41-D, flew from August 30 to September 5,
1984. Over 27 years of service it launched and landed <span style="background-color:hsl(60,75%,60%);">39 times</span>,
gathering more spaceflights than any other spacecraft to date. The shuttle
has three main components: the Space Shuttle orbiter, a central fuel tank,
and two rocket boosters. Nearly <span style="background-color:hsl(120,75%,60%);">25,000 heat resistant tiles</span> cover
the orbiter to protect it from high temperatures on re-entry.</p>
<p>Discovery became the third operational orbiter to enter service, preceded
by Columbia and Challenger. <span style="color:hsl(270,75%,60%);">It embarked on its last mission, STS-133, on February 24, 2011</span> and
touched down for the final time at Kennedy Space Center on March 9, having
spent a cumulative total of almost a full year in space. Discovery performed
both research and International Space Station (ISS) assembly missions,
and also carried the Hubble Space Telescope into orbit.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,27 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Math</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Math</h1>
<div class="ck-content">
<p><span class="math-tex">\(% \f is defined as #1f(#2) using the macro \f\relax{x} = \int_{-\infty}^\infty &nbsp; &nbsp; \f\hat\xi\,e^{2 \pi i \xi x} &nbsp; &nbsp; \,d\xi\)</span>Some
math examples:</p><span class="math-tex">\[\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }\]</span>
<p>Another:</p><span class="math-tex">\[\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)\]</span>
<p>Inline math is also possible:&nbsp;<span class="math-tex">\(c^2 = a^2 + b^2\)</span>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,69 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>School schedule</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>School schedule</h1>
<div class="ck-content">
<figure class="table">
<table>
<thead>
<tr>
<th>&nbsp;</th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
</tr>
</thead>
<tbody>
<tr>
<th>9:00-10:30</th>
<td>P.E.</td>
<td>&nbsp;</td>
<td>Math</td>
<td>Computer Science</td>
<td>&nbsp;</td>
</tr>
<tr>
<th>11:00-12:30</th>
<td>History</td>
<td>English</td>
<td>&nbsp;</td>
<td>Physics</td>
<td>Math</td>
</tr>
<tr>
<th>13:00-14:30</th>
<td>&nbsp;</td>
<td>Computer Science</td>
<td>Chemistry</td>
<td>Physics Lab</td>
<td>Geography</td>
</tr>
<tr>
<th>15:00-16:30</th>
<td>Computer Science</td>
<td>&nbsp;</td>
<td>Latin</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
<figcaption>School schedule</figcaption>
</figure>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,25 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../style.css">
<base target="_parent">
<title data-trilium-title>Inbox</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Inbox</h1>
<div class="ck-content">
<div>
<div>
<p>This is a place I use to put notes waiting for better categorization</p>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,22 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Book to read</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Book to read</h1>
<div class="ck-content">
<p>How to be a stoic from Massimo Pigliuci:</p>
<p><a href="https://www.amazon.com/gp/product/B01K3WN1BY?pf_rd_m=A2R2RITDJNW1Q6&amp;storeType=ebooks&amp;pageType=STOREFRONT&amp;pf_rd_p=8e2a96d9-c848-435b-92bd-0856850ad544&amp;pf_rd_r=4J6CT15BS4X8062XNGDF&amp;pf_rd_s=merchandised-search-5&amp;pf_rd_t=40901&amp;ref_=dbs_f_ebk_rwt_scns_mwl_ms5_kmw_8e2a96d9-c848-435b-92bd-0856850ad544_2&amp;pf_rd_i=154606011">https://www.amazon.com/gp/product/B01K3WN1BY?pf_rd_m=A2R2RITDJNW1Q6&amp;storeType=ebooks&amp;pageType=STOREFRONT&amp;pf_rd_p=8e2a96d9-c848-435b-92bd-0856850ad544&amp;pf_rd_r=4J6CT15BS4X8062XNGDF&amp;pf_rd_s=merchandised-search-5&amp;pf_rd_t=40901&amp;ref_=dbs_f_ebk_rwt_scns_mwl_ms5_kmw_8e2a96d9-c848-435b-92bd-0856850ad544_2&amp;pf_rd_i=154606011</a>&nbsp;</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,25 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>Grocery list for today</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Grocery list for today</h1>
<div class="ck-content">
<ul>
<li>cucumber</li>
<li>cheese</li>
<li>beer</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../style.css">
<base target="_parent">
<title data-trilium-title>The Last Question</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>The Last Question</h1>
<div class="ck-content">
<p>"<strong>The Last Question</strong>" is a <a href="https://en.wikipedia.org/wiki/Science_fiction">science fiction</a>
<a
href="https://en.wikipedia.org/wiki/Short_story">short story</a>by American writer <a href="https://en.wikipedia.org/wiki/Isaac_Asimov">Isaac Asimov</a>.
It first appeared in the November 1956 issue of <a href="https://en.wikipedia.org/wiki/Science_Fiction_Quarterly"><em>Science Fiction Quarterly</em></a>.</p>
<section
class="include-note" data-note-id="ZWCYra81yOFO" data-box-size="medium">&nbsp;</section>
<p>This page demonstrates two things:</p>
<ul>
<li>possibility to <a href="#root/_hidden/_help/_help_KSZ04uQ2D1St/_help_iPIMuisry3hd/_help_nBAXQFj20hS1">include one note into another</a>
</li>
<li>PDF preview - you can read PDFs directly in Trilium!</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../style.css">
<base target="_parent">
<title data-trilium-title>Journal</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Journal</h1>
<div class="ck-content">
<p>You can read some explanation on how this journal works here: <a href="https://github.com/zadam/trilium/wiki/Day-notes">https://github.com/zadam/trilium/wiki/Day-notes</a>
</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../style.css">
<base target="_parent">
<title data-trilium-title>28 - Tuesday</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>28 - Tuesday</h1>
<div class="ck-content">
<p>TODO:</p>
<ul class="todo-list">
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
</label>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,28 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Christmas gift ideas</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Christmas gift ideas</h1>
<div class="ck-content">
<ul>
<li>XBox</li>
<li>Candles</li>
<li><a href="https://www.amazon.ca/Anker-SoundCore-Portable-Bluetooth-Resistance/dp/B01MTB55WH?pd_rd_wg=honW8&amp;pd_rd_r=c9bb7c0f-0051-4da7-991f-4ca711a1b3e3&amp;pd_rd_w=ciUpR&amp;ref_=pd_gw_simh&amp;pf_rd_r=K10XKX0NGPDNTYYP4BS4&amp;pf_rd_p=5f1b460b-78c1-580e-929e-2878fe4859e8">Portable speakers</a>
</li>
<li>...?</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,21 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Phone call about work project</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Phone call about work project</h1>
<div class="ck-content">
<p>Bla bla bla ...</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,33 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Trusted timestamping</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Trusted timestamping</h1>
<div class="ck-content">
<p>Wiki: <a href="https://en.wikipedia.org/wiki/Trusted_timestamping">https://en.wikipedia.org/wiki/Trusted_timestamping</a>
</p>
<p>Bozho: <a href="https://techblog.bozho.net/using-trusted-timestamping-java/">https://techblog.bozho.net/using-trusted-timestamping-java/</a>
</p>
<p><strong>Trusted timestamping</strong> is the process of <a href="https://en.wikipedia.org/wiki/Computer_security">securely</a> keeping
track of the creation and modification time of a document. Security here
means that no one—not even the owner of the document—should be able to
change it once it has been recorded provided that the timestamper's integrity
is never compromised.</p>
<p>The administrative aspect involves setting up a publicly available, trusted
timestamp management infrastructure to collect, process and renew timestamps.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,27 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../style.css">
<base target="_parent">
<title data-trilium-title>18 - Monday</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>18 - Monday</h1>
<div class="ck-content">
<p>Miscellaneous notes done on monday ...</p>
<p>&nbsp;</p>
<p>Interesting video: <a href="https://www.youtube.com/watch?v=_eSAF_qT_FY&amp;feature=youtu.be">https://www.youtube.com/watch?v=_eSAF_qT_FY&amp;feature=youtu.be</a>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,21 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Meeting minutes</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Meeting minutes</h1>
<div class="ck-content">
<p>bla bla bla...</p>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -0,0 +1,19 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Send invites for christmas party</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Send invites for christmas party</h1>
<div class="ck-content"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../style.css">
<base target="_parent">
<title data-trilium-title>19 - Tuesday</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>19 - Tuesday</h1>
<div class="ck-content">
<p>TODO:</p>
<ul class="todo-list">
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
</label>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,19 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Dentist appointment</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Dentist appointment</h1>
<div class="ck-content"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../style.css">
<base target="_parent">
<title data-trilium-title>20 - Wednesday</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>20 - Wednesday</h1>
<div class="ck-content">
<p>TODO:</p>
<ul class="todo-list">
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
</label>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../style.css">
<base target="_parent">
<title data-trilium-title>21 - Thursday</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>21 - Thursday</h1>
<div class="ck-content">
<p>TODO:</p>
<ul class="todo-list">
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">&nbsp;&nbsp;</span>
</label>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,21 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../../../../../style.css">
<base target="_parent">
<title data-trilium-title>Christmas shopping</title>
</head>
<body>
<div class="content">
<h1 data-trilium-h1>Christmas shopping</h1>
<div class="ck-content">
<p>Bought a book!</p>
</div>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More