mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 00:02:37 +10:00
fix: remaining type issues
This commit is contained in:
1
app/pages/admin/library/r/[id]/import.vue
Normal file
1
app/pages/admin/library/r/[id]/import.vue
Normal file
@ -0,0 +1 @@
|
||||
<template></template>
|
||||
@ -163,9 +163,9 @@ const scheduledTasks: {
|
||||
name: "",
|
||||
description: "",
|
||||
},
|
||||
debug: {
|
||||
name: "Debug Task",
|
||||
description: "Does debugging things.",
|
||||
"import:version": {
|
||||
name: "",
|
||||
description: "",
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -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.",
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@
|
||||
>
|
||||
<div>
|
||||
<component
|
||||
:is="actions[currentAction].page"
|
||||
:is="actions[currentAction]!.page"
|
||||
v-model="actionsComplete[currentAction]"
|
||||
:token="bearerToken"
|
||||
/>
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user