parent
4b3e036e2a
commit
fdb2b1195e
@ -2,7 +2,7 @@
|
|||||||
<NewModal ref="modModal" :header="`Editing ${type.toLocaleLowerCase()} version`">
|
<NewModal ref="modModal" :header="`Editing ${type.toLocaleLowerCase()} version`">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="flex min-w-full items-center gap-2 md:w-[calc(420px-5.5rem)]">
|
<div class="flex min-w-full items-center gap-2 md:w-[calc(420px-5.5rem)]">
|
||||||
<UiAvatar :src="modDetails?.icon_url" size="48px" :alt="`${modDetails?.name} Icon`" />
|
<Avatar :src="modDetails?.icon_url" size="48px" :alt="`${modDetails?.name} Icon`" />
|
||||||
<span class="truncate text-xl font-extrabold text-contrast">{{ modDetails?.name }}</span>
|
<span class="truncate text-xl font-extrabold text-contrast">{{ modDetails?.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -185,7 +185,7 @@
|
|||||||
Something went wrong trying to load versions for this {{ type.toLocaleLowerCase() }}.
|
Something went wrong trying to load versions for this {{ type.toLocaleLowerCase() }}.
|
||||||
Please try again later or contact support if the issue persists.
|
Please try again later or contact support if the issue persists.
|
||||||
</span>
|
</span>
|
||||||
<LazyUiCopyCode class="!mt-2 !break-all" :text="versionsError" />
|
<CopyCode class="!mt-2 !break-all" :text="versionsError" />
|
||||||
</div>
|
</div>
|
||||||
</Admonition>
|
</Admonition>
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ import {
|
|||||||
GameIcon,
|
GameIcon,
|
||||||
ExternalIcon,
|
ExternalIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { Admonition, ButtonStyled, NewModal } from "@modrinth/ui";
|
import { Admonition, Avatar, ButtonStyled, CopyCode, NewModal } from "@modrinth/ui";
|
||||||
import TagItem from "@modrinth/ui/src/components/base/TagItem.vue";
|
import TagItem from "@modrinth/ui/src/components/base/TagItem.vue";
|
||||||
import { ref, computed } from "vue";
|
import { ref, computed } from "vue";
|
||||||
import { formatCategory, formatVersionsForDisplay, type Mod, type Version } from "@modrinth/utils";
|
import { formatCategory, formatVersionsForDisplay, type Mod, type Version } from "@modrinth/utils";
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
v-if="projectData?.title"
|
v-if="projectData?.title"
|
||||||
class="m-0 flex flex-row items-center gap-2 text-sm font-medium text-secondary"
|
class="m-0 flex flex-row items-center gap-2 text-sm font-medium text-secondary"
|
||||||
>
|
>
|
||||||
<UiAvatar
|
<Avatar
|
||||||
:src="iconUrl"
|
:src="iconUrl"
|
||||||
no-shadow
|
no-shadow
|
||||||
style="min-height: 20px; min-width: 20px; height: 20px; width: 20px"
|
style="min-height: 20px; min-width: 20px; height: 20px; width: 20px"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
<UiServersIconsPanelErrorIcon class="!size-5" /> Your server has been suspended. Please
|
<UiServersIconsPanelErrorIcon class="!size-5" /> Your server has been suspended. Please
|
||||||
update your billing information or contact Modrinth Support for more information.
|
update your billing information or contact Modrinth Support for more information.
|
||||||
</div>
|
</div>
|
||||||
<UiCopyCode :text="`${props.server_id}`" class="ml-auto" />
|
<CopyCode :text="`${props.server_id}`" class="ml-auto" />
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
@ -83,6 +83,7 @@
|
|||||||
import { ChevronRightIcon, LockIcon, SparklesIcon } from "@modrinth/assets";
|
import { ChevronRightIcon, LockIcon, SparklesIcon } from "@modrinth/assets";
|
||||||
import type { Project, Server } from "@modrinth/utils";
|
import type { Project, Server } from "@modrinth/utils";
|
||||||
import { useModrinthServers } from "~/composables/servers/modrinth-servers.ts";
|
import { useModrinthServers } from "~/composables/servers/modrinth-servers.ts";
|
||||||
|
import { Avatar, CopyCode } from "@modrinth/ui";
|
||||||
|
|
||||||
const props = defineProps<Partial<Server>>();
|
const props = defineProps<Partial<Server>>();
|
||||||
|
|
||||||
|
|||||||
@ -136,7 +136,7 @@
|
|||||||
class="flex min-w-0 flex-1 items-center gap-2 rounded-xl p-2"
|
class="flex min-w-0 flex-1 items-center gap-2 rounded-xl p-2"
|
||||||
draggable="false"
|
draggable="false"
|
||||||
>
|
>
|
||||||
<UiAvatar
|
<Avatar
|
||||||
:src="mod.icon_url"
|
:src="mod.icon_url"
|
||||||
size="sm"
|
size="sm"
|
||||||
alt="Server Icon"
|
alt="Server Icon"
|
||||||
@ -349,7 +349,7 @@ import {
|
|||||||
FileIcon,
|
FileIcon,
|
||||||
IssuesIcon,
|
IssuesIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { ButtonStyled } from "@modrinth/ui";
|
import { Avatar, ButtonStyled } from "@modrinth/ui";
|
||||||
import { ref, computed, watch, onMounted, onUnmounted } from "vue";
|
import { ref, computed, watch, onMounted, onUnmounted } from "vue";
|
||||||
import type { Mod } from "@modrinth/utils";
|
import type { Mod } from "@modrinth/utils";
|
||||||
import FilesUploadDragAndDrop from "~/components/ui/servers/FilesUploadDragAndDrop.vue";
|
import FilesUploadDragAndDrop from "~/components/ui/servers/FilesUploadDragAndDrop.vue";
|
||||||
|
|||||||
@ -194,7 +194,7 @@
|
|||||||
Primary allocation
|
Primary allocation
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<UiCopyCode :text="`${serverIP}:${serverPrimaryPort}`" />
|
<CopyCode :text="`${serverIP}:${serverPrimaryPort}`" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -228,7 +228,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex w-full flex-row items-center gap-2 sm:w-auto">
|
<div class="flex w-full flex-row items-center gap-2 sm:w-auto">
|
||||||
<UiCopyCode :text="`${serverIP}:${allocation.port}`" />
|
<CopyCode :text="`${serverIP}:${allocation.port}`" />
|
||||||
<ButtonStyled icon-only>
|
<ButtonStyled icon-only>
|
||||||
<button
|
<button
|
||||||
class="!w-full sm:!w-auto"
|
class="!w-full sm:!w-auto"
|
||||||
@ -273,7 +273,7 @@ import {
|
|||||||
UploadIcon,
|
UploadIcon,
|
||||||
IssuesIcon,
|
IssuesIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { ButtonStyled, NewModal, ConfirmModal } from "@modrinth/ui";
|
import { ButtonStyled, NewModal, ConfirmModal, CopyCode } from "@modrinth/ui";
|
||||||
import { ref, computed, nextTick } from "vue";
|
import { ref, computed, nextTick } from "vue";
|
||||||
import { ModrinthServer } from "~/composables/servers/modrinth-servers.ts";
|
import { ModrinthServer } from "~/composables/servers/modrinth-servers.ts";
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<li v-if="fetchError" class="text-red">
|
<li v-if="fetchError" class="text-red">
|
||||||
<p>Error details:</p>
|
<p>Error details:</p>
|
||||||
<UiCopyCode
|
<CopyCode
|
||||||
:text="(fetchError as ModrinthServersFetchError).message || 'Unknown error'"
|
:text="(fetchError as ModrinthServersFetchError).message || 'Unknown error'"
|
||||||
:copyable="false"
|
:copyable="false"
|
||||||
:selectable="false"
|
:selectable="false"
|
||||||
@ -120,7 +120,7 @@
|
|||||||
import { ref, computed, onMounted, onUnmounted, watch } from "vue";
|
import { ref, computed, onMounted, onUnmounted, watch } from "vue";
|
||||||
import Fuse from "fuse.js";
|
import Fuse from "fuse.js";
|
||||||
import { HammerIcon, PlusIcon, SearchIcon } from "@modrinth/assets";
|
import { HammerIcon, PlusIcon, SearchIcon } from "@modrinth/assets";
|
||||||
import { ButtonStyled } from "@modrinth/ui";
|
import { ButtonStyled, CopyCode } from "@modrinth/ui";
|
||||||
import type { Server, ModrinthServersFetchError } from "@modrinth/utils";
|
import type { Server, ModrinthServersFetchError } from "@modrinth/utils";
|
||||||
import { reloadNuxtApp } from "#app";
|
import { reloadNuxtApp } from "#app";
|
||||||
import { useServersFetch } from "~/composables/servers/servers-fetch.ts";
|
import { useServersFetch } from "~/composables/servers/servers-fetch.ts";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user