327 Commits
Author SHA1 Message Date
Zakk 62e90b6b2f fix(gui): on a phone the docs sit in the app bar's menu, the wordmark stays 2026-09-22 02:12:32 +10:00
Zakk f070c32936 feat(gui): subscriptions get their own page; on a phone the docs are a button in the app bar
The proxies page listed the subscriptions above the nodes behind a fold, and on
a phone its toolbar, the fold, the node toolbar and the group row stacked into
a wall of buttons. Subscriptions are a destination of their own now: the cards,
Auto-update and Import a subscription, sharing the proxies model. The bottom
bar keeps Material's five (dashboard, proxies, subscriptions, settings, logs);
on a phone the docs are a button in the app bar next to the groups and the
menu, and under 440 px the bar shows the logo without the wordmark so the
status pill and the three buttons fit (measured at 320 to 430; the wordmark is
back from 440, where it has room). The rail and the drawer list all six. The
quick-start docs say so in six locales.
2026-09-22 02:01:41 +10:00
Markson Hon b9f97d7f4d Merge branch 'main' into drawer-fold
Signed-off-by: Markson Hon <50002150+MarksonHon@users.noreply.github.com>
2026-09-21 07:43:57 +08:00
Markson Hon 72c40647a8 Merge pull request #2027 from Zakkaus/eggs
feat(gui): two easter eggs on the logo: the M3 expressive shapes, and the mirrored layout
2026-09-21 07:42:24 +08:00
Zakk 70f2983a25 fix(gui): the logo fills 72% of its frame, so the rail's is 40 dp again and the drawer's 35 2026-09-21 02:54:43 +10:00
Zakk 0f3d97d14a fix(gui): the drawer's logo is 36 dp, not 28 2026-09-21 02:47:06 +10:00
Zakk 815da9f431 fix(gui): the fold buttons take the version's outline colour 2026-09-21 02:43:24 +10:00
Zakk a8aebd89d1 feat(gui): the fold and unfold buttons carry the burger with the arrow, pointing the way the drawer goes 2026-09-21 02:27:08 +10:00
Zakk 61da17fde2 feat(gui): the fold button sits by the version, the unfold button at the rail's foot 2026-09-21 02:23:33 +10:00
Zakk 6c481da971 feat(gui): the drawer folds to the rail
A menu button by the brand folds the standard drawer; the rail that
replaces it is the one the medium window already uses, with the same
menu button at the top to unfold. The choice is kept in localStorage.
2026-09-21 02:20:12 +10:00
Zakk ad1d3001bc feat(gui): the mirror comes with the sixth tap, when the frame is gone again 2026-09-21 02:04:30 +10:00
Zakk 833d5655c6 feat(gui): every fifth tap on the logo mirrors the layout, as the RTL locales see it 2026-09-21 02:01:58 +10:00
Zakk 94764684da feat(gui): the logo's frame takes the next M3 expressive shape on every tap 2026-09-21 01:35:27 +10:00
Zakk 58e6faaf72 refactor(gui): the custom seed is picked with Vuetify's colour picker
The theme panel had its own hue slider and hex field for a custom seed.
v-color-picker in hex mode gives the canvas, the hue slider and the hex
input, so the slider, the hex parsing and their styles go.
2026-09-21 01:17:09 +10:00
Zakk a7afb19ff6 fix(gui): one name and two places for the RoutingA rules; a clean lint
RoutingA could be opened from the dashboard's splitting tile (labelled
"RoutingA"), the proxies page's toolbar ("RoutingA rules"), the settings
row ("RoutingA rules" since the previous commit) and the tutorial. The
label is "RoutingA rules" everywhere it remains, and the proxies page
loses its button: rules are not a property of the node list, and the
dashboard tile that chooses the splitting mode and the settings row are
where a user looks for them.

The lint carried five warnings into every CI run: two unused imports in
AppShell.vue, one in a spec, a let that never changes, and v-html in the
log view, whose input highlight.js escapes.
2026-09-20 17:19:10 +10:00
Zakk 3364953513 feat(gui): documentation inside the app
The documentation site's domain has expired and its pages described a
2021 v2rayA. The page now carries its own docs, written against the
current code and shipped with the build, so what a user reads matches the
binary they run: quick start, transparent proxy, routing rules, inbounds
and sharing, flags and environment, troubleshooting. English and
Simplified Chinese; the other locales read the English text and say so.

The sections are Markdown under gui/src/docs/<locale>/, compiled to HTML
at build time by a small vite plugin around marked (a devDependency; the
bundle carries no parser) and loaded on demand, so the first load does not
grow. Headings get ids from their text. The flag table is not written by
hand: GET /api/params reads conf.Params' struct tags (id, short, default,
desc) through reflection, the same tags gonfig parses, and the page renders
it, so a new flag documents itself.

