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
Panagiotis Papadopoulos
05b433d44e
test(import/utils): remove leftover unused type
2025-01-21 00:33:45 +01:00
Panagiotis Papadopoulos
2296d1a6ba
refactor(import/utils.handleH1): simplify handleH1
2025-01-21 00:25:46 +01:00
Panagiotis Papadopoulos
1de9bc7c6f
fix(import/utils.handleH1): fix stripping of all <h1> tags that match title
...
now it will only strip the very first tag that if it matches the title,
otherwise it gets turned into a h2 tag
fixes #1016
2025-01-21 00:04:05 +01:00
Panagiotis Papadopoulos
e1c949aa10
test(import/utils): add test for #handleH1/rework previous tests
2025-01-20 23:57:51 +01:00
Panagiotis Papadopoulos
ba91082115
test(import/utils): add test for extractHtmlTitle
2025-01-20 23:04:16 +01:00
Elian Doran
ef5b2d60f3
fix(geomap): multiple clicks creating multiple markers
2025-01-20 23:54:22 +02:00
Elian Doran
986a1c25be
feat(geomap): reload markers after adding a new note
2025-01-20 23:53:52 +02:00
Elian Doran
f76b454d5a
feat(geomap): load markers at startup
2025-01-20 23:27:32 +02:00
Elian Doran
a3f257f3c5
feat(geomap): set location after creating a note
2025-01-20 23:14:31 +02:00
Elian Doran
2582924046
feat(geomap): add prompt for creating child note
2025-01-20 22:50:36 +02:00
Panagiotis Papadopoulos
3206a7fe73
chore: move generate_documents to bin folder
...
this file is never called in production code and wouldn't even run, even if it was:
the `lorem-ipsum` dependency is in devDependencies, so never gets installed in
any dist builds
move the file to a place where it makes more sense and avoid it getting packaged
without any reason.
2025-01-20 21:46:25 +01:00
Elian Doran
f803b9f822
feat(geomap): add floating button section
2025-01-20 22:39:48 +02:00
Elian Doran
4d5e04fc5a
feat(geomap): save & restore zoom
2025-01-20 22:21:59 +02:00
Elian Doran
f66f437c8e
feat(geomap): restore view coordinates
2025-01-20 22:19:07 +02:00
Elian Doran
5cefd4f50a
feat(mindmap): save view center coordinates
2025-01-20 21:28:04 +02:00
Panagiotis Papadopoulos
8f09b6a192
fix: fix server build not running due to missing file
...
as discussed in #1010 – quick & dirty fix by copying over the file into the server side of things
Comment added to both files, about deduplication in the future
fixes #1010
2025-01-20 20:15:39 +01:00
Elian Doran
278870e06a
Merge pull request #1014 from TriliumNext/refactor_import-mime
...
refactor: refactor and add tests for `services/import/mime`
2025-01-20 20:53:39 +02:00
Elian Doran
2b8ee31be3
refactor(geomap): skip module loader for JS
2025-01-20 20:36:58 +02:00
Panagiotis Papadopoulos
ca8146413a
test(data_dir): fix flaky getPlatformAppDataDir test on Windows
...
Delete the provided process.env.APPDATA on Windows, so that we can use our own values (one of which is "undefined", which was causing the getPlatformAppDataDir to fallback to the "real" process.env.APPDATA
-> causing failing test, when run on Windows
2025-01-20 18:57:43 +01:00
Elian Doran
eca3955dc2
feat(geomap): add basic layer
2025-01-20 19:20:59 +02:00
Elian Doran
94a0403981
feat(geomap): load leaflet
2025-01-20 19:18:29 +02:00
Elian Doran
e1952fe6b8
feat(geomap): create geomap note type
2025-01-20 18:45:56 +02:00
Adorian Doran
8f612f4683
style(next): properly handle disabled check boxes and radio buttons
2025-01-20 17:09:01 +02:00
Panagiotis Papadopoulos
4be675c4e1
test(import/mime): add additional test case for getMime
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
4e59f58ce6
refactor(import/mime): simplify getMime
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
6a0edb68de
refactor(import/mime): simplify getType
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
91ae4b629e
refactor(import/mime): simplify normalizeMimeType
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
815929c376
refactor(import/mime): split CODE_MIME_TYPES Record into two separate objects
...
CODE_MIME_TYPES -> as a Set -> as we only care about the existance of those types
CODE_MIME_TYPES_OVERRIDE -> as a Map with those keys and the "overwrite" values as associated value
-> this way we don't have to unnecessarily store additional boolean values for everything *but* those hand ful of mime types
-> also I've sorted the items alphabetically, while I was at it
2025-01-20 08:36:11 +01:00
Panagiotis Papadopoulos
1405e22f89
test(import/mime): add tests
2025-01-20 08:36:11 +01:00
Elian Doran
7f15f8a7de
fix(mindmap): save direction as soon as it is changed ( closes #986 )
2025-01-19 23:48:30 +02:00
Elian Doran
b47dc13ff1
fix(mindmap): regression on new mindmap
2025-01-19 23:38:20 +02:00
Elian Doran
9820e8aa12
fix(mindmap): use dynamic import instead of static one
2025-01-19 23:34:57 +02:00
Elian Doran
fb0dda982f
fix(mindmap): restore direction
2025-01-19 23:30:07 +02:00
Elian Doran
55ce7aac10
Merge remote-tracking branch 'origin/develop' into test_simplify-data-dir
2025-01-19 23:13:56 +02:00
Panagiotis Papadopoulos
d56752e5a9
fix(utils/dynamicRequire): pass moduleName explicitly as string
...
fixes the Webpack warning:
"WARNING in ./src/public/app/services/utils.ts 249:15-34
Critical dependency: the request of a dependency is an expression"
as we now explicitly pass the moduleName as string and not "expression"
source:
https://stackoverflow.com/questions/42908116/
2025-01-19 12:57:27 +01:00
Panagiotis Papadopoulos
c9619e1a1b
chore(tests): fix type error in data_dir.spec
2025-01-18 20:45:01 +01:00
Panagiotis Papadopoulos
121e7b33ec
chore(tests): comment out "todo" code in attribute_parser.spec
...
we now have more stricter TS rules being applied to the spec files, so `tsc` fails with these now.
and since this is set to TODO, because of outdated code,
let's comment out, instead of using //@ts-expect-error
2025-01-18 20:32:40 +01:00
Panagiotis Papadopoulos
627b2faf0b
chore(tests): move remaining valid tests next to actual files
2025-01-18 20:20:30 +01:00
Panagiotis Papadopoulos
49246ee456
chore(tests): move tests next to actual file
2025-01-18 20:15:29 +01: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
Elian Doran
658317799d
feat(options_init): enable fixed editing toolbar by default for new users
2025-01-18 19:38:41 +02:00
Elian Doran
5899ba9a57
Revert "feat(options_init): enable horizontal layout by default for new users"
...
This reverts commit 637d1df0f597849d8c4bfc3ad53b6863bf665ba3.
2025-01-18 19:37:09 +02:00
Elian Doran
637d1df0f5
feat(options_init): enable horizontal layout by default for new users
2025-01-18 19:16:26 +02:00
Elian Doran
0a0707434e
feat(mobile): allow resetting launch bar config
2025-01-18 18:49:36 +02:00
Elian Doran
1369cd8b16
feat(client): implement move to available/visible launchers on mobile as well
2025-01-18 18:45:13 +02:00
Elian Doran
b367862fe8
fix(client): launch bar move commands not working ( fixes #989 )
2025-01-18 18:02:26 +02:00
Elian Doran
c7e688b6e6
chore(client/ts): port left_pane_container
2025-01-18 12:56:00 +02:00