[PR #4332] [MERGED] style(api-docs): redesign TOC, section icons, endpoint rows, and code blocks with ultra-dark support #5664

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4332
Author: @abdalrahmanx9
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @MHSanaei

Base: main ← Head: beautify-api-docs


📝 Commits (4)

  • 28513a5 style(api-docs): redesign TOC, section icons, endpoint rows, and code blocks with ultra-dark support
  • 2960937 Merge branch 'main' into beautify-api-docs
  • 17b04df style(api-docs): rename visibleSections to visibleEndpoints, drop dead toc-stuck CSS
  • 75eee9e docs(api): add missing POST /panel/api/inbounds/:id/resetTraffic entry

📊 Changes

5 files changed (+388 additions, -89 deletions)

View changed files

📝 frontend/src/pages/api-docs/ApiDocsPage.vue (+224 -25)
📝 frontend/src/pages/api-docs/CodeBlock.vue (+56 -34)
📝 frontend/src/pages/api-docs/EndpointRow.vue (+47 -13)
📝 frontend/src/pages/api-docs/EndpointSection.vue (+47 -11)
📝 frontend/src/pages/api-docs/endpoints.js (+14 -6)

📄 Description

Summary

  • Redesigned "On this page" TOC nav with section icons, pill badges, and active-section highlight
  • Added per-section icons and pill-style endpoint count badges to each API category
  • Dropped redundant "API" suffix from section titles (e.g. "Inbounds" instead of "Inbounds API")
  • Improved endpoint row typography: uppercase monospace method tags, pill-style paths, hover highlight
  • Replaced hover-hidden copy button with always-visible toolbar showing language badge + copy
  • Added html[data-theme='ultra-dark'] overrides for all elements to fix ultra-dark readability
  • Fixed token card button alignment by replacing a-space with flex wrapper

🔄 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/4332 **Author:** [@abdalrahmanx9](https://github.com/abdalrahmanx9) **Created:** 5/13/2026 **Status:** ✅ Merged **Merged:** 5/13/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `beautify-api-docs` --- ### 📝 Commits (4) - [`28513a5`](https://github.com/MHSanaei/3x-ui/commit/28513a51e302309036701d15d332c925302aa9cc) style(api-docs): redesign TOC, section icons, endpoint rows, and code blocks with ultra-dark support - [`2960937`](https://github.com/MHSanaei/3x-ui/commit/29609378ddae2184add5c6e61483adf4b41d0647) Merge branch 'main' into beautify-api-docs - [`17b04df`](https://github.com/MHSanaei/3x-ui/commit/17b04df09157653d355a7c24a0cd15d9e3327e53) style(api-docs): rename visibleSections to visibleEndpoints, drop dead toc-stuck CSS - [`75eee9e`](https://github.com/MHSanaei/3x-ui/commit/75eee9efb2f0a08f5e828b0e00c3511675040bfc) docs(api): add missing POST /panel/api/inbounds/:id/resetTraffic entry ### 📊 Changes **5 files changed** (+388 additions, -89 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/api-docs/ApiDocsPage.vue` (+224 -25) 📝 `frontend/src/pages/api-docs/CodeBlock.vue` (+56 -34) 📝 `frontend/src/pages/api-docs/EndpointRow.vue` (+47 -13) 📝 `frontend/src/pages/api-docs/EndpointSection.vue` (+47 -11) 📝 `frontend/src/pages/api-docs/endpoints.js` (+14 -6) </details> ### 📄 Description ## Summary - Redesigned "On this page" TOC nav with section icons, pill badges, and active-section highlight - Added per-section icons and pill-style endpoint count badges to each API category - Dropped redundant "API" suffix from section titles (e.g. "Inbounds" instead of "Inbounds API") - Improved endpoint row typography: uppercase monospace method tags, pill-style paths, hover highlight - Replaced hover-hidden copy button with always-visible toolbar showing language badge + copy - Added `html[data-theme='ultra-dark']` overrides for all elements to fix ultra-dark readability - Fixed token card button alignment by replacing `a-space` with flex wrapper --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:03:08 +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#5664
No description provided.