Merge branch 'compute_device_selector' into for_webui
This commit is contained in:
@@ -6,7 +6,6 @@ import { SettingSection } from "./setting_section/SettingSection.jsx";
|
|||||||
|
|
||||||
import { useSoftwareVersion } from "@logics_configs";
|
import { useSoftwareVersion } from "@logics_configs";
|
||||||
import { useComputeMode } from "@logics_common";
|
import { useComputeMode } from "@logics_common";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
export const ConfigPage = () => {
|
export const ConfigPage = () => {
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ const CTranslation2ComputeDevice_Box = () => {
|
|||||||
|
|
||||||
const target_index = findKeyByDeviceValue(currentSelectableCTranslate2ComputeDeviceList.data, currentSelectedCTranslate2ComputeDevice.data);
|
const target_index = findKeyByDeviceValue(currentSelectableCTranslate2ComputeDeviceList.data, currentSelectedCTranslate2ComputeDevice.data);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenuContainer
|
<DropdownMenuContainer
|
||||||
dropdown_id="ctranslate2_compute_device"
|
dropdown_id="ctranslate2_compute_device"
|
||||||
@@ -170,4 +169,4 @@ const findKeyByDeviceValue = (devices, target_value) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ export { useSelectedWhisperComputeDevice } from "./transcription/useSelectedWhis
|
|||||||
|
|
||||||
export { useDeepLAuthKey } from "./translation/useDeepLAuthKey";
|
export { useDeepLAuthKey } from "./translation/useDeepLAuthKey";
|
||||||
export { useCTranslate2WeightTypeStatus } from "./translation/useCTranslate2WeightTypeStatus";
|
export { useCTranslate2WeightTypeStatus } from "./translation/useCTranslate2WeightTypeStatus";
|
||||||
|
export { useSelectedCTranslate2WeightType } from "./translation/useSelectedCTranslate2WeightType";
|
||||||
export { useSelectableCTranslate2ComputeDeviceList } from "./translation/useSelectableCTranslate2ComputeDeviceList";
|
export { useSelectableCTranslate2ComputeDeviceList } from "./translation/useSelectableCTranslate2ComputeDeviceList";
|
||||||
export { useSelectedCTranslate2ComputeDevice } from "./translation/useSelectedCTranslate2ComputeDevice";
|
export { useSelectedCTranslate2ComputeDevice } from "./translation/useSelectedCTranslate2ComputeDevice";
|
||||||
export { useSelectedCTranslate2WeightType } from "./translation/useSelectedCTranslate2WeightType";
|
|
||||||
|
|
||||||
export { useIsEnabledOverlaySmallLog } from "./vr/useIsEnabledOverlaySmallLog";
|
export { useIsEnabledOverlaySmallLog } from "./vr/useIsEnabledOverlaySmallLog";
|
||||||
export { useOverlaySmallLogSettings } from "./vr/useOverlaySmallLogSettings";
|
export { useOverlaySmallLogSettings } from "./vr/useOverlaySmallLogSettings";
|
||||||
|
|||||||
@@ -507,7 +507,6 @@ const style_348 = [
|
|||||||
"color: gray",
|
"color: gray",
|
||||||
].join(";");
|
].join(";");
|
||||||
|
|
||||||
|
|
||||||
const transformToIndexedArray = (devices) => {
|
const transformToIndexedArray = (devices) => {
|
||||||
return devices.reduce((result, device, index) => {
|
return devices.reduce((result, device, index) => {
|
||||||
result[index] = device;
|
result[index] = device;
|
||||||
|
|||||||
Reference in New Issue
Block a user