Elian Doran
f7fbda1b00
fix(docs): import errors due to file case errors
2025-04-09 14:46:21 +03:00
Elian Doran
27ad451bd8
feat(electron): support transparency on Linux if background effects are enabled
2025-04-09 14:10:11 +03:00
Elian Doran
c603efb44b
Merge pull request #1655 from TriliumNext/type_sql-transactional
...
types: use type variable for sql.transactional's return value
2025-04-09 12:07:57 +03:00
JYC333
34d401574c
Merge pull request #1650 from TriliumNext/eslint
...
Use eslint simple-import-sort plugin to enable auto fix
2025-04-09 16:49:27 +08:00
Panagiotis Papadopoulos
6d74f6c1c4
chore(deps): run npm audit fix
...
fixes
vite 6.2.0 - 6.2.4
Severity: moderate
Vite allows server.fs.deny to be bypassed with .svg or relative paths - https://github.com/advisories/GHSA-xcj6-pq6g-qj4x
2025-04-09 09:52:01 +02:00
Panagiotis Papadopoulos
c494cca229
Merge branch 'develop' into type_sql-transactional
2025-04-09 09:44:47 +02:00
Panagiotis Papadopoulos
da649d75c0
refactor(routes/api/recovery_codes): use Array.from with mapFn in generateRecoveryCodes
...
gives us the identical result as before, but a lot more concise and "DRY"
2025-04-09 09:43:38 +02:00
Panagiotis Papadopoulos
68ea84a2cb
refactor(routes/api/recovery_codes): use .map instead of .forEach
...
it doesn't make sense to use a forEach here, when all we do is push values into an array => just use .map directly as it returns an array
2025-04-09 09:24:28 +02:00
Panagiotis Papadopoulos
05917fd815
fix(routes/api/recovery_codes): convert number into string
...
fixes type error, as usedStatus is expecting string[] and "indexOf" returns a number
2025-04-09 09:21:20 +02:00
Panagiotis Papadopoulos
eae68064e5
types(recovery_codes): use sql.transactional Generics to simplify typings
2025-04-09 08:41:55 +02:00
Panagiotis Papadopoulos
af85ef0b47
types(services/sql): explicitly cast return value as type variable T instead of any
...
previously the type variable was useless, because
`const ret = (dbConnection.transaction(func) as any).deferred();` was inferred as "any".
2025-04-09 08:34:42 +02:00
Panagiotis Papadopoulos
80dd925231
chore(lint): fix minor lint issues in recovery_codes
...
/home/pano/Programming/0_repos/TriliumNextNotes/src/services/encryption/recovery_codes.ts
2:1 error Imports should be sorted alphabetically sort-imports
3:1 error Imports should be sorted alphabetically sort-imports
13:9 error 'encryptedRecoveryCodes' is never reassigned. Use 'const' instead prefer-const
57:5 error Unexpected var, use let or const instead no-var
2025-04-09 08:19:20 +02:00
Panagiotis Papadopoulos
4ea82bb50b
Merge branch 'develop' into deps_express5
2025-04-09 00:21:17 +02:00
Panagiotis Papadopoulos
26d5462af4
refactor(routes/custom): update path "/custom/*path" for express v5
2025-04-09 00:17:30 +02:00
Panagiotis Papadopoulos
8d09ff4299
fix(routes): remove unused wildcard in apiRoute "/api/options/:name/:value*"
...
the updateOption function that handles the req.param is just destructuring `const { name, value } = req.params;` and does nothing else with the path or any params.
The remaining parts of the wildcard (which can be accessed via req.param[0]) are just ignored here.
even with express v4, this would *always* just take and process the very first part of the path, in the exact wildcard's place, e.g.
`/api/options/locale/de` and
`/api/options/locale/de/test/whatever`
would *both* end up destructuring "value" from req.param as "de" (because it is in the exact place of the 'value' wildcard)
in express v5 the wildcard behaviour changes -> here req.param.value would return an array with the paths split into separate string.
but since the code previously regarded only the first part of the path -> we can just get rid of the wildcard and use a named route param
the only thing to keep in mind: if a request with more than one "value" is received, (e.g. `/api/options/locale/de/test/whatever`) -> since we don't have the wildcard anymore -> this will turn to a 404.
IMHO that is actually desirable here though
2025-04-08 23:50:53 +02:00
Elian Doran
43c2818299
fix(calendar_view): promoted attributes overlap
2025-04-08 23:38:04 +03:00
Elian Doran
05a006faca
fix(calendar_view): add back note icon
2025-04-08 23:33:57 +03:00
Elian Doran
b1c8e625b2
fix(calendar_view): display hours in calendar view
2025-04-08 23:28:27 +03:00
Elian Doran
eea141225d
refactor(calendar): dedicated method for building event content
2025-04-08 22:48:57 +03:00
Elian Doran
0b0d212854
feat(docs): document recent changes
2025-04-08 21:53:31 +03:00
Elian Doran
5b34e8a327
feat(docs): document advanced options in context menu
2025-04-08 21:44:22 +03:00
Elian Doran
5eb8e478b7
feat(docs): document the note tree contextual menu
2025-04-08 20:06:55 +03:00
Elian Doran
584fa67074
fix(bulk_actions): clarify actions taken by "Update relation target"
2025-04-08 19:38:19 +03:00
Elian Doran
2b56c2acbe
feat(docs): document bulk actions
2025-04-08 19:35:13 +03:00
Elian Doran
8949f68b81
fix(server): duplicating note subtree escapes special characters
2025-04-08 18:09:02 +03:00
Jin
08ae71e70f
chore: 🤖 use simple-import-sort plugin
...
Use simple-import-sort plugin to enable auto-fix import sort
2025-04-08 14:09:37 +02:00
Jin
f346c40b7c
fix: 🐛 fix crash when no calendarRoot
2025-04-08 14:00:42 +02:00
Elian Doran
0eec8042ca
fix(new_tab): workspace switcher no longer displayed
...
Regression of 7f1eb9912708e915eb6048ddb1cd3cfd895d5543
2025-04-08 12:46:58 +03:00
Elian Doran
3a1f1ceedb
fix(export/markdown): double slashes breaking math expressions ( closes #1649 )
2025-04-08 12:06:46 +03:00
Elian Doran
d03ee26408
fix(editor): random crashes due to lacking null safety in syntax highlight
2025-04-08 09:06:27 +03:00
Elian Doran
8b7f16d49b
fix(editor): syntax highlighting not working in nested elements ( closes #1609 , closes #843 )
2025-04-07 23:51:56 +03:00
Elian Doran
7f1eb99127
fix(client): build error and simplify doRefresh in type widgets
2025-04-07 22:50:38 +03:00
Elian Doran
c74f51472e
fix(options): "Override theme fonts" not reflecting immediately
2025-04-07 22:34:47 +03:00
Elian Doran
d33162785e
fix(client): right-shift on non-standard themes ( closes #1646 )
2025-04-07 17:55:35 +03:00
Elian Doran
63458d55d3
fix(client): quick search popup not working in horizontal layout ( closes #1647 )
2025-04-07 17:36:29 +03:00
Elian Doran
6cc10a47d1
feat(docs): document the hidden tree
2025-04-07 13:29:22 +03:00
Elian Doran
5130089b34
feat(docs): clarify attribute prefixes
2025-04-07 12:35:52 +03:00
Elian Doran
ec5025d7fd
feat(docs): clarify attribute use cases
2025-04-07 12:30:37 +03:00
Elian Doran
190cff6f7e
feat(docs): improve description of labels and relations
2025-04-07 12:22:48 +03:00
Elian Doran
72f0bc32df
feat(docs): reorganize scripting notes and finalize attribute reference
2025-04-07 11:16:10 +03:00
Elian Doran
cdf9fa5b4a
feat(docs): attribute reference (wip)
2025-04-07 09:47:15 +03:00
Elian Doran
b7566ad979
feat(docs): hiding note list
2025-04-06 23:06:21 +03:00
Elian Doran
9fb04b256d
feat(docs): document supported syntax
2025-04-06 22:55:24 +03:00
Elian Doran
a4f59030e3
chore(docs): revert changes to meta
2025-04-06 21:59:06 +03:00
Elian Doran
aca27d1070
Merge remote-tracking branch 'origin/develop' into calendar
2025-04-06 21:55:56 +03:00
Panagiotis Papadopoulos
ba02070b7c
deps: upgrade @triliumnext/express-partial-content to 1.1.0
...
now we have full express 5 compatibility
2025-04-06 16:59:34 +02:00
Panagiotis Papadopoulos
ac270aecb6
deps: upgrade to express 5.1.0
...
our code is already compliant with v5, and is not affected by the breaking changes described here:
https://expressjs.com/en/guide/migrating-5.html
I ran their codemod command, and it did not find anything – so I also double-checked by manually checking for all of the described changed topics in the migration guide.
with this change npm will still print a warning, due to
`@triliumnext/express-partial-content@"1.0.1"`, which needs to be updated to v5 as well
2025-04-06 16:57:46 +02:00
Elian Doran
f58a90c648
feat(docs): sidebar, table of contents, highlights list
2025-04-06 17:13:21 +03:00
Elian Doran
15f62ba1c3
feat(docs): update day notes documentation
2025-04-06 16:47:36 +03:00
Elian Doran
cc391eb025
chore(docs): sync
2025-04-06 16:47:36 +03:00