testing php storm code cleanup and styling

This commit is contained in:
Andras Bacsai
2023-08-08 11:51:36 +02:00
parent a8ee779b31
commit f2228cec7b
368 changed files with 23834 additions and 2623 deletions

View File

@@ -1,9 +1,9 @@
<dialog id="newStorage" class="modal">
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
<h3 class="text-lg font-bold">Add Storage Volume</h3>
<x-forms.input placeholder="pv-name" id="name" label="Name" required />
<x-forms.input placeholder="/root" id="host_path" label="Source Path" />
<x-forms.input placeholder="/tmp/root" id="mount_path" label="Destination Path" required />
<x-forms.input placeholder="pv-name" id="name" label="Name" required/>
<x-forms.input placeholder="/root" id="host_path" label="Source Path"/>
<x-forms.input placeholder="/tmp/root" id="mount_path" label="Destination Path" required/>
<x-forms.button onclick="newStorage.close()" type="submit">
Save
</x-forms.button>

View File

@@ -5,15 +5,15 @@
<x-helper
helper="For Preview Deployments, storage has a <span class='text-helper'>-pr-#PRNumber</span> in their
volume
name, example: <span class='text-helper'>-pr-1</span>" />
name, example: <span class='text-helper'>-pr-1</span>"/>
<x-forms.button class="btn" onclick="newStorage.showModal()">+ Add</x-forms.button>
<livewire:project.shared.storages.add />
<livewire:project.shared.storages.add/>
</div>
<div class="">Persistent storage to preserve data between deployments.</div>
</div>
<div class="flex flex-col gap-2 py-4">
@forelse ($resource->persistentStorages as $storage)
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" />
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"/>
@empty
<div class="text-neutral-500">No storages found.</div>
@endforelse

View File

@@ -1,15 +1,16 @@
<div>
<x-modal yesOrNo modalId="{{ $modalId }}" modalTitle="Delete Storage">
<x-slot:modalBody>
<p>This storage will be deleted <span class="font-bold text-warning">({{ $storage->name }})</span>. It is not
<p>This storage will be deleted <span class="font-bold text-warning">({{ $storage->name }})</span>. It is
not
reversible. <br>Please think again.</p>
</x-slot:modalBody>
</x-modal>
<form wire:submit.prevent='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
@if ($storage->is_readonly)
<x-forms.input id="storage.name" label="Name" required readonly />
<x-forms.input id="storage.host_path" label="Source Path" readonly />
<x-forms.input id="storage.mount_path" label="Destination Path" required readonly />
<x-forms.input id="storage.name" label="Name" required readonly/>
<x-forms.input id="storage.host_path" label="Source Path" readonly/>
<x-forms.input id="storage.mount_path" label="Destination Path" required readonly/>
<div class="flex gap-2">
<x-forms.button type="submit" disabled>
Update
@@ -19,9 +20,9 @@
</x-forms.button>
</div>
@else
<x-forms.input id="storage.name" label="Name" required />
<x-forms.input id="storage.host_path" label="Source Path" />
<x-forms.input id="storage.mount_path" label="Destination Path" required />
<x-forms.input id="storage.name" label="Name" required/>
<x-forms.input id="storage.host_path" label="Source Path"/>
<x-forms.input id="storage.mount_path" label="Destination Path" required/>
<div class="flex gap-2">
<x-forms.button type="submit">
Update