0
0
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:
G.Ambatte
2022-12-14 19:23:16 +13:00
parent 0a885c8581
commit f470a6185a
3 changed files with 30 additions and 19 deletions

24
server/brewDefaults.js Normal file
View 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
};