clan-cli: Add --wifi option to set wifi credentials. clan-app: Add wifi settings form to flash view

This commit is contained in:
Qubasa
2024-08-07 21:34:46 +02:00
parent ebf3859dfa
commit 85a47a6dcd
6 changed files with 289 additions and 5 deletions

View File

@@ -4,10 +4,11 @@ import { type JSX } from "solid-js";
interface TextInputProps<T extends FieldValues, R extends ResponseData> {
formStore: FormStore<T, R>;
value: string;
inputProps: JSX.HTMLAttributes<HTMLInputElement>;
inputProps: JSX.InputHTMLAttributes<HTMLInputElement>;
label: JSX.Element;
error?: string;
required?: boolean;
type?: string;
inlineLabel?: JSX.Element;
}
@@ -36,7 +37,7 @@ export function TextInput<T extends FieldValues, R extends ResponseData>(
<input
{...props.inputProps}
value={props.value}
type="text"
type={props.type ? props.type : "text"}
class="grow"
classList={{
"input-disabled": props.formStore.submitting,