Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
newUserList = _.sortBy(newUserList, i => -1 * (1000 * i.status.online) - (i.balance || 0));
// Session.set('USER_LIST', newUserList);
return newUserList;
};
const naustormData = getNaustormData();
const newUserList = mergeData(naustormData);
return {
startWeek,
endWeek,
naustormData: naustormData.naustorm_data,
};
})(Container.create(TabTopList));
if (user.services.google) {
picture = user.services.google.picture || picture;
} else if (user.services.goalify) {
picture = user.services.goalify.avatar || picture;
} else if (user.services.facebook) {
picture = `https://graph.facebook.com/v2.10/${user.services.facebook.id}/picture?type=square`;
}
}
/* eslint-disable no-param-reassign */
user.profile.picture = picture;
return user;
},
}
).fetch(),
}))(Container.create(TabUsers));
return {
keg: kegDetailStore.getState(),
profile: profileStore.getState().data,
};
}
componentWillMount() {
fetchKeg(this.props.kegId);
}
render() {
return ;
}
}
export default Container.create(KegDetailContainer, { withProps: true });
};
}
render() {
return <div>
<div>
</div>
</div>
}
}
const AppContainer = Container.create(App);
ReactDOM.render(, document.getElementById("js-main"));
}
static calculateState() {
return brewerySelectStore.getState();
}
componentWillMount() {
fetchBreweries();
}
render() {
return ;
}
}
export default Container.create(BrewerySelectContainer, { withProps: true });
const songHandle = Meteor.subscribe('Songs.public');
today.setHours(0, 0, 0, 0);
return {
isLoadingSong: !songHandle.ready(),
songs: Songs.find(
{
timeAdded: { $gt: today.getTime() },
roomId: currentRoom ? currentRoom._id : null,
},
{
sort: { timeAdded: 1 },
}
).fetch(),
};
})(Container.create(TabSongs));
return (
<div>
<div>
<div>
} />
} />
</div>
</div>
</div>
);
}
}
module.exports.default = Container.create(Application);
{ this.props.children }
);
}
renderComponentItems() {
let components = Object.keys(this.state.components.toJSON());
return components.map(componentName => {
return this.props.router.push(`/component/${ componentName }`) } key={ componentName } />;
});
}
}
export default Container.create(App);
{cartView}
);
}
});
CartContainer.getStores = () => [ cartStore, authStore ];
CartContainer.calculateState = () => ({
cart: cartStore.getState(),
auth: authStore.getState()
});
export default Container.create(CartContainer);
return {
user: props.stores.userStore.getState()
};
}
render() {
return (
<div>
<header>
</header></div>
);
}
}
const userContainer = Container.create(UserContainer, {
withProps: true
});
export default userContainer;