[PR #944] [MERGED] feat: config history #8286

Closed
opened 2026-03-12 23:47:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/0xJacky/nginx-ui/pull/944
Author: @0xJacky
Created: 4/6/2025
Status: Merged
Merged: 4/6/2025
Merged by: @0xJacky

Base: devHead: feat/config-history


📝 Commits (5)

  • 57b8dfd feat: config history
  • 530ef8e chore: update translations
  • 5864185 feat(config): restore to history version
  • 8f7574f fix(tls): no certificate available
  • 300381f chore(demo): update db

📊 Changes

33 files changed (+2889 additions, -1211 deletions)

View changed files

📝 .devcontainer/docker-compose.yml (+2 -3)
api/config/history.go (+13 -0)
📝 api/config/modify.go (+6 -0)
📝 api/config/router.go (+2 -0)
📝 app/components.d.ts (+2 -0)
📝 app/src/api/config.ts (+17 -0)
app/src/components/ConfigHistory/ConfigHistory.vue (+211 -0)
app/src/components/ConfigHistory/DiffViewer.vue (+462 -0)
app/src/components/ConfigHistory/index.ts (+5 -0)
📝 app/src/language/ar/app.po (+166 -94)
📝 app/src/language/de_DE/app.po (+165 -91)
📝 app/src/language/en/app.po (+166 -95)
📝 app/src/language/es/app.po (+166 -94)
📝 app/src/language/fr_FR/app.po (+166 -95)
📝 app/src/language/ko_KR/app.po (+166 -94)
📝 app/src/language/messages.pot (+161 -95)
📝 app/src/language/ru_RU/app.po (+166 -94)
📝 app/src/language/tr_TR/app.po (+166 -94)
📝 app/src/language/vi_VN/app.po (+166 -95)
📝 app/src/language/zh_CN/app.po (+161 -95)

...and 13 more files

📄 Description

When the configuration is modified, it will automatically backup. An additional list of historical records is provided to facilitate the selection of differences in file contents for comparison.

Close #610


🔄 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/0xJacky/nginx-ui/pull/944 **Author:** [@0xJacky](https://github.com/0xJacky) **Created:** 4/6/2025 **Status:** ✅ Merged **Merged:** 4/6/2025 **Merged by:** [@0xJacky](https://github.com/0xJacky) **Base:** `dev` ← **Head:** `feat/config-history` --- ### 📝 Commits (5) - [`57b8dfd`](https://github.com/0xJacky/nginx-ui/commit/57b8dfd2f940dde538e3bdecdbb755217c2a13ea) feat: config history - [`530ef8e`](https://github.com/0xJacky/nginx-ui/commit/530ef8e12f0b2a1ab511a94d1f909fc95fa5daed) chore: update translations - [`5864185`](https://github.com/0xJacky/nginx-ui/commit/586418561541010ebb9a7078ec424ce5d043fa27) feat(config): restore to history version - [`8f7574f`](https://github.com/0xJacky/nginx-ui/commit/8f7574f21200caddef8aa1e0bc72f652a70b0e87) fix(tls): no certificate available - [`300381f`](https://github.com/0xJacky/nginx-ui/commit/300381f2f7e62b05c74e4d6a5fb6d481c23439db) chore(demo): update db ### 📊 Changes **33 files changed** (+2889 additions, -1211 deletions) <details> <summary>View changed files</summary> 📝 `.devcontainer/docker-compose.yml` (+2 -3) ➕ `api/config/history.go` (+13 -0) 📝 `api/config/modify.go` (+6 -0) 📝 `api/config/router.go` (+2 -0) 📝 `app/components.d.ts` (+2 -0) 📝 `app/src/api/config.ts` (+17 -0) ➕ `app/src/components/ConfigHistory/ConfigHistory.vue` (+211 -0) ➕ `app/src/components/ConfigHistory/DiffViewer.vue` (+462 -0) ➕ `app/src/components/ConfigHistory/index.ts` (+5 -0) 📝 `app/src/language/ar/app.po` (+166 -94) 📝 `app/src/language/de_DE/app.po` (+165 -91) 📝 `app/src/language/en/app.po` (+166 -95) 📝 `app/src/language/es/app.po` (+166 -94) 📝 `app/src/language/fr_FR/app.po` (+166 -95) 📝 `app/src/language/ko_KR/app.po` (+166 -94) 📝 `app/src/language/messages.pot` (+161 -95) 📝 `app/src/language/ru_RU/app.po` (+166 -94) 📝 `app/src/language/tr_TR/app.po` (+166 -94) 📝 `app/src/language/vi_VN/app.po` (+166 -95) 📝 `app/src/language/zh_CN/app.po` (+161 -95) _...and 13 more files_ </details> ### 📄 Description When the configuration is modified, it will automatically backup. An additional list of historical records is provided to facilitate the selection of differences in file contents for comparison. Close #610 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-12 23:47:22 +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/nginx-ui#8286
No description provided.