Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for low coffeescript dependency #763

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_error.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atErrorHelpers = {
singleError: function() {
var errors = AccountsTemplates.state.form.get("error");
Expand Down
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_input.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atInputRendered = [function(){
var fieldId = this.data._id;

Expand Down
7 changes: 6 additions & 1 deletion lib/templates_helpers/at_message.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atMessageHelpers = {
message: function() {
var messageText = AccountsTemplates.state.form.get("message");
if (messageText)
return T9n.get(messageText, markIfMissing=false);
},
};
};
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_nav_button.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atNavButtonHelpers = {
text: function(){
var key = Meteor.userId() ? AccountsTemplates.texts.navSignOut : AccountsTemplates.texts.navSignIn;
Expand Down
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_pwd_form.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atPwdFormHelpers = {
disabled: function() {
return AccountsTemplates.disabled();
Expand Down
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_pwd_form_btn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atPwdFormBtnHelpers = {
submitDisabled: function(){
var disable = _.chain(AccountsTemplates.getFields())
Expand Down
7 changes: 6 additions & 1 deletion lib/templates_helpers/at_pwd_link.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atPwdLinkHelpers = {
disabled: function() {
return AccountsTemplates.disabled();
Expand All @@ -21,4 +26,4 @@ AT.prototype.atPwdLinkEvents = {
event.preventDefault();
AccountsTemplates.linkClick("forgotPwd");
},
};
};
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_reCaptcha.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atReCaptchaRendered = function() {
$.getScript('//www.google.com/recaptcha/api.js?hl=' + T9n.getLanguage());
};
Expand Down
7 changes: 6 additions & 1 deletion lib/templates_helpers/at_resend_verification_email_link.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atResendVerificationEmailLinkHelpers = {
disabled: function () {
return AccountsTemplates.disabled();
Expand All @@ -21,4 +26,4 @@ AT.prototype.atResendVerificationEmailLinkEvents = {
event.preventDefault();
AccountsTemplates.linkClick('resendVerificationEmail');
},
};
};
7 changes: 6 additions & 1 deletion lib/templates_helpers/at_result.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atResultHelpers = {
result: function() {
var resultText = AccountsTemplates.state.form.get("result");
if (resultText)
return T9n.get(resultText, markIfMissing=false);
},
};
};
7 changes: 6 additions & 1 deletion lib/templates_helpers/at_sep.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atSepHelpers = {
sepText: function(){
return T9n.get(AccountsTemplates.texts.sep, markIfMissing=false);
},
};
};
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_signin_link.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atSigninLinkHelpers = {
disabled: function() {
return AccountsTemplates.disabled();
Expand Down
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_signup_link.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atSignupLinkHelpers = {
disabled: function() {
return AccountsTemplates.disabled();
Expand Down
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_social.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atSocialHelpers = {
disabled: function() {
if (AccountsTemplates.disabled())
Expand Down
7 changes: 6 additions & 1 deletion lib/templates_helpers/at_terms_link.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atTermsLinkHelpers = {
disabled: function() {
return AccountsTemplates.disabled();
Expand Down Expand Up @@ -30,4 +35,4 @@ AT.prototype.atTermsLinkEvents = {
if (AccountsTemplates.disabled())
event.preventDefault();
},
};
};
5 changes: 5 additions & 0 deletions lib/templates_helpers/at_title.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { T9n } from 'meteor-accounts-t9n';
T9n.setLanguage('en');
import { en } from 'meteor-accounts-t9n/build/en';
T9n.map("en", en);

AT.prototype.atTitleHelpers = {
title: function() {
var parentData = Template.currentData();
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Package.onUse(function(api) {
'check',
'underscore',
'reactive-var',
'[email protected]'
], ['client', 'server']);

api.use([
Expand All @@ -30,7 +31,6 @@ Package.onUse(function(api) {

api.imply([
'accounts-base',
'softwarerero:[email protected]',
], ['client', 'server']);

api.imply([
Expand Down