Skip to content

Commit

Permalink
fix: formatting+linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Feb 3, 2025
1 parent 3a65ecf commit 6853673
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions composables/use-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async function fetchWithETag(
: {};
const requestParams = {
method: "GET",
// eslint-disable-next-line @typescript-eslint/no-misused-spread
headers: (init ? { ...init.headers, ...ifNoneMatchHeader } : ifNoneMatchHeader) as HeadersInit,
};
// Request mit ETag im If-None-Match Header
Expand Down
2 changes: 1 addition & 1 deletion composables/use-marker-click-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useMarkerClickHandler() {

// if the marker has a targetId referring to an entry in the navbar (defined in projectConfig),
// update the corresponding window or open it if it's not open yet
openOrUpdateWindow(item as unknown as WindowItem, item.name ? item.name : "");
openOrUpdateWindow(item as unknown as WindowItem, item.name ?? "");
}

return openNewWindowFromMarker;
Expand Down
1 change: 1 addition & 0 deletions composables/use-tei-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const extractMetadata = function (
"@hasTEIw": "false",
teiHeader: item.teiHeader,
} as simpleTEIMetadata;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
template.id = item["@id"]
? item["@id"]
: item.teiHeader.fileDesc.publicationStmt.idno?.$
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"test:e2e:ui": "playwright test --ui",
"test:unit": "vitest --run --typecheck --passWithNoTests",
"types:check": "nuxt typecheck",
"validate": "run-p format:check lint:check types:check test:unit test:e2e"
"validate": "run-p format:check lint:check types:check test:unit"
},
"dependencies": {
"@acdh-oeaw/lib": "^0.1.12",
Expand Down
9 changes: 5 additions & 4 deletions stores/use-windows-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export const useWindowsStore = defineStore("windows", () => {
const winbox = new WinBox({
id,
title,
index: windowState.zIndex ? windowState.zIndex : undefined,
x: windowState.x ? windowState.x : "center",
y: windowState.y ? windowState.y : "center",
index: windowState.zIndex ?? undefined,
x: windowState.x ?? "center",
y: windowState.y ?? "center",
width: windowState.width,
height: windowState.height,
onfocus() {
Expand Down Expand Up @@ -351,7 +351,8 @@ export const useWindowsStore = defineStore("windows", () => {
}

function escapeUnicode(s: string) {
return [...s]
return s
.split("")
.map((c) =>
/^[\x20-\x7f]$/.test(c)
? c
Expand Down
8 changes: 4 additions & 4 deletions styles/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import url("@/node_modules/@fortawesome/fontawesome-free/css/solid.css");
@import url("@/node_modules/@fortawesome/fontawesome-free/css/fontawesome.css");
@import url("@/node_modules/lightgallery/css/lightgallery.css");
@import url("@/node_modules/lightgallery/css/lg-thumbnail.css");
@import "@/node_modules/@fortawesome/fontawesome-free/css/solid.css";
@import "@/node_modules/@fortawesome/fontawesome-free/css/fontawesome.css";
@import "@/node_modules/lightgallery/css/lightgallery.css";
@import "@/node_modules/lightgallery/css/lg-thumbnail.css";

:root {
--color-background: 0 0% 100%;
Expand Down

0 comments on commit 6853673

Please sign in to comment.