Commit Graph

26 Commits

Author SHA1 Message Date
schroda
18ddf46f17 Save appearance settings on server
- app theme
- theme mode
- pure black mode
- manga grid item width
2025-05-17 21:31:24 +02:00
schroda
afdaf1f429 Move chapter types and constants to corresponding files 2025-05-05 01:54:44 +02:00
schroda
4a9f90b746 Introduce "sources" util class 2025-04-21 17:02:51 +02:00
schroda
6ebf13d328 Properly log errors 2025-03-03 23:59:58 +01:00
schroda
abc3908b1e Only commit metadata changes of applied migrations
One of the errors that were caused by this was that everytime a new migration was applied, keys of previous migrations got deleted
2025-01-11 16:00:16 +01:00
schroda
6c8df33a13 Delete outdated metadata after committing updated ones
In case the outdated metadata get successfully deleted and the updated metadata fail to commit, metadata gets lost, due to not being able to apply the migrations again since the outdated metadata have already been deleted
2025-01-11 03:24:15 +01:00
schroda
338fb96de3 Prevent possible TypeError 2025-01-11 03:14:41 +01:00
schroda
07aeb53fa1 Commit metadata value migrations 2025-01-11 03:12:48 +01:00
schroda
feebd93555 Properly delete metadata during key deletion migration 2025-01-06 12:39:39 +01:00
schroda
6e0d1cfd3d Simplify metadata app key prefix migration 2025-01-06 12:23:41 +01:00
schroda
3d7a4146e4 Handle metadata key deletion early exit
In case no keys had to be deleted it always returned an empty object which broke the whole metadata migration and resulted in the final metadata to always fall back to the default values
2025-01-06 01:58:49 +01:00
schroda
9f42b75eee Prevent applying already applied metadata migrations again
The "appliedMigrationId" was converted to it's index of the "METADATA_MIGRATIONS" and then was compared to the "migration id" which starts at 1 instead of 0
2025-01-06 01:45:46 +01:00
schroda
724319b6c5 Only commit metadata migration changes of newly applied migration
Changes got commited everytime regardless off if the migration had already been applied
2025-01-06 01:42:42 +01:00
schroda
05ce572c67 Add logic to delete metadata on migration 2025-01-05 15:29:56 +01:00
schroda
bb473276a7 Handle multiple prefixes in metadata key migration
Was never updated after the change that made it possible that metadata can have multiple prefixes (e.g. device names)
2025-01-05 15:29:55 +01:00
schroda
ab2b1b2218 Handle multiple prefixes in metadata value migration
Was never updated after the change that made it possible that metadata can have multiple prefixes (e.g. device names)
2025-01-05 15:29:54 +01:00
schroda
d657ad3999 Commit new metadata after migration 2025-01-05 15:29:51 +01:00
schroda
258b26f837 Remove unnecessary function exports 2025-01-05 14:54:20 +01:00
schroda
65da9db123 Correctly read last applied migration id from metadata 2025-01-05 14:53:52 +01:00
schroda
a51d81d267 Extract "MetadataReader" functions 2025-01-04 21:28:26 +01:00
schroda
b7971f5183 Move "getAppMetadataFrom" to "MetadataMigrations" 2025-01-04 21:27:51 +01:00
schroda
d748f630a9 Support dynamic new value creation for metadata value migration 2024-12-11 00:17:36 +01:00
schroda
45bedfaddb Support regex in metadata value migration 2024-12-11 00:17:35 +01:00
schroda
0ae9d9ebb2 Custom reader profiles 2024-12-09 02:38:37 +01:00
schroda
e71c4b7ef1 Cleanup deprecated metadata after migration
- delete deprecated metadata
- save applied migration id per metadata holder
2024-11-04 00:11:01 +01:00
schroda
babda1ea57 Move metadata files into new folder 2024-10-06 00:16:34 +02:00