fix: remaining type issues

This commit is contained in:
DecDuck
2025-09-25 12:13:07 +10:00
parent 55878bdf5f
commit 4c9a2c681a
21 changed files with 120 additions and 136 deletions

View File

@ -0,0 +1 @@
<template></template>

View File

@ -163,9 +163,9 @@ const scheduledTasks: {
name: "",
description: "",
},
debug: {
name: "Debug Task",
description: "Does debugging things.",
"import:version": {
name: "",
description: "",
},
};

View File

@ -224,14 +224,14 @@ const scopes = [
href: "/docs/access/status",
icon: UserGroupIcon,
},
clientData.capabilities["peerAPI"] && {
clientData.capabilities["PeerAPI"] && {
name: "Access the Drop network",
description:
"The client will be able to establish P2P connections with other users to enable features like download aggregation, Remote LAN play and P2P multiplayer.",
href: "/docs/access/network",
icon: LockClosedIcon,
},
clientData.capabilities["cloudSaves"] && {
clientData.capabilities["CloudSaves"] && {
name: "Upload and sync cloud saves",
description:
"The client will be able to upload new cloud saves, and edit your existing ones.",

View File

@ -105,14 +105,14 @@ function input(index: number) {
function select(index: number) {
if (!codeElements.value) return;
if (index >= codeElements.value.length) return;
codeElements.value[index].select();
codeElements.value[index]!.select();
}
function paste(index: number, event: ClipboardEvent) {
const newCode = event.clipboardData!.getData("text/plain");
for (let i = 0; i < newCode.length && i < codeLength; i++) {
code.value[i] = newCode[i];
codeElements.value![i].focus();
code.value[i] = newCode[i]!;
codeElements.value![i]!.focus();
}
event.preventDefault();
}

View File

@ -110,7 +110,7 @@
>
<div>
<component
:is="actions[currentAction].page"
:is="actions[currentAction]!.page"
v-model="actionsComplete[currentAction]"
:token="bearerToken"
/>

View File

@ -254,7 +254,13 @@ import { StarIcon } from "@heroicons/vue/24/solid";
import { micromark } from "micromark";
const route = useRoute();
const gameId = route.params.id.toString();
const gameId = route.params.id?.toString();
if (!gameId)
throw createError({
statusCode: 404,
message: "Game not found",
fatal: true,
});
const user = useUser();