Commit Graph

10101 Commits

Author SHA1 Message Date
Elian Doran c8c501d717 Merge branch 'develop' into refactor_replace-csurf 2025-01-14 20:32:52 +02:00
Elian Doran 7dabe33eb2 chore(git): mark root package-lock as auto-generated 2025-01-14 20:32:30 +02:00
Elian Doran eb1af98830 Merge pull request #880 from pano9000/refactor_data_dir
refactor(data_dir): simplify logic and make code robust and testable
2025-01-14 20:20:32 +02:00
Elian Doran 3c0e4b842a Merge pull request #941 from process/ck-logging
Add server logging for CKEditor state changes
2025-01-14 20:18:06 +02:00
Elian Doran 73053a8728 Merge pull request #928 from TriliumNext/renovate/mind-elixir-4.x
fix(deps): update dependency mind-elixir to v4.3.6
2025-01-14 20:15:24 +02:00
Elian Doran f478985761 chore(ci): define relations between dev jobs 2025-01-14 20:09:16 +02:00
Elian Doran 0221039ebe fix(client/ts): fix build errors & define command to event bridge 2025-01-14 20:08:57 +02:00
Elian Doran ef28445de6 Merge pull request #935 from pano9000/fix_deps-update-deprecated-electron
fix(deps): update deprecated electron packages
2025-01-14 19:23:44 +02:00
Elian Doran acf34addf4 Merge pull request #937 from TriliumNext/renovate/node-22.x
chore(deps): update dependency @types/node to v22.10.6
2025-01-14 19:22:57 +02:00
Elian Doran cf2535cb92 Merge branch 'develop' into renovate/mind-elixir-4.x 2025-01-14 19:22:34 +02:00
Elian Doran 73719407ba Merge pull request #929 from TriliumNext/renovate/ts-loader-9.x
fix(deps): update dependency ts-loader to v9.5.2
2025-01-14 19:22:18 +02:00
Elian Doran 331b2252f2 chore(e2e): rename incorrect test suite 2025-01-14 19:19:46 +02:00
Elian Doran 580bebb4a3 chore(client/ts): port mind_map 2025-01-14 19:18:44 +02:00
Elian Doran e16f4a1a71 chore(client/ts): port type_widget 2025-01-14 19:12:29 +02:00
Elian Doran 353156e625 fix(mindmap): not working due to dependency change 2025-01-14 18:47:42 +02:00
Elian Doran 62fbf3ffd0 Merge branch 'develop' into renovate/mind-elixir-4.x 2025-01-14 12:38:34 +02:00
Elian Doran 2dfac783ce fix(ci): conflict in name of playwright report artifact 2025-01-14 11:55:04 +02:00
Justin Chines b173429dc5 Add more logging of CKEditor crashes 2025-01-14 15:39:04 +07:00
Justin Chines 7768511fe6 Add server logging for CKEditor state changes 2025-01-14 15:38:13 +07:00
Panagiotis Papadopoulos 26bd26b207 fix(deps): remove explicit @electron/rebuild from devDep
it is not directly used by us anymore, however since
`@electron-forge` depends on it, it still gets installed :-)
2025-01-14 08:14:16 +01:00
Panagiotis Papadopoulos ec65f3a9e4 fix(deps): electron-rebuild => @electron/rebuild 2025-01-14 08:14:16 +01:00
Panagiotis Papadopoulos 45fd6cba49 fix(deps): electron-packager => @electron/packager
major version update, because v17 was not released under
@electron/packager.
breaking changes mentioned below, but we are not affected
as far as I can tell.

https://github.com/electron/packager/releases/tag/v18.0.0
2025-01-14 08:14:16 +01:00
renovate[bot] 42ce80813d chore(deps): update dependency @types/node to v22.10.6 2025-01-14 01:26:14 +00:00
Elian Doran 1807b2b031 chore(types): missing import type for JS imports 2025-01-13 23:18:10 +02:00
Elian Doran 2fa5955bd5 fix(e2e): port for docker 2025-01-13 21:48:30 +02:00
Elian Doran 6c886fe3b9 chore(e2e): order around docker test 2025-01-13 21:21:18 +02:00
Elian Doran 093f9d60f0 fix(e2e): flaky test due to timeout 2025-01-13 17:46:57 +02:00
Elian Doran b69cad2298 fix(e2e): leaks if language fails 2025-01-13 17:42:21 +02:00
Elian Doran 89d700d5ed chore(e2e): use different mechanism for closing all tabs 2025-01-13 17:21:50 +02:00
Elian Doran d24227d718 Merge pull request #933 from pano9000/chore_npx-playwright-script
chore(scripts): add `test-playwright` script to package.json
2025-01-13 11:10:48 +02:00
Panagiotis Papadopoulos b2e83caf4a chore(scripts): add test-playwright script to package.json 2025-01-13 09:11:14 +01:00
Elian Doran b30164ef66 chore(e2e): add missing await to expect 2025-01-13 10:00:13 +02:00
Panagiotis Papadopoulos 5373ef509b chore(prettier): fix code style 2025-01-13 08:28:12 +01:00
Panagiotis Papadopoulos 6818b2d54c style: move "important" funcs to top of file 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos c47522eb50 refactor(data_dir): pass DIR_NAME as argument to getTriliumDir
makes it a bit cleaner and easier to test in the future,
as it is one thing less that'd need mocking :-)
2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos e021c0cd0e test(data_dir): add tests for getDataDirs 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos 63079c0939 test(data_dir): add tests for getPlatformAppDataDir 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos 94b8bcf8c9 refactor(data_dir): export functions to allow for testing 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos 8b1071c459 refactor(data_dir): export dirs as frozen readonly object
previously exported object allowed the values to be changed
accidentally at runtime and buildtime
2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos 759d24855b style(data_dir): fix indentation 2025-01-13 08:26:07 +01:00
Panagiotis Papadopoulos 7a1e8714af refactor(data_dir): logically order/split cases in getTriliumDataDir
- the blocks now clearly follow the intended logic described in the comments
- I renamed the `getAppDataDir` to more specific `getPlatformAppDataDir`
2025-01-13 08:25:53 +01:00
Panagiotis Papadopoulos 3481c8ba84 refactor(data_dir): use path.join for safer joins
https://nodejs.org/api/path.html#pathjoinpaths
2025-01-13 08:24:04 +01:00
Panagiotis Papadopoulos 8826021c63 refactor(data_dir): add createDirIfNotExisting function
removes some code duplication
2025-01-13 08:24:04 +01:00
Panagiotis Papadopoulos 61a19d5628 refactor(data_dir): add FOLDER_PERMISSION const
gets rid of previously "magic number"
2025-01-13 08:24:01 +01:00
Elian Doran fbfee818b2 fix(ci): directory for e2e tests 2025-01-13 09:11:11 +02:00
Elian Doran ffacc1f5f7 chore(e2e): disable reuse of server on CI 2025-01-13 00:08:56 +02:00
Elian Doran e556137a25 feat(ci): run playwright for docker builds 2025-01-13 00:08:43 +02:00
Elian Doran 9fd8e4d030 fix(e2e): language change breaking other tests 2025-01-12 23:41:27 +02:00
Elian Doran 9b85a101a6 feat(e2e): test note settings 2025-01-12 19:43:29 +02:00
Elian Doran 8dbb5497f1 feat(e2e): test mind map display 2025-01-12 19:34:35 +02:00