mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 23:32:58 +00:00
Add additional fields to default
This commit is contained in:
@@ -2,6 +2,9 @@ const _ = require('lodash');
|
|||||||
|
|
||||||
// Default brew properties in most cases
|
// Default brew properties in most cases
|
||||||
const DEFAULT_BREW = {
|
const DEFAULT_BREW = {
|
||||||
|
text : '',
|
||||||
|
editId : null,
|
||||||
|
shareId : null,
|
||||||
title : 'Untitled Brew',
|
title : 'Untitled Brew',
|
||||||
description : '',
|
description : '',
|
||||||
renderer : 'V3',
|
renderer : 'V3',
|
||||||
@@ -13,10 +16,13 @@ const DEFAULT_BREW = {
|
|||||||
theme : '5ePHB'
|
theme : '5ePHB'
|
||||||
};
|
};
|
||||||
// Default brew properties for loading
|
// Default brew properties for loading
|
||||||
const DEFAULT_BREW_LOAD = _.defaults({
|
const DEFAULT_BREW_LOAD = {};
|
||||||
renderer : 'legacy',
|
_.defaults(DEFAULT_BREW_LOAD,
|
||||||
published : true
|
{
|
||||||
}, DEFAULT_BREW);
|
renderer : 'legacy',
|
||||||
|
published : true
|
||||||
|
},
|
||||||
|
DEFAULT_BREW);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
DEFAULT_BREW,
|
DEFAULT_BREW,
|
||||||
|
|||||||
Reference in New Issue
Block a user