[Refactor] Reorganize config hooks into config_page_setter folder.

This commit is contained in:
Sakamoto Shiina
2025-11-05 15:15:09 +09:00
parent db820375f1
commit 5cbd7618e3
8 changed files with 11 additions and 28 deletions

View File

@@ -619,8 +619,16 @@ export const useTranslation = createCategoryHook("Translation");
export const useTranscription = createCategoryHook("Transcription");
export const useVr = createCategoryHook("Vr");
export const useOthers = createCategoryHook("Others");
// export const useHotkeys = createCategoryHook("Hotkeys");
export const useAdvancedSettings = createCategoryHook("AdvancedSettings");
// Exceptional exports that are not part of SETTINGS_ARRAY or have custom logic.
export { useHotkeys } from "./hotkeys/useHotkeys.js";
export { useSupporters } from "./supporters/useSupporters.js";
export { usePlugins } from "./plugins/usePlugins.js";
export { useSettingBoxScrollPosition } from "./_aux/useSettingBoxScrollPosition.js";
// If you later add other categories, you can either manually add:
// export const useDevice = createCategoryHook("Device");
// or uncomment the code below to auto-attach to module.exports (less ideal for tree-shaking).

View File

@@ -1,25 +0,0 @@
// export { useDevice } from "./device/useDevice";
// export { useAppearance } from "./appearance/useAppearance";
export {
useAppearance,
useDevice,
useOthers,
useTranscription,
useTranslation,
useVr,
// useHotkeys,
useAdvancedSettings,
} from "./config_page_setter/ui_config_setter.js";
// export { useOthers } from "./others/useOthers";
// export { useTranscription } from "./transcription/useTranscription";
// export { useTranslation } from "./translation/useTranslation";
// export { useVr } from "./vr/useVr";
export { useHotkeys } from "./hotkeys/useHotkeys";
// export { useAdvancedSettings } from "./advanced_settings/useAdvancedSettings";
export { useSupporters } from "./supporters/useSupporters";
export { usePlugins } from "./plugins/usePlugins";
export { useSettingBoxScrollPosition } from "./useSettingBoxScrollPosition";