auto updates

This commit is contained in:
Andras Bacsai
2023-05-22 12:00:59 +02:00
parent 8f7fd4295e
commit e00ccf65cf
15 changed files with 147 additions and 38 deletions

View File

@@ -23,7 +23,7 @@
<button>{{ __('auth.register') }}</button>
</a>
@else
<div>{{ __('auth.registration_disabled') }}</div>
<div class="text-sm text-center">{{ __('auth.registration_disabled') }}</div>
@endif
</div>
</div>

View File

@@ -14,19 +14,18 @@
Dashboard
</a>
</li>
@if (auth()->user()->isRoot())
@if (auth()->user()->isPartOfRootTeam())
<li>
<a href="/settings">
Settings
</a>
</li>
@endif
<li>
{{-- <li>
<a href="/profile">
Profile
</a>
</li>
</li> --}}
<li>
<a href="/profile/team">
Team
@@ -37,7 +36,7 @@
Command Center
</a>
</li>
@if (auth()->user()->isRoot())
@if (auth()->user()->isPartOfRootTeam())
<li>
<livewire:force-upgrade />
</li>
@@ -62,18 +61,18 @@
Dashboard
</a>
</li>
@if (auth()->user()->isRoot())
@if (auth()->user()->isPartOfRootTeam())
<li>
<a href="/settings">
Settings
</a>
</li>
@endif
<li>
{{-- <li>
<a href="/profile">
Profile
</a>
</li>
</li> --}}
<li>
<a href="/profile/team">
Team
@@ -84,7 +83,7 @@
Command Center
</a>
</li>
@if (auth()->user()->isRoot())
@if (auth()->user()->isPartOfRootTeam())
<li>
<livewire:force-upgrade />
</li>

View File

@@ -1,8 +1,8 @@
<x-layout>
@if ($servers->count() === 0)
<div class="flex flex-col items-center justify-center h-full pt-32">
<div class="">Without a server, you won't be able to do much</div>
<div class="text-2xl">Let's create <a class="underline" href="{{ route('server.new') }}">your
<div class="">Without a server, you won't be able to do much...</div>
<div>Let's create <a class="underline text-warning" href="{{ route('server.new') }}">your
first</a> one!</div>
</div>
@else

View File

@@ -2,7 +2,8 @@
<form class="flex flex-col gap-2 " wire:submit.prevent='createPrivateKey'>
<x-inputs.input id="name" label="Name" required />
<x-inputs.input id="description" label="Description" />
<x-inputs.input type="textarea" id="value" label="Private Key" required />
<x-inputs.textarea id="value" rows="10" placeholder="-----BEGIN OPENSSH PRIVATE KEY-----"
label="Private Key" required />
<x-inputs.button type="submit" wire.click.prevent>
Save
</x-inputs.button>

View File

@@ -1,23 +1,28 @@
<div>
<form wire:submit.prevent='submit' class="flex flex-col">
<div class="flex flex-col gap-2 xl:flex-row">
<div class="flex flex-col w-96">
<div class="flex items-center gap-2">
<h1>Settings</h1>
<x-inputs.button type="submit">
Save
</x-inputs.button>
</div>
<div class="flex flex-col gap-2">
<div class="flex flex-col gap-2 xl:flex-row">
<x-inputs.input id="settings.fqdn" label="Coolify's Domain" />
<x-inputs.input id="settings.wildcard_domain" label="Wildcard Domain"
helper="Wildcard domain for your applications. If you set this, you will get a random generated domain for your new applications.<br><br><span class='inline-block font-bold text-warning'>Example</span>https://example.com<br>Your applications will get https://randomthing.example.com" />
</div>
<div class="flex flex-col w-96">
<div class="flex flex-col gap-2 xl:flex-row">
<x-inputs.input type="number" id="settings.public_port_min" label="Public Port Min" />
<x-inputs.input type="number" id="settings.public_port_max" label="Public Port Max" />
</div>
</div>
<x-inputs.button class="w-16 mt-4" type="submit">
Submit
</x-inputs.button>
</form>
<h3>Advanced</h3>
<div class="flex flex-col pt-4 text-right w-52">
<x-inputs.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Coolify" />
<x-inputs.checkbox instantSave id="is_registration_enabled" label="Registration Enabled?" />
<x-inputs.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />
{{-- <x-inputs.checkbox instantSave id="is_https_forced" label="Force https?" /> --}}
<x-inputs.checkbox instantSave id="do_not_track" label="Do Not Track" />
</div>

View File

@@ -1,10 +1,13 @@
<div class="pt-4">
<h3>Other Teams</h3>
<div class="flex flex-col gap-2">
@foreach (auth()->user()->otherTeams() as $team)
<x-inputs.button wire:key="{{ $team->id }}" wire:click="switch_to('{{ $team->id }}')">Switch
to:
{{ $team->name }}</x-inputs.button>
@endforeach
</div>
@if (auth()->user()->otherTeams()->count() > 0)
<p>Switch to:</p>
<div class="flex gap-2">
@foreach (auth()->user()->otherTeams() as $team)
<x-inputs.button isHighlighted wire:key="{{ $team->id }}"
wire:click="switch_to('{{ $team->id }}')">
{{ $team->name }}</x-inputs.button>
@endforeach
</div>
@endif
</div>

View File

@@ -1,6 +1,6 @@
<x-layout>
@if ($private_keys->count() === 0)
<h2>Create private key</h2>
<h2>Create Private Key</h2>
<div>You need to create a private key before you can create a server.</div>
<livewire:private-key.create from="server" />
@else

View File

@@ -1,4 +1,3 @@
<x-layout>
<h1>Settings</h1>
<livewire:settings.form :settings="$settings" />
</x-layout>

View File

@@ -1,7 +1,7 @@
<x-layout>
<div>
<h3>Current Team</h3>
<p>Name: {{ session('currentTeam')->name }}</p>
<p>{{ session('currentTeam')->name }}</p>
<livewire:switch-team>
</div>
</x-layout>