[PR #25] [CLOSED] feat: add clipboard utility, click-to-copy for model IDs #65

Closed
opened 2026-02-27 16:42:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/router-for-me/Cli-Proxy-API-Management-Center/pull/25
Author: @prathamdby
Created: 12/18/2025
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • 2e575f5 feat: implement clipboard copy functionality across multiple pages
  • 9d28fe8 fix: address code review feedback from gemini-code-assist

📊 Changes

8 files changed (+154 additions, -45 deletions)

View changed files

📝 src/i18n/locales/en.json (+5 -1)
📝 src/i18n/locales/zh-CN.json (+5 -1)
📝 src/pages/AuthFilesPage.tsx (+14 -4)
📝 src/pages/LogsPage.tsx (+1 -23)
📝 src/pages/OAuthPage.tsx (+6 -5)
📝 src/pages/SystemPage.module.scss (+27 -1)
📝 src/pages/SystemPage.tsx (+57 -10)
src/utils/clipboard.ts (+39 -0)

📄 Description

Changes

Centralized clipboard functionality into a reusable utility and added click-to-copy for model IDs on the System page.

What's Changed

  • New copyToClipboard utility with fallback for older browsers
  • Refactored AuthFilesPage, LogsPage, OAuthPage, SystemPage to use the utility
  • Model tags on System page are now clickable to copy the model ID
  • Added i18n strings for clipboard actions (EN & ZH-CN)
  • Success/failure notifications with visual feedback

Files Modified

  • src/utils/clipboard.ts
  • src/pages/AuthFilesPage.tsx
  • src/pages/LogsPage.tsx
  • src/pages/OAuthPage.tsx
  • src/pages/SystemPage.tsx
  • src/pages/SystemPage.module.scss
  • src/i18n/locales/en.json
  • src/i18n/locales/zh-CN.json

🔄 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/router-for-me/Cli-Proxy-API-Management-Center/pull/25 **Author:** [@prathamdby](https://github.com/prathamdby) **Created:** 12/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`2e575f5`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/2e575f5067c72bd296ac27de26df0dfb5264bc65) feat: implement clipboard copy functionality across multiple pages - [`9d28fe8`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/9d28fe8825bdb58a07b0c817c1713b975dc0cd42) fix: address code review feedback from gemini-code-assist ### 📊 Changes **8 files changed** (+154 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `src/i18n/locales/en.json` (+5 -1) 📝 `src/i18n/locales/zh-CN.json` (+5 -1) 📝 `src/pages/AuthFilesPage.tsx` (+14 -4) 📝 `src/pages/LogsPage.tsx` (+1 -23) 📝 `src/pages/OAuthPage.tsx` (+6 -5) 📝 `src/pages/SystemPage.module.scss` (+27 -1) 📝 `src/pages/SystemPage.tsx` (+57 -10) ➕ `src/utils/clipboard.ts` (+39 -0) </details> ### 📄 Description ## Changes Centralized clipboard functionality into a reusable utility and added click-to-copy for model IDs on the System page. ### What's Changed - New `copyToClipboard` utility with fallback for older browsers - Refactored `AuthFilesPage`, `LogsPage`, `OAuthPage`, `SystemPage` to use the utility - Model tags on System page are now clickable to copy the model ID - Added i18n strings for clipboard actions (EN & ZH-CN) - Success/failure notifications with visual feedback ### Files Modified - `src/utils/clipboard.ts` - `src/pages/AuthFilesPage.tsx` - `src/pages/LogsPage.tsx` - `src/pages/OAuthPage.tsx` - `src/pages/SystemPage.tsx` - `src/pages/SystemPage.module.scss` - `src/i18n/locales/en.json` - `src/i18n/locales/zh-CN.json` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 16:42:24 +03: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
starred/Cli-Proxy-API-Management-Center#65
No description provided.