stevenlee87
6c19aefc71
feat(roles): sort user list by role rank and username
...
优化 GET /api/roles/users 用户列表的排序:
- 主排序:按角色等级 皇帝 → 公爵 → 骑士 → 平民(无角色用户排最后)
- 次排序:用户名长度(短者优先)
- 末排序:用户名字母序(大小写不敏感)
- 查询由 db.query.users.findMany(relational)改为显式 select + leftJoin,
以支持基于角色名的 CASE 排序
Sort the user list returned by GET /api/roles/users:
- Primary: by role rank Emperor -> Duke -> Knight -> Civilian (users
without a role sort last)
- Secondary: username length (shorter first)
- Tertiary: username alphabetical order (case-insensitive)
- Switch the query from db.query.users.findMany (relational) to an explicit
select + leftJoin to enable CASE-based ordering on role name
2026-07-30 22:09:33 +08:00
stevenlee87
4960395777
refactor: favicon 移回 app/ + 删除用户改为 RESTful DELETE /api/users/[id]
...
- favicon: 从 public/favicon.ico 移回 app/favicon.ico(next-on-pages 1.13.16 下生产验证 /favicon.ico 正常返回)
- 删除用户: POST /api/roles/delete 改为 DELETE /api/users/[id],符合 RESTful 语义(资源 users + 标准 DELETE 方法)
2026-07-30 22:09:33 +08:00
stevenlee87
d34bb3d474
feat(roles): add delete user functionality to role management
...
Add ability for Emperor to delete users from the role management panel:
- New POST /api/roles/delete endpoint with PROMOTE_USER permission guard,
blocks deleting self or other emperors, cascades user data cleanup
- Trash button on each non-emperor row with confirmation dialog
- Auto-navigate to previous page when deleting the last user on a page
- i18n strings added for all 5 locales
2026-07-30 22:09:33 +08:00
lidong-sal
6fc9686be9
feat(roles): enhance role management panel with user list and inline editing
...
Redesign the Emperor's Role Management panel from a single-user
search-and-assign form into a full user management dashboard with
browsable user list and inline role editing.
2026-07-30 22:09:33 +08:00
ty
3c238e25e6
fix(api): support API Key auth for send endpoint
2026-03-22 15:22:29 +08:00
beilunyang
d21f8c6b42
fix(turnstile): conditionally include secretKey in Turnstile configuration based on management permissions
2025-10-22 23:37:52 +08:00
beilunyang
e431c1fe5b
feat(turnstile): integrate Cloudflare Turnstile for enhanced security in login and registration processes
2025-10-22 23:31:48 +08:00
beilunyang
dbe8c42b11
feat(sharing): add email and message sharing functionality
2025-10-18 20:08:42 +08:00
beilunyang
8ec1ecdbb4
fix: new received emails not showing
2025-06-23 00:37:12 +08:00
beilunyang
e85f6b04bd
feat: implement email sending functionality via Resend service
2025-06-22 00:32:09 +08:00
beilunyang
eb6c3fe5eb
feat: /api/config endpoint can be called using APIKey
2025-05-13 00:01:15 +08:00
jieyitang
21d09a2cb0
feat: add delete function for single email message
2025-03-14 16:52:38 +08:00
beilunyang
ea7fd5490c
refactor: Consolidate configuration management with Zustand store
2025-03-01 10:29:50 +08:00
beilunyang
b1d898e298
feat: Add configurable maximum email limit for users
2025-02-28 00:30:37 +08:00
beilunyang
f86d944c25
feat: Add role-based email limit exemption for emperors
2025-02-27 23:59:36 +08:00
beilunyang
9ad3115833
feat: Implement OpenAPI with API Key authentication and role-based access control
2025-02-10 11:25:25 +08:00
beilunyang
1bc0369b83
feat: Email addresses are not case sensitive
2025-01-17 21:58:27 +08:00
beilunyang
5df270a471
fix: Users logging in with a password can't get their mailbox
2025-01-17 19:11:01 +08:00
beilunyang
086ad28f6a
feat: Support finding and promoting roles by username
2025-01-15 19:34:35 +08:00
beilunyang
075a34239b
feat: Enhance registration process with improved validation and error handling
2025-01-15 19:31:19 +08:00
beilunyang
126a4cb948
feat: Implement username/password authentication and registration features
2025-01-15 16:00:06 +08:00
beilunyang
bfe439f90b
refactor: support demotion and improve error handling in role management
2024-12-28 18:23:44 +08:00
beilunyang
fbd65a5ee4
feat: Enhance role management by adding role assignment functionality and checks for existing roles
2024-12-28 17:50:47 +08:00
beilunyang
45a13d0c20
feat: Enhance email domain configuration and management
2024-12-28 01:34:34 +08:00
beilunyang
6420cd7570
feat: Add configuration management for default user roles and permissions
2024-12-28 00:54:29 +08:00
beilunyang
5a7c17752a
feat: Implement role-based access control and enhance permissions system
2024-12-27 13:35:29 +08:00
beilunyang
ee8d284a73
fix: DELETE email route parameter type error
2024-12-24 23:56:21 +08:00
beilunyang
64105c718d
feat: Add email deletion functionality
2024-12-24 23:38:51 +08:00
sunny
35d5e75df2
fix: Resolve issue with email domain environment variable not working
2024-12-24 15:07:38 +08:00
beilunyang
774736af38
feat: Add support for multiple email domains and enhance email creation dialog
2024-12-24 00:23:28 +08:00
beilunyang
929f310202
feat: Enhance email expiration options and update README
2024-12-21 01:36:35 +08:00
beilunyang
c69947ceae
feat: profile page & webhook notification
2024-12-18 01:59:34 +08:00
beilunyang
cc7e5003c5
feat: Init
2024-12-16 01:49:50 +08:00