Skip to content

Commit

Permalink
chore: prettify and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jul 17, 2024
1 parent 7acea84 commit d19e03e
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/components/DataDisplay/DataDisplayKeywordInContext.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import { useQueries } from "@tanstack/vue-query";
import { storeToRefs } from "pinia";
import { type Ref } from "vue";
import { type Ref } from "vue";
import { type Type06Concordance } from "~/lib/api-client";
import { type Type06Concordance } from "~/lib/api-client";
import CorpusChip from "../Search/CorpusChip.vue";
import KWICDetailDialog from "./KWICDetailDialog.vue";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useQueries } from "@tanstack/vue-query";
import { storeToRefs } from "pinia";
import { type Type11Freqml } from "~/lib/api-client";
import { type Type11Freqml } from "~/lib/api-client";
const t = useTranslations("Corpsum");
const queryStore = useQueryStore();
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataDisplay/KWICDetailDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { convert } from "html-to-text";
import { computed, type Ref, ref, watch } from "vue";
import { useGetWideCtx } from "@/composables/useGetWideCtx.ts";
import { type HttpResponse, type Type16Widectx } from "~/lib/api-client";
import { type HttpResponse, type Type16Widectx } from "~/lib/api-client";
const props = defineProps<{ kwic: KeywordInContext | null; query: CorpusQuery }>();
defineEmits(["close"]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/app-footer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { type NavLinkProps } from "@/components/nav-link.vue";
import { type NavLinkProps } from "@/components/nav-link.vue";
const t = useTranslations("AppFooter");
Expand Down
2 changes: 1 addition & 1 deletion src/components/app-header.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { type NavLinkProps } from "@/components/nav-link.vue";
import { type NavLinkProps } from "@/components/nav-link.vue";
const t = useTranslations("AppHeader");
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav-link.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { type NuxtLinkProps } from "#app";
import { type NuxtLinkProps } from "#app";
export interface NavLinkProps
extends Omit<NuxtLinkProps, "href" | "to">,
Expand Down
2 changes: 1 addition & 1 deletion src/components/route-announcer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { type RouteLocationNormalized } from "vue-router";
import { type RouteLocationNormalized } from "vue-router";
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion src/composables/use-locale.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Locale, type Schema } from "@/config/i18n.config";
import { type Locale, type Schema } from "@/config/i18n.config";

export function useLocale() {
const { locale } = useI18n<Schema, Locale>();
Expand Down
4 changes: 2 additions & 2 deletions src/composables/use-translations.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type ResourcePath } from "@intlify/core-base";
import { type ResourcePath } from "@intlify/core-base";

import { type Locale, type Messages, type Schema } from "@/config/i18n.config";
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.
Expand Down
2 changes: 1 addition & 1 deletion src/config/i18n.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type LocaleObject } from "vue-i18n-routing";
import { type LocaleObject } from "vue-i18n-routing";

import type messages from "@/messages/en.json";

Expand Down
2 changes: 1 addition & 1 deletion src/config/imprint.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createUrl, createUrlSearchParams } from "@acdh-oeaw/lib";

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

const baseUrl = "https://shared.acdh.oeaw.ac.at";
const pathname = "/acdh-common-assets/api/imprint.php";
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { isNonEmptyString } from "@acdh-oeaw/lib";
import { type WebSite, type WithContext } from "schema-dts";
import { type WebSite, type WithContext } from "schema-dts";
const env = useRuntimeConfig();
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/helpers/highchartsExcelFunction.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck

// sadly this function is just js, so need to disable typechecker for it
import zipcelx from "zipcelx";

Expand Down
1 change: 0 additions & 1 deletion src/plugins/jsonViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import "vue-json-viewer/style.css";
import JsonViewer from "vue-json-viewer/ssr";

export default defineNuxtPlugin((nuxtApp) => {

nuxtApp.vueApp.use(JsonViewer);
});
2 changes: 1 addition & 1 deletion src/plugins/query-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineNuxtPlugin((nuxt) => {
const message =
error instanceof Response
? // @ts-expect-error Set by api client.

(error.error?.title as string | undefined) ?? error.statusText
: error.message;

Expand Down
2 changes: 1 addition & 1 deletion src/stores/corpora.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { acceptHMRUpdate, defineStore } from "pinia";
import { computed, type Ref, ref } from "vue";

import { type Type03CorporaList } from "~/lib/api-client";
import { type Type03CorporaList } from "~/lib/api-client";

/**
* This Holds a
Expand Down
4 changes: 2 additions & 2 deletions src/types/nuxt.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type ResourcePath } from "@intlify/core-base";
import { type ResourcePath } from "@intlify/core-base";

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

declare module "#app" {
interface PageMeta {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type RouteLocationNormalized } from "vue-router";
import { type RouteLocationNormalized } from "vue-router";

function track(url: string, referrer: string, title: string) {
window._paq?.push(["setReferrerUrl", referrer]);
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import typographyPlugin from "@tailwindcss/typography";
import { type Config } from "tailwindcss";
import { type Config } from "tailwindcss";
import colors from "tailwindcss/colors.js";
import animatePlugin from "tailwindcss-animate";

Expand Down

0 comments on commit d19e03e

Please sign in to comment.