An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat: new dashboard
Andras Bacsai1262f6b11bdb
diff --git a/apps/api/src/routes/api/v1/handlers.ts b/apps/api/src/routes/api/v1/handlers.tsindex b55f8e8b42..6d3112e979 100644--- a/apps/api/src/routes/api/v1/handlers.ts+++ b/apps/api/src/routes/api/v1/handlers.ts@@ -31,7 +31,7 @@ export async function checkUpdate(request: FastifyRequest) {const { data: versions } = await axios.get(`https://get.coollabs.io/versions.json?appId=${process.env['COOLIFY_APP_ID']}&version=${currentVersion}`);- const latestVersion = versions['coolify'].main.version+ const latestVersion = versions['coolify'].main.versionconst isUpdateAvailable = compare(latestVersion, currentVersion);if (isStaging) {return {@@ -96,34 +96,19 @@ export async function showDashboard(request: FastifyRequest) {try {const userId = request.user.userId;const teamId = request.user.teamId;- const applicationsCount = await prisma.application.count({+ const applications = await prisma.application.findMany({where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }});- const sourcesCount = await prisma.gitSource.count({+ const databases = await prisma.database.findMany({where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }});- const destinationsCount = await prisma.destinationDocker.count({+ const services = await prisma.service.findMany({where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }});- const teamsCount = await prisma.permission.count({ where: { userId } });- const databasesCount = await prisma.database.count({- where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }- });- const servicesCount = await prisma.service.count({- where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }- });- const teams = await prisma.permission.findMany({- where: { userId },- include: { team: { include: { _count: { select: { users: true } } } } }- });return {- teams,- applicationsCount,- sourcesCount,- destinationsCount,- teamsCount,- databasesCount,- servicesCount,+ applications,+ databases,+ services,};} catch ({ status, message }) {return errorHandler({ status, message })diff --git a/apps/ui/src/lib/components/Toast.svelte b/apps/ui/src/lib/components/Toast.svelteindex dd5547a46e..282bc159f6 100644--- a/apps/ui/src/lib/components/Toast.svelte+++ b/apps/ui/src/lib/components/Toast.svelte@@ -1,10 +1,16 @@<script>+ import { createEventDispatcher } from 'svelte';+ const dispatch = createEventDispatcher();export let type = 'info';</script><div+ on:mouseover={() => dispatch('pause')}+ on:focus={() => dispatch('pause')}+ on:mouseout={() => dispatch('resume')}+ on:blur={() => dispatch('resume')}class="alert shadow-lg text-white rounded"- class:alert-success={type === 'success'}+ class:bg-coollabs={type === 'success'}class:alert-error={type === 'error'}class:alert-info={type === 'info'}>diff --git a/apps/ui/src/lib/components/Toasts.svelte b/apps/ui/src/lib/components/Toasts.svelteindex 856b0c261c..2e53c6287a 100644--- a/apps/ui/src/lib/components/Toasts.svelte+++ b/apps/ui/src/lib/components/Toasts.svelte@@ -2,14 +2,18 @@import { fade } from 'svelte/transition';import Toast from './Toast.svelte';- import { toasts } from '$lib/store';+ import { pauseToast, resumeToast, toasts } from '$lib/store';</script>{#if $toasts}<section>- <article class="toast toast-bottom toast-end rounded-none" role="alert" transition:fade>+ <article class="toast toast-top toast-end rounded-none" role="alert" transition:fade>{#each $toasts as toast (toast.id)}- <Toast type={toast.type}>{@html toast.message}</Toast>+ <Toast+ type={toast.type}+ on:resume={() => resumeToast(toast.id)}+ on:pause={() => pauseToast(toast.id)}>{@html toast.message}</Toast+ >{/each}</article></section>@@ -17,6 +21,6 @@<style lang="postcss">section {- @apply fixed top-0 left-0 right-0 w-full flex flex-col mt-4 justify-center z-[1000];+ @apply fixed top-0 left-0 right-0 w-full flex flex-col mt-4 justify-center z-[1000];}</style>diff --git a/apps/ui/src/lib/components/Usage.svelte b/apps/ui/src/lib/components/Usage.svelteindex 79b69662dd..a33b6d3cc7 100644--- a/apps/ui/src/lib/components/Usage.svelte+++ b/apps/ui/src/lib/components/Usage.svelte@@ -22,11 +22,10 @@usage: false,cleanup: false};- import { addToast, appSession } from '$lib/store';+ import { appSession } from '$lib/store';import { onDestroy, onMount } from 'svelte';- import { get, post } from '$lib/api';+ import { get } from '$lib/api';import { errorNotification } from '$lib/common';- import Trend from './Trend.svelte';async function getStatus() {if (loading.usage) return;loading.usage = true;@@ -49,118 +48,68 @@return errorNotification(error);}});-- let warning = {- memory: false,- cpu: false,- disk: false- };- let trends = {- memory: 'stable',- cpu: 'stable',- disk: 'stable'- };- async function manuallyCleanupStorage() {- try {- loading.cleanup = true- await post('/internal/cleanup', {});- return addToast({- message: "Cleanup done.",- type:"success"- })- } catch(error) {- return errorNotification(error);- } finally {- loading.cleanup = false- }- }</script>{#if $appSession.teamId === '0'}- <div class="px-6 text-2xl font-bold">Server Usage</div>- <dl class="relative mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Total Memory</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {(usage?.memory.totalMemMb).toFixed(0)}<span class="text-sm">MB</span>- </dd>- </div>-- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Used Memory</dt>- <dd class="mt-1 text-3xl font-semibold text-white ">- {(usage?.memory.usedMemMb).toFixed(0)}<span class="text-sm">MB</span>- </dd>+ <div class="pb-4">+ <div class="title">Hardware Details</div>+ <div class="text-center p-8 ">+ <div>+ <div class="stat w-64">+ <div class="stat-title">Total Memory</div>+ <div class="stat-value">+ {(usage?.memory.totalMemMb).toFixed(0)}<span class="text-sm">MB</span>+ </div>+ </div>+ <div class="stat w-64">+ <div class="stat-title">Used Memory</div>+ <div class="stat-value">+ {(usage?.memory.usedMemMb).toFixed(0)}<span class="text-sm">MB</span>+ </div>+ </div>+ <div class="stat w-64">+ <div class="stat-title">Free Memory</div>+ <div class="stat-value">+ {usage?.memory.freeMemPercentage}<span class="text-sm">%</span>+ </div>+ </div>+ </div>+ <div class="py-10">+ <div class="stat w-64">+ <div class="stat-title">Total CPUs</div>+ <div class="stat-value">+ {usage?.cpu.count}+ </div>+ </div>+ <div class="stat w-64">+ <div class="stat-title">CPU Usage</div>+ <div class="stat-value">+ {usage?.cpu.usage}<span class="text-sm">%</span>+ </div>+ </div>+ <div class="stat w-64">+ <div class="stat-title">Load Average (5,10,30mins)</div>+ <div class="stat-value">{usage?.cpu.load}</div>+ </div>+ </div>+ <div>+ <div class="stat w-64">+ <div class="stat-title">Total Disk</div>+ <div class="stat-value">+ {usage?.disk.totalGb}<span class="text-sm">GB</span>+ </div>+ </div>+ <div class="stat w-64">+ <div class="stat-title">Used Disk</div>+ <div class="stat-value">+ {usage?.disk.usedGb}<span class="text-sm">GB</span>+ </div>+ </div>+ <div class="stat w-64">+ <div class="stat-title">Free Disk</div>+ <div class="stat-value">{usage?.disk.freePercentage}<span class="text-sm">%</span></div>+ </div>+ </div></div>-- <div- class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left"- class:bg-red-500={warning.memory}- >- <dt class="truncate text-sm font-medium text-white">Free Memory</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.memory.freeMemPercentage}<span class="text-sm">%</span>- {#if !warning.memory}- <Trend trend={trends.memory} />- {/if}- </dd>- </div>- </dl>- <dl class="relative mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Total CPUs</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.cpu.count}- </dd>- </div>- <div- class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left"- class:bg-red-500={warning.cpu}- >- <dt class="truncate text-sm font-medium text-white">CPU Usage</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.cpu.usage}<span class="text-sm">%</span>- {#if !warning.cpu}- <Trend trend={trends.cpu} />- {/if}- </dd>- </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Load Average (5/10/30mins)</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.cpu.load.join('/')}- </dd>- </div>- </dl>- <dl class="relative mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Total Disk</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.disk.totalGb}<span class="text-sm">GB</span>- </dd>- </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Used Disk</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.disk.usedGb}<span class="text-sm">GB</span>- </dd>- <button on:click={manuallyCleanupStorage} class:loading={loading.cleanup} class="btn btn-sm"- >Cleanup Storage</button- >- </div>- <div- class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left"- class:bg-red-500={warning.disk}- >- <dt class="truncate text-sm font-medium text-white">Free Disk</dt>- <dd class="mt-1 text-3xl font-semibold text-white">- {usage?.disk.freePercentage}<span class="text-sm">%</span>- {#if !warning.disk}- <Trend trend={trends.disk} />- {/if}- </dd>- </div>- </dl>-- <div class="px-6 pt-20 text-2xl font-bold">Resources</div>+ </div>{/if}diff --git a/apps/ui/src/lib/components/svg/applications/ApplicationIcons.svelte b/apps/ui/src/lib/components/svg/applications/ApplicationIcons.sveltenew file mode 100644index 0000000000..a633375b70--- /dev/null+++ b/apps/ui/src/lib/components/svg/applications/ApplicationIcons.svelte@@ -0,0 +1,41 @@+<script lang="ts">+ import * as Icons from '$lib/components/svg/applications';+ export let application: any;+ export let isAbsolute = true;+</script>++{#if application.buildPack.toLowerCase() === 'rust'}+ <Icons.Rust {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'node'}+ <Icons.Nodejs {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'react'}+ <Icons.React {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'svelte'}+ <Icons.Svelte {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'vuejs'}+ <Icons.Vuejs {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'php'}+ <Icons.Php {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'python'}+ <Icons.Python {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'static'}+ <Icons.Static {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'nestjs'}+ <Icons.Nestjs {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'nuxtjs'}+ <Icons.Nuxtjs {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'nextjs'}+ <Icons.Nextjs {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'gatsby'}+ <Icons.Gatsby {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'docker'}+ <Icons.Docker {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'astro'}+ <Icons.Astro {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'eleventy'}+ <Icons.Eleventy {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'deno'}+ <Icons.Deno {isAbsolute} />+{:else if application.buildPack.toLowerCase() === 'laravel'}+ <Icons.Laravel {isAbsolute} />+{/if}diff --git a/apps/ui/src/lib/components/svg/applications/Astro.svelte b/apps/ui/src/lib/components/svg/applications/Astro.svelteindex df8d0804f9..2344372ab6 100644--- a/apps/ui/src/lib/components/svg/applications/Astro.svelte+++ b/apps/ui/src/lib/components/svg/applications/Astro.svelte@@ -1,5 +1,9 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="absolute top-0 left-0 -m-6 h-14 w-14"+ class={isAbsolute ? 'absolute top-0 left-0 -m-6 h-14 w-14' : 'mx-auto w-8 h-8'}viewBox="0 0 256 256"fill="none"xmlns="http://www.w3.org/2000/svg"diff --git a/apps/ui/src/lib/components/svg/applications/Deno.svelte b/apps/ui/src/lib/components/svg/applications/Deno.svelteindex 4e17942264..25eee8132d 100644--- a/apps/ui/src/lib/components/svg/applications/Deno.svelte+++ b/apps/ui/src/lib/components/svg/applications/Deno.svelte@@ -1,5 +1,11 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="text-white-500 absolute top-0 left-0 -m-4 h-10 w-10"+ class={isAbsolute+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-white-500'+ : 'mx-auto w-8 h-8 text-white-500'}xmlns="http://www.w3.org/2000/svg"aria-hidden="true"focusable="false"diff --git a/apps/ui/src/lib/components/svg/applications/Docker.svelte b/apps/ui/src/lib/components/svg/applications/Docker.svelteindex 684bc06d3a..981d4d225c 100644--- a/apps/ui/src/lib/components/svg/applications/Docker.svelte+++ b/apps/ui/src/lib/components/svg/applications/Docker.svelte@@ -1,4 +1,11 @@-<svg viewBox="0 0 128 128" class="absolute top-0 left-0 -m-8 h-16 w-16">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ viewBox="0 0 128 128"+ class={isAbsolute ? 'absolute top-0 left-0 -m-8 h-16 w-16' : 'mx-auto w-8 h-8'}+><g><pathfill-rule="evenodd"diff --git a/apps/ui/src/lib/components/svg/applications/Eleventy.svelte b/apps/ui/src/lib/components/svg/applications/Eleventy.svelteindex 691a105205..b2d8d61226 100644--- a/apps/ui/src/lib/components/svg/applications/Eleventy.svelte+++ b/apps/ui/src/lib/components/svg/applications/Eleventy.svelte@@ -1,4 +1,11 @@-<svg viewBox="0 0 128 128" class="absolute top-0 left-0 -m-8 h-16 w-16">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ viewBox="0 0 128 128"+ class={isAbsolute ? 'absolute top-0 left-0 -m-8 h-16 w-16' : 'mx-auto w-8 h-8'}+><path fill="transparent" d="M18 0h92v128H18z" /><pathd="M55.3 36.3h.4c1.1 0 1.5.9 1.5 2.3v41.8c0 1.8-.4 3-1.6 3l-4.8-.1c-1.2 0-1.6-1-1.6-3V45.5l-2.1.5c-1 0-1.5-.8-1.5-2.2v-3c0-1.2.4-2 1.4-2.2l8.3-2.2zm16 36.1l.1 3 .6 1.3.6.6.8.1h2.2c1 0 1.7.8 1.7 2v1.9c0 1.2-.6 2-1.8 2h-3.2l-2.3-.1c-.7-.2-1.4-.5-2.2-1a5.7 5.7 0 01-2-1.9c-.4-.8-.8-1.9-1-3.2-.4-1.4-.5-3-.5-4.8v-16h-1.5c-1.1 0-1.6-1-1.6-2.4v-1.7c0-1.4.5-2.3 1.6-2.3h1.5v-.1l.6-12.3c0-1.5.5-2.5 1.6-2.5h3.1c1.2 0 1.6 1 1.6 2.5v12.3h3.6c1.1 0 1.6 1 1.6 2.4V54c0 1.4-.5 2.3-1.6 2.3h-3.6v16.2zm9.4 15.7c0-2 .3-3.2 1.5-3.2.2 0 .4 0 1.4.4l1.1.3.2-.1.4-.7c.3-.6.4-1.6.4-3l-.6-3.3L79 52.7v-.9c0-1.2.3-2 1.2-2H84c.5 0 1 .3 1.3.6.3.4.5.9.6 1.6l3.4 18 2.6-17.8c.1-.8.3-1.3.6-1.7.3-.4.8-.6 1.3-.6h2.6c1 0 1.4.8 1.4 2l-.1.8L92 82.2c-.5 2.5-1 4.4-1.5 5.7a6.6 6.6 0 01-2 3c-.9.6-1.9.9-3.1.9h-.3c-2 0-3.3-.6-4.1-1.7-.3-.4-.4-1-.4-2zM31.3 38.8l8.2-2.1h.5c1 0 1.4.8 1.4 2.2v41.9c0 1.8-.4 2.9-1.6 2.9h-4.7c-1.2 0-1.6-1.1-1.6-3v-35l-2 .6c-1.2 0-1.6-.9-1.6-2.2v-3c0-1.2.4-2 1.4-2.3z"fill="#FFF"diff --git a/apps/ui/src/lib/components/svg/applications/Gatsby.svelte b/apps/ui/src/lib/components/svg/applications/Gatsby.svelteindex af1d7b3b6f..d67a63417d 100644--- a/apps/ui/src/lib/components/svg/applications/Gatsby.svelte+++ b/apps/ui/src/lib/components/svg/applications/Gatsby.svelte@@ -1,4 +1,11 @@-<svg class="absolute top-0 left-0 -m-4 h-10 w-10" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}+ viewBox="0 0 128 128"+><pathfill="#64328B"d="M64,0C28.7,0,0,28.7,0,64v0c0,35.3,28.7,64,64,64s64-28.7,64-64v0C128,28.7,99.3,0,64,0z M13.2,64L64,114.8 C35.9,114.8,13.2,92.1,13.2,64z M75.4,113.5l-60.9-61C19.7,30,39.9,13.2,64,13.2c16.6,0,31.3,7.9,40.5,20.2l-7.5,7.2 C89.7,30.2,77.7,23.5,64,23.5c-17.6,0-32.5,11.2-38.1,26.8C33.1,57,75.4,98.8,78.1,102c12.7-4.7,22.3-15.5,25.4-28.9H81.9v-9.4 l33,0.2C114.8,88.2,98,108.4,75.4,113.5z"diff --git a/apps/ui/src/lib/components/svg/applications/Laravel.svelte b/apps/ui/src/lib/components/svg/applications/Laravel.svelteindex ab544a5969..d13694a8c3 100644--- a/apps/ui/src/lib/components/svg/applications/Laravel.svelte+++ b/apps/ui/src/lib/components/svg/applications/Laravel.svelte@@ -1,5 +1,9 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="absolute top-0 left-0 -m-4 h-10 w-10"+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}viewBox="0 0 50 52"xmlns="http://www.w3.org/2000/svg"><title>Logomark</title><pathdiff --git a/apps/ui/src/lib/components/svg/applications/Nestjs.svelte b/apps/ui/src/lib/components/svg/applications/Nestjs.svelteindex 81755e25f4..ac0f8af3f7 100644--- a/apps/ui/src/lib/components/svg/applications/Nestjs.svelte+++ b/apps/ui/src/lib/components/svg/applications/Nestjs.svelte@@ -1,4 +1,11 @@-<svg class="absolute top-0 left-0 -m-4 h-10 w-10" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-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applications/Nextjs.svelteindex 2aec938f1e..9ed0227d13 100644--- a/apps/ui/src/lib/components/svg/applications/Nextjs.svelte+++ b/apps/ui/src/lib/components/svg/applications/Nextjs.svelte@@ -1,4 +1,13 @@-<svg class="absolute top-0 left-0 -m-4 h-10 w-10 fill-current text-blue-500" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 fill-current text-blue-500'+ : 'mx-auto w-8 h-8 fill-current text-blue-500'}+ viewBox="0 0 128 128"+><pathd="M64 0C28.7 0 0 28.7 0 64s28.7 64 64 64c11.2 0 21.7-2.9 30.8-7.9L48.4 55.3v36.6h-6.8V41.8h6.8l50.5 75.8C116.4 106.2 128 86.5 128 64c0-35.3-28.7-64-64-64zm22.1 84.6l-7.5-11.3V41.8h7.5v42.8z"/>diff --git a/apps/ui/src/lib/components/svg/applications/Nodejs.svelte b/apps/ui/src/lib/components/svg/applications/Nodejs.svelteindex 3e7e84d28b..93140f08ff 100644--- a/apps/ui/src/lib/components/svg/applications/Nodejs.svelte+++ b/apps/ui/src/lib/components/svg/applications/Nodejs.svelte@@ -1,5 +1,9 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="absolute top-0 left-0 -m-4 h-10 w-10 text-green-500"+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-green-500' : 'mx-auto w-8 h-8 text-green-500'}xmlns="http://www.w3.org/2000/svg"aria-hidden="true"focusable="false"diff --git a/apps/ui/src/lib/components/svg/applications/Nuxtjs.svelte b/apps/ui/src/lib/components/svg/applications/Nuxtjs.svelteindex 738cd715d2..cb2a66ff4e 100644--- a/apps/ui/src/lib/components/svg/applications/Nuxtjs.svelte+++ b/apps/ui/src/lib/components/svg/applications/Nuxtjs.svelte@@ -1,5 +1,9 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="absolute top-0 left-0 -m-4 h-10 w-10"+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}xmlns="http://www.w3.org/2000/svg"viewBox="0 0 400 400">diff --git a/apps/ui/src/lib/components/svg/applications/PHP.svelte b/apps/ui/src/lib/components/svg/applications/PHP.svelteindex 554680ad6c..d52ab0dd5e 100644--- a/apps/ui/src/lib/components/svg/applications/PHP.svelte+++ b/apps/ui/src/lib/components/svg/applications/PHP.svelte@@ -1,4 +1,13 @@-<svg viewBox="0 0 128 128" class="absolute top-0 left-0 -m-6 h-14 w-14 text-white">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ viewBox="0 0 128 128"+ class={isAbsolute+ ? 'absolute top-0 left-0 -m-6 h-14 w-14 text-white'+ : 'mx-auto w-8 h-8 text-white'}+><pathfill="#6181B6"d="M64 33.039c-33.74 0-61.094 13.862-61.094 30.961s27.354 30.961 61.094 30.961 61.094-13.862 61.094-30.961-27.354-30.961-61.094-30.961zm-15.897 36.993c-1.458 1.364-3.077 1.927-4.86 2.507-1.783.581-4.052.461-6.811.461h-6.253l-1.733 10h-7.301l6.515-34h14.04c4.224 0 7.305 1.215 9.242 3.432 1.937 2.217 2.519 5.364 1.747 9.337-.319 1.637-.856 3.159-1.614 4.515-.759 1.357-1.75 2.624-2.972 3.748zm21.311 2.968l2.881-14.42c.328-1.688.208-2.942-.361-3.555-.57-.614-1.782-1.025-3.635-1.025h-5.79l-3.731 19h-7.244l6.515-33h7.244l-1.732 9h6.453c4.061 0 6.861.815 8.402 2.231s2.003 3.356 1.387 6.528l-3.031 15.241h-7.358zm40.259-11.178c-.318 1.637-.856 3.133-1.613 4.488-.758 1.357-1.748 2.598-2.971 3.722-1.458 1.364-3.078 1.927-4.86 2.507-1.782.581-4.053.461-6.812.461h-6.253l-1.732 10h-7.301l6.514-34h14.041c4.224 0 7.305 1.215 9.241 3.432 1.935 2.217 2.518 5.418 1.746 9.39zM95.919 54h-5.001l-2.727 14h4.442c2.942 0 5.136-.29 6.576-1.4 1.442-1.108 2.413-2.828 2.918-5.421.484-2.491.264-4.434-.66-5.458-.925-1.024-2.774-1.721-5.548-1.721zM38.934 54h-5.002l-2.727 14h4.441c2.943 0 5.136-.29 6.577-1.4 1.441-1.108 2.413-2.828 2.917-5.421.484-2.491.264-4.434-.66-5.458s-2.772-1.721-5.546-1.721z"diff --git a/apps/ui/src/lib/components/svg/applications/Python.svelte b/apps/ui/src/lib/components/svg/applications/Python.svelteindex 791811fce5..17abb0f6d4 100644--- a/apps/ui/src/lib/components/svg/applications/Python.svelte+++ b/apps/ui/src/lib/components/svg/applications/Python.svelte@@ -1,4 +1,11 @@-<svg class="absolute top-0 left-0 -m-6 h-14 w-14" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute ? 'absolute top-0 left-0 -m-6 h-14 w-14' : 'mx-auto w-8 h-8'}+ viewBox="0 0 128 128"+><linearGradientid="a"gradientUnits="userSpaceOnUse"diff --git a/apps/ui/src/lib/components/svg/applications/React.svelte b/apps/ui/src/lib/components/svg/applications/React.svelteindex ed05e65505..c0867ffc8a 100644--- a/apps/ui/src/lib/components/svg/applications/React.svelte+++ b/apps/ui/src/lib/components/svg/applications/React.svelte@@ -1,4 +1,13 @@-<svg class="absolute top-0 left-0 -m-4 h-10 w-10 text-blue-500" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-blue-500'+ : 'mx-auto w-8 h-8 text-blue-500'}+ viewBox="0 0 128 128"+><g fill="#61DAFB"><circle cx="64" cy="64" r="11.4" /><pathd="M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26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.2 2.2 2.4 4.1 3.6 6.1zm-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2zm25.6-27.1c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2-2.3 0-4.6.1-6.9.2 2.2-2.9 4.5-5.7 6.9-8.3zm22.2 21l-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2zm-54.5-16.2c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6zm-24.7 29c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5-13.8-4-22.1-10-22.1-15.6zm28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9zm60.8-20.3c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6zm9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4z"diff --git a/apps/ui/src/lib/components/svg/applications/Rust.svelte b/apps/ui/src/lib/components/svg/applications/Rust.svelteindex 19ce81f29a..97bcee9036 100644--- a/apps/ui/src/lib/components/svg/applications/Rust.svelte+++ b/apps/ui/src/lib/components/svg/applications/Rust.svelte@@ -1,4 +1,11 @@-<svg class="absolute top-0 left-0 -m-5 h-12 w-12" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12' : 'mx-auto w-8 h-8'}+ viewBox="0 0 128 128"+><pathd="M62.271 10.880 C 62.082 10.990,61.289 12.128,60.508 13.409 C 58.548 16.626,58.526 16.628,55.893 13.857 C 54.180 12.055,53.766 11.725,53.214 11.729 C 52.855 11.731,52.402 11.853,52.206 12.000 C 52.011 12.147,51.458 13.317,50.978 14.600 C 49.879 17.539,49.826 17.634,49.217 17.751 C 48.842 17.822,48.120 17.420,46.389 16.177 C 45.111 15.258,43.857 14.507,43.603 14.507 C 42.549 14.507,42.252 15.083,41.750 18.100 C 41.112 21.936,41.134 21.923,37.676 20.352 C 36.280 19.719,34.956 19.200,34.733 19.200 C 34.510 19.200,34.087 19.440,33.794 19.733 C 33.262 20.266,33.261 20.268,33.406 23.201 L 33.552 26.137 32.997 26.434 C 32.505 26.697,32.166 26.665,29.988 26.150 C 27.145 25.479,26.545 25.497,25.969 26.272 L 25.548 26.838 26.113 29.259 C 26.423 30.590,26.722 31.872,26.778 32.107 C 26.833 32.341,26.738 32.716,26.566 32.939 C 26.282 33.306,25.980 33.339,23.349 33.299 C 18.896 33.229,18.643 33.611,20.483 37.627 C 21.068 38.902,21.547 40.060,21.547 40.199 C 21.547 40.933,20.962 41.200,18.449 41.610 C 17.043 41.839,15.821 42.027,15.733 42.027 C 15.645 42.027,15.381 42.219,15.147 42.453 C 14.382 43.218,14.599 43.936,16.334 46.385 C 18.495 49.435,18.491 49.446,14.921 50.812 C 10.861 52.365,10.779 52.748,13.870 55.680 C 16.749 58.410,16.752 58.370,13.493 60.419 C 11.024 61.970,10.986 62.007,10.923 62.848 C 10.847 63.871,10.865 63.889,13.813 65.690 C 16.728 67.470,16.728 67.524,13.867 70.231 C 10.790 73.141,10.885 73.566,14.948 75.099 C 18.498 76.438,18.503 76.454,16.338 79.504 C 15.111 81.233,14.720 81.953,14.720 82.487 C 14.720 83.486,15.240 83.741,18.347 84.263 C 20.964 84.704,21.547 84.963,21.547 85.685 C 21.547 85.833,21.067 87.001,20.480 88.279 C 18.654 92.256,18.862 92.587,23.184 92.587 C 27.209 92.587,27.102 92.464,26.235 96.094 C 25.581 98.830,25.571 99.354,26.163 99.945 C 26.616 100.399,27.470 100.348,30.141 99.709 C 32.181 99.222,32.539 99.188,33.012 99.441 L 33.552 99.730 33.406 102.665 C 33.261 105.599,33.262 105.601,33.794 106.134 C 34.087 106.427,34.516 106.667,34.746 106.667 C 34.976 106.667,36.300 106.151,37.689 105.520 C 41.136 103.955,41.114 103.942,41.750 107.766 C 42.254 110.797,42.548 111.360,43.624 111.360 C 43.891 111.360,45.118 110.640,46.352 109.760 C 48.519 108.214,49.081 107.972,49.658 108.339 C 49.807 108.433,50.385 109.703,50.942 111.161 C 51.761 113.305,52.061 113.863,52.517 114.081 C 53.385 114.497,53.922 114.163,55.962 111.941 C 58.425 109.258,58.526 109.271,60.537 112.530 C 62.758 116.128,63.333 116.120,65.610 112.457 C 67.572 109.301,67.549 109.303,70.201 112.073 C 71.962 113.911,72.337 114.204,72.931 114.204 C 73.310 114.204,73.763 114.062,73.936 113.888 C 74.110 113.714,74.686 112.429,75.216 111.033 C 75.746 109.636,76.295 108.420,76.437 108.330 C 76.998 107.973,77.579 108.224,79.743 109.760 C 81.017 110.665,82.216 111.360,82.501 111.360 C 83.559 111.360,83.941 110.609,84.381 107.657 C 84.757 105.140,84.833 104.899,85.328 104.648 C 85.815 104.401,86.107 104.484,88.391 105.521 C 89.780 106.151,91.104 106.667,91.334 106.667 C 91.564 106.667,92.000 106.420,92.301 106.118 L 92.850 105.570 92.699 102.755 C 92.555 100.067,92.568 99.923,92.997 99.535 C 93.438 99.136,93.483 99.138,95.949 99.701 C 98.935 100.383,99.492 100.401,100.053 99.840 C 100.601 99.292,100.595 99.172,99.845 96.009 C 99.004 92.461,98.891 92.587,102.933 92.587 C 105.688 92.587,105.995 92.548,106.346 92.161 C 106.932 91.513,106.793 90.771,105.614 88.258 C 105.019 86.992,104.536 85.840,104.540 85.698 C 104.560 84.951,105.147 84.696,107.860 84.255 C 109.520 83.986,110.762 83.674,110.987 83.471 C 111.741 82.790,111.464 81.904,109.743 79.491 C 107.586 76.467,107.595 76.438,111.049 75.165 C 115.185 73.641,115.303 73.133,112.208 70.192 C 109.341 67.468,109.340 67.483,112.480 65.555 C 116.276 63.225,116.282 62.700,112.547 60.382 C 109.335 58.389,109.337 58.417,112.216 55.683 C 115.304 52.749,115.220 52.365,111.159 50.812 C 107.575 49.441,107.564 49.407,109.742 46.418 C 111.039 44.638,111.360 44.047,111.360 43.437 C 111.360 42.371,110.882 42.132,107.738 41.624 C 105.111 41.200,104.533 40.942,104.533 40.195 C 104.533 40.053,105.013 38.910,105.600 37.653 C 106.749 35.192,106.910 34.207,106.260 33.618 C 105.911 33.302,105.443 33.257,102.939 33.298 C 100.319 33.342,99.984 33.305,99.621 32.940 C 99.224 32.541,99.228 32.485,99.848 29.898 C 100.608 26.728,100.611 26.651,99.986 26.064 C 99.352 25.468,98.956 25.478,96.045 26.163 C 93.924 26.663,93.573 26.696,93.091 26.438 L 92.544 26.145 92.695 23.219 L 92.847 20.294 92.300 19.747 C 91.999 19.446,91.572 19.200,91.350 19.200 C 91.129 19.200,89.812 19.723,88.424 20.361 C 86.106 21.428,85.857 21.499,85.356 21.237 C 84.856 20.975,84.773 20.717,84.346 18.110 C 83.853 15.094,83.548 14.507,82.477 14.507 C 82.223 14.507,80.964 15.262,79.679 16.185 C 77.569 17.701,77.286 17.844,76.760 17.661 C 76.325 17.509,76.072 17.178,75.763 16.355 C 75.534 15.749,75.096 14.581,74.788 13.760 C 74.166 12.104,73.819 11.733,72.887 11.733 C 72.367 11.733,71.896 12.107,70.208 13.860 C 67.555 16.616,67.545 16.615,65.594 13.415 C 64.814 12.136,63.999 10.994,63.782 10.878 C 63.294 10.616,62.720 10.617,62.271 10.880 M64.689 20.515 C 67.000 22.160,65.771 26.027,62.937 26.027 C 60.187 26.027,58.802 22.714,60.766 20.833 C 61.874 19.771,63.463 19.642,64.689 20.515 M61.783 30.729 C 63.298 31.305,63.920 30.959,67.379 27.625 L 69.978 25.119 71.078 25.265 C 74.528 25.723,81.390 28.737,85.333 31.526 C 88.956 34.090,93.771 39.312,95.823 42.903 L 96.262 43.672 94.318 48.052 C 93.248 50.461,92.373 52.685,92.373 52.996 C 92.373 53.713,92.843 54.847,93.296 55.222 C 93.487 55.381,95.302 56.255,97.329 57.164 L 101.013 58.818 101.158 59.755 C 101.345 60.976,101.370 63.975,101.200 64.827 L 101.067 65.493 98.964 65.493 C 96.525 65.493,96.713 65.275,96.581 68.267 C 96.485 70.436,95.961 71.635,94.769 72.411 C 92.827 73.678,89.620 73.448,88.260 71.945 C 88.051 71.714,87.645 70.553,87.357 69.364 C 86.516 65.891,85.386 63.941,83.116 62.044 C 82.399 61.445,81.813 60.886,81.813 60.801 C 81.813 60.717,82.601 60.053,83.565 59.328 C 87.075 56.682,89.093 53.602,89.315 50.551 C 89.738 44.732,85.102 39.308,78.206 37.550 C 76.571 37.133,75.873 37.120,55.646 37.120 C 44.166 37.120,34.773 37.045,34.773 36.954 C 34.773 36.739,37.324 34.263,38.827 33.021 C 42.954 29.609,48.315 26.924,53.867 25.490 L 55.787 24.993 58.515 27.759 C 60.016 29.280,61.487 30.616,61.783 30.729 M27.432 48.526 C 28.689 49.349,29.204 51.417,28.462 52.660 C 27.314 54.584,24.406 54.665,23.257 52.805 C 21.586 50.103,24.804 46.804,27.432 48.526 M101.482 48.631 C 104.770 50.636,102.222 55.568,98.702 54.011 C 96.352 52.971,96.277 49.759,98.575 48.587 C 99.534 48.098,100.636 48.115,101.482 48.631 M37.120 60.907 L 37.120 73.173 31.698 73.173 L 26.276 73.173 25.846 71.307 C 25.000 67.632,24.644 63.830,24.857 60.716 L 25.006 58.528 28.734 56.856 C 31.073 55.808,32.577 55.009,32.771 54.712 C 33.619 53.419,33.538 52.495,32.348 49.867 L 31.792 48.640 34.456 48.640 L 37.120 48.640 37.120 60.907 M68.340 49.174 C 70.662 49.778,71.889 51.007,71.892 52.730 C 71.894 53.995,71.267 54.789,69.712 55.491 C 68.611 55.989,68.436 56.001,61.493 56.069 L 54.400 56.137 54.400 52.495 L 54.400 48.853 60.755 48.853 C 65.719 48.853,67.380 48.923,68.340 49.174 M65.944 66.776 C 67.095 67.096,68.456 68.096,69.154 69.135 C 69.887 70.227,70.316 71.647,71.332 76.351 C 72.190 80.327,72.742 81.627,74.288 83.319 C 76.203 85.414,75.759 85.333,85.325 85.333 C 89.906 85.333,93.653 85.406,93.653 85.496 C 93.653 85.657,90.498 89.387,90.362 89.387 C 90.323 89.387,88.675 89.042,86.700 88.620 C 81.123 87.429,80.922 87.569,79.642 93.546 L 78.819 97.386 78.076 97.752 C 76.836 98.364,72.806 99.624,70.717 100.054 C 67.265 100.764,63.508 101.004,60.206 100.725 C 54.577 100.248,47.123 98.064,46.832 96.805 C 46.770 96.538,46.395 94.810,46.000 92.964 C 45.604 91.118,45.123 89.367,44.931 89.073 C 44.008 87.665,43.037 87.578,38.767 88.523 C 37.150 88.881,35.739 89.173,35.631 89.173 C 35.428 89.173,32.427 85.703,32.427 85.469 C 32.427 85.396,39.555 85.311,48.267 85.281 L 64.107 85.227 64.164 79.600 C 64.204 75.627,64.149 73.886,63.977 73.680 C 63.785 73.448,62.763 73.387,59.067 73.387 L 54.400 73.387 54.400 69.973 L 54.400 66.560 59.787 66.561 C 62.749 66.562,65.520 66.659,65.944 66.776 M41.536 92.365 C 44.055 93.900,42.847 97.922,39.868 97.919 C 36.813 97.917,35.681 93.932,38.284 92.344 C 39.145 91.819,40.658 91.829,41.536 92.365 M87.662 92.533 C 88.897 93.438,89.308 95.321,88.543 96.575 C 86.534 99.870,81.510 97.251,83.188 93.784 C 84.013 92.081,86.206 91.467,87.662 92.533 "stroke="none"diff --git a/apps/ui/src/lib/components/svg/applications/Static.svelte b/apps/ui/src/lib/components/svg/applications/Static.svelteindex d3732b34ba..14cbb0ce83 100644--- a/apps/ui/src/lib/components/svg/applications/Static.svelte+++ b/apps/ui/src/lib/components/svg/applications/Static.svelte@@ -1,5 +1,11 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="absolute top-0 left-0 -m-4 h-10 w-10 text-white"+ class={isAbsolute+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-white'+ : 'mx-auto w-8 h-8 text-white'}viewBox="0 0 32 32"fill="none"xmlns="http://www.w3.org/2000/svg"diff --git a/apps/ui/src/lib/components/svg/applications/Svelte.svelte b/apps/ui/src/lib/components/svg/applications/Svelte.svelteindex ad3d1d82d8..cfa96c59d4 100644--- a/apps/ui/src/lib/components/svg/applications/Svelte.svelte+++ b/apps/ui/src/lib/components/svg/applications/Svelte.svelte@@ -1,5 +1,9 @@+<script lang="ts">+ export let isAbsolute = true;+</script>+<svg- class="absolute top-0 left-0 -m-4 h-10 w-10"+ class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}version="1.1"id="Layer_1"xmlns="http://www.w3.org/2000/svg"diff --git a/apps/ui/src/lib/components/svg/applications/Vuejs.svelte b/apps/ui/src/lib/components/svg/applications/Vuejs.svelteindex 1017f24a3a..5ead6229d4 100644--- a/apps/ui/src/lib/components/svg/applications/Vuejs.svelte+++ b/apps/ui/src/lib/components/svg/applications/Vuejs.svelte@@ -1,4 +1,13 @@-<svg class="absolute top-0 left-0 -m-4 h-10 w-10 text-green-500" viewBox="0 0 128 128">+<script lang="ts">+ export let isAbsolute = true;+</script>++<svg+ class={isAbsolute+ ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-green-500'+ : 'mx-auto w-8 h-8 text-green-500'}+ viewBox="0 0 128 128"+><pathd="m-2.3125e-8 8.9337 49.854 0.1586 14.167 24.47 14.432-24.47 49.547-0.1577-63.834 110.14zm126.98 0.6374-24.36 0.0207-38.476 66.052-38.453-66.052-24.749-0.0194 63.211 107.89zm-25.149-0.008-22.745 0.16758l-15.053 24.647-14.817-24.647-22.794-0.1679 37.731 64.476zM25.997 9.3929l23.002 0.0087M25.997 9.3929l23.002 0.0087"fill="none"diff --git a/apps/ui/src/lib/components/svg/applications/index.ts b/apps/ui/src/lib/components/svg/applications/index.tsnew file mode 100644index 0000000000..12b712f4c7--- /dev/null+++ b/apps/ui/src/lib/components/svg/applications/index.ts@@ -0,0 +1,19 @@+//@ts-nocheck+export { default as Rust } from './Rust.svelte';+export { default as Nodejs } from './Nodejs.svelte';+export { default as React } from './React.svelte';+export { default as Svelte } from './Svelte.svelte';+export { default as Vuejs } from './Vuejs.svelte';+export { default as Php } from './PHP.svelte';+export { default as Python } from './Python.svelte';+export { default as Static } from './Static.svelte';+export { default as Nestjs } from './Nestjs.svelte';+export { default as Nuxtjs } from './Nuxtjs.svelte';+export { default as Nextjs } from './Nextjs.svelte';+export { default as Gatsby } from './Gatsby.svelte';+export { default as Docker } from './Docker.svelte';+export { default as Astro } from './Astro.svelte';+export { default as Eleventy } from './Eleventy.svelte';+export { default as Deno } from './Deno.svelte';+export { default as Laravel } from './Laravel.svelte';+diff --git a/apps/ui/src/lib/components/svg/databases/DatabaseIcons.svelte b/apps/ui/src/lib/components/svg/databases/DatabaseIcons.sveltenew file mode 100644index 0000000000..1ef5271c4d--- /dev/null+++ b/apps/ui/src/lib/components/svg/databases/DatabaseIcons.svelte@@ -0,0 +1,19 @@+<script lang="ts">+ import * as Icons from '$lib/components/svg/databases';+ export let type: any;+ export let isAbsolute = false;+</script>++{#if type === 'mysql'}+ <Icons.MySQL {isAbsolute} />+{:else if type === 'postgresql'}+ <Icons.PostgreSQL {isAbsolute} />+{:else if type === 'mongodb'}+ <Icons.MongoDB {isAbsolute} />+{:else if type === 'mariadb'}+ <Icons.MariaDB {isAbsolute} />+{:else if type === 'redis'}+ <Icons.Redis {isAbsolute} />+{:else if type === 'couchdb'}+ <Icons.CouchDB {isAbsolute} />+{/if}diff --git a/apps/ui/src/lib/components/svg/databases/index.ts b/apps/ui/src/lib/components/svg/databases/index.tsnew file mode 100644index 0000000000..1b981d61cc--- /dev/null+++ b/apps/ui/src/lib/components/svg/databases/index.ts@@ -0,0 +1,10 @@+//@ts-nocheck+export { default as Clickhouse } from './Clickhouse.svelte';+export { default as CouchDB } from './CouchDB.svelte';+export { default as MariaDB } from './MariaDB.svelte';+export { default as MongoDB } from './MongoDB.svelte';+export { default as MySQL } from './MySQL.svelte';+export { default as PostgreSQL } from './PostgreSQL.svelte';+export { default as Redis } from './Redis.svelte';++diff --git a/apps/ui/src/routes/services/[id]/_Services.svelte b/apps/ui/src/lib/components/svg/services/ServiceIcons.sveltesimilarity index 52%rename from apps/ui/src/routes/services/[id]/_Services.svelterename to apps/ui/src/lib/components/svg/services/ServiceIcons.svelteindex 65777df369..00e1bcf6e5 100644--- a/apps/ui/src/routes/services/[id]/_Services.svelte+++ b/apps/ui/src/lib/components/svg/services/ServiceIcons.svelte@@ -1,36 +1,37 @@<script lang="ts">export let type: string;+ export let isAbsolute = true;import * as Icons from '$lib/components/svg/services';</script>{#if type === 'plausibleanalytics'}- <Icons.PlausibleAnalytics isAbsolute />+ <Icons.PlausibleAnalytics {isAbsolute} />{:else if type === 'nocodb'}- <Icons.NocoDb isAbsolute />+ <Icons.NocoDb {isAbsolute} />{:else if type === 'minio'}- <Icons.MinIo isAbsolute />+ <Icons.MinIo {isAbsolute} />{:else if type === 'vscodeserver'}- <Icons.VsCodeServer isAbsolute />+ <Icons.VsCodeServer {isAbsolute} />{:else if type === 'wordpress'}- <Icons.Wordpress isAbsolute />+ <Icons.Wordpress {isAbsolute} />{:else if type === 'vaultwarden'}- <Icons.VaultWarden isAbsolute />+ <Icons.VaultWarden {isAbsolute} />{:else if type === 'languagetool'}- <Icons.LanguageTool isAbsolute />+ <Icons.LanguageTool {isAbsolute} />{:else if type === 'n8n'}- <Icons.N8n isAbsolute />+ <Icons.N8n {isAbsolute} />{:else if type === 'uptimekuma'}- <Icons.UptimeKuma isAbsolute />+ <Icons.UptimeKuma {isAbsolute} />{:else if type === 'ghost'}- <Icons.Ghost isAbsolute />+ <Icons.Ghost {isAbsolute} />{:else if type === 'meilisearch'}- <Icons.MeiliSearch isAbsolute />+ <Icons.MeiliSearch {isAbsolute} />{:else if type === 'umami'}- <Icons.Umami isAbsolute />+ <Icons.Umami {isAbsolute} />{:else if type === 'hasura'}- <Icons.Hasura isAbsolute />+ <Icons.Hasura {isAbsolute} />{:else if type === 'fider'}- <Icons.Fider isAbsolute />+ <Icons.Fider {isAbsolute} />{:else if type === 'moodle'}- <Icons.Moodle isAbsolute />+ <Icons.Moodle {isAbsolute} />{/if}diff --git a/apps/ui/src/lib/store.ts b/apps/ui/src/lib/store.tsindex f1c5d05bf8..8834782a4d 100644--- a/apps/ui/src/lib/store.ts+++ b/apps/ui/src/lib/store.ts@@ -1,3 +1,4 @@+import cuid from 'cuid';import { writable, readable, type Writable } from 'svelte/store';interface AppSession {@@ -21,7 +22,7 @@ interface AddToast {type?: "info" | "success" | "error",message: string,timeout?: number | undefined- }+}export const loginEmail: Writable<string | undefined> = writable()export const appSession: Writable<AppSession> = writable({ipv4: null,@@ -76,35 +77,45 @@ export const setLocation = (resource: any) => {.replace('https://', `https://${resource.exposePort}-`).replace(/\/$/, '');return location.set(newURL)- } else if (CODESANDBOX_HOST){- const newURL = `https://${CODESANDBOX_HOST.replace(/\$PORT/,resource.exposePort)}`- return location.set(newURL)+ } else if (CODESANDBOX_HOST) {+ const newURL = `https://${CODESANDBOX_HOST.replace(/\$PORT/, resource.exposePort)}`+ return location.set(newURL)}return location.set(resource.fqdn)}export const toasts: any = writable([])-export const dismissToast = (id: number) => {- toasts.update((all: any) => all.filter((t: any) => t.id !== id))+export const dismissToast = (id: string) => {+ toasts.update((all: any) => all.filter((t: any) => t.id !== id))+}+export const pauseToast = (id: string) => {+ toasts.update((all: any) => {+ const index = all.findIndex((t: any) => t.id === id);+ if (index > -1) clearTimeout(all[index].timeoutInterval);+ return all;+ })+}+export const resumeToast = (id: string) => {+ toasts.update((all: any) => {+ const index = all.findIndex((t: any) => t.id === id);+ if (index > -1) {+ all[index].timeoutInterval = setTimeout(() => {+ dismissToast(id)+ }, all[index].timeout)+ }+ return all;+ })}export const addToast = (toast: AddToast) => {- // Create a unique ID so we can easily find/remove it- // if it is dismissible/has a timeout.- const id = Math.floor(Math.random() * 10000)-- // Setup some sensible defaults for a toast.- const defaults = {- id,- type: 'info',- timeout: 2000,- }-- // Push the toast to the top of the list of toasts- const t = { ...defaults, ...toast }- toasts.update((all: any) => [t, ...all])-- // If toast is dismissible, dismiss it after "timeout" amount of time.- if (t.timeout) setTimeout(() => dismissToast(id), t.timeout)+ const id = cuid();+ const defaults = {+ id,+ type: 'info',+ timeout: 2000,+ }+ let t: any = { ...defaults, ...toast }+ if (t.timeout) t.timeoutInterval = setTimeout(() => dismissToast(id), t.timeout)+ toasts.update((all: any) => [t, ...all])}\ No newline at end of filediff --git a/apps/ui/src/routes/applications/[id]/index.svelte b/apps/ui/src/routes/applications/[id]/index.svelteindex 4adc133f45..5502602749 100644--- a/apps/ui/src/routes/applications/[id]/index.svelte+++ b/apps/ui/src/routes/applications/[id]/index.svelte@@ -139,9 +139,9 @@projectId: application.projectId});return addToast({- message: $t('application.settings_saved'),- type: 'success'- });+ message: $t('application.settings_saved'),+ type: 'success'+ });} catch (error) {if (name === 'debug') {debug = !debug;@@ -177,7 +177,7 @@forceSave = false;addToast({message: 'Configuration saved.',- type: 'success',+ type: 'success'});} catch (error) {console.log(error);@@ -222,9 +222,9 @@try {await get(`/applications/${id}/check?domain=${domain}`);addToast({- message: 'DNS configuration is valid.',- type: 'success'- });+ message: 'DNS configuration is valid.',+ type: 'success'+ });isWWW ? (isWWWDomainOK = true) : (isNonWWWDomainOK = true);return true;} catch (error) {@@ -289,29 +289,21 @@<div class="mx-auto max-w-4xl px-6 py-4"><div class="text-2xl font-bold">Application Usage</div>- <div class="mx-auto">- <dl class="relative mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class=" text-sm font-medium text-white">Used Memory / Memory Limit</dt>- <dd class="mt-1 text-xl font-semibold text-white">- {usage?.MemUsage}- </dd>- </div>+ <div class="text-center">+ <div class="stat w-64">+ <div class="stat-title">Used Memory / Memory Limit</div>+ <div class="stat-value text-xl">{usage?.MemUsage}</div>+ </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Used CPU</dt>- <dd class="mt-1 text-xl font-semibold text-white ">- {usage?.CPUPerc}- </dd>- </div>+ <div class="stat w-64">+ <div class="stat-title">Used CPU</div>+ <div class="stat-value text-xl">{usage?.CPUPerc}</div>+ </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Network IO</dt>- <dd class="mt-1 text-xl font-semibold text-white ">- {usage?.NetIO}- </dd>- </div>- </dl>+ <div class="stat w-64">+ <div class="stat-title">Network IO</div>+ <div class="stat-value text-xl">{usage?.NetIO}</div>+ </div></div></div><div class="mx-auto max-w-4xl px-6">@@ -324,11 +316,10 @@class="btn btn-sm"type="submit"class:bg-applications={!loading}- class:loading={loading}+ class:loadingclass:bg-orange-600={forceSave}class:hover:bg-orange-400={forceSave}- disabled={loading}- >{$t('forms.save')}</button+ disabled={loading}>{$t('forms.save')}</button>{/if}</div>diff --git a/apps/ui/src/routes/applications/index.svelte b/apps/ui/src/routes/applications/index.svelteindex c321b267c1..8c7b8fe731 100644--- a/apps/ui/src/routes/applications/index.svelte+++ b/apps/ui/src/routes/applications/index.svelte@@ -26,24 +26,8 @@import { t } from '$lib/translations';import { getDomain } from '$lib/common';import { appSession } from '$lib/store';+ import ApplicationsIcons from '$lib/components/svg/applications/ApplicationIcons.svelte';- import Rust from '$lib/components/svg/applications/Rust.svelte';- import Nodejs from '$lib/components/svg/applications/Nodejs.svelte';- import React from '$lib/components/svg/applications/React.svelte';- import Svelte from '$lib/components/svg/applications/Svelte.svelte';- import Vuejs from '$lib/components/svg/applications/Vuejs.svelte';- import PHP from '$lib/components/svg/applications/PHP.svelte';- import Python from '$lib/components/svg/applications/Python.svelte';- import Static from '$lib/components/svg/applications/Static.svelte';- import Nestjs from '$lib/components/svg/applications/Nestjs.svelte';- import Nuxtjs from '$lib/components/svg/applications/Nuxtjs.svelte';- import Nextjs from '$lib/components/svg/applications/Nextjs.svelte';- import Gatsby from '$lib/components/svg/applications/Gatsby.svelte';- import Docker from '$lib/components/svg/applications/Docker.svelte';- import Astro from '$lib/components/svg/applications/Astro.svelte';- import Eleventy from '$lib/components/svg/applications/Eleventy.svelte';- import Deno from '$lib/components/svg/applications/Deno.svelte';- import Laravel from '$lib/components/svg/applications/Laravel.svelte';ownApplications = applications.filter((application) => {if (application.teams[0].id === $appSession.teamId) {return application;@@ -63,10 +47,7 @@<div class="flex space-x-1 p-6 font-bold"><div class="mr-4 text-2xl">{$t('index.applications')}</div>{#if $appSession.isAdmin}- <button- on:click={newApplication}- class="btn btn-square btn-sm bg-applications"- >+ <button on:click={newApplication} class="btn btn-square btn-sm bg-applications"><svgclass="h-6 w-6"xmlns="http://www.w3.org/2000/svg"@@ -96,41 +77,7 @@<a href="/applications/{application.id}" class="p-2 no-underline"><div class="box-selection group relative hover:bg-green-600">{#if application.buildPack}- {#if application.buildPack.toLowerCase() === 'rust'}- <Rust />- {:else if application.buildPack.toLowerCase() === 'node'}- <Nodejs />- {:else if application.buildPack.toLowerCase() === 'react'}- <React />- {:else if application.buildPack.toLowerCase() === 'svelte'}- <Svelte />- {:else if application.buildPack.toLowerCase() === 'vuejs'}- <Vuejs />- {:else if application.buildPack.toLowerCase() === 'php'}- <PHP />- {:else if application.buildPack.toLowerCase() === 'python'}- <Python />- {:else if application.buildPack.toLowerCase() === 'static'}- <Static />- {:else if application.buildPack.toLowerCase() === 'nestjs'}- <Nestjs />- {:else if application.buildPack.toLowerCase() === 'nuxtjs'}- <Nuxtjs />- {:else if application.buildPack.toLowerCase() === 'nextjs'}- <Nextjs />- {:else if application.buildPack.toLowerCase() === 'gatsby'}- <Gatsby />- {:else if application.buildPack.toLowerCase() === 'docker'}- <Docker />- {:else if application.buildPack.toLowerCase() === 'astro'}- <Astro />- {:else if application.buildPack.toLowerCase() === 'eleventy'}- <Eleventy />- {:else if application.buildPack.toLowerCase() === 'deno'}- <Deno />- {:else if application.buildPack.toLowerCase() === 'laravel'}- <Laravel />- {/if}+ <ApplicationsIcons {application} />{/if}<div class="truncate text-center text-xl font-bold">{application.name}</div>@@ -167,41 +114,7 @@<a href="/applications/{application.id}" class="p-2 no-underline"><div class="box-selection group relative hover:bg-green-600">{#if application.buildPack}- {#if application.buildPack.toLowerCase() === 'rust'}- <Rust />- {:else if application.buildPack.toLowerCase() === 'node'}- <Nodejs />- {:else if application.buildPack.toLowerCase() === 'react'}- <React />- {:else if application.buildPack.toLowerCase() === 'svelte'}- <Svelte />- {:else if application.buildPack.toLowerCase() === 'vuejs'}- <Vuejs />- {:else if application.buildPack.toLowerCase() === 'php'}- <PHP />- {:else if application.buildPack.toLowerCase() === 'python'}- <Python />- {:else if application.buildPack.toLowerCase() === 'static'}- <Static />- {:else if application.buildPack.toLowerCase() === 'nestjs'}- <Nestjs />- {:else if application.buildPack.toLowerCase() === 'nuxtjs'}- <Nuxtjs />- {:else if application.buildPack.toLowerCase() === 'nextjs'}- <Nextjs />- {:else if application.buildPack.toLowerCase() === 'gatsby'}- <Gatsby />- {:else if application.buildPack.toLowerCase() === 'docker'}- <Docker />- {:else if application.buildPack.toLowerCase() === 'astro'}- <Astro />- {:else if application.buildPack.toLowerCase() === 'eleventy'}- <Eleventy />- {:else if application.buildPack.toLowerCase() === 'deno'}- <Deno />- {:else if application.buildPack.toLowerCase() === 'laravel'}- <Laravel />- {/if}+ <ApplicationsIcons {application} />{/if}<div class="truncate text-center text-xl font-bold">{application.name}</div>diff --git a/apps/ui/src/routes/databases/[id]/configuration/type.svelte b/apps/ui/src/routes/databases/[id]/configuration/type.svelteindex 48666f3917..006ad0a14a 100644--- a/apps/ui/src/routes/databases/[id]/configuration/type.svelte+++ b/apps/ui/src/routes/databases/[id]/configuration/type.svelte@@ -31,18 +31,11 @@const { id } = $page.params;const from = $page.url.searchParams.get('from');-- import Clickhouse from '$lib/components/svg/databases/Clickhouse.svelte';- import CouchDB from '$lib/components/svg/databases/CouchDB.svelte';- import MongoDB from '$lib/components/svg/databases/MongoDB.svelte';- import MariaDB from '$lib/components/svg/databases/MariaDB.svelte';- import MySQL from '$lib/components/svg/databases/MySQL.svelte';- import PostgreSQL from '$lib/components/svg/databases/PostgreSQL.svelte';- import Redis from '$lib/components/svg/databases/Redis.svelte';import { goto } from '$app/navigation';import { get, post } from '$lib/api';import { t } from '$lib/translations';import { errorNotification } from '$lib/common';+ import DatabaseIcons from '$lib/components/svg/databases/DatabaseIcons.svelte';async function handleSubmit(type: any) {try {await post(`/databases/${id}/configuration/type`, { type });@@ -62,21 +55,8 @@<div class="p-2"><form on:submit|preventDefault={() => handleSubmit(type.name)}><button type="submit" class="box-selection relative text-xl font-bold hover:bg-purple-700">- {#if type.name === 'clickhouse'}- <Clickhouse isAbsolute />- {:else if type.name === 'couchdb'}- <CouchDB isAbsolute />- {:else if type.name === 'mongodb'}- <MongoDB isAbsolute />- {:else if type.name === 'mariadb'}- <MariaDB isAbsolute />- {:else if type.name === 'mysql'}- <MySQL isAbsolute />- {:else if type.name === 'postgresql'}- <PostgreSQL isAbsolute />- {:else if type.name === 'redis'}- <Redis isAbsolute />- {/if}{type.fancyName}+ <DatabaseIcons type={type.name} isAbsolute={true} />+ {type.fancyName}</button></form></div>diff --git a/apps/ui/src/routes/databases/[id]/index.svelte b/apps/ui/src/routes/databases/[id]/index.svelteindex 8faa8ccc42..cb70d1eb90 100644--- a/apps/ui/src/routes/databases/[id]/index.svelte+++ b/apps/ui/src/routes/databases/[id]/index.svelte@@ -48,7 +48,7 @@});</script>-<div class="flex items-center space-x-2 p-6 text-2xl font-bold">+<div class="flex h-20 items-center space-x-2 p-5 px-6 font-bold"><div class="-mb-5 flex-col"><div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">Configuration@@ -60,29 +60,21 @@<div class="mx-auto max-w-4xl px-6 py-4"><div class="text-2xl font-bold">Database Usage</div>- <div class="mx-auto">- <dl class="relative mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class=" text-sm font-medium text-white">Used Memory / Memory Limit</dt>- <dd class="mt-1 text-xl font-semibold text-white">- {usage?.MemUsage}- </dd>- </div>+ <div class="text-center">+ <div class="stat w-64">+ <div class="stat-title">Used Memory / Memory Limit</div>+ <div class="stat-value text-xl">{usage?.MemUsage}</div>+ </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Used CPU</dt>- <dd class="mt-1 text-xl font-semibold text-white ">- {usage?.CPUPerc}- </dd>- </div>+ <div class="stat w-64">+ <div class="stat-title">Used CPU</div>+ <div class="stat-value text-xl">{usage?.CPUPerc}</div>+ </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Network IO</dt>- <dd class="mt-1 text-xl font-semibold text-white ">- {usage?.NetIO}- </dd>- </div>- </dl>+ <div class="stat w-64">+ <div class="stat-title">Network IO</div>+ <div class="stat-value text-xl">{usage?.NetIO}</div>+ </div></div></div>-<Databases bind:database {privatePort}/>+<Databases bind:database {privatePort} />diff --git a/apps/ui/src/routes/databases/index.svelte b/apps/ui/src/routes/databases/index.svelteindex 9cd4041381..c14c9c3f3b 100644--- a/apps/ui/src/routes/databases/index.svelte+++ b/apps/ui/src/routes/databases/index.svelte@@ -19,17 +19,11 @@<script lang="ts">export let databases: any = [];- import Clickhouse from '$lib/components/svg/databases/Clickhouse.svelte';- import CouchDB from '$lib/components/svg/databases/CouchDB.svelte';- import MongoDB from '$lib/components/svg/databases/MongoDB.svelte';- import MariaDB from '$lib/components/svg/databases/MariaDB.svelte';- import MySQL from '$lib/components/svg/databases/MySQL.svelte';- import PostgreSQL from '$lib/components/svg/databases/PostgreSQL.svelte';- import Redis from '$lib/components/svg/databases/Redis.svelte';import { get, post } from '$lib/api';import { t } from '$lib/translations';import { appSession } from '$lib/store';import { goto } from '$app/navigation';+ import DatabaseIcons from '$lib/components/svg/databases/DatabaseIcons.svelte';async function newDatabase() {const { id } = await post('/databases/new', {});@@ -50,24 +44,21 @@<div class="flex space-x-1 p-6 font-bold"><div class="mr-4 text-2xl tracking-tight">{$t('index.databases')}</div>- <button- on:click={newDatabase}- class="btn btn-square btn-sm bg-databases"+ <button on:click={newDatabase} class="btn btn-square btn-sm bg-databases">+ <svg+ class="h-6 w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ ><path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"+ /></svg>- <svg- class="h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6v6m0 0v6m0-6h6m-6 0H6"- /></svg- >- </button>+ </button></div><div class="flex-col justify-center">@@ -82,21 +73,7 @@{#each ownDatabases as database}<a href="/databases/{database.id}" class="p-2 no-underline"><div class="box-selection group relative hover:bg-purple-600">- {#if database.type === 'clickhouse'}- <Clickhouse isAbsolute />- {:else if database.type === 'couchdb'}- <CouchDB isAbsolute />- {:else if database.type === 'mongodb'}- <MongoDB isAbsolute />- {:else if database.type === 'mysql'}- <MySQL isAbsolute />- {:else if database.type === 'mariadb'}- <MariaDB isAbsolute />- {:else if database.type === 'postgresql'}- <PostgreSQL isAbsolute />- {:else if database.type === 'redis'}- <Redis isAbsolute />- {/if}+ <DatabaseIcons type={database.type} isAbsolute={true} /><div class="truncate text-center text-xl font-bold">{database.name}</div>@@ -121,21 +98,7 @@{#each otherDatabases as database}<a href="/databases/{database.id}" class="p-2 no-underline"><div class="box-selection group relative hover:bg-purple-600">- {#if database.type === 'clickhouse'}- <Clickhouse isAbsolute />- {:else if database.type === 'couchdb'}- <CouchDB isAbsolute />- {:else if database.type === 'mongodb'}- <MongoDB isAbsolute />- {:else if database.type === 'mariadb'}- <MariaDB isAbsolute />- {:else if database.type === 'mysql'}- <MySQL isAbsolute />- {:else if database.type === 'postgresql'}- <PostgreSQL isAbsolute />- {:else if database.type === 'redis'}- <Redis isAbsolute />- {/if}+ <DatabaseIcons type={database.type} isAbsolute={true} /><div class="truncate text-center text-xl font-bold">{database.name}</div>diff --git a/apps/ui/src/routes/index.svelte b/apps/ui/src/routes/index.svelteindex 7ed18a1339..4ebce82955 100644--- a/apps/ui/src/routes/index.svelte+++ b/apps/ui/src/routes/index.svelte@@ -20,91 +20,284 @@</script><script lang="ts">- import { get } from '$lib/api';+ import { get, post } from '$lib/api';import Usage from '$lib/components/Usage.svelte';import { t } from '$lib/translations';+ import { errorNotification } from '$lib/common';+ import { addToast } from '$lib/store';- export let applicationsCount: number = 0;- export let sourcesCount: number = 0;- export let destinationsCount: number = 0;- export let teamsCount: number = 0;- export let databasesCount: number = 0;- export let servicesCount: number = 0;+ import ApplicationsIcons from '$lib/components/svg/applications/ApplicationIcons.svelte';+ import DatabaseIcons from '$lib/components/svg/databases/DatabaseIcons.svelte';+ import ServiceIcons from '$lib/components/svg/services/ServiceIcons.svelte';++ let loading = {+ cleanup: false+ };++ export let applications: any;+ export let databases: any;+ export let services: any;+ async function getStatus(resources: any) {+ try {+ const { id, buildPack, dualCerts } = resources;+ let isRunning = false;+ if (buildPack) {+ const response = await get(`/applications/${id}/status`);+ isRunning = response.isRunning;+ } else if (typeof dualCerts !== 'undefined') {+ const response = await get(`/services/${id}/status`);+ isRunning = response.isRunning;+ } else {+ const response = await get(`/databases/${id}/status`);+ isRunning = response.isRunning;+ }+ if (isRunning) {+ return 'Running';+ } else {+ return 'Stopped';+ }+ } catch (error) {+ return 'Error';+ }+ }+ async function manuallyCleanupStorage() {+ try {+ loading.cleanup = true;+ await post('/internal/cleanup', {});+ return addToast({+ message: 'Cleanup done.',+ type: 'success'+ });+ } catch (error) {+ return errorNotification(error);+ } finally {+ loading.cleanup = false;+ }+ }</script><div class="flex space-x-1 p-6 font-bold"><div class="mr-4 text-2xl tracking-tight">{$t('index.dashboard')}</div>+ <button on:click={manuallyCleanupStorage} class:loading={loading.cleanup} class="btn btn-sm"+ >Cleanup Storage</button+ ></div><div class="mt-10 pb-12 tracking-tight sm:pb-16">- <div class="mx-auto max-w-4xl">- <Usage />- <dl class="mt-5 grid grid-cols-1 gap-5 px-2 sm:grid-cols-3">- <a- href="/applications"- sveltekit:prefetch- class="overflow-hidden rounded px-4 py-5 text-center text-green-500 no-underline transition-all duration-100 hover:bg-green-500 hover:text-white sm:p-6 sm:text-left"- >- <dt class="truncate text-sm font-medium text-white">{$t('index.applications')}</dt>- <dd class="mt-1 text-3xl font-semibold ">- {applicationsCount}- </dd>- </a>- <a- href="/destinations"- sveltekit:prefetch- class="overflow-hidden rounded px-4 py-5 text-center text-sky-500 no-underline transition-all duration-100 hover:bg-sky-500 hover:text-white sm:p-6 sm:text-left"- >- <dt class="truncate text-sm font-medium text-white">{$t('index.destinations')}</dt>- <dd class="mt-1 text-3xl font-semibold ">- {destinationsCount}- </dd>- </a>-- <a- href="/sources"- sveltekit:prefetch- class="overflow-hidden rounded px-4 py-5 text-center text-orange-500 no-underline transition-all duration-100 hover:bg-orange-500 hover:text-white sm:p-6 sm:text-left"- >- <dt class="truncate text-sm font-medium text-white">{$t('index.git_sources')}</dt>- <dd class="mt-1 text-3xl font-semibold">- {sourcesCount}- </dd>- </a>- </dl>- <dl class="mt-5 grid grid-cols-1 gap-5 px-2 sm:grid-cols-3">- <a- href="/databases"- sveltekit:prefetch- class="overflow-hidden rounded px-4 py-5 text-center text-purple-500 no-underline transition-all duration-100 hover:bg-purple-500 hover:text-white sm:p-6 sm:text-left"- >- <dt class="truncate text-sm font-medium text-white">{$t('index.databases')}</dt>- <dd class="mt-1 text-3xl font-semibold ">- {databasesCount}- </dd>- </a>+ <div class="mx-auto px-10">+ <div class="flex flex-col justify-center xl:flex-row">+ <div>+ <div class="title">Resources</div>+ <div class="flex items-start justify-center p-8">+ <table class="rounded-none text-base">+ <tbody>+ {#each applications as application}+ <tr>+ <td class="space-x-2 items-center tracking-tight font-bold">+ {#await getStatus(application)}+ <div class="inline-flex w-2 h-2 bg-yellow-500 rounded-full" />+ {:then status}+ {#if status === 'Running'}+ <div class="inline-flex w-2 h-2 bg-success rounded-full" />+ {:else}+ <div class="inline-flex w-2 h-2 bg-error rounded-full" />+ {/if}+ {/await}+ <div class="inline-flex">{application.name}</div>+ </td>+ <td class="px-10 inline-flex">+ <ApplicationsIcons {application} isAbsolute={false} />+ </td>+ <td class="px-10">+ <div class="badge badge-outline text-xs border-applications rounded text-white">+ Application+ </div></td+ >+ <td>+ {#if application.fqdn}+ <a+ href={application.fqdn}+ target="_blank"+ class="icons bg-transparent text-sm inline-flex"+ ><svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ viewBox="0 0 24 24"+ stroke-width="1.5"+ stroke="currentColor"+ fill="none"+ stroke-linecap="round"+ stroke-linejoin="round"+ >+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />+ <line x1="10" y1="14" x2="20" y2="4" />+ <polyline points="15 4 20 4 20 9" />+ </svg></a+ >+ {/if}+ <a+ href={`/applications/${application.id}`}+ class="icons bg-transparent text-sm inline-flex"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ viewBox="0 0 24 24"+ stroke-width="1.5"+ stroke="currentColor"+ fill="none"+ stroke-linecap="round"+ stroke-linejoin="round"+ >+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <rect x="4" y="8" width="4" height="4" />+ <line x1="6" y1="4" x2="6" y2="8" />+ <line x1="6" y1="12" x2="6" y2="20" />+ <rect x="10" y="14" width="4" height="4" />+ <line x1="12" y1="4" x2="12" y2="14" />+ <line x1="12" y1="18" x2="12" y2="20" />+ <rect x="16" y="5" width="4" height="4" />+ <line x1="18" y1="4" x2="18" y2="5" />+ <line x1="18" y1="9" x2="18" y2="20" />+ </svg>+ </a>+ </td>+ </tr>+ {/each}- <a- href="/services"- sveltekit:prefetch- class="overflow-hidden rounded px-4 py-5 text-center text-pink-500 no-underline transition-all duration-100 hover:bg-pink-500 hover:text-white sm:p-6 sm:text-left"- >- <dt class="truncate text-sm font-medium text-white">{$t('index.services')}</dt>- <dd class="mt-1 text-3xl font-semibold ">- {servicesCount}- </dd>- </a>+ {#each services as service}+ <tr>+ <td class="space-x-2 items-center tracking-tight font-bold">+ {#await getStatus(service)}+ <div class="inline-flex w-2 h-2 bg-yellow-500 rounded-full" />+ {:then status}+ {#if status === 'Running'}+ <div class="inline-flex w-2 h-2 bg-success rounded-full" />+ {:else}+ <div class="inline-flex w-2 h-2 bg-error rounded-full" />+ {/if}+ {/await}+ <div class="inline-flex">{service.name}</div>+ </td>+ <td class="px-10 inline-flex">+ <ServiceIcons type={service.type} isAbsolute={false} />+ </td>+ <td class="px-10"+ ><div class="badge badge-outline text-xs border-services rounded text-white">+ Service+ </div>+ </td>- <a- href="/iam"- sveltekit:prefetch- class="overflow-hidden rounded px-4 py-5 text-center text-cyan-500 no-underline transition-all duration-100 hover:bg-cyan-500 hover:text-white sm:p-6 sm:text-left"- >- <dt class="truncate text-sm font-medium text-white">{$t('index.teams')}</dt>- <dd class="mt-1 text-3xl font-semibold ">- {teamsCount}- </dd>- </a>- </dl>+ <td>+ {#if service.fqdn}+ <a+ href={service.fqdn}+ target="_blank"+ class="icons bg-transparent text-sm inline-flex"+ ><svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ viewBox="0 0 24 24"+ stroke-width="1.5"+ stroke="currentColor"+ fill="none"+ stroke-linecap="round"+ stroke-linejoin="round"+ >+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />+ <line x1="10" y1="14" x2="20" y2="4" />+ <polyline points="15 4 20 4 20 9" />+ </svg></a+ >+ {/if}+ <a+ href={`/services/${service.id}`}+ class="icons bg-transparent text-sm inline-flex"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ viewBox="0 0 24 24"+ stroke-width="1.5"+ stroke="currentColor"+ fill="none"+ stroke-linecap="round"+ stroke-linejoin="round"+ >+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <rect x="4" y="8" width="4" height="4" />+ <line x1="6" y1="4" x2="6" y2="8" />+ <line x1="6" y1="12" x2="6" y2="20" />+ <rect x="10" y="14" width="4" height="4" />+ <line x1="12" y1="4" x2="12" y2="14" />+ <line x1="12" y1="18" x2="12" y2="20" />+ <rect x="16" y="5" width="4" height="4" />+ <line x1="18" y1="4" x2="18" y2="5" />+ <line x1="18" y1="9" x2="18" y2="20" />+ </svg>+ </a>+ </td>+ </tr>+ {/each}+ {#each databases as database}+ <tr>+ <td class="space-x-2 items-center tracking-tight font-bold">+ {#await getStatus(database)}+ <div class="inline-flex w-2 h-2 bg-yellow-500 rounded-full" />+ {:then status}+ {#if status === 'Running'}+ <div class="inline-flex w-2 h-2 bg-success rounded-full" />+ {:else}+ <div class="inline-flex w-2 h-2 bg-error rounded-full" />+ {/if}+ {/await}+ <div class="inline-flex">{database.name}</div>+ </td>+ <td class="px-10 inline-flex">+ <DatabaseIcons type={database.type} />+ </td>+ <td class="px-10">+ <div class="badge badge-outline text-xs border-databases rounded text-white">+ Database+ </div>+ </td>+ <td>+ <a+ href={`/databases/${database.id}`}+ class="icons bg-transparent text-sm inline-flex ml-11"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ viewBox="0 0 24 24"+ stroke-width="1.5"+ stroke="currentColor"+ fill="none"+ stroke-linecap="round"+ stroke-linejoin="round"+ >+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <rect x="4" y="8" width="4" height="4" />+ <line x1="6" y1="4" x2="6" y2="8" />+ <line x1="6" y1="12" x2="6" y2="20" />+ <rect x="10" y="14" width="4" height="4" />+ <line x1="12" y1="4" x2="12" y2="14" />+ <line x1="12" y1="18" x2="12" y2="20" />+ <rect x="16" y="5" width="4" height="4" />+ <line x1="18" y1="4" x2="18" y2="5" />+ <line x1="18" y1="9" x2="18" y2="20" />+ </svg>+ </a>+ </td>+ </tr>+ {/each}+ </tbody>+ </table>+ </div>+ </div>+ <Usage />+ </div></div></div>diff --git a/apps/ui/src/routes/services/[id]/configuration/type.svelte b/apps/ui/src/routes/services/[id]/configuration/type.svelteindex 6764eaa087..ef3d0fad3f 100644--- a/apps/ui/src/routes/services/[id]/configuration/type.svelte+++ b/apps/ui/src/routes/services/[id]/configuration/type.svelte@@ -32,7 +32,7 @@import { get, post } from '$lib/api';import { t } from '$lib/translations';import { errorNotification } from '$lib/common';- import Services from '../_Services.svelte';+ import ServiceIcons from '$lib/components/svg/services/ServiceIcons.svelte';const { id } = $page.params;const from = $page.url.searchParams.get('from');@@ -56,7 +56,7 @@<div class="p-2"><form on:submit|preventDefault={() => handleSubmit(type.name)}><button type="submit" class="box-selection relative text-xl font-bold hover:bg-pink-600">- <Services type={type.name} />+ <ServiceIcons type={type.name} />{type.fancyName}</button></form>diff --git a/apps/ui/src/routes/services/[id]/index.svelte b/apps/ui/src/routes/services/[id]/index.svelteindex c503e35528..f2ed2852fc 100644--- a/apps/ui/src/routes/services/[id]/index.svelte+++ b/apps/ui/src/routes/services/[id]/index.svelte@@ -61,29 +61,21 @@</div><div class="mx-auto max-w-4xl px-6 py-4"><div class="text-2xl font-bold">Service Usage</div>- <div class="mx-auto">- <dl class="relative mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class=" text-sm font-medium text-white">Used Memory / Memory Limit</dt>- <dd class="mt-1 text-xl font-semibold text-white">- {usage?.MemUsage}- </dd>- </div>+ <div class="text-center">+ <div class="stat w-64">+ <div class="stat-title">Used Memory / Memory Limit</div>+ <div class="stat-value text-xl">{usage?.MemUsage}</div>+ </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Used CPU</dt>- <dd class="mt-1 text-xl font-semibold text-white ">- {usage?.CPUPerc}- </dd>- </div>+ <div class="stat w-64">+ <div class="stat-title">Used CPU</div>+ <div class="stat-value text-xl">{usage?.CPUPerc}</div>+ </div>- <div class="overflow-hidden rounded px-4 py-5 text-center sm:p-6 sm:text-left">- <dt class="truncate text-sm font-medium text-white">Network IO</dt>- <dd class="mt-1 text-xl font-semibold text-white ">- {usage?.NetIO}- </dd>- </div>- </dl>+ <div class="stat w-64">+ <div class="stat-title">Network IO</div>+ <div class="stat-value text-xl">{usage?.NetIO}</div>+ </div></div></div><Services bind:service bind:readOnly bind:settings />diff --git a/apps/ui/src/routes/services/index.svelte b/apps/ui/src/routes/services/index.svelteindex be784b4538..cb9f4ad554 100644--- a/apps/ui/src/routes/services/index.svelte+++ b/apps/ui/src/routes/services/index.svelte@@ -24,9 +24,8 @@import { t } from '$lib/translations';import { appSession } from '$lib/store';- import * as Icons from '$lib/components/svg/services';import { getDomain } from '$lib/common';- import Services from './[id]/_Services.svelte';+ import ServiceIcons from '$lib/components/svg/services/ServiceIcons.svelte';async function newService() {const { id } = await post('/services/new', {});@@ -46,24 +45,21 @@<div class="flex space-x-1 p-6 font-bold"><div class="mr-4 text-2xl tracking-tight">{$t('index.services')}</div>- <button- on:click={newService}- class="btn btn-square btn-sm bg-services"+ <button on:click={newService} class="btn btn-square btn-sm bg-services">+ <svg+ class="h-6 w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ ><path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"+ /></svg>- <svg- class="h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6v6m0 0v6m0-6h6m-6 0H6"- /></svg- >- </button>+ </button></div><div class="flex-col justify-center">@@ -78,7 +74,7 @@{#each ownServices as service}<a href="/services/{service.id}" class=" p-2 no-underline"><div class="box-selection group relative hover:bg-pink-600">- <Services type={service.type} />+ <ServiceIcons type={service.type} /><div class="truncate text-center text-xl font-bold">{service.name}</div>diff --git a/apps/ui/src/tailwind.css b/apps/ui/src/tailwind.cssindex 66dcfd1b2b..ebc6b69d6b 100644--- a/apps/ui/src/tailwind.css+++ b/apps/ui/src/tailwind.css@@ -192,4 +192,13 @@ a {.sub-menu-active {@apply bg-coolgray-500 text-white;+}++.table tbody td,+.table tbody th,+.table thead th{+ background-color: transparent;+}+.table *{+ border: none;}\ No newline at end of file