mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-26 16:52:08 +05:30
adapt to actual api
This commit is contained in:
parent
c52f4923ff
commit
514ec92976
@ -26,14 +26,14 @@
|
|||||||
icon={item.icon}
|
icon={item.icon}
|
||||||
>
|
>
|
||||||
<LinksOuter>
|
<LinksOuter>
|
||||||
<InstanceLink url={item.link} {item} type="main" />
|
<InstanceLink url={item.link} item={item.status} type="main" />
|
||||||
|
|
||||||
{#if item.us}
|
{#if item.us}
|
||||||
<InstanceLink url={item.us} {item} type="us" />
|
<InstanceLink url={item.us} item={item.statusUs} type="us" />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if item.backup}
|
{#if item.backup}
|
||||||
<InstanceLink url={item.backup} {item} type="backup" />
|
<InstanceLink url={item.backup} item={item.statusBp} type="backup" />
|
||||||
{/if}
|
{/if}
|
||||||
</LinksOuter>
|
</LinksOuter>
|
||||||
</CardInner>
|
</CardInner>
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
export let type: "main" | "us" | "backup";
|
export let type: "main" | "us" | "backup";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Link {url} class="web {item.status === 200 ? "" : "pointer-events-none cursor-default opacity-50"}">
|
<Link {url} class="web {item === 200 ? "" : "pointer-events-none cursor-default opacity-50"}">
|
||||||
<div class="withText">
|
<div class="withText">
|
||||||
<div class="{item.status === 200 ? "i-fa6-solid:arrow-up-right-from-square" : "i-fa6-solid:xmark"}" />
|
<div class="{item === 200 ? "i-fa6-solid:arrow-up-right-from-square" : "i-fa6-solid:xmark"}" />
|
||||||
<span>
|
<span>
|
||||||
{#if type === "main"}
|
{#if type === "main"}
|
||||||
Visit
|
Visit
|
||||||
|
Loading…
Reference in New Issue
Block a user