Compare commits
No commits in common. "main" and "0.4.3" have entirely different histories.
5 changed files with 6 additions and 10 deletions
|
@ -2,8 +2,8 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="favicon" href="/favicon.png" type="image/png" />
|
<link rel="favicon" href="favicon.png" type="image/png" />
|
||||||
<link rel="icon" href="/favicon.png" type="image/png" />
|
<link rel="icon" href="favicon.png" type="image/png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||||
<title>Viktor Kraastav – Reference Page</title>
|
<title>Viktor Kraastav – Reference Page</title>
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { RouterView } from 'vue-router'
|
import { RouterView } from 'vue-router'
|
||||||
import { version } from '../package.json'
|
import { version } from '../package.json'
|
||||||
|
import router from '@/router'
|
||||||
|
|
||||||
import ModalDialog from '@/components/ModalDialog.vue'
|
import ModalDialog from '@/components/ModalDialog.vue'
|
||||||
import LocaleSwitcher from '@/components/LocaleSwitcher.vue'
|
import LocaleSwitcher from '@/components/LocaleSwitcher.vue'
|
||||||
|
@ -45,7 +46,7 @@ const close = () => {
|
||||||
|
|
||||||
<SiteNavigation>
|
<SiteNavigation>
|
||||||
<NavigationItem
|
<NavigationItem
|
||||||
v-for="(route, idx) in $router.getRoutes()"
|
v-for="(route, idx) in router.options.routes"
|
||||||
:key="idx"
|
:key="idx"
|
||||||
:icon="route.meta?.icon"
|
:icon="route.meta?.icon"
|
||||||
:href="route.path"
|
:href="route.path"
|
||||||
|
|
|
@ -15,12 +15,8 @@ interface Props {
|
||||||
locales: LocaleOption[]
|
locales: LocaleOption[]
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Emits {
|
|
||||||
(e: 'update:modelValue', value: string): void
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = defineProps<Props>()
|
const props = defineProps<Props>()
|
||||||
const emit = defineEmits<Emits>()
|
const emit = defineEmits(['update:modelValue'])
|
||||||
|
|
||||||
const selectModel = computed({
|
const selectModel = computed({
|
||||||
get() {
|
get() {
|
||||||
|
|
|
@ -11,7 +11,7 @@ defineProps<Props>()
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<RouterLink class="navigation__link" :to="href">
|
<RouterLink class="navigation__link" :to="href">
|
||||||
<component class="navigation__link-icon" :is="icon" />
|
<component class="navigation__link-icon" :is="icon"></component>
|
||||||
<span class="navigation__link-text">
|
<span class="navigation__link-text">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -10,7 +10,6 @@ import '@/scss/main.scss'
|
||||||
type MessageSchema = typeof messages.en
|
type MessageSchema = typeof messages.en
|
||||||
|
|
||||||
const i18n = createI18n<[MessageSchema], 'en' | 'de'>({
|
const i18n = createI18n<[MessageSchema], 'en' | 'de'>({
|
||||||
legacy: false,
|
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
fallbackLocale: 'en',
|
fallbackLocale: 'en',
|
||||||
messages
|
messages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue