feat(品牌标识): 几何 K 图标(favicon/顶栏标记/theme-color) + 并行会话成果入库
Regression / regression (push) Canceled after 0s

## 品牌标识(本次会话)

起因:品牌此前没有任何图形标识 —— 唯一 favicon 是内联 data-URI 里的字母「A」,
那是 v2.0.0「Aurora Admin → Kole UI」改名漏掉的一处(PC 顶栏也是「A」,
移动端站已是「K」;移动端文档站则完全没有 favicon)。

- 几何:24 网格三个互不接触的笔画(竖 + 两斜),圆头描边;
  描边 2.25 → 16px 标签页尺寸下正好 1.5px = 规范原文「描边1.5px」
- 取色分两套(刻意):favicon 硬编码品牌蓝/白(渲染在浏览器标签栏,不继承 kole-dark);
  顶栏标记走 currentColor(实测暗色下自动转 rgb(20,22,28))
- 新增 theme-color 双条(light #FFFFFF / dark #1C1F26,取 --kole-color-card-bg)
- 修 site/app.js hero 标语 KOLE ADMIN → KOLE UI(改名变形残留)
- 移动端 7 个模板补 favicon(此前计数 0)

验收:门禁 9 条全 OK(site-routing/site-routes/mobile-docs/mobile-site/isolation/
theme/nav/i18n/icons);PC 回归 1464/1464 · 移动端 807/807,各连跑 8 次一致;
两端 favicon 405 字节逐字节一致;PC 站控制台错误 1→0。

## 并行会话成果(本次一并入库)

- 图标系统:2576 图标(TDesign/Element Plus,MIT)+ 11 端注入 + 5 个构建门禁工具
  + IconPreview 预览页 + ICON-SPEC.md 冻结规格
- 移动端平台:47 组件 × 6 端 + 文档站 53 页 + 隔离门禁
- PC 组件:103 个大后台组件 / 组件11 批次
- uni-app:PC 端试点 + 移动端端实现 + 真实编译验证

## 工程

- .gitignore 补 .scratch/ 与 .zcode-preexisting-*.txt(会话中间产物,实测 9.1MB,不入库)
- CHANGELOG 补品牌标识条目
- ROADMAP 登 S8-P4(品牌标识任务包 + og:image/apple-touch-icon 未做部分)
This commit is contained in:
aurora-admin
2026-09-21 10:05:48 +08:00
parent eb25feedaf
commit f1fbfc2ddb
2541 changed files with 270385 additions and 25873 deletions
+12 -12
View File
@@ -1,16 +1,16 @@
/* Aurora Admin NotificationPro 样式 — 对齐 组件7.txt NotificationPro:右上角通知,标题+描述+图标,可关闭 */
/* Kole UI NotificationPro 样式 — 对齐 组件7.txt NotificationPro:右上角通知,标题+描述+图标,可关闭 */
.aa-notification-wrap { position: fixed; top: 16px; right: 16px; z-index: 3000; width: 320px;
.kole-notification-wrap { position: fixed; top: 16px; right: 16px; z-index: 3000; width: 320px;
display: flex; flex-direction: column; gap: 10px; pointer-events: none;
font-family: var(--font-family, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); }
.aa-notification { pointer-events: auto; background: var(--au-color-card-bg); border: 1px solid var(--au-color-border); border-radius: 8px;
.kole-notification { pointer-events: auto; background: var(--kole-color-card-bg); border: 1px solid var(--kole-color-border); border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.12); padding: 14px 16px; display: flex; gap: 10px; }
.aa-notification-icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; color: var(--au-color-text-inverse); font-size: 12px; text-align: center; line-height: 18px; margin-top: 2px; }
.aa-notification.is-success .aa-notification-icon { background: var(--au-color-success); }
.aa-notification.is-error .aa-notification-icon { background: var(--au-color-error); }
.aa-notification.is-warning .aa-notification-icon { background: var(--au-color-warning); }
.aa-notification.is-info .aa-notification-icon { background: var(--au-color-brand); }
.aa-notification-body { flex: 1; }
.aa-notification-title { font-size: 14px; font-weight: 500; color: var(--au-color-text-title); }
.aa-notification-desc { font-size: 13px; color: var(--au-color-text-secondary); margin-top: 4px; line-height: 1.5; }
.aa-notification-close { color: var(--au-color-text-secondary); cursor: pointer; font-size: 14px; line-height: 1; }
.kole-notification-icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; color: var(--kole-color-text-inverse); font-size: 12px; text-align: center; line-height: 18px; margin-top: 2px; }
.kole-notification.is-success .kole-notification-icon { background: var(--kole-color-success); }
.kole-notification.is-error .kole-notification-icon { background: var(--kole-color-error); }
.kole-notification.is-warning .kole-notification-icon { background: var(--kole-color-warning); }
.kole-notification.is-info .kole-notification-icon { background: var(--kole-color-brand); }
.kole-notification-body { flex: 1; }
.kole-notification-title { font-size: 14px; font-weight: 500; color: var(--kole-color-text-title); }
.kole-notification-desc { font-size: 13px; color: var(--kole-color-text-secondary); margin-top: 4px; line-height: 1.5; }
.kole-notification-close { color: var(--kole-color-text-secondary); cursor: pointer; font-size: 14px; line-height: 1; }
+15 -15
View File
@@ -3,40 +3,40 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Aurora Admin · NotificationPro(普通 H5)</title>
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
<title>Kole UI · NotificationPro(普通 H5)</title>
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css" />
<link rel="stylesheet" href="NotificationPro.css" />
<style>body{margin:0;padding:24px;background: var(--au-color-page-bg);display:flex;gap:8px;flex-wrap:wrap;}</style>
<style>body{margin:0;padding:24px;background: var(--kole-color-page-bg);display:flex;gap:8px;flex-wrap:wrap;}</style>
</head>
<body>
<button onclick="AaNotify.success('审批通过', '订单 ORD-2024 已通过主管审批')">success</button>
<button onclick="AaNotify.error('提交失败', '网络异常,请稍后重试')">error</button>
<button onclick="AaNotify.warning('存储空间不足', '当前已使用 92%')">warning</button>
<button onclick="AaNotify.info('新版本', '系统已发布 v2.3.0')">info</button>
<button onclick="KoleNotify.success('审批通过', '订单 ORD-2024 已通过主管审批')">success</button>
<button onclick="KoleNotify.error('提交失败', '网络异常,请稍后重试')">error</button>
<button onclick="KoleNotify.warning('存储空间不足', '当前已使用 92%')">warning</button>
<button onclick="KoleNotify.info('新版本', '系统已发布 v2.3.0')">info</button>
<script>
(function () {
var ICON = { success: '✓', error: '✕', warning: '!', info: 'i' };
var wrap = document.createElement('div');
wrap.className = 'aa-notification-wrap';
wrap.className = 'kole-notification-wrap';
document.body.appendChild(wrap);
var id = 0;
function open(opts) {
var el = document.createElement('div');
el.className = 'aa-notification is-' + opts.type;
el.innerHTML = '<span class="aa-notification-icon" aria-live="polite">' + (ICON[opts.type] || 'i') + '</span>' +
'<div class="aa-notification-body" aria-live="polite"><div class="aa-notification-title" aria-live="polite">' + opts.title + '</div>' +
'<div class="aa-notification-desc" aria-live="polite">' + opts.desc + '</div></div>' +
'<span class="aa-notification-close" role="status" aria-live="polite">✕</span>';
el.className = 'kole-notification is-' + opts.type;
el.innerHTML = '<span class="kole-notification-icon" aria-live="polite">' + (ICON[opts.type] || 'i') + '</span>' +
'<div class="kole-notification-body" aria-live="polite"><div class="kole-notification-title" aria-live="polite">' + opts.title + '</div>' +
'<div class="kole-notification-desc" aria-live="polite">' + opts.desc + '</div></div>' +
'<span class="kole-notification-close" role="status" aria-live="polite">✕</span>';
wrap.appendChild(el);
var myId = ++id;
function close() { if (el.parentNode) el.parentNode.removeChild(el); }
el.querySelector('.aa-notification-close').addEventListener('click', close);
el.querySelector('.kole-notification-close').addEventListener('click', close);
var d = opts.duration == null ? 4500 : opts.duration;
if (d > 0) setTimeout(close, d);
return close;
}
window.AaNotify = {
window.KoleNotify = {
success: function (t, d, dur) { return open({ type: 'success', title: t, desc: d, duration: dur }); },
error: function (t, d, dur) { return open({ type: 'error', title: t, desc: d, duration: dur }); },
warning: function (t, d, dur) { return open({ type: 'warning', title: t, desc: d, duration: dur }); },
+7 -7
View File
@@ -26,15 +26,15 @@ const NotificationPro = forwardRef(function NotificationPro({ duration = 4500 },
}));
return (
<div className="aa-notification-wrap">
<div className="kole-notification-wrap">
{list.map(m => (
<div key={m.id} className={`aa-notification is-${m.type}`}>
<span className="aa-notification-icon">{ICON[m.type] || 'i'}</span>
<div className="aa-notification-body">
<div className="aa-notification-title">{m.title}</div>
{m.desc ? <div className="aa-notification-desc">{m.desc}</div> : null}
<div key={m.id} className={`kole-notification is-${m.type}`}>
<span className="kole-notification-icon">{ICON[m.type] || 'i'}</span>
<div className="kole-notification-body">
<div className="kole-notification-title">{m.title}</div>
{m.desc ? <div className="kole-notification-desc">{m.desc}</div> : null}
</div>
<span className="aa-notification-close" onClick={() => close(m.id)}>✕</span>
<span className="kole-notification-close" onClick={() => close(m.id)}>✕</span>
</div>
))}
</div>
+8 -8
View File
@@ -1,19 +1,19 @@
<template>
<div class="aa-notification-wrap">
<div v-for="m in list" :key="m.id" class="aa-notification" :class="'is-' + m.type">
<span class="aa-notification-icon">{{ icon(m.type) }}</span>
<div class="aa-notification-body">
<div class="aa-notification-title">{{ m.title }}</div>
<div class="aa-notification-desc" v-if="m.desc">{{ m.desc }}</div>
<div class="kole-notification-wrap">
<div v-for="m in list" :key="m.id" class="kole-notification" :class="'is-' + m.type">
<span class="kole-notification-icon">{{ icon(m.type) }}</span>
<div class="kole-notification-body">
<div class="kole-notification-title">{{ m.title }}</div>
<div class="kole-notification-desc" v-if="m.desc">{{ m.desc }}</div>
</div>
<span class="aa-notification-close" @click="close(m.id)">✕</span>
<span class="kole-notification-close" @click="close(m.id)">✕</span>
</div>
</div>
</template>
<script>
export default {
name: 'AaNotificationPro',
name: 'KoleNotificationPro',
props: { duration: { type: Number, default: 4500 } },
data: function () { return { list: [], _id: 0 }; },
methods: {
+7 -7
View File
@@ -1,12 +1,12 @@
<template>
<div class="aa-notification-wrap">
<div v-for="m in list" :key="m.id" class="aa-notification" :class="'is-' + m.type">
<span class="aa-notification-icon">{{ icon(m.type) }}</span>
<div class="aa-notification-body">
<div class="aa-notification-title">{{ m.title }}</div>
<div class="aa-notification-desc" v-if="m.desc">{{ m.desc }}</div>
<div class="kole-notification-wrap">
<div v-for="m in list" :key="m.id" class="kole-notification" :class="'is-' + m.type">
<span class="kole-notification-icon">{{ icon(m.type) }}</span>
<div class="kole-notification-body">
<div class="kole-notification-title">{{ m.title }}</div>
<div class="kole-notification-desc" v-if="m.desc">{{ m.desc }}</div>
</div>
<span class="aa-notification-close" @click="close(m.id)">✕</span>
<span class="kole-notification-close" @click="close(m.id)">✕</span>
</div>
</div>
</template>