From b4892e0caf762bd5b8a438d852eb476f070e34b4 Mon Sep 17 00:00:00 2001 From: Kaname <56084970+kaname-png@users.noreply.github.com> Date: Wed, 7 Sep 2022 00:16:57 +0000 Subject: [PATCH] fix(routes): ui from databases page --- .../src/routes/applications/[id]/index.svelte | 2 +- .../[id]/_Databases/_Databases.svelte | 240 ++++++------- .../databases/[id]/_Databases/_MongoDB.svelte | 4 +- .../databases/[id]/_Databases/_MySQL.svelte | 4 +- .../src/routes/databases/[id]/__layout.svelte | 330 +++++++++--------- .../ui/src/routes/databases/[id]/index.svelte | 6 +- apps/ui/src/tailwind.css | 2 +- 7 files changed, 292 insertions(+), 296 deletions(-) diff --git a/apps/ui/src/routes/applications/[id]/index.svelte b/apps/ui/src/routes/applications/[id]/index.svelte index 7ffe33cef..3dd4a6bae 100644 --- a/apps/ui/src/routes/applications/[id]/index.svelte +++ b/apps/ui/src/routes/applications/[id]/index.svelte @@ -294,7 +294,7 @@
-
+
Configuration
diff --git a/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte b/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte index 5cfa6025e..79e3ff0ad 100644 --- a/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte +++ b/apps/ui/src/routes/databases/[id]/_Databases/_Databases.svelte @@ -105,10 +105,10 @@ } -
+
-
-
{$t('general')}
+
+

{$t('general')}

{#if $appSession.isAdmin}
- -
-
- - -
-
- - {#if database.destinationDockerId} -
- -
- {/if} -
- -
- - + - -
-
- - -
-
- - -
-
-
- {#if database.type === 'mysql'} - - {:else if database.type === 'postgresql'} - - {:else if database.type === 'mongodb'} - - {:else if database.type === 'mariadb'} - - {:else if database.type === 'redis'} - - {:else if database.type === 'couchdb'} - - {/if} -
-
- + class="bg-transparent w-full" + />
- Version / Tag + + + disabled={$status.database.isRunning || $status.database.initialLoading} + class:cursor-pointer={!$status.database.isRunning} + /> + + + + +
+ {#if database.type === 'mysql'} + + {:else if database.type === 'postgresql'} + + {:else if database.type === 'mongodb'} + + {:else if database.type === 'mariadb'} + + {:else if database.type === 'redis'} + + {:else if database.type === 'couchdb'} + + {/if} +
+
+
+
-
{$t('application.features')}
+

{$t('application.features')}

-
-
- changeSettings('isPublic')} - title={$t('database.set_public')} - description={$t('database.warning_database_public')} - disabled={!$status.database.isRunning} - /> -
+
+ changeSettings('isPublic')} + title={$t('database.set_public')} + description={$t('database.warning_database_public')} + disabled={!$status.database.isRunning} + /> {#if database.type === 'redis'} -
- changeSettings('appendOnly')} - title={$t('database.change_append_only_mode')} - description={$t('database.warning_append_only')} - /> -
+ changeSettings('appendOnly')} + title={$t('database.change_append_only_mode')} + description={$t('database.warning_append_only')} + /> {/if}
diff --git a/apps/ui/src/routes/databases/[id]/_Databases/_MongoDB.svelte b/apps/ui/src/routes/databases/[id]/_Databases/_MongoDB.svelte index b93c10bf5..23da287e1 100644 --- a/apps/ui/src/routes/databases/[id]/_Databases/_MongoDB.svelte +++ b/apps/ui/src/routes/databases/[id]/_Databases/_MongoDB.svelte @@ -7,9 +7,9 @@
-
MongoDB
+

MongoDB

-
+
-
MySQL
+

MySQL

-
+
{#if id !== 'new'} - {/if} diff --git a/apps/ui/src/routes/databases/[id]/index.svelte b/apps/ui/src/routes/databases/[id]/index.svelte index cb70d1eb9..9717b6241 100644 --- a/apps/ui/src/routes/databases/[id]/index.svelte +++ b/apps/ui/src/routes/databases/[id]/index.svelte @@ -48,8 +48,8 @@ }); -
-
+
+
Configuration
@@ -58,7 +58,7 @@
-
+
Database Usage
diff --git a/apps/ui/src/tailwind.css b/apps/ui/src/tailwind.css index f4233cf8d..50f75c8ec 100644 --- a/apps/ui/src/tailwind.css +++ b/apps/ui/src/tailwind.css @@ -97,7 +97,7 @@ a { } .title { - @apply mr-4 text-base tracking-tight md:text-2xl font-bold; + @apply mr-4 tracking-tight text-2xl font-bold; } .nav-main { @apply fixed top-0 left-0 min-h-screen w-16 min-w-[4rem] overflow-hidden border-r border-stone-800 bg-coolgray-200 scrollbar-w-1 scrollbar-thumb-coollabs scrollbar-track-coolgray-200 xl:overflow-visible;