-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
53 lines (51 loc) · 1.08 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// CONFIG
// Here you can ADD fields to your form
// ID is mandatory
// interface IField{
// id:string,
// labelText?: string,
// placeholder?: string,
// type?: string,
// required?: boolean,
// isEmail?: boolean,
// min?: number,
// max?: number
// }
// interface IForm{
// method?: string
// action: string
// fields?: Array<IField>
// }
export const config = {
method: 'post',
action: 'https://jsonplaceholder.typicode.com/users',
fields: [
{
id: 'username',
labelText: 'Username',
placeholder: 'Your Username',
required: true,
max: 10,
},
{
id: 'password',
labelText: 'Password',
placeholder: 'Password',
type: 'password',
required: true,
min: 6,
max: 12,
},
{
id: 'email',
type: 'email',
labelText: 'Email',
},
{
id: 'emailTypeText',
labelText: 'Email',
placeholder: 'input type text',
isEmail: true,
},
],
};