This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
"version": 1, | |
"newProjectRoot": "projects", | |
"projects": { | |
"portfolio": { | |
"root": "", | |
"sourceRoot": "src", | |
"projectType": "application", | |
"prefix": "app", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Meteor } from 'meteor/meteor'; | |
import { Roles } from 'meteor/alanning:roles'; | |
export function onLogin() { | |
return (dispatch) => { | |
const loggingIn = Meteor.loggingIn(); | |
const user = Meteor.user(); | |
const userId = Meteor.userId(); | |
const username = user && user.profile && user.profile.username && user.profile.username; | |
const fullname = user && user.profile && user.profile.fullname && user.profile.fullname; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Profile extends React.Component { | |
constructor(props) { | |
super(props) | |
autoBind(this) | |
} | |
profileReady(user) { //runs when the user data is loaded | |
if (this.props.feed.for != user.profile.username) { | |
this.props.feed.loading = true; | |
buildUserFeed({username: user.profile.username, accounts: user.accounts}) //outside method | |
.then((response) => { |