0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 16:22:42 +00:00

Cleanup of console logging

This commit is contained in:
David Bolack
2024-02-27 20:51:59 -06:00
parent 7384cdc241
commit 8f15887c03
7 changed files with 0 additions and 31 deletions

View File

@@ -188,9 +188,6 @@ const BrewRenderer = (props)=>{
rendererPath = 'Brew'; rendererPath = 'Brew';
} }
let themePath = props.theme ?? '5ePHB'; let themePath = props.theme ?? '5ePHB';
console.log(`props.userThemes`);
console.log(props);
console.log(`props.userThemes`);
const Themes = { ...staticThemes, ...props.userThemes }; const Themes = { ...staticThemes, ...props.userThemes };
let baseThemePath = Themes[rendererPath][themePath]?.baseTheme; let baseThemePath = Themes[rendererPath][themePath]?.baseTheme;

View File

@@ -339,9 +339,6 @@ const Editor = createClass({
view={this.state.view} view={this.state.view}
style={{ display: 'none' }} style={{ display: 'none' }}
rerenderParent={this.rerenderParent} /> rerenderParent={this.rerenderParent} />
{console.log('Metadata')}
{console.log(this.props)}
{console.log('Metadata')}
<MetadataEditor <MetadataEditor
metadata={this.props.brew} metadata={this.props.brew}
onChange={this.props.onMetaChange} onChange={this.props.onMetaChange}

View File

@@ -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]; 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; let dropdown;
if(this.props.metadata.renderer == 'legacy') { if(this.props.metadata.renderer == 'legacy') {

View File

@@ -37,9 +37,6 @@ const EditPage = createClass({
}, },
getInitialState : function() { getInitialState : function() {
console.log('Edit Initial');
console.log(this.props);
console.log('Edit Initial');
return { return {
brew : this.props.brew, brew : this.props.brew,
isSaving : false, isSaving : false,

View File

@@ -98,9 +98,6 @@ const PrintPage = createClass({
rendererPath = 'Brew'; rendererPath = 'Brew';
} }
let themePath = this.state.brew.theme ?? '5ePHB'; 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 }; const Themes = { ...staticThemes, ...this.state.brew.userThemes };
let baseThemePath = Themes[rendererPath][themePath]?.baseTheme; let baseThemePath = Themes[rendererPath][themePath]?.baseTheme;

View File

@@ -286,9 +286,6 @@ app.get('/user/:username', async (req, res, next)=>{
//Edit Page //Edit Page
app.get('/edit/:id', asyncHandler(getBrew('edit')), async(req, res, next)=>{ app.get('/edit/:id', asyncHandler(getBrew('edit')), async(req, res, next)=>{
req.brew = req.brew.toObject ? req.brew.toObject() : req.brew; 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, req.ogMeta = { ...defaultMetaTags,
title : req.brew.title || 'Untitled Brew', title : req.brew.title || 'Untitled Brew',

View File

@@ -49,9 +49,6 @@ const splitTextStyleAndMetadata = (brew)=>{
}; };
const getUsersBrewThemes = async (username, id)=>{ const getUsersBrewThemes = async (username, id)=>{
console.log('getUsersBrewThemes');
console.log(username);
console.log(id);
const fields = [ const fields = [
'title', 'title',
'tags', 'tags',
@@ -82,7 +79,6 @@ const getUsersBrewThemes = async (username, id)=>{
}; };
}; };
console.log('getUsersBrewThemes end');
return userThemes; return userThemes;
}; };
@@ -158,10 +154,6 @@ const api = {
throw { name: 'BrewLoad Error', message: 'Brew not found', status: 404, HBErrorCode: '05', accessType: accessType, brewId: id }; 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]; const userID = accessType === 'edit' ? req.account.username : stub.authors[0];
// Clean up brew: fill in missing fields with defaults / fix old invalid values // Clean up brew: fill in missing fields with defaults / fix old invalid values
@@ -173,11 +165,6 @@ const api = {
stub.userThemes = userThemes; stub.userThemes = userThemes;
} }
console.log('stub.userThemes');
console.log(stub.userThemes);
console.log(stub.userThemes);
console.log('stub.userThemes');
req.brew = stub ?? {}; req.brew = stub ?? {};
next(); next();
}; };