2024-04-15 17:47:17 +00:00
|
|
|
<div class="p-4 transition border rounded dark:border-coolgray-200">
|
2024-04-08 07:51:14 +00:00
|
|
|
<div class="flex flex-col justify-center pb-4 text-sm select-text">
|
2024-05-27 12:14:44 +00:00
|
|
|
@if (data_get($resource, 'build_pack') === 'dockercompose')
|
|
|
|
<h2>{{ data_get($resource, 'name', 'unknown') }}</h2>
|
|
|
|
@endif
|
2024-04-15 17:47:17 +00:00
|
|
|
@if ($fileStorage->is_directory)
|
2024-05-27 12:14:44 +00:00
|
|
|
<div class="dark:text-white">Directory Mount</div>
|
2024-04-15 17:47:17 +00:00
|
|
|
@else
|
2024-05-27 12:14:44 +00:00
|
|
|
<div class="dark:text-white">File Mount</div>
|
2024-04-15 17:47:17 +00:00
|
|
|
@endif
|
2024-05-27 12:14:44 +00:00
|
|
|
<div>{{ $workdir }}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
|
2024-01-04 12:03:46 +00:00
|
|
|
</div>
|
2024-04-15 17:47:17 +00:00
|
|
|
<form wire:submit='submit' class="flex flex-col gap-2">
|
|
|
|
<div class="flex gap-2">
|
|
|
|
@if ($fileStorage->is_directory)
|
|
|
|
<x-modal-confirmation action="convertToFile" buttonTitle="Convert to file">
|
|
|
|
This will delete all files in this directory. It is not reversible. <br>Please think again.
|
|
|
|
</x-modal-confirmation>
|
|
|
|
@else
|
|
|
|
<x-modal-confirmation action="convertToDirectory" buttonTitle="Convert to directory">
|
2024-05-27 12:14:44 +00:00
|
|
|
This will convert this to a directory. If it was a file, it will be deleted. It is not reversible.
|
|
|
|
<br>Please think again.
|
2024-04-15 17:47:17 +00:00
|
|
|
</x-modal-confirmation>
|
2023-09-26 12:45:52 +00:00
|
|
|
@endif
|
2024-04-15 17:47:17 +00:00
|
|
|
<x-modal-confirmation isErrorButton buttonTitle="Delete">
|
|
|
|
This file / directory will be deleted. It is not reversible. <br>Please think again.
|
|
|
|
</x-modal-confirmation>
|
|
|
|
</div>
|
|
|
|
@if (!$fileStorage->is_directory)
|
|
|
|
<x-forms.textarea label="Content" rows="20" id="fileStorage.content"></x-forms.textarea>
|
|
|
|
<x-forms.button class="w-full" type="submit">Save</x-forms.button>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</form>
|
2024-01-04 12:03:46 +00:00
|
|
|
</div>
|