Commit Graph
67 Commits
Author SHA1 Message Date
SmartUp Developer 71455c7a94 Align finance dashboard visual style 2026-07-03 23:43:01 +08:00
SmartUp Developer 4dd4448970 Reapply "Redesign finance dashboard with period summaries"
This reverts commit da14ec5740.
2026-07-03 23:25:47 +08:00
SmartUp Developer da14ec5740 Revert "Redesign finance dashboard with period summaries"
This reverts commit 8d41956d88.
2026-07-03 23:19:32 +08:00
SmartUp Developer 8d41956d88 Redesign finance dashboard with period summaries 2026-07-03 22:16:05 +08:00
SmartUp Developer 1670503720 fix finance balance delta recharges 2026-07-03 20:05:28 +08:00
SmartUp Developer bb7ed5a7e0 Refactor finance reconciliation dashboard 2026-07-03 18:02:57 +08:00
SmartUp Developer eba209395d feat: persist finance daily summaries 2026-07-03 17:38:54 +08:00
SmartUp Developer a1e2c059b9 fix: reuse configured clients for finance stats 2026-07-03 15:42:29 +08:00
SmartUp Developer 5e99abcbc5 feat: 财务对账页面 — GET /api/finance/daily-summary + Finance.vue 2026-07-03 15:28:06 +08:00
SmartUp Developer fdbcca4d95 fix: delay binding.percent update until remote sync succeeds and update UI labels to 自动保底盈利 2026-07-02 21:27:52 +08:00
SmartUp Developer 0e77de31ae feat: implement automatic margin pricing and margin reverse engineering in sync 2026-07-02 21:22:37 +08:00
SmartUp Developer 8746068cd4 feat: implement priority_weighted_plus_percent pricing algorithm 2026-07-02 20:23:20 +08:00
SmartUp Developer c20c9cfd26 fix: add stream close check, recover regression test assertions, and secure credentials type check 2026-07-02 19:18:10 +08:00
SmartUp Developer ece11d66e6 feat: sync upstream models with real-time streaming updates 2026-07-02 18:11:55 +08:00
liumangmang 63cbdf4dca feat: 实现一键同步网站账号上游模型功能 2026-07-02 15:43:00 +08:00
SmartUp Developer ea3fd64686 fix: optimize summary count query and refine row keys for external api logs 2026-07-02 15:07:32 +08:00
liumangmang 608ef00920 feat: 实现设置账号并发数功能(支持 bulk-update 与 fallback 逐个更新) 2026-07-02 09:48:59 +08:00
liumangmang 536c0aa3d4 feat: 实现清理失效账号安全方案(包含预览、SSE测试、安全删除以及本地标记清空) 2026-07-02 00:19:26 +08:00
liumangmang ebf7def177 fix: 在官网跳转按钮的禁用及触发判断中增加对 base_url 是否以 http:// 或 https:// 开头的严格校验 2026-07-01 20:56:40 +08:00
liumangmang 49c96ee8a4 feat: 移除侧边栏中的上游网址快捷入口,并在上游管理列表各条记录操作列增加官网跳转按钮 2026-07-01 20:47:45 +08:00
liumangmang 3172ab18bf fix: 修改目标分组名称后自动同步更新本地绑定表中的名称缓存,并为前端更新分组 URL 中的 groupId 进行 Url 编码 2026-07-01 17:55:53 +08:00
liumangmang 8c2f1c13bb feat: 支持网站目标分组轻量管理(新增、编辑、描述展示),不修改和不提交倍率 2026-07-01 17:47:36 +08:00
liumangmang e5d7af8906 feat: 网站分组列表默认按倍率从小到大(升序)排序 2026-07-01 17:22:19 +08:00
liumangmang 650451c123 fix: 引入 normalizeRateBound 标准化倍率空输入,解决输入清空后过滤失效的问题 2026-07-01 17:14:28 +08:00
liumangmang 04d719b417 feat: 选择上游分组弹窗支持倍率范围(大于等于/小于等于)筛选 2026-07-01 17:06:18 +08:00
liumangmang f9b5a03330 fix: 缩小选择分组弹窗的搜索范围至分组自身信息,更新输入占位提示文案 2026-07-01 16:31:40 +08:00
liumangmang 7c7942c83b fix: 解决选择框异常压缩、新增绑定自动选择首个分组、以及弹窗自适应2K显示器比例 2026-07-01 16:13:05 +08:00
liumangmang 962614500c refactor: 隔离 Websites.vue 全局样式,仅对 Element Plus 壳层节点应用非 scoped 样式以防污染其他页面 2026-07-01 15:52:48 +08:00
liumangmang 71e0fe40a9 refactor: 按照新版 ui_redesign_prototype.html 重构新增绑定抽屉和选择上游分组弹窗 2026-07-01 15:47:51 +08:00
liumangmang 756d6e1083 style: 移除 Websites.vue 中所有尾部多余空格 2026-07-01 15:16:07 +08:00
liumangmang 02e41fa80e feat: 监听上游分组改用专用弹窗选择器,支持搜索、多选及已选Tag展示 2026-07-01 15:11:53 +08:00
liumangmang 8abfa4c5ef feat: 重构接口日志页面与接口监控看板,支持HTTP方法过滤和实时轮询 2026-07-01 15:04:32 +08:00
liumangmang 397a14c978 feat(website): 支持基于现有绑定一键整理分组,支持账号校验补齐、自愈重建与缺失 Key 提示 (含异常保守跳过及名称层级匹配) 2026-07-01 11:21:20 +08:00
liumangmang efd0a88249 perf(import): 优化账号导入弹窗为秒开体验并支持批量回查校验 2026-07-01 10:00:40 +08:00
liumangmang d92537688a fix(priority): keep readable priority sync details 2026-07-01 09:12:39 +08:00
liumangmang edc00444dc fix(nox-api): address duplicate creation risks, pending upgrading issues, cache warm error handling, test speedups, and frontend display support for pending keys 2026-06-30 17:25:18 +08:00
liumangmang c5bb63cf82 feat: support upstream token refresh 2026-06-30 14:34:40 +08:00
liumangmang a914d3d222 feat: add Nox-API upstream support 2026-06-30 11:22:38 +08:00
SmartUp Developer b866b387e0 feat: sync upstream keys and reorder priorities 2026-06-03 17:03:11 +08:00
liumangmang a42bcba483 Remove server remote browser support 2026-06-02 19:25:20 +08:00
liumangmang 84148f4a69 feat: support real browser auth import 2026-06-02 13:51:29 +08:00
liumangmang f4d16a4c01 fix(frontend): include cookie_count and cookie_names in AuthCaptureDialog emit 2026-06-02 10:07:32 +08:00
liumangmang 0b1daf277b fix(frontend): apply new-api-user endpoint reset to cookie_bundle capture branch 2026-06-02 09:58:18 +08:00
liumangmang b77ea21ca8 fix(frontend): support cookie_bundle candidate in AuthCaptureDialog and refreshAuth 2026-06-02 09:52:43 +08:00
liumangmang 871557e4ae feat(upstreams): add batch test-all / check-now-all endpoints
- POST /api/upstreams/test-all: batch connection test for all enabled
  upstreams (no snapshot, no webhook); updates last_status, balance
