diff --git a/data.js b/data.js index 183a62fd..80017a05 100644 --- a/data.js +++ b/data.js @@ -1,10 +1,10 @@ export const translator_status = [ - { translator_id: "DeepL", translator_name: "DeepL", is_available: true }, + { translator_id: "DeepL", translator_name: "DeepL", is_available: false }, { translator_id: "DeepL_API", translator_name: `DeepL\nAPI`, is_available: false }, - { translator_id: "Google", translator_name: "Google", is_available: true }, - { translator_id: "Bing", translator_name: "Bing", is_available: true }, - { translator_id: "Papago", translator_name: "Papago", is_available: true }, - { translator_id: "CTranslate2", translator_name: `Internal\n(Default)`, is_available: true }, + { translator_id: "Google", translator_name: "Google", is_available: false }, + { translator_id: "Bing", translator_name: "Bing", is_available: false }, + { translator_id: "Papago", translator_name: "Papago", is_available: false }, + { translator_id: "CTranslate2", translator_name: `Internal\n(Default)`, is_available: false }, ]; diff --git a/src-ui/app/App.jsx b/src-ui/app/App.jsx index 53e35107..73a7ec06 100644 --- a/src-ui/app/App.jsx +++ b/src-ui/app/App.jsx @@ -124,7 +124,7 @@ const ConfigPageCloseTrigger = () => { } = useVolume(); useEffect(() => { - if (currentIsOpenedConfigPage === false) { + if (currentIsOpenedConfigPage.data === false) { if (currentMicThresholdCheckStatus.data === true) volumeCheckStop_Mic(); if (currentSpeakerThresholdCheckStatus.data === true) volumeCheckStop_Speaker(); } diff --git a/src-ui/app/config_page/ConfigPage.jsx b/src-ui/app/config_page/ConfigPage.jsx index 8c679d0f..ca301325 100644 --- a/src-ui/app/config_page/ConfigPage.jsx +++ b/src-ui/app/config_page/ConfigPage.jsx @@ -21,7 +21,7 @@ export const ConfigPage = () => {

{ - t("config_page.version", {version: currentSoftwareVersion}) + t("config_page.version", {version: currentSoftwareVersion.data}) }

diff --git a/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx b/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx index f293edcb..58b6bf68 100644 --- a/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx @@ -7,7 +7,7 @@ import { Appearance } from "./appearance/Appearance"; export const SettingBox = () => { const { currentSelectedConfigTabId } = useStore_SelectedConfigTabId(); - switch (currentSelectedConfigTabId) { + switch (currentSelectedConfigTabId.data) { case "device": return ; // case "others": diff --git a/src-ui/app/config_page/setting_section/setting_box/about_vrct/AboutVrct.jsx b/src-ui/app/config_page/setting_section/setting_box/about_vrct/AboutVrct.jsx index a00f0424..5a8d49b3 100644 --- a/src-ui/app/config_page/setting_section/setting_box/about_vrct/AboutVrct.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/about_vrct/AboutVrct.jsx @@ -74,7 +74,7 @@ export const AboutVrct = () => { { - currentUiLanguage === "ja" + currentUiLanguage.data === "ja" ? : } diff --git a/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/PosterShowcaseWorldsContents.jsx b/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/PosterShowcaseWorldsContents.jsx index 1863b42b..520bff17 100644 --- a/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/PosterShowcaseWorldsContents.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/PosterShowcaseWorldsContents.jsx @@ -19,7 +19,7 @@ export const PosterShowcaseWorldsContents = () => { })); const chunked_poster_showcase_world_images = chunkArray(poster_showcase_world_images, 8); - const target_poster_showcase_world_images = chunked_poster_showcase_world_images[currentPosterShowcaseWorldPageIndex]; + const target_poster_showcase_world_images = chunked_poster_showcase_world_images[currentPosterShowcaseWorldPageIndex.data]; return ( @@ -70,7 +70,7 @@ const PosterShowcaseWorldsPagination = ({ page_length }) => { }; const getClassNames = (index, baseClass) => clsx(baseClass, { - [styles.is_active]: (currentPosterShowcaseWorldPageIndex === index), + [styles.is_active]: (currentPosterShowcaseWorldPageIndex.data === index), }); return ( diff --git a/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/posters_contents/PostersContents.jsx b/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/posters_contents/PostersContents.jsx index 886f40a3..6cb5ffe1 100644 --- a/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/posters_contents/PostersContents.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/about_vrct/poster_showcase_contents/posters_contents/PostersContents.jsx @@ -34,11 +34,11 @@ export const PostersContents = () => { const updateIndex = (delta) => { - const newIndex = (currentVrctPosterIndex + delta + poster_images.length) % poster_images.length; + const newIndex = (currentVrctPosterIndex.data + delta + poster_images.length) % poster_images.length; updateVrctPosterIndex(newIndex); }; - const current_poster = poster_images[currentVrctPosterIndex]; + const current_poster = poster_images[currentVrctPosterIndex.data]; const current_poster_authors_img_ja = (current_poster.poster_type === "poster") ? poster_images_authors_ja : poster_images_authors_m_ja; const current_poster_authors_img_en = (current_poster.poster_type === "poster") ? poster_images_authors_en : poster_images_authors_m_en; @@ -60,7 +60,7 @@ export const PostersContents = () => { { - currentUiLanguage === "ja" + currentUiLanguage.data === "ja" ? : } diff --git a/src-ui/app/config_page/setting_section/setting_box/appearance/Appearance.jsx b/src-ui/app/config_page/setting_section/setting_box/appearance/Appearance.jsx index 8e3368cd..edf1dadb 100644 --- a/src-ui/app/config_page/setting_section/setting_box/appearance/Appearance.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/appearance/Appearance.jsx @@ -101,7 +101,7 @@ const UiLanguageContainer = () => { }
- {currentUiLanguage.state === "loading" && } + {currentUiLanguage.state === "pending" && } {Object.entries(SELECTABLE_UI_LANGUAGES_DICT).map(([key, value]) => (