Files
unicut/src/components/hub/hub.module.less
T
jinghui f352eff625 首页底部新增导航站与开源地址入口;授权系统收口(公告归属过滤、检查更新诚实降级、项目编号启动注入)
- 首页最底部新增「我的导航站 / 开源地址」双卡区块(MORE 眉标 + 大标题 + 深色紫晕;桌面 648x160、移动 342 宽;浅色主题独立覆写;外链新标签打开)
- hub.ts 增加 isMine():project_id 与本项目不符的公告一律不显示,杜绝别人家公告弹窗盖住页头
- 点徽标检查更新不再冒充「已是最新」:查不到结果时提示暂时无法连接授权中心
- entrypoint.sh 启动时把 HUB_PROJECT_ID 替换进前端包;compose 增加 HUB_PROJECT_ID 透传
- 首页删收费标准、顶栏删 GitHub/Gitee 外链、Footer 整块下线
- 文档:CHANGELOG 补 2026-10-28 条目;功能清单新增第十二节
- 验收:e2e_home_links 16/16,e2e_hub 18/18(A3 通过)
2026-10-28 03:04:32 +08:00

185 lines
3.1 KiB
Plaintext

/* 授权状态:版本徽标 + 公告铃铛(插在页头右上角) */
.wrap {
display: inline-flex;
align-items: center;
gap: 6px;
vertical-align: middle;
}
.ver {
position: relative;
display: inline-flex;
align-items: center;
height: 24px;
padding: 0 10px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(127, 127, 127, 0.35);
color: inherit;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.2px;
line-height: 1;
cursor: pointer;
user-select: none;
transition: background 0.15s ease;
&:hover {
background: rgba(255, 255, 255, 0.2);
}
}
/* 有新版本:琥珀底 + 右上角红点,一直亮着直到用户更新(可随时点开看) */
.verNew {
color: #ffb020;
background: rgba(255, 176, 32, 0.16);
border-color: rgba(255, 176, 32, 0.55);
&:hover {
background: rgba(255, 176, 32, 0.26);
}
}
.verDot {
position: absolute;
top: -3px;
right: -3px;
width: 7px;
height: 7px;
border-radius: 50%;
background: #ff4d4f;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.bell {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 50%;
color: inherit;
opacity: 0.85;
cursor: pointer;
transition: background 0.15s ease;
&:hover {
opacity: 1;
background: rgba(255, 255, 255, 0.14);
}
}
.bellDot {
position: absolute;
top: 1px;
right: 1px;
width: 7px;
height: 7px;
border-radius: 50%;
background: #ff4d4f;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}
/* 公告列表(semi Popover 是浅色底,这里按浅色写字色) */
.pop {
width: 296px;
max-height: 340px;
overflow-y: auto;
}
.popItem {
display: flex;
align-items: center;
gap: 6px;
padding: 9px 4px;
border-bottom: 1px solid rgba(0, 0, 0, 0.07);
cursor: pointer;
&:last-child {
border-bottom: none;
}
&:hover .popTitle {
color: #7c3aed;
}
}
.topTag {
flex: none;
padding: 1px 5px;
border-radius: 4px;
background: #fff1f0;
border: 1px solid #ffccc7;
color: #cf1322;
font-size: 11px;
line-height: 16px;
}
.popTitle {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #1f2329;
font-size: 13px;
}
.popTime {
flex: none;
color: #8f959e;
font-size: 12px;
}
.popEmpty {
padding: 8px 2px;
color: #8f959e;
font-size: 13px;
}
/* 弹窗内容 */
.logBox {
padding-bottom: 4px;
}
.log {
margin: 0 0 8px;
padding: 12px;
max-height: 260px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
background: #f7f8fa;
border: 1px solid #e4e6eb;
border-radius: 8px;
color: #1f2329;
font-family: inherit;
font-size: 13px;
line-height: 1.7;
}
.logMuted {
margin: 0 0 6px;
color: #646a73;
font-size: 13px;
line-height: 1.7;
}
.noticeBody {
padding: 4px 0 10px;
color: #1f2329;
font-size: 14px;
line-height: 1.8;
white-space: pre-wrap;
word-break: break-word;
}
.acts {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
padding-top: 12px;
}