"#docs" and "#docs/<section>" open the page; the RoutingA dialog's help
button, the About page and small book icons in the settings sections and
the inbound dialogs point there instead of at the dead site or the wiki.
The navigation gains a fifth destination.
2026-09-20 14:45:55 +10:00
Zakk ce771911b5 chore(gui): the Buefy and Bulma GUI is gone
App.vue, the node page, every modal, the Vuex store, the axios and
Buefy plugins, the SCSS and the helper scripts of the old GUI are
deleted; nothing imports them and no dependency of theirs remains.
2026-09-19 23:17:06 +10:00
Zakk eb27dc8981 feat(gui): the Material shell — drawer, rail and bottom bar, app bar, page header, hosts
Four destinations (dashboard, proxies, settings, logs) in a standard
drawer from 1200 px, a rail below, a navigation bar on phones; the core
state and the group chip in every header; theme, language and account
menus; the theme panel with seed swatches and a hue slider; hosts for
banners, snackbars, dialogs and the loading bar; the traffic plot.
2026-09-19 23:17:05 +10:00
Zakk 619510552f refactor(gui): dialogs close by event, state crosses app instances through the store
Buefy 3 mounts every programmatic dialog, loading overlay and snackbar in
its own application, and Vue 3 no longer skips abstract components when
resolving $parent, so a dialog's $parent is the transition around it:
$parent.close() throws, and $parent.$parent.runningState no longer reaches
App. This commit moves those seams onto explicit contracts:

- Every dialog closes with $emit("close"). Buefy's Modal listens for it on
  a programmatic component; the inline b-modal hosts in App.vue, node.vue
  and modalCustomPorts.vue listen for it on their child. The card head
  gets a Bulma .delete button for it, and the library's own corner button
  is off (defaultModalCanCancel); the About dialog, whose content is raw
  HTML, gets the same button wired by hand after it renders.
- Every component declares its emits. Without the declaration Vue 3 also
  passes the listener through to the root element, so <node-list @input>
  received every native input event bubbling out of the node page and
  overwrote App's running state with an Event.
- The two dialogs that changed the navbar's running text through
  $parent.$parent now commit RUNNING to the store; App watches the store
  field into its data and mirrors the data back, so the data stays the
  source of truth and a repeated commit is still a change.
- session.js registers every programmatic instance that outlives
  app.unmount() — modal and loading handles through openModal/openLoading,
  snackbars in axios.js — and restart() closes them first; instances that
  closed themselves are dropped on the next registration. Buefy 3 exports
  SnackbarProgrammatic and friends as classes bound to an app, so
  module-level code takes the root app's $buefy instead of calling the
  class. loading.open() reads options.onClose on close, so the wrapper
  always passes an options object; b-loading takes model-value, not
  active.
- b-message declares a click event it never emits, so the sidebar cards'
  click moved to a wrapping element.
- CusBInput, a 2019 copy of Buefy's Input, is gone; the three number
  inputs are b-input, which has the same v-model and checkHtml5Validity.
- The node table component is NodeList (vue/multi-word-component-names),
  and the v-html in the user menu sits on a span rather than the item
  component.
- Buefy 3 pins the table sort icon to the header cell's right edge, over a
  short label; it goes back after the label. The head's close glyph is
  drawn in the text colour like the old corner button was.
2026-09-19 15:36:44 +10:00
Zakk e06598542d refactor(gui): templates in Vue 3 and Buefy 3 syntax
Vue 3 removes .sync, the slot and slot-scope attributes, the .native
modifier, filters and the value/input contract for v-model on components;
Buefy 3 renames its two-way props to modelValue and no longer emits input
from Select, Switch and Tabs. Nothing here changes what a template
renders or sends:

- b-modal :active.sync -> v-model; b-table :checked-rows.sync and
  :current-page.sync -> v-model:checked-rows / v-model:current-page;
  b-sidebar :open -> :model-value.
- slot="…" -> <template #…>; the three <div slot="trigger" slot-scope>
  are wrapped in a template, as # only goes on templates and components.
- @event.native -> @event, which Buefy 3 passes through to the root
  element; b-tag declares its own click that fires on the inner span
  only, so the status tags' handlers moved to a wrapping span to keep
  the whole tag clickable.
- b-select / b-switch / b-tabs @input -> @update:model-value.
- <node v-model="runningState"> -> @input, since Vue 3 compiles v-model
  on a component to update:modelValue and node.vue emits input.
- beforeDestroy/destroyed -> beforeUnmount/unmounted; the unix2datetime
  filter is a method; $set is a plain assignment.
- highlightLog renders with h(); parent: this is dropped from the
  programmatic modal calls — Buefy 3 spreads every parameter into the
  Modal props and the unknown one aborted the mount.
