Files
TLA/resources/js/components/DevAlert.vue
T
Belupeti dde6beeba8
Build / Build-image (push) Successful in 1m9s
change verion number, add dev message
2026-08-14 19:24:58 +02:00

40 lines
889 B
Vue

<template>
<template v-if="dev">
<UAlert
title="You're on the testing page for TLAdle"
description="Please follow the link below for the production version of this page!"
color="error"
variant="subtle"
icon="i-lucide-terminal"
:actions="[
{
label: 'tladle.sc0tt.org',
variant: 'outline',
to: 'https://tladle.sc0tt.org/'
}
]"
/>
</template>
</template>
<script setup lang="ts">
import axios from 'axios';
</script>
<script lang="ts">
export default {
data() {
return {
dev: false,
}
},
mounted() {
axios.get('/api/fetch_dev')
.then(response => {
this.dev = response.data.dev;
})
},
}
</script>