mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6216] [MERGED] feat(frontend): multi-node cloning initial implementation #6177
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6216
Author: @rlex
Created: 8/14/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @MHSanaei
Base:
main← Head:multiclone📝 Commits (7)
be38ac9feat(frontend): multinode cloning initial implementationa4ae15ffix(frontend): harden live node detection in multinode cloning4a50b23fix(frontend): add aria label to clone inbound modal6924e40fix(frontend): shallow copy inbound settings during cloning9bb293cfix(frontend): avoid potential port conflict during testing157aae1fix(frontend): selection buttons and websocket selection reset fix5e86cfcMerge branch 'main' into multiclone📊 Changes
20 files changed (+597 additions, -46 deletions)
View changed files
➕
frontend/src/lib/xray/inbound-clone.ts(+66 -0)➕
frontend/src/lib/xray/node-protocols.ts(+16 -0)➕
frontend/src/pages/inbounds/CloneInboundModal.tsx(+136 -0)📝
frontend/src/pages/inbounds/InboundsPage.tsx(+42 -34)📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+7 -12)➕
frontend/src/test/clone-inbound-modal.test.tsx(+219 -0)➕
frontend/src/test/inbound-clone.test.ts(+85 -0)📝
internal/web/translation/ar-EG.json(+2 -0)📝
internal/web/translation/en-US.json(+2 -0)📝
internal/web/translation/es-ES.json(+2 -0)📝
internal/web/translation/fa-IR.json(+2 -0)📝
internal/web/translation/id-ID.json(+2 -0)📝
internal/web/translation/ja-JP.json(+2 -0)📝
internal/web/translation/pt-BR.json(+2 -0)📝
internal/web/translation/ru-RU.json(+2 -0)📝
internal/web/translation/tr-TR.json(+2 -0)📝
internal/web/translation/uk-UA.json(+2 -0)📝
internal/web/translation/vi-VN.json(+2 -0)📝
internal/web/translation/zh-CN.json(+2 -0)📝
internal/web/translation/zh-TW.json(+2 -0)📄 Description
Summary
Allows cloning of inbounds to connected nodes from central panel.
No core changes - strictly frontend, existing API was enough.
New cloning modal only appears when there is connected nodes - zero changes for single-node panels.
Existing behavior kept - local copy by default.
Inbounds are still disabled after cloning - to adjust settings before switching them on (tls certs for example).
Why
It's convenient - you can quickly spread bunch of configs to multiple regions to use as a base.
Currently i'm relying on copying raw JSONs, which is not very convenient.
This streamlines it.
Also closes https://github.com/MHSanaei/3x-ui/issues/5337 - i'm not the only one wanting it.
Type of change
Areas affected
How was this tested?
Screenshots / recordings
Breaking changes
None
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.