2023-07-01 12:35:33 +02:00
|
|
|
|
2023-07-04 15:26:27 +02:00
|
|
|
class config_rangement{
|
|
|
|
log_level ='debug' // 'debug' | 'warn' |'info'
|
2023-07-01 13:20:11 +02:00
|
|
|
version = '1.0.0'
|
|
|
|
tagSeparator = '1.0.0'
|
|
|
|
tagSectionSeparator = '1.0.0'
|
2023-07-04 15:26:27 +02:00
|
|
|
keepFreeText= true
|
|
|
|
keepTags= true
|
2023-07-01 13:20:11 +02:00
|
|
|
enableTestsLocally= false
|
|
|
|
reportStatistics= false
|
|
|
|
base_archive_folder= '/home/poule/encrypted/stockage-syncable/'
|
|
|
|
photos_sub_folder= 'photos'
|
|
|
|
photos_sorting_base_sub_folder= 'photos/a_dispatcher'
|
|
|
|
bazar_sub_folder= 'BAZAR'
|
|
|
|
panoramax_captures_folder= 'photos/imagerie kartaview carto tel/open camera'
|
|
|
|
templates = {
|
2023-07-01 13:14:01 +02:00
|
|
|
// example FyB8cZnWIAc21rw.jpg
|
|
|
|
'downloaded_pic': {
|
|
|
|
'pattern' : /^\-\w{15}\.jpg/,
|
2023-07-01 13:20:11 +02:00
|
|
|
'auto_sort_folder' : this.bazar_sub_folder
|
2023-07-01 13:14:01 +02:00
|
|
|
},
|
|
|
|
// example -4900281569878475578_1109.jpg
|
|
|
|
'telegram_pic': {
|
|
|
|
'pattern' : /^\-\d{19}_\d{4}/,
|
|
|
|
'auto_sort_folder' : ''
|
|
|
|
},
|
|
|
|
// example IMG_20230617_092120_3.jpg
|
|
|
|
'open_camera_default': {
|
|
|
|
'pattern' : /^IMG_\d{8}/i,
|
2023-07-01 13:20:11 +02:00
|
|
|
'auto_sort_folder' : this.panoramax_captures_folder
|
2023-07-01 13:14:01 +02:00
|
|
|
},
|
|
|
|
// example IMG_OC_20230617_092120_3.jpg
|
|
|
|
'open_camera_custom': {
|
|
|
|
'pattern' : /^IMG_OC_\d{8}/i,
|
2023-07-01 13:20:11 +02:00
|
|
|
'auto_sort_folder' : this.panoramax_captures_folder
|
2023-07-01 13:14:01 +02:00
|
|
|
},
|
|
|
|
// example "Screenshot 2023-06-15 at 15-26-04 Instance Panoramax OSM-FR.png"
|
|
|
|
'screenshot': {
|
|
|
|
'pattern' : /^Screenshot/i,
|
|
|
|
'auto_sort_folder': 'photos/captures écran screenshots'
|
|
|
|
} ,
|
|
|
|
}
|
|
|
|
}
|
2023-07-04 15:26:27 +02:00
|
|
|
const rangement_instance = new config_rangement();
|
|
|
|
|
|
|
|
export const tagSeparator = rangement_instance.tagSeparator
|
|
|
|
export const tagSectionSeparator = rangement_instance.tagSectionSeparator
|
|
|
|
export const enableTestsLocally = rangement_instance.enableTestsLocally
|
|
|
|
export const reportStatistics = rangement_instance.reportStatistics
|
|
|
|
|
|
|
|
|
|
|
|
export default rangement_instance
|
|
|
|
|