From f86cace07de5e9b5d42e8878189114b6742be67e Mon Sep 17 00:00:00 2001 From: hjjjj <1311711287@qq.com> Date: Mon, 30 Mar 2026 16:10:31 +0800 Subject: [PATCH] feat(server): enhance skill management and error handling - Added middleware to handle invalid JSON body errors, returning a 400 status with a descriptive message. - Introduced functions to normalize and filter mode tags for user permissions, improving access control for skills based on user roles. - Updated API endpoints to incorporate mode tag filtering, ensuring users can only access skills they are permitted to view. - Implemented a new endpoint for updating skill tags, with permission checks for non-admin users. - Enhanced the frontend with updated styles and layout adjustments for better user experience. --- admin-web/index.html | 483 +++++++++++++++++++++++++++++++++++++------ routes/auth.js | 17 +- server.js | 221 +++++++++++++++++--- updates/index.html | 20 +- 4 files changed, 643 insertions(+), 98 deletions(-) diff --git a/admin-web/index.html b/admin-web/index.html index 14bbce0..5b4ef34 100644 --- a/admin-web/index.html +++ b/admin-web/index.html @@ -6,18 +6,19 @@ 权限管理平台