0
0
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:
Charlie Humphreys
2023-07-14 00:32:16 -05:00
parent d044229b49
commit 23f2f1f53b
8 changed files with 270 additions and 221 deletions

View File

@@ -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
}]
}];