Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pannuhuone committed Jan 12, 2016
1 parent 03b565c commit 2373951
Show file tree
Hide file tree
Showing 22 changed files with 649 additions and 79 deletions.
432 changes: 354 additions & 78 deletions .idea/libraries/meteor_packages_auto_import_browser.xml

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@ ecmascript # Enable ECMAScript2015+ syntax in app code

autopublish # Publish all data to the clients (for prototyping)
insecure # Allow all DB writes from clients (for prototyping)
accounts-password
accounts-google
service-configuration
twbs:bootstrap
zimme:active-route
useraccounts:iron-routing
logging
reload
random
ejson
spacebars
check
useraccounts:bootstrap
30 changes: 30 additions & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]_1
Expand All @@ -12,27 +16,40 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand All @@ -42,25 +59,38 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]_2
[email protected]_1
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
softwarerero:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
twbs:[email protected]
[email protected]
[email protected]
[email protected]
useraccounts:[email protected]
useraccounts:[email protected]
useraccounts:[email protected]
[email protected]
[email protected]
zimme:[email protected]
10 changes: 10 additions & 0 deletions client/footer.html
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>
8 changes: 8 additions & 0 deletions client/main.html
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>
7 changes: 7 additions & 0 deletions client/master_layout.html
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>
29 changes: 29 additions & 0 deletions client/nav.html
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>
6 changes: 6 additions & 0 deletions client/page_not_found.html
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>
29 changes: 29 additions & 0 deletions client/stylesheets/style.css
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;
}
21 changes: 21 additions & 0 deletions client/views/home.html
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>
7 changes: 7 additions & 0 deletions client/views/private.html
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>
1 change: 1 addition & 0 deletions lib/config/accounts_t9n.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
T9n.setLanguage('en');
27 changes: 27 additions & 0 deletions lib/config/at_config.js
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',
});
30 changes: 30 additions & 0 deletions lib/router/routes.js
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');
1 change: 0 additions & 1 deletion proto001.css

This file was deleted.

Empty file removed proto001.html
Empty file.
Empty file removed proto001.js
Empty file.
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/imgs/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/imgs/ua-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions server/lib/config/accounts.js
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 }
);
*/
});
24 changes: 24 additions & 0 deletions server/lib/config/email.js
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;
};
*/

0 comments on commit 2373951

Please sign in to comment.