Update
This commit is contained in:
rodič
c2e1aa498e
revize
6de0b886a6
|
@ -1,5 +1,14 @@
|
|||
<script>
|
||||
import spec from '$lib/spec.json'
|
||||
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
let spec = null
|
||||
|
||||
onMount(async () => {
|
||||
|
||||
const resp = await fetch('https://sysinfo.gwei.cz/api/spec')
|
||||
spec = await resp.json()
|
||||
})
|
||||
|
||||
const serverCols = [
|
||||
{ title: 'Name', key: 'name' },
|
||||
|
@ -22,10 +31,15 @@
|
|||
</script>
|
||||
|
||||
|
||||
<svelte:head>
|
||||
<title>sysinfo.gwei.cz</title>
|
||||
</svelte:head>
|
||||
|
||||
<section class="mb-10">
|
||||
Overview of Gwei.cz servers and services
|
||||
</section>
|
||||
|
||||
{#if spec}
|
||||
<section class="mb-10">
|
||||
<h2 class="mb-4 text-xl font-bold">Servers</h2>
|
||||
<table class="table-auto w-full text-sm">
|
||||
|
@ -73,10 +87,11 @@
|
|||
|
||||
<section class="mt-16 text-base">
|
||||
Generated {spec.time}
|
||||
| <a href="https://sysinfo.gwei.cz/spec.json" class="underline hover:no-underline">spec.json</a>
|
||||
| <a href="https://sysinfo.gwei.cz/api/spec" class="underline hover:no-underline">api</a>
|
||||
| <a href="https://git.gwei.cz/gweicz/sysinfo" class="underline hover:no-underline">source code</a>
|
||||
</section>
|
||||
|
||||
<!--section class="pt-60">
|
||||
<code><pre>{JSON.stringify(spec, null, 2)}</pre></code>
|
||||
</section-->
|
||||
{/if}
|
||||
|
|
Načítá se…
Odkázat v novém úkolu