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:
- Axios instance with env-based
baseURL and HTTP Basic Auth credentials
- Mounts Axios as
Vue.prototype.$http (available as this.$http in all components)
- Router navigation guard for
noindex meta tag injection
- 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.