New toast plugin, replacing ui/TextToast.vue.

Globally register toast plugin allows us to call this.$toast.info({})
from anywhere for a toast.
Currently styled types:
 - error
 - info
This commit is contained in:
2021-02-18 21:57:29 +01:00
parent 6968ccf389
commit 4ab67877b9
4 changed files with 244 additions and 99 deletions

View File

@@ -3,11 +3,16 @@ import VueRouter from "vue-router";
import { routes } from "@/router.js";
import Vinlottis from "@/Vinlottis";
import Toast from "@/plugins/Toast";
import * as Sentry from "@sentry/browser";
import { Vue as VueIntegration } from "@sentry/integrations";
Vue.use(VueRouter);
// Plugins
Vue.use(Toast);
const ENV = window.location.href.includes("localhost") ? "development" : "production";
if (ENV !== "development") {
Sentry.init({