forked from reactplay/react-play
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made description as single line field (reactplay#674)
Co-authored-by: Koustov <[email protected]>
- Loading branch information
1 parent
44deeef
commit fe93ae7
Showing
1 changed file
with
102 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,104 @@ | ||
export const FIELD_TEMPLATE = [ | ||
{ | ||
datafield: "name", | ||
type: "input", | ||
display: "Name", | ||
placeholder: "Play Name", | ||
required: true, | ||
}, | ||
{ | ||
datafield: "description", | ||
type: "input", | ||
multiline: true, | ||
rows: 2, | ||
display: "Description", | ||
placeholder: "Describe your play", | ||
required: true, | ||
}, | ||
{ | ||
datafield: "issue", | ||
type: "select", | ||
display: "Issue", | ||
placeholder: "Select an issue to link with", | ||
multiple: false, | ||
options: [], | ||
fieldName: "name", | ||
required: true, | ||
}, | ||
{ | ||
datafield: "language", | ||
type: "select", | ||
display: "Language", | ||
placeholder: "Preferred Language", | ||
options: [ | ||
{ | ||
name: "JavaScript", | ||
value: "js", | ||
}, | ||
{ | ||
name: "TypeScript", | ||
value: "ts", | ||
}, | ||
], | ||
required: true, | ||
}, | ||
{ | ||
datafield: "style", | ||
type: "select", | ||
display: "Style", | ||
placeholder: "Preferred Style Script", | ||
options: [ | ||
{ | ||
name: "CSS", | ||
value: "css", | ||
}, | ||
{ | ||
name: "SCSS", | ||
value: "scss", | ||
}, | ||
], | ||
}, | ||
{ | ||
datafield: "level", | ||
type: "select", | ||
multiple: false, | ||
display: "Level", | ||
placeholder: "Play Complexity Level", | ||
required: true, | ||
}, | ||
{ | ||
datafield: "github", | ||
type: "input", | ||
display: "Github Username", | ||
placeholder: "Your Github username", | ||
required: true, | ||
}, | ||
{ | ||
datafield: "tags", | ||
type: "select", | ||
display: "Tags", | ||
placeholder: "All Tags", | ||
fieldValue: "id", | ||
fieldName: "name", | ||
freeSolo: true, | ||
multiple: true, | ||
options: [], | ||
}, | ||
{ | ||
datafield: "cover", | ||
type: "input", | ||
display: "Cover Image URL", | ||
placeholder: | ||
"Alternatively you can add a 'cover.png' in your play directory", | ||
}, | ||
{ | ||
datafield: "blog", | ||
type: "input", | ||
display: "Blog URL", | ||
placeholder: "Example: https://blog.greenroots.info ", | ||
}, | ||
{ | ||
datafield: "video", | ||
type: "input", | ||
display: "Video", | ||
placeholder: "Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ", | ||
}, | ||
{ | ||
datafield: 'name', | ||
type: 'input', | ||
display: 'Name', | ||
placeholder: 'Play Name', | ||
required: true, | ||
}, | ||
{ | ||
datafield: 'description', | ||
type: 'input', | ||
display: 'Description', | ||
placeholder: 'Describe your play', | ||
required: true, | ||
}, | ||
{ | ||
datafield: 'issue', | ||
type: 'select', | ||
display: 'Issue', | ||
placeholder: 'Select an issue to link with', | ||
multiple: false, | ||
options: [], | ||
fieldName: 'name', | ||
required: true, | ||
}, | ||
{ | ||
datafield: 'language', | ||
type: 'select', | ||
display: 'Language', | ||
placeholder: 'Preferred Language', | ||
options: [ | ||
{ | ||
name: 'JavaScript', | ||
value: 'js', | ||
}, | ||
{ | ||
name: 'TypeScript', | ||
value: 'ts', | ||
}, | ||
], | ||
required: true, | ||
}, | ||
{ | ||
datafield: 'style', | ||
type: 'select', | ||
display: 'Style', | ||
placeholder: 'Preferred Style Script', | ||
options: [ | ||
{ | ||
name: 'CSS', | ||
value: 'css', | ||
}, | ||
{ | ||
name: 'SCSS', | ||
value: 'scss', | ||
}, | ||
], | ||
}, | ||
{ | ||
datafield: 'level', | ||
type: 'select', | ||
multiple: false, | ||
display: 'Level', | ||
placeholder: 'Play Complexity Level', | ||
required: true, | ||
}, | ||
{ | ||
datafield: 'github', | ||
type: 'input', | ||
display: 'Github Username', | ||
placeholder: 'Your Github username', | ||
required: true, | ||
}, | ||
{ | ||
datafield: 'tags', | ||
type: 'select', | ||
display: 'Tags', | ||
placeholder: 'All Tags', | ||
fieldValue: 'id', | ||
fieldName: 'name', | ||
freeSolo: true, | ||
multiple: true, | ||
options: [], | ||
}, | ||
{ | ||
datafield: 'cover', | ||
type: 'input', | ||
display: 'Cover Image URL', | ||
placeholder: | ||
"Alternatively you can add a 'cover.png' in your play directory", | ||
}, | ||
{ | ||
datafield: 'blog', | ||
type: 'input', | ||
display: 'Blog URL', | ||
placeholder: 'Example: https://blog.greenroots.info ', | ||
}, | ||
{ | ||
datafield: 'video', | ||
type: 'input', | ||
display: 'Video', | ||
placeholder: 'Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ', | ||
}, | ||
]; |