feat(ui,keys): granular masking, stats match, legacy format

- Make maskApiKey progressive for short keys to reduce exposure
- When aggregating usage, fall back to masked key to match stored stats
- Support legacy provider config `api-keys` by mapping to `api-key-entries`
- Add scrolling for provider lists >5 and reset styles when empty
- Improves privacy, fixes mismatched stats display, and preserves compatibility
This commit is contained in:
hkfires
2025-10-21 21:08:09 +08:00
parent 8964030ade
commit d26695da76
2 changed files with 57 additions and 11 deletions

View File

@@ -1446,12 +1446,15 @@ input:checked+.slider:before {
/* 列表样式 */
.key-list,
.provider-list,
.file-list {
max-height: 400px;
overflow-y: auto;
}
.provider-list {
/* 默认不限制高度,动态设置 */
}
.key-item,
.provider-item,
.file-item {