mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-26 23:26:59 +00:00
docs: enhance comments and documentation for KuGou/KGG settings
- Added detailed comments and documentation for KuGou/KGG key formats and settings in keyFormats.ts, persistSettings.ts, settingsSelector.ts, settingsSlice.ts, and settingsTabs.tsx. - Improved clarity on UI route identifiers and Redux persist keys for better understanding and maintenance.
This commit is contained in:
1 parent
75d786c747
commit
a9a937bc5e
7 files changed
+335
-99
No files matched your search
@@ -5,6 +5,15 @@ import { PanelKWMv2Key } from '~/features/settings/panels/PanelKWMv2Key.tsx';
|
||||
import { PanelKGGKey } from '~/features/settings/panels/PanelKGGKey.tsx';
|
||||
import { PanelQingTing } from '~/features/settings/panels/PanelQingTing.tsx';
|
||||
|
||||
/**
|
||||
* Settings UI route ids → panels.
|
||||
*
|
||||
* Naming aliases (route vs Redux / persist):
|
||||
* - `qmc` ↔ state `qmc2`
|
||||
* - `kwm` ↔ state `kwm2`
|
||||
* - `kgg` ↔ state `kugou` (persist key stays `kugou`; Phase 2 may align paths)
|
||||
* - `qtfm` ↔ state `qtfm`
|
||||
*/
|
||||
export const SETTINGS_TABS: Record<string, { name: string; Tab: FC }> = {
|
||||
general: { name: '通用设置', Tab: PanelGeneral },
|
||||
qmc: { name: 'QMCv2 密钥', Tab: PanelQMCv2Key },
|
||||
|
||||
Reference in new issue
Block a user