mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-27 06:45:53 +03:00
[PR #825] [MERGED] feat(oauth2): add SVG icon support for OAuth2 providers #787
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#787
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/dreamhunter2333/cloudflare_temp_email/pull/825
Author: @dreamhunter2333
Created: 2/1/2026
Status: ✅ Merged
Merged: 2/1/2026
Merged by: @dreamhunter2333
Base:
main← Head:feature/email📝 Commits (1)
a24aa26feat(oauth2): add SVG icon support for OAuth2 providers📊 Changes
6 files changed (+59 additions, -3 deletions)
View changed files
📝
frontend/src/models/index.ts(+1 -0)📝
frontend/src/store/index.js(+1 -1)📝
frontend/src/views/admin/UserOauth2Settings.vue(+37 -0)📝
frontend/src/views/user/UserLogin.vue(+16 -0)📝
worker/src/models/index.ts(+1 -0)📝
worker/src/user_api/settings.ts(+3 -2)📄 Description
User description
Summary
iconfield to UserOauth2Settings type for SVG iconsChanges
worker/src/models/index.ts- Addicon?: stringfieldfrontend/src/models/index.ts- Addicon?: stringfieldworker/src/user_api/settings.ts- Return icon in API responsefrontend/src/store/index.js- Update type annotationfrontend/src/views/admin/UserOauth2Settings.vue- Add icon config UIfrontend/src/views/user/UserLogin.vue- Render OAuth iconsTest plan
🤖 Generated with Claude Code
PR Type
Enhancement
Description
Added optional
iconfield toUserOauth2Settingsfor SVG icons.Integrated preset SVG icons for GitHub, Linux Do, and Authentik templates.
Updated UI to display and configure OAuth2 icons in admin panel.
Rendered OAuth2 icons on login buttons in the user login page.
Diagram Walkthrough
File Walkthrough
UserOauth2Settings.vue
Add and preview OAuth2 icons in admin panelfrontend/src/views/admin/UserOauth2Settings.vue
iconandiconPreviewfields for OAuth2 settings.OAUTH2_ICONSwith preset SVG icons for providers..oauth2-icon-previewclass.UserLogin.vue
Display OAuth2 icons on login buttonsfrontend/src/views/user/UserLogin.vue
item.icon..oauth2-iconclass for consistent display.index.ts
Extend `UserOauth2Settings` with `icon` fieldfrontend/src/models/index.ts
iconfield toUserOauth2Settingstype.index.ts
Extend `UserOauth2Settings` with `icon` fieldworker/src/models/index.ts
iconfield toUserOauth2Settingstype.settings.ts
Include `icon` in OAuth2 API responseworker/src/user_api/settings.ts
iconin OAuth2 settings API response.iconfield in API logic.index.js
Update `oauth2ClientIDs` type annotation for iconsfrontend/src/store/index.js
oauth2ClientIDsto include optionalicon.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.