mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
Move default brew to app.js
This commit is contained in:
24
server/brewDefaults.js
Normal file
24
server/brewDefaults.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const _ = require('lodash');
|
||||
|
||||
// Default brew properties in most cases
|
||||
const DEFAULT_BREW = {
|
||||
title : 'Untitled Brew',
|
||||
description : '',
|
||||
renderer : 'V3',
|
||||
tags : [],
|
||||
systems : [],
|
||||
thumbnail : '',
|
||||
published : false,
|
||||
pageCount : 1,
|
||||
theme : '5ePHB'
|
||||
};
|
||||
// Default brew properties for loading
|
||||
const DEFAULT_BREW_LOAD = _.defaults({
|
||||
renderer : 'legacy',
|
||||
published : true
|
||||
}, DEFAULT_BREW);
|
||||
|
||||
module.exports = {
|
||||
DEFAULT_BREW,
|
||||
DEFAULT_BREW_LOAD
|
||||
};
|
||||
Reference in New Issue
Block a user