This commit is contained in:
Andras Bacsai
2023-05-31 22:23:17 +02:00
parent eae167f8bd
commit 7341e2586d
10 changed files with 60 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
<div>
<h1 class="pb-0">Command Center</h1>
<h1 class="pb-2">Command Center</h1>
<div class="pb-4 text-sm">Outputs are not saved at the moment, only available until you refresh or navigate.</div>
<form class="flex items-end justify-center gap-2" wire:submit.prevent='runCommand'>
<x-forms.input placeholder="ls -l" autofocus noDirty id="command" label="Command" required />

View File

@@ -1,11 +1,13 @@
<div>
<form wire:submit.prevent='submit' class="flex flex-col">
<div class="flex items-center gap-2 border-b-2 border-solid border-coolgray-200">
<h1>Settings</h1>
<div class="flex gap-2">
<h1 class="pb-2">Settings</h1>
<x-forms.button type="submit">
Save
</x-forms.button>
</div>
<div class="pb-4 text-sm">Instance wide settings for Coolify.
</div>
<div class="flex flex-col gap-2">
<div class="flex gap-2">
<x-forms.input id="settings.fqdn" label="Coolify's Domain" />
@@ -22,13 +24,12 @@
</form>
<h3>Advanced</h3>
<div class="flex flex-col pt-4 text-right w-52">
<div class="flex flex-col text-right w-52">
<x-forms.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Coolify" />
<x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />
{{-- <x-forms.checkbox instantSave id="is_https_forced" label="Force https?" /> --}}
<x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />
</div>
<h3>Upgrade</h3>
@if (auth()->user()->isPartOfRootTeam())
<livewire:force-upgrade />
@endif

View File

@@ -25,14 +25,20 @@
<x-forms.button x-on:click.prevent="deleteSource = true">
Delete
</x-forms.button>
<form x-data>
<x-forms.button isHighlighted x-on:click.prevent="createGithubApp">Create GitHub Application
</x-forms.button>
</form>
@endif
</div>
</div>
@if (!$github_app->app_id)
<div class="pb-4">
<div class="text-sm">You need to register a GitHub App before using this source!</div>
<form>
<x-forms.button isHighlighted x-on:click.prevent="createGithubApp">Register a GitHub
Application
</x-forms.button>
</form>
</div>
@endif
<x-forms.input id="github_app.name" label="App Name" required />
@if ($github_app->app_id)
@@ -41,10 +47,15 @@
@else
<x-forms.input id="github_app.organization" label="Organization" placeholder="Personal user if empty" />
@endif
<x-forms.input id="github_app.api_url" label="API Url" disabled />
<x-forms.input id="github_app.html_url" label="HTML Url" disabled />
<x-forms.input id="github_app.custom_user" label="User" required />
<x-forms.input type="number" id="github_app.custom_port" label="Port" required />
<x-forms.input id="github_app.api_url" label="API Url" disabled />
@if ($github_app->html_url === 'https://github.com')
<x-forms.input id="github_app.custom_user" label="User" disabled />
<x-forms.input type="number" id="github_app.custom_port" label="Port" disabled />
@else
<x-forms.input id="github_app.custom_user" label="User" required />
<x-forms.input type="number" id="github_app.custom_port" label="Port" required />
@endif
@if ($github_app->app_id)
<x-forms.input type="number" id="github_app.app_id" label="App Id" disabled />

View File

@@ -1,11 +1,13 @@
<div>
<form wire:submit.prevent='createGitHubApp'>
<x-forms.button type="submit">
Submit
</x-forms.button>
<h3 class="pt-4">General</h3>
<div class="flex items-start gap-2 pt-6">
<h2 class="">General</h2>
<x-forms.button type="submit">
Save
</x-forms.button>
</div>
<x-forms.input id="name" label="Name" required />
<x-forms.input helper="If empty, your user will be used." id="organization" label="Organization" />
<x-forms.input helper="If empty, your GitHub user will be used." id="organization" label="Organization" />
<h3 class="pt-4">Advanced</h3>
<x-forms.input id="html_url" label="HTML Url" required />
<x-forms.input id="api_url" label="API Url" required />