Elian Doran
d8964aee28
Revert "deps: manual upgrade to express 5.1.0"
2025-04-11 16:51:42 +03:00
Jin
7f381cb733
fix: 🐛 fix sender.ts build error
2025-04-10 20:59:18 +02:00
Jin
6322f8473c
fix: 🐛 fix clipper build error
2025-04-10 20:58:04 +02:00
Elian Doran
32a6aed93b
Merge remote-tracking branch 'origin/develop' into calendar
2025-04-10 21:25:58 +03:00
Elian Doran
9cfc08389c
Merge pull request #1626 from TriliumNext/deps_express5
...
deps: manual upgrade to express 5.1.0
2025-04-10 21:14:10 +03:00
Elian Doran
c422c3e5b9
fix(mobile): detection when authentication is disabled ( closes #1660 )
2025-04-10 10:35:24 +03: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
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
Jin
6a0207dc45
fix: 🐛 fix async errors
2025-04-04 13:46:39 +02:00
Jin
bf70b949a6
Merge branch 'develop' into calendar
2025-04-02 23:28:15 +02:00
Panagiotis Papadopoulos
3f0dbb9063
chore: fix typo in verifyRecoveryCode function name
2025-04-02 21:41:48 +02:00
Jin
396c32bb7d
Merge branch 'develop' into calendar
2025-04-02 12:23:19 +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
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
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
Jin
50009bfb6e
feat: 🎸 add frontend api support
2025-04-01 19:13:09 +02:00
Jin
1313003bdb
feat: 🎸 add create week note func
2025-04-01 16:57:52 +02:00
Jin
c43cca6c22
feat: 🎸 add and fix week note api services
2025-04-01 16:25:03 +02:00
SiriusXT
adcb803caa
To prevent search lag when there are a large number of notes
2025-04-01 21:07:15 +08:00
Jin
674e5976ef
refactor: 💡 rename getWeekNote to getWeekFirstDayNote
2025-04-01 14:46:35 +02:00
SiriusXT
a7799d32b0
To prevent search lag when there are a large number of notes
2025-04-01 18:47:07 +08:00
Jin
ae7aaaf263
fix: 🐛 fix calendar option error
2025-03-31 21:40:33 +02: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
a9193fdcd4
feat(autocomplete): display note icon
2025-03-29 22:04:34 +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
Elian Doran
df6c6647c7
chore(deps): remove leaflet from dist
2025-03-28 22:40:19 +02: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
aaecb43f8a
fix: 🐛 fix oauth logout error
2025-03-28 04:05:00 +01:00
Jin
5742d3068e
feat: 🎸 move totp services to encryption logic
2025-03-28 02:15:25 +01:00
Jin
d92fa82ad0
feat: 🎸 set option status
2025-03-28 01:00:58 +01:00
Jin
d010e6cc73
Merge branch 'develop' into feature/MFA
2025-03-26 03:56:53 +01:00
Jin
ce053323a9
feat: 🎸 Format code
2025-03-26 03:53:00 +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
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