[PR #5163] [MERGED] feat(sub): add Copy All Configs button to subscription page #5797

Closed
opened 2026-11-02 04:04:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5163
Author: @NikanZeyaei
Created: 6/10/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei

Base: main ← Head: feature/copy-all-configurations


📝 Commits (9)

  • 1dab4a8 feat(sub): add Copy All Configs button to subscription page
  • ecb4d65 Merge branch 'main' into feature/copy-all-configurations
  • 4328b66 Merge branch 'main' into feature/copy-all-configurations
  • 2ef47eb fix(sub): include links in copyAll dependency array
  • 9917e37 chore: fmt
  • 46e6bba Merge branch 'main' into feature/copy-all-configurations
  • ef8ca56 Merge branch 'main' into feature/copy-all-configurations
  • 07b8381 Merge branch 'main' into feature/copy-all-configurations
  • f4bab47 fix(sub): drop module-level links from copyAll deps to satisfy exhaustive-deps

📊 Changes

14 files changed (+58 additions, -13 deletions)

View changed files

📝 frontend/src/pages/sub/SubPage.tsx (+19 -0)
📝 internal/web/translation/ar-EG.json (+3 -1)
📝 internal/web/translation/en-US.json (+3 -1)
📝 internal/web/translation/es-ES.json (+3 -1)
📝 internal/web/translation/fa-IR.json (+3 -1)
📝 internal/web/translation/id-ID.json (+3 -1)
📝 internal/web/translation/ja-JP.json (+3 -1)
📝 internal/web/translation/pt-BR.json (+3 -1)
📝 internal/web/translation/ru-RU.json (+3 -1)
📝 internal/web/translation/tr-TR.json (+3 -1)
📝 internal/web/translation/uk-UA.json (+3 -1)
📝 internal/web/translation/vi-VN.json (+3 -1)
📝 internal/web/translation/zh-CN.json (+3 -1)
📝 internal/web/translation/zh-TW.json (+3 -1)

📄 Description

Summary

Closes https://github.com/MHSanaei/3x-ui/issues/5148
Adds a "Copy All Configs" button to the subscription detail page (SubPage.tsx) that copies all individual config URIs (vless://, vmess://, trojan://, etc.) to the clipboard at once, separated by newlines.

Why

Closes the enhancement request where users with multiple nodes in a subscription had to copy each config one by one. This saves time and improves the experience for tools that don't support subscription URLs directly.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

  1. cd frontend && npm run typecheck && npm run lint && npm run build — all pass.
  2. Built the frontend and ran go run . locally.
  3. Created a subscription with multiple VLESS clients attached.
  4. Visited /sub/<sub-id>?html=1 in both mobile (375px) and desktop widths.
  5. Clicked the Copy All Configs button — success toast appeared.
  6. Pasted clipboard into a text editor and confirmed all config URIs were present, one per line.

Screenshots / recordings

image image image

Breaking changes

None.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5163 **Author:** [@NikanZeyaei](https://github.com/NikanZeyaei) **Created:** 6/10/2026 **Status:** ✅ Merged **Merged:** 6/11/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feature/copy-all-configurations` --- ### 📝 Commits (9) - [`1dab4a8`](https://github.com/MHSanaei/3x-ui/commit/1dab4a81368da435e552ab70865b95c318aba52d) feat(sub): add Copy All Configs button to subscription page - [`ecb4d65`](https://github.com/MHSanaei/3x-ui/commit/ecb4d65322482970dab93e74eb0622dcc8245319) Merge branch 'main' into feature/copy-all-configurations - [`4328b66`](https://github.com/MHSanaei/3x-ui/commit/4328b6687d375d97b71497a09ae21335c4664764) Merge branch 'main' into feature/copy-all-configurations - [`2ef47eb`](https://github.com/MHSanaei/3x-ui/commit/2ef47eba546845e134f8c1a626111f27a0cfe769) fix(sub): include links in copyAll dependency array - [`9917e37`](https://github.com/MHSanaei/3x-ui/commit/9917e371f74840dfb67aebd90250979975da77e3) chore: fmt - [`46e6bba`](https://github.com/MHSanaei/3x-ui/commit/46e6bbab37ff2afc73d97fc2ee0eb633793035d2) Merge branch 'main' into feature/copy-all-configurations - [`ef8ca56`](https://github.com/MHSanaei/3x-ui/commit/ef8ca56ebba3b7a4d137534f747ae03b0bd16344) Merge branch 'main' into feature/copy-all-configurations - [`07b8381`](https://github.com/MHSanaei/3x-ui/commit/07b8381d8cb1f1dc449c6fb7bd923273decfb8a6) Merge branch 'main' into feature/copy-all-configurations - [`f4bab47`](https://github.com/MHSanaei/3x-ui/commit/f4bab47fa950a417815fcc0b32500a0a6db21d1e) fix(sub): drop module-level links from copyAll deps to satisfy exhaustive-deps ### 📊 Changes **14 files changed** (+58 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/sub/SubPage.tsx` (+19 -0) 📝 `internal/web/translation/ar-EG.json` (+3 -1) 📝 `internal/web/translation/en-US.json` (+3 -1) 📝 `internal/web/translation/es-ES.json` (+3 -1) 📝 `internal/web/translation/fa-IR.json` (+3 -1) 📝 `internal/web/translation/id-ID.json` (+3 -1) 📝 `internal/web/translation/ja-JP.json` (+3 -1) 📝 `internal/web/translation/pt-BR.json` (+3 -1) 📝 `internal/web/translation/ru-RU.json` (+3 -1) 📝 `internal/web/translation/tr-TR.json` (+3 -1) 📝 `internal/web/translation/uk-UA.json` (+3 -1) 📝 `internal/web/translation/vi-VN.json` (+3 -1) 📝 `internal/web/translation/zh-CN.json` (+3 -1) 📝 `internal/web/translation/zh-TW.json` (+3 -1) </details> ### 📄 Description ## Summary Closes https://github.com/MHSanaei/3x-ui/issues/5148 Adds a **"Copy All Configs"** button to the subscription detail page (`SubPage.tsx`) that copies all individual config URIs (vless://, vmess://, trojan://, etc.) to the clipboard at once, separated by newlines. ## Why Closes the enhancement request where users with multiple nodes in a subscription had to copy each config one by one. This saves time and improves the experience for tools that don't support subscription URLs directly. ## Type of change - [ ] Bug fix - [x] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [x] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? 1. `cd frontend && npm run typecheck && npm run lint && npm run build` — all pass. 2. Built the frontend and ran `go run .` locally. 3. Created a subscription with multiple VLESS clients attached. 4. Visited `/sub/<sub-id>?html=1` in both mobile (375px) and desktop widths. 5. Clicked the **Copy All Configs** button — success toast appeared. 6. Pasted clipboard into a text editor and confirmed all config URIs were present, one per line. ## Screenshots / recordings <img width="833" height="392" alt="image" src="https://github.com/user-attachments/assets/730406b0-7a1c-44a1-b7b3-99e0e6638b35" /> <img width="207" height="77" alt="image" src="https://github.com/user-attachments/assets/b5093d5d-dbb3-4fe4-97fd-ef9dbbdc151f" /> <img width="350" height="385" alt="image" src="https://github.com/user-attachments/assets/4062f537-a459-4e78-b7a5-6adba31f2306" /> ## Breaking changes None. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [ ] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5797
No description provided.