fix(ui): sync deployed footer cleanup

Use deployed server source as canonical. Remove the shared legal footer and keep its regression test. Remove four stale temporary test artifacts absent from the server.
This commit is contained in:
WangShen007 committed 2026-10-24 06:33:00 +00:00
1 parent adbc6c6861
commit ed8dc01ed9
6 files changed
+9 -48

No files matched your search

@@ -137,6 +137,13 @@ describe('DashboardLayout', () => {
expect(wrapper.find('.dashboard-layout').exists()).toBe(true)
})
it('does not render the removed copyright and legal footer', () => {
expect(wrapper.find('footer').exists()).toBe(false)
expect(wrapper.text()).not.toContain('保留所有权利')
expect(wrapper.text()).not.toContain('隐私政策')
expect(wrapper.text()).not.toContain('服务条款')
})
it('toggles sidebar correctly', async () => {
const vm = wrapper.vm as unknown as DashboardLayoutInstance
expect(wrapper.classes()).not.toContain('sidebar-collapsed')
+2 -44
View File
@@ -367,18 +367,6 @@ const openNotificationsFromSheet = () => {
<slot></slot>
</main>
<!-- Footer: omitted for full-page layouts (hideHeader) and workspace pages
(flush, e.g. the inbox) — those pages size themselves to the viewport, so a
footer would clip the last message / message input out of view. -->
<footer v-if="!props.hideHeader && !props.flush" class="footer">
<div class="footer-content">
<p>&copy; 2024 ReplyPier。保留所有权利。</p>
<nav class="footer-links">
<a href="https://replypier.site/privacy_policy.html">隐私政策</a>
<a href="https://replypier.site/terms_and_conditions.html">服务条款</a>
</nav>
</div>
</footer>
</div>
<!-- Notification drawer (fixed) — outside the header so the More sheet
@@ -413,7 +401,7 @@ const openNotificationsFromSheet = () => {
<style scoped>
/* 墨与瓷 shell. The shared .rp-shell rules in components.css carry the
sidebar / topbar look; this block only owns what is specific to the
dashboard frame (grid, banners, footer, mobile overlay). */
dashboard frame (grid, banners, mobile overlay). */
.dashboard-layout {
display: grid;
/* The sidebar sets its own width so the collapsed rail can shrink it */
@@ -539,42 +527,12 @@ const openNotificationsFromSheet = () => {
}
/* Full-page layouts (ConversationsView) size themselves to the viewport, so
the frame must not add padding or a footer below them. */
the frame must not add padding. */
.dashboard-layout.header-hidden .content,
.dashboard-layout.flush-content .content {
padding: 0;
}
/* ── Footer ────────────────────────────────────────── */
.footer {
border-top: 1px solid var(--line);
padding: 16px 32px;
font-size: 12px;
color: var(--muted);
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.footer-links {
display: flex;
gap: var(--space-lg);
}
.footer-links a {
color: var(--muted);
transition: color var(--t-fast);
}
.footer-links a:hover {
color: var(--ink);
}
/* ── Usage / limit banner ──────────────────────────── */
.message-limit-banner {
position: relative;