mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-03 11:20:07 -05:00
Add dev mode warning
This commit is contained in:
parent
ca599c45a7
commit
a9365de22b
2 changed files with 11 additions and 0 deletions
|
@ -1,9 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
import { RouterView } from 'vue-router'
|
||||
import NavbarItem from './components/NavbarView.vue'
|
||||
import DevWarning from './components/DevWarning.vue'
|
||||
|
||||
const dev = import.meta.env.DEV
|
||||
</script>
|
||||
|
||||
<template class="bg-ctp-base h-full">
|
||||
<dev-warning v-if="dev"></dev-warning>
|
||||
<navbar-item></navbar-item>
|
||||
|
||||
<Suspense>
|
||||
|
|
7
src/components/DevWarning.vue
Normal file
7
src/components/DevWarning.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<template>
|
||||
<div class="rounded-lg z-50 flex m-3 h-20 bg-amber-400 border-4 border-amber-600">
|
||||
<div class="m-auto">
|
||||
<h1 class="font-bold text-2xl">SafeTwitch is currently in development mode.</h1>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
Loading…
Reference in a new issue