[PR #3968] [MERGED] Splitted the user settings code into several files to be more maintainable #17171

Closed
opened 2025-11-02 12:28:19 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3968
Author: @daviian
Created: 5/15/2018
Status: Merged
Merged: 5/17/2018
Merged by: @lunny

Base: masterHead: refactor-settings-code


📝 Commits (6)

📊 Changes

12 files changed (+950 additions, -842 deletions)

View changed files

📝 routers/org/setting.go (+2 -2)
📝 routers/routes/routes.go (+26 -25)
routers/user/setting.go (+0 -808)
routers/user/setting/account.go (+174 -0)
📝 routers/user/setting/account_test.go (+3 -3)
routers/user/setting/applications.go (+77 -0)
routers/user/setting/keys.go (+149 -0)
routers/user/setting/main_test.go (+16 -0)
routers/user/setting/profile.go (+220 -0)
routers/user/setting/security.go (+92 -0)
📝 routers/user/setting/security_openid.go (+4 -4)
routers/user/setting/security_twofa.go (+187 -0)

📄 Description

splitted up one huge router settings file into smaller files representing the actual page structure

No functionality changed. Just moved code from one file to others.


🔄 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/go-gitea/gitea/pull/3968 **Author:** [@daviian](https://github.com/daviian) **Created:** 5/15/2018 **Status:** ✅ Merged **Merged:** 5/17/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `refactor-settings-code` --- ### 📝 Commits (6) - [`11880ad`](https://github.com/go-gitea/gitea/commit/11880adeb7caa34a40ba7c14086ac8dea8092db0) refactor setting router code - [`a5f8c84`](https://github.com/go-gitea/gitea/commit/a5f8c842160a5d00c256aa464a4c0426ff1932d1) move code to subfolder - [`aab9e64`](https://github.com/go-gitea/gitea/commit/aab9e6426e03f9b4f06e68281f44c0a377d3e034) rename functions - [`df8d4a7`](https://github.com/go-gitea/gitea/commit/df8d4a74a5535ddc0a5068f108699adb37cad3fa) renamed files - [`2f9131e`](https://github.com/go-gitea/gitea/commit/2f9131ea501a5295dea5e878370a26cf7a03503c) add copyright information - [`eb78ae2`](https://github.com/go-gitea/gitea/commit/eb78ae27bf98866cfe28e446654f50b7a4b4d858) Merge branch 'master' into refactor-settings-code ### 📊 Changes **12 files changed** (+950 additions, -842 deletions) <details> <summary>View changed files</summary> 📝 `routers/org/setting.go` (+2 -2) 📝 `routers/routes/routes.go` (+26 -25) ➖ `routers/user/setting.go` (+0 -808) ➕ `routers/user/setting/account.go` (+174 -0) 📝 `routers/user/setting/account_test.go` (+3 -3) ➕ `routers/user/setting/applications.go` (+77 -0) ➕ `routers/user/setting/keys.go` (+149 -0) ➕ `routers/user/setting/main_test.go` (+16 -0) ➕ `routers/user/setting/profile.go` (+220 -0) ➕ `routers/user/setting/security.go` (+92 -0) 📝 `routers/user/setting/security_openid.go` (+4 -4) ➕ `routers/user/setting/security_twofa.go` (+187 -0) </details> ### 📄 Description splitted up one huge router settings file into smaller files representing the actual page structure No functionality changed. Just moved code from one file to others. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:28:19 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17171