From c5eff85c2852a44ebba6a0b63df5c3734206197d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 16:42:41 +0100 Subject: [PATCH 1/8] Update version numbers and fix UI styling --- config/sentry.php | 2 +- config/version.php | 2 +- resources/views/livewire/dashboard.blade.php | 17 ++++--- .../views/livewire/project/index.blade.php | 2 +- .../views/livewire/project/show.blade.php | 2 +- .../livewire/team/storage/index.blade.php | 4 +- .../wire-elements-modal/modal.blade.php | 45 ------------------- versions.json | 2 +- 8 files changed, 15 insertions(+), 61 deletions(-) delete mode 100644 resources/views/vendor/wire-elements-modal/modal.blade.php diff --git a/config/sentry.php b/config/sentry.php index 00613c115..b432cb213 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.243', + 'release' => '4.0.0-beta.244', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index a16c004bf..40004d17e 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@ @if (data_get($project, 'environments')->count() === 1) -
{{ $project->name }}
-
- {{ $project->description }}
+
{{ $project->description }}
@else -
{{ $project->name }}
{{ $project->description }}
@endif -
+
+ @@ -71,7 +70,7 @@ 'border-transparent' => $server->settings->is_reachable, 'border-red-500' => !$server->settings->is_reachable, ])> -
+
{{ $server->name }}
@@ -79,13 +78,13 @@ {{ $server->description }}
@if (!$server->settings->is_reachable) - Not reachable + Not reachable @endif @if (!$server->settings->is_reachable && !$server->settings->is_usable) & @endif @if (!$server->settings->is_usable) - Not usable by Coolify + Not usable by Coolify @endif
@@ -137,7 +136,7 @@ 'dark:border-coolgray-300' => data_get($deployment, 'status') === 'queued', 'border-yellow-500' => data_get($deployment, 'status') === 'in_progress', ])> -
+
{{ data_get($deployment, 'application_name') }}
diff --git a/resources/views/livewire/project/index.blade.php b/resources/views/livewire/project/index.blade.php index 998c16184..14ae5ca78 100644 --- a/resources/views/livewire/project/index.blade.php +++ b/resources/views/livewire/project/index.blade.php @@ -16,7 +16,7 @@
{{ $project->description }}
-
+
Settings diff --git a/resources/views/livewire/project/show.blade.php b/resources/views/livewire/project/show.blade.php index 3535fe7df..eca4d25b1 100644 --- a/resources/views/livewire/project/show.blade.php +++ b/resources/views/livewire/project/show.blade.php @@ -17,7 +17,7 @@
{{ $environment->description }}
-
+
Settings diff --git a/resources/views/livewire/team/storage/index.blade.php b/resources/views/livewire/team/storage/index.blade.php index 81d137a2f..c2676e11f 100644 --- a/resources/views/livewire/team/storage/index.blade.php +++ b/resources/views/livewire/team/storage/index.blade.php @@ -12,10 +12,10 @@ @forelse ($s3 as $storage)
-
+
{{ $storage->name }}
-
+
{{ $storage->description }}
diff --git a/resources/views/vendor/wire-elements-modal/modal.blade.php b/resources/views/vendor/wire-elements-modal/modal.blade.php deleted file mode 100644 index ff8571319..000000000 --- a/resources/views/vendor/wire-elements-modal/modal.blade.php +++ /dev/null @@ -1,45 +0,0 @@ -
- @isset($jsPath) - - @endisset - @isset($cssPath) - - @endisset - - -
diff --git a/versions.json b/versions.json index fda35b876..058d748c8 100644 --- a/versions.json +++ b/versions.json @@ -4,7 +4,7 @@ "version": "3.12.36" }, "v4": { - "version": "4.0.0-beta.243" + "version": "4.0.0-beta.244" } } } From 0a82dc2e8e7e51f85967f2eb16c269f7d5972145 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 16:45:34 +0100 Subject: [PATCH 2/8] Remove unused Livewire components --- routes/web.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routes/web.php b/routes/web.php index 78527c8ce..c33e3b0eb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -26,10 +26,8 @@ use App\Livewire\Notifications\Telegram as NotificationTelegram; use App\Livewire\Notifications\Discord as NotificationDiscord; use App\Livewire\Team\Index as TeamIndex; -use App\Livewire\Team\Create as TeamCreate; use App\Livewire\Team\Storage\Index as TeamStorageIndex; -use App\Livewire\Team\Storage\Create as TeamStorageCreate; use App\Livewire\Team\Storage\Show as TeamStorageShow; use App\Livewire\Team\Member\Index as TeamMemberIndex; @@ -58,11 +56,9 @@ use App\Livewire\Project\Shared\Logs; use App\Livewire\Project\Shared\ScheduledTask\Show as ScheduledTaskShow; use App\Livewire\Security\ApiTokens; -use App\Livewire\Security\PrivateKey\Create as SecurityPrivateKeyCreate; use App\Livewire\Security\PrivateKey\Show as SecurityPrivateKeyShow; use App\Livewire\Server\Index as ServerIndex; -use App\Livewire\Server\Create as ServerCreate; use App\Livewire\Server\Show as ServerShow; use App\Livewire\Server\Resources as ResourcesShow; From fc9bb7dac6777ea53f80ef22baf4f0faeda60f6c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 16:52:34 +0100 Subject: [PATCH 3/8] Delete user and send email snippets --- .tinkerwell/snippets/DeleteUser.php | 22 ---------------------- .tinkerwell/snippets/SendEmail.php | 28 ---------------------------- 2 files changed, 50 deletions(-) delete mode 100644 .tinkerwell/snippets/DeleteUser.php delete mode 100644 .tinkerwell/snippets/SendEmail.php diff --git a/.tinkerwell/snippets/DeleteUser.php b/.tinkerwell/snippets/DeleteUser.php deleted file mode 100644 index bd562557b..000000000 --- a/.tinkerwell/snippets/DeleteUser.php +++ /dev/null @@ -1,22 +0,0 @@ -first(); -$teams = $user->teams; -foreach ($teams as $team) { - $servers = $team->servers; - if ($servers->count() > 0) { - foreach ($servers as $server) { - dump($server); - $server->delete(); - } - } - dump($team); - $team->delete(); -} -if ($user) { - dump($user); - $user->delete(); -} diff --git a/.tinkerwell/snippets/SendEmail.php b/.tinkerwell/snippets/SendEmail.php deleted file mode 100644 index 07edfe8cd..000000000 --- a/.tinkerwell/snippets/SendEmail.php +++ /dev/null @@ -1,28 +0,0 @@ -to($user->email) - ->subject("Testing") - ->text( - <<id - -EOF - ); - }); -} From 5a631df2a253edc28e95f21edf0687b70131fdb8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 19:07:59 +0100 Subject: [PATCH 4/8] uiuiuiui --- resources/css/app.css | 4 ++-- .../views/components/external-link.blade.php | 2 +- .../views/components/forms/button.blade.php | 2 +- .../components/loading-on-button.blade.php | 13 +++++++++++ .../views/components/modal-input.blade.php | 6 ++--- resources/views/components/navbar.blade.php | 20 ++++++++++++---- .../views/components/pricing-plans.blade.php | 6 ++--- .../views/components/status/index.blade.php | 2 +- resources/views/destination/all.blade.php | 23 ++++++++++--------- .../views/livewire/activity-monitor.blade.php | 2 +- .../views/livewire/profile/index.blade.php | 2 ++ .../project/application/general.blade.php | 6 ++--- .../project/application/rollback.blade.php | 2 +- .../project/environment-edit.blade.php | 2 +- .../views/livewire/project/index.blade.php | 2 +- .../project/new/docker-compose.blade.php | 12 +--------- .../project/shared/destination.blade.php | 2 +- .../environment-variable/show.blade.php | 13 ++++++++--- .../shared/resource-operations.blade.php | 16 ++++++------- .../views/livewire/server/index.blade.php | 2 +- .../team-shared-variables-index.blade.php | 2 +- .../views/livewire/team/member.blade.php | 4 ++-- .../livewire/team/member/index.blade.php | 4 ++-- 23 files changed, 86 insertions(+), 63 deletions(-) create mode 100644 resources/views/components/loading-on-button.blade.php diff --git a/resources/css/app.css b/resources/css/app.css index f03e7e850..7ea0bc99a 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -41,7 +41,7 @@ option { } .button { - @apply flex items-center justify-center gap-2 px-3 py-1 text-sm font-normal normal-case rounded cursor-pointer bg-neutral-200 hover:bg-neutral-300 dark:bg-coolgray-200 dark:text-white dark:hover:bg-coolgray-100 dark:hover:dark:text-white dark:disabled:bg-coolgray-100/40 dark:disabled:text-neutral-800 disabled:bg-neutral-100 disabled:text-neutral-200 disabled:cursor-not-allowed min-w-fit hover:dark:text-white focus:outline-1 ; + @apply flex items-center justify-center gap-2 px-3 py-1 text-sm font-bold text-white normal-case rounded cursor-pointer hover:bg-black/80 bg-coolgray-200 hover:bg-coolgray-100 hover:text-white disabled:bg-coolgray-100/10 disabled:cursor-not-allowed min-w-fit focus:outline-1 dark:disabled:text-neutral-600; } button[isError]:not(:disabled) { @@ -94,7 +94,7 @@ tr { } tr th { - @apply px-3 py-3.5 text-left text-white; + @apply px-3 py-3.5 text-left text-black dark:text-white; } tr th:first-child { diff --git a/resources/views/components/external-link.blade.php b/resources/views/components/external-link.blade.php index 6991e0637..ddf03427f 100644 --- a/resources/views/components/external-link.blade.php +++ b/resources/views/components/external-link.blade.php @@ -1,4 +1,4 @@ -
+ @if (isset($text)) +
{{ $text }}
+ @endif + + + + + +
diff --git a/resources/views/components/modal-input.blade.php b/resources/views/components/modal-input.blade.php index 8b56ce750..924f530de 100644 --- a/resources/views/components/modal-input.blade.php +++ b/resources/views/components/modal-input.blade.php @@ -33,18 +33,18 @@ x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95" - class="relative w-full py-6 border rounded min-w-full lg:min-w-[36rem] max-w-fit bg-neutral-100 border-neutral-400 dark:bg-base px-7 dark:border-coolgray-300"> + class="relative w-full py-6 border rounded drop-shadow min-w-full lg:min-w-[36rem] max-w-fit bg-white border-neutral-200 dark:bg-base px-6 dark:border-coolgray-300">

{{ $title }}

-
+
{{ $slot }}
diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 0c0561a32..e4119ba3b 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -1,10 +1,20 @@