The backend now reports an up-to-date list as a result, so the dialog shows an
info toast with the version rather than "could not update GFWList: … is up to
date".
A virtual scroller needs one fixed row height, so every log line was clipped at
the screen edge and a phone showed a column of timestamps with no messages. On
a narrow screen the tail is rendered plainly with the lines wrapped, and the
header says how many older lines are hidden.
The About text also still pointed at the issue tracker, which upstream has
closed in favour of discussions.
Auth recovery reloads the page, so nothing ever filled the queue and nothing
called its retry function; the two modal imports it needed were unused too.
Also read the token with getItem instead of hasOwnProperty on localStorage.
The outbound select rendered blank because nothing was selected, which reads as
an empty list — the reason two discussions report that a custom inbound cannot
be added at all (v2rayA/v2rayA #1907, #1894, #1926). It now preselects the
first outbound group, the fields sit on a grid instead of wrapping into a row
with the Add button wedged against the select, and the optional username and
password of the inbound have their own fields, with a lock on the rows that
carry credentials.
node.vue read coreVersionValid from localStorage when it was created, and the
/version response of the current load only wrote localStorage afterwards. An
upgrade that made the core incompatible therefore showed nothing until the page
was reloaded, and a fixed one kept the warning for one more load. The parent
owns the value now and passes it down.
- a shadowsocks userinfo arrives percent-escaped, and js-base64 decoded those
escapes as data, so opening a node for editing rewrote its password;
- the simple-obfs path is exported as obfs-uri, which the dialog did not read,
so saving an edited node dropped it;
- a plain trojan ws/h2 node lost its Host header, because the model never read
the host parameter although the serializer writes it;
- the plugin options were decoded twice, which turned %2F into a separator and
threw on a literal percent sign;
- the selection is remapped by what a row points at instead of its id, which a
subscription update reassigns;
- the burger set its display for every width, so a desktop window showed it
next to the full menu.
Truncating the navbar tags with display: inline-block blockified them as
flex items, so their text dropped to the baseline instead of the middle of
the pill. Keep Bulma's inline-flex centring and truncate an inner span
(7px above and below the text at every width now). The wordmark stays
40px tall next to them, which crowded the row; 34px below 769px, 26px
below 381px, and below 331px the tags and the menu button take the row.
reset.scss put filter: drop-shadow(0 0 5px #000) on every non-hovered
.modal-close, which on the light theme drew a black halo around the glyph.
The brand row is a flex row whose items do not shrink, so below ~400px the
status and proxy-group tags pushed the burger past the right edge and the
menu could not be opened at all; let the tags shrink with an ellipsis and
give the burger a fixed basis. Verified at 320/360/412/480: no horizontal
overflow, the burger is in view and opens the menu.
The navbar burger was still Bulma's three spans, the only control not drawn
from the icon set; render it through Buefy's burger slot as the Lucide menu
glyph (x when open) with an aria-label and the expanded state. On phones the
toolbar wrapped into three ragged rows because Bulma's per-field margins
fought the flex layout: stack the two groups as full-width rows with one
0.5rem gap, actions first and create/import right-aligned under them. The
close glyph was 0.55 black on a light head; darken it.
The dialog close button drew Bulma's two white bars, invisible on the light
card head; colour them from the text colour (19:1 light, 9.6:1 dark) and add
a hover surface. Four different backdrop values were in the tree, so a light
card sat on a near-black overlay that read as a shadow; keep one value in
App.vue and drop the per-component copies. The core-version notice becomes a
b-notification inside the content column instead of an edge-to-edge message.
In the collapsed navbar the language and account menus were clipped after
one row, because Bulma gives that menu overflow: auto with a max-height;
let it overflow and give the dropdown its own surface, border, shadow and
bounded scroll.
Bulma positions .modal-close fixed to the viewport, so the close button of
every dialog sat in the corner of the screen instead of the dialog; make it
absolute inside Buefy's .animation-content, which now shrinks to its card.
With mobile-modal dropdowns off, the collapsed navbar's language and
account menus floated over the page; anchor them under their row, capped at
the viewport width with their own scroll. The phone burger was a 3.5rem box
whose bars kept the scaled root font; give it a 48px square and explicit
bars.
Buefy turned every dropdown into a centred modal with a backdrop below
769px, so the account and language menus opened as dialogs; the close
button of a dialog is fixed to the viewport while Bulma floats the card
in the middle, so it sat far above the card it closes; repeated clicks on
a failing action stacked a screenful of identical toasts because every
call passed queue: false.
Keep dropdowns as menus on phones, give dialogs the full screen so the
close button lands on the card's top-right corner, and queue notices
(the per-call queue: false is gone). Inline Lucide glyphs are centred on
the text instead of sitting on the baseline, and the brand row keeps px
sizes under 768px, where the root font scales to 0.8em.
Every load and every remount showed the "service is running" toast, and a
core version mismatch showed twice: the persistent banner in node.vue and
a sticky red toast over it. Show the welcome once per browser session
(again when a new version is found) and leave the mismatch to the banner.
Icons came from a home-made icon font (32 glyphs) plus Material Design
Icons for Buefy's internals and a few controls. Both are replaced by the
Lucide webfont from lucide-static: it is registered as Buefy's default
pack (with internal icon mappings for check, alert, chevrons, eye, close,
loading), every inline <i> uses a Lucide class, the sidebar handle image
becomes an icon, and the iconfont directory, its two @imports, @mdi/font
and webpack-iconfont-plugin-nodejs are removed.
Backend PR #1959 adds errorCode and params to FAIL responses. A
backendMessage() helper picks $t("backend.<code>") when the code is known,
interpolating the params (HTML-escaped, since Buefy toasts render through
v-html) and the English message as {message}; unknown codes fall back to
the message as before. Every toast that showed res.data.message goes
through it, and the two places that matched backend text ("invalid
config", "the last request is being processed") check the code first
with the text as fallback for older backends. The backend section has
32 keys in all six locales.
The group tag's inline-block wrapper added a line box that pushed the
tag a pixel or two below the status tag beside it; make the wrapper an
inline-flex row centred on the cross axis.
logo2.png is a dark-blue wordmark on transparent (about 1.6:1 against
the dark navbar and login dialog). Invert and hue-rotate it under the
dark theme so it reads as a light blue; the light theme is untouched.
reset.scss scales the root font to 0.8em below 768px, so the previous rem
sizes shrank again and the create/import/ping buttons ended up ~24px tall
with ~9px text. Size them in px (14px text, ~36px tall) under 768px.
The "connected" marker on a tab was a b-icon hidden by CSS whose glyph is
styled at 32px; on some phones it rendered as a stray character between
the tabs. Mark the tab through header-class instead and colour the label.
Toolbar buttons shrank to 0.65rem under 450px (with the root font already
scaled down) because everything had to fit one row; the toolbar wraps now,
so use 0.85rem. Buefy's toast layer started at the viewport top and
covered the fixed navbar and, on phones, the toolbar buttons under it;
start it below the navbar.
Below 769px Buefy renders each row as a card. A long host name wrapped
over three lines and the checkbox took a line of its own, so one card was
about 350px tall and a phone screen showed one and a half nodes. Keep
the address on one line with the tail visible, and put the checkbox at
the right end of the ID line. A card is now about 200px.
While stuck to the top the toolbar's background was rgba(0,0,0,.05/.1),
invisible on the dark theme, so the table rows scrolled through the bar
and showed between and behind the buttons (disabled buttons are half
transparent). Replace the inline colour with classes: a light surface
with a shadow in the light theme, the dark surface token in dark-theme.scss,
one shade darker while rows are selected.
Backend PR #1959 makes POST /api/import take "kind" so the server no
longer guesses from the URL scheme. The import dialog gets a "server link
/ subscription address" toggle whose value is sent as kind; the batch
dialog and the server edit form always send "server". An older backend
ignores the field and keeps guessing. Keys for the toggle are added to
all six locales and the combined prompt key is dropped.
Add every key en.js has and ko.js lacked (a hundred-plus keys for
the settings, TUN, custom inbound, proxy group, DNS and server form
sections), translate values that were still the English text, drop
keys en.js no longer has, and keep {placeholder} names and key order
identical to en.js. Korean throughout.
Add every key en.js has and pt-br.js lacked (a hundred-plus keys for
the settings, TUN, custom inbound, proxy group, DNS and server form
sections), translate values that were still the English text, drop
keys en.js no longer has, and keep {placeholder} names and key order
identical to en.js. Brazilian Portuguese throughout.
Add every key en.js has and ru.js lacked (a hundred-plus keys for
the settings, TUN, custom inbound, proxy group, DNS and server form
sections), translate values that were still the English text, drop
keys en.js no longer has, and keep {placeholder} names and key order
identical to en.js. Russian throughout.
Add every key en.js has and fa-ir.js lacked (a hundred-plus keys for
the settings, TUN, custom inbound, proxy group, DNS and server form
sections), translate values that were still the English text, drop
keys en.js no longer has, and keep {placeholder} names and key order
identical to en.js. Persian throughout.
Around 120 user-visible strings bypassed vue-i18n (server form labels
and placeholders, table headers, tab titles, dialog labels, option texts,
a few toasts), so every locale showed them in English, and several
messages were vague: generic "SUCCESS"/"FAIL" toasts and raw backend
text with no context. Route the strings through $t() reusing the keys
that already existed under configureServer.*, add the missing keys to
en.js and zh.js, give the common actions (import, connect, update
subscription, save settings, add/delete proxy group, start/stop core)
their own success and failure texts with the backend detail in
{message}, and drop the keys nothing references any more. Other locales
follow in the next commits.
axios 0.28+ serializes object params as touch[id]=… while the backend
unmarshals ctx.Query("touch") and ctx.Query("whiches") as JSON, so share,
latency tests and the server edit form failed with "bad request". Install
a params serializer that JSON-encodes object values as 0.21 did.
The GUI has been built with Vite since the vue-cli setup was replaced, but
vue.config.js, babel.config.js, public/index.html, registerServiceWorker.js
and eight dependencies from that setup were still in the tree; Vite never
read them and yarn lint failed on every file because babel.config.js
named the uninstalled @vue/cli-plugin-babel/preset. Remove them, let
@babel/eslint-parser run without a config file, and bump axios to the
0.30 line (security fixes; dependabot #1656). webpack-iconfont-plugin-nodejs
stays because the checked-in font preview still names it.
yarn lint now executes: 0 errors, 1186 warnings, all pre-existing.
toggleNodeInGroup built the replacement member list from the view filtered
to the selected outbound, so adding a node to another group sent a
one-element list and the backend wiped that group; build it from the full
connected list. checkedRows kept references to row objects that a /touch
refresh replaced; re-point the selection at the new rows. loadBalanceValid
was a computed reading localStorage with no reactive dependency; it is now
passed down from the version response. modalSharing duplicated node.vue's
ClipboardJS on the same selector, copying twice. The theme toggle set
theme-dark on <html> but no rule painted it, leaving a white canvas. The
status pill had a fixed width that "Waiting for network" overflowed. The
tab title showed "v2raya:80" for a relative backend address, and
backendPort.js overwrote a stored absolute address on every load;
modalPortWhiteList derived port 80 from a relative apiRoot. The log dialog
glued the first line of each poll onto a phantom empty row and re-requested
the same range when a poll was slow; disconnectNode swallowed errors and
savePickerChanges restarted the core a second time.
Plain trojan nodes with a WebSocket or HTTP/2 transport lost host and path
on save because generateURL emitted them only under the trojan-go branch.
The hysteria2 parser kept only the userinfo username although the backend
treats user:pass as the whole auth string. TUIC, AnyTLS and Juicity links
carry allow_insecure (and AnyTLS minIdleSession) that the models had no
field for, so editing an imported node dropped them; the form now shows
them. TUIC emits the camelCase pin parameters that ExportToURL uses.
The WireGuard tab never produced a link the backend accepts: the model had
no protocol key, so generateURL returned null and Save was a silent no-op,
and both the parser and the generator used a layout (public key as
userinfo, privateKey/localAddress/persistentKeepalive parameters) that
kernel/serverObj/wireguard.go does not read. Use its layout: private key
as userinfo, publicKey/address/keepAlive/mtu/allowedIPs/preSharedKey as
parameters.
The vmess JSON carried the uTLS fingerprint as "fp" while the Go struct
tags it "fingerprint", so the value was dropped on save and lost when an
existing node was edited. Emit "fingerprint" and accept both on load. A
node name containing a literal "%" threw URIError in decodeURIComponent
and opened an empty form; keep the raw name when decoding fails.
The axios error interceptor's WebKit/localhost branch returned undefined,
resolving the failed request so callers dereferenced a missing response;
reject instead. handleGroupChanged dropped networkPaused when refreshing
the node table.
Saving a setting that restarts the core is cancelled by waitingConnected
once the core reports connected, which is the normal path; loading.close()
sat in .then only, so the full-page spinner stayed. The read-only server
view converted every select through its matching option and threw when a
subscription node carried a value the option list does not offer.
- Latency test: a network error left the selected rows on "testing..."
forever; reset them in .catch.
- Relative times only knew zh and en from localStorage; use the vue-i18n
locale and load the dayjs locales for fa, ru, pt and ko.
- i18n: an unknown stored _lang silently fell back to English; ignore it
and detect from the browser. Set <html lang> to the chosen locale.
- networkInspect polled err.response.status on plain network errors
(TypeError every 3 s); the GFW list update spinner never closed on a
rejected request; the routing dialog threw in render when a saved rule
named a .dat file that no longer exists.
- axios: the "https frontend talking to http backend" branch fired for
every error on HTTPS deployments because parseURL fabricates http:// for
a relative apiRoot; require an absolute http:// backend URL, and do not
dereference the parsed URL when err.config is absent.
- The status tag is focusable and announced as a button but only reacted
to clicks; Enter and Space now activate it.
The form wrote the SNI as peer=, but kernel/serverObj/anytls.go reads only
sni when building the outbound, so a node created or edited in the GUI
connected without SNI. The parser already accepts both names.
The create/import group was absolutely positioned inside the sticky
toolbar. With no rows selected the left group is display: none, the
toolbar collapsed to its padding, and the two buttons overlapped whatever
followed, most visibly the welcome card on an empty page. Lay both groups
out as one flex row; below the tablet breakpoint Buefy nests them in
.field-body > .field.is-grouped, so those are stretched as well.
outboundGroupPanel had two hard-coded Chinese strings and a dead
$t() || fallback (vue-i18n never returns a falsy value). zh.js lacked
subscription.autoSelect, so the checkbox label fell back to English.
The DNS dialog forced min-width: 680px, which beats max-width: 95vw and
made the page scroll sideways on phones; cap it at the viewport and let
the grid columns shrink.
The viewport meta disabled pinch zoom.
Buefy toasts and snackbars render their message with v-html, and most
call sites pass res.data.message straight through. Backend error strings
embed data from imported links (node remarks, addresses), so a crafted
share link or subscription could inject markup into the GUI origin, where
the token sits in localStorage. Escape the message once in the response
interceptor.
The request interceptor attached Authorization to every request; the
backend-address dialog probes the newly typed address with /api/version
before switching, which sent the current token to whatever host was
entered. Attach it only to requests under apiRoot; /api/version needs no
auth anyway.
$remount mounted a new root without destroying the old one, so every
logout/login left the previous App's WebSocket (which reconnected itself
on close), scroll listener, clipboard hook and matchMedia handler alive.
Destroy the old root, detach onclose before closing, and register the
scroll handler as a method so beforeDestroy can remove it; the debounce
timer was also never stored, so clearTimeout cleared nothing.
The import request had no in-flight guard and used the 60 s axios default
while the backend allows a subscription fetch 90 s: a second Confirm or
Enter imported twice and a slow subscription aborted client-side without a
message while the backend still stored it. Ignore repeats, show a loading
state, raise the timeout and report a client-side abort.
The language menu label defaulted to 中文-中国 from localStorage while
vue-i18n picked the browser language; read $i18n.locale instead.
handleGroupChanged tested $refs.nodeRef.created, a lifecycle option that
is never an instance property, so the node table never refreshed after a
proxy-group change. The setting dialog sent an empty tunBypassInterfaces
whenever the interface list had not been fetched (non-TUN modes), wiping
the stored value on save. modalSharing registered a copy of node.vue's
QR handler on the shared file input, never removed it, and called a
method it does not have; it also read this._type for a prop named type.
The username computed decoded the JWT without try/catch, so a corrupt
token threw during render and blanked the app; it is also interpolated
into v-html in the account menu, so the menu now gets an escaped copy.
c69f74da replaced the generateURL calls for ss, ssr, trojan, juicity, tuic,
hysteria2, http, socks5 and anytls with hand-written string building. That
code used btoa, which throws on any non-Latin1 character, and the async
submit handler swallowed the exception, so saving an SS or SSR node with a
Chinese remark or password did nothing. It also dropped fields the form
edits: ss plugin options, trojan transport and trojan-go settings, tuic
disable_sni/alpn/udp_relay_mode, juicity pinned_certchain_sha256.
Route all protocols through generateURL again, which encodes with js-base64
and emits every field, and carry the v2raya-backend parameter there for ss
and trojan. SIP002 userinfo is emitted as base64url because the backend
decodes only that alphabet.
The same commit reduced the ss parser to plugin and plugin_opts, which no
form field reads, so an existing plugin node opened blank. Expand the
options back into obfs, host, path, mode, tls and impl.