All files configs.mjs

100% Statements 22/22
100% Branches 0/0
100% Functions 0/0
100% Lines 22/22

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58  2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x                                                           2x   2x 2x 2x 2x          
class config_rangement {
    log_level = 'info' // 'debug' | 'warn' |'info'
    version = '1.0.0'
    iso_date_format = 'yyyy-MM-DDTHH.mm.ss' // target format for dates in file names
    tagSeparator = ' '
    tagSectionSeparator = '--'
    keepFreeText = true
    keepTags = true
    replaceUnderscoreWithSpaces = true
    renameFolders = false
    enableTestsLocally = false
    reportStatistics = false
    base_archive_folder = '/home/poule/encrypted/stockage-syncable/'
    photos_sub_folder = this.base_archive_folder + 'photos/'
    photos_sorting_base_sub_folder = this.base_archive_folder + 'photos/a_dispatcher/'
    bazar_sub_folder = this.base_archive_folder + 'BAZAR/'
    panoramax_captures_folder = 'photos/imagerie kartaview carto tel/open camera/'
    templates = {
        // example FyB8cZnWIAc21rw.jpg
        'downloaded_pic': {
            'pattern': /^\-\w{15}\.jpg/,
            'auto_sort_folder': this.bazar_sub_folder
        },
        // example -4900281569878475578_1109.jpg
        'telegram_pic': {
            'pattern': /^\-\d{19}_\d{4}/,
            'auto_sort_folder': this.bazar_sub_folder
        },
        // example IMG_20230617_092120_3.jpg
        'open_camera_default': {
            'pattern': /^IMG_\d{8}/i,
            'auto_sort_folder': this.panoramax_captures_folder
        },
        // example IMG_OC_20230617_092120_3.jpg
        'open_camera_custom': {
            'pattern': /^IMG_OC_\d{8}/i,
            'auto_sort_folder': this.panoramax_captures_folder
        },
        // 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'
        },
    }
   ;
}
 
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