Skip to content

Commit 0339a35

Browse files
committed
feat: migrate server list page to tanstack + api-client + re-enabled broken features!
1 parent b04a7ee commit 0339a35

File tree

7 files changed

+349
-306
lines changed

7 files changed

+349
-306
lines changed

apps/frontend/src/components/ui/servers/ServerListing.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@
113113

114114
<script setup lang="ts">
115115
import { ChevronRightIcon, LockIcon, SparklesIcon } from '@modrinth/assets'
116+
import type { Archon } from '@modrinth/api-client'
116117
import { Avatar, CopyCode, ServersSpecs } from '@modrinth/ui'
117-
import type { Project, Server } from '@modrinth/utils'
118+
import type { Project } from '@modrinth/utils'
118119
import dayjs from 'dayjs'
119120
120121
import { useModrinthServers } from '~/composables/servers/modrinth-servers.ts'
@@ -136,7 +137,7 @@ type PendingChange = {
136137
verb: string
137138
}
138139
139-
const props = defineProps<Partial<Server> & { pendingChange?: PendingChange }>()
140+
const props = defineProps<Partial<Archon.Servers.v0.Server> & { pendingChange?: PendingChange }>()
140141
141142
if (props.server_id && props.status === 'available') {
142143
// Necessary only to get server icon

apps/frontend/src/components/ui/servers/ServerListingSkeleton.vue

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/frontend/src/components/ui/servers/ServerManageEmptyState.vue

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/frontend/src/components/ui/servers/marketing/MedalServerListing.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@
128128

129129
<script setup lang="ts">
130130
import { ChevronRightIcon, LockIcon, RocketIcon, SparklesIcon } from '@modrinth/assets'
131+
import type { Archon } from '@modrinth/api-client'
131132
import { AutoLink, Avatar, ButtonStyled, CopyCode } from '@modrinth/ui'
132-
import type { Project, Server } from '@modrinth/utils'
133+
import type { Project } from '@modrinth/utils'
133134
import dayjs from 'dayjs'
134135
import dayjsDuration from 'dayjs/plugin/duration'
135136
@@ -141,7 +142,7 @@ import ServerInfoLabels from '../ServerInfoLabels.vue'
141142
142143
dayjs.extend(dayjsDuration)
143144
144-
const props = defineProps<Partial<Server>>()
145+
const props = defineProps<Partial<Archon.Servers.v0.Server>>()
145146
const emit = defineEmits<{ (e: 'upgrade'): void }>()
146147
147148
const showGameLabel = computed(() => !!props.game)

0 commit comments

Comments
 (0)