QuentinHsu
6b79b89dc0
style(web): format code
2025-04-04 17:37:27 +08:00
1808837298@qq.com
5387d7f4f7
Update IP restriction messages for clarity in English localization and placeholder text in EditToken component. Enhanced user guidance by specifying that leaving the IP field blank means no restrictions.
2025-01-08 16:52:31 +08:00
CalciumIon
d13d81baba
refactor: update group handling and rendering logic
...
- Changed the structure of usableGroups in GetUserGroups to store additional information (ratio and description) for each group.
- Introduced a new renderRatio function to visually represent group ratios with color coding.
- Updated the Playground and EditToken components to utilize the new group structure and rendering options.
- Enhanced the renderGroupOption function for better UI representation of group options.
- Fixed minor comments and improved code readability.
2024-12-30 19:51:00 +08:00
CalciumIon
b3576f24ef
fix typo
2024-12-25 18:44:45 +08:00
CalciumIon
fb8595da18
feat: Update localization and enhance token editing functionality
...
- Added new translation keys for English localization in `en.json`, including "Token group, default is the your's group" and "IP whitelist (do not overly trust this function)".
- Refactored `EditToken.js` to utilize the `useTranslation` hook for improved internationalization, ensuring all user-facing strings are translatable.
- Updated error and success messages to use translation functions, enhancing user experience for non-English speakers.
- Improved UI elements to support localization, including labels, placeholders, and button texts, ensuring consistency across the token editing interface.
2024-12-24 18:40:18 +08:00
1808837298@qq.com
f599c65944
fix: 修复用户可选分组不能选择用户分组 ( close #528 )
2024-10-14 16:22:22 +08:00
1808837298@qq.com
89ddf83b44
feat: 弃用旧的聊天配置
2024-10-12 21:09:59 +08:00
CalciumIon
c6ff785a83
feat: 无可选分组时关闭令牌分组功能 #485
2024-09-19 03:01:33 +08:00
CalciumIon
2e734e0c37
chore: 令牌分组描述歧义
2024-09-19 02:52:25 +08:00
CalciumIon
052bc2075b
feat: 令牌分组
2024-09-18 05:19:49 +08:00
CalciumIon
f505afdc10
feat: 添加令牌ip白名单功能
2024-09-17 20:49:51 +08:00
CaIon
962dc984f4
chore: lint fix
2024-03-23 21:24:39 +08:00
CaIon
d34b55c154
chore: reformat code
2024-03-15 16:05:33 +08:00
CaIon
1244963e81
feat: 可设置令牌能调用的模型
2024-01-08 16:25:17 +08:00
CaIon
8b96d068c9
视觉优化
2023-12-01 01:30:24 +08:00
CaIon
b140b326b8
更新用户管理界面UI
2023-11-27 22:43:46 +08:00
CaIon
3121afd2e0
修复令牌添加、搜索bug
2023-11-25 17:30:36 +08:00
luxl
97f494d59e
Update EditToken.js
2023-11-19 14:06:08 +08:00
CaIon
44d9eb9d05
完善兑换码界面
2023-11-10 00:10:41 +08:00
CaIon
e06186fe0c
修复令牌bug
2023-11-03 22:38:17 +08:00
CaIon
9eb8ad6786
完善令牌界面
2023-11-01 02:50:14 +08:00
Yolo°
5a62357c93
feat: add chat button for each token ( #363 )
...
* fork
* fork
* chore: update style
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com >
2023-08-06 22:02:58 +08:00
JustSong
b8cb86c2c1
chore: adjust ui
2023-07-29 19:32:06 +08:00
JustSong
c90c0ecef4
chore: set the default token quota to 1$
2023-07-02 16:45:42 +08:00
JustSong
6536a7be62
fix: do not show dollar balance if not enabled
2023-06-21 15:45:30 +08:00
JustSong
b179c2f208
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
25eab0b224
style: fix UI related problems
2023-05-22 22:41:39 +08:00
JustSong
34bce5b464
style: add positive attribute to submit buttons ( close #113 )
2023-05-22 22:30:11 +08:00
JustSong
d1e9b86f05
chore: update prompt
2023-05-16 11:58:26 +08:00
JustSong
01abed0a30
refactor: bind quota to account instead of token ( close #64 , #31 )
2023-05-16 11:26:09 +08:00
JustSong
5c694a1503
feat: now supports custom smtp port
2023-05-12 11:44:38 +08:00
JustSong
601fa5cea8
refactor: use quota instead of times
2023-04-28 14:57:20 +08:00
JustSong
c76027a210
style: add bottom margin for unlimited times button
2023-04-27 17:18:07 +08:00
JustSong
03491029f2
feat: limit the ability of common user to set the remaining usage times of token ( #9 )
2023-04-26 11:10:14 +08:00
JustSong
109736cc05
fix: only reduce remain times when request /v1/chat/completions ( close #15 )
...
BREAKING CHANGE: now remain_times is -1 doesn't mean unlimited times anymore!
2023-04-26 10:45:34 +08:00
JustSong
5ed4a3d405
feat: improve the token edit page
2023-04-25 09:24:02 +08:00
JustSong
918ba60802
feat: able to set the token's expiration time and number of uses
2023-04-24 20:52:40 +08:00
JustSong
63da6dc6a0
Able to manage token now
2023-04-23 12:43:10 +08:00