Tunglies
1cd013fb94
Refactor components to remove forwardRef and simplify props handling
...
- Updated multiple components to remove the use of forwardRef, simplifying the props structure.
- Adjusted imports and component definitions accordingly.
- Ensured consistent handling of refs and props across various viewer components.
- Improved readability and maintainability of the codebase.
2025-09-30 14:26:40 +08:00
Tunglies
e414b49879
Refactor imports across multiple components for consistency and clarity
...
- Reorganized import statements in various components to ensure consistent ordering and grouping.
- Removed unnecessary imports and added missing ones where applicable.
- Improved readability and maintainability of the codebase by standardizing import styles.
2025-09-19 00:01:04 +08:00
Tunglies
627119bb22
Refactor imports and improve code organization across multiple components and hooks
...
- Consolidated and reordered imports in various files for better readability and maintainability.
- Removed unused imports and ensured consistent import styles.
- Enhanced the structure of components by grouping related imports together.
- Updated the layout and organization of hooks to streamline functionality.
- Improved the overall code quality by following best practices in import management.
2025-09-18 23:34:38 +08:00
Tunglies
324628dd3d
refactor: replace 'let' with 'const' for better variable scoping and immutability
2025-09-18 23:07:18 +08:00
Tunglies
475a09bb54
feat: comprehensive oxlint cleanup - remove unused code
...
🧹 Cleanup Summary:
- Fixed 83 oxlint warnings across 50+ files
- Removed unused imports, variables, and functions
- Maintained all functional code and error handling
- Improved bundle size and code maintainability
📝 Key Changes:
- Cleaned unused React hooks (useState, useEffect, useClashInfo)
- Removed unused Material-UI imports (useTheme, styled components)
- Deleted unused interfaces and type definitions
- Fixed spread operator usage and boolean casting
- Simplified catch parameters where appropriate
🎯 Files Modified:
- React components: home.tsx, settings, profiles, etc.
- Custom hooks: use-*.ts files
- Utility functions and type definitions
- Configuration files
✅ Result: 0 oxlint warnings (from 83 warnings)
🔧 All functionality preserved
📦 Reduced bundle size through dead code elimination
2025-08-22 18:48:56 +08:00
Tunglies
09969d95de
feat: add rustfmt configuration and CI workflow for code formatting
...
refactor: streamline formatting workflow by removing unused taplo steps and clarifying directory change
refactor: remove unnecessary directory change step in formatting workflow
2025-06-06 22:13:11 +08:00
wonfen
8296675574
refactor: notification system
2025-05-04 22:17:08 +08:00
Tunglies
f6023dc618
fix: macOS-specific TUN device name on macOS
2025-04-27 16:33:15 +08:00
wonfen
c88f2099c1
chore: Change default TUN stack from 'mixed' to 'gvisor'
2025-02-24 23:10:09 +08:00
wonfen
609df5b4a6
chore: set tun default stack
2024-11-28 04:22:13 +08:00
MystiPanda
8690b91632
chore: disable browser autocomplete
2024-07-07 11:16:59 +08:00
MystiPanda
c424e9dec8
chore: disable autocomplete
2024-07-02 19:02:05 +08:00
MystiPanda
28ab08a7ca
refactor: change core binary name
2024-06-19 10:04:28 +08:00
RikudouPatrickstar
2f7c3cf21e
chore: update notification message and zh translation ( #1011 )
2024-05-12 14:40:18 +08:00
MystiPanda
4d3674ee0a
fix: enhance when change tun config
2024-05-04 16:12:10 +08:00
MystiPanda
deccff623a
fix: default value for tun
2024-04-20 17:42:36 +08:00
MystiPanda
d13b8fd486
refactor: change default value of mtu
2024-04-18 10:27:09 +08:00
Amnesiash
3a0429d049
refactor: Upgrade to the new UI ( #521 )
...
Co-authored-by: MystiPanda <mystipanda@proton.me >
2024-03-09 21:37:21 +08:00
MystiPanda
6136f1206b
feat: add reset button
2024-02-22 00:19:45 +08:00
MystiPanda
2b074bcdcb
chore: change default value of dns hijack
2024-02-21 16:40:47 +08:00
MystiPanda
b20ec7f0eb
chore: change default value of strict route
2024-02-21 11:32:51 +08:00
MystiPanda
a68005d4ab
feat: Disable system stack when service mode is turned off
2024-02-21 10:52:03 +08:00
MystiPanda
bf3a281987
fix: Config data display error
...
#417
2024-02-21 10:02:28 +08:00
MystiPanda
7551b45da2
feat: Support Tun Config ( #416 )
2024-02-20 23:27:03 +08:00