mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-13 11:45:59 +05:30
adapt to actual api
This commit is contained in:
parent
c52f4923ff
commit
514ec92976
@ -26,14 +26,14 @@
|
||||
icon={item.icon}
|
||||
>
|
||||
<LinksOuter>
|
||||
<InstanceLink url={item.link} {item} type="main" />
|
||||
<InstanceLink url={item.link} item={item.status} type="main" />
|
||||
|
||||
{#if item.us}
|
||||
<InstanceLink url={item.us} {item} type="us" />
|
||||
<InstanceLink url={item.us} item={item.statusUs} type="us" />
|
||||
{/if}
|
||||
|
||||
{#if item.backup}
|
||||
<InstanceLink url={item.backup} {item} type="backup" />
|
||||
<InstanceLink url={item.backup} item={item.statusBp} type="backup" />
|
||||
{/if}
|
||||
</LinksOuter>
|
||||
</CardInner>
|
||||
|
@ -6,9 +6,9 @@
|
||||
export let type: "main" | "us" | "backup";
|
||||
</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="{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>
|
||||
{#if type === "main"}
|
||||
Visit
|
||||
|
Loading…
Reference in New Issue
Block a user