[Refactor] Reorganize config hooks into config_page_setter folder.
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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";
|
||||
@@ -60,7 +60,7 @@ export default defineConfig(async () => {
|
||||
"@useI18n": path.resolve(__dirname, "locales/useI18n.js"),
|
||||
|
||||
"@useReceiveRoutes": path.resolve(__dirname, "src-ui/logics/useReceiveRoutes.js"),
|
||||
"@useStdoutToPython": path.resolve(__dirname, "src-ui/logics/useStdoutToPython.js"),
|
||||
"@useStdoutToPython": path.resolve(__dirname, "src-ui/logics/common/useStdoutToPython.js"),
|
||||
|
||||
"@ui_configs": path.resolve(__dirname, "src-ui/logics/ui_configs.js"),
|
||||
"@scss_mixins": path.resolve(__dirname, "src-ui/views/common_css/mixins.scss"),
|
||||
@@ -70,7 +70,7 @@ export default defineConfig(async () => {
|
||||
"@logics": path.resolve(__dirname, "src-ui/logics"),
|
||||
"@logics_common": path.resolve(__dirname, "src-ui/logics/common"),
|
||||
"@logics_main": path.resolve(__dirname, "src-ui/logics/main"),
|
||||
"@logics_configs": path.resolve(__dirname, "src-ui/logics/configs"),
|
||||
"@logics_configs": path.resolve(__dirname, "src-ui/logics/configs/config_page_setter/ui_config_setter.js"),
|
||||
|
||||
"@setting_box": path.resolve(__dirname, "src-ui/views/app/config_page/setting_section/setting_box/index.js"),
|
||||
"@common_components": path.resolve(__dirname, "src-ui/views/common_components/index.js"),
|
||||
|
||||
Reference in New Issue
Block a user