mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #3387] [MERGED] Add all-time traffic for inbounds and clients #5404
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3387
Author: @aliglzr
Created: 8/27/2025
Status: ✅ Merged
Merged: 8/27/2025
Merged by: @MHSanaei
Base:
main← Head:client-patch-2📝 Commits (5)
42ce9a3feat(db): add allTime field to Inbound and ClientTraffic models85a580bfeat(inbound): increment all_time for inbounds and clients on traffic updates6828ea3feat(ui): show all-time traffic column for inbounds and its clients8b3650bi18n: add pages.inbounds.allTimeTraffic label across localesfffdc72Add All Time Traffic Usage in inbounds page top banner📊 Changes
19 files changed (+86 additions, -7 deletions)
View changed files
📝
database/model/model.go(+1 -0)📝
web/assets/js/model/dbinbound.js(+1 -0)📝
web/html/component/aClientTable.html(+4 -0)📝
web/html/inbounds.html(+29 -5)📝
web/service/inbound.go(+24 -2)📝
web/translation/translate.ar_EG.toml(+2 -0)📝
web/translation/translate.en_US.toml(+2 -0)📝
web/translation/translate.es_ES.toml(+2 -0)📝
web/translation/translate.fa_IR.toml(+2 -0)📝
web/translation/translate.id_ID.toml(+2 -0)📝
web/translation/translate.ja_JP.toml(+2 -0)📝
web/translation/translate.pt_BR.toml(+2 -0)📝
web/translation/translate.ru_RU.toml(+2 -0)📝
web/translation/translate.tr_TR.toml(+2 -0)📝
web/translation/translate.uk_UA.toml(+2 -0)📝
web/translation/translate.vi_VN.toml(+2 -0)📝
web/translation/translate.zh_CN.toml(+2 -0)📝
web/translation/translate.zh_TW.toml(+2 -0)📝
xray/client_traffic.go(+1 -0)📄 Description
What is the pull request?
Adds an all-time traffic counter to inbounds and client traffic that persists across traffic resets. Updates database models, services, UI, and translations to support storing, incrementing, and displaying this value.
This PR does not make any bug or bad effects on previous versions.
Users with previous version databases need to migrate if they need to have the correct All Time Traffic from now.
After Migration it will calculate correctly.
Which part of the application is affected by the change?
Type of Changes
Screenshots
Before Reset

After Reset

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.