This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user