revert: advanced dropdown
This commit is contained in:
parent
6feb439d0a
commit
9497f123b4
@ -149,27 +149,8 @@ class="underline" href="https://coolify.io/docs/knowledge-base/docker/registry"
|
|||||||
Specific Docs</a>
|
Specific Docs</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
<div x-data="{
|
|
||||||
activeAccordion: '',
|
|
||||||
setActiveAccordion(id) {
|
|
||||||
this.activeAccordion = (this.activeAccordion == id) ? '' : id
|
|
||||||
}
|
|
||||||
}"
|
|
||||||
class="relative w-full mx-auto mt-4 overflow-hidden text-sm font-normal">
|
|
||||||
<div x-data="{ id: $id('accordion') }" class="cursor-pointer">
|
|
||||||
<button @click="setActiveAccordion(id)"
|
|
||||||
class="flex items-center justify-between w-full p-1 text-left select-none hover:dark:text-white hover:bg-white/5"
|
|
||||||
type="button">
|
|
||||||
<h4>Advanced</h4>
|
|
||||||
<svg class="w-4 h-4 duration-200 ease-out"
|
|
||||||
:class="{ 'rotate-180': activeAccordion == id }" viewBox="0 0 24 24"
|
|
||||||
xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor"
|
|
||||||
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
||||||
<polyline points="6 9 12 15 18 9"></polyline>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
<div x-show="activeAccordion==id" x-collapse x-cloak class="px-2">
|
|
||||||
<div class="flex flex-col gap-2 pt-6 pb-10">
|
<div class="flex flex-col gap-2 pt-6 pb-10">
|
||||||
@if ($application->build_pack === 'dockercompose')
|
@if ($application->build_pack === 'dockercompose')
|
||||||
<div class="flex flex-col gap-2" x-init="$wire.dispatch('loadCompose', true)">
|
<div class="flex flex-col gap-2" x-init="$wire.dispatch('loadCompose', true)">
|
||||||
@ -178,8 +159,7 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
id="application.base_directory" label="Base Directory"
|
id="application.base_directory" label="Base Directory"
|
||||||
helper="Directory to use as root. Useful for monorepos." />
|
helper="Directory to use as root. Useful for monorepos." />
|
||||||
<x-forms.input x-bind:disabled="initLoadingCompose"
|
<x-forms.input x-bind:disabled="initLoadingCompose"
|
||||||
placeholder="/docker-compose.yaml"
|
placeholder="/docker-compose.yaml" id="application.docker_compose_location"
|
||||||
id="application.docker_compose_location"
|
|
||||||
label="Docker Compose Location"
|
label="Docker Compose Location"
|
||||||
helper="It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str::start($application->base_directory . $application->docker_compose_location, '/') }}</span>" />
|
helper="It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str::start($application->base_directory . $application->docker_compose_location, '/') }}</span>" />
|
||||||
</div>
|
</div>
|
||||||
@ -189,7 +169,8 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
label="Preserve Repository During Deployment"
|
label="Preserve Repository During Deployment"
|
||||||
helper="Git repository (based on the base directory settings) will be copied to the deployment directory." />
|
helper="Git repository (based on the base directory settings) will be copied to the deployment directory." />
|
||||||
</div>
|
</div>
|
||||||
<div class="pt-4">The following commands are for advanced use cases. Only
|
<div class="pt-4">The following commands are for advanced use cases.
|
||||||
|
Only
|
||||||
modify them if you
|
modify them if you
|
||||||
know what are
|
know what are
|
||||||
you doing.</div>
|
you doing.</div>
|
||||||
@ -208,12 +189,11 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="flex flex-col gap-2 xl:flex-row">
|
<div class="flex flex-col gap-2 xl:flex-row">
|
||||||
<x-forms.input placeholder="/" id="application.base_directory"
|
<x-forms.input placeholder="/" id="application.base_directory" label="Base Directory"
|
||||||
label="Base Directory"
|
|
||||||
helper="Directory to use as root. Useful for monorepos." />
|
helper="Directory to use as root. Useful for monorepos." />
|
||||||
@if ($application->build_pack === 'dockerfile' && !$application->dockerfile)
|
@if ($application->build_pack === 'dockerfile' && !$application->dockerfile)
|
||||||
<x-forms.input placeholder="/Dockerfile"
|
<x-forms.input placeholder="/Dockerfile" id="application.dockerfile_location"
|
||||||
id="application.dockerfile_location" label="Dockerfile Location"
|
label="Dockerfile Location"
|
||||||
helper="It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str::start($application->base_directory . $application->dockerfile_location, '/') }}</span>" />
|
helper="It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str::start($application->base_directory . $application->dockerfile_location, '/') }}</span>" />
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -224,9 +204,8 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
@endif
|
@endif
|
||||||
@if ($application->could_set_build_commands())
|
@if ($application->could_set_build_commands())
|
||||||
@if ($application->settings->is_static)
|
@if ($application->settings->is_static)
|
||||||
<x-forms.input placeholder="/dist"
|
<x-forms.input placeholder="/dist" id="application.publish_directory"
|
||||||
id="application.publish_directory" label="Publish Directory"
|
label="Publish Directory" required />
|
||||||
required />
|
|
||||||
@else
|
@else
|
||||||
<x-forms.input placeholder="/" id="application.publish_directory"
|
<x-forms.input placeholder="/" id="application.publish_directory"
|
||||||
label="Publish Directory" />
|
label="Publish Directory" />
|
||||||
@ -245,8 +224,7 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
<x-forms.input
|
<x-forms.input
|
||||||
helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>"
|
helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/docker/custom-commands'>docs.</a>"
|
||||||
placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k"
|
placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k"
|
||||||
id="application.custom_docker_run_options"
|
id="application.custom_docker_run_options" label="Custom Docker Options" />
|
||||||
label="Custom Docker Options" />
|
|
||||||
|
|
||||||
@if ($application->build_pack !== 'dockercompose')
|
@if ($application->build_pack !== 'dockercompose')
|
||||||
<div class="pt-2 w-96">
|
<div class="pt-2 w-96">
|
||||||
@ -265,9 +243,6 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if ($application->build_pack === 'dockercompose')
|
@if ($application->build_pack === 'dockercompose')
|
||||||
@ -292,7 +267,6 @@ class="flex items-center justify-between w-full p-1 text-left select-none hover:
|
|||||||
id="application.settings.is_container_label_readonly_enabled" instantSave></x-forms.checkbox>
|
id="application.settings.is_container_label_readonly_enabled" instantSave></x-forms.checkbox>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($application->dockerfile)
|
@if ($application->dockerfile)
|
||||||
<x-forms.textarea label="Dockerfile" id="application.dockerfile" monacoEditorLanguage="dockerfile"
|
<x-forms.textarea label="Dockerfile" id="application.dockerfile" monacoEditorLanguage="dockerfile"
|
||||||
useMonacoEditor rows="6"> </x-forms.textarea>
|
useMonacoEditor rows="6"> </x-forms.textarea>
|
||||||
|
Loading…
Reference in New Issue
Block a user