2019-06-23 19:18:41 +03:00
|
|
|
import "./style/base.scss";
|
2019-07-29 18:55:32 +02:00
|
|
|
import "buefy/dist/buefy.css";
|
2019-06-23 19:18:41 +03:00
|
|
|
|
2019-06-22 18:52:24 +03:00
|
|
|
import Vue from "vue";
|
2019-07-29 18:55:32 +02:00
|
|
|
import Buefy from "buefy";
|
2019-06-22 18:52:24 +03:00
|
|
|
import { RootStore } from "./store";
|
|
|
|
import { router } from "./routes";
|
|
|
|
|
|
|
|
// Set up a read-only global variable to access specific env vars
|
|
|
|
Vue.mixin({
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
get env() {
|
|
|
|
return Object.freeze({
|
|
|
|
API_URL: process.env.API_URL,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
import App from "./components/App.vue";
|
|
|
|
|
2019-07-29 18:55:32 +02:00
|
|
|
Vue.use(Buefy);
|
2019-06-22 18:52:24 +03:00
|
|
|
const app = new Vue({
|
|
|
|
router,
|
|
|
|
store: RootStore,
|
|
|
|
el: "#app",
|
|
|
|
render(h) {
|
|
|
|
return h(App);
|
|
|
|
},
|
|
|
|
});
|