40 lines
889 B
Vue
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> |