advent22/ui/src/main.ts

28 lines
638 B
TypeScript
Raw Normal View History

import FontAwesomeIcon from "@/lib/fontawesome";
2024-08-23 16:38:04 +00:00
import { advent22Store } from "@/lib/store";
import { setDefaults as toast_set_defaults } 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
app.use(createPinia());
app.component("FontAwesomeIcon", FontAwesomeIcon);
2023-11-09 23:08:35 +00:00
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
toast_set_defaults({
2023-11-21 23:22:28 +00:00
duration: 10e3,
2023-11-10 23:50:43 +00:00
pauseOnHover: true,
dismissible: true,
closeOnClick: false,
type: "is-white",
position: "top-center",
animate: { in: "backInDown", out: "backOutUp" },
});