mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 08:20:12 +01:00
Merge branch 'GhassenRjab-feature/fix-lint' into devel
This commit is contained in:
commit
1efa66b58c
6 changed files with 48 additions and 25 deletions
|
|
@ -129,6 +129,8 @@
|
||||||
"Integrations": true,
|
"Integrations": true,
|
||||||
"HTTP": true,
|
"HTTP": true,
|
||||||
"AccountSettings": true,
|
"AccountSettings": true,
|
||||||
"Announcements": true
|
"Announcements": true,
|
||||||
|
"Swimlanes": true,
|
||||||
|
"Npm": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
CHANGELOG.md
11
CHANGELOG.md
|
|
@ -1,3 +1,14 @@
|
||||||
|
# Upcoming Wekan release
|
||||||
|
|
||||||
|
This release fixes the following bugs:
|
||||||
|
|
||||||
|
- [Fix lint errors related to sandstorm](https://github.com/wekan/wekan/commit/0a16147470246c8f49bb918f5ddc7bb2e54fba14);
|
||||||
|
- [Add Swimlanes to globals](https://github.com/wekan/wekan/commit/373e9782dcf87a9c1169b5d1f8175ce14e4898c9);
|
||||||
|
- [Fix lint errors related to trello creator](https://github.com/wekan/wekan/commit/951a0db380d60f3d948ae38d50b85a54983a51de);
|
||||||
|
- [Fix lint errors related to language names](https://github.com/wekan/wekan/commit/c0d33d97f2c8d4e9371a03d4ad3022df3ed64d3d).
|
||||||
|
|
||||||
|
Thanks to GitHub user GhassenRjab for contributions.
|
||||||
|
|
||||||
# v0.77 2018-02-23 Wekan release
|
# v0.77 2018-02-23 Wekan release
|
||||||
|
|
||||||
This release adds the following new features:
|
This release adds the following new features:
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,14 @@ Template.userFormsLayout.onRendered(() => {
|
||||||
Template.userFormsLayout.helpers({
|
Template.userFormsLayout.helpers({
|
||||||
languages() {
|
languages() {
|
||||||
return _.map(TAPi18n.getLanguages(), (lang, code) => {
|
return _.map(TAPi18n.getLanguages(), (lang, code) => {
|
||||||
return {
|
const tag = code;
|
||||||
tag: code,
|
let name = lang.name;
|
||||||
name: lang.name === 'br' ? 'Brezhoneg' : lang.name === 'ig' ? 'Igbo' : lang.name,
|
if (lang.name === 'br') {
|
||||||
};
|
name = 'Brezhoneg';
|
||||||
|
} else if (lang.name === 'ig') {
|
||||||
|
name = 'Igbo';
|
||||||
|
}
|
||||||
|
return { tag, name };
|
||||||
}).sort(function(a, b) {
|
}).sort(function(a, b) {
|
||||||
if (a.name === b.name) {
|
if (a.name === b.name) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -114,10 +114,16 @@ Template.changePasswordPopup.onRendered(function () {
|
||||||
Template.changeLanguagePopup.helpers({
|
Template.changeLanguagePopup.helpers({
|
||||||
languages() {
|
languages() {
|
||||||
return _.map(TAPi18n.getLanguages(), (lang, code) => {
|
return _.map(TAPi18n.getLanguages(), (lang, code) => {
|
||||||
return {
|
// Same code in /client/components/main/layouts.js
|
||||||
tag: code,
|
// TODO : Make code reusable
|
||||||
name: lang.name === 'br' ? 'Brezhoneg' : lang.name === 'ig' ? 'Igbo' : lang.name,
|
const tag = code;
|
||||||
};
|
let name = lang.name;
|
||||||
|
if (lang.name === 'br') {
|
||||||
|
name = 'Brezhoneg';
|
||||||
|
} else if (lang.name === 'ig') {
|
||||||
|
name = 'Igbo';
|
||||||
|
}
|
||||||
|
return { tag, name };
|
||||||
}).sort(function (a, b) {
|
}).sort(function (a, b) {
|
||||||
if (a.name === b.name) {
|
if (a.name === b.name) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -401,19 +401,19 @@ export class TrelloCreator {
|
||||||
}
|
}
|
||||||
|
|
||||||
createSwimlanes(boardId) {
|
createSwimlanes(boardId) {
|
||||||
const swimlaneToCreate = {
|
const swimlaneToCreate = {
|
||||||
archived: false,
|
archived: false,
|
||||||
boardId,
|
boardId,
|
||||||
// We are being defensing here by providing a default date (now) if the
|
// We are being defensing here by providing a default date (now) if the
|
||||||
// creation date wasn't found on the action log. This happen on old
|
// creation date wasn't found on the action log. This happen on old
|
||||||
// Wekan boards (eg from 2013) that didn't log the 'createList' action
|
// Wekan boards (eg from 2013) that didn't log the 'createList' action
|
||||||
// we require.
|
// we require.
|
||||||
createdAt: this._now(),
|
createdAt: this._now(),
|
||||||
title: 'Default',
|
title: 'Default',
|
||||||
};
|
};
|
||||||
const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
|
const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
|
||||||
Swimlanes.direct.update(swimlaneId, {$set: {'updatedAt': this._now()}});
|
Swimlanes.direct.update(swimlaneId, {$set: {'updatedAt': this._now()}});
|
||||||
this.swimlane = swimlaneId;
|
this.swimlane = swimlaneId;
|
||||||
}
|
}
|
||||||
|
|
||||||
createChecklists(trelloChecklists) {
|
createChecklists(trelloChecklists) {
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,9 @@ const sandstormBoard = {
|
||||||
|
|
||||||
if (isSandstorm && Meteor.isServer) {
|
if (isSandstorm && Meteor.isServer) {
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const pathParts = process.cwd().split("/");
|
const pathParts = process.cwd().split('/');
|
||||||
var path = pathParts.join("/");
|
const path = pathParts.join('/');
|
||||||
const Capnp = Npm.require(path + "../../../node_modules/capnp.js");
|
const Capnp = Npm.require(`${path}../../../node_modules/capnp.js`);
|
||||||
const Package = Capnp.importSystem('sandstorm/package.capnp');
|
const Package = Capnp.importSystem('sandstorm/package.capnp');
|
||||||
const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp');
|
const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp');
|
||||||
const Identity = Capnp.importSystem('sandstorm/identity.capnp');
|
const Identity = Capnp.importSystem('sandstorm/identity.capnp');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue