mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-10 20:08:47 -06:00
31 lines
831 B
JavaScript
31 lines
831 B
JavaScript
import '@/scss/main.scss';
|
|
import Vue from "vue";
|
|
import {BootstrapVue, BootstrapVueIcons} from "bootstrap-vue";
|
|
import InstantSearch from "vue-instantsearch";
|
|
import VueClipboard from 'vue-clipboard2'
|
|
import VueScrollTo from "vue-scrollto";
|
|
import App from "./App.vue";
|
|
import router from "./router";
|
|
import store from "./store";
|
|
|
|
Vue.use(VueScrollTo);
|
|
Vue.use(BootstrapVue);
|
|
Vue.use(BootstrapVueIcons);
|
|
Vue.use(InstantSearch);
|
|
Vue.use(VueClipboard)
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
// Prevent invalid episodes, seasons and characters from being accessed
|
|
router.beforeEach((to, from, next) => {
|
|
// eslint-disable-next-line no-constant-condition
|
|
if (from.name !== null && to.name === "Character" && false) next(false);
|
|
else next();
|
|
});
|
|
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: (h) => h(App),
|
|
}).$mount("#app");
|