优化首页基本信息布局

移除首页宣传横幅,新增用户、域名、状态、到期时间和部署服务器概览,并补充布局回归测试。
This commit is contained in:
xuans committed 2026-09-25 11:40:29 +08:00
1 parent 0a9172f639
commit 475058ed4b
4 files changed
+162 -55

No files matched your search

+14 -1
View File
@@ -576,10 +576,23 @@ test("dashboardLayout.keepsActivityListsBoundedAndKeyboardAccessible", async ()
assert.match(stylesheet, /\.record-list:focus-visible/);
});
test("dashboardLayout.replacesHeroWithBasicInformationSummary", async () => {
const { readFile } = await import("node:fs/promises");
const template = await readFile(new URL("./Dashboard.vue", import.meta.url), "utf8");
const stylesheet = await readFile(new URL("./Dashboard.css", import.meta.url), "utf8");
assert.doesNotMatch(template, /class="hero-card"/);
assert.match(template, /class="panel overview-panel"/);
assert.match(template, /当前用户/);
assert.match(template, /到期时间/);
assert.match(template, /部署服务器/);
assert.match(stylesheet, /\.overview-summary-grid\s*\{[^}]*grid-template-columns: repeat\(3/);
assert.match(stylesheet, /\.overview-domain-row\s*\{[^}]*grid-template-columns:/);
});
test("dashboardLayout.usesSharedTooltipForUserManagementDescription", async () => {
const { readFile } = await import("node:fs/promises");
const template = await readFile(new URL("../UserManagement/UserManagement.vue", import.meta.url), "utf8");
assert.match(template, /import HelpTip from "\.\.\/components\/HelpTip\/HelpTip.vue";/);
assert.match(template, /<HelpTip>[\s\S]*?<\/HelpTip>/);
assert.doesNotMatch(template, /<p class="user-management-description">/);
});
});