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:
1 parent
a20884c2e4
commit
9b5463ecb3
6 files changed
+9
-48
No files matched your search
@@ -1 +0,0 @@
|
|||||||
%PDF-1.4 test pdf content
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
test content
|
|
||||||
@@ -137,6 +137,13 @@ describe('DashboardLayout', () => {
|
|||||||
expect(wrapper.find('.dashboard-layout').exists()).toBe(true)
|
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 () => {
|
it('toggles sidebar correctly', async () => {
|
||||||
const vm = wrapper.vm as unknown as DashboardLayoutInstance
|
const vm = wrapper.vm as unknown as DashboardLayoutInstance
|
||||||
expect(wrapper.classes()).not.toContain('sidebar-collapsed')
|
expect(wrapper.classes()).not.toContain('sidebar-collapsed')
|
||||||
|
|||||||
@@ -367,18 +367,6 @@ const openNotificationsFromSheet = () => {
|
|||||||
<slot></slot>
|
<slot></slot>
|
||||||
</main>
|
</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>© 2024 ReplyPier。保留所有权利。</p>
|
|
||||||
<nav class="footer-links">
|
|
||||||
<a href="https://chattermate.chat/privacy_policy.html">隐私政策</a>
|
|
||||||
<a href="https://chattermate.chat/terms_and_conditions.html">服务条款</a>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Notification drawer (fixed) — outside the header so the More sheet
|
<!-- Notification drawer (fixed) — outside the header so the More sheet
|
||||||
@@ -413,7 +401,7 @@ const openNotificationsFromSheet = () => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
/* 墨与瓷 shell. The shared .cm-shell rules in components.css carry the
|
/* 墨与瓷 shell. The shared .cm-shell rules in components.css carry the
|
||||||
sidebar / topbar look; this block only owns what is specific to 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 {
|
.dashboard-layout {
|
||||||
display: grid;
|
display: grid;
|
||||||
/* The sidebar sets its own width so the collapsed rail can shrink it */
|
/* 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
|
/* 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.header-hidden .content,
|
||||||
.dashboard-layout.flush-content .content {
|
.dashboard-layout.flush-content .content {
|
||||||
padding: 0;
|
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 ──────────────────────────── */
|
/* ── Usage / limit banner ──────────────────────────── */
|
||||||
.message-limit-banner {
|
.message-limit-banner {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
test pdf content
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
test content
|
|
||||||
Reference in new issue
Block a user