62 Commits
Author SHA1 Message Date
dependabot[bot] 2d0acd4862 chore(deps): bump axios from 0.33.0 to 0.34.0 in /gui
Bumps [axios](https://github.com/axios/axios) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 0.34.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-14 21:47:12 +11:00
dependabot[bot] 2f71d06ade chore(deps-dev): bump vite from 6.4.4 to 6.4.5 in /gui
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.4 to 6.4.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.4.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.4.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.4.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 12:36:20 +00:00
Markson Hon 9a03ba7fd4 Merge pull request #2090 from v2rayA/dependabot/npm_and_yarn/gui/vite-6.4.4
chore(deps-dev): bump vite from 6.4.3 to 6.4.4 in /gui
2026-11-05 20:35:10 +08:00
Markson Hon 758250157a Merge pull request #2098 from v2rayA/dependabot/npm_and_yarn/gui/happy-dom-21.0.4
chore(deps-dev): bump happy-dom from 20.14.5 to 21.0.4 in /gui
2026-11-05 20:34:55 +08:00
dependabot[bot] 3886be4065 chore(deps): bump vue-i18n from 11.4.12 to 11.4.14 in /gui
Bumps [vue-i18n](https://github.com/intlify/vue-i18n/tree/HEAD/packages/vue-i18n) from 11.4.12 to 11.4.14.
- [Release notes](https://github.com/intlify/vue-i18n/releases)
- [Changelog](https://github.com/intlify/vue-i18n/blob/v11.4.14/CHANGELOG.md)
- [Commits](https://github.com/intlify/vue-i18n/commits/v11.4.14/packages/vue-i18n)

---
updated-dependencies:
- dependency-name: vue-i18n
  dependency-version: 11.4.14
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-02 03:19:13 +00:00
dependabot[bot] ef3b3aae86 chore(deps-dev): bump happy-dom from 20.14.5 to 21.0.4 in /gui
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.14.5 to 21.0.4.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v20.14.5...v21.0.4)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 21.0.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-27 23:19:13 +00:00
dependabot[bot] e858fba57b chore(deps-dev): bump vite from 6.4.3 to 6.4.4 in /gui
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.3 to 6.4.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.4.4/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.4.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.4.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-21 01:05:53 +00: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 0daa826396 build(gui): Vuetify 4, TypeScript, Pinia, vue-i18n 11 in composition mode, Vitest, a PWA
The toolchain of the rewrite: Vite with vite-plugin-pwa (autoUpdate,
/api/ never cached), vue-tsc, ESLint's flat config, Vitest with
happy-dom and a mount helper, an i18n check and a gzip size gate in CI,
Red Hat Text self-hosted under /static/fonts.
2026-09-19 23:17:05 +10:00
Zakk 9848c38894 build(gui): Vue 3, Buefy 3, Bulma 1, Vuex 4, vue-i18n 9 and the session module
Vue 2 has been out of support since the end of 2023, and every library
the GUI sits on is pinned to it: Buefy 0.9, Vuex 3, vue-i18n 8,
vue-virtual-scroller 1, @vitejs/plugin-vue2. This commit swaps the
toolchain; the templates still carry Vue 2 syntax (.sync, slot,
slot-scope, .native) and the build fails on them until the next commit.

- buefy 3.1 is the official Vue 3 release and depends on Bulma 1, so
  buefy.scss is rewritten as `@use "bulma/sass" with (...)`, keeping the
  same colour values; Bulma 1 needs Dart Sass >= 1.79 for color.channel,
  hence sass ^1.86. The danger colour's 0.73 alpha, which Bulma 1 drops,
  is restored on the CSS variable.
- The root instance is built by plugins/session.js. Its restart() replaces
  $remount: Vue 3 has no $children to walk, and Buefy 3 mounts each
  programmatic dialog in its own application, so restart() closes the
  registered handles, unmounts the root (whose beforeUnmount hooks close
  the WebSocket and the matchMedia listener) and mounts a new one.
  Components keep calling this.$remount(); it is set as a global property
  from session.js rather than imported by the tree, which would be a
  circular import.
- axios, dayjs and the Buefy toast register on the application instead of
  Vue.prototype; module-level code uses i18n.global, the legacy instance
  no longer exposes t() directly.
2026-09-19 15:07:40 +10:00
Zakk 9e0f73ee7b build(gui): bump vite from 4.5.14 to 6.4.3, with the define it rejects replaced
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.
2026-09-18 21:33:27 +10:00
dependabot[bot] 7ac9fe552f build(deps-dev): bump @babel/core from 7.20.7 to 7.29.6 in /gui
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.20.7 to 7.29.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.29.6/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-version: 7.29.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-18 05:44:58 +00:00
Zakk b3f2a4fbd3 fix(gui): ship only the icons the interface uses
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.
2026-09-18 15:28:20 +10:00
Markson GuGa Beyond 7603fd3eaa gui: bundle only the woff lucide icon font
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.
2026-09-18 13:15:50 +08:00
Markson Hon 9deb357f54 Merge pull request #1968 from v2rayA/dependabot/npm_and_yarn/gui/nanoid-3.3.18
build(deps): bump nanoid from 3.3.4 to 3.3.18 in /gui
2026-09-18 11:26:32 +08:00
dependabot[bot] ae07b4197f build(deps): bump nanoid from 3.3.4 to 3.3.18 in /gui
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.4 to 3.3.18.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.4...3.3.18)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-version: 3.3.18
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:31:52 +00:00
dependabot[bot] 98878d1eae build(deps): bump axios from 0.30.3 to 0.33.0 in /gui
Bumps [axios](https://github.com/axios/axios) from 0.30.3 to 0.33.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.30.3...v0.33.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 0.33.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 23:21:04 +00: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 4d40205fac build(gui): drop webpack-era files and dependencies, bump axios, make lint run
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.
2026-09-18 02:35:38 +10:00
Markson Hon f94a350188 gui: use vite to build web 2026-04-14 17:33:04 +08:00
unknown-o 02e27eb435 dep(gui): update depend 2025-02-09 02:09:53 +00:00
高渐离 e1ff5a16b8 Revert "chore(deps): bump axios from 0.21.4 to 0.28.0 in /gui" 2024-03-02 22:52:59 +08:00
dependabot[bot] b9a506610f chore(deps): bump axios from 0.21.4 to 0.28.0 in /gui
Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 0.28.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.28.0/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.4...v0.28.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-21 11:35:05 +00:00
mzz2017 7eb931de77 Revert "Merge pull request #1166 from v2rayA/dependabot/npm_and_yarn/gui/axios-1.6.0"
This reverts commit b664fba9d6, reversing
changes made to 3c2873dc3d.
2023-12-05 22:01:40 +08:00
easterNday 9e0916cd82 chore(compress): use webpack to compress the files of the web panel (#1189)
* Turn on Gzip compression on the front end;
    - Use compression-webpack-plugin plugin;
    - Configure in vue.config.js
    - Enable compression only in production mode
* Remove original compression method
2023-11-22 19:51:54 +08:00
Markson Hon b664fba9d6 Merge pull request #1166 from v2rayA/dependabot/npm_and_yarn/gui/axios-1.6.0
chore(deps): bump axios from 0.21.4 to 1.6.0 in /gui
2023-11-20 09:45:24 +08:00
mzz2017 3c2873dc3d chore: fix node v21 build 2023-11-18 16:34:16 +00:00
dependabot[bot] 78e1cf8550 chore(deps): bump axios from 0.21.4 to 1.6.0 in /gui
Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.4...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-10 17:13:21 +00:00
mzz2017 d3fdacb433 chore: upgrade node-ipc 2023-11-06 22:38:58 +08:00
mzz2017 7972779794 chore: refine code 2023-08-03 00:16:21 +08:00
Percy Ma d4f8c5cc7c chore: upgrade buefy to eliminate sass deprecated syntax warnings 2023-01-04 21:42:00 +08:00
Percy Ma 340d620908 chore: use terser and swc to replace uglifyjs 2023-01-04 14:59:44 +08:00
Percy Ma f4938adc1c chore: update @vue/cli-* to v5 2023-01-03 17:27:49 +08:00
Percy Ma 83b53ac14a chore: update vue to v2.7.14 2023-01-03 16:51:12 +08:00
FantasqueX a201900db5 replace unmaintainable jsqrcode (#632) 2022-09-02 18:16:48 +08:00
FantasqueX d5d0907c16 remove dependency core-js 2022-08-13 12:06:43 +08:00
Letu Ren 0433f67b0e Move pace-progressbar to node_modules
Since there is a package pace-js in npm registry, we shouldn't include
one in source code repository.
2022-08-13 12:06:43 +08:00
gogogoghost fe12c7207b fix: frontend generateURL() will missing port when using 80 2022-06-26 17:56:17 +08:00
mzz2017 27aadd9ada chore(gui): upgrade pkgs 2022-02-06 15:38:53 +08:00
mzz2017 2c76cc5ade feat(gui): highlight for logs 2022-02-06 15:14:22 +08:00
mzz2017 0951af306a optimize(log): use virtual-scroll to optimize the performance of log viewer 2022-02-05 18:58:03 +08:00
mzz2017 aae262856f chore: pkgs 2022-02-05 12:20:25 +08:00
mzz2017 e4dd0eaa76 refactor: server, subscription, api, plugin 2021-09-06 12:32:47 +08:00
mzz2017 f2c743e722 style: buetify the RoutingA editor 2021-08-26 09:08:04 +08:00
mzz2017 d0bff832d1 feat: rewrite lru and add unique request id and cache for every requests 2021-08-10 22:18:51 +08:00
mzz2017 d722d15003 feat: add observatory result in GUI 2021-08-06 23:22:40 +08:00
mzz2017 5db786b33a chore(axios): #132 2021-01-07 21:03:18 +08:00
mzz2017 19be778c2d xray compatibility 2020-12-23 14:29:04 +08:00
mzz2017 f6bd393d22 feat: support to turn off china domain dns shunt 2020-12-17 17:02:33 +08:00
mzz2017 f56b011b2a feat: add select-all button on mobile and upgrade buefy 2020-10-30 18:16:09 +08:00