用户中心侧栏工单中心图标改用 comment-color
- sidebar-nav: 工单中心 icon ticket-color -> comment-color - 删除 assets/icons/sprite/ticket-color.svg 并重建 svg-icon.js - 同步更新相关契约测试 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b7a910b758
commit
7e86f2a821
5 files changed
+3
-5
No files matched your search
@@ -155,7 +155,7 @@ test('ticket panel is registered across the user-center wiring', () => {
|
||||
|
||||
const sidebar = read('inc/helpers/user-center-renderers/sidebar-nav.php');
|
||||
assert.ok(sidebar.includes("'label' => __('工单中心', 'aksrt')"), 'sidebar label missing');
|
||||
assert.ok(sidebar.includes("'icon' => 'ticket-color'"), 'sidebar icon should use the built-in ticket sprite');
|
||||
assert.ok(sidebar.includes("'icon' => 'comment-color'"), 'sidebar icon should use the built-in comment sprite');
|
||||
assert.ok(sidebar.includes("'tab' => 'tickets'"), 'sidebar tab key missing');
|
||||
|
||||
const helper = read('inc/helpers/aksrt-user-center.php');
|
||||
|
||||
@@ -152,7 +152,7 @@ test('所用 sprite key 均在前端 sprite 中定义', () => {
|
||||
const sprite = read('assets/js/runtime/svg-icon.js');
|
||||
const keys = [
|
||||
'trend-color', 'user-auth', 'order-color', 'msg-color', 'user-color', 'security-color',
|
||||
'money-color-2', 'points-color', 'merchant-color', 'money-color', 'vip_1', 'time', 'menu', 'right', 'ticket-color',
|
||||
'money-color-2', 'points-color', 'merchant-color', 'money-color', 'vip_1', 'time', 'menu', 'right', 'comment-color',
|
||||
];
|
||||
for (const key of keys) {
|
||||
assert.match(sprite, new RegExp(`aksrt_svgs\\['${key}'\\]\\s*=`), `sprite key missing: ${key}`);
|
||||
|
||||
Reference in new issue
Block a user