| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| api.js | ||
| auth.js | ||
| boolean.js | ||
| dashboard.js | ||
| data.js | ||
| history.js | ||
| index.js | ||
| log.js | ||
| render.js | ||
| token.js | ||
| utils.js |
- Add new Forbidden page at /forbidden (`web/src/pages/Forbidden/index.js`) - Use Semi-UI Empty with IllustrationNoAccess (250x250) - Update i18n description to: '您无权访问此页面,请联系管理员~' - Align visual style with existing 404 page - Introduce `AdminRoute` in `web/src/helpers/auth.js` - Use `UserContext`/localStorage; redirect to `/forbidden` when `!user` or `user.role < 10` - Protect console/admin routes with `AdminRoute` and register `/forbidden` in `web/src/App.js` - Update `web/src/i18n/locales/en.json` - Add English translation for the new forbidden message - Remove legacy "没有权限" entry - Lint passes; no runtime errors observed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| api.js | Loading commit data... | |
| auth.js | Loading commit data... | |
| boolean.js | Loading commit data... | |
| dashboard.js | Loading commit data... | |
| data.js | Loading commit data... | |
| history.js | Loading commit data... | |
| index.js | Loading commit data... | |
| log.js | Loading commit data... | |
| render.js | Loading commit data... | |
| token.js | Loading commit data... | |
| utils.js | Loading commit data... |