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:
Andras BacsaiandShadowArcanist authored and GitHub committed 2026-08-03 23:11:54 +02:00
1 parent 0b843bb07c
commit 8ae56587d5
497 files changed
+44045 -22630

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
<?php
it('returns zero for null or empty fqdn', function () {
expect(countDomains(null))->toBe(0)
->and(countDomains(''))->toBe(0)
->and(countDomains(' '))->toBe(0);
});
it('counts a single domain', function () {
expect(countDomains('https://app.coolify.io'))->toBe(1)
->and(countDomains(' https://app.coolify.io '))->toBe(1);
});
it('counts multiple comma-separated domains', function () {
expect(countDomains('https://app.coolify.io,https://cloud.coolify.io/dashboard'))->toBe(2)
->and(countDomains('https://a.com, https://b.com , https://c.com'))->toBe(3);
});
it('ignores empty segments between commas', function () {
expect(countDomains('https://a.com,,https://b.com,'))->toBe(2)
->and(countDomains(',,,'))->toBe(0);
});