coolify/resources/views/v5/app.blade.php
Andras Bacsai 4c41817cda feat(v5): move clusters to dedicated page and remove CLI services
Extract clusters out of Home into a standalone Clusters page with its
own controller action and route. Delete CoolifyCliBootstrap and
CoolifyCliVersion services along with the coolifyCliVersion endpoint.

Add Dialog component, warning CSS token, Inertia progress bar, and a
Clusters nav link. Extend V5Server type with ssh/builder/key fields.
2026-06-16 20:52:38 +02:00

48 lines
1.7 KiB
PHP

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title inertia>{{ config('app.name') }} v5</title>
@env('local')
<link rel="icon" href="{{ asset('coolify-logo-dev-transparent.png') }}" type="image/png" />
@else
<link rel="icon" href="{{ asset('coolify-logo.svg') }}" type="image/svg+xml" />
@endenv
@php
$viteHotFile = public_path('hot');
$viteDevServerUrl = null;
if (file_exists($viteHotFile)) {
$viteHotUrl = trim(file_get_contents($viteHotFile));
$viteScheme = parse_url($viteHotUrl, PHP_URL_SCHEME) ?: request()->getScheme();
$vitePort = parse_url($viteHotUrl, PHP_URL_PORT) ?: 5173;
$viteHost = request()->getHost();
$viteDevServerUrl = "{$viteScheme}://{$viteHost}:{$vitePort}";
}
@endphp
@if ($viteDevServerUrl)
<script type="module">
import RefreshRuntime from '{{ $viteDevServerUrl }}/@react-refresh'
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
</script>
<script type="module" src="{{ $viteDevServerUrl }}/@@vite/client"></script>
<script type="module" src="{{ $viteDevServerUrl }}/resources/js/v5/app.tsx"></script>
@else
@viteReactRefresh
@vite('resources/js/v5/app.tsx')
@endif
<x-inertia::head />
</head>
<body>
<x-inertia::app id="v5-app" />
</body>
</html>