storages
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
@props([
|
||||
'isWarning' => null,
|
||||
'defaultClass' => 'text-white bg-neutral-800 hover:bg-violet-600 w-28',
|
||||
'defaultWarningClass' => 'text-white bg-red-500 hover:bg-red-600 w-28',
|
||||
'loadingClass' => 'text-black bg-green-500 w-28',
|
||||
'defaultClass' => 'text-white bg-neutral-800 hover:bg-violet-600 w-28 h-6',
|
||||
'defaultWarningClass' => 'text-white bg-red-500 hover:bg-red-600 w-28 h-6',
|
||||
'loadingClass' => 'text-black bg-green-500 w-28 h-6',
|
||||
'confirm' => null,
|
||||
'confirmAction' => null,
|
||||
])
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<form wire:submit.prevent='submit' class="flex gap-2 px-2">
|
||||
<x-inputs.input noLabel noDirty id="key" required />
|
||||
<x-inputs.input noLabel noDirty id="value" required />
|
||||
<form wire:submit.prevent='submit' class="flex items-end gap-2 px-2">
|
||||
<x-inputs.input noDirty id="key" label="Name" required />
|
||||
<x-inputs.input noDirty id="value" label="Value" required />
|
||||
<div class="flex flex-col">
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="checkbox" wire:model.defer="is_build_time" />
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<div class="flex flex-col gap-2">
|
||||
<h3>Environment Variables</h3>
|
||||
@forelse ($application->environment_variables as $env)
|
||||
<livewire:project.application.environment-variable.show wire:key="item-{{ $env->id }}" :env="$env" />
|
||||
<livewire:project.application.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||
:env="$env" />
|
||||
@empty
|
||||
<p>There are no environment variables for this application.</p>
|
||||
@endforelse
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<div>
|
||||
@forelse ($storages as $storage)
|
||||
<p>Name:{{ data_get($storage, 'name') }}</p>
|
||||
<p>MountPath:{{ data_get($storage, 'mount_path') }}</p>
|
||||
<p>HostPath:{{ data_get($storage, 'host_path') }}</p>
|
||||
<p>ContainerId:{{ data_get($storage, 'container_id') }}</p>
|
||||
@empty
|
||||
<p>There are no storages added for this application.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<form wire:submit.prevent='submit' class="flex items-end gap-2 px-2">
|
||||
<x-inputs.input noDirty id="name" label="Name" required />
|
||||
<x-inputs.input noDirty id="mount_path" label="Mount Path (in your app)" required />
|
||||
<x-inputs.input noDirty id="host_path" label="Mount Path (host)" />
|
||||
|
||||
<x-inputs.button type="submit">
|
||||
Add
|
||||
</x-inputs.button>
|
||||
</form>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="flex flex-col gap-2">
|
||||
<h3>Persistent Storages</h3>
|
||||
@forelse ($application->persistentStorages as $storage)
|
||||
<livewire:project.application.storages.show :storage="$storage" />
|
||||
@empty
|
||||
<p>There are no persistent storage attached for this application.</p>
|
||||
@endforelse
|
||||
<h4>Add new environment variable</h4>
|
||||
<livewire:project.application.storages.add />
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div x-data="{ deleteStorage: false }">
|
||||
<form wire:submit.prevent='submit' class="flex items-end gap-2 px-2">
|
||||
<x-inputs.input id="storage.name" label="Name" required />
|
||||
<x-inputs.input id="storage.mount_path" label="Mount Path (in your app)" required />
|
||||
<x-inputs.input id="storage.host_path" label="Mount Path (host)" />
|
||||
|
||||
<x-inputs.button type="submit">
|
||||
Update
|
||||
</x-inputs.button>
|
||||
<x-inputs.button x-on:click="deleteStorage = true" isWarning>
|
||||
Delete
|
||||
</x-inputs.button>
|
||||
</form>
|
||||
<x-naked-modal show="deleteStorage" message="Are you sure you want to delete {{ $storage->name }}?" />
|
||||
</div>
|
||||
@@ -35,8 +35,7 @@
|
||||
<livewire:project.application.destination :destination="$application->destination" />
|
||||
</div>
|
||||
<div x-cloak x-show="activeTab === 'storages'">
|
||||
<h3>Persistent Storages</h3>
|
||||
<livewire:project.application.storages :storages="$application->persistentStorages" />
|
||||
<livewire:project.application.storages.all :application="$application" />
|
||||
</div>
|
||||
</div>
|
||||
</x-layout>
|
||||
|
||||
Reference in New Issue
Block a user