2024-01-23 16:13:23 +00:00
|
|
|
<div>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
|
|
|
Project Variable | Coolify
|
|
|
|
</x-slot>
|
2024-01-23 16:13:23 +00:00
|
|
|
<div class="flex gap-2">
|
2024-04-26 12:59:03 +00:00
|
|
|
<h1>Shared Variables for {{data_get($project,'name')}}</h1>
|
2024-03-25 10:33:38 +00:00
|
|
|
<x-modal-input buttonTitle="+ Add" title="New Shared Variable">
|
2024-04-15 10:46:22 +00:00
|
|
|
<livewire:project.shared.environment-variable.add :shared="true" />
|
2024-03-25 10:33:38 +00:00
|
|
|
</x-modal-input>
|
2024-01-23 16:13:23 +00:00
|
|
|
</div>
|
2024-04-26 12:59:03 +00:00
|
|
|
<div class="flex flex-wrap gap-1 subtitle">
|
|
|
|
<div>You can use these variables anywhere with</div>
|
|
|
|
<div class="dark:text-warning text-coollabs">@{{ project.VARIABLENAME }} </div>
|
|
|
|
<x-helper
|
2024-03-27 10:07:29 +00:00
|
|
|
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
2024-01-23 19:26:45 +00:00
|
|
|
</div>
|
2024-01-23 16:13:23 +00:00
|
|
|
<div class="flex flex-col gap-2">
|
2024-04-26 12:59:03 +00:00
|
|
|
@forelse ($project->environment_variables->sort()->sortBy('key') as $env)
|
2024-01-23 16:13:23 +00:00
|
|
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
2024-04-26 12:59:03 +00:00
|
|
|
:env="$env" type="project" />
|
2024-01-23 16:13:23 +00:00
|
|
|
@empty
|
2024-03-21 11:44:32 +00:00
|
|
|
<div>No environment variables found.</div>
|
2024-01-23 16:13:23 +00:00
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
</div>
|