[PR #6504] [MERGED] feat(geodata): add standard source presets #6315

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6504
Author: @rokokol
Created: 9/13/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @MHSanaei

Base: main ← Head: feat/geodata-standard-sources


📝 Commits (2)

  • d2278e3 feat(geodata): add standard source presets
  • 810e511 fix(geodata): preserve custom source entries

📊 Changes

19 files changed (+148 additions, -2 deletions)

View changed files

📝 frontend/src/pages/index/GeodataSection.tsx (+17 -2)
📝 frontend/src/schemas/xray.ts (+1 -0)
➕ frontend/src/test/geodata-section.test.tsx (+79 -0)
📝 internal/web/controller/xray_setting.go (+1 -0)
📝 internal/web/service/server.go (+16 -0)
📝 internal/web/service/server_geofile_test.go (+21 -0)
📝 internal/web/translation/ar-EG.json (+1 -0)
📝 internal/web/translation/en-US.json (+1 -0)
📝 internal/web/translation/es-ES.json (+1 -0)
📝 internal/web/translation/fa-IR.json (+1 -0)
📝 internal/web/translation/id-ID.json (+1 -0)
📝 internal/web/translation/ja-JP.json (+1 -0)
📝 internal/web/translation/pt-BR.json (+1 -0)
📝 internal/web/translation/ru-RU.json (+1 -0)
📝 internal/web/translation/tr-TR.json (+1 -0)
📝 internal/web/translation/uk-UA.json (+1 -0)
📝 internal/web/translation/vi-VN.json (+1 -0)
📝 internal/web/translation/zh-CN.json (+1 -0)
📝 internal/web/translation/zh-TW.json (+1 -0)

📄 Description

Summary

Adds a Geodata editor button that fills the six supported geofile download sources

Why

Scheduled geodata downloads require asset URLs, but administrators previously had to copy every supported URL and filename by hand

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?

  • In a local panel, opened Geodata Auto-Update, filled the standard sources, edited the resulting rows, and saved the configuration
  • npm run test
  • npm run lint
  • npm run typecheck
  • npm run format:check
  • npm run build
  • go test ./internal/web/service ./internal/web/controller -run '^(TestStandardGeodataSources|TestGeodata)' -count=1

Screenshots / recordings

Manually verified locally, no attachment available from this environment

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/6504 **Author:** [@rokokol](https://github.com/rokokol) **Created:** 9/13/2026 **Status:** ✅ Merged **Merged:** 9/13/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/geodata-standard-sources` --- ### 📝 Commits (2) - [`d2278e3`](https://github.com/MHSanaei/3x-ui/commit/d2278e38288c44e718171b509dac5ef8d97f080d) feat(geodata): add standard source presets - [`810e511`](https://github.com/MHSanaei/3x-ui/commit/810e511a878cd391156f939a5e627505dc8f08c2) fix(geodata): preserve custom source entries ### 📊 Changes **19 files changed** (+148 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/index/GeodataSection.tsx` (+17 -2) 📝 `frontend/src/schemas/xray.ts` (+1 -0) ➕ `frontend/src/test/geodata-section.test.tsx` (+79 -0) 📝 `internal/web/controller/xray_setting.go` (+1 -0) 📝 `internal/web/service/server.go` (+16 -0) 📝 `internal/web/service/server_geofile_test.go` (+21 -0) 📝 `internal/web/translation/ar-EG.json` (+1 -0) 📝 `internal/web/translation/en-US.json` (+1 -0) 📝 `internal/web/translation/es-ES.json` (+1 -0) 📝 `internal/web/translation/fa-IR.json` (+1 -0) 📝 `internal/web/translation/id-ID.json` (+1 -0) 📝 `internal/web/translation/ja-JP.json` (+1 -0) 📝 `internal/web/translation/pt-BR.json` (+1 -0) 📝 `internal/web/translation/ru-RU.json` (+1 -0) 📝 `internal/web/translation/tr-TR.json` (+1 -0) 📝 `internal/web/translation/uk-UA.json` (+1 -0) 📝 `internal/web/translation/vi-VN.json` (+1 -0) 📝 `internal/web/translation/zh-CN.json` (+1 -0) 📝 `internal/web/translation/zh-TW.json` (+1 -0) </details> ### 📄 Description ## Summary Adds a Geodata editor button that fills the six supported geofile download sources ## Why Scheduled geodata downloads require asset URLs, but administrators previously had to copy every supported URL and filename by hand ## 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) - [x] 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? - In a local panel, opened Geodata Auto-Update, filled the standard sources, edited the resulting rows, and saved the configuration - `npm run test` - `npm run lint` - `npm run typecheck` - `npm run format:check` - `npm run build` - `go test ./internal/web/service ./internal/web/controller -run '^(TestStandardGeodataSources|TestGeodata)' -count=1` ## Screenshots / recordings Manually verified locally, no attachment available from this environment ## Breaking changes None ## Checklist - [x] I tested the change locally and confirmed the described behavior - [x] 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 - [x] 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:07:52 +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#6315
No description provided.