mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Cleanup of console logging
This commit is contained in:
@@ -188,9 +188,6 @@ const BrewRenderer = (props)=>{
|
||||
rendererPath = 'Brew';
|
||||
}
|
||||
let themePath = props.theme ?? '5ePHB';
|
||||
console.log(`props.userThemes`);
|
||||
console.log(props);
|
||||
console.log(`props.userThemes`);
|
||||
const Themes = { ...staticThemes, ...props.userThemes };
|
||||
let baseThemePath = Themes[rendererPath][themePath]?.baseTheme;
|
||||
|
||||
|
||||
@@ -339,9 +339,6 @@ const Editor = createClass({
|
||||
view={this.state.view}
|
||||
style={{ display: 'none' }}
|
||||
rerenderParent={this.rerenderParent} />
|
||||
{console.log('Metadata')}
|
||||
{console.log(this.props)}
|
||||
{console.log('Metadata')}
|
||||
<MetadataEditor
|
||||
metadata={this.props.brew}
|
||||
onChange={this.props.onMetaChange}
|
||||
|
||||
@@ -212,9 +212,6 @@ const MetadataEditor = createClass({
|
||||
};
|
||||
|
||||
const currentTheme = mergedThemes[`${_.upperFirst(this.props.metadata.theme[0] === '#' ? 'Brew' : this.props.metadata.renderer)}`][this.props.metadata.theme];
|
||||
console.log('currentTheme');
|
||||
console.log(this.props.metadata.themeClass);
|
||||
console.log('currentTheme');
|
||||
let dropdown;
|
||||
|
||||
if(this.props.metadata.renderer == 'legacy') {
|
||||
|
||||
@@ -37,9 +37,6 @@ const EditPage = createClass({
|
||||
},
|
||||
|
||||
getInitialState : function() {
|
||||
console.log('Edit Initial');
|
||||
console.log(this.props);
|
||||
console.log('Edit Initial');
|
||||
return {
|
||||
brew : this.props.brew,
|
||||
isSaving : false,
|
||||
|
||||
@@ -98,9 +98,6 @@ const PrintPage = createClass({
|
||||
rendererPath = 'Brew';
|
||||
}
|
||||
let themePath = this.state.brew.theme ?? '5ePHB';
|
||||
console.log(`this.state.brew.userThemes`);
|
||||
console.log(this.state.brew);
|
||||
console.log(`this.state.brew.userThemes`);
|
||||
const Themes = { ...staticThemes, ...this.state.brew.userThemes };
|
||||
let baseThemePath = Themes[rendererPath][themePath]?.baseTheme;
|
||||
|
||||
|
||||
@@ -286,9 +286,6 @@ app.get('/user/:username', async (req, res, next)=>{
|
||||
//Edit Page
|
||||
app.get('/edit/:id', asyncHandler(getBrew('edit')), async(req, res, next)=>{
|
||||
req.brew = req.brew.toObject ? req.brew.toObject() : req.brew;
|
||||
console.log('Load Edit');
|
||||
console.log(req.brew);
|
||||
console.log('Load Edit');
|
||||
|
||||
req.ogMeta = { ...defaultMetaTags,
|
||||
title : req.brew.title || 'Untitled Brew',
|
||||
|
||||
@@ -49,9 +49,6 @@ const splitTextStyleAndMetadata = (brew)=>{
|
||||
};
|
||||
|
||||
const getUsersBrewThemes = async (username, id)=>{
|
||||
console.log('getUsersBrewThemes');
|
||||
console.log(username);
|
||||
console.log(id);
|
||||
const fields = [
|
||||
'title',
|
||||
'tags',
|
||||
@@ -82,7 +79,6 @@ const getUsersBrewThemes = async (username, id)=>{
|
||||
};
|
||||
};
|
||||
|
||||
console.log('getUsersBrewThemes end');
|
||||
return userThemes;
|
||||
};
|
||||
|
||||
@@ -158,10 +154,6 @@ const api = {
|
||||
throw { name: 'BrewLoad Error', message: 'Brew not found', status: 404, HBErrorCode: '05', accessType: accessType, brewId: id };
|
||||
}
|
||||
|
||||
console.log(`print`);
|
||||
console.log(accessType);
|
||||
console.log(stub);
|
||||
console.log(`print`);
|
||||
const userID = accessType === 'edit' ? req.account.username : stub.authors[0];
|
||||
|
||||
// Clean up brew: fill in missing fields with defaults / fix old invalid values
|
||||
@@ -173,11 +165,6 @@ const api = {
|
||||
stub.userThemes = userThemes;
|
||||
}
|
||||
|
||||
|
||||
console.log('stub.userThemes');
|
||||
console.log(stub.userThemes);
|
||||
console.log(stub.userThemes);
|
||||
console.log('stub.userThemes');
|
||||
req.brew = stub ?? {};
|
||||
next();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user