This commit introduces advanced environment variable handling capabilities including: - Nested environment variable resolution with circular dependency detection - Extraction of hardcoded environment variables from docker-compose.yml - New ShowHardcoded Livewire component for displaying detected variables - Enhanced UI for better environment variable management The changes improve the user experience by automatically detecting and displaying environment variables that are hardcoded in docker-compose files, allowing users to override them if needed. The nested variable resolution ensures complex variable dependencies are properly handled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
No EOL
1.4 KiB
PHP
31 lines
No EOL
1.4 KiB
PHP
<div>
|
|
<div
|
|
class="flex flex-col items-center gap-4 p-4 bg-white border lg:items-start dark:bg-base dark:border-coolgray-300 border-neutral-200">
|
|
<div class="flex flex-wrap items-center gap-2">
|
|
<span
|
|
class="px-2 py-0.5 text-xs font-normal rounded dark:bg-coolgray-400/50 bg-neutral-200 dark:text-neutral-400 text-neutral-600">
|
|
Hardcoded env
|
|
</span>
|
|
@if($serviceName)
|
|
<span
|
|
class="px-2 py-0.5 text-xs font-normal rounded dark:bg-coolgray-400/50 bg-neutral-200 dark:text-neutral-400 text-neutral-600">
|
|
Service: {{ $serviceName }}
|
|
</span>
|
|
@endif
|
|
</div>
|
|
<div class="flex flex-col w-full gap-2">
|
|
<div class="flex flex-col w-full gap-2 lg:flex-row">
|
|
<x-forms.input disabled id="key" />
|
|
@if($value !== null && $value !== '')
|
|
<x-forms.input disabled type="password" value="{{ $value }}" />
|
|
@else
|
|
<x-forms.input disabled value="(inherited from host)" />
|
|
@endif
|
|
</div>
|
|
@if($comment)
|
|
<x-forms.input disabled value="{{ $comment }}" label="Comment"
|
|
helper="Documentation for this environment variable." />
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div> |