mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
turn off site
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
|
||||||
// const SiteOff = {
|
const SiteOff = {
|
||||||
// template: `<div style="text-align: center; margin-top: 20%;">
|
template: `<div style="text-align: center; margin-top: 20%;">
|
||||||
// <h1>Site is currently unavailable.</h1>
|
<h1>Site is currently unavailable.</h1>
|
||||||
// <p>We are currently performing maintenance. We will be back shortly!</p>
|
<p>We are currently performing maintenance. We will be back shortly!</p>
|
||||||
// </div>`
|
</div>`
|
||||||
// };
|
};
|
||||||
// const siteIsOff = true;
|
const siteIsOff = true;
|
||||||
|
|
||||||
import router from "@/router/router";
|
import router from "@/router/router";
|
||||||
import mitt from 'mitt'
|
import mitt from 'mitt'
|
||||||
@@ -19,20 +19,20 @@ import '@/assets/css/global.css'
|
|||||||
|
|
||||||
export const eventBus = mitt()
|
export const eventBus = mitt()
|
||||||
|
|
||||||
const app = createApp(App)
|
// const app = createApp(App)
|
||||||
// const app = createApp(siteIsOff ? SiteOff : App);
|
const app = createApp(siteIsOff ? SiteOff : App);
|
||||||
|
|
||||||
// if (!siteIsOff) {
|
if (!siteIsOff) {
|
||||||
// app.use(router);
|
app.use(router);
|
||||||
// app.mixin(Mixins);
|
app.mixin(Mixins);
|
||||||
// app.provide(eventBus);
|
app.provide(eventBus);
|
||||||
// // ConnectToChat(); // Uncomment if chat should also be disabled when the site is off.
|
// ConnectToChat(); // Uncomment if chat should also be disabled when the site is off.
|
||||||
// }
|
}
|
||||||
|
|
||||||
app.use(router)
|
// app.use(router)
|
||||||
app.mixin(Mixins)
|
// app.mixin(Mixins)
|
||||||
|
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
app.provide(eventBus)
|
// app.provide(eventBus)
|
||||||
|
|
||||||
ConnectToChat();
|
ConnectToChat();
|
||||||
Reference in New Issue
Block a user