Tunglies
74b1687be9
feat: implement git-hook using cargo make and add Makefile.toml ( #5498 )
...
* feat: implement pre-push checks using cargo make and add Makefile.toml for task management
* feat: enhance Makefile.toml with condition checks for tasks and improve clippy args
* fix: update file patterns for format-check task in Makefile.toml
* feat: update file patterns for eslint and typecheck tasks in Makefile.toml
* feat: refactor Makefile.toml to consolidate Rust tasks and update pre-commit checks
* feat: update Makefile.toml to add i18n-check and lint-staged tasks; modify pre-commit script
* feat: update Makefile.toml to add i18n-check and lint-staged tasks; modify pre-commit script
* refactor: simplify Makefile.toml by removing unused conditions and consolidating dependencies
* feat: update Makefile.toml to define Rust and frontend tasks for pre-commit and pre-push checks
* chore: remove unnecessary tasks
* chore: add windows override
* chore: remove format and format-check
---------
Co-authored-by: Slinetrac <realakayuki@gmail.com >
2026-01-26 07:21:02 +00:00
Slinetrac
34793f9880
chore(husky): support cargo workspace
2025-12-13 20:28:25 +08:00
Tunglies
7f2bced0d4
fix: remove unnecessary exit statement from pre-push script
2025-11-15 08:58:52 +08:00
Sline
c8aa72186e
chore: i18n ( #5276 )
...
* chore: notice i18n
* feat: add script to clean up unused i18n keys
* chore: cleanup i18n keys
* refactor(i18n/proxies): migrate proxies UI to structured locale keys
* chore: i18n for rule module
* chore: i18n for profile module
* chore: i18n for connections module
* chore: i18n for settings module
* chore: i18n for verge settings
* chore: i18n for theme settings
* chore: i18n for theme
* chore(i18n): components.home.*
* chore(i18n): remove unused i18n keys
* chore(i18n): components.profile.*
* chore(i18n): components.connection
* chore(i18n): pages.logs.*
* chore(i18n): pages.*.provider
* chore(i18n): components.settings.externalCors.*
* chore(i18n): components.settings.clash.*
* chore(i18n): components.settings.liteMode.*
* chore(i18n): components.settings.backup.*
* chore(i18n): components.settings.clash.port.*
* chore(i18n): components.settings.misc.*
* chore(i18n): components.settings.update.*
* chore(i18n): components.settings.sysproxy.*
* chore(i18n): components.settings.sysproxy.*
* chore(i18n): pages.profiles.notices/components.providers.notices
* refactor(notice): unify showNotice usage
* refactor(notice): add typed showNotice shortcuts, centralize defaults, and simplify subscriptions
* refactor: unify showNotice usage
* refactor(notice): unify showNotice API
* refactor(notice): unify showNotice usage
* chore(i18n): components.test.*
* chore(i18n): components.settings.dns.*
* chore(i18n): components.home.clashInfo.*
* chore(i18n): components.home.systemInfo.*
* chore(i18n): components.home.ipInfo/traffic.*
* chore(i18n): navigation.*
* refactor(i18n): remove pages.* namespace and migrate route texts under module-level page keys
* chore(i18n): common.*
* chore(i18n): common.*
* fix: change error handling in patch_profiles_config to return false when a switch is in progress
* fix: improve error handling in patch_profiles_config to prevent requests during profile switching
* fix: change error handling in patch_profiles_config to return false when a switch is in progress
fix: ensure CURRENT_SWITCHING_PROFILE is reset after config updates in perform_config_update and patch_profiles_config
* chore(i18n): restructure root-level locale keys into namespaces
* chore(i18n): add missing i18n keys
* docs: i18n guide
* chore: adjust i18n
* refactor(i18n): align UI actions and status labels with common keys
* refactor(i18n): unify two-name locale namespaces
* refactor(i18n/components): unify locale keys and update component references
* chore(i18n): add shared and entities namespaces to all locale files
* refactor(i18n): consolidate shared and entity namespaces across features
* chore(deps): update npm dependencies to ^7.3.5 (#5310 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* refactor(i18n): migrate shared editor modes and consolidate entities namespaces
* tmp
* refactor(i18n): flatten locales and move theme/validation strings
* docs: CONTRIBUTING_i18n.md
* refactor(i18n): restructure feedback and profile namespaces for better organization
* refactor(i18n): unify settings locale structure and update references
* refactor(i18n): reorganize locale keys for home, proxies, rules, connections, logs, unlock, and tests
* refactor(i18n/feedback/layout): unify shared toasts & normalize layout namespace
* refactor(i18n): centralize common UI strings in shared
* refactor(i18n): flatten headers and unify locale schema
* refactor(i18n): consolidate duplicate per-feature translations into shared namespace
* refactor(i18n): split locales into per-namespace files
* style: lint
* refactor(i18n): unify unlock UI translations under tests namespace
* feat(i18n): add type-checked translation keys
* style: eslint import order
* feat(i18n): replace ad-hoc loader with rust-i18n backend bundles
* chore(prebuild): remove locale-copy step
* fix(i18n, notice): propagate runtime params and update cleanup script path
* fix(i18n,notice): make locale formatting idempotent and guard early notice translations
* fix(i18n): resolve locale aliases and match OS codes correctly
* fix(unlock): use i18next-compatible double-brace interpolation in failure notice
* fix(i18n): route unlock error notices through translation keys
* fix(i18n): i18n types
* feat(i18n): localize upgrade notice for Clash core viewer
* fix(notice): ensure runtime overrides apply to prefix translations
* chore(i18n): replace literal notices with translation keys
* chore(i18n): types
* chore(i18n): regen typings before formatting to keep keys in sync
* chore(i18n): simply labels
* chore(i18n): adjust translation
* chore: remove eslint-plugin-i18next
* chore(i18n): add/refine Korean translations across frontend scopes and Rust backend (#5341 )
* chore(i18n): translate settings.json (missed in previous pass) (#5343 )
* chore(i18n): add/refine Korean translations across frontend scopes and Rust backend
* chore(i18n): add/refine Korean translations across frontend scopes and Rust backend
* fix(i18n-tauri): quote placeholder-leading value in ko.yml to prevent rust_i18n parse panic
* chore(i18n): translate settings.json (forgot to include previously)
---------
Co-authored-by: rozan <34974262+thelojan@users.noreply.github.com >
2025-11-08 19:40:38 +08:00
Tunglies
d3d32006c3
feat: add logging check to pre-commit and CI workflow
2025-11-01 21:22:41 +08:00
Slinetrac
95aee6ec81
chore: better pre-hooks
2025-10-22 00:08:16 +08:00
Tunglies
02b44d83af
chore: replace pre-commit hook with cargo alias
2025-10-14 18:21:25 +08:00
Slinetrac
f5c2b2a23d
chore: light hook
2025-10-09 10:29:20 +08:00
Slinetrac
9d47bc66c4
chore: unify hook behavior to prevent cross-platform CI failures
2025-10-08 08:12:16 +08:00
Slinetrac
86b4712beb
chore: more friendly lint
2025-10-07 18:28:32 +08:00
Slinetrac
0d12103085
chore: add lint-staged and edit pre-commit
2025-10-07 18:02:37 +08:00
Sukka
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
Tunglies
e1bb8aa125
chore(pre-push): update comments for clarity and refine format check condition
2025-06-27 00:36:00 +08:00
希亚的西红柿
6d519dac1e
fix: auto light-weight mode doesn't take effect in silent-start mode ( #3875 )
...
* fix: auto light-weight mode does not take effect when silent-start mode is enabled
* refactor: streamline window state retrieval and hiding logic
* fix: add checks for remote name and existence before format check in pre-push hook
* fix: simplify remote checks in pre-push hook to enhance clarity and maintainability
---------
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com >
2025-06-23 23:13:31 +08:00
Tunglies
357b64e9a0
feat: enhance pre-push hook to include remote URL check and improve format check messaging
2025-06-18 18:56:03 +08:00
Tunglies
f3ad6cee41
feat: add code format check in pre-push hook
2025-06-18 18:55:53 +08:00
Tunglies
41ba8f6c7a
fix: streamline pre-push hook to run clippy only for src-tauri changes
2025-06-14 02:47:15 +08:00
wonfen
d05b1c3130
feat: clean up redundant profiles files
2025-06-09 13:48:38 +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
Tunglies
420b0a254a
feat: add formatting command to package.json and update pre-commit hook for cargo fmt
2025-05-20 22:58:25 +08:00
wonfen
62141380d8
chore: update dependencies and bug report template
2025-03-31 03:24:36 +08:00
Tunglies
971dd6a2cf
fea: optimize vite chunk splitting
2025-03-27 05:09:36 +08:00
Tunglies
42db9ea0bb
chore: enable pre-commit for Rust formatting, pre-push for Rust linter check
2025-03-26 18:59:31 +08:00
wonfen
16d5077f55
perf: optimize CPU and memory usage of homepage traffic chart
2025-03-16 14:34:29 +08:00
Tunglies
b57c6e408a
chore: git hooks for linter and formatter
2025-03-13 12:51:20 +08:00
huzibaca
5057221f59
chore: update husky/pre-commit
2025-01-13 13:03:46 +08:00
keiko233
c4bc9aea22
chore: test: use pnpm
2023-11-13 14:49:28 +08:00
GyDi
8b41dfe94f
chore: add x
2022-11-02 00:57:27 +08:00
GyDi
afa56e916e
chore: add husky
2021-12-25 17:04:55 +08:00