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
							
						 
					 | 
					
						
						
						
						
							
						
						
							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
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							4cbb529fd4
							
						
					 | 
					
						
						
							
							chore(prettier): fix all files
						
						
						
						
						
						
					 | 
					
						2025-01-09 18:07:02 +02:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Elian Doran
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							0ceae0a65e
							
						
					 | 
					
						
						
							
							server-esm: Change some more export object to export default object
						
						
						
						
						
						
					 | 
					
						2024-07-18 21:47:30 +03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Elian Doran
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							2750df04a3
							
						
					 | 
					
						
						
							
							server-esm: Change simple library import statements
						
						
						
						
						
						
					 | 
					
						2024-07-18 21:37:45 +03:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Elian Doran
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							28735fa16a
							
						
					 | 
					
						
						
							
							server-ts: Fix build errors
						
						
						
						
						
						
					 | 
					
						2024-02-17 13:32:41 +02:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Elian Doran
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							981221d599
							
						
					 | 
					
						
						
							
							server-ts: data_dir.js -> data_dir.ts
						
						
						
						
						
						
					 | 
					
						2024-02-17 13:32:40 +02:00 | 
					
					
						
						
							
							
							
						
					 |