- POST /api/upstreams/check-now-all: full batch sync (snapshot, diff,
  webhook, key sync, priority sync); mirrors single check-now behavior
- Both routes are registered before /{uid} to avoid path capture
- Skips disabled upstreams (status=skipped); single failure does not
  abort subsequent upstreams (serial execution)
- Returns UpstreamBatchActionResponse with per-item detail and summary

Refactor: extract _test_upstream_core(db, u) and _check_now_core(db, u)
- All four routes (single + batch × 2) now share the same core helpers
- Eliminates duplicate logic and future divergence risk

Frontend:
- Add UpstreamBatchActionResponse / Item / Summary TS types
- Add upstreamsApi.testAll() and upstreamsApi.checkNowAll()
- Add '一键测试' and '一键同步' buttons in Upstreams.vue toolbar
  (order: 一键测试 → 一键同步 → 刷新 → 新增上游)
- Buttons disabled when list is empty or another batch op is running
- On completion: refresh list + ElMessageBox with per-item failure detail
2026-06-01 16:46:42 +08:00
liumangmang bea4344bb3 fix: reconcile upstream keys on list/generate/import to prevent stale key imports
- Extract reconcile_upstream_keys() to website_sync.py (shared scheduler + on-demand)
- Add reconcile_upstream_keys_full() for on-demand reconciliation at three entry points:
  list_generated_keys, generate_keys_by_groups, import_upstream_keys_as_accounts
- Safe on failure: active_group_ids=None / remote_key_ids=None skip cleanup
- Support custom managed_prefix via _fetch_remote_managed_key_ids() helper
- Exclude orphaned keys from frontend importable list
- Remove hardcoded search='SmartUp' from scheduler path
2026-06-01 11:29:37 +08:00
liumangmang 3408795289 feat: default upstream balance config for new upstream form
defaultForm() now uses sub2api presets for balance fields:
- balance_endpoint: /auth/me
- balance_response_path: data.balance
- balance_divisor: 1.0

Platform presets in handlePlatformChange() remain unchanged.
2026-06-01 11:09:31 +08:00
liumangmang 518e3e8efc feat: add one-click sync for website group bindings 2026-06-01 09:06:01 +08:00
liumangmang 3ab3a5e26f feat: add multi-tab support to remote browser 2026-05-30 09:51:51 +08:00
liumangmang 5c20ddc8e6 feat: sync account priorities after rate changes 2026-05-29 17:51:12 +08:00