mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 02:15:51 +00:00
feat(ui): polish domains, storage, env vars and resource nav
Improve project resource UIs: sort domains by DNS failure, stop re-adding www pairs on refresh, lazy-load storage tabs with counts, tighten env-var tables, keep application tabs active across Livewire polls, unify database type labels, and update related CSS/JS and tests.
This commit is contained in:
1 parent
dbc6f5e08c
commit
a7a06aa6c8
75 files changed
+3909
-1173
No files matched your search
@@ -35,11 +35,16 @@ it('builds entries for every hostname without duplicates', function () {
|
||||
->and(collect($records)->pluck('type')->unique()->all())->toBe(['A']);
|
||||
});
|
||||
|
||||
it('formats a copy-paste text block with all entries', function () {
|
||||
it('formats a BIND-compatible zone snippet for copy all', function () {
|
||||
$text = DnsRecordHints::toCopyText([
|
||||
['type' => 'A', 'name' => 'app.example.com', 'value' => '203.0.113.10'],
|
||||
['type' => 'A', 'name' => 'www.example.com', 'value' => '203.0.113.10'],
|
||||
['type' => 'AAAA', 'name' => 'app.example.com', 'value' => '2001:db8::1'],
|
||||
]);
|
||||
|
||||
expect($text)->toBe("Type\tName\tValue\nA\tapp.example.com\t203.0.113.10\nA\twww.example.com\t203.0.113.10");
|
||||
expect($text)->toBe(
|
||||
"app.example.com. IN A 203.0.113.10\n".
|
||||
"www.example.com. IN A 203.0.113.10\n".
|
||||
"app.example.com. IN AAAA 2001:db8::1\n"
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user