Dependabot's bump fails the build: vite.config.js defined the global apiRoot
as a template literal evaluated on every read (the backend address lives in
localStorage and the address dialog changes it), and Vite 5+ only accepts a
literal in define. The global is a getter on window now, installed by a plugin
imported first in main.js, returning the same expression on every read; the
call sites are untouched.
The card header put the server name, the subscription name and the group tag
on one flex row: a long tag such as "PROXY - 负载均衡 (2)" squeezed the name
into two lines while staying centred against them, and the subscription name
wrapped wherever the row broke. Bulma's small message also pads the header
and the body differently, so a gap opened under the title and the body text
sat a step further in.
The name takes the row, a tag that does not fit drops to its own line, the
subscription name always sits under both, and header and body share their
padding.
The card asked for 65rem. The root font is 0.9em up to 1400px and 16px above
it, so on any wider viewport — a 200% display scaling or a zoomed-out window
gets there — 65rem is 1040px while the wrapper Buefy sizes the dialog with is
capped at 960px: the card ran 80px past it and the close button, which sits on
the wrapper's corner, ended up in the middle of the header. 60rem is 960px at
the 16px root and never wider than the wrapper.
"HOST(2) (info)" becomes "HOST (2) · info". The handle that brings the status
sidebar back was a 36px glyph in a shadowed box, the largest control on a
phone screen; it is a 32px target with a tooltip now.
The navbar and the login dialog showed logo2.png, a raster wordmark that
blurred on 2x displays and needed a colour filter to survive the dark theme.
The brand is now the circular icon as SVG with the name as text, so it
renders sharp at every size and takes the navbar's colour in both themes; on
narrow phones the name goes first, then the icon.
The favicon is the SVG with a multi-size .ico fallback, and the PWA-era PNGs,
the tile icon and the Windows installer icon are rendered from the same file.
Without --log-file the viewer said "log printed to console, please see log in
console", which the Windows service, the launchd job and every "log to
console" setup cannot do. The logger now also keeps its last 4 MiB in memory
and the viewer reads that tail when there is no file; the lines carry the
same timestamp and level prefix as the file adapter's.
The log area also gave way to nothing: at 50vh a short window pushed the
filters and the export button below the fold with only a scrollbar to hint at
them. It now shrinks so the footer stays visible.
lucide-static's stylesheet declares eot, woff2, woff, ttf and a legacy SVG
font for all 2112 icons, so Vite copied every format into web/ and the
embedded binary grew from about 26 MB to 48 MB; the SVG font alone is 20 MB of
glyph outlines. The interface uses 44 icons.
A Vite plugin (gui/build/lucide-subset.mjs) scans src/ for icon names — class
usage, icon props, dialog options and the Buefy pack's internalIcons — subsets
lucide.woff2 to those glyphs with subset-font and serves the result as a
virtual stylesheet with the 8 KB font inlined. A name the font does not have
fails the build naming it, where it used to render an empty box.
lucide-static's font CSS references all five webfont formats (eot, ttf,
svg, woff, woff2), so Vite emitted ~23 MB of icon fonts into the web panel;
the SVG font alone was ~20.6 MB. All of them render the same glyphs.
scripts/lucide-font.mjs now regenerates src/assets/lucide-font.css from the
upstream CSS with a woff-only @font-face (woff is supported by every
browser since IE9) and runs automatically via the prebuild/preserve hooks,
so a lucide-static upgrade stays in sync. The build output drops from
~23 MB of font files to a single ~414 KB woff while keeping all icon
classes.
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.