👍️[Update] Mainl: endpointの命名規則を修正
This commit is contained in:
@@ -7,15 +7,15 @@ export const useEnableAutoClearMessageBox = () => {
|
||||
|
||||
const getEnableAutoClearMessageBox = () => {
|
||||
pendingEnableAutoClearMessageBox();
|
||||
asyncStdoutToPython("/get/auto_clear_message_box");
|
||||
asyncStdoutToPython("/get/data/auto_clear_message_box");
|
||||
};
|
||||
|
||||
const toggleEnableAutoClearMessageBox = () => {
|
||||
pendingEnableAutoClearMessageBox();
|
||||
if (currentEnableAutoClearMessageBox.data) {
|
||||
asyncStdoutToPython("/set/disable_auto_clear_message_box");
|
||||
asyncStdoutToPython("/set/disable/auto_clear_message_box");
|
||||
} else {
|
||||
asyncStdoutToPython("/set/enable_auto_clear_message_box");
|
||||
asyncStdoutToPython("/set/enable/auto_clear_message_box");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -7,15 +7,15 @@ export const useEnableAutoMicSelect = () => {
|
||||
|
||||
const getEnableAutoMicSelect = () => {
|
||||
pendingEnableAutoMicSelect();
|
||||
asyncStdoutToPython("/get/auto_mic_select");
|
||||
asyncStdoutToPython("/get/data/auto_mic_select");
|
||||
};
|
||||
|
||||
const toggleEnableAutoMicSelect = () => {
|
||||
pendingEnableAutoMicSelect();
|
||||
if (currentEnableAutoMicSelect.data) {
|
||||
asyncStdoutToPython("/set/disable_auto_mic_select");
|
||||
asyncStdoutToPython("/set/disable/auto_mic_select");
|
||||
} else {
|
||||
asyncStdoutToPython("/set/enable_auto_mic_select");
|
||||
asyncStdoutToPython("/set/enable/auto_mic_select");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -7,15 +7,15 @@ export const useEnableAutoSpeakerSelect = () => {
|
||||
|
||||
const getEnableAutoSpeakerSelect = () => {
|
||||
pendingEnableAutoSpeakerSelect();
|
||||
asyncStdoutToPython("/get/auto_speaker_select");
|
||||
asyncStdoutToPython("/get/data/auto_speaker_select");
|
||||
};
|
||||
|
||||
const toggleEnableAutoSpeakerSelect = () => {
|
||||
pendingEnableAutoSpeakerSelect();
|
||||
if (currentEnableAutoSpeakerSelect.data) {
|
||||
asyncStdoutToPython("/set/disable_auto_speaker_select");
|
||||
asyncStdoutToPython("/set/disable/auto_speaker_select");
|
||||
} else {
|
||||
asyncStdoutToPython("/set/enable_auto_speaker_select");
|
||||
asyncStdoutToPython("/set/enable/auto_speaker_select");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ export const useMicDeviceList = () => {
|
||||
|
||||
const getMicDeviceList = () => {
|
||||
pendingMicDeviceList();
|
||||
asyncStdoutToPython("/get/list_mic_device");
|
||||
asyncStdoutToPython("/get/data/mic_device_list");
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,7 +7,7 @@ export const useMicHostList = () => {
|
||||
|
||||
const getMicHostList = () => {
|
||||
pendingMicHostList();
|
||||
asyncStdoutToPython("/get/list_mic_host");
|
||||
asyncStdoutToPython("/get/data/mic_host_list");
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,24 +7,24 @@ export const useMicThreshold = () => {
|
||||
const { updateEnableAutomaticMicThreshold, currentEnableAutomaticMicThreshold, pendingEnableAutomaticMicThreshold } = useStore_EnableAutomaticMicThreshold();
|
||||
|
||||
const getMicThreshold = () => {
|
||||
asyncStdoutToPython("/get/mic_energy_threshold");
|
||||
asyncStdoutToPython("/get/data/mic_threshold");
|
||||
};
|
||||
|
||||
const setMicThreshold = (mic_threshold) => {
|
||||
asyncStdoutToPython("/set/mic_energy_threshold", mic_threshold);
|
||||
asyncStdoutToPython("/set/data/mic_threshold", mic_threshold);
|
||||
};
|
||||
|
||||
const getEnableAutomaticMicThreshold = () => {
|
||||
pendingEnableAutomaticMicThreshold();
|
||||
asyncStdoutToPython("/get/mic_dynamic_energy_threshold");
|
||||
asyncStdoutToPython("/get/data/mic_automatic_threshold");
|
||||
};
|
||||
|
||||
const toggleEnableAutomaticMicThreshold = () => {
|
||||
pendingEnableAutomaticMicThreshold();
|
||||
if (currentEnableAutomaticMicThreshold.data) {
|
||||
asyncStdoutToPython("/set/disable_mic_dynamic_energy_threshold");
|
||||
asyncStdoutToPython("/set/disable/mic_automatic_threshold");
|
||||
} else {
|
||||
asyncStdoutToPython("/set/enable_mic_dynamic_energy_threshold");
|
||||
asyncStdoutToPython("/set/enable/mic_automatic_threshold");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export const useSelectedMicDevice = () => {
|
||||
|
||||
const setSelectedMicDevice = (selected_mic_device) => {
|
||||
pendingSelectedMicDevice();
|
||||
asyncStdoutToPython("/set/selected_mic_device", selected_mic_device);
|
||||
asyncStdoutToPython("/set/data/selected_mic_device", selected_mic_device);
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,12 +7,12 @@ export const useSelectedMicHost = () => {
|
||||
|
||||
const getSelectedMicHost = () => {
|
||||
pendingSelectedMicHost();
|
||||
asyncStdoutToPython("/get/selected_mic_host");
|
||||
asyncStdoutToPython("/get/data/selected_mic_host");
|
||||
};
|
||||
|
||||
const setSelectedMicHost = (selected_mic_host) => {
|
||||
pendingSelectedMicHost();
|
||||
asyncStdoutToPython("/set/selected_mic_host", selected_mic_host);
|
||||
asyncStdoutToPython("/set/data/selected_mic_host", selected_mic_host);
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,12 +7,12 @@ export const useSelectedSpeakerDevice = () => {
|
||||
|
||||
const getSelectedSpeakerDevice = () => {
|
||||
pendingSelectedSpeakerDevice();
|
||||
asyncStdoutToPython("/get/selected_speaker_device");
|
||||
asyncStdoutToPython("/get/data/selected_speaker_device");
|
||||
};
|
||||
|
||||
const setSelectedSpeakerDevice = (selected_speaker_device) => {
|
||||
pendingSelectedSpeakerDevice();
|
||||
asyncStdoutToPython("/set/selected_speaker_device", selected_speaker_device);
|
||||
asyncStdoutToPython("/set/data/selected_speaker_device", selected_speaker_device);
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,12 +7,12 @@ export const useSendMessageButtonType = () => {
|
||||
|
||||
const getSendMessageButtonType = () => {
|
||||
pendingSendMessageButtonType();
|
||||
asyncStdoutToPython("/get/send_message_button_type");
|
||||
asyncStdoutToPython("/get/data/send_message_button_type");
|
||||
};
|
||||
|
||||
const setSendMessageButtonType = (selected_type) => {
|
||||
pendingSendMessageButtonType();
|
||||
asyncStdoutToPython("/set/send_message_button_type", selected_type);
|
||||
asyncStdoutToPython("/set/data/send_message_button_type", selected_type);
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,7 +7,7 @@ export const useSoftwareVersion = () => {
|
||||
|
||||
const getSoftwareVersion = () => {
|
||||
pendingSoftwareVersion();
|
||||
asyncStdoutToPython("/get/version");
|
||||
asyncStdoutToPython("/get/data/version");
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,7 +7,7 @@ export const useSpeakerDeviceList = () => {
|
||||
|
||||
const getSpeakerDeviceList = () => {
|
||||
pendingSpeakerDeviceList();
|
||||
asyncStdoutToPython("/get/list_speaker_device");
|
||||
asyncStdoutToPython("/get/data/speaker_device_list");
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -7,24 +7,24 @@ export const useSpeakerThreshold = () => {
|
||||
const { updateEnableAutomaticSpeakerThreshold, currentEnableAutomaticSpeakerThreshold, pendingEnableAutomaticSpeakerThreshold } = useStore_EnableAutomaticSpeakerThreshold();
|
||||
|
||||
const getSpeakerThreshold = () => {
|
||||
asyncStdoutToPython("/get/speaker_energy_threshold");
|
||||
asyncStdoutToPython("/get/data/speaker_energy_threshold");
|
||||
};
|
||||
|
||||
const setSpeakerThreshold = (speaker_threshold) => {
|
||||
asyncStdoutToPython("/set/speaker_energy_threshold", speaker_threshold);
|
||||
asyncStdoutToPython("/set/data/speaker_energy_threshold", speaker_threshold);
|
||||
};
|
||||
|
||||
const getEnableAutomaticSpeakerThreshold = () => {
|
||||
pendingEnableAutomaticSpeakerThreshold();
|
||||
asyncStdoutToPython("/get/speaker_dynamic_energy_threshold");
|
||||
asyncStdoutToPython("/get/data/speaker_automatic_threshold");
|
||||
};
|
||||
|
||||
const toggleEnableAutomaticSpeakerThreshold = () => {
|
||||
pendingEnableAutomaticSpeakerThreshold();
|
||||
if (currentEnableAutomaticSpeakerThreshold.data) {
|
||||
asyncStdoutToPython("/set/disable_speaker_dynamic_energy_threshold");
|
||||
asyncStdoutToPython("/set/disable/speaker_automatic_threshold");
|
||||
} else {
|
||||
asyncStdoutToPython("/set/enable_speaker_dynamic_energy_threshold");
|
||||
asyncStdoutToPython("/set/enable/speaker_automatic_threshold");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@ export const useUiLanguage = () => {
|
||||
|
||||
const getUiLanguage = () => {
|
||||
pendingUiLanguage();
|
||||
asyncStdoutToPython("/get/ui_language");
|
||||
asyncStdoutToPython("/get/data/ui_language");
|
||||
};
|
||||
|
||||
const setUiLanguage = (selected_ui_language) => {
|
||||
pendingUiLanguage();
|
||||
asyncStdoutToPython("/set/ui_language", selected_ui_language);
|
||||
asyncStdoutToPython("/set/data/ui_language", selected_ui_language);
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user