Merge branch 'develop' of https://github.com/misyaguziya/VRCT into develop

This commit is contained in:
misyaguziya
2026-01-10 02:19:26 +09:00
8 changed files with 42 additions and 1 deletions

View File

@@ -709,6 +709,14 @@ export const SETTINGS_ARRAY = [
logics_template_id: "toggle_enable_disable",
base_endpoint_name: "convert_message_to_hiragana",
},
{
Category: "Others",
Base_Name: "Telemetry",
default_value: false,
ui_template_id: "toggle",
logics_template_id: "toggle_enable_disable",
base_endpoint_name: "telemetry",
},
// AdvancedSettings
{

View File

@@ -107,8 +107,9 @@ export const STATIC_ROUTE_META_LIST = [
{ endpoint: "/get/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "updateSavedPluginsStatus" },
{ endpoint: "/set/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "setSuccessSavedPluginsStatus" },
// // Not Implemented Yet...
// // Not Implemented.
{ endpoint: "/get/data/selectable_transcription_engines", ns: null, hook_name: null, method_name: null }, // Not implemented on UI yet. (if ai_models has not been detected, this will be blank array[]. if the ai_models are ok but just network has not connected, it'l be only ["Whisper"])
{ endpoint: "/run/shutdown", ns: null, hook_name: null, method_name: null }, // Not implemented on UI.
];
export const useReceiveRoutes = () => {

View File

@@ -53,6 +53,9 @@ export const Others = () => {
<ConvertMessageToRomajiContainer />
<ConvertMessageToHiraganaContainer />
</div>
<div>
<TelemetryContainer />
</div>
</div>
);
};
@@ -245,4 +248,18 @@ const ConvertMessageToHiraganaContainer = () => {
toggleFunction={toggleConvertMessageToHiragana}
/>
);
};
const TelemetryContainer = () => {
const { t } = useI18n();
const { currentTelemetry, toggleTelemetry } = useOthers();
return (
<CheckboxContainer
label={t("config_page.others.telemetry.label")}
desc={t("config_page.others.telemetry.desc")}
variable={currentTelemetry}
toggleFunction={toggleTelemetry}
/>
);
};