You've already forked AstralRinth
forked from didirus/AstralRinth
fix: info panel (#3859)
This commit is contained in:
@@ -104,7 +104,7 @@
|
|||||||
<tr v-for="property in properties" :key="property.name">
|
<tr v-for="property in properties" :key="property.name">
|
||||||
<td v-if="property.value !== 'Unknown'" class="py-3">{{ property.name }}</td>
|
<td v-if="property.value !== 'Unknown'" class="py-3">{{ property.name }}</td>
|
||||||
<td v-if="property.value !== 'Unknown'" class="px-4">
|
<td v-if="property.value !== 'Unknown'" class="px-4">
|
||||||
<UiCopyCode :text="property.value" />
|
<CopyCode :text="property.value" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -115,13 +115,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ButtonStyled } from "@modrinth/ui";
|
import { ButtonStyled, CopyCode } from "@modrinth/ui";
|
||||||
import { CopyIcon, ExternalIcon, EyeIcon, EyeOffIcon } from "@modrinth/assets";
|
import { CopyIcon, ExternalIcon, EyeIcon, EyeOffIcon } from "@modrinth/assets";
|
||||||
import { ModrinthServer } from "~/composables/servers/modrinth-servers.ts";
|
import { ModrinthServer } from "~/composables/servers/modrinth-servers.ts";
|
||||||
|
|
||||||
const route = useNativeRoute();
|
|
||||||
const serverId = route.params.id as string;
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
server: ModrinthServer;
|
server: ModrinthServer;
|
||||||
}>();
|
}>();
|
||||||
@@ -147,8 +144,8 @@ const copyToClipboard = (name: string, textToCopy?: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const properties = [
|
const properties = [
|
||||||
{ name: "Server ID", value: serverId ?? "Unknown" },
|
{ name: "Server ID", value: props.server.serverId ?? "Unknown" },
|
||||||
{ name: "Node", value: data.value?.datacenter ?? "Unknown" },
|
{ name: "Node", value: data.value?.node?.instance ?? "Unknown" },
|
||||||
{ name: "Kind", value: data.value?.upstream?.kind ?? data.value?.loader ?? "Unknown" },
|
{ name: "Kind", value: data.value?.upstream?.kind ?? data.value?.loader ?? "Unknown" },
|
||||||
{ name: "Project ID", value: data.value?.upstream?.project_id ?? "Unknown" },
|
{ name: "Project ID", value: data.value?.upstream?.project_id ?? "Unknown" },
|
||||||
{ name: "Version ID", value: data.value?.upstream?.version_id ?? "Unknown" },
|
{ name: "Version ID", value: data.value?.upstream?.version_id ?? "Unknown" },
|
||||||
|
|||||||
Reference in New Issue
Block a user