refactor: remove useBaseFetch for @modrinth/api-client (#5596)

* Reapply "fix: start swapping useBaseFetch usages to api-client"

This reverts commit f4f33db7019ea861addb2c66c204d736800b7b6c.

* fix: bugs

* fix: analytics

* fix: lint
This commit is contained in:
Calum H.
2026-03-17 20:06:19 +00:00
committed by GitHub
parent 58c1e225c8
commit 87c86c7d0d
64 changed files with 2073 additions and 691 deletions

View File

@@ -31,15 +31,17 @@
</template>
<script setup lang="ts">
import type { Labrinth } from '@modrinth/api-client'
import { AffiliateIcon, XCircleIcon } from '@modrinth/assets'
import type { AffiliateLink } from '@modrinth/utils'
import { defineMessages, useVIntl } from '../../composables/i18n'
import { AutoBrandIcon, ButtonStyled, CopyCode } from '../index'
type AffiliateCode = Labrinth.Affiliate.Internal.AffiliateCode
withDefaults(
defineProps<{
affiliate: AffiliateLink
affiliate: AffiliateCode
showRevoke?: boolean
createdBy?: string
}>(),
@@ -50,7 +52,7 @@ withDefaults(
)
const emit = defineEmits<{
(e: 'revoke', affiliate: AffiliateLink): void
(e: 'revoke', affiliate: AffiliateCode): void
}>()
const { formatMessage } = useVIntl()