Commit Graph
17 Commits
  • fix: Swap left/right classes for client table cells
    Swap tr-table-rt and tr-table-lt on the size and totalGB elements in aClientTable.html so the size display and the total GB display are positioned correctly (size on the left, total on the right). This is a UI alignment fix with no functional logic changes.
  • ws/inbounds: realtime fixes + perf for 10k+ client inbounds (#4123)
    * ws/inbounds: realtime fixes + perf for 10k+ client inbounds
    
    - hub: dedup, throttle, panic-restart, deadlock fix, race tests
    - client: backoff cap + slow-retry instead of giving up
    - broadcast: delta-only payload, count-based invalidate fallback
    - filter: fix empty online list (Inbound has no .id, use dbInbound.toInbound)
    - perf: O(N²)→O(N) traffic merge, bulk delete, /setEnable endpoint
    - traffic: monotonic all_time + UI clamp + propagate in delta handler
    - session: persist on update/logout (fixes logout-after-password-change)
    - ui: protocol tags flex, traffic bar normalize
    
    * Remove hub_test.go file
    
    * fix: ws hub, inbound service, and frontend correctness
    
    - propagate DelInbound error on disable path in SetInboundEnable
    - skip empty emails in updateClientTraffics to avoid constraint violations
    - use consistent IN ? clause, drop redundant ErrRecordNotFound guards
    - Hub.Unregister: direct removeClient fallback when channel is full
    - applyClientStatsDelta: O(1) email lookup via per-inbound Map cache
    - WS payload size check: Blob.size instead of .length for real byte count
    
    * fix: chunk large IN ? queries and fix IPv6 same-origin check
    
    * fix: chunk large IN ? queries and fix IPv6 same-origin check
    
    * fix: unify clientStats cache, throttle clarity, hub constants
    
    * fix(ui): align traffic/expiry cell columns across all rows
    
    * style(ui): redesign outbounds table for visual consistency
    
    * style(ui): redesign routing table for visual consistency
    
    * fix:
    
    * fix:
    
    * fix:
    
    * fix:
    
    * fix:
    
    * fix: font
    
    * refactor: simplify outbound tone functions for consistency and maintainability
    
    ---------
    
    Co-authored-by: lolka1333 <test123@gmail.com>
  • add hysteria inbound
    Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • chore: use Intl for date formatting (#3588)
    * chore: use `Intl` for date formatting
    
    * fix: show last traffic reset
    
    * chore: use raw timestamps
    
    * fix: remove unnecessary import
  • feat: add "Last Online" column to client list and modal (Closes #3402) (#3405)
    * feat: persist client last online and expose API
    
    * feat(ui): show client last online in table and info modal
    
    * i18n: add “Last Online” across locales
    
    * chore: format timestamps as HH:mm:ss
  • Add all-time traffic for inbounds and clients (#3387)
    * feat(db): add allTime field to Inbound and ClientTraffic models
    
    * feat(inbound): increment all_time for inbounds and clients on traffic updates
    
    calculate correct all_time traffic on migrate command
    
    * feat(ui): show all-time traffic column for inbounds and its clients
    
    * i18n: add pages.inbounds.allTimeTraffic label across locales
    
    * Add All Time Traffic Usage in inbounds page top banner
  • Created / Updated fields for clients (#3384)
    * feat(backend): add created_at/updated_at to clients and maintain on create/update
    backfill existing clients and set updated_at on mutations
    
    * feat(frontend): carry created_at/updated_at in client models and round-trip via JSON
    
    * feat(frontend): display Created and Updated columns in client table with proper date formatting
    
    * i18n: add pages.inbounds.createdAt/updatedAt across all locales
    
    * Update inbound.go
    
    Remove duplicate code
  • chore: clients comment improvement
    - use default ant components instead custom styles
    - remove comments in inbound info modal (duplicates information)
    - enhance tooltip usage
  • Code refactoring (#2865)
    * refactor: use vue inline styles in entire application
    
    * refactor: setting row in dashboard page
    
    * refactor: use blob for download file in text modal
    
    * refactor: move all html templates in `web/html` folder
    
    * refactor: `DeviceUtils` -> `MediaQueryMixin`
    The transition to mixins has been made, as they can update themselves.
    
    * chore: pretty right buttons in `outbounds` tab in xray settings
    
    * refactor: add translations for system status
    
    * refactor: adjust gutter spacing in setting list item
    
    * refactor: use native `a-input-password` for password field
    
    * chore: return old system status
    with new translations
    
    * chore: add missing translation