mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 04:15:57 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
1 parent
0b843bb07c
commit
8ae56587d5
497 files changed
+44045
-22630
No files matched your search
@@ -5,6 +5,21 @@ use App\Models\Service;
|
||||
use App\Models\ServiceApplication;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
* Count domains in a comma-separated FQDN string (e.g. "https://a.com,https://b.com").
|
||||
*/
|
||||
function countDomains(?string $fqdn): int
|
||||
{
|
||||
if (! filled($fqdn)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return collect(explode(',', $fqdn))
|
||||
->map(fn ($d) => trim($d))
|
||||
->filter()
|
||||
->count();
|
||||
}
|
||||
|
||||
function isValidDomainUrl(string $url): bool
|
||||
{
|
||||
$components = parse_url($url);
|
||||
|
||||
Reference in new issue
Block a user