This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
IMAGE_NAME: tladle
|
IMAGE_NAME: tladle
|
||||||
REGISTRY_NAME: gitea.sc0tt.org
|
REGISTRY_NAME: gitea.sc0tt.org
|
||||||
GIT_TAG: 1.0.2
|
GIT_TAG: 1.1
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import type { NavigationMenuItem } from '@nuxt/ui'
|
import type { NavigationMenuItem } from '@nuxt/ui'
|
||||||
import HowToPlay from "./components/HowToPlay.vue";
|
import HowToPlay from "./components/HowToPlay.vue";
|
||||||
import { useColorMode } from '@vueuse/core'
|
import { useColorMode } from '@vueuse/core'
|
||||||
|
import DevAlert from './components/DevAlert.vue';
|
||||||
|
|
||||||
const items: NavigationMenuItem[] = [{
|
const items: NavigationMenuItem[] = [{
|
||||||
label: 'Git',
|
label: 'Git',
|
||||||
@@ -34,6 +35,8 @@
|
|||||||
<UColorModeSwitch />
|
<UColorModeSwitch />
|
||||||
</template>
|
</template>
|
||||||
</UHeader>
|
</UHeader>
|
||||||
|
|
||||||
|
<DevAlert/>
|
||||||
<UMain class="main">
|
<UMain class="main">
|
||||||
<router-view v-slot="{ Component,route }">
|
<router-view v-slot="{ Component,route }">
|
||||||
<component :is="Component" />
|
<component :is="Component" />
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -8,4 +8,7 @@ Route::middleware('web')->group(function () {
|
|||||||
Route::get('fetch_tla/{language?}', [\App\Http\Controllers\TlaController::class, 'fetch_tla']);
|
Route::get('fetch_tla/{language?}', [\App\Http\Controllers\TlaController::class, 'fetch_tla']);
|
||||||
Route::post('check_tla/{language?}', [\App\Http\Controllers\TlaController::class, 'check_tla']);
|
Route::post('check_tla/{language?}', [\App\Http\Controllers\TlaController::class, 'check_tla']);
|
||||||
Route::post('suggestion /{language?}', [\App\Http\Controllers\TlaController::class, 'suggestion']);
|
Route::post('suggestion /{language?}', [\App\Http\Controllers\TlaController::class, 'suggestion']);
|
||||||
|
Route::get('fetch_dev', function() {
|
||||||
|
return response()->json(['dev' => env('DEV_MESSAGE', false)]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user