ui build fix
This commit is contained in:
parent
1c2a196192
commit
208f7b63df
6 changed files with 15 additions and 15 deletions
|
|
@ -26,7 +26,8 @@ export interface NodeTypeParameter {
|
||||||
export interface PortField {
|
export interface PortField {
|
||||||
name: string;
|
name: string;
|
||||||
type: string;
|
type: string;
|
||||||
description: Record<string, string>;
|
/** Plain string or per-language map from the API catalog. */
|
||||||
|
description: string | Record<string, string>;
|
||||||
required: boolean;
|
required: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@ export const NodeConfigPanel: React.FC<NodeConfigPanelProps> = ({ node,
|
||||||
schemaNames={def?.accepts ?? []}
|
schemaNames={def?.accepts ?? []}
|
||||||
catalog={portTypeCatalog}
|
catalog={portTypeCatalog}
|
||||||
emptyLabel={t('keine Felder')}
|
emptyLabel={t('keine Felder')}
|
||||||
|
language={language}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -144,6 +145,7 @@ export const NodeConfigPanel: React.FC<NodeConfigPanelProps> = ({ node,
|
||||||
schemaNames={def?.schema ? [def.schema] : []}
|
schemaNames={def?.schema ? [def.schema] : []}
|
||||||
catalog={portTypeCatalog}
|
catalog={portTypeCatalog}
|
||||||
emptyLabel={t('keine Felder')}
|
emptyLabel={t('keine Felder')}
|
||||||
|
language={language}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -175,9 +177,10 @@ interface _PortFieldListProps {
|
||||||
schemaNames: string[];
|
schemaNames: string[];
|
||||||
catalog: Record<string, PortSchema>;
|
catalog: Record<string, PortSchema>;
|
||||||
emptyLabel: string;
|
emptyLabel: string;
|
||||||
|
language: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const _PortFieldList: React.FC<_PortFieldListProps> = ({ portIndex, schemaNames, catalog, emptyLabel }) => {
|
const _PortFieldList: React.FC<_PortFieldListProps> = ({ portIndex, schemaNames, catalog, emptyLabel, language }) => {
|
||||||
if (!schemaNames.length) return null;
|
if (!schemaNames.length) return null;
|
||||||
return (
|
return (
|
||||||
<div style={{ marginLeft: 4, marginBottom: 4 }}>
|
<div style={{ marginLeft: 4, marginBottom: 4 }}>
|
||||||
|
|
@ -209,7 +212,9 @@ const _PortFieldList: React.FC<_PortFieldListProps> = ({ portIndex, schemaNames,
|
||||||
<span style={{ color: '#999' }}>{`: ${f.type}`}</span>
|
<span style={{ color: '#999' }}>{`: ${f.type}`}</span>
|
||||||
{!f.required && <span style={{ color: '#bbb' }}>{' (optional)'}</span>}
|
{!f.required && <span style={{ color: '#bbb' }}>{' (optional)'}</span>}
|
||||||
{f.description && (
|
{f.description && (
|
||||||
<div style={{ color: '#888', marginLeft: 4 }}>{f.description}</div>
|
<div style={{ color: '#888', marginLeft: 4 }}>
|
||||||
|
{getLabel(f.description, language)}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -43,14 +43,14 @@ export interface ResolvedActions {
|
||||||
drag: FileAction[];
|
drag: FileAction[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const _IDENTITY: BuiltinCallbacks['t'] = (s) => s;
|
const _IDENTITY: NonNullable<BuiltinCallbacks['t']> = (s) => s;
|
||||||
|
|
||||||
/** Built-in-Definitionen, die aus den heute hartcodierten Callbacks abgeleitet werden.
|
/** Built-in-Definitionen, die aus den heute hartcodierten Callbacks abgeleitet werden.
|
||||||
* Diese erscheinen NUR in den neuen Kanälen (Menu, Sheet, Shortcut) — die Inline-Icons
|
* Diese erscheinen NUR in den neuen Kanälen (Menu, Sheet, Shortcut) — die Inline-Icons
|
||||||
* werden weiterhin direkt vom FolderTree-Renderer gezeichnet, damit die bestehende
|
* werden weiterhin direkt vom FolderTree-Renderer gezeichnet, damit die bestehende
|
||||||
* "Stable-Trio + dynamische Aktionen"-Logik unangetastet bleibt. */
|
* "Stable-Trio + dynamische Aktionen"-Logik unangetastet bleibt. */
|
||||||
function _buildBuiltins(cb: BuiltinCallbacks): FileAction[] {
|
function _buildBuiltins(cb: BuiltinCallbacks): FileAction[] {
|
||||||
const t = cb.t ?? _IDENTITY;
|
const t: NonNullable<BuiltinCallbacks['t']> = cb.t ?? _IDENTITY;
|
||||||
const list: FileAction[] = [];
|
const list: FileAction[] = [];
|
||||||
|
|
||||||
if (cb.onSendToChat) {
|
if (cb.onSendToChat) {
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,8 @@ export const PromptsPage: React.FC = () => {
|
||||||
maxWidth: 250,
|
maxWidth: 250,
|
||||||
fkSource: '/api/users/',
|
fkSource: '/api/users/',
|
||||||
fkDisplayField: 'username',
|
fkDisplayField: 'username',
|
||||||
|
frontendFormat: undefined,
|
||||||
|
frontendFormatLabels: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
return cols;
|
return cols;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ import {
|
||||||
Forest,
|
Forest,
|
||||||
FlatRow,
|
FlatRow,
|
||||||
ORPHAN_ROOT_ID,
|
ORPHAN_ROOT_ID,
|
||||||
TreeNode,
|
|
||||||
buildForest,
|
buildForest,
|
||||||
collectAllIds,
|
collectAllIds,
|
||||||
flattenForest,
|
flattenForest,
|
||||||
|
|
@ -313,14 +312,6 @@ export const RedmineBrowserView: React.FC = () => {
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const _toggleAssignee = useCallback((id: number) => {
|
|
||||||
setSelectedAssigneeIds(prev => {
|
|
||||||
const next = new Set(prev);
|
|
||||||
if (next.has(id)) next.delete(id); else next.add(id);
|
|
||||||
return next;
|
|
||||||
});
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const _toggleRelType = useCallback((rt: string) => {
|
const _toggleRelType = useCallback((rt: string) => {
|
||||||
setSelectedRelTypes(prev => {
|
setSelectedRelTypes(prev => {
|
||||||
const next = new Set(prev);
|
const next = new Set(prev);
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export type AttributeType =
|
||||||
| 'multiselect'
|
| 'multiselect'
|
||||||
| 'multilingual'
|
| 'multilingual'
|
||||||
| 'integer'
|
| 'integer'
|
||||||
|
| 'int'
|
||||||
| 'float'
|
| 'float'
|
||||||
| 'number'
|
| 'number'
|
||||||
| 'timestamp'
|
| 'timestamp'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue