Commit Graph

11 Commits (8b1071c4593b51cc656fed25dff8f0b256ab562c)

Author SHA1 Message Date
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 +07:00
Panagiotis Papadopoulos 759d24855b style(data_dir): fix indentation 2025-01-13 08:26:07 +07: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 +07: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 +07:00
Panagiotis Papadopoulos 8826021c63 refactor(data_dir): add createDirIfNotExisting function
removes some code duplication
2025-01-13 08:24:04 +07:00
Panagiotis Papadopoulos 61a19d5628 refactor(data_dir): add FOLDER_PERMISSION const
gets rid of previously "magic number"
2025-01-13 08:24:01 +07:00
Elian Doran 4cbb529fd4
chore(prettier): fix all files 2025-01-09 18:07:02 +07:00
Elian Doran 0ceae0a65e
server-esm: Change some more export object to export default object 2024-07-18 21:47:30 +07:00
Elian Doran 2750df04a3
server-esm: Change simple library import statements 2024-07-18 21:37:45 +07:00
Elian Doran 28735fa16a
server-ts: Fix build errors 2024-02-17 13:32:41 +07:00
Elian Doran 981221d599
server-ts: data_dir.js -> data_dir.ts 2024-02-17 13:32:40 +07:00