Dynamic access to Operators in both front and backend
This commit is contained in:
15
client-tauri/src/components/fields/BuildFields.tsx
Normal file
15
client-tauri/src/components/fields/BuildFields.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import Joi from "@stirling-tools/joi";
|
||||
|
||||
|
||||
interface BuildFieldsProps {
|
||||
/** The text to display inside the button */
|
||||
schemaDescription: Joi.Description | undefined;
|
||||
}
|
||||
|
||||
|
||||
export function BuildFields({ schemaDescription }: BuildFieldsProps) {
|
||||
console.log("Render Build Fields", schemaDescription);
|
||||
return (
|
||||
<div>Description: {(schemaDescription?.flags as any)?.description}</div>
|
||||
);
|
||||
}
|
||||
12
client-tauri/src/components/fields/StringField.tsx
Normal file
12
client-tauri/src/components/fields/StringField.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
interface StringFieldProps {
|
||||
/** The text to display inside the button */
|
||||
validValues: string[];
|
||||
exampleValues: string;
|
||||
}
|
||||
|
||||
|
||||
export function StringField({ validValues, exampleValues }: StringFieldProps) {
|
||||
return (
|
||||
<button>{validValues}</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user