QuentinHsu
775b1c458b
style(web): format code
2025-04-04 17:37:27 +08:00
1808837298@qq.com
b604cab599
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
72d7e3eb81
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
b9e3331fb3
fix typo
2024-12-25 18:44:45 +08:00
CalciumIon
4bc8052a6e
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
347cbf63bb
fix: 修复用户可选分组不能选择用户分组 ( close #528 )
2024-10-14 16:22:22 +08:00
1808837298@qq.com
53ff1547cf
feat: 弃用旧的聊天配置
2024-10-12 21:09:59 +08:00
CalciumIon
3ef8b74039
feat: 无可选分组时关闭令牌分组功能 #485
2024-09-19 03:01:33 +08:00
CalciumIon
27909c95f3
chore: 令牌分组描述歧义
2024-09-19 02:52:25 +08:00
CalciumIon
4a02eb1b7f
feat: 令牌分组
2024-09-18 05:19:49 +08:00
CalciumIon
6d2948d684
feat: 添加令牌ip白名单功能
2024-09-17 20:49:51 +08:00
CaIon
eb955ae4b1
chore: lint fix
2024-03-23 21:24:39 +08:00
CaIon
add3b05da4
chore: reformat code
2024-03-15 16:05:33 +08:00
CaIon
8d9e04427b
feat: 可设置令牌能调用的模型
2024-01-08 16:25:17 +08:00
CaIon
4bd1468420
视觉优化
2023-12-01 01:30:24 +08:00
CaIon
b7ac0b18d0
更新用户管理界面UI
2023-11-27 22:43:46 +08:00
CaIon
f08fac740d
修复令牌添加、搜索bug
2023-11-25 17:30:36 +08:00
luxl
9768d73c87
Update EditToken.js
2023-11-19 14:06:08 +08:00
CaIon
4c1a23d65a
完善兑换码界面
2023-11-10 00:10:41 +08:00
CaIon
ed432c5a20
修复令牌bug
2023-11-03 22:38:17 +08:00
CaIon
40c626cb15
完善令牌界面
2023-11-01 02:50:14 +08:00
Yolo°
4e11fcd795
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
716af5231a
chore: adjust ui
2023-07-29 19:32:06 +08:00
JustSong
84ce8c4b02
chore: set the default token quota to 1$
2023-07-02 16:45:42 +08:00
JustSong
17bd2d0c5b
fix: do not show dollar balance if not enabled
2023-06-21 15:45:30 +08:00
JustSong
a6cc0226a7
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
bc4c572b41
style: fix UI related problems
2023-05-22 22:41:39 +08:00
JustSong
eef09897f8
style: add positive attribute to submit buttons ( close #113 )
2023-05-22 22:30:11 +08:00
JustSong
c1754f777d
chore: update prompt
2023-05-16 11:58:26 +08:00
JustSong
bcb4862a19
refactor: bind quota to account instead of token ( close #64 , #31 )
2023-05-16 11:26:09 +08:00
JustSong
d11134d98f
feat: now supports custom smtp port
2023-05-12 11:44:38 +08:00
JustSong
aa18ac4864
refactor: use quota instead of times
2023-04-28 14:57:20 +08:00
JustSong
3c31997c4e
style: add bottom margin for unlimited times button
2023-04-27 17:18:07 +08:00
JustSong
512f9e3ac9
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
b612efe349
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
7856da5d4a
feat: improve the token edit page
2023-04-25 09:24:02 +08:00
JustSong
db95445a86
feat: able to set the token's expiration time and number of uses
2023-04-24 20:52:40 +08:00
JustSong
9ca6adf4a1
Able to manage token now
2023-04-23 12:43:10 +08:00