<commit_before>/*
Config the app's front-end
Make sure the containers and components are in alphabetic / logic order
*/

//TODO: read HOST from a get request or send it by cookie 
const HOST = window.location.origin // enable this for deploy 
  // const HOST = 'http://localhost:4000' // enable this for react dev
const isTranslationMode = true // need to turn logger off for translation

// reusable configs 
const defaults = {
  logo: 'https://s3-us-west-1.amazonaws.com/trippian/logo-trans-white.png',
  jumbotronBackground: 'http://media-cdn.tripadvisor.com/media/photo-s/06/04/b0/fb/how-about-a-trip-to-paradise.jpg',
  circleImageBackground: 'https://pixabay.com/static/uploads/photo/2014/06/01/18/33/cat-359915_960_720.jpg',
  link: 'http://www.trippian.com',
  imageAlt: 'trippian image',
  noContentMessage: 'There is no content',
  form: {
    buttons: {
      submit: 'Submit Now',
      reset: 'Clear Values',
      load: 'Load Dummy Data'
    },
    destination: {
      labels: {
        name: 'Destiantion',
        description: 'Description',
        whyVisit: 'Why Visit',
        feature: 'Feature Image',
        featureNote: 'If this is empty, the first uploaded photo will be used as feature'
      }
    },
    trippian: {
      labels: {
        name: 'Name',
        location: 'Location',
        mobile: 'Mobile',
        slogan: 'Slogan',
        website: 'Website',
        bio: 'Bio',
        introduction: 'Introduction'
      }
    },
    inquiry: {
      labels: {
        personCount: 'Number of People',
        startDate: 'Start Date',
        endDate: 'End Date',
        email: 'Email',
        mobile: 'Mobile',
        subject: 'Subject',
        content: 'Content'
      }
    },
    trip: {
      labels: {
        destination: 'Destination',
        title: 'Title',
        summary: 'Summary',
        details: 'Details',
        feature: 'Feature',
        album: 'Album'
      }
    },
    review: {
      labels: {
        rating: 'Rating',
        title: 'Title',
        content: 'Content'
      }
    },
    user: {
      labels: {
        name: '<NAME>',
        email: 'Email',
        password: 'Password'
      }
    }

  },
  map: {
    initialZoom: 6,
    initalLat: 37.761260,
    initalLng: -122.415903,
    markerTitle: 'Trippian.com',
    shouldLoadInitialMap: false
  }
}

// main config file 
export default {
  defaults: defaults,
  appName: '',
  appDescription: 'your local travel companion',
  logo: defaults.logo,
  log: {
    logLevel: 'error', // options: trace, debug, info, warn, error, fatal
    isTranslationMode: isTranslationMode
  },
  API_HOST: `${HOST}/api/`,
  Server_HOST: `${HOST}`,
  admin: {
    defaultTrippianIDForInquiry: 471
  },<commit_msg>refactor: add env variable to turn on/off dev mode<commit_after>/*
Config the app's front-end
Make sure the containers and components are in alphabetic / logic order
*/

// const env= '' // comment this out for development
const env = 'develop' // comment this out for deployment


let HOST = window.location.origin // enable this for deploy 
let isTranslationMode = true // need to turn logger off for translation
let logOn = false

const setVariablesByEnv = () => {
  if (env === 'develop') {
    console.log('hello')
    HOST = 'http://localhost:4000'
    logOn = true
    isTranslationMode = true
  }
}
setVariablesByEnv()

// reusable configs 
const defaults = {
  logo: 'https://s3-us-west-1.amazonaws.com/trippian/logo-trans-white.png',
  jumbotronBackground: 'http://media-cdn.tripadvisor.com/media/photo-s/06/04/b0/fb/how-about-a-trip-to-paradise.jpg',
  circleImageBackground: 'https://pixabay.com/static/uploads/photo/2014/06/01/18/33/cat-359915_960_720.jpg',
  link: 'http://www.trippian.com',
  imageAlt: 'trippian image',
  noContentMessage: 'There is no content',
  form: {
    buttons: {
      submit: 'Submit Now',
      reset: 'Clear Values',
      load: 'Load Dummy Data'
    },
    destination: {
      labels: {
        name: 'Destiantion',
        description: 'Description',
        whyVisit: 'Why Visit',
        feature: 'Feature Image',
        featureNote: 'If this is empty, the first uploaded photo will be used as feature'
      }
    },
    trippian: {
      labels: {
        name: 'Name',
        location: 'Location',
        mobile: 'Mobile',
        slogan: 'Slogan',
        website: 'Website',
        bio: 'Bio',
        introduction: 'Introduction'
      }
    },
    inquiry: {
      labels: {
        personCount: 'Number of People',
        startDate: 'Start Date',
        endDate: 'End Date',
        email: 'Email',
        mobile: 'Mobile',
        subject: 'Subject',
        content: 'Content'
      }
    },
    trip: {
      labels: {
        destination: 'Destination',
        title: 'Title',
        summary: 'Summary',
        details: 'Details',
        feature: 'Feature',
        album: 'Album'
      }
    },
    review: {
      labels: {
        rating: 'Rating',
        title: 'Title',
        content: 'Content'
      }
    },
    user: {
      labels: {
        name: '<NAME>',
        email: 'Email',
        password: 'Password'
      }
    }

  },
  map: {
    initialZoom: 6,
    initalLat: 37.761260,
    initalLng: -122.415903,
    markerTitle: 'Trippian.com',
    shouldLoadInitialMap: false
  }
}

// main config file 
export default {
  defaults: defaults,
  appName: '',
  appDescription: 'your local travel companion',
  logo: defaults.logo,
  log: {
    logLevel: 'error', // options: trace, debug, info, warn, error, fatal
    isTranslationMode: isTranslationMode,
    logOn: logOn
  },
  API_HOST: `${HOST}/api/`,
  Server_HOST: `${HOST}`,
  admin: {
    defaultTrippianIDForInquiry: 471
  },
{'fraction_non_alphanumeric': 0.1350307287093942, 'fraction_numerical': 0.019666374012291484, 'mean_word_length': 2.3154831199068684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4203621', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1797, 'n_words': 465}