From 9d8c545528f028e5effd6b0bace88c8d3035e7c5 Mon Sep 17 00:00:00 2001 From: Hepatica Date: Sun, 24 Mar 2024 16:07:52 +0100 Subject: [PATCH] Revert "Revert "Turn of website"" This reverts commit b80d5f4070f44af0da5a0771bb1b06bae7667117. --- luckydiamond/src/main.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/luckydiamond/src/main.js b/luckydiamond/src/main.js index 11a6fff..f732e29 100644 --- a/luckydiamond/src/main.js +++ b/luckydiamond/src/main.js @@ -1,6 +1,14 @@ import { createApp } from 'vue' import App from './App.vue' +const SiteOff = { + template: `
+

Site is currently unavailable.

+

We are currently performing maintenance. We will be back shortly!

+
` +}; +const siteIsOff = true; + import router from "@/router/router"; import mitt from 'mitt' import { Mixins } from "@/mixins/mixin"; @@ -11,12 +19,20 @@ import '@/assets/css/global.css' export const eventBus = mitt() -const app = createApp(App) +// const app = createApp(App) +const app = createApp(siteIsOff ? SiteOff : App); -app.use(router) -app.mixin(Mixins) +if (!siteIsOff) { + app.use(router); + app.mixin(Mixins); + app.provide(eventBus); + // ConnectToChat(); // Uncomment if chat should also be disabled when the site is off. +} + +// app.use(router) +// app.mixin(Mixins) app.mount('#app') -app.provide(eventBus) +// app.provide(eventBus) ConnectToChat(); \ No newline at end of file