diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-07-11 10:13:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-11 10:13:11 +0900 |
| commit | cf3fc97202588e835ade5d6ab1a3c087e46958ad (patch) | |
| tree | b3fe472b455bf913a47df4d41b1363c7122bf1d9 /src/client/scripts/form.ts | |
| parent | タイムライン上でTwitterウィジットを展開できるようにな... (diff) | |
| download | sharkey-cf3fc97202588e835ade5d6ab1a3c087e46958ad.tar.gz sharkey-cf3fc97202588e835ade5d6ab1a3c087e46958ad.tar.bz2 sharkey-cf3fc97202588e835ade5d6ab1a3c087e46958ad.zip | |
Deck (#6504)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
Diffstat (limited to 'src/client/scripts/form.ts')
| -rw-r--r-- | src/client/scripts/form.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/client/scripts/form.ts b/src/client/scripts/form.ts new file mode 100644 index 0000000000..3cf062be2a --- /dev/null +++ b/src/client/scripts/form.ts @@ -0,0 +1,26 @@ +export type FormItem = { + label?: string; + type: 'string'; + default: string | null; + hidden?: boolean; + multiline?: boolean; +} | { + label?: string; + type: 'number'; + default: number | null; + hidden?: boolean; + step?: number; +} | { + label?: string; + type: 'boolean'; + default: boolean | null; + hidden?: boolean; +} | { + label?: string; + type: 'enum'; + default: string | null; + hidden?: boolean; + enum: string[]; +}; + +export type Form = Record<string, FormItem>; |