Skip to main content

Directory layout

Configuration files

vue.config.js

.eslintrc.js

  • Extends plugin:vue/essential + eslint:recommended
  • Parser: babel-eslint
  • Production: console and debugger forbidden
  • Development: console and debugger allowed

babel.config.js

Uses @vue/app preset (Vue CLI’s Babel preset with core-js polyfills).

postcss.config.js

Autoprefixer plugin only.

.browserslistrc

Entry point — main.js

File: src/main.js Sets up:
  1. Axios instance with env-based baseURL and HTTP Basic Auth credentials
  2. Mounts Axios as Vue.prototype.$http (available as this.$http in all components)
  3. Router navigation guard for noindex meta tag injection
  4. Creates Vue app with router

Root component — App.vue

Conditionally renders Header, Footer, and DiscountCode based on route metadata:
Routes with showHF: true get the marketing site chrome. Routes like /register, /s/:id, and /booking/:id render without it.

Environment variables

All prefixed with VUE_APP_ (Vue CLI requirement):
The HTTP Basic Auth credentials (janedoe / IfPeopleAreTalkingBehindYourBackJustFart) are the same across all environments and are committed to the .env files in the repo. Confirm with team if these are still in use or vestigial.