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