Commit Graph
20 Commits
Author SHA1 Message Date
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 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
954ff53d9b refactor: use React in its intended way (#3963)
* refactor: replace `useEffect` w/ `useLocalStorage`

* refactor: replace `useEffect` w/ `useSWR`

* refactor: replace `useEffect` and `useSWR`. clean up `useRef`

* refactor: use `requestIdleCallback`

* refactor: replace `useEffect` w/ `useMemo`

* fix: clean up `useEffect`

* refactor: replace `useEffect` w/ `useSWR`

* refactor: remove unused `useCallback`

* refactor: enhance performance and memory management in frontend processes

* refactor: improve pre-push script structure and readability

---------

Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
Co-authored-by: Tunglies <tunglies.dev@outlook.com>
2025-07-02 23:34:13 +08:00
Christine. 17af292761 fix: connection details (#2778) 2025-02-27 14:53:17 +08:00
wonfen 0122e2bdcf feat: Add persistent column width settings for connection table & process filtering 2025-02-18 11:04:22 +08:00
Christine. d895b68f04 fix: use remoteDestination replace DestinationIP in connection page, #2668 (#2679)
* fix: use remoteDestination replace DestinationIP  in connection page, #2668

* add: missing i18n text

* fix: display the target address details in connection page
2025-02-11 14:52:27 +08:00
wonfen db593fb188 feat: Optimize UI layout and page hierarchy 2025-02-07 09:13:30 +08:00
dongchengjie 04be747d52 chore: fix connection table bg 2024-06-23 20:40:09 +08:00
dongchengjie 6cba6166fb chore: fix table header bg in connections 2024-06-20 02:01:51 +08:00
dongchengjie af89630095 fix: resizing reset when data changes 2024-06-17 13:03:47 +08:00
MystiPanda d89eecacba chore: update depends 2024-06-17 10:46:18 +08:00
dongchengjie a371cd1d79 chore: update locale in connection 2024-05-20 13:42:45 +08:00
MystiPanda 73a597e3e5 fix: Fix connection table sort error
#108
2024-01-17 12:54:54 +08:00
MystiPanda b7d3b807d2 fix: fix column width 2024-01-16 19:02:38 +08:00
MystiPanda 6d3ea19ac5 fix: Fix connections sort issue and add total traffic info 2024-01-15 00:46:19 +08:00
GyDi a6f2ce4bdd fix: rm debug code 2023-08-12 19:16:20 +08:00
GyDi 2ce944034d feat: supports show connection detail 2023-08-05 16:52:14 +08:00
whitemirror33 73b980c6a9 feat: update connection table with wider process column and click to show full detail (#696) 2023-08-04 14:36:28 +08:00
GyDi 5fb1afc681 chore: adjust type 2022-11-19 17:22:29 +08:00
GyDi 008b92acb2 feat: show connections with table layout 2022-09-25 01:35:21 +08:00