static hosting
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
<x-layout>
|
||||
<h1>{{ $title ?? 'NOT SET' }}</h1>
|
||||
<x-applications.navbar :applicationId="$applicationId" />
|
||||
<div>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</x-layout>
|
||||
@@ -26,8 +26,8 @@
|
||||
@endif
|
||||
</label>
|
||||
<input type={{ $type }} id={{ $id }} wire:model.defer={{ $id }}
|
||||
@if ($required) required @endif
|
||||
@if ($readonly) readOnly=true disabled=true @endif />
|
||||
@if ($required) required @endif @if ($disabled) disabled @endif
|
||||
@if ($readonly) readOnly disabled @endif />
|
||||
@error($id)
|
||||
<div class="text-red-500">{{ $message }}</div>
|
||||
@enderror
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
<a target="_blank" href="{{ data_get($application, 'fqdn') }}">Open URL</a>
|
||||
@endif
|
||||
|
||||
@if (data_get($application, 'ports_exposes_array'))
|
||||
@foreach ($application->ports_exposes_array as $port)
|
||||
@if (data_get($application, 'ports_mappings_array'))
|
||||
@foreach ($application->ports_mappings_array as $port)
|
||||
@if (env('APP_ENV') === 'local')
|
||||
<a target="_blank" href="http://localhost:{{ $port }}">Open
|
||||
{{ $port }}</a>
|
||||
<a target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">Open
|
||||
{{ explode(':', $port)[0] }}</a>
|
||||
@else
|
||||
<a target="_blank"
|
||||
href="http://{{ $application->destination->server->ip }}:{{ $port }}">Open
|
||||
|
||||
@@ -11,15 +11,26 @@
|
||||
<x-form-input id="application.start_command" label="Start Command" />
|
||||
<x-form-input id="application.build_pack" label="Build Pack" />
|
||||
@if ($application->settings->is_static)
|
||||
<x-form-input id="application.static_image" label="Static Image" />
|
||||
<x-form-input id="application.static_image" label="Static Image" required />
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex flex-col w-96">
|
||||
|
||||
<x-form-input id="application.base_directory" label="Base Directory" />
|
||||
<x-form-input id="application.publish_directory" label="Publish Directory" />
|
||||
@if ($application->settings->is_static)
|
||||
<x-form-input id="application.publish_directory" label="Publish Directory" required />
|
||||
@else
|
||||
<x-form-input id="application.publish_directory" label="Publish Directory" />
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="flex flex-col w-96">
|
||||
<x-form-input id="application.ports_exposes" label="Ports Exposes" />
|
||||
@if ($application->settings->is_static)
|
||||
<x-form-input id="application.ports_exposes" label="Ports Exposes" disabled />
|
||||
@else
|
||||
<x-form-input id="application.ports_exposes" label="Ports Exposes" />
|
||||
@endif
|
||||
|
||||
<x-form-input id="application.ports_mappings" label="Ports Mappings" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -21,8 +21,12 @@
|
||||
@isset($chosenDestination)
|
||||
<form wire:submit.prevent='submit'>
|
||||
<x-form-input id="public_repository_url" label="Repository URL" />
|
||||
<x-form-input type="checkbox" id="is_static" label="Static Site?" />
|
||||
<x-form-input type="number" id="port" label="Port" />
|
||||
<x-form-input instantSave type="checkbox" id="is_static" label="Static Site?" />
|
||||
@if ($is_static)
|
||||
<x-form-input id="publish_directory" label="Publish Directory" />
|
||||
@else
|
||||
<x-form-input type="number" id="port" label="Port" :disabled="$is_static" />
|
||||
@endif
|
||||
<button type="submit">
|
||||
Submit
|
||||
</button>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<x-applications.layout :applicationId="$application->id" title="Configurations">
|
||||
<x-layout>
|
||||
<h1>Configuration</h1>
|
||||
<x-applications.navbar :applicationId="$application->id" />
|
||||
<div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
|
||||
<div class="flex gap-4">
|
||||
<a @click.prevent="tab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
||||
@@ -25,4 +27,4 @@
|
||||
<livewire:project.application.storages :storages="$application->persistentStorages" />
|
||||
</div>
|
||||
</div>
|
||||
</x-applications.layout>
|
||||
</x-layout>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<x-applications.layout :applicationId="$application->id" title="Deployment">
|
||||
<x-layout>
|
||||
<h1>Deployment</h1>
|
||||
<x-applications.navbar :applicationId="$application->id" />
|
||||
<livewire:project.application.poll-deployment :activity="$activity" :deployment_uuid="$deployment_uuid" />
|
||||
</x-applications.layout>
|
||||
</x-layout>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<x-applications.layout :applicationId="$application->id" title="Deployments">
|
||||
<x-layout>
|
||||
<h1>Deployments</h1>
|
||||
<x-applications.navbar :applicationId="$application->id" />
|
||||
<div class="pt-2">
|
||||
@forelse ($deployments as $deployment)
|
||||
<livewire:project.application.get-deployments :deployment_uuid="data_get($deployment->properties, 'deployment_uuid')" :created_at="data_get($deployment, 'created_at')" :status="data_get($deployment->properties, 'status')" />
|
||||
@@ -6,4 +8,4 @@
|
||||
<p>No deployments found.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
</x-applications.layout>
|
||||
</x-layout>
|
||||
|
||||
Reference in New Issue
Block a user