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">
|
<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,7 +2,6 @@
|
||||||
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'
|
||||||
|
@ -46,7 +45,7 @@ const close = () => {
|
||||||
|
|
||||||
<SiteNavigation>
|
<SiteNavigation>
|
||||||
<NavigationItem
|
<NavigationItem
|
||||||
v-for="(route, idx) in router.options.routes"
|
v-for="(route, idx) in $router.getRoutes()"
|
||||||
:key="idx"
|
:key="idx"
|
||||||
:icon="route.meta?.icon"
|
:icon="route.meta?.icon"
|
||||||
:href="route.path"
|
:href="route.path"
|
||||||
|
|
|
@ -15,8 +15,12 @@ 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(['update:modelValue'])
|
const emit = defineEmits<Emits>()
|
||||||
|
|
||||||
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>
|
<component class="navigation__link-icon" :is="icon" />
|
||||||
<span class="navigation__link-text">
|
<span class="navigation__link-text">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -10,6 +10,7 @@ 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