[PR #2865] [MERGED] Code refactoring #5285

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

📋 Pull Request Information

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

Base: main ← Head: refactor/refactor-6


📝 Commits (10+)

  • e801218 refactor: use vue inline styles in entire application
  • 0725a08 refactor: setting row in dashboard page
  • 52a3389 refactor: use blob for download file in text modal
  • cd3760e refactor: move all html templates in web/html folder
  • 07ac755 refactor: DeviceUtils -> MediaQueryMixin
  • e75cec7 chore: pretty right buttons in outbounds tab in xray settings
  • e132b29 refactor: add translations for system status
  • 3aca18c refactor: adjust gutter spacing in setting list item
  • 1243a3c refactor: use native a-input-password for password field
  • bf6350c chore: return old system status

📊 Changes

76 files changed (+570 additions, -473 deletions)

View changed files

📝 web/assets/js/util/index.js (+38 -25)
📝 web/html/component/aClientTable.html (+26 -26)
📝 web/html/component/aCustomStatistic.html (+0 -0)
📝 web/html/component/aPersianDatepicker.html (+1 -1)
📝 web/html/component/aSettingListItem.html (+1 -1)
📝 web/html/component/aSidebar.html (+0 -0)
📝 web/html/component/aTableSortable.html (+1 -1)
📝 web/html/component/aThemeSwitch.html (+2 -2)
📝 web/html/form/allocate.html (+0 -0)
📝 web/html/form/client.html (+2 -2)
📝 web/html/form/inbound.html (+1 -1)
📝 web/html/form/outbound.html (+9 -9)
📝 web/html/form/protocol/dokodemo.html (+0 -0)
📝 web/html/form/protocol/http.html (+5 -5)
📝 web/html/form/protocol/shadowsocks.html (+1 -1)
📝 web/html/form/protocol/socks.html (+5 -5)
📝 web/html/form/protocol/trojan.html (+1 -1)
📝 web/html/form/protocol/vless.html (+2 -2)
📝 web/html/form/protocol/vmess.html (+0 -0)
📝 web/html/form/protocol/wireguard.html (+2 -2)

...and 56 more files

📄 Description

What is a pull request?

This pull request is aimed at improving the code. Here are the changes made:

  1. The class DeviceUtils has been converted to mixin MediaQueryMixin. Now the value of isMobile changes when the screen size changes.
  2. The text modal now uses the Blob class to generate and load the file.
  3. HTML templates have been restructured.
  4. The style attribute has been rewritten in the templates. It was changed to use Vue inline style.
  5. Added missing translations.

🔄 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/2865 **Author:** [@sh1shd](https://github.com/sh1shd) **Created:** 4/4/2025 **Status:** ✅ Merged **Merged:** 4/6/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `refactor/refactor-6` --- ### 📝 Commits (10+) - [`e801218`](https://github.com/MHSanaei/3x-ui/commit/e8012181505b51288de42738313efef3733404b2) refactor: use vue inline styles in entire application - [`0725a08`](https://github.com/MHSanaei/3x-ui/commit/0725a084bde8fa6108261d604fd9cbd7f64dd0a1) refactor: setting row in dashboard page - [`52a3389`](https://github.com/MHSanaei/3x-ui/commit/52a3389053e511b84ea67d2c0c162b2949c1acb0) refactor: use blob for download file in text modal - [`cd3760e`](https://github.com/MHSanaei/3x-ui/commit/cd3760e65095d430582b55eb462b837c1d3b7c34) refactor: move all html templates in `web/html` folder - [`07ac755`](https://github.com/MHSanaei/3x-ui/commit/07ac7556171d02fe8c94d19ac4c2fc1a05ede7a3) refactor: `DeviceUtils` -> `MediaQueryMixin` - [`e75cec7`](https://github.com/MHSanaei/3x-ui/commit/e75cec719bb7e025445a43219e0cf693b8470fb8) chore: pretty right buttons in `outbounds` tab in xray settings - [`e132b29`](https://github.com/MHSanaei/3x-ui/commit/e132b2948554563d28b0f85bc9018cb8f7f34469) refactor: add translations for system status - [`3aca18c`](https://github.com/MHSanaei/3x-ui/commit/3aca18c9de7324408bdd6204e46e71d0f243c421) refactor: adjust gutter spacing in setting list item - [`1243a3c`](https://github.com/MHSanaei/3x-ui/commit/1243a3cfe81d85666c4714ee09886af756c47a4d) refactor: use native `a-input-password` for password field - [`bf6350c`](https://github.com/MHSanaei/3x-ui/commit/bf6350c0a3c74303144770cf670f12fd01bedc7a) chore: return old system status ### 📊 Changes **76 files changed** (+570 additions, -473 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/util/index.js` (+38 -25) 📝 `web/html/component/aClientTable.html` (+26 -26) 📝 `web/html/component/aCustomStatistic.html` (+0 -0) 📝 `web/html/component/aPersianDatepicker.html` (+1 -1) 📝 `web/html/component/aSettingListItem.html` (+1 -1) 📝 `web/html/component/aSidebar.html` (+0 -0) 📝 `web/html/component/aTableSortable.html` (+1 -1) 📝 `web/html/component/aThemeSwitch.html` (+2 -2) 📝 `web/html/form/allocate.html` (+0 -0) 📝 `web/html/form/client.html` (+2 -2) 📝 `web/html/form/inbound.html` (+1 -1) 📝 `web/html/form/outbound.html` (+9 -9) 📝 `web/html/form/protocol/dokodemo.html` (+0 -0) 📝 `web/html/form/protocol/http.html` (+5 -5) 📝 `web/html/form/protocol/shadowsocks.html` (+1 -1) 📝 `web/html/form/protocol/socks.html` (+5 -5) 📝 `web/html/form/protocol/trojan.html` (+1 -1) 📝 `web/html/form/protocol/vless.html` (+2 -2) 📝 `web/html/form/protocol/vmess.html` (+0 -0) 📝 `web/html/form/protocol/wireguard.html` (+2 -2) _...and 56 more files_ </details> ### 📄 Description ### What is a pull request? This pull request is aimed at improving the code. Here are the changes made: 1. The class `DeviceUtils` has been converted to mixin `MediaQueryMixin`. Now the value of `isMobile` changes when the screen size changes. 2. The text modal now uses the `Blob` class to generate and load the file. 3. HTML templates have been restructured. 4. The `style` attribute has been rewritten in the templates. It was changed to use Vue inline style. 6. Added missing translations. --- <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:55 +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#5285
No description provided.