mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
* Use iconmoon * Adds icons * Use go to update BASE * Changes more icons * Uses html inline * Reverts css changes * Fixes icons * Fixes tests and icons * Adds --rm to int tests * Fixes unit tests
46 lines
825 B
JavaScript
46 lines
825 B
JavaScript
import Vue from "vue";
|
|
import VueRouter from "vue-router";
|
|
import Meta from "vue-meta";
|
|
import { Dropdown, Switch } from "buefy";
|
|
import store from "./store";
|
|
import App from "./App.vue";
|
|
import Container from "./pages/Container.vue";
|
|
import Settings from "./pages/Settings.vue";
|
|
import Index from "./pages/Index.vue";
|
|
|
|
Vue.use(VueRouter);
|
|
Vue.use(Meta);
|
|
Vue.use(Dropdown);
|
|
Vue.use(Switch);
|
|
|
|
const routes = [
|
|
{
|
|
path: "/",
|
|
component: Index,
|
|
name: "default",
|
|
},
|
|
{
|
|
path: "/container/:id",
|
|
component: Container,
|
|
name: "container",
|
|
props: true,
|
|
},
|
|
{
|
|
path: "/settings",
|
|
component: Settings,
|
|
name: "settings",
|
|
},
|
|
];
|
|
|
|
const router = new VueRouter({
|
|
mode: "history",
|
|
base: BASE_PATH + "/",
|
|
routes,
|
|
});
|
|
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: (h) => h(App),
|
|
}).$mount("#app");
|