From cf7d3b5a7ea7043eb454f7c3330f2c316957b3dc Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 27 Jan 2019 18:09:53 +0200 Subject: - Add back scrollbars that [were hidden when trying to fix another bug](https://github.com/wekan/wekan/pull/2132/commits/f7c6b7fce237a6dbdbbd6d728cfb11ad3f4378eb). Thanks to xet7 ! Closes #2134 --- client/components/swimlanes/swimlanes.styl | 1 - 1 file changed, 1 deletion(-) diff --git a/client/components/swimlanes/swimlanes.styl b/client/components/swimlanes/swimlanes.styl index 19613ad9..e4e2cd3b 100644 --- a/client/components/swimlanes/swimlanes.styl +++ b/client/components/swimlanes/swimlanes.styl @@ -53,7 +53,6 @@ .list-group flex-direction: row height: 100% - overflow: hidden swimlane-color(background, color...) background: background !important -- cgit v1.2.3-1-g7c22 From be03a191c4321c2f80116c0ee1ae6c826d882535 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 27 Jan 2019 18:16:27 +0200 Subject: - Try to have some progress on Wekan Sandstorm API. I did not get it fully working yet. Thanks to xet7. --- sandstorm-pkgdef.capnp | 2 +- server/authentication.js | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp index df483323..0e269034 100644 --- a/sandstorm-pkgdef.capnp +++ b/sandstorm-pkgdef.capnp @@ -226,7 +226,7 @@ const pkgdef :Spk.PackageDefinition = ( verbPhrase = (defaultText = "removed from card"), ), ], ), - apiPath = "/", + apiPath = "/api", saveIdentityCaps = true, ), ); diff --git a/server/authentication.js b/server/authentication.js index 4d3cc53e..d0d71e4d 100644 --- a/server/authentication.js +++ b/server/authentication.js @@ -16,6 +16,27 @@ Meteor.startup(() => { Authentication = {}; Authentication.checkUserId = function (userId) { + if (userId === undefined) { + // Monkey patch to work around the problem described in + // https://github.com/sandstorm-io/meteor-accounts-sandstorm/pull/31 + const _httpMethods = HTTP.methods; + HTTP.methods = (newMethods) => { + Object.keys(newMethods).forEach((key) => { + if (newMethods[key].auth) { + newMethods[key].auth = function() { + const sandstormID = this.req.headers['x-sandstorm-user-id']; + const user = Meteor.users.findOne({'services.sandstorm.id': sandstormID}); + if (user) { + userId = user._id; + } + //return user && user._id; + }; + } + }); + _httpMethods(newMethods); + }; + } + if (userId === undefined) { const error = new Meteor.Error('Unauthorized', 'Unauthorized'); error.statusCode = 401; -- cgit v1.2.3-1-g7c22 From 62a0e57f38cd9b3e39fd16b27304134c841d2c4a Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 27 Jan 2019 18:18:20 +0200 Subject: Update translations. --- i18n/zh-CN.i18n.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/i18n/zh-CN.i18n.json b/i18n/zh-CN.i18n.json index 7ec3ca75..b8729e83 100644 --- a/i18n/zh-CN.i18n.json +++ b/i18n/zh-CN.i18n.json @@ -335,10 +335,10 @@ "list-archive-cards-pop": "将移动看板中列表的所有卡片,查看或回复归档中的卡片,点击“菜单”->“归档”", "list-move-cards": "移动列表中的所有卡片", "list-select-cards": "选择列表中的所有卡片", - "set-color-list": "Set Color", + "set-color-list": "设置颜色", "listActionPopup-title": "列表操作", "swimlaneActionPopup-title": "泳道图操作", - "swimlaneAddPopup-title": "Add a Swimlane below", + "swimlaneAddPopup-title": "在下面添加一个泳道", "listImportCardPopup-title": "导入 Trello 卡片", "listMorePopup-title": "更多", "link-list": "关联到这个列表", @@ -520,9 +520,9 @@ "editCardReceivedDatePopup-title": "修改接收日期", "editCardEndDatePopup-title": "修改终止日期", "setCardColorPopup-title": "设置颜色", - "setCardActionsColorPopup-title": "Choose a color", - "setSwimlaneColorPopup-title": "Choose a color", - "setListColorPopup-title": "Choose a color", + "setCardActionsColorPopup-title": "选择一种颜色", + "setSwimlaneColorPopup-title": "选择一种颜色", + "setListColorPopup-title": "选择一种颜色", "assigned-by": "分配人", "requested-by": "需求人", "board-delete-notice": "删除时永久操作,将会丢失此看板上的所有列表、卡片和动作。", -- cgit v1.2.3-1-g7c22 From 905ddafe41b2558bf2da182a11218237321f8613 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 27 Jan 2019 18:27:21 +0200 Subject: v2.05 --- CHANGELOG.md | 13 +++++++++++++ Stackerfile.yml | 2 +- package.json | 2 +- sandstorm-pkgdef.capnp | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 268803e3..92a8edf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# v2.05 2019-01-27 Wekan release + +This release fixes the following bugs partially: + +- Add back scrollbars that [were hidden when trying to fix another + bug](https://github.com/wekan/wekan/pull/2132/commits/f7c6b7fce237a6dbdbbd6d728cfb11ad3f4378eb). + This makes scrollbars work in Chromium/Chrome, but adds back bug to Firefox + that cards are below of swimlane title. +- [Try to have some progress on Wekan Sandstorm API](https://github.com/wekan/wekan/commit/be03a191c4321c2f80116c0ee1ae6c826d882535). + I did not get it fully working yet. + +Thanks to GitHub user xet7 for contributions. + # v2.04 2019-01-26 Wekan release This release fixes the following bugs with Apache I-CLA, thanks to bentiss: diff --git a/Stackerfile.yml b/Stackerfile.yml index 6855581e..dd45e323 100644 --- a/Stackerfile.yml +++ b/Stackerfile.yml @@ -1,5 +1,5 @@ appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928 -appVersion: "v2.04.0" +appVersion: "v2.05.0" files: userUploads: - README.md diff --git a/package.json b/package.json index 192a4894..1024b346 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wekan", - "version": "v2.04.0", + "version": "v2.05.0", "description": "Open-Source kanban", "private": true, "scripts": { diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp index 0e269034..eaf011fe 100644 --- a/sandstorm-pkgdef.capnp +++ b/sandstorm-pkgdef.capnp @@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = ( appTitle = (defaultText = "Wekan"), # The name of the app as it is displayed to the user. - appVersion = 206, + appVersion = 207, # Increment this for every release. - appMarketingVersion = (defaultText = "2.04.0~2019-01-26"), + appMarketingVersion = (defaultText = "2.05.0~2019-01-27"), # Human-readable presentation of the app version. minUpgradableAppVersion = 0, -- cgit v1.2.3-1-g7c22