Tweaks for JWT auth

This commit is contained in:
Gregory Schier
2025-01-17 15:23:15 -08:00
parent 6ae0bc1ef6
commit 7a6ab60d30
11 changed files with 142 additions and 33 deletions

View File

@@ -67,6 +67,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/
@@ -81,6 +85,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/
@@ -90,7 +98,15 @@ export type FormInputEditor = {
/**
* Placeholder for the text input
*/
placeholder?: string | null, language: EditorLanguage, name: string,
placeholder?: string | null,
/**
* Don't show the editor gutter (line numbers, folds, etc.)
*/
hideGutter?: boolean,
/**
* Language for syntax highlighting
*/
language?: EditorLanguage, name: string,
/**
* Whether the user must fill in the argument
*/
@@ -99,6 +115,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/
@@ -121,6 +141,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/
@@ -135,6 +159,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/
@@ -153,6 +181,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/
@@ -177,6 +209,10 @@ optional?: boolean,
* The label of the input
*/
label?: string,
/**
* Visually hide the label of the input
*/
hideLabel?: boolean,
/**
* The default value
*/

View File

@@ -379,6 +379,10 @@ pub struct FormInputBase {
#[ts(optional)]
pub label: Option<String>,
/// Visually hide the label of the input
#[ts(optional)]
pub hide_label: Option<bool>,
/// The default value
#[ts(optional)]
pub default_value: Option<String>,
@@ -430,7 +434,13 @@ pub struct FormInputEditor {
#[ts(optional = nullable)]
pub placeholder: Option<String>,
pub language: EditorLanguage,
/// Don't show the editor gutter (line numbers, folds, etc.)
#[ts(optional)]
pub hide_gutter: Option<bool>,
/// Language for syntax highlighting
#[ts(optional)]
pub language: Option<EditorLanguage>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]