Skip to content

feat(diagnostic): stringify sb config json#304

Merged
itdoginfo merged 1 commit intomainfrom
fix/diagnostic-singbox-config
Jan 24, 2026
Merged

feat(diagnostic): stringify sb config json#304
itdoginfo merged 1 commit intomainfrom
fix/diagnostic-singbox-config

Conversation

@divocat
Copy link
Collaborator

@divocat divocat commented Jan 23, 2026

Описание изменений

Краткое описание ваших изменений и их цель.

Что изменено

Детальное описание изменений:

(Этим вы экономите время ревьювера)

@divocat divocat requested a review from itdoginfo as a code owner January 23, 2026 21:52
Copilot AI review requested due to automatic review settings January 23, 2026 21:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the diagnostic tab where the sing-box configuration was not being properly displayed. The backend returns a JSON object which needs to be stringified before being passed to the modal renderer.

Changes:

  • Added JSON.stringify() to format the sing-box config data before displaying it in a modal
  • Removed incorrect type assertion as string in the TypeScript version

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js Wraps showSingBoxConfig.data with JSON.stringify() to properly format the JSON object for display
fe-app-podkop/src/podkop/tabs/diagnostic/initController.ts Same as above, also removes incorrect as string type assertion

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@itdoginfo itdoginfo merged commit 0379cf5 into main Jan 24, 2026
7 checks passed
@itdoginfo itdoginfo deleted the fix/diagnostic-singbox-config branch January 24, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants