[PR #5126] [CLOSED] server: implement optional pagination for proxy info API response #5141

Closed
opened 2026-05-05 14:55:29 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/5126
Author: @hellozhongying
Created: 1/14/2026
Status: Closed

Base: devHead: dev


📄 Description

WHY

1.server: implement optional pagination for proxy info API response
2.web: enhance proxy management with pagination and improved API response handling

PR Summary (English)

This PR adds optional pagination support to the frps dashboard proxy list API and updates the frps dashboard UI to display proxies with pagination.

Backend changes

  • Added optional query parameters page and page_size to GET /api/proxy/{type}.
    • Backward compatible: if page_size is not provided, the API returns the full list as before.
    • When pagination is enabled, the response additionally includes total, page, and pageSize (as optional fields).
  • Pagination is applied after sorting by name, keeping the existing ordering behavior stable.

Frontend changes (frps dashboard)

  • Added pagination UI to the Proxies page and updated the request to use page/page_size when not in search mode.
  • Kept search behavior consistent by fetching the full list for searching, then paginating client-side.
  • Restored page size options to 10/20/50/100/All; selecting All sends no page_size parameter.
  • Updated page size labels to English.
  • Updated typings for the extended proxy list response.

Tooling / lockfile

  • Updated web/frps/yarn.lock to include both Windows and macOS platform-specific packages for esbuild and @parcel/watcher, ensuring builds work on both platforms with a single lockfile.

🔄 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/fatedier/frp/pull/5126 **Author:** [@hellozhongying](https://github.com/hellozhongying) **Created:** 1/14/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📄 Description ### WHY 1.server: implement optional pagination for proxy info API response 2.web: enhance proxy management with pagination and improved API response handling <!-- author to complete --> ### PR Summary (English) This PR adds **optional pagination** support to the frps dashboard proxy list API and updates the frps dashboard UI to display proxies with pagination. ### Backend changes - Added **optional** query parameters `page` and `page_size` to `GET /api/proxy/{type}`. - **Backward compatible**: if `page_size` is not provided, the API returns the full list as before. - When pagination is enabled, the response additionally includes `total`, `page`, and `pageSize` (as optional fields). - Pagination is applied **after sorting by name**, keeping the existing ordering behavior stable. ### Frontend changes (frps dashboard) - Added pagination UI to the Proxies page and updated the request to use `page/page_size` when not in search mode. - Kept search behavior consistent by fetching the full list for searching, then paginating client-side. - Restored page size options to **10/20/50/100/All**; selecting **All** sends no `page_size` parameter. - Updated page size labels to English. - Updated typings for the extended proxy list response. ### Tooling / lockfile - Updated `web/frps/yarn.lock` to include both **Windows** and **macOS** platform-specific packages for `esbuild` and `@parcel/watcher`, ensuring builds work on both platforms with a single lockfile. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:55:29 -06: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: github-starred/frp#5141
No description provided.