2022-12-17 02:30:46 +00:00
|
|
|
<script>
|
|
|
|
import { RouterView, RouterLink } from "vue-router";
|
|
|
|
import locales from "./locales"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
locales
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onLocaleChange() {
|
|
|
|
localStorage.setItem("locale", this.$i18n.locale);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-12-03 03:20:49 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-07 05:45:05 +00:00
|
|
|
<v-app class="fill-height">
|
2022-12-07 19:03:22 +00:00
|
|
|
<v-system-bar window>
|
2022-12-17 02:30:46 +00:00
|
|
|
<h2 class="text-center w-100">
|
|
|
|
<RouterLink
|
|
|
|
:to="{ name: 'home' }"
|
2022-12-17 22:00:12 +00:00
|
|
|
class="plain"
|
2022-12-17 02:30:46 +00:00
|
|
|
>Audon</RouterLink
|
|
|
|
>
|
|
|
|
</h2>
|
2022-12-07 05:45:05 +00:00
|
|
|
</v-system-bar>
|
|
|
|
<v-main>
|
|
|
|
<v-container class="fill-height">
|
2022-12-17 02:30:46 +00:00
|
|
|
<v-row
|
|
|
|
align="center"
|
|
|
|
justify="center"
|
|
|
|
class="fill-height"
|
|
|
|
id="mainArea"
|
|
|
|
>
|
2022-12-07 05:45:05 +00:00
|
|
|
<v-col>
|
|
|
|
<v-responsive class="mx-auto" max-width="600px">
|
2022-12-17 02:30:46 +00:00
|
|
|
<RouterView />
|
2022-12-07 05:45:05 +00:00
|
|
|
</v-responsive>
|
|
|
|
</v-col>
|
|
|
|
</v-row>
|
|
|
|
</v-container>
|
|
|
|
</v-main>
|
2022-12-17 02:30:46 +00:00
|
|
|
<v-bottom-navigation :height="30">
|
|
|
|
<div class="w-100 d-flex justify-space-between align-center px-3">
|
2022-12-17 22:00:12 +00:00
|
|
|
<div><a href="https://codeberg.org/nmkj/audon" class="plain" target="_blank">v0.1.0-dev5</a></div>
|
2022-12-17 02:30:46 +00:00
|
|
|
<div>
|
|
|
|
<select v-model="$i18n.locale" id="localeSelector" @change="onLocaleChange">
|
|
|
|
<option
|
|
|
|
v-for="locale in $i18n.availableLocales"
|
|
|
|
:key="`locale-${locale}`"
|
|
|
|
:value="locale"
|
|
|
|
>
|
|
|
|
{{ locales[locale] }}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</v-bottom-navigation>
|
2022-12-07 05:45:05 +00:00
|
|
|
</v-app>
|
2022-12-03 03:20:49 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style>
|
2022-12-07 05:45:05 +00:00
|
|
|
#app .v-application__wrap {
|
|
|
|
min-height: 100%;
|
|
|
|
}
|
2022-12-17 02:30:46 +00:00
|
|
|
|
|
|
|
#localeSelector option {
|
|
|
|
background: black;
|
|
|
|
color: white;
|
|
|
|
}
|
2022-12-03 03:20:49 +00:00
|
|
|
</style>
|