From 3ed3d5eb40600da89d26d13b4e7983a521785b0d Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:23:17 +0900 Subject: [PATCH] [Update] Combine in one window. Rename Main/Config Window to Main/Config Page accordingly. For now, I put Config Page to below the main page temporary. Open Config Button does not work. --- index.html | 2 +- locales/en.json | 6 +- locales/ja.json | 6 +- locales/ko.json | 6 +- locales/zh-Hant.json | 6 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 - src-ui/app/App.jsx | 35 +++++++++++ .../config_page/ConfigPage.jsx} | 10 +-- .../config_page/ConfigPage.module.scss} | 2 +- .../setting_section/SettingSection.jsx | 0 .../SettingSection.module.scss | 0 .../setting_box/SettingBox.jsx | 0 .../setting_box/about_vrct/AboutVrct.jsx | 0 .../about_vrct/AboutVrct.module.scss | 0 .../PosterShowcaseContents.jsx | 0 .../PosterShowcaseContents.module.scss | 0 .../PosterShowcaseWorldsContents.jsx | 0 .../PosterShowcaseWorldsContents.module.scss | 0 .../poster_showcase_worlds_settings.js | 0 .../posters_contents/PostersContents.jsx | 0 .../PostersContents.module.scss | 0 .../setting_box/appearance/Appearance.jsx | 14 ++--- .../components/_atoms/_entry/_Entry.jsx | 0 .../_atoms/_entry/_Entry.module.scss | 0 .../components/action_button/ActionButton.jsx | 0 .../action_button/ActionButton.module.scss | 0 .../components/checkbox/Checkbox.jsx | 0 .../components/checkbox/Checkbox.module.scss | 0 .../deepl_auth_key/DeeplAuthKey.jsx | 0 .../deepl_auth_key/DeeplAuthKey.module.scss | 0 .../components/dropdown_menu/DropdownMenu.jsx | 0 .../dropdown_menu/DropdownMenu.module.scss | 0 .../setting_box/components/entry/Entry.jsx | 0 .../components/entry/Entry.module.scss | 0 .../label_component/LabelComponent.jsx | 0 .../LabelComponent.module.scss | 0 .../message_format/MessageFormat.jsx | 4 +- .../message_format/MessageFormat.module.scss | 0 .../components/radio_button/RadioButton.jsx | 0 .../radio_button/RadioButton.module.scss | 0 .../setting_box/components/slider/Slider.jsx | 0 .../components/slider/Slider.module.scss | 0 .../components/switchbox/Switchbox.jsx | 0 .../switchbox/Switchbox.module.scss | 0 .../ThresholdComponent.jsx | 0 .../ThresholdComponent.module.scss | 0 .../slider_and_meter/SliderAndMeter.jsx | 0 .../SliderAndMeter.module.scss | 0 .../threshold_entry/ThresholdEntry.jsx | 0 .../ThresholdEntry.module.scss | 0 .../volume_check_button/VolumeCheckButton.jsx | 0 .../VolumeCheckButton.module.scss | 0 .../setting_box/components/useSettingBox.jsx | 0 .../components/useSettingBox.module.scss | 0 .../components/word_filter/WordFilter.jsx | 2 +- .../word_filter/WordFilter.module.scss | 0 .../sidebar_section/SidebarSection.jsx | 2 +- .../SidebarSection.module.scss | 2 +- .../config_page}/topbar/Topbar.jsx | 0 .../config_page}/topbar/Topbar.module.scss | 2 +- .../compact_switch_box/CompactSwitchBox.jsx | 2 +- .../CompactSwitchBox.module.scss | 0 .../section_title_box/SectionTitleBox.jsx | 2 +- .../SectionTitleBox.module.scss | 0 .../topbar/title_box/TitleBox.jsx | 2 +- .../topbar/title_box/TitleBox.module.scss | 2 +- src-ui/{windows/main_window => app}/index.jsx | 4 +- src-ui/app/main_page/MainPage.jsx | 39 ++++++++++++ .../main_page/MainPage.module.scss} | 2 +- .../main_page}/main_section/MainSection.jsx | 0 .../main_section/MainSection.module.scss | 0 .../language_selector/LanguageSelector.jsx | 0 .../LanguageSelector.module.scss | 0 .../LanguageSelectorTopBar.jsx | 0 .../LanguageSelectorTopBar.module.scss | 2 +- .../message_container/MessageContainer.jsx | 0 .../MessageContainer.module.scss | 0 .../message_container/log_box/LogBox.jsx | 0 .../log_box/LogBox.module.scss | 0 .../message_container/MessageContainer.jsx | 2 +- .../MessageContainer.module.scss | 0 .../message_input_box/MessageInputBox.jsx | 0 .../MessageInputBox.module.scss | 0 .../main_section/top_bar/TopBar.jsx | 0 .../main_section/top_bar/TopBar.module.scss | 2 +- .../RightSideComponents.jsx | 0 .../RightSideComponents.module.scss | 0 .../SidebarCompactModeButton.jsx | 8 +-- .../SidebarCompactModeButton.module.scss | 0 .../sidebar_section/SidebarSection.jsx | 8 +-- .../SidebarSection.module.scss | 0 .../language_settings/LanguageSettings.jsx | 4 +- .../LanguageSettings.module.scss | 0 .../LanguageSelectorOpenButton.jsx | 0 .../LanguageSelectorOpenButton.module.scss | 0 .../LanguageSwapButton.jsx | 4 +- .../LanguageSwapButton.module.scss | 0 .../preset_tab_selector/PresetTabSelector.jsx | 0 .../PresetTabSelector.module.scss | 0 .../TranslatorSelectorOpenButton.jsx | 2 +- .../TranslatorSelectorOpenButton.module.scss | 0 .../TranslatorSelector.jsx | 0 .../TranslatorSelector.module.scss | 0 .../main_page}/sidebar_section/logo/Logo.jsx | 6 +- .../sidebar_section/logo/Logo.module.scss | 2 +- .../MainFunctionSwitch.jsx | 14 ++--- .../MainFunctionSwitch.module.scss | 0 .../open_settings/OpenSettings.jsx | 11 ++-- .../open_settings/OpenSettings.module.scss | 2 +- src-ui/logics/useMainFunction.js | 4 +- src-ui/logics/useWindow.js | 38 ++++++------ src-ui/store.js | 6 +- src-ui/utils/variables.css | 6 +- src-ui/windows/config_window/index.html | 14 ----- src-ui/windows/config_window/index.jsx | 13 ---- src-ui/windows/main_window/MainWindow.jsx | 62 ------------------- vite.config.js | 1 - 118 files changed, 175 insertions(+), 192 deletions(-) create mode 100644 src-ui/app/App.jsx rename src-ui/{windows/config_window/ConfigWindow.jsx => app/config_page/ConfigPage.jsx} (75%) rename src-ui/{windows/config_window/ConfigWindow.module.scss => app/config_page/ConfigPage.module.scss} (84%) rename src-ui/{windows/config_window => app/config_page}/setting_section/SettingSection.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/SettingSection.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/SettingBox.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/AboutVrct.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/AboutVrct.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/PosterShowcaseContents.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/PosterShowcaseContents.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/PosterShowcaseWorldsContents.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/PosterShowcaseWorldsContents.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/poster_showcase_worlds_contents/poster_showcase_worlds_settings.js (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/posters_contents/PostersContents.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/about_vrct/poster_showcase_contents/posters_contents/PostersContents.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/appearance/Appearance.jsx (66%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/_atoms/_entry/_Entry.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/_atoms/_entry/_Entry.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/action_button/ActionButton.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/action_button/ActionButton.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/checkbox/Checkbox.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/checkbox/Checkbox.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/deepl_auth_key/DeeplAuthKey.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/deepl_auth_key/DeeplAuthKey.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/dropdown_menu/DropdownMenu.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/dropdown_menu/DropdownMenu.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/entry/Entry.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/entry/Entry.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/label_component/LabelComponent.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/label_component/LabelComponent.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/message_format/MessageFormat.jsx (94%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/message_format/MessageFormat.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/radio_button/RadioButton.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/radio_button/RadioButton.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/slider/Slider.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/slider/Slider.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/switchbox/Switchbox.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/switchbox/Switchbox.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/ThresholdComponent.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/ThresholdComponent.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/slider_and_meter/SliderAndMeter.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/slider_and_meter/SliderAndMeter.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/threshold_entry/ThresholdEntry.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/threshold_entry/ThresholdEntry.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/volume_check_button/VolumeCheckButton.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/threshold_component/volume_check_button/VolumeCheckButton.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/useSettingBox.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/useSettingBox.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/word_filter/WordFilter.jsx (94%) rename src-ui/{windows/config_window => app/config_page}/setting_section/setting_box/components/word_filter/WordFilter.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/sidebar_section/SidebarSection.jsx (91%) rename src-ui/{windows/config_window => app/config_page}/sidebar_section/SidebarSection.module.scss (91%) rename src-ui/{windows/config_window => app/config_page}/topbar/Topbar.jsx (100%) rename src-ui/{windows/config_window => app/config_page}/topbar/Topbar.module.scss (75%) rename src-ui/{windows/config_window => app/config_page}/topbar/compact_switch_box/CompactSwitchBox.jsx (80%) rename src-ui/{windows/config_window => app/config_page}/topbar/compact_switch_box/CompactSwitchBox.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/topbar/section_title_box/SectionTitleBox.jsx (75%) rename src-ui/{windows/config_window => app/config_page}/topbar/section_title_box/SectionTitleBox.module.scss (100%) rename src-ui/{windows/config_window => app/config_page}/topbar/title_box/TitleBox.jsx (80%) rename src-ui/{windows/config_window => app/config_page}/topbar/title_box/TitleBox.module.scss (79%) rename src-ui/{windows/main_window => app}/index.jsx (75%) create mode 100644 src-ui/app/main_page/MainPage.jsx rename src-ui/{windows/main_window/MainWindow.module.scss => app/main_page/MainPage.module.scss} (93%) rename src-ui/{windows/main_window => app/main_page}/main_section/MainSection.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/MainSection.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/language_selector/LanguageSelector.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/language_selector/LanguageSelector.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/language_selector/language_selector_top_bar/LanguageSelectorTopBar.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/language_selector/language_selector_top_bar/LanguageSelectorTopBar.module.scss (88%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/MessageContainer.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/MessageContainer.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/log_box/LogBox.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/log_box/LogBox.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/log_box/message_container/MessageContainer.jsx (90%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/log_box/message_container/MessageContainer.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/message_input_box/MessageInputBox.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/message_container/message_input_box/MessageInputBox.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/top_bar/TopBar.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/top_bar/TopBar.module.scss (69%) rename src-ui/{windows/main_window => app/main_page}/main_section/top_bar/right_side_components/RightSideComponents.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/top_bar/right_side_components/RightSideComponents.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/main_section/top_bar/sidebar_compact_mode_button/SidebarCompactModeButton.jsx (59%) rename src-ui/{windows/main_window => app/main_page}/main_section/top_bar/sidebar_compact_mode_button/SidebarCompactModeButton.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/SidebarSection.jsx (66%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/SidebarSection.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/LanguageSettings.jsx (94%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/LanguageSettings.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/language_selector_open_button/LanguageSelectorOpenButton.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/language_selector_open_button/LanguageSelectorOpenButton.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/language_swap_button/LanguageSwapButton.jsx (89%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/language_swap_button/LanguageSwapButton.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/preset_tab_selector/PresetTabSelector.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/preset_tab_selector/PresetTabSelector.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/translator_selector_open_button/TranslatorSelectorOpenButton.jsx (92%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/translator_selector_open_button/TranslatorSelectorOpenButton.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/translator_selector_open_button/translator_selector/TranslatorSelector.jsx (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/language_settings/translator_selector_open_button/translator_selector/TranslatorSelector.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/logo/Logo.jsx (70%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/logo/Logo.module.scss (77%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/main_function_switch/MainFunctionSwitch.jsx (87%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/main_function_switch/MainFunctionSwitch.module.scss (100%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/open_settings/OpenSettings.jsx (55%) rename src-ui/{windows/main_window => app/main_page}/sidebar_section/open_settings/OpenSettings.module.scss (89%) delete mode 100644 src-ui/windows/config_window/index.html delete mode 100644 src-ui/windows/config_window/index.jsx delete mode 100644 src-ui/windows/main_window/MainWindow.jsx diff --git a/index.html b/index.html index 93b49bc8..15162d79 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,6 @@
- +