Commit Graph
4 Commits
  • fix(sub): preserve external VLESS encryption in Clash subscriptions (#6576)
    * fix(sub): preserve external VLESS encryption in Clash subscriptions
    
    Copy non-empty, non-none encryption from parsed external VLESS settings,
    matching local proxy export. This prevents merged Clash/Mihomo subscriptions
    from losing the encryption parameters of externally added nodes.
    
    Cover encryption normalization and omission, plus merged YAML from pasted
    links and HTTPS subscriptions containing plain or Base64 share-link lists.
    
    Validation: regression cases fail before the fix and pass after it; the full
    subscription package and go build ./... pass. Four unrelated packages still
    fail on Windows, with the same failures reproduced using the original code.
    
    Refs: MHSanaei/3x-ui#6572
    
    * test(nodes): wait for chart effects in history panel assertions
    
    The DOM can commit its accessible labels before Sparkline updates the refs used by uPlot range callbacks. Wait for the existing assertions together so the test does not read the empty-data range.
    
    Reproduced the original CI failure locally on attempt 5. The fixed test passed 12 consecutive runs; lint, format and TypeScript checks pass. The full frontend suite passed 1607 of 1608 tests, including Storybook. The unrelated input-number guard fails on Windows because execFileSync cannot launch the extensionless oxlint shim (ENOENT); invoking oxlint.cmd reports all three expected diagnostics.
  • fix(sub): drop external Clash shadowsocks nodes the panel cannot express (#6508)
    * fix(sub): gate external Clash shadowsocks links like the inbound path
    
    clashProxyFromExternal returned as soon as it had built the ss proxy, so an
    ss:// link skipped applyTransport/applySecurity: a node whose tcp/http
    obfuscation Clash cannot express was emitted anyway (mihomo then opens a plain
    shadowsocks stream at a server that requires the header, and the node silently
    never connects), and security=tls was silently stripped. The inbound path runs
    both helpers for every protocol, so the two Clash importers disagreed about the
    same node.
    
    * fix(sub): count a dropped external link in the quota header
    
    The client email that feeds AggregateTrafficByEmails was recorded only when a
    proxy came out of the link, so a node Clash cannot represent also vanished from
    the Subscription-Userinfo header of every other node in the same subscription —
    the header reported another client's numbers as the whole subscription's. The
    inactive-link branch already counted an email without a proxy; make that
    unconditional so the header describes the subscribers, not the representable
    subset of their nodes.
    
    * docs(sub): describe clashProxyFromExternal by what it does, not by protocol
    
    The protocol list in the doc comment went stale the moment the shadowsocks
    branch stopped returning early, and it restated what the switch already says.
  • refactor(frontend): move form-item hints from extra to tooltip
    Switch reality target, node options, and WARP auto-update-IP hints from
    inline extra text to label tooltips for a cleaner form layout.
  • feat(sub): per-client external links and remote subscriptions
    Add a Links tab to the client form for attaching third-party share
    links and remote subscription URLs per client. They are merged into
    the client's raw/JSON/Clash subscription output: links are emitted
    verbatim and parsed for JSON/Clash; subscription URLs are fetched
    (cached, with a short timeout) and their configs merged in.
    
    i18n keys added across all 13 locales.