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