mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
fix: lint
This commit is contained in:
@@ -31,7 +31,10 @@
|
||||
<component :is="item.icon" class="flex size-5 shrink-0" />
|
||||
<span class="truncate">{{ item.label }}</span>
|
||||
</button>
|
||||
<div v-else class="flex min-w-0 items-center gap-2 font-medium text-secondary text-nowrap">
|
||||
<div
|
||||
v-else
|
||||
class="flex min-w-0 items-center gap-2 font-medium text-secondary text-nowrap"
|
||||
>
|
||||
<component :is="item.icon" class="flex size-5 shrink-0" />
|
||||
<span class="truncate">{{ item.label }}</span>
|
||||
</div>
|
||||
|
||||
@@ -52,7 +52,13 @@ export function useServerImage(
|
||||
|
||||
const queryKey = computed(
|
||||
() =>
|
||||
['servers', 'detail', resolvedServerId.value, 'icon', upstream.value?.project_id ?? null] as const,
|
||||
[
|
||||
'servers',
|
||||
'detail',
|
||||
resolvedServerId.value,
|
||||
'icon',
|
||||
upstream.value?.project_id ?? null,
|
||||
] as const,
|
||||
)
|
||||
|
||||
const isEnabled = computed(() => {
|
||||
|
||||
@@ -10,22 +10,6 @@ import ReadyTransition from '#ui/components/base/ReadyTransition.vue'
|
||||
import { useUploadSessionUpload } from '#ui/composables/hosting/kyros-session-upload'
|
||||
import { defineMessages, useVIntl } from '#ui/composables/i18n'
|
||||
import { useServerPermissions } from '#ui/composables/server-permissions'
|
||||
import {
|
||||
injectModrinthClient,
|
||||
injectModrinthServerContext,
|
||||
injectNotificationManager,
|
||||
injectServerSettingsModal,
|
||||
} from '#ui/providers'
|
||||
import { commonMessages } from '#ui/utils/common-messages'
|
||||
import {
|
||||
type PendingServerContentInstall,
|
||||
pendingServerContentInstallsEvent,
|
||||
readPendingServerContentInstallBaseline,
|
||||
readPendingServerContentInstalls,
|
||||
removePendingServerContentInstall,
|
||||
} from '#ui/utils/server-content-installing'
|
||||
import { versionChangesGameVersion } from '#ui/utils/version-compatibility'
|
||||
|
||||
import type { BrowseInstallPlan } from '#ui/layouts/shared/browse-tab/composables/install-logic'
|
||||
import {
|
||||
flushStoredServerAddonInstallQueue,
|
||||
@@ -45,6 +29,21 @@ import type {
|
||||
ContentModpackCardProject,
|
||||
ContentModpackCardVersion,
|
||||
} from '#ui/layouts/shared/content-tab/types'
|
||||
import {
|
||||
injectModrinthClient,
|
||||
injectModrinthServerContext,
|
||||
injectNotificationManager,
|
||||
injectServerSettingsModal,
|
||||
} from '#ui/providers'
|
||||
import { commonMessages } from '#ui/utils/common-messages'
|
||||
import {
|
||||
type PendingServerContentInstall,
|
||||
pendingServerContentInstallsEvent,
|
||||
readPendingServerContentInstallBaseline,
|
||||
readPendingServerContentInstalls,
|
||||
removePendingServerContentInstall,
|
||||
} from '#ui/utils/server-content-installing'
|
||||
import { versionChangesGameVersion } from '#ui/utils/version-compatibility'
|
||||
|
||||
type AddonWithUiState = Archon.Content.v1.Addon & { installing?: boolean }
|
||||
type ContentOwnerAvatarSource = {
|
||||
|
||||
@@ -9,6 +9,8 @@ import { useReadyState } from '#ui/composables'
|
||||
import { useUploadSessionUpload } from '#ui/composables/hosting/kyros-session-upload'
|
||||
import { useVIntl } from '#ui/composables/i18n'
|
||||
import { useServerPermissions } from '#ui/composables/server-permissions'
|
||||
import type { EditingFile, FileItem } from '#ui/layouts/shared/files-tab/index.ts'
|
||||
import { FilePageLayout, provideFileManager } from '#ui/layouts/shared/files-tab/index.ts'
|
||||
import {
|
||||
injectModrinthClient,
|
||||
injectModrinthServerContext,
|
||||
@@ -16,9 +18,6 @@ import {
|
||||
} from '#ui/providers'
|
||||
import { commonMessages } from '#ui/utils/common-messages'
|
||||
|
||||
import type { EditingFile, FileItem } from '#ui/layouts/shared/files-tab/index.ts'
|
||||
import { FilePageLayout, provideFileManager } from '#ui/layouts/shared/files-tab/index.ts'
|
||||
|
||||
const props = defineProps<{
|
||||
showDebugInfo?: boolean
|
||||
showRefreshButton?: boolean
|
||||
|
||||
@@ -29,6 +29,7 @@ import { useQuery } from '@tanstack/vue-query'
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
import WorldCard from '#ui/components/servers/worlds/WorldCard.vue'
|
||||
import { defineMessages, useVIntl } from '#ui/composables/i18n'
|
||||
import {
|
||||
injectModrinthClient,
|
||||
@@ -37,8 +38,6 @@ import {
|
||||
} from '#ui/providers'
|
||||
import { formatLoaderLabel } from '#ui/utils/loaders'
|
||||
|
||||
import WorldCard from '#ui/components/servers/worlds/WorldCard.vue'
|
||||
|
||||
const messages = defineMessages({
|
||||
worldSlotName: {
|
||||
id: 'servers.manage.worlds.slot-name',
|
||||
|
||||
@@ -4766,6 +4766,18 @@
|
||||
"servers.manage.websocket.reconnecting": {
|
||||
"defaultMessage": "Hang on, we're reconnecting to your server."
|
||||
},
|
||||
"servers.manage.world.all-worlds": {
|
||||
"defaultMessage": "All worlds"
|
||||
},
|
||||
"servers.manage.world.fallback-name": {
|
||||
"defaultMessage": "World"
|
||||
},
|
||||
"servers.manage.world.last-active": {
|
||||
"defaultMessage": "Last active {time}"
|
||||
},
|
||||
"servers.manage.world.settings": {
|
||||
"defaultMessage": "World settings"
|
||||
},
|
||||
"servers.manage.worlds.card.active": {
|
||||
"defaultMessage": "Active"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user