mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 11:08:10 +00:00
remove references to systems in our code whenever possible
This commit is contained in:
@@ -46,11 +46,6 @@ const MetadataNav = createReactClass({
|
|||||||
</>;
|
</>;
|
||||||
},
|
},
|
||||||
|
|
||||||
getSystems : function(){
|
|
||||||
if(!this.props.brew.systems || this.props.brew.systems.length == 0) return 'No systems';
|
|
||||||
return this.props.brew.systems.join(', ');
|
|
||||||
},
|
|
||||||
|
|
||||||
renderMetaWindow : function(){
|
renderMetaWindow : function(){
|
||||||
return <div className={`window ${this.state.showMetaWindow ? 'active' : 'inactive'}`}>
|
return <div className={`window ${this.state.showMetaWindow ? 'active' : 'inactive'}`}>
|
||||||
<div className='row'>
|
<div className='row'>
|
||||||
@@ -65,10 +60,6 @@ const MetadataNav = createReactClass({
|
|||||||
<h4>Tags</h4>
|
<h4>Tags</h4>
|
||||||
<p>{this.getTags()}</p>
|
<p>{this.getTags()}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='row'>
|
|
||||||
<h4>Systems</h4>
|
|
||||||
<p>{this.getSystems()}</p>
|
|
||||||
</div>
|
|
||||||
<div className='row'>
|
<div className='row'>
|
||||||
<h4>Updated</h4>
|
<h4>Updated</h4>
|
||||||
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
|
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const NewBrew = ()=>{
|
|||||||
localStorage.setItem(BREWKEY, newBrew.text);
|
localStorage.setItem(BREWKEY, newBrew.text);
|
||||||
localStorage.setItem(STYLEKEY, newBrew.style);
|
localStorage.setItem(STYLEKEY, newBrew.style);
|
||||||
localStorage.setItem(METAKEY, JSON.stringify(
|
localStorage.setItem(METAKEY, JSON.stringify(
|
||||||
_.pick(newBrew, ['title', 'description', 'tags', 'systems', 'renderer', 'theme', 'lang'])
|
_.pick(newBrew, ['title', 'description', 'tags', 'renderer', 'theme', 'lang'])
|
||||||
));
|
));
|
||||||
window.location.href = '/new';
|
window.location.href = '/new';
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ const DEFAULT_BREW = {
|
|||||||
theme : '5ePHB',
|
theme : '5ePHB',
|
||||||
authors : [],
|
authors : [],
|
||||||
tags : [],
|
tags : [],
|
||||||
systems : [],
|
|
||||||
lang : 'en',
|
lang : 'en',
|
||||||
thumbnail : '',
|
thumbnail : '',
|
||||||
views : 0,
|
views : 0,
|
||||||
|
|||||||
@@ -151,7 +151,6 @@ const GoogleActions = {
|
|||||||
description : file.description,
|
description : file.description,
|
||||||
views : parseInt(file.properties.views),
|
views : parseInt(file.properties.views),
|
||||||
published : file.properties.published ? file.properties.published == 'true' : false,
|
published : file.properties.published ? file.properties.published == 'true' : false,
|
||||||
systems : [],
|
|
||||||
lang : file.properties.lang,
|
lang : file.properties.lang,
|
||||||
thumbnail : file.properties.thumbnail,
|
thumbnail : file.properties.thumbnail,
|
||||||
webViewLink : file.webViewLink
|
webViewLink : file.webViewLink
|
||||||
@@ -298,7 +297,6 @@ const GoogleActions = {
|
|||||||
text : file.data,
|
text : file.data,
|
||||||
|
|
||||||
description : obj.data.description,
|
description : obj.data.description,
|
||||||
systems : obj.data.properties.systems ? obj.data.properties.systems.split(',') : [],
|
|
||||||
authors : [],
|
authors : [],
|
||||||
lang : obj.data.properties.lang,
|
lang : obj.data.properties.lang,
|
||||||
published : obj.data.properties.published ? obj.data.properties.published == 'true' : false,
|
published : obj.data.properties.published ? obj.data.properties.published == 'true' : false,
|
||||||
|
|||||||
Reference in New Issue
Block a user