-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boilerplate added - https://github.com/meteor-useraccounts/boilerplat…
- Loading branch information
1 parent
03b565c
commit 2373951
Showing
22 changed files
with
649 additions
and
79 deletions.
There are no files selected for viewing
432 changes: 354 additions & 78 deletions
432
.idea/libraries/meteor_packages_auto_import_browser.xml
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,10 @@ | ||
<template name="footer"> | ||
<div id="footer"> | ||
<div class="container"> | ||
<hr> | ||
<p> | ||
Boilerplate App for Meteor using UserAccounts packages :-) | ||
</p> | ||
</div> | ||
</div> | ||
</template> |
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,8 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | ||
<title>UserAccounts styled for Twitter Bootstrap</title> | ||
</head> | ||
|
||
<body> | ||
</body> |
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,7 @@ | ||
<template name="masterLayout"> | ||
{{> yield region='nav'}} | ||
<div id="content"> | ||
{{> yield}} | ||
</div> | ||
{{> yield region='footer'}} | ||
</template> |
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,29 @@ | ||
<template name="nav"> | ||
<nav class="navbar navbar-default navbar-static-top" role="navigation"> | ||
<div class=container> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-8"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<span class="navbar-brand"> | ||
<img alt="UserAccounts" width="25" height="25" src="/imgs/ua-logo.png"> | ||
</span> | ||
</div> | ||
|
||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-8"> | ||
<ul class="nav navbar-nav"> | ||
<li class="{{isActiveRoute regex='home'}}"><a href="{{pathFor 'home'}}">Home</a></li> | ||
<li class="{{isActiveRoute regex='private'}}"><a href="{{pathFor 'private'}}">Private</a></li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right"> | ||
{{> atNavButton}} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</template> |
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,6 @@ | ||
<template name="pageNotFound"> | ||
<div class="container"> | ||
<h3>404 - Houston, we have a problem!!!</h3> | ||
<h5>The page you're looking for was not found.</h5> | ||
</div> | ||
</template> |
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,29 @@ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif /*rtl:prepend:"Droid Arabic Kufi","Droid Sans", */; | ||
background: #fcfcfc url(/imgs/bg.jpg) repeat; | ||
margin: 0px; | ||
/* Margin bottom by footer height */ | ||
margin-bottom: 70px; | ||
padding: 0px; | ||
color: #555555; | ||
min-width: 320px; | ||
} | ||
#content { | ||
padding-top: 70px; | ||
} | ||
#footer { | ||
position: absolute; | ||
bottom: 20px; | ||
width: 100%; | ||
height: 70px; | ||
} | ||
|
||
#footer > .container { | ||
padding-right: 15px; | ||
padding-left: 15px; | ||
} |
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,21 @@ | ||
<template name="home"> | ||
<div class="container"> | ||
<div class="text-center"> | ||
<h1>Hello Meteorites!</h1> | ||
<p> | ||
If you'd like to discover more about useraccounts packages for | ||
<a href="https://www.meteor.com/">Meteor</a>, you can have a | ||
<a href="https://atmospherejs.com/useraccounts">look at them on Atmosphere</a> | ||
or at the | ||
<a href="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/meteor-useraccounts/">meteor-useraccounts GitHub organization</a> | ||
</p> | ||
<p> | ||
Head instead to the | ||
<a href="https://github.com/meteor-useraccounts/core/blob/master/Guide.md">Guide</a> | ||
to read a bit of documentation, or lets have a look at the | ||
<a href="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/meteor-useraccounts/boilerplates">boilerplates</a> | ||
for a quick start! | ||
</p> | ||
</div> | ||
</div> | ||
</template> |
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,7 @@ | ||
<template name="private"> | ||
<div class="container"> | ||
<div class="text-center"> | ||
<h1>This is private stuff!</h1> | ||
</div> | ||
</div> | ||
</template> |
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 @@ | ||
T9n.setLanguage('en'); |
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,27 @@ | ||
// Options | ||
AccountsTemplates.configure({ | ||
// defaultLayout: 'emptyLayout', | ||
showForgotPasswordLink: true, | ||
overrideLoginErrors: true, | ||
enablePasswordChange: true, | ||
|
||
// sendVerificationEmail: true, | ||
// enforceEmailVerification: true, | ||
//confirmPassword: true, | ||
//continuousValidation: false, | ||
//displayFormLabels: true, | ||
//forbidClientAccountCreation: true, | ||
//formValidationFeedback: true, | ||
//homeRoutePath: '/', | ||
//showAddRemoveServices: false, | ||
//showPlaceholders: true, | ||
|
||
negativeValidation: true, | ||
positiveValidation: true, | ||
negativeFeedback: false, | ||
positiveFeedback: true, | ||
|
||
// Privacy Policy and Terms of Use | ||
//privacyUrl: 'privacy', | ||
//termsUrl: 'terms-of-use', | ||
}); |
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,30 @@ | ||
Router.configure({ | ||
layoutTemplate: 'masterLayout', | ||
loadingTemplate: 'loading', | ||
notFoundTemplate: 'pageNotFound', | ||
yieldTemplates: { | ||
nav: {to: 'nav'}, | ||
footer: {to: 'footer'}, | ||
} | ||
}); | ||
|
||
Router.map(function() { | ||
this.route('home', { | ||
path: '/', | ||
}); | ||
|
||
this.route('private'); | ||
}); | ||
|
||
Router.plugin('ensureSignedIn', { | ||
only: ['private'] | ||
}); | ||
|
||
//Routes | ||
AccountsTemplates.configureRoute('changePwd'); | ||
AccountsTemplates.configureRoute('enrollAccount'); | ||
AccountsTemplates.configureRoute('forgotPwd'); | ||
AccountsTemplates.configureRoute('resetPwd'); | ||
AccountsTemplates.configureRoute('signIn'); | ||
AccountsTemplates.configureRoute('signUp'); | ||
AccountsTemplates.configureRoute('verifyEmail'); |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,53 @@ | ||
// Set up login services | ||
Meteor.startup(function() { | ||
// Add Facebook configuration entry | ||
/* | ||
ServiceConfiguration.configurations.update( | ||
{ service: "facebook" }, | ||
{ $set: { | ||
appId: "XXXXXXXXXXXXXXX", | ||
secret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
} | ||
}, | ||
{ upsert: true } | ||
); | ||
*/ | ||
|
||
// Add GitHub configuration entry | ||
/* | ||
ServiceConfiguration.configurations.update( | ||
{ service: "github" }, | ||
{ $set: { | ||
clientId: "XXXXXXXXXXXXXXXXXXXX", | ||
secret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
} | ||
}, | ||
{ upsert: true } | ||
); | ||
*/ | ||
|
||
// Add Google configuration entry | ||
ServiceConfiguration.configurations.update( | ||
{ service: "google" }, | ||
{ $set: { | ||
clientId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
client_email: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
secret: "XXXXXXXXXXXXXXXXXXXXXXXX" | ||
} | ||
}, | ||
{ upsert: true } | ||
); | ||
|
||
// Add Linkedin configuration entry | ||
/* | ||
ServiceConfiguration.configurations.update( | ||
{ service: "linkedin" }, | ||
{ $set: { | ||
clientId: "XXXXXXXXXXXXXX", | ||
secret: "XXXXXXXXXXXXXXXX" | ||
} | ||
}, | ||
{ upsert: true } | ||
); | ||
*/ | ||
}); |
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,24 @@ | ||
/* | ||
Accounts.emailTemplates.siteName = "MySite"; | ||
Accounts.emailTemplates.from = "MySite <[email protected]>"; | ||
Accounts.emailTemplates.resetPassword.subject = function (user) { | ||
return "Message for " + user.profile.displayName; | ||
}; | ||
Accounts.emailTemplates.resetPassword.text = function (user, url) { | ||
var signature = "MySite Bot"; | ||
//var president = President.findOne(); | ||
//if (president) | ||
// president = Meteor.users.findOne(president.presidentId); | ||
// signature = president.profile.displayName + ", the MySite President."; | ||
return "Dear " + user.profile.displayName + ",\n\n" + | ||
"Click the following link to set your new password:\n" + | ||
url + "\n\n" + | ||
"Please never forget it again!!!\n\n\n" + | ||
"Cheers,\n" + | ||
signature; | ||
}; | ||
*/ |