2019-10-10 21:58:00 +03:00
|
|
|
import "./style/app.pcss";
|
|
|
|
|
2025-03-12 15:56:04 +00:00
|
|
|
import { createApp } from "vue";
|
2019-10-10 21:58:00 +03:00
|
|
|
|
2025-03-12 15:56:04 +00:00
|
|
|
import VueHighlightJS from "vue3-highlightjs";
|
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";
|
2025-03-12 15:56:04 +00:00
|
|
|
import { trimIndents } from "./directives/trim-indents";
|
|
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
app.use(router);
|
|
|
|
app.use(RootStore);
|
2019-10-10 21:58:00 +03:00
|
|
|
|
|
|
|
// Set up a read-only global variable to access specific env vars
|
2025-03-12 15:56:04 +00:00
|
|
|
app.mixin({
|
2019-10-10 21:58:00 +03:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
get env() {
|
|
|
|
return Object.freeze({
|
|
|
|
API_URL: process.env.API_URL,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2025-03-12 15:56:04 +00:00
|
|
|
app.use(VueHighlightJS);
|
2019-10-10 21:58:00 +03:00
|
|
|
|
2025-03-12 15:56:04 +00:00
|
|
|
app.directive("trim-indents", trimIndents);
|
|
|
|
|
|
|
|
app.mount("#app");
|