From b23687430ecdb1b16a65b25e2dafc5d2ff0a8840 Mon Sep 17 00:00:00 2001 From: pa Date: Wed, 16 Jul 2025 14:23:06 +0900 Subject: [PATCH] fix: debug with type error checks --- src/api/world.js | 3 +- src/components/AvatarInfo.vue | 2 +- src/components/InstanceInfo.vue | 2 +- src/components/dialogs/GalleryDialog.vue | 242 +++++++++--------- src/components/dialogs/LaunchDialog.vue | 2 +- src/components/dialogs/NewInstanceDialog.vue | 40 +-- .../dialogs/PreviousImagesDialog.vue | 13 +- src/components/dialogs/VRCXUpdateDialog.vue | 2 +- .../WorldDialog/ChangeWorldImageDialog.vue | 19 +- .../WorldDialog/SetWorldTagsDialog.vue | 12 +- .../dialogs/WorldDialog/WorldDialog.vue | 13 +- src/types/api/world.d.ts | 38 +++ src/types/globals.d.ts | 23 -- 13 files changed, 217 insertions(+), 194 deletions(-) diff --git a/src/api/world.js b/src/api/world.js index 7ec1e503..4fa6fb31 100644 --- a/src/api/world.js +++ b/src/api/world.js @@ -87,8 +87,7 @@ const worldReq = { }, /** - * @param {{id: string}} params - * @returns {Promise<{json: any, params}>} + * @type {import('../types/api/world').SaveWorld} */ saveWorld(params) { const worldStore = useWorldStore(); diff --git a/src/components/AvatarInfo.vue b/src/components/AvatarInfo.vue index 24ef9bd8..a6d191c3 100644 --- a/src/components/AvatarInfo.vue +++ b/src/components/AvatarInfo.vue @@ -60,7 +60,7 @@ } if (Array.isArray(props.avatartags)) { - avatarTags.value = props.avatartags.map((tag) => tag.replace('content_', '')).join(', '); + avatarTags.value = props.avatartags.map((tag) => String(tag).replace('content_', '')).join(', '); } }; diff --git a/src/components/InstanceInfo.vue b/src/components/InstanceInfo.vue index db4833d1..1509c660 100644 --- a/src/components/InstanceInfo.vue +++ b/src/components/InstanceInfo.vue @@ -86,7 +86,7 @@ capacity: 0, queueSize: 0, queueEnabled: false, - platforms: [], + platforms: {}, userList: [], gameServerVersion: '', canCloseInstance: false, diff --git a/src/components/dialogs/GalleryDialog.vue b/src/components/dialogs/GalleryDialog.vue index 1003ffda..692ee19d 100644 --- a/src/components/dialogs/GalleryDialog.vue +++ b/src/components/dialogs/GalleryDialog.vue @@ -48,32 +48,32 @@
-
- -
-
- - -
+
@@ -117,32 +117,32 @@
-
- -
-
- - -
+
@@ -226,65 +226,67 @@
-
- - -
-
- - - - {{ image.animationStyle }} - {{ image.framesOverTime }}fps - {{ image.frames }}frames -
-
-
- +
- -
+ "> + + +
+
+ + + + {{ image.animationStyle }} + {{ image.framesOverTime }}fps + {{ image.frames }}frames +
+
+
+ +
@@ -320,32 +322,32 @@
-
- -
-
- - -
+
diff --git a/src/components/dialogs/LaunchDialog.vue b/src/components/dialogs/LaunchDialog.vue index 94baad39..14e64f2f 100644 --- a/src/components/dialogs/LaunchDialog.vue +++ b/src/components/dialogs/LaunchDialog.vue @@ -79,7 +79,7 @@