mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Upgrade Meteor to 1.2.1-rc4
This version includes a more complete selection of ES2015 polyfills that I started used across the code base, for instance by replacing `$.trim(str)` by `str.trim()`.
This commit is contained in:
parent
b3696e1e3b
commit
31b60d82fc
12 changed files with 50 additions and 48 deletions
|
|
@ -1 +1 @@
|
||||||
METEOR@1.2.0.2
|
METEOR@1.2.1-rc.4
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
3stack:presence@1.0.3
|
3stack:presence@1.0.3
|
||||||
accounts-base@1.2.1
|
accounts-base@1.2.2-rc.0
|
||||||
accounts-password@1.1.3
|
accounts-password@1.1.4-rc.0
|
||||||
aldeed:collection2@2.5.0
|
aldeed:collection2@2.5.0
|
||||||
aldeed:simple-schema@1.3.3
|
aldeed:simple-schema@1.3.3
|
||||||
alethes:pages@1.8.4
|
alethes:pages@1.8.4
|
||||||
arillo:flow-router-helpers@0.4.5
|
arillo:flow-router-helpers@0.4.5
|
||||||
audit-argument-checks@1.0.4
|
audit-argument-checks@1.0.4
|
||||||
autoupdate@1.2.3
|
autoupdate@1.2.4-rc.0
|
||||||
babel-compiler@5.8.24_1
|
babel-compiler@5.8.24_1
|
||||||
babel-runtime@0.1.4
|
babel-runtime@0.1.4
|
||||||
base64@1.0.4
|
base64@1.0.4
|
||||||
|
|
@ -34,22 +34,22 @@ cfs:storage-adapter@0.2.3
|
||||||
cfs:tempstore@0.1.5
|
cfs:tempstore@0.1.5
|
||||||
cfs:upload-http@0.0.20
|
cfs:upload-http@0.0.20
|
||||||
cfs:worker@0.1.4
|
cfs:worker@0.1.4
|
||||||
check@1.0.6
|
check@1.1.0-rc.0
|
||||||
coffeescript@1.0.10
|
coffeescript@1.0.11-rc.0
|
||||||
cosmos:browserify@0.5.1
|
cosmos:browserify@0.5.1
|
||||||
dburles:collection-helpers@1.0.3
|
dburles:collection-helpers@1.0.3
|
||||||
ddp@1.2.2
|
ddp@1.2.2
|
||||||
ddp-client@1.2.1
|
ddp-client@1.2.1
|
||||||
ddp-common@1.2.1
|
ddp-common@1.2.2-rc.0
|
||||||
ddp-rate-limiter@1.0.0
|
ddp-rate-limiter@1.0.0
|
||||||
ddp-server@1.2.1
|
ddp-server@1.2.2-rc.0
|
||||||
deps@1.0.9
|
deps@1.0.9
|
||||||
diff-sequence@1.0.1
|
diff-sequence@1.0.1
|
||||||
ecmascript@0.1.5
|
ecmascript@0.1.6-rc.0
|
||||||
ecmascript-collections@0.1.6
|
ecmascript-runtime@0.2.6-rc.0
|
||||||
ejson@1.0.7
|
ejson@1.0.7
|
||||||
email@1.0.7
|
email@1.0.8-rc.0
|
||||||
es5-shim@4.1.13
|
es5-shim@4.1.14-rc.0
|
||||||
fastclick@1.0.7
|
fastclick@1.0.7
|
||||||
fortawesome:fontawesome@4.4.0
|
fortawesome:fontawesome@4.4.0
|
||||||
geojson-utils@1.0.4
|
geojson-utils@1.0.4
|
||||||
|
|
@ -71,7 +71,7 @@ localstorage@1.0.5
|
||||||
logging@1.0.8
|
logging@1.0.8
|
||||||
matb33:collection-hooks@0.8.1
|
matb33:collection-hooks@0.8.1
|
||||||
matteodem:easy-search@1.6.4
|
matteodem:easy-search@1.6.4
|
||||||
meteor@1.1.9
|
meteor@1.1.10-rc.0
|
||||||
meteor-base@1.0.1
|
meteor-base@1.0.1
|
||||||
meteor-platform@1.2.3
|
meteor-platform@1.2.3
|
||||||
meteorhacks:aggregate@1.3.0
|
meteorhacks:aggregate@1.3.0
|
||||||
|
|
@ -82,7 +82,7 @@ meteorspark:util@0.2.0
|
||||||
minifiers@1.1.7
|
minifiers@1.1.7
|
||||||
minimongo@1.0.10
|
minimongo@1.0.10
|
||||||
mobile-status-bar@1.0.6
|
mobile-status-bar@1.0.6
|
||||||
mongo@1.1.2
|
mongo@1.1.3-rc.0
|
||||||
mongo-id@1.0.1
|
mongo-id@1.0.1
|
||||||
mongo-livedata@1.0.9
|
mongo-livedata@1.0.9
|
||||||
mousetrap:mousetrap@1.4.6_1
|
mousetrap:mousetrap@1.4.6_1
|
||||||
|
|
@ -107,10 +107,10 @@ peerlibrary:blaze-components@0.14.0
|
||||||
peerlibrary:computed-field@0.3.0
|
peerlibrary:computed-field@0.3.0
|
||||||
peerlibrary:reactive-field@0.1.0
|
peerlibrary:reactive-field@0.1.0
|
||||||
perak:markdown@1.0.5
|
perak:markdown@1.0.5
|
||||||
promise@0.5.0
|
promise@0.5.1-rc.0
|
||||||
raix:eventemitter@0.1.3
|
raix:eventemitter@0.1.3
|
||||||
raix:handlebar-helpers@0.2.5
|
raix:handlebar-helpers@0.2.5
|
||||||
random@1.0.4
|
random@1.0.5-rc.0
|
||||||
rate-limit@1.0.0
|
rate-limit@1.0.0
|
||||||
reactive-dict@1.1.2
|
reactive-dict@1.1.2
|
||||||
reactive-var@1.0.6
|
reactive-var@1.0.6
|
||||||
|
|
@ -126,10 +126,10 @@ softwarerero:accounts-t9n@1.1.4
|
||||||
spacebars@1.0.7
|
spacebars@1.0.7
|
||||||
spacebars-compiler@1.0.7
|
spacebars-compiler@1.0.7
|
||||||
srp@1.0.4
|
srp@1.0.4
|
||||||
standard-minifiers@1.0.1
|
standard-minifiers@1.0.2-rc.0
|
||||||
tap:i18n@1.7.0
|
tap:i18n@1.7.0
|
||||||
templates:tabs@2.2.0
|
templates:tabs@2.2.0
|
||||||
templating@1.1.4
|
templating@1.1.5-rc.0
|
||||||
templating-tools@1.0.0
|
templating-tools@1.0.0
|
||||||
tracker@1.0.9
|
tracker@1.0.9
|
||||||
ui@1.0.8
|
ui@1.0.8
|
||||||
|
|
@ -139,6 +139,6 @@ useraccounts:core@1.12.4
|
||||||
useraccounts:flow-routing@1.12.4
|
useraccounts:flow-routing@1.12.4
|
||||||
useraccounts:unstyled@1.12.4
|
useraccounts:unstyled@1.12.4
|
||||||
verron:autosize@3.0.8
|
verron:autosize@3.0.8
|
||||||
webapp@1.2.2
|
webapp@1.2.3-rc.0
|
||||||
webapp-hashing@1.0.5
|
webapp-hashing@1.0.5
|
||||||
zimme:active-route@2.3.2
|
zimme:active-route@2.3.2
|
||||||
|
|
|
||||||
|
|
@ -101,9 +101,9 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
'submit .js-edit-comment'(evt) {
|
'submit .js-edit-comment'(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
const commentText = this.currentComponent().getValue();
|
const commentText = this.currentComponent().getValue().trim();
|
||||||
const commentId = Template.parentData().commentId;
|
const commentId = Template.parentData().commentId;
|
||||||
if ($.trim(commentText)) {
|
if (commentText) {
|
||||||
CardComments.update(commentId, {
|
CardComments.update(commentId, {
|
||||||
$set: {
|
$set: {
|
||||||
text: commentText,
|
text: commentText,
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,13 @@ BlazeComponent.extendComponent({
|
||||||
commentFormIsOpen.set(true);
|
commentFormIsOpen.set(true);
|
||||||
},
|
},
|
||||||
'submit .js-new-comment-form'(evt) {
|
'submit .js-new-comment-form'(evt) {
|
||||||
const input = this.getInput();
|
const input = this.getInput()
|
||||||
if ($.trim(input.val())) {
|
const text = input.val().trim();
|
||||||
|
if (text) {
|
||||||
CardComments.insert({
|
CardComments.insert({
|
||||||
|
text,
|
||||||
boardId: this.currentData().boardId,
|
boardId: this.currentData().boardId,
|
||||||
cardId: this.currentData()._id,
|
cardId: this.currentData()._id,
|
||||||
text: input.val(),
|
|
||||||
});
|
});
|
||||||
resetCommentInput(input);
|
resetCommentInput(input);
|
||||||
Tracker.flush();
|
Tracker.flush();
|
||||||
|
|
@ -72,8 +73,9 @@ EscapeActions.register('inlinedForm',
|
||||||
docId: Session.get('currentCard'),
|
docId: Session.get('currentCard'),
|
||||||
};
|
};
|
||||||
const commentInput = $('.js-new-comment-input');
|
const commentInput = $('.js-new-comment-input');
|
||||||
if ($.trim(commentInput.val())) {
|
const draft = commentInput.val().trim();
|
||||||
UnsavedEdits.set(draftKey, commentInput.val());
|
if (draft) {
|
||||||
|
UnsavedEdits.set(draftKey, draft);
|
||||||
} else {
|
} else {
|
||||||
UnsavedEdits.reset(draftKey);
|
UnsavedEdits.reset(draftKey);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -186,10 +186,10 @@ BlazeComponent.extendComponent({
|
||||||
return [{
|
return [{
|
||||||
submit(evt) {
|
submit(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
const title = this.find('.list-name-input');
|
const title = this.find('.list-name-input').value.trim();
|
||||||
if ($.trim(title.value)) {
|
if (title) {
|
||||||
Lists.insert({
|
Lists.insert({
|
||||||
title: title.value,
|
title,
|
||||||
boardId: Session.get('currentBoard'),
|
boardId: Session.get('currentBoard'),
|
||||||
sort: $('.list').length,
|
sort: $('.list').length,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
'submit .js-card-details-title'(evt) {
|
'submit .js-card-details-title'(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
const title = this.currentComponent().getValue();
|
const title = this.currentComponent().getValue().trim();
|
||||||
if ($.trim(title)) {
|
if (title) {
|
||||||
this.data().setTitle(title);
|
this.data().setTitle(title);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -106,7 +106,7 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
close(isReset = false) {
|
close(isReset = false) {
|
||||||
if (this.isOpen.get() && !isReset) {
|
if (this.isOpen.get() && !isReset) {
|
||||||
const draft = $.trim(this.getValue());
|
const draft = this.getValue().trim();
|
||||||
if (draft !== Cards.findOne(Session.get('currentCard')).description) {
|
if (draft !== Cards.findOne(Session.get('currentCard')).description) {
|
||||||
UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
|
UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ BlazeComponent.extendComponent({
|
||||||
options.position = options.position || 'top';
|
options.position = options.position || 'top';
|
||||||
|
|
||||||
const forms = this.childrenComponents('inlinedForm');
|
const forms = this.childrenComponents('inlinedForm');
|
||||||
let form = _.find(forms, (component) => {
|
let form = forms.find((component) => {
|
||||||
return component.data().position === options.position;
|
return component.data().position === options.position;
|
||||||
});
|
});
|
||||||
if (!form && forms.length > 0) {
|
if (!form && forms.length > 0) {
|
||||||
|
|
@ -26,7 +26,7 @@ BlazeComponent.extendComponent({
|
||||||
const firstCardDom = this.find('.js-minicard:first');
|
const firstCardDom = this.find('.js-minicard:first');
|
||||||
const lastCardDom = this.find('.js-minicard:last');
|
const lastCardDom = this.find('.js-minicard:last');
|
||||||
const textarea = $(evt.currentTarget).find('textarea');
|
const textarea = $(evt.currentTarget).find('textarea');
|
||||||
const title = textarea.val();
|
const title = textarea.val().trim();
|
||||||
const position = this.currentData().position;
|
const position = this.currentData().position;
|
||||||
let sortIndex;
|
let sortIndex;
|
||||||
if (position === 'top') {
|
if (position === 'top') {
|
||||||
|
|
@ -35,7 +35,7 @@ BlazeComponent.extendComponent({
|
||||||
sortIndex = Utils.calculateIndex(lastCardDom, null).base;
|
sortIndex = Utils.calculateIndex(lastCardDom, null).base;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($.trim(title)) {
|
if (title) {
|
||||||
const _id = Cards.insert({
|
const _id = Cards.insert({
|
||||||
title,
|
title,
|
||||||
listId: this.data()._id,
|
listId: this.data()._id,
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ BlazeComponent.extendComponent({
|
||||||
editTitle(evt) {
|
editTitle(evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
const newTitle = this.childrenComponents('inlinedForm')[0].getValue();
|
const newTitle = this.childrenComponents('inlinedForm')[0].getValue();
|
||||||
const list = this.currentData();
|
const list = this.currentData().trim();
|
||||||
if ($.trim(newTitle)) {
|
if (newTitle) {
|
||||||
list.rename(newTitle);
|
list.rename(newTitle.trim());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ Template.editor.onRendered(() => {
|
||||||
{
|
{
|
||||||
match: /\B:([\-+\w]*)$/,
|
match: /\B:([\-+\w]*)$/,
|
||||||
search(term, callback) {
|
search(term, callback) {
|
||||||
callback($.map(Emoji.values, (emoji) => {
|
callback(Emoji.values.map((emoji) => {
|
||||||
return emoji.indexOf(term) === 0 ? emoji : null;
|
return emoji.includes(term) ? emoji : null;
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
template(value) {
|
template(value) {
|
||||||
|
|
@ -28,9 +28,9 @@ Template.editor.onRendered(() => {
|
||||||
match: /\B@(\w*)$/,
|
match: /\B@(\w*)$/,
|
||||||
search(term, callback) {
|
search(term, callback) {
|
||||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||||
callback($.map(currentBoard.members, (member) => {
|
callback(currentBoard.members.map((member) => {
|
||||||
const username = Users.findOne(member.userId).username;
|
const username = Users.findOne(member.userId).username;
|
||||||
return username.indexOf(term) === 0 ? username : null;
|
return username.includes(term) ? username : null;
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
template(value) {
|
template(value) {
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ Template.memberMenuPopup.events({
|
||||||
Template.editProfilePopup.events({
|
Template.editProfilePopup.events({
|
||||||
submit(evt, tpl) {
|
submit(evt, tpl) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
const fullname = $.trim(tpl.find('.js-profile-fullname').value);
|
const fullname = tpl.find('.js-profile-fullname').value.trim();
|
||||||
const username = $.trim(tpl.find('.js-profile-username').value);
|
const username = tpl.find('.js-profile-username').value.trim();
|
||||||
const initials = $.trim(tpl.find('.js-profile-initials').value);
|
const initials = tpl.find('.js-profile-initials').value.trim();
|
||||||
Users.update(Meteor.userId(), {$set: {
|
Users.update(Meteor.userId(), {$set: {
|
||||||
'profile.fullname': fullname,
|
'profile.fullname': fullname,
|
||||||
'profile.initials': initials,
|
'profile.initials': initials,
|
||||||
|
|
|
||||||
|
|
@ -97,11 +97,11 @@ Boards.helpers({
|
||||||
},
|
},
|
||||||
|
|
||||||
labelIndex(labelId) {
|
labelIndex(labelId) {
|
||||||
return _.indexOf(_.pluck(this.labels, '_id'), labelId);
|
return _.pluck(this.labels, '_id').indexOf(labelId);
|
||||||
},
|
},
|
||||||
|
|
||||||
memberIndex(memberId) {
|
memberIndex(memberId) {
|
||||||
return _.indexOf(_.pluck(this.members, 'userId'), memberId);
|
return _.pluck(this.members, 'userId').indexOf(memberId);
|
||||||
},
|
},
|
||||||
|
|
||||||
absoluteUrl() {
|
absoluteUrl() {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ if (isSandstorm && Meteor.isServer) {
|
||||||
const permissionDoc = { userId, isActive, isAdmin };
|
const permissionDoc = { userId, isActive, isAdmin };
|
||||||
|
|
||||||
const boardMembers = Boards.findOne(sandstormBoard._id).members;
|
const boardMembers = Boards.findOne(sandstormBoard._id).members;
|
||||||
const memberIndex = _.indexOf(_.pluck(boardMembers, 'userId'), userId);
|
const memberIndex = _.pluck(boardMembers, 'userId').indexOf(userId);
|
||||||
|
|
||||||
let modifier;
|
let modifier;
|
||||||
if (memberIndex > -1)
|
if (memberIndex > -1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue