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
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
Panagiotis Papadopoulos
0c8df7f885
refactor(error_handlers): use newly added ForbiddenError class
2025-03-07 23:30:12 +01: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
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
Panagiotis Papadopoulos
dfb8982a99
chore(lint): improve type and get rid of "any"
2025-03-06 22:44:54 +01:00
Panagiotis Papadopoulos
0f0e55deb2
chore(lint): fix lint issues in src/routes
2025-03-05 18:09:44 +01: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
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