mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-31 01:57:21 +01:00
* WIP vue3 * WIP vue3 * WIP vue3 * Migrates to vitejs * Fixes js tests and removes not needed modules * Fixes unmount * Updates to use css instead for space * Fixes tests and rebases one more time * Uses orgua * Fixes migrations bugs with oruga and fixes scroll * Fixes v-deep * Fixes icons to prod * Fixes icons to prod * Adds favicon back * Transitions some to composition api * Updates another component to comp api * Cleans defineProps * Updates log messages * Moves more to compose api * Cleans up styles and rewrites event source * Tries to fix DOMPurify * Removes postcss * WIP typescript * Improves importing * Converts all to ts * Converts main to ts * Makes changes for tsconfig * Moves more to ts * Adds typing to store * More typing * Updates to ts * Updates the rest to ts * Fixes computes * Fixes unmount * Adds cypress with custom base fixed * Fixes jest tests * Fixes golang tests * Adds gitignore for cypress * Removes int in favor of e2e with cypress * Tries to fix int tests again * Adds title * Updates e2e tests * Uses vue for isMobile * Removes app spec * Cleans up docker * Adds drop down for settings * Fixes bug with restart * Fixes scroll up bug * Adds tests for light mode
68 lines
1.4 KiB
TypeScript
68 lines
1.4 KiB
TypeScript
import "./styles.scss";
|
|
import { createApp } from "vue";
|
|
import { createRouter, createWebHistory } from "vue-router";
|
|
import { Autocomplete, Button, Dropdown, Switch, Radio, Field, Tooltip, Modal, Config } from "@oruga-ui/oruga-next";
|
|
import { bulmaConfig } from "@oruga-ui/theme-bulma";
|
|
import store from "./store";
|
|
import config from "./store/config";
|
|
import App from "./App.vue";
|
|
import { Container, Settings, Index, Show, ContainerNotFound, PageNotFound, Login } from "./pages";
|
|
|
|
const routes = [
|
|
{
|
|
path: "/",
|
|
component: Index,
|
|
name: "default",
|
|
},
|
|
{
|
|
path: "/container/:id",
|
|
component: Container,
|
|
name: "container",
|
|
props: true,
|
|
},
|
|
{
|
|
path: "/container/*",
|
|
component: ContainerNotFound,
|
|
name: "container-not-found",
|
|
},
|
|
{
|
|
path: "/settings",
|
|
component: Settings,
|
|
name: "settings",
|
|
},
|
|
{
|
|
path: "/show",
|
|
component: Show,
|
|
name: "show",
|
|
},
|
|
{
|
|
path: "/login",
|
|
component: Login,
|
|
name: "login",
|
|
},
|
|
{
|
|
path: "/*",
|
|
component: PageNotFound,
|
|
name: "page-not-found",
|
|
},
|
|
];
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(`${config.base}/`),
|
|
routes,
|
|
});
|
|
|
|
createApp(App)
|
|
.use(router)
|
|
.use(store)
|
|
.use(Autocomplete)
|
|
.use(Button)
|
|
.use(Dropdown)
|
|
.use(Switch)
|
|
.use(Tooltip)
|
|
.use(Modal)
|
|
.use(Radio)
|
|
.use(Field)
|
|
.use(Config, bulmaConfig)
|
|
.mount("#app");
|