tycho-components 0.15.3 → 0.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@ export default function Parameters({ parameters, onChange }) {
|
|
|
10
10
|
const { t } = useTranslation('parameters');
|
|
11
11
|
const { isSuper } = useLoggedUtils();
|
|
12
12
|
const renderSwitchList = (fields) => (_jsx("div", { className: "parameters-group-container", children: fields.map((name) => (_jsx(React.Fragment, { children: _jsx(FormControlLabel, { control: _jsx(Switch, { checked: Boolean(parameters[name]), onChange: (_, checked) => onChange(name, checked) }), label: _jsxs("div", { className: "parameter-label", children: [_jsx("span", { children: t(`parameter.field.${name}`) }), _jsx(Tooltip, { title: t(`parameter.tooltip.${name}`), className: "tooltip-parameter", children: _jsx("span", { children: _jsx(Icon, { name: "help", className: "info", size: "x-small" }) }) })] }) }) }, name))) }));
|
|
13
|
-
return (_jsxs("div", { className: "parameters-container", children: [_jsxs("div", { className: "group", children: [_jsx("
|
|
13
|
+
return (_jsxs("div", { className: "parameters-container", children: [_jsxs("div", { className: "group", children: [_jsx("div", { className: "group-title", children: t('title.available') }), renderSwitchList(PARAMETERS_TOOLS)] }), _jsxs("div", { className: "group", children: [_jsx("div", { className: "group-title", children: t('title.general') }), renderSwitchList(PARAMETERS)] }), _jsxs("div", { className: "group", children: [_jsx("div", { className: "group-title", children: t('title.edictor') }), renderSwitchList(PARAMETERS_EDICTOR), isSuper() && renderSwitchList(PARAMETERS_EDICTOR_SUPER)] }), _jsxs("div", { className: "group", children: [_jsx("div", { className: "group-title", children: t('title.catalog') }), renderSwitchList(PARAMETERS_CATALOG)] })] }));
|
|
14
14
|
}
|
|
15
15
|
const PARAMETERS = [
|
|
16
16
|
'useSound',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import api from
|
|
1
|
+
import api from "../api";
|
|
2
2
|
function listLexicons() {
|
|
3
|
-
return api.get(`${import.meta.env.VITE_APP_LEXICON_API}/open/list`);
|
|
3
|
+
return api.get(`${import.meta.env.VITE_APP_LEXICON_API}/open/v2/list`);
|
|
4
4
|
}
|
|
5
5
|
const LexiconListService = {
|
|
6
6
|
listLexicons,
|