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 未做部分)
261 lines
8.4 KiB
JavaScript
261 lines
8.4 KiB
JavaScript
/* Kole UI 图标 viewBox 例外表 · 生成物(tools/build-icons.mjs),勿手改。
|
||
*
|
||
* 上游绝大多数图标是 24 网格,但有 253 个不是(实测 24×25 / 25×24 /
|
||
* 1024 三种)。renderSvg 必须查这张表,写死 viewBox 会让这些图标被拉伸变形。
|
||
*/
|
||
export const ICON_VIEWBOX_EXCEPTIONS = {
|
||
"add-location": "0 0 1024 1024",
|
||
"ai-education": "0 0 24 25",
|
||
"ai-education-filled": "0 0 24 25",
|
||
"ai-music": "0 0 25 24",
|
||
"ai-music-filled": "0 0 25 24",
|
||
"ai-search-filled": "0 0 24 25",
|
||
"aim": "0 0 1024 1024",
|
||
"alarm-clock": "0 0 1024 1024",
|
||
"animation-1-filled": "0 0 24 25",
|
||
"arrow-down-bold": "0 0 1024 1024",
|
||
"arrow-left-bold": "0 0 1024 1024",
|
||
"arrow-right-bold": "0 0 1024 1024",
|
||
"arrow-up-bold": "0 0 1024 1024",
|
||
"avatar": "0 0 1024 1024",
|
||
"back": "0 0 1024 1024",
|
||
"baseball": "0 0 1024 1024",
|
||
"basketball": "0 0 1024 1024",
|
||
"bell": "0 0 1024 1024",
|
||
"bell-filled": "0 0 1024 1024",
|
||
"bicycle": "0 0 1024 1024",
|
||
"bottom": "0 0 1024 1024",
|
||
"bottom-left": "0 0 1024 1024",
|
||
"bottom-right": "0 0 1024 1024",
|
||
"bowl": "0 0 1024 1024",
|
||
"box": "0 0 1024 1024",
|
||
"briefcase": "0 0 1024 1024",
|
||
"brush-filled": "0 0 1024 1024",
|
||
"burger": "0 0 1024 1024",
|
||
"camera-filled": "0 0 1024 1024",
|
||
"caret-bottom": "0 0 1024 1024",
|
||
"caret-top": "0 0 1024 1024",
|
||
"cellphone": "0 0 1024 1024",
|
||
"chat-dot-round": "0 0 1024 1024",
|
||
"chat-dot-square": "0 0 1024 1024",
|
||
"chat-line-round": "0 0 1024 1024",
|
||
"chat-line-square": "0 0 1024 1024",
|
||
"chat-round": "0 0 1024 1024",
|
||
"chat-square": "0 0 1024 1024",
|
||
"checked": "0 0 1024 1024",
|
||
"chrome-filled": "0 0 1024 1024",
|
||
"circle-check": "0 0 1024 1024",
|
||
"circle-check-filled": "0 0 1024 1024",
|
||
"circle-close": "0 0 1024 1024",
|
||
"circle-close-filled": "0 0 1024 1024",
|
||
"circle-plus": "0 0 1024 1024",
|
||
"circle-plus-filled": "0 0 1024 1024",
|
||
"clock": "0 0 1024 1024",
|
||
"close-bold": "0 0 1024 1024",
|
||
"cloudy": "0 0 1024 1024",
|
||
"coffee": "0 0 1024 1024",
|
||
"coffee-cup": "0 0 1024 1024",
|
||
"coin": "0 0 1024 1024",
|
||
"cold-drink": "0 0 1024 1024",
|
||
"collection-tag": "0 0 1024 1024",
|
||
"comment": "0 0 1024 1024",
|
||
"connection": "0 0 1024 1024",
|
||
"coordinate": "0 0 1024 1024",
|
||
"copy-document": "0 0 1024 1024",
|
||
"credit-card": "0 0 1024 1024",
|
||
"crop": "0 0 1024 1024",
|
||
"d-arrow-left": "0 0 1024 1024",
|
||
"d-arrow-right": "0 0 1024 1024",
|
||
"d-caret": "0 0 1024 1024",
|
||
"data-analysis": "0 0 1024 1024",
|
||
"data-board": "0 0 1024 1024",
|
||
"data-checked-filled": "0 0 25 24",
|
||
"data-error-filled": "0 0 25 24",
|
||
"data-filled": "0 0 25 24",
|
||
"data-line": "0 0 1024 1024",
|
||
"data-search-filled": "0 0 25 24",
|
||
"delete-filled": "0 0 1024 1024",
|
||
"delete-location": "0 0 1024 1024",
|
||
"dessert": "0 0 1024 1024",
|
||
"dish": "0 0 1024 1024",
|
||
"dish-dot": "0 0 1024 1024",
|
||
"document": "0 0 1024 1024",
|
||
"document-add": "0 0 1024 1024",
|
||
"document-checked": "0 0 1024 1024",
|
||
"document-copy": "0 0 1024 1024",
|
||
"document-delete": "0 0 1024 1024",
|
||
"document-remove": "0 0 1024 1024",
|
||
"drizzling": "0 0 1024 1024",
|
||
"edit-pen": "0 0 1024 1024",
|
||
"eleme": "0 0 1024 1024",
|
||
"eleme-filled": "0 0 1024 1024",
|
||
"element-plus": "0 0 1024 1024",
|
||
"expand": "0 0 1024 1024",
|
||
"failed": "0 0 1024 1024",
|
||
"female": "0 0 1024 1024",
|
||
"files": "0 0 1024 1024",
|
||
"film-filled": "0 0 25 24",
|
||
"filter-2-filled": "0 0 25 24",
|
||
"filter-3-filled": "0 0 25 24",
|
||
"finished": "0 0 1024 1024",
|
||
"first-aid-kit": "0 0 1024 1024",
|
||
"fold": "0 0 1024 1024",
|
||
"folder-checked": "0 0 1024 1024",
|
||
"folder-delete": "0 0 1024 1024",
|
||
"folder-opened": "0 0 1024 1024",
|
||
"folder-remove": "0 0 1024 1024",
|
||
"font-background": "0 0 24 25",
|
||
"font-background-filled": "0 0 24 25",
|
||
"food": "0 0 1024 1024",
|
||
"football": "0 0 1024 1024",
|
||
"fork-spoon": "0 0 1024 1024",
|
||
"full-screen": "0 0 1024 1024",
|
||
"goblet": "0 0 1024 1024",
|
||
"goblet-full": "0 0 1024 1024",
|
||
"goblet-square": "0 0 1024 1024",
|
||
"goblet-square-full": "0 0 1024 1024",
|
||
"gold-medal": "0 0 1024 1024",
|
||
"goods": "0 0 1024 1024",
|
||
"goods-filled": "0 0 1024 1024",
|
||
"gps-filled": "0 0 25 24",
|
||
"grid": "0 0 1024 1024",
|
||
"guide": "0 0 1024 1024",
|
||
"handbag": "0 0 1024 1024",
|
||
"headset": "0 0 1024 1024",
|
||
"help-filled": "0 0 1024 1024",
|
||
"hide": "0 0 1024 1024",
|
||
"histogram": "0 0 1024 1024",
|
||
"home-filled": "0 0 1024 1024",
|
||
"hot-water": "0 0 1024 1024",
|
||
"house": "0 0 1024 1024",
|
||
"ice-cream-round": "0 0 1024 1024",
|
||
"ice-cream-square": "0 0 1024 1024",
|
||
"ice-drink": "0 0 1024 1024",
|
||
"ice-tea": "0 0 1024 1024",
|
||
"info-filled": "0 0 1024 1024",
|
||
"iphone": "0 0 1024 1024",
|
||
"knife-fork": "0 0 1024 1024",
|
||
"lightning": "0 0 1024 1024",
|
||
"list": "0 0 1024 1024",
|
||
"location-filled": "0 0 1024 1024",
|
||
"location-information": "0 0 1024 1024",
|
||
"lock": "0 0 1024 1024",
|
||
"logo-qq-filled": "0 0 24 25",
|
||
"lollipop": "0 0 1024 1024",
|
||
"magic-stick": "0 0 1024 1024",
|
||
"magnet": "0 0 1024 1024",
|
||
"male": "0 0 1024 1024",
|
||
"management": "0 0 1024 1024",
|
||
"medal": "0 0 1024 1024",
|
||
"memo": "0 0 1024 1024",
|
||
"message": "0 0 1024 1024",
|
||
"message-box": "0 0 1024 1024",
|
||
"mic": "0 0 1024 1024",
|
||
"milk-tea": "0 0 1024 1024",
|
||
"mode-dark-filled": "0 0 25 24",
|
||
"mode-light-filled": "0 0 25 24",
|
||
"monitor": "0 0 1024 1024",
|
||
"moon-night": "0 0 1024 1024",
|
||
"more-filled": "0 0 1024 1024",
|
||
"mostly-cloudy": "0 0 1024 1024",
|
||
"mug": "0 0 1024 1024",
|
||
"mute": "0 0 1024 1024",
|
||
"mute-notification": "0 0 1024 1024",
|
||
"no-smoking": "0 0 1024 1024",
|
||
"notebook": "0 0 1024 1024",
|
||
"odometer": "0 0 1024 1024",
|
||
"office-building": "0 0 1024 1024",
|
||
"open": "0 0 1024 1024",
|
||
"operation": "0 0 1024 1024",
|
||
"opportunity": "0 0 1024 1024",
|
||
"orange": "0 0 1024 1024",
|
||
"paperclip": "0 0 1024 1024",
|
||
"partly-cloudy": "0 0 1024 1024",
|
||
"phone": "0 0 1024 1024",
|
||
"phone-filled": "0 0 1024 1024",
|
||
"picture": "0 0 1024 1024",
|
||
"picture-filled": "0 0 1024 1024",
|
||
"picture-rounded": "0 0 1024 1024",
|
||
"pie-chart": "0 0 1024 1024",
|
||
"place": "0 0 1024 1024",
|
||
"platform": "0 0 1024 1024",
|
||
"pointer": "0 0 1024 1024",
|
||
"position": "0 0 1024 1024",
|
||
"postcard": "0 0 1024 1024",
|
||
"pouring": "0 0 1024 1024",
|
||
"present": "0 0 1024 1024",
|
||
"price-tag": "0 0 1024 1024",
|
||
"printer": "0 0 1024 1024",
|
||
"promotion": "0 0 1024 1024",
|
||
"quartz-watch": "0 0 1024 1024",
|
||
"question-filled": "0 0 1024 1024",
|
||
"rank": "0 0 1024 1024",
|
||
"reading": "0 0 1024 1024",
|
||
"reading-lamp": "0 0 1024 1024",
|
||
"refresh-left": "0 0 1024 1024",
|
||
"refresh-right": "0 0 1024 1024",
|
||
"refrigerator": "0 0 1024 1024",
|
||
"remove-filled": "0 0 1024 1024",
|
||
"right": "0 0 1024 1024",
|
||
"rotate-locked-filled": "0 0 25 24",
|
||
"scale-to-original": "0 0 1024 1024",
|
||
"school": "0 0 1024 1024",
|
||
"scissor": "0 0 1024 1024",
|
||
"select": "0 0 1024 1024",
|
||
"sell": "0 0 1024 1024",
|
||
"semi-select": "0 0 1024 1024",
|
||
"set-up": "0 0 1024 1024",
|
||
"ship": "0 0 1024 1024",
|
||
"shopping-bag": "0 0 1024 1024",
|
||
"shopping-cart": "0 0 1024 1024",
|
||
"shopping-cart-full": "0 0 1024 1024",
|
||
"shopping-trolley": "0 0 1024 1024",
|
||
"smoking": "0 0 1024 1024",
|
||
"soccer": "0 0 1024 1024",
|
||
"sold-out": "0 0 1024 1024",
|
||
"sort": "0 0 1024 1024",
|
||
"sort-down": "0 0 1024 1024",
|
||
"sort-up": "0 0 1024 1024",
|
||
"stamp": "0 0 1024 1024",
|
||
"star-filled": "0 0 1024 1024",
|
||
"stopwatch": "0 0 1024 1024",
|
||
"success-filled": "0 0 1024 1024",
|
||
"sugar": "0 0 1024 1024",
|
||
"suitcase": "0 0 1024 1024",
|
||
"suitcase-line": "0 0 1024 1024",
|
||
"sunrise": "0 0 1024 1024",
|
||
"sunset": "0 0 1024 1024",
|
||
"switch": "0 0 1024 1024",
|
||
"switch-button": "0 0 1024 1024",
|
||
"switch-filled": "0 0 1024 1024",
|
||
"takeaway-box": "0 0 1024 1024",
|
||
"task-setting-filled": "0 0 25 25",
|
||
"tickets": "0 0 1024 1024",
|
||
"timer": "0 0 1024 1024",
|
||
"toilet-paper": "0 0 1024 1024",
|
||
"top": "0 0 1024 1024",
|
||
"top-left": "0 0 1024 1024",
|
||
"top-right": "0 0 1024 1024",
|
||
"trend-charts": "0 0 1024 1024",
|
||
"trophy": "0 0 1024 1024",
|
||
"trophy-base": "0 0 1024 1024",
|
||
"turn-off": "0 0 1024 1024",
|
||
"umbrella": "0 0 1024 1024",
|
||
"unlock": "0 0 1024 1024",
|
||
"upload-filled": "0 0 1024 1024",
|
||
"user-filled": "0 0 1024 1024",
|
||
"van": "0 0 1024 1024",
|
||
"video-camera-filled": "0 0 1024 1024",
|
||
"video-pause": "0 0 1024 1024",
|
||
"video-play": "0 0 1024 1024",
|
||
"view": "0 0 1024 1024",
|
||
"wallet-filled": "0 0 1024 1024",
|
||
"warn-triangle-filled": "0 0 1024 1024",
|
||
"warning": "0 0 1024 1024",
|
||
"warning-filled": "0 0 1024 1024",
|
||
"widget-filled": "0 0 25 24",
|
||
"wifi-1-filled": "0 0 25 24",
|
||
"wifi-off-1-filled": "0 0 25 24",
|
||
"wind-power": "0 0 1024 1024"
|
||
};
|