@@ -180,7 +189,7 @@
>
{{ option.name }}
- {{ sortOrder === 'asc' ? '↑' : '↓' }}
+ {{ sortOrder === "asc" ? $t("↑") : $t("↓") }}
@@ -500,11 +509,10 @@ await updateGames(filterQuery.value, true);
function handleSortClick(option: StoreSortOption, event: MouseEvent) {
event.stopPropagation();
if (currentSort.value === option.param) {
- sortOrder.value = sortOrder.value === 'asc' ? 'desc' : 'asc';
+ sortOrder.value = sortOrder.value === "asc" ? "desc" : "asc";
} else {
currentSort.value = option.param;
- sortOrder.value = option.param === 'name' ? 'asc' : 'desc';
+ sortOrder.value = option.param === "name" ? "asc" : "desc";
}
}
-
-
\ No newline at end of file
+
diff --git a/server/api/v1/store/index.get.ts b/server/api/v1/store/index.get.ts
index 377913d..26649f3 100644
--- a/server/api/v1/store/index.get.ts
+++ b/server/api/v1/store/index.get.ts
@@ -123,4 +123,4 @@ export default defineEventHandler(async (h3) => {
]);
return { results, count };
-});
\ No newline at end of file
+});
diff --git a/server/internal/metadata/igdb.ts b/server/internal/metadata/igdb.ts
index 8231cea..c135117 100644
--- a/server/internal/metadata/igdb.ts
+++ b/server/internal/metadata/igdb.ts
@@ -246,7 +246,11 @@ export class IGDBProvider implements MetadataProvider {
return response.data;
}
- private async _getMediaInternal(mediaID: IGDBID, type: string, size: string = "t_thumb" ) {
+ private async _getMediaInternal(
+ mediaID: IGDBID,
+ type: string,
+ size: string = "t_thumb",
+ ) {
if (mediaID === undefined)
throw new Error(
`IGDB mediaID when getting item of type ${type} was undefined`,
@@ -371,7 +375,7 @@ export class IGDBProvider implements MetadataProvider {
} else {
context?.logger.info("Missing cover URL, using fallback...");
iconRaw = jdenticon.toPng(id, 512);
- coverRaw = iconRaw
+ coverRaw = iconRaw;
}
const icon = createObject(iconRaw);
@@ -469,7 +473,10 @@ export class IGDBProvider implements MetadataProvider {
if (currentGame.summary.length > (currentGame.storyline?.length ?? 0)) {
description = currentGame.summary;
- shortDescription = this.trimMessage(currentGame.storyline ?? currentGame.summary, 280);
+ shortDescription = this.trimMessage(
+ currentGame.storyline ?? currentGame.summary,
+ 280,
+ );
} else {
description = currentGame.storyline ?? currentGame.summary;
shortDescription = this.trimMessage(currentGame.summary, 280);
@@ -540,4 +547,4 @@ export class IGDBProvider implements MetadataProvider {
return undefined;
}
-}
\ No newline at end of file
+}