From 203c19c01fa202e241864b71916d17240c94bc64 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 18 May 2023 15:12:26 +0200 Subject: [PATCH] wip --- .../Livewire/Project/Application/Rollback.php | 1 - ...03_27_081716_create_applications_table.php | 2 +- resources/css/app.css | 23 +++++++------ .../views/components/inputs/button.blade.php | 2 +- .../views/components/inputs/input.blade.php | 2 +- .../views/components/magic-bar.blade.php | 26 +++++++------- resources/views/components/navbar.blade.php | 15 +++++--- .../project/application/deploy.blade.php | 34 ++++++++++++++----- .../environment-variable/add.blade.php | 4 +-- .../project/application/general.blade.php | 31 +++++++++-------- .../application/resource-limits.blade.php | 9 ++--- .../project/application/rollback.blade.php | 5 +-- .../project/application/source.blade.php | 23 +++++++------ .../application/storages/add.blade.php | 6 ++-- .../new/public-git-repository.blade.php | 15 ++++---- .../views/livewire/run-command.blade.php | 4 +-- .../application/configuration.blade.php | 4 +-- 17 files changed, 117 insertions(+), 89 deletions(-) diff --git a/app/Http/Livewire/Project/Application/Rollback.php b/app/Http/Livewire/Project/Application/Rollback.php index 68658e0b3..df166b25c 100644 --- a/app/Http/Livewire/Project/Application/Rollback.php +++ b/app/Http/Livewire/Project/Application/Rollback.php @@ -17,7 +17,6 @@ class Rollback extends Component } public function loadImages() { - sleep(2); try { $image = $this->application->uuid; $output = instantRemoteProcess([ diff --git a/database/migrations/2023_03_27_081716_create_applications_table.php b/database/migrations/2023_03_27_081716_create_applications_table.php index 9cabae3e1..b180ca8b9 100644 --- a/database/migrations/2023_03_27_081716_create_applications_table.php +++ b/database/migrations/2023_03_27_081716_create_applications_table.php @@ -62,7 +62,7 @@ return new class extends Migration $table->boolean('limits_memory_oom_kill')->default(false); $table->string('limits_cpus')->default("0"); - $table->string('limits_cpuset')->nullable()->default(""); + $table->string('limits_cpuset')->nullable()->default("0"); $table->integer('limits_cpu_shares')->default(1024); $table->string('status')->default('exited'); diff --git a/resources/css/app.css b/resources/css/app.css index 4dc2c5131..afda48be6 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -3,29 +3,30 @@ @tailwind utilities; * { -@apply scrollbar-thumb-yellow-400 scrollbar-track-coolgray-200 scrollbar-w-1; + //outline: solid 0.25rem hsla(210, 100%, 100%, 0.5); + @apply scrollbar-thumb-yellow-400 scrollbar-track-coolgray-200 scrollbar-w-2; } html { - @apply h-full min-h-full bg-coolgray-100 ; + @apply h-full min-h-full bg-coolgray-100; } body { - @apply bg-coolgray-100 text-white min-h-full antialiased; + @apply bg-coolgray-100 text-neutral-400 min-h-full antialiased; } input[type="checkbox"] { @apply toggle toggle-warning toggle-sm; } input { - @apply input input-sm; + @apply input input-sm placeholder:text-neutral-700 text-white; } input[type="text"],[type="number"],[type="email"],[type="password"] { @apply read-only:opacity-40; } textarea { - @apply textarea; + @apply textarea placeholder:text-neutral-700 text-white; } select { - @apply select select-sm disabled:opacity-40 font-normal; + @apply select select-sm disabled:opacity-40 font-normal placeholder:text-neutral-700 text-white; } button[type="button"] { @@ -41,13 +42,13 @@ button[isHighlighted] { @apply btn-primary text-white; } h1 { - @apply text-3xl font-bold pb-4; + @apply text-3xl font-bold pb-4 text-white; } h2 { - @apply text-2xl font-bold pb-4; + @apply text-2xl font-bold pb-4 text-white; } h3 { - @apply text-xl font-bold py-4; + @apply text-xl font-bold py-4 text-white; } a { @apply text-neutral-400 hover:text-white text-sm link link-hover hover:bg-transparent; @@ -62,10 +63,10 @@ a { } .main-menu:after { content: "/"; - @apply font-bold absolute right-0 top-0 text-neutral-400 px-2 pt-[0.7rem]; + @apply absolute border border-dotted rounded border-neutral-600 right-0 top-0 text-warning mx-1 px-2 mt-[0.7rem]; } .magic-input { - @apply input input-ghost w-96 placeholder:text-neutral-400 text-sm; + @apply input w-96 placeholder:text-neutral-700 text-sm; } .magic-items { @apply absolute top-16 mt-2 w-[24rem] bg-coolgray-200 rounded-xl outline outline-coolgray-500; diff --git a/resources/views/components/inputs/button.blade.php b/resources/views/components/inputs/button.blade.php index 44f738c13..a323d620f 100644 --- a/resources/views/components/inputs/button.blade.php +++ b/resources/views/components/inputs/button.blade.php @@ -5,7 +5,7 @@ 'confirmAction' => null, ]) @if ($type === 'submit') -