mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 09:33:08 +00:00
update based on feedback
This commit is contained in:
@@ -1,24 +1,39 @@
|
||||
const { WIDGET_TYPE, FIELD_TYPE } = require('../../../shared/naturalcrit/codeEditor/helpers/widget-elements/constants');
|
||||
const { SNIPPET_TYPE, FIELD_TYPE } = require('../../../shared/naturalcrit/codeEditor/helpers/widget-elements/constants');
|
||||
|
||||
module.exports = [{
|
||||
name : 'monster',
|
||||
type : WIDGET_TYPE.SNIPPET,
|
||||
classes : ['frame', 'wide']
|
||||
name : 'monster',
|
||||
type : SNIPPET_TYPE.DEFAULT,
|
||||
fields : [{
|
||||
name : 'frame',
|
||||
type : FIELD_TYPE.CHECKBOX
|
||||
}, {
|
||||
name : 'wide',
|
||||
type : FIELD_TYPE.CHECKBOX
|
||||
}]
|
||||
}, {
|
||||
name : 'classTable',
|
||||
type : WIDGET_TYPE.SNIPPET,
|
||||
classes : ['frame', 'decoration', 'wide']
|
||||
name : 'classTable',
|
||||
type : SNIPPET_TYPE.DEFAULT,
|
||||
fields : [{
|
||||
name : 'frame',
|
||||
type : FIELD_TYPE.CHECKBOX
|
||||
}, {
|
||||
name : 'decoration',
|
||||
type : FIELD_TYPE.CHECKBOX
|
||||
}, {
|
||||
name : 'wide',
|
||||
type : FIELD_TYPE.CHECKBOX
|
||||
}]
|
||||
}, {
|
||||
name : 'image',
|
||||
type : WIDGET_TYPE.IMAGE,
|
||||
type : SNIPPET_TYPE.IMAGE,
|
||||
fields : []
|
||||
}, {
|
||||
name : 'artist',
|
||||
type : WIDGET_TYPE.SNIPPET,
|
||||
type : SNIPPET_TYPE.DEFAULT,
|
||||
fields : [{
|
||||
name : 'top',
|
||||
type : FIELD_TYPE.STYLE,
|
||||
type : FIELD_TYPE.TEXT,
|
||||
increment : 5,
|
||||
lineBreak : true
|
||||
hints : true
|
||||
}]
|
||||
}];
|
||||
Reference in New Issue
Block a user