This commit is contained in:
Andras Bacsai
2021-06-17 20:47:09 +02:00
committed by GitHub
parent dae91267e8
commit d43cd663d2
23 changed files with 1142 additions and 1742 deletions

View File

@@ -8,6 +8,8 @@
import Loading from '$components/Loading.svelte';
import Plausible from '$components/Service/Plausible.svelte';
import { browser } from '$app/env';
import CodeServer from '$components/Service/CodeServer.svelte';
import MinIo from '$components/Service/MinIO.svelte';
let service = {};
async function loadServiceConfig() {
if ($page.params.name) {
@@ -33,6 +35,10 @@
<div>Plausible Analytics</div>
{:else if $page.params.name === 'nocodb'}
<div>NocoDB</div>
{:else if $page.params.name === 'code-server'}
<div>VSCode Server</div>
{:else if $page.params.name === 'minio'}
<div>MinIO</div>
{/if}
<div class="px-4">
@@ -48,6 +54,28 @@
class="w-8 mx-auto"
src="https://cdn.coollabs.io/assets/coolify/services/nocodb/nocodb.png"
/>
{:else if $page.params.name === 'code-server'}
<svg class="w-8 mx-auto" viewBox="0 0 128 128">
<path
d="M3.656 45.043s-3.027-2.191.61-5.113l8.468-7.594s2.426-2.559 4.989-.328l78.175 59.328v28.45s-.039 4.468-5.757 3.976zm0 0"
fill="#2489ca"
/><path
d="M23.809 63.379L3.656 81.742s-2.07 1.543 0 4.305l9.356 8.527s2.222 2.395 5.508-.328l21.359-16.238zm0 0"
fill="#1070b3"
/><path
d="M59.184 63.531l36.953-28.285-.239-28.297S94.32.773 89.055 3.99L39.879 48.851zm0 0"
fill="#0877b9"
/><path
d="M90.14 123.797c2.145 2.203 4.747 1.48 4.747 1.48l28.797-14.222c3.687-2.52 3.171-5.645 3.171-5.645V20.465c0-3.735-3.812-5.024-3.812-5.024L98.082 3.38c-5.453-3.379-9.027.61-9.027.61s4.593-3.317 6.843 2.96v112.317c0 .773-.164 1.53-.492 2.214-.656 1.332-2.086 2.57-5.504 2.051zm0 0"
fill="#3c99d4"
/>
</svg>
{:else if $page.params.name === 'minio'}
<img
alt="minio logo"
class="w-7 mx-auto"
src="https://cdn.coollabs.io/assets/coolify/services/minio/MINIO_Bird.png"
/>
{/if}
</div>
<a target="_blank" class="icon mx-2" href={service.config.baseURL}>
@@ -74,6 +102,10 @@
<Plausible {service} />
{:else if $page.params.name === 'nocodb'}
<div class="font-bold">Nothing to show here. Enjoy using NocoDB!</div>
{:else if $page.params.name === 'code-server'}
<CodeServer {service} />
{:else if $page.params.name === 'minio'}
<MinIo {service} />
{/if}
</div>
</div>