Compare commits

..

5 commits
0.4.3 ... main

Author SHA1 Message Date
Sebin Nyshkim
2830fd9350 fix: get favicon from absolute path 2023-09-06 00:20:22 +02:00
Sebin Nyshkim
986126a2bb fix: disable legacy mode of vue-i18n for use with composition API 2023-09-06 00:19:17 +02:00
Sebin Nyshkim
3d13c256e3 style: close component tag immediately 2023-09-06 00:17:56 +02:00
Sebin Nyshkim
f67ba1e655 refactor: get routes via getRoutes() function instead of importing router config 2023-09-06 00:17:27 +02:00
Sebin Nyshkim
1553825719 refactor: add type definition for emits 2023-09-05 22:49:23 +02:00
5 changed files with 10 additions and 6 deletions

View file

@ -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>

View file

@ -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"

View file

@ -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() {

View file

@ -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>

View file

@ -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