mirror of
https://github.com/modrinth/code.git
synced 2026-09-03 05:25:58 +00:00
fix: lint
This commit is contained in:
@@ -31,7 +31,10 @@
|
|||||||
<component :is="item.icon" class="flex size-5 shrink-0" />
|
<component :is="item.icon" class="flex size-5 shrink-0" />
|
||||||
<span class="truncate">{{ item.label }}</span>
|
<span class="truncate">{{ item.label }}</span>
|
||||||
</button>
|
</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" />
|
<component :is="item.icon" class="flex size-5 shrink-0" />
|
||||||
<span class="truncate">{{ item.label }}</span>
|
<span class="truncate">{{ item.label }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -52,7 +52,13 @@ export function useServerImage(
|
|||||||
|
|
||||||
const queryKey = computed(
|
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(() => {
|
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 { useUploadSessionUpload } from '#ui/composables/hosting/kyros-session-upload'
|
||||||
import { defineMessages, useVIntl } from '#ui/composables/i18n'
|
import { defineMessages, useVIntl } from '#ui/composables/i18n'
|
||||||
import { useServerPermissions } from '#ui/composables/server-permissions'
|
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 type { BrowseInstallPlan } from '#ui/layouts/shared/browse-tab/composables/install-logic'
|
||||||
import {
|
import {
|
||||||
flushStoredServerAddonInstallQueue,
|
flushStoredServerAddonInstallQueue,
|
||||||
@@ -45,6 +29,21 @@ import type {
|
|||||||
ContentModpackCardProject,
|
ContentModpackCardProject,
|
||||||
ContentModpackCardVersion,
|
ContentModpackCardVersion,
|
||||||
} from '#ui/layouts/shared/content-tab/types'
|
} 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 AddonWithUiState = Archon.Content.v1.Addon & { installing?: boolean }
|
||||||
type ContentOwnerAvatarSource = {
|
type ContentOwnerAvatarSource = {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import { useReadyState } from '#ui/composables'
|
|||||||
import { useUploadSessionUpload } from '#ui/composables/hosting/kyros-session-upload'
|
import { useUploadSessionUpload } from '#ui/composables/hosting/kyros-session-upload'
|
||||||
import { useVIntl } from '#ui/composables/i18n'
|
import { useVIntl } from '#ui/composables/i18n'
|
||||||
import { useServerPermissions } from '#ui/composables/server-permissions'
|
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 {
|
import {
|
||||||
injectModrinthClient,
|
injectModrinthClient,
|
||||||
injectModrinthServerContext,
|
injectModrinthServerContext,
|
||||||
@@ -16,9 +18,6 @@ import {
|
|||||||
} from '#ui/providers'
|
} from '#ui/providers'
|
||||||
import { commonMessages } from '#ui/utils/common-messages'
|
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<{
|
const props = defineProps<{
|
||||||
showDebugInfo?: boolean
|
showDebugInfo?: boolean
|
||||||
showRefreshButton?: boolean
|
showRefreshButton?: boolean
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import { useQuery } from '@tanstack/vue-query'
|
|||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
|
import WorldCard from '#ui/components/servers/worlds/WorldCard.vue'
|
||||||
import { defineMessages, useVIntl } from '#ui/composables/i18n'
|
import { defineMessages, useVIntl } from '#ui/composables/i18n'
|
||||||
import {
|
import {
|
||||||
injectModrinthClient,
|
injectModrinthClient,
|
||||||
@@ -37,8 +38,6 @@ import {
|
|||||||
} from '#ui/providers'
|
} from '#ui/providers'
|
||||||
import { formatLoaderLabel } from '#ui/utils/loaders'
|
import { formatLoaderLabel } from '#ui/utils/loaders'
|
||||||
|
|
||||||
import WorldCard from '#ui/components/servers/worlds/WorldCard.vue'
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
worldSlotName: {
|
worldSlotName: {
|
||||||
id: 'servers.manage.worlds.slot-name',
|
id: 'servers.manage.worlds.slot-name',
|
||||||
|
|||||||
@@ -4766,6 +4766,18 @@
|
|||||||
"servers.manage.websocket.reconnecting": {
|
"servers.manage.websocket.reconnecting": {
|
||||||
"defaultMessage": "Hang on, we're reconnecting to your server."
|
"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": {
|
"servers.manage.worlds.card.active": {
|
||||||
"defaultMessage": "Active"
|
"defaultMessage": "Active"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user