[Update] (Affect to backend) Plugin System. Saveable if the plugin is enabled or not.

Add functions that merge plugins data.
This commit is contained in:
Sakamoto Shiina
2025-03-25 11:17:04 +09:00
parent 1e6c2762c2
commit 0148f9bee0
15 changed files with 229 additions and 134 deletions

View File

@@ -1,3 +1,4 @@
import { useRef } from "react";
import { useTranslation } from "react-i18next";
import {
@@ -29,6 +30,7 @@ export const App = () => {
const { currentIsBackendReady } = useIsBackendReady();
const { WindowGeometryController } = useWindow();
const { i18n } = useTranslation();
const fetchPluginsHasRunRef = useRef(false);
return (
<div className={styles.container}>
@@ -44,7 +46,7 @@ export const App = () => {
{(currentIsBackendReady.data === false || currentIsVrctAvailable.data === false)
? <SplashComponent />
: <Contents key={i18n.language}/>
: <Contents key={i18n.language} fetchPluginsHasRunRef={fetchPluginsHasRunRef} />
}
<SnackbarController />
@@ -52,11 +54,11 @@ export const App = () => {
);
};
const Contents = () => {
const Contents = ({ fetchPluginsHasRunRef }) => {
const { currentIsSoftwareUpdating } = useIsSoftwareUpdating();
return (
<>
<PluginsController />
<PluginsController fetchPluginsHasRunRef={fetchPluginsHasRunRef} />
<SubtitlesController />
<WindowTitleBar />