[PR #2732] [MERGED] Code refactoring #5255

Closed
opened 2026-10-31 20:45:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2732
Author: @sh1shd
Created: 3/7/2025
Status: ✅ Merged
Merged: 3/7/2025
Merged by: @MHSanaei

Base: main ← Head: refactor/refactor-1


📝 Commits (3)

  • 7483fb2 refactor: delete base64js
  • 26bf693 refactor: move copy function to utils.js
  • 0a207b8 refactor: merging all util functions into classes

📊 Changes

18 files changed (+307 additions, -325 deletions)

View changed files

➖ web/assets/base64/base64.min.js (+0 -1)
📝 web/assets/js/langs.js (+5 -5)
📝 web/assets/js/model/dbinbound.js (+2 -2)
📝 web/assets/js/model/inbound.js (+10 -10)
➖ web/assets/js/util/common.js (+0 -212)
📝 web/assets/js/util/date-util.js (+2 -2)
📝 web/assets/js/util/index.js (+191 -0)
📝 web/html/common/js.html (+1 -2)
📝 web/html/common/qrcode_modal.html (+9 -7)
📝 web/html/common/text_modal.html (+6 -4)
📝 web/html/xui/form/client.html (+4 -4)
📝 web/html/xui/inbound_client_table.html (+11 -11)
📝 web/html/xui/inbound_info_modal.html (+18 -16)
📝 web/html/xui/inbounds.html (+26 -27)
📝 web/html/xui/index.html (+14 -14)
📝 web/html/xui/settings.html (+1 -1)
📝 web/html/xui/warp_modal.html (+3 -3)
📝 web/html/xui/xray.html (+4 -4)

📄 Description

What is a pull request?

A little code refactoring was done in this pull request:

  • The base64js library was removed and the standard JS functions window.atob() and window.btoa() are used instead.
  • All utils functions (except date utils functions) were moved to one file and distributed by classes.

🔄 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/MHSanaei/3x-ui/pull/2732 **Author:** [@sh1shd](https://github.com/sh1shd) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/7/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `refactor/refactor-1` --- ### 📝 Commits (3) - [`7483fb2`](https://github.com/MHSanaei/3x-ui/commit/7483fb2ec57055f5f4f0fb14e559a87a5c2106f9) refactor: delete `base64js` - [`26bf693`](https://github.com/MHSanaei/3x-ui/commit/26bf693dbdc2db0222ee37615e353f7ca1fdd3c1) refactor: move copy function to utils.js - [`0a207b8`](https://github.com/MHSanaei/3x-ui/commit/0a207b8a2c0629b7f1996025a40a10fbe58d05d0) refactor: merging all util functions into classes ### 📊 Changes **18 files changed** (+307 additions, -325 deletions) <details> <summary>View changed files</summary> ➖ `web/assets/base64/base64.min.js` (+0 -1) 📝 `web/assets/js/langs.js` (+5 -5) 📝 `web/assets/js/model/dbinbound.js` (+2 -2) 📝 `web/assets/js/model/inbound.js` (+10 -10) ➖ `web/assets/js/util/common.js` (+0 -212) 📝 `web/assets/js/util/date-util.js` (+2 -2) 📝 `web/assets/js/util/index.js` (+191 -0) 📝 `web/html/common/js.html` (+1 -2) 📝 `web/html/common/qrcode_modal.html` (+9 -7) 📝 `web/html/common/text_modal.html` (+6 -4) 📝 `web/html/xui/form/client.html` (+4 -4) 📝 `web/html/xui/inbound_client_table.html` (+11 -11) 📝 `web/html/xui/inbound_info_modal.html` (+18 -16) 📝 `web/html/xui/inbounds.html` (+26 -27) 📝 `web/html/xui/index.html` (+14 -14) 📝 `web/html/xui/settings.html` (+1 -1) 📝 `web/html/xui/warp_modal.html` (+3 -3) 📝 `web/html/xui/xray.html` (+4 -4) </details> ### 📄 Description ### What is a pull request? A little code refactoring was done in this pull request: - The `base64js` library was removed and the standard JS functions `window.atob()` and `window.btoa()` are used instead. - All utils functions (except date utils functions) were moved to one file and distributed by classes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:45:44 +07: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
MHSanaei/3x-ui#5255
No description provided.