-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:mostafiz93/Meteor-Boilerplate
- Loading branch information
Showing
14 changed files
with
457 additions
and
11 deletions.
There are no files selected for viewing
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Meteor } from 'meteor/meteor'; | ||
import { Accounts } from 'meteor/accounts-base'; | ||
|
||
const bcrypt = require('bcrypt'); | ||
|
||
Meteor.methods({ | ||
'user.create':function(data){ | ||
if(data.code != 'army101') throw new Meteor.Error(500, 'Wrong Activation Code', 'Wrong Activation Code'); | ||
return Accounts.createUser({ | ||
name: data.name, | ||
username: data.userId, | ||
password: data.password, | ||
}); | ||
} | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
import { FlowRouter } from 'meteor/kadira:flow-router'; | ||
import { mount } from 'react-mounter'; | ||
|
||
import SamplePage from '/imports/ui/pages/samplePage.jsx' | ||
import HomePage from '/imports/ui/pages/HomePage.jsx' | ||
import RegisterPage from '/imports/ui/pages/RegisterPage' | ||
import LoginPage from '/imports/ui/pages/LoginPage' | ||
|
||
|
||
FlowRouter.route('/', { | ||
name: 'SamplePage', | ||
name: 'Homepage' , | ||
action(params, queryParams) { | ||
console.log("home route is being called..."); | ||
Meteor.userId() ? mount(HomePage) : mount(LoginPage); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/register', { | ||
name: 'RegisterPage', | ||
action(params, queryParams) { | ||
console.log("home route is being called..."); | ||
// Meteor.userId() ? mount(Dashboard) : mount(Login); | ||
mount(RegisterPage); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/login', { | ||
name: 'LoginPage', | ||
action(params, queryParams) { | ||
console.log("home route is being called..."); | ||
// Meteor.userId() ? mount(Dashboard) : mount(Login); | ||
mount(SamplePage); | ||
mount(LoginPage); | ||
} | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '/imports/api/users/methods.js'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { Component } from 'react'; | ||
|
||
|
||
import HomeCardPage from '/imports/ui/pages/HomeCardPage.jsx'; | ||
|
||
|
||
export default class HomeCard extends React.Component{ | ||
constructor(props){ | ||
super(props); | ||
} | ||
|
||
render(){ | ||
console.log(this.props) | ||
return( | ||
<div className='complainContainer'> | ||
<i className='remove red link icon threadRemoveIcon'></i> | ||
<img src='images/logo.png'/> | ||
<h3>Complain title goes here</h3> | ||
<p className='complainItems'> | ||
<span><i className='wait icon'></i>5:05 pm</span> | ||
<a><i className='talk outline icon'></i>11 replies</a> | ||
<a><i className='attach icon'></i></a> | ||
</p> | ||
<div className='clr'></div> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | ||
</p> | ||
<button className="circular ui icon blue button complainAddBtn" > | ||
<i className="icon add"></i> | ||
</button> | ||
</div> | ||
) | ||
} | ||
} |
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
Oops, something went wrong.