mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5129] [CLOSED] feat/frps: Add pagination to the Proxies API #5140
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5140
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/fatedier/frp/pull/5129
Author: @hellozhongying
Created: 1/15/2026
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
7d68713server: implement optional pagination for proxy info API response4a1b61dweb/frps: enhance proxy management with pagination and improved API response handling📊 Changes
8 files changed (+7074 additions, -142 deletions)
View changed files
📝
server/api/controller.go(+78 -3)📝
server/api/types.go(+4 -1)📝
web/frps/components.d.ts(+3 -0)➕
web/frps/package-lock.json(+6792 -0)📝
web/frps/src/api/proxy.ts(+17 -2)📝
web/frps/src/types/proxy.ts(+3 -0)📝
web/frps/src/views/Proxies.vue(+85 -1)📝
web/frps/yarn.lock(+92 -135)📄 Description
WHY
1.server: implement optional pagination for proxy info API response
2.web/frps: enhance proxy management with pagination and improved API response handling
PR Summary
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 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.