Skip to content

Commit

Permalink
chore: cleanup [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Jul 15, 2023
1 parent 51b24e3 commit 5bd57df
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
- name: Checkout respository
uses: actions/checkout@v3

# necessary because `actions/setup-node` does not yet support `corepack`.
# @see https://github.com/actions/setup-node/issues/531
Expand Down
2 changes: 1 addition & 1 deletion src/components/imprint.server.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ const imprint = await useFetch(String(createImprintUrl(locale.value, redmineId))

<template>
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="prose" v-html="imprint.data.value" />
<div v-if="imprint.data.value" class="prose" v-html="imprint.data.value" />
</template>
4 changes: 2 additions & 2 deletions src/components/route-announcer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const router = useRouter();
const message = ref("");
function onChangeMessaqge(to: RouteLocationNormalized) {
function onChangeMessaqe(to: RouteLocationNormalized) {
if (typeof to.meta.title === "string") {
message.value = to.meta.title;
} else {
Expand Down Expand Up @@ -33,7 +33,7 @@ function onChangeMessaqge(to: RouteLocationNormalized) {
router.afterEach((to, from) => {
if (to.path !== from.path) {
onChangeMessaqge(to);
onChangeMessaqe(to);
}
trackPageView(to, from);
Expand Down
1 change: 1 addition & 0 deletions src/composables/use-translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { type ResourcePath } from "@intlify/core-base";

import { type Locale, type Messages, type Schema } from "@/config/i18n.config";

/** @see https://github.com/intlify/vue-i18n-next/issues/1119 */
// @ts-expect-error Type instantiation is excessively deep and possibly infinite.
export function useTranslations(): (
key: ResourcePath<Messages>,
Expand Down
2 changes: 1 addition & 1 deletion src/config/i18n.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type messages from "@/messages/de.json";

export const locales = {
de: { code: "de", iso: "de-AT", file: "de.json" },
en: { code: "en", iso: "en-US", file: "en.json" },
en: { code: "en", iso: "en-GB", file: "en.json" },
} satisfies Record<string, LocaleObject>;

export type Locale = keyof typeof locales;
Expand Down
2 changes: 1 addition & 1 deletion src/error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function onReset() {
</script>

<template>
<MainContent>
<MainContent class="grid min-h-full place-items-center">
<h1>{{ t("title") }}</h1>
<button @click="onReset">{{ t("try-again") }}</button>
</MainContent>
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.js → vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineVitestConfig({
environment: "nuxt",
environmentOptions: {
nuxt: {
domEnvironment: "jsdom",
// domEnvironment: "jsdom",
},
},
include: ["./tests/*.spec.ts"],
Expand Down

0 comments on commit 5bd57df

Please sign in to comment.