[Refactor] Organize files.

This commit is contained in:
Sakamoto Shiina
2025-06-10 20:36:16 +09:00
parent 66e9fc9126
commit f229d9ec95
29 changed files with 25 additions and 16 deletions

View File

@@ -11,18 +11,23 @@ import {
TransparencyController, TransparencyController,
CornerRadiusController, CornerRadiusController,
PluginsController, PluginsController,
} from "./_app_controllers/index.js"; } from "./_app_controllers";
import styles from "./App.module.scss";
import { WindowTitleBar } from "./window_title_bar/WindowTitleBar";
import { MainPage } from "./main_page/MainPage"; import { MainPage } from "./main_page/MainPage";
import { ConfigPage } from "./config_page/ConfigPage"; import { ConfigPage } from "./config_page/ConfigPage";
import { SplashComponent } from "./splash_component/SplashComponent";
import { UpdatingComponent } from "./updating_component/UpdatingComponent"; import {
import { ModalController } from "./modal_controller/ModalController"; WindowTitleBar,
import { SnackbarController } from "./snackbar_controller/SnackbarController"; SplashComponent,
import styles from "./App.module.scss"; UpdatingComponent,
ModalController,
SnackbarController,
AppErrorBoundary,
} from "./others";
import { useIsBackendReady, useIsSoftwareUpdating, useIsVrctAvailable, useWindow } from "@logics_common"; import { useIsBackendReady, useIsSoftwareUpdating, useIsVrctAvailable, useWindow } from "@logics_common";
import { AppErrorBoundary } from "./error_boundary/AppErrorBoundary";
export const App = () => { export const App = () => {
const { currentIsVrctAvailable } = useIsVrctAvailable(); const { currentIsVrctAvailable } = useIsVrctAvailable();

View File

@@ -12,5 +12,4 @@ export { Slider } from "./slider/Slider";
export { SwitchBox } from "./switch_box/SwitchBox"; export { SwitchBox } from "./switch_box/SwitchBox";
export { ThresholdComponent } from "./threshold_component/ThresholdComponent"; export { ThresholdComponent } from "./threshold_component/ThresholdComponent";
export { WordFilter, WordFilterListToggleComponent } from "./word_filter/WordFilter"; export { WordFilter, WordFilterListToggleComponent } from "./word_filter/WordFilter";
export { DownloadModels } from "./download_models/DownloadModels"; export { DownloadModels } from "./download_models/DownloadModels";
export { PluginsControlComponent } from "./plugins_control_component/PluginsControlComponent";

View File

@@ -2,7 +2,7 @@ import { useEffect, useRef, useState, useCallback } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { usePlugins } from "@logics_configs"; import { usePlugins } from "@logics_configs";
import styles from "./Plugins.module.scss"; import styles from "./Plugins.module.scss";
import { PluginsControlComponent } from "../_components/plugins_control_component/PluginsControlComponent"; import { PluginsControlComponent } from "./plugins_control_component/PluginsControlComponent";
import { useNotificationStatus } from "@logics_common"; import { useNotificationStatus } from "@logics_common";
import ExternalLink from "@images/external_link.svg?react"; import ExternalLink from "@images/external_link.svg?react";

View File

@@ -1,6 +1,5 @@
import React from "react"; import { SwitchBox } from "../../_components";
import { SwitchBox } from "../index"; import { _DownloadButton } from "../../_components/_atoms/_download_button/_DownloadButton";
import { _DownloadButton } from "../_atoms/_download_button/_DownloadButton";
import styles from "./PluginsControlComponent.module.scss"; import styles from "./PluginsControlComponent.module.scss";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";

View File

@@ -0,0 +1,6 @@
export { WindowTitleBar } from "./window_title_bar/WindowTitleBar.jsx";
export { SplashComponent } from "./splash_component/SplashComponent.jsx";
export { UpdatingComponent } from "./updating_component/UpdatingComponent.jsx";
export { ModalController } from "./modal_controller/ModalController.jsx";
export { SnackbarController } from "./snackbar_controller/SnackbarController.jsx";
export { AppErrorBoundary } from "./error_boundary/AppErrorBoundary.jsx";

View File

@@ -1,7 +1,7 @@
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import styles from "./SplashComponent.module.scss"; import styles from "./SplashComponent.module.scss";
import { StartUpProgressContainer } from "./start_up_progress_container/StartUpProgressContainer/"; import { StartUpProgressContainer } from "./start_up_progress_container/StartUpProgressContainer";
import { DownloadModelsContainer } from "./download_models_container/DownloadModelsContainer/"; import { DownloadModelsContainer } from "./download_models_container/DownloadModelsContainer";
import MegaphoneSvg from "@images/megaphone.svg?react"; import MegaphoneSvg from "@images/megaphone.svg?react";
import XMarkSvg from "@images/cancel.svg?react"; import XMarkSvg from "@images/cancel.svg?react";
import { useWindow } from "@logics_common"; import { useWindow } from "@logics_common";