fix web ui smoke and brand assets

This commit is contained in:
hectorzhao
2026-06-30 11:13:30 +08:00
parent 0dfb2988b2
commit 9920575bba
103 changed files with 6650 additions and 135 deletions
@@ -0,0 +1,21 @@
-- Backfill number-library RBAC rows for existing environments where the
-- application seed was not rerun after the number library module landed.
INSERT INTO `permissions` (`id`, `module`, `action`, `description`, `created_at`, `updated_at`)
VALUES
('number_library.view', 'number_library', 'view', '查看号码库', CURRENT_TIMESTAMP(3), CURRENT_TIMESTAMP(3)),
('number_library.manage', 'number_library', 'manage', '管理号码库', CURRENT_TIMESTAMP(3), CURRENT_TIMESTAMP(3))
ON DUPLICATE KEY UPDATE
`module` = VALUES(`module`),
`action` = VALUES(`action`),
`description` = VALUES(`description`),
`updated_at` = CURRENT_TIMESTAMP(3);
INSERT IGNORE INTO `role_permissions` (`role_id`, `permission_id`)
VALUES
('ROLE_SUPER_ADMIN', 'number_library.view'),
('ROLE_SUPER_ADMIN', 'number_library.manage'),
('ROLE_OPERATOR', 'number_library.view'),
('ROLE_OPERATOR', 'number_library.manage'),
('ROLE_TECH_OPS', 'number_library.view'),
('ROLE_TECH_OPS', 'number_library.manage');