Skip to content

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.

css

Andras Bacsai03d224b708c2
diff --git a/app/Http/Livewire/Project/Application/Revert.php b/app/Http/Livewire/Project/Application/Revert.php
index 0008fa3b72..6440af7dcc 100644
--- a/app/Http/Livewire/Project/Application/Revert.php
+++ b/app/Http/Livewire/Project/Application/Revert.php
@@ -10,7 +10,7 @@ class Revert extends Component
{
public Application $application;
public $images = [];
- public string $current;
+ public string|null $current;
public function revertImage($tag)
{
dd("Reverting to {$this->application->uuid}:{$tag}");
diff --git a/public/svgs/external-link.svg b/public/svgs/external-link.svg
new file mode 100644
index 0000000000..e0e47d694b
--- /dev/null
+++ b/public/svgs/external-link.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewBox="0 0 24 24" >
+ <path d="M0 0h24v24H0V0z" fill="none">
+ </path>
+ <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z" fill="white">
+ </path>
+</svg>
diff --git a/resources/css/app.css b/resources/css/app.css
index 5806bf2406..c3437787a4 100644
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -16,16 +16,32 @@ textarea {
select {
@apply border border-solid border-coolgray-400 rounded p-2 px-4 bg-transparent text-white disabled:text-neutral-600 read-only:select-none outline-none;
}
-
button {
- @apply border-none px-2 p-1 cursor-pointer;
+ @apply border border-solid border-coolgray-200 px-3 p-1 cursor-pointer;
+}
+h1 {
+ @apply text-3xl font-bold pb-4;
+}
+h2 {
+ @apply text-xl font-bold pb-4;
+}
+h3 {
+ @apply text-lg font-bold pb-4;
+}
+a {
+ @apply m-2 hover:text-coollabs;
+}
+
+.box {
+ @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs-100 hover:text-white p-2 hover:no-underline;
}
+
.main-menu {
@apply relative float-left;
}
.main-menu:after {
content: "/";
- @apply absolute right-0 top-0 text-neutral-400 px-2 pt-[0.3rem];
+ @apply absolute right-0 top-0 text-neutral-400 px-2 pt-[0.5rem];
}
.magic-input {
@apply w-[25rem] rounded outline-none bg-coolgray-400 focus:bg-neutral-700 text-white;
@@ -39,19 +55,3 @@ button {
.magic-item-focused {
@apply bg-neutral-700 text-white;
}
-h1 {
- @apply text-3xl font-bold pb-4;
-}
-h2 {
- @apply text-xl font-bold pb-4;
-}
-h3 {
- @apply text-lg font-bold pb-4;
-}
-a {
- @apply m-2 hover:text-coollabs;
-}
-
-.box {
- @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs-100 hover:text-white p-2 hover:no-underline;
-}
diff --git a/resources/views/components/applications/navbar.blade.php b/resources/views/components/applications/navbar.blade.php
index 599b1e4efd..a6ac7f856c 100644
--- a/resources/views/components/applications/navbar.blade.php
+++ b/resources/views/components/applications/navbar.blade.php
@@ -1,4 +1,4 @@
-<nav class="flex gap-4 py-2">
+<nav class="flex justify-center gap-4 py-2 border-b-2 border-solid border-coolgray-200 ">
<a
href="{{ route('project.application.configuration', [
'project_uuid' => Route::current()->parameters()['project_uuid'],
@@ -16,7 +16,20 @@
Deployments
</a>
<a target="_blank" href="{{ $gitBranchLocation }}">
- Open on Git ↗️
+ Open on Git <img class="inline-flex w-4 h-4" src="{{ Vite::asset('public/svgs/external-link.svg') }}">
</a>
- <livewire:project.application.deploy :applicationId="$applicationId" />
+ @if (data_get($application, 'ports_mappings_array'))
+ @foreach ($application->ports_mappings_array as $port)
+ @if (config('app.env') === 'local')
+ <a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
+ {{ explode(':', $port)[0] }} <img class="inline-flex w-4 h-4"
+ src="{{ Vite::asset('public/svgs/external-link.svg') }}"></a>
+ @else
+ <a target="_blank"
+ href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">Open
+ {{ $port }}</a>
+ @endif
+ @endforeach
+ @endif
+ <livewire:project.application.deploy :applicationId="$application->id" />
</nav>
diff --git a/resources/views/components/magic-bar.blade.php b/resources/views/components/magic-bar.blade.php
index 1886403593..39d0f9fda9 100644
--- a/resources/views/components/magic-bar.blade.php
+++ b/resources/views/components/magic-bar.blade.php
@@ -1,4 +1,4 @@
-<div x-data="magicsearchbar" @slash.window="mainMenu = true">
+<div x-data="magicsearchbar" @slash.window="mainMenu = true" class="fixed -translate-x-1/2 left-1/2">
{{-- Main --}}
<template x-cloak x-if="isMainMenu">
<div>
diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php
index e97f36e462..43f9661e7b 100644
--- a/resources/views/components/navbar.blade.php
+++ b/resources/views/components/navbar.blade.php
@@ -20,7 +20,6 @@
</a>
@endif
</div>
- <div class="flex-1"></div>
<x-magic-bar />
<div class="flex-1"></div>
<div class="flex gap-2 text-sm">
@@ -28,7 +27,7 @@
<livewire:force-upgrade />
<form action="/logout" method="POST">
@csrf
- <button class="m-1 hover:underline" type="submit">Logout</button>
+ <button class="m-1 border-none hover:underline" type="submit">Logout</button>
</form>
</div>
</div>
diff --git a/resources/views/livewire/force-upgrade.blade.php b/resources/views/livewire/force-upgrade.blade.php
index caa322a8fa..a70a8d7027 100644
--- a/resources/views/livewire/force-upgrade.blade.php
+++ b/resources/views/livewire/force-upgrade.blade.php
@@ -1,5 +1,5 @@
<div>
@if (auth()->user()->teams->contains(0))
- <button wire:click='upgrade' class="m-1 hover:underline">Force Upgrade</button>
+ <button wire:click='upgrade' class="m-1 border-none hover:underline">Force Upgrade</button>
@endif
</div>
diff --git a/resources/views/livewire/project/application/deploy.blade.php b/resources/views/livewire/project/application/deploy.blade.php
index ae5e75e2d4..ba2ca08927 100644
--- a/resources/views/livewire/project/application/deploy.blade.php
+++ b/resources/views/livewire/project/application/deploy.blade.php
@@ -12,24 +12,11 @@
Delete</x-inputs.button>
<span wire:poll.5000ms='pollingStatus'>
@if ($application->status === 'running')
- @if (data_get($application, 'ports_mappings_array'))
- @foreach ($application->ports_mappings_array as $port)
- @if (config('app.env') === 'local')
- <a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
- {{ explode(':', $port)[0] }}</a>
- @else
- <a target="_blank"
- href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">Open
- {{ $port }}</a>
- @endif
- @endforeach
- @endif
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
<span class="text-green-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
@else
<span class="text-xs text-pink-600" wire:loading.delay.longer>Loading current status...</span>
<span class="text-red-500" wire:loading.remove.delay.longer>{{ $application->status }}</span>
@endif
-
</span>
</div>
diff --git a/resources/views/livewire/project/application/revert.blade.php b/resources/views/livewire/project/application/revert.blade.php
index 158446fda9..58e8627c22 100644
--- a/resources/views/livewire/project/application/revert.blade.php
+++ b/resources/views/livewire/project/application/revert.blade.php
@@ -14,8 +14,9 @@
<div class="text-sm">
@if (data_get($image, 'is_current'))
<span class="font-bold text-coollabs">LIVE</span>
+ |
@endif
- | {{ data_get($image, 'tag') }}
+ {{ data_get($image, 'tag') }}
</div>
<div class="text-xs">{{ data_get($image, 'created_at') }}</div>
diff --git a/resources/views/project/application/configuration.blade.php b/resources/views/project/application/configuration.blade.php
index edd72a8a75..dae6abdacd 100644
--- a/resources/views/project/application/configuration.blade.php
+++ b/resources/views/project/application/configuration.blade.php
@@ -1,5 +1,5 @@
<x-layout>
- <x-applications.navbar :applicationId="$application->id" :gitBranchLocation="$application->gitBranchLocation" />
+ <x-applications.navbar :application="$application" :gitBranchLocation="$application->gitBranchLocation" />
<h1 class="py-10">Configuration</h1>
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex pt-6">
<div class="flex flex-col min-w-fit">
@@ -25,7 +25,7 @@
@click.prevent="activeTab = 'previews'; window.location.hash = 'previews'" href="#">Previews
</a> --}}
</div>
- <div class="w-full pl-8">
+ <div class="w-full pt-2 pl-8">
<div x-cloak x-show="activeTab === 'general'">
<livewire:project.application.general :application="$application" />
</div>
diff --git a/resources/views/project/application/deployments.blade.php b/resources/views/project/application/deployments.blade.php
index ed9c09c86b..a54266725a 100644
--- a/resources/views/project/application/deployments.blade.php
+++ b/resources/views/project/application/deployments.blade.php
@@ -1,5 +1,5 @@
<x-layout>
- <x-applications.navbar :applicationId="$application->id" :gitBranchLocation="$application->gitBranchLocation" />
+ <x-applications.navbar :application="$application" :gitBranchLocation="$application->gitBranchLocation" />
<h1 class="py-10">Deployments</h1>
<div class="pt-2">
@forelse ($deployments as $deployment)