Commit Graph
12 Commits
  • feat: Real-time Outbound Traffic, UI Improvements & Fix (#3629)
    * Refactor HTML and JavaScript for improved UI and functionality
    
    - Cleaned up JavaScript methods in subscription.js for better readability.
    - Updated inbounds.html to clarify traffic update handling and removed unnecessary comments.
    - Enhanced xray.html by correcting casing in routingDomainStrategies.
    - Added mobile touch scrolling styles in page.html for better tab navigation on small screens.
    - Streamlined vless.html by removing redundant line breaks and improving form layout.
    - Refined subscription subpage.html for better structure and user experience.
    - Adjusted outbounds.html to improve button visibility and functionality.
    - Updated xray_traffic_job.go to ensure accurate traffic updates and real-time UI refresh.
    
    * Refactor client traffic handling in InboundService
    
    - Updated addClientTraffic method to initialize onlineClients as an empty slice instead of nil.
    - Improved clarity and consistency in handling empty onlineUsers scenario.
    
    * Add WebSocket support for outbounds traffic updates
    
    - Implemented WebSocket connection in xray.html to handle real-time updates for outbounds traffic.
    - Enhanced xray_traffic_job.go to retrieve and broadcast outbounds traffic updates.
    - Introduced MessageTypeOutbounds in hub.go for managing outbounds messages.
    - Added BroadcastOutbounds function in notifier.go to facilitate broadcasting outbounds updates to connected clients.
    
    ---------
    
    Co-authored-by: lolka1333 <test123@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 ldap component (#3568)
    * add ldap component
    
    * fix: fix russian comments, tls cert verify default true
    
    * feat: remove replaces go mod for local dev
  • max port to 65535 (#3536)
    * add EXPOSE port in Dockerfile
    
    * fix: max port 65 531 -> 65 535
    
    * fix
    
    ---------
    
    Co-authored-by: mhsanaei <ho3ein.sanaei@gmail.com>
  • new: subJsonEnable
    after this subEnable by default is true
    and subJsonEnable is false
  • chore: implement 2fa auth (#2968)
    * chore: implement 2fa auth
    
    from #2786
    
    * chore: format code
    
    * chore: replace two factor token input with qr-code
    
    * chore: requesting confirmation of setting/removing two-factor authentication
    
    otpauth library was taken from cdnjs
    
    * chore: revert changes in `ClipboardManager`
    
    don't need it.
    
    * chore: removing twoFactor prop in settings page
    
    * chore: remove `twoFactorQr` object in `mounted` function
  • 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