├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── lib
├── at_error.html
├── at_error.js
├── at_form.html
├── at_form.js
├── at_input.html
├── at_input.js
├── at_materialize.css
├── at_message.html
├── at_message.js
├── at_nav_button.html
├── at_nav_button.js
├── at_oauth.html
├── at_oauth.js
├── at_pwd_form.html
├── at_pwd_form.js
├── at_pwd_form_btn.html
├── at_pwd_form_btn.js
├── at_pwd_link.html
├── at_pwd_link.js
├── at_reCaptcha.html
├── at_reCaptcha.js
├── at_resend_verification_email_link.html
├── at_resend_verification_email_link.js
├── at_result.html
├── at_result.js
├── at_sep.html
├── at_sep.js
├── at_signin_link.html
├── at_signin_link.js
├── at_signup_link.html
├── at_signup_link.js
├── at_social.html
├── at_social.js
├── at_terms_link.html
├── at_terms_link.js
├── at_title.html
├── at_title.js
└── full_page_at_form.html
├── package.js
└── tests
└── tests.js
/.gitignore:
--------------------------------------------------------------------------------
1 | .build*
2 | versions.json
3 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: required
2 | language: node_js
3 | node_js:
4 | - "0.10"
5 | before_install:
6 | - "curl -L http://git.io/ejPSng | /bin/sh"
7 | env:
8 | - TEST_COMMAND=meteor
9 | CXX=g++-4.8
10 | addons:
11 | apt:
12 | sources:
13 | - ubuntu-toolchain-r-test
14 | packages:
15 | - g++-4.8
16 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 splendido
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://atmospherejs.com/useraccounts/materialize)
2 | [](https://travis-ci.org/meteor-useraccounts/materialize)
3 |
4 | # useraccounts:materialize
5 |
6 | Meteor sign up and sign in templates (and much more!) styled for [Materialize CSS](http://materializecss.com/).
7 |
8 | [Demo](https://useraccounts-materialize.meteor.com/) • [Boilerplate with iron:router ](https://github.com/meteor-useraccounts/boilerplates/tree/master/materialize-iron-router) • [Boilerplate with FlowRouter ](https://github.com/meteor-useraccounts/boilerplates/tree/master/materialize-flow-router)
9 |
10 | This package depends on [useraccounts:core](https://atmospherejs.com/useraccounts/core).
11 |
12 | Learn more [here](http://useraccounts.meteor.com) or have a look at the full [documentation](https://github.com/meteor-useraccounts/core/blob/master/Guide.md).
13 |
14 |
15 | ## Bring Your Own Materialize CSS
16 |
17 | Adding this package with `meteor add useraccounts:materialize` does not add any other packages providing Materialize CSS. This is to let you choose the flavour you prefer, be it [compiled](https://atmospherejs.com/materialize/materialize), LESS, SASS, or [from CDN](http://materializecss.com/getting-started.html)!
18 |
19 |
20 | At the moment it is up to date with Materialize CSS 0.97.0.
21 |
22 |
23 | ## Contributing
24 |
25 | Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request.
26 |
27 | Thanks to all those who have contributed code changes to [this package](https://github.com/meteor-useraccounts/materialize/graphs/contributors) as well as to the [core package](https://github.com/meteor-useraccounts/core/graphs/contributors) and all who have helped by submitting bug reports and feature ideas.
28 |
--------------------------------------------------------------------------------
/lib/at_error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{#each error}}
4 | {{errorText}}
5 | {{/each}}
6 |
7 |
--------------------------------------------------------------------------------
/lib/at_error.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atError.helpers(AccountsTemplates.atErrorHelpers);
--------------------------------------------------------------------------------
/lib/at_form.html:
--------------------------------------------------------------------------------
1 |
2 | {{#unless hide}}
3 |
4 | {{#if showTitle}}
5 | {{> atTitle}}
6 | {{/if}}
7 | {{#if showOauthServices}}
8 | {{> atOauth}}
9 | {{/if}}
10 | {{#if showServicesSeparator}}
11 | {{> atSep}}
12 | {{/if}}
13 | {{#if showError}}
14 | {{> atError}}
15 | {{/if}}
16 | {{#if showResult}}
17 | {{> atResult}}
18 | {{/if}}
19 | {{#if showMessage}}
20 | {{> atMessage}}
21 | {{/if}}
22 | {{#if showPwdForm}}
23 | {{> atPwdForm}}
24 | {{/if}}
25 | {{#if showTermsLink}}
26 | {{> atTermsLink}}
27 | {{/if}}
28 | {{#if showSignInLink}}
29 | {{> atSigninLink}}
30 | {{/if}}
31 | {{#if showSignUpLink}}
32 | {{> atSignupLink}}
33 | {{/if}}
34 | {{#if showResendVerificationEmailLink}}
35 | {{> atResendVerificationEmailLink}}
36 | {{/if}}
37 |
38 | {{/unless}}
39 |
40 |
--------------------------------------------------------------------------------
/lib/at_form.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atForm.helpers(AccountsTemplates.atFormHelpers);
--------------------------------------------------------------------------------
/lib/at_input.html:
--------------------------------------------------------------------------------
1 |
2 | {{> Template.dynamic template=templateName}}
3 |
4 |
5 |
6 |
7 |
8 | {{#if showLabels}}
9 |
10 | {{displayName}} {{#unless required}}{{optionalText}}{{/unless}}
11 |
12 | {{/if}}
13 |
14 | {{#if hasIcon}}
15 |
16 | {{/if}}
17 | {{#if hasError}}
18 | {{errorText}}
19 | {{/if}}
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | {{displayName}}
28 |
29 |
30 |
31 |
32 |
33 | {{displayName}}
34 |
35 | {{#each values}}
36 | {{text}}
37 | {{/each}}
38 |
39 |
40 |
41 |
42 |
43 |
44 | {{displayName}}
45 |
46 | {{#each values}}
47 |
48 |
49 | {{text}}
50 |
51 | {{/each}}
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/lib/at_input.js:
--------------------------------------------------------------------------------
1 | _.each(AccountsTemplates.atInputRendered, function(callback){
2 | Template.atInput.onRendered(callback);
3 | Template.atHiddenInput.onRendered(callback);
4 | });
5 |
6 | // Simply 'inherites' helpers from AccountsTemplates
7 | Template.atInput.helpers(AccountsTemplates.atInputHelpers);
8 |
9 | // Simply 'inherites' events from AccountsTemplates
10 | Template.atInput.events(AccountsTemplates.atInputEvents);
11 |
12 | // Simply 'inherites' helpers from AccountsTemplates
13 | Template.atTextInput.helpers(AccountsTemplates.atInputHelpers);
14 |
15 | // Simply 'inherites' helpers from AccountsTemplates
16 | Template.atCheckboxInput.helpers(AccountsTemplates.atInputHelpers);
17 |
18 | // Simply 'inherites' helpers from AccountsTemplates
19 | Template.atSelectInput.helpers(AccountsTemplates.atInputHelpers);
20 |
21 | Template.atSelectInput.onRendered(function () {
22 | $('#at-field-'+ this.data._id).material_select();
23 | });
24 |
25 | // Simply 'inherites' helpers from AccountsTemplates
26 | Template.atRadioInput.helpers(AccountsTemplates.atInputHelpers);
27 |
28 | // Simply 'inherites' helpers from AccountsTemplates
29 | Template.atHiddenInput.helpers(AccountsTemplates.atInputHelpers);
30 |
--------------------------------------------------------------------------------
/lib/at_materialize.css:
--------------------------------------------------------------------------------
1 | .at-social-btn,
2 | .at-btn.submit {
3 | min-width: 100%;
4 | }
5 | #at-facebook {
6 | background: #3B5998;
7 | color: #fff;
8 | }
9 | #at-facebook.disabled {
10 | color: #ddd;
11 | background: #666666;
12 | }
13 | #at-facebook:hover {
14 | background: #2C4780;
15 | }
16 | #at-linkedin {
17 | background: #338AB0;
18 | color: #fff;
19 | }
20 | #at-linkedin.disabled {
21 | color: #ddd;
22 | background: #666666;
23 | }
24 | #at-linkedin:hover {
25 | background: #0571A6;
26 | }
27 | #at-twitter {
28 | background: #4099FF;
29 | color: #fff;
30 | }
31 | #at-twitter.disabled {
32 | color: #ddd;
33 | background: #666666;
34 | }
35 | #at-twitter:hover {
36 | background: #3288EB;
37 | }
38 | #at-google {
39 | background: #db5a3c;
40 | color: #fff;
41 | }
42 | #at-google.disabled {
43 | color: #ddd;
44 | background: #666666;
45 | }
46 | #at-google:hover {
47 | background: #CA4C2E;
48 | }
49 | #at-github {
50 | background: #666;
51 | color: #fff;
52 | }
53 | #at-github.disabled {
54 | color: #ddd;
55 | background: #666666;
56 | }
57 | #at-github:hover {
58 | background: #555;
59 | }
60 | .at-input.validating * {
61 | cursor: progress;
62 | }
63 |
--------------------------------------------------------------------------------
/lib/at_message.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{message}}
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lib/at_message.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atMessage.helpers(AccountsTemplates.atMessageHelpers);
3 |
--------------------------------------------------------------------------------
/lib/at_nav_button.html:
--------------------------------------------------------------------------------
1 |
2 | {{text}}
3 |
--------------------------------------------------------------------------------
/lib/at_nav_button.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atNavButton.helpers(AccountsTemplates.atNavButtonHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atNavButton.events(AccountsTemplates.atNavButtonEvents);
--------------------------------------------------------------------------------
/lib/at_oauth.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{#each oauthService}}
4 | {{> atSocial}}
5 | {{/each}}
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/at_oauth.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atOauth.helpers(AccountsTemplates.atOauthHelpers);
--------------------------------------------------------------------------------
/lib/at_pwd_form.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/lib/at_pwd_form.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atPwdForm.helpers(AccountsTemplates.atPwdFormHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atPwdForm.events(AccountsTemplates.atPwdFormEvents);
--------------------------------------------------------------------------------
/lib/at_pwd_form_btn.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{buttonText}}
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/at_pwd_form_btn.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atPwdFormBtn.helpers(AccountsTemplates.atPwdFormBtnHelpers);
--------------------------------------------------------------------------------
/lib/at_pwd_link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{preText}}
5 | {{linkText}}
6 | {{suffText}}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/at_pwd_link.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atPwdLink.helpers(AccountsTemplates.atPwdLinkHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atPwdLink.events(AccountsTemplates.atPwdLinkEvents);
--------------------------------------------------------------------------------
/lib/at_reCaptcha.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/lib/at_reCaptcha.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' rendered callback from AccountsTemplates
2 | Template.atReCaptcha.rendered = AccountsTemplates.atReCaptchaRendered;
3 |
4 | // Simply 'inherites' helpers from AccountsTemplates
5 | Template.atReCaptcha.helpers(AccountsTemplates.atReCaptchaHelpers);
6 |
--------------------------------------------------------------------------------
/lib/at_resend_verification_email_link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{preText}}
5 | {{linkText}}
6 | {{suffText}}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/at_resend_verification_email_link.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atResendVerificationEmailLink.helpers(AccountsTemplates.atResendVerificationEmailLinkHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atResendVerificationEmailLink.events(AccountsTemplates.atResendVerificationEmailLinkEvents);
6 |
--------------------------------------------------------------------------------
/lib/at_result.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{result}}
4 |
5 |
--------------------------------------------------------------------------------
/lib/at_result.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atResult.helpers(AccountsTemplates.atResultHelpers);
--------------------------------------------------------------------------------
/lib/at_sep.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{sepText}}
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lib/at_sep.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atSep.helpers(AccountsTemplates.atSepHelpers);
--------------------------------------------------------------------------------
/lib/at_signin_link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{preText}}
5 | {{linkText}}
6 | {{suffText}}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/at_signin_link.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atSigninLink.helpers(AccountsTemplates.atSigninLinkHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atSigninLink.events(AccountsTemplates.atSigninLinkEvents);
--------------------------------------------------------------------------------
/lib/at_signup_link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{preText}}
5 | {{linkText}}
6 | {{suffText}}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/at_signup_link.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atSignupLink.helpers(AccountsTemplates.atSignupLinkHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atSignupLink.events(AccountsTemplates.atSignupLinkEvents);
--------------------------------------------------------------------------------
/lib/at_social.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{buttonText}}
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/at_social.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atSocial.helpers(AccountsTemplates.atSocialHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atSocial.events(AccountsTemplates.atSocialEvents);
--------------------------------------------------------------------------------
/lib/at_terms_link.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{text}}
5 | {{#if privacyUrl}}
6 | {{privacyLinkText}}
7 | {{/if}}
8 | {{#if showTermsAnd}}
9 | {{and}}
10 | {{/if}}
11 | {{#if termsUrl}}
12 | {{termsLinkText}}
13 | {{/if}}
14 |
15 |
16 |
--------------------------------------------------------------------------------
/lib/at_terms_link.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atTermsLink.helpers(AccountsTemplates.atTermsLinkHelpers);
3 |
4 | // Simply 'inherites' events from AccountsTemplates
5 | Template.atTermsLink.events(AccountsTemplates.atTermsLinkEvents);
--------------------------------------------------------------------------------
/lib/at_title.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/lib/at_title.js:
--------------------------------------------------------------------------------
1 | // Simply 'inherites' helpers from AccountsTemplates
2 | Template.atTitle.helpers(AccountsTemplates.atTitleHelpers);
--------------------------------------------------------------------------------
/lib/full_page_at_form.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{> atForm}}
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/package.js:
--------------------------------------------------------------------------------
1 | Package.describe({
2 | summary: 'Accounts Templates styled for Materialize Css.',
3 | version: '1.14.2',
4 | name: 'useraccounts:materialize',
5 | git: 'https://github.com/meteor-useraccounts/materialize.git',
6 | });
7 |
8 | Package.on_use(function(api, where) {
9 | api.versionsFrom('METEOR@1.0');
10 |
11 | api.use([
12 | 'templating',
13 | 'underscore',
14 | ], 'client');
15 |
16 | api.use([
17 | 'useraccounts:core',
18 | ], ['client', 'server']);
19 |
20 | // Requires all routing packages loads before this asking for weak dependencies.
21 | api.use('useraccounts:flow-routing@1.14.2', ['client', 'server'], {weak: true});
22 | api.use('useraccounts:iron-routing@1.14.2', ['client', 'server'], {weak: true});
23 |
24 | api.imply([
25 | 'useraccounts:core@1.14.2',
26 | ], ['client', 'server']);
27 |
28 | api.add_files([
29 | 'lib/at_error.html',
30 | 'lib/at_error.js',
31 | 'lib/at_form.html',
32 | 'lib/at_form.js',
33 | 'lib/at_input.html',
34 | 'lib/at_input.js',
35 | 'lib/at_message.html',
36 | 'lib/at_message.js',
37 | 'lib/at_nav_button.html',
38 | 'lib/at_nav_button.js',
39 | 'lib/at_oauth.html',
40 | 'lib/at_oauth.js',
41 | 'lib/at_pwd_form.html',
42 | 'lib/at_pwd_form.js',
43 | 'lib/at_pwd_form_btn.html',
44 | 'lib/at_pwd_form_btn.js',
45 | 'lib/at_pwd_link.html',
46 | 'lib/at_pwd_link.js',
47 | 'lib/at_reCaptcha.html',
48 | 'lib/at_reCaptcha.js',
49 | 'lib/at_result.html',
50 | 'lib/at_result.js',
51 | 'lib/at_sep.html',
52 | 'lib/at_sep.js',
53 | 'lib/at_signin_link.html',
54 | 'lib/at_signin_link.js',
55 | 'lib/at_signup_link.html',
56 | 'lib/at_signup_link.js',
57 | 'lib/at_social.html',
58 | 'lib/at_social.js',
59 | 'lib/at_terms_link.html',
60 | 'lib/at_terms_link.js',
61 | 'lib/at_resend_verification_email_link.html',
62 | 'lib/at_resend_verification_email_link.js',
63 | 'lib/at_title.html',
64 | 'lib/at_title.js',
65 | 'lib/full_page_at_form.html',
66 | 'lib/at_materialize.css',
67 | ], ['client']);
68 | });
69 |
70 | Package.on_test(function(api) {
71 | api.versionsFrom('METEOR@1.4.0.1');
72 |
73 | api.use([
74 | 'useraccounts:materialize',
75 | 'useraccounts:core@1.14.2',
76 | ]);
77 |
78 | api.use([
79 | 'accounts-password',
80 | 'tinytest',
81 | 'test-helpers',
82 | 'templating'
83 | ], ['client', 'server']);
84 |
85 | api.add_files([
86 | 'tests/tests.js'
87 | ], ['client', 'server']);
88 | });
89 |
--------------------------------------------------------------------------------
/tests/tests.js:
--------------------------------------------------------------------------------
1 |
2 | // TODO: write tests!!!
--------------------------------------------------------------------------------