diff --git a/frontend/index.html b/frontend/index.html index 2fdecbf..f5541b9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -35,6 +35,7 @@
diff --git a/frontend/src/app.ts b/frontend/src/app.ts index 577ccb7..f9ef0b0 100644 --- a/frontend/src/app.ts +++ b/frontend/src/app.ts @@ -3,6 +3,7 @@ import {User} from "./network/models.ts"; interface MyWindow extends Window { serverName?: string; cloudflareTurnstileSiteKey?: string; + siteInfo?: string; } class App { @@ -14,6 +15,8 @@ class App { cloudflareTurnstileSiteKey: string | null = null; + siteInfo = "" + constructor() { this.init(); } @@ -29,6 +32,7 @@ class App { } this.appName = (window as MyWindow).serverName || this.appName; this.cloudflareTurnstileSiteKey = (window as MyWindow).cloudflareTurnstileSiteKey || null; + this.siteInfo = (window as MyWindow).siteInfo || ""; } saveData() { diff --git a/frontend/src/components/input.tsx b/frontend/src/components/input.tsx index 45079d8..7f8364e 100644 --- a/frontend/src/components/input.tsx +++ b/frontend/src/components/input.tsx @@ -1,3 +1,5 @@ +import React from "react"; + interface InputProps { type?: string; placeholder?: string; @@ -19,4 +21,20 @@ export default function Input(props: InputProps) { } +} + +interface TextAreaProps { + value: string; + onChange: (e: React.ChangeEvent) => void; + label: string; + height?: string | number; +} + +export function TextArea(props: TextAreaProps) { + return
+ {props.label} +