- b-message :active="true" was a dead attribute.
2026-09-19 15:36:44 +10:00
Zakk 6a85f46641 feat(gui): tun is the built-in TUN; drop the TinyTun-only controls
The transparent-proxy option reads "tun" and is enabled by the version
endpoint's tunSupported flag. The bypassed-interfaces picker and the
process-exclusion backend selector go away with the settings behind them;
the interface-list fetch and its state go with the picker. The route
script and process exclusion dialogs stay, renamed, with copy that no
longer refers to a TinyTun process; the tooltips describe what the
built-in TUN does and its known limitation on Windows and macOS. The log
viewer no longer classifies a [tinytun] source. All six locales updated;
every removed key has no remaining reference.
2026-09-19 10:34:56 +10:00
Zakk 1d4afae43e fix(gui): keep the log dialog's close button on the card at wide viewports
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.
2026-09-18 16:06:18 +10:00
Zakk b1fd2c1215 feat(gui): use the vector icon for the brand, the favicon and the installer
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.
2026-09-18 15:44:06 +10:00
Zakk 15c727e1e1 fix(log): show the log in the web viewer without --log-file, keep the footer on screen
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.
2026-09-18 15:29:18 +10:00
Zakk d82e7e3269 fix(gui): tell the user the GFWList is current instead of failing
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".
2026-09-18 06:39:00 +10:00
Zakk f126526af0 fix(gui): put the log footer controls on one baseline
The selects, the switch and the export button each had their own height, so
the row read as three misaligned groups.
2026-09-18 06:26:22 +10:00
Zakk 99d0f1623f feat(gui): export the log from the dialog
Reading a long log in a modal is painful; a button now saves what the dialog
shows, filters included, as a timestamped text file.
2026-09-18 06:24:48 +10:00
Zakk 399cc053eb fix(gui): make the log readable on a phone and point feedback at discussions
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.
2026-09-18 06:18:07 +10:00
Zakk 80b3b769db fix(gui): make the custom inbound form usable
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.
2026-09-18 05:57:17 +10:00
Zakk 60578fa7bb fix(gui): keep node fields intact on edit and hide the burger on desktop
- 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.
2026-09-18 05:22:40 +10:00
Zakk ba85f63f8a fix(gui): centre the tag text again and give the wordmark a phone size
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.
2026-09-18 04:26:40 +10:00
Zakk 9fd4fec854 fix(gui): visible close glyph, one backdrop, a real dropdown in the collapsed menu
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.
2026-09-18 04:16:50 +10:00
Zakk f51c97d1b7 fix(gui): phone dialogs, dropdowns and notices
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.
2026-09-18 04:05:38 +10:00
Zakk 4295642b46 feat(gui): draw every icon from Lucide
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.
2026-09-18 03:57:08 +10:00
Zakk bd8ce2ee40 feat(gui): show backend errors in the user's language via errorCode
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.
2026-09-18 03:57:08 +10:00
Zakk f4a74027d7 fix(gui): align the proxy-group tag with the status tag
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.
2026-09-18 03:44:01 +10:00
Zakk 68cdece946 fix(gui): readable logo on dark surfaces
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.
2026-09-18 03:42:47 +10:00
Zakk ec93e918f7 i18n(gui): localize hard-coded strings and make messages name the action
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.
2026-09-18 02:51:05 +10:00
Zakk 3b44741e9c fix(gui): proxy-group membership, selection, log polling and small display defects
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.
2026-09-18 02:17:47 +10:00
Zakk d1b944a662 fix(gui): round-trip trojan ws host/path, hysteria2 auth, and insecure flags
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.
2026-09-18 02:14:57 +10:00
Zakk a7f9b4d519 fix(gui): make WireGuard and vmess fingerprint round-trip with the backend
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.
2026-09-18 01:51:48 +10:00
Zakk 77ab97f34d fix(gui): close the settings spinner on cancel and tolerate unknown select values in view mode
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.
2026-09-18 01:42:03 +10:00
Zakk 945a8a8c97 fix(gui): guard runtime errors and follow the active locale in more places
- 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.
2026-09-18 01:41:28 +10:00
Zakk 33eb75b44e fix(gui): emit sni, not peer, in anytls links
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.
2026-09-18 01:21:24 +10:00
Zakk cdfbb1c2d8 fix(gui): localize proxy-group strings, fit the DNS dialog on phones, allow zoom
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.
2026-09-18 01:11:24 +10:00
Zakk 89039d5ac8 fix(gui): stop leaks on remount, guard import, and show the active locale
$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.
2026-09-18 01:06:51 +10:00
Zakk 59e68e7d6e fix(gui): build every server link with generateURL and round-trip ss plugin options
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.
2026-09-18 00:59:29 +10:00
fengexian-c 8288bf3bea fix(gui): load outbound groups for custom inbound
Fix the empty Bound outbound selector by requesting the outbound group list from /api/outbounds.

Signed-off-by: fengexian-c <127767883+fengexian-c@users.noreply.github.com>
2026-09-04 15:00:12 +08:00
Markson Hon 9513a51956 Merge pull request #1918 from haotiangood/main
fix(webui): cannot save node configuration changes
2026-08-24 18:51:10 +08:00
rinkulu c8d390bc6b fix(gui): validate manual VLESS config before saving 2026-08-23 23:06:59 +03:00