advent22/ui/src/main.ts

30 lines
690 B
TypeScript
Raw Normal View History

2023-09-07 01:17:14 +00:00
import { Advent22Plugin } from "@/plugins/advent22";
import { FontAwesomePlugin } from "@/plugins/fontawesome";
2023-11-04 15:58:31 +00:00
import { advent22Store } from "@/plugins/store";
2023-11-10 23:50:43 +00:00
import * as bulmaToast from "bulma-toast";
import { createPinia } from "pinia";
2023-09-07 01:17:14 +00:00
import { createApp } from "vue";
import App from "./App.vue";
2022-10-28 00:14:20 +00:00
2023-09-07 01:17:14 +00:00
import "@/main.scss";
2022-10-30 01:27:46 +00:00
2023-09-07 01:17:14 +00:00
const app = createApp(App);
2023-11-09 23:08:35 +00:00
2023-09-07 01:17:14 +00:00
app.use(Advent22Plugin);
app.use(FontAwesomePlugin);
2022-11-03 15:04:57 +00:00
2023-11-09 23:08:35 +00:00
app.use(createPinia());
advent22Store().init();
2023-11-04 15:58:31 +00:00
2023-09-07 01:17:14 +00:00
app.mount("#app");
2023-11-10 23:50:43 +00:00
bulmaToast.setDefaults({
duration: 10000,
pauseOnHover: true,
dismissible: true,
closeOnClick: false,
type: "is-white",
position: "top-center",
animate: { in: "backInDown", out: "backOutUp" },
});