Commit Graph
4 Commits
  • fix(warp): harden API client and frontend, bump to v0a4005
    Backend:
    - check HTTP status on every Cloudflare API call so error bodies don't
      get parsed as success
    - replace unchecked type assertions with comma-ok form (no more panics
      when Cloudflare returns an error response)
    - return real errors when license/id/token fields are missing instead
      of swallowing the failure
    - guard SetWarpLicense against an empty errors array
    - 15s timeout on the shared http.Client
    - build all request bodies and persisted state with json.Marshal
    - bump API path to v0a4005 and CF-Client-Version to a-6.30-3596 to
      match the current Cloudflare WARP client
    
    Frontend (warp_modal.html):
    - remove stray </a-form-item> closing tag
    - declare config/peer with const and null-check before dereferencing
    - guard addOutbound/resetOutbound against missing warpOutbound
    - rename getResolved -> getReserved (the array it builds is "reserved")
    
    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
  • 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