2019-10-10 21:58:00 +03:00
|
|
|
import "./style/app.pcss";
|
|
|
|
|
|
|
|
import Vue from "vue";
|
|
|
|
|
2023-06-24 09:21:06 +00:00
|
|
|
import VueHighlightJS from "@highlightjs/vue-plugin";
|
|
|
|
import hljs from "highlight.js/lib/core";
|
2019-10-10 21:58:00 +03:00
|
|
|
import hljsYaml from "highlight.js/lib/languages/yaml.js";
|
2023-06-24 09:21:06 +00:00
|
|
|
import "highlight.js/styles/base16/ocean.css";
|
2019-10-10 21:58:00 +03:00
|
|
|
|
|
|
|
import { router } from "./routes";
|
2023-04-01 12:58:17 +01:00
|
|
|
import { RootStore } from "./store";
|
2019-10-10 21:58:00 +03:00
|
|
|
|
|
|
|
import "./directives/trim-indents";
|
|
|
|
|
|
|
|
import App from "./components/App.vue";
|
|
|
|
|
|
|
|
// 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,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
hljs.registerLanguage("yaml", hljsYaml);
|
|
|
|
Vue.use(VueHighlightJS, { hljs });
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
router,
|
|
|
|
store: RootStore,
|
|
|
|
el: "#app",
|
|
|
|
render(h) {
|
|
|
|
return h(App);
|
|
|
|
},
|
|
|
|
});
|