Merge branch 'edge' into meteor-1.8

This commit is contained in:
Lauri Ojansivu 2019-01-26 20:22:17 +02:00
commit 8e2f44bbc0
10 changed files with 63 additions and 56 deletions

View file

@ -1,10 +1,12 @@
# Upcoming Wekan release # v2.04 2019-01-26 Wekan release
WAITING FOR BUGFIX: This release fixes the following bugs with Apache I-CLA, thanks to bentiss:
- [Bugfix to swimlanes](https://github.com/wekan/wekan/pull/2126#issuecomment-457723923), IN PROGRESS, NOT READY YET. - [Bugfix for swimlanes, simplify setting color, fix rendering on Firefox](https://github.com/wekan/wekan/pull/2132).
# ON HOLD, WAITING FOR BUGFIX IN v2.04. (was: v2.03 2019-01-25 Wekan release) Thanks to GitHub user bentiss for contributions, and translators for their translations.
# Not released because of [bug](https://github.com/wekan/wekan/pull/2126#issuecomment-457723923): v2.03 2019-01-25 Wekan
This release adds the following new features with Apache I-CLA, thanks to bentiss: This release adds the following new features with Apache I-CLA, thanks to bentiss:

View file

@ -1,5 +1,5 @@
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928 appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
appVersion: "v2.03.0" appVersion: "v2.04.0"
files: files:
userUploads: userUploads:
- README.md - README.md

View file

@ -39,8 +39,10 @@ template(name="cardActions")
div.trigger-content div.trigger-content
div.trigger-text div.trigger-text
| {{{_'r-set-color'}}} | {{{_'r-set-color'}}}
button.trigger-button.trigger-button-color.card-details-green.js-show-color-palette(id="color-action") button.trigger-button.trigger-button-color.js-show-color-palette(
| {{{_'color-green'}}} id="color-action"
class="card-details-{{cardColorButton}}")
| {{{_ cardColorButtonText }}}
div.trigger-button.js-set-color-action.js-goto-rules div.trigger-button.js-set-color-action.js-goto-rules
i.fa.fa-plus i.fa.fa-plus

View file

@ -6,6 +6,15 @@ Meteor.startup(() => {
BlazeComponent.extendComponent({ BlazeComponent.extendComponent({
onCreated() { onCreated() {
this.subscribe('allRules'); this.subscribe('allRules');
this.cardColorButtonValue = new ReactiveVar('green');
},
cardColorButton() {
return this.cardColorButtonValue.get();
},
cardColorButtonText() {
return `color-${ this.cardColorButtonValue.get() }`;
}, },
labels() { labels() {
@ -128,11 +137,7 @@ BlazeComponent.extendComponent({
'click .js-set-color-action' (event) { 'click .js-set-color-action' (event) {
const ruleName = this.data().ruleName.get(); const ruleName = this.data().ruleName.get();
const trigger = this.data().triggerVar.get(); const trigger = this.data().triggerVar.get();
const colorButton = this.find('#color-action'); const selectedColor = this.cardColorButtonValue.get();
if (colorButton.value === '') {
colorButton.value = 'green';
}
const selectedColor = colorButton.value;
const boardId = Session.get('currentBoard'); const boardId = Session.get('currentBoard');
const desc = Utils.getTriggerActionDesc(event, this); const desc = Utils.getTriggerActionDesc(event, this);
const triggerId = Triggers.insert(trigger); const triggerId = Triggers.insert(trigger);
@ -157,8 +162,8 @@ BlazeComponent.extendComponent({
BlazeComponent.extendComponent({ BlazeComponent.extendComponent({
onCreated() { onCreated() {
this.currentAction = this.currentData(); this.currentAction = this.currentData();
this.colorButton = Popup.getOpenerComponent().find('#color-action'); this.colorButtonValue = Popup.getOpenerComponent().cardColorButtonValue;
this.currentColor = new ReactiveVar(this.colorButton.value); this.currentColor = new ReactiveVar(this.colorButtonValue.get());
}, },
colors() { colors() {
@ -175,10 +180,7 @@ BlazeComponent.extendComponent({
this.currentColor.set(this.currentData().color); this.currentColor.set(this.currentData().color);
}, },
'click .js-submit' () { 'click .js-submit' () {
this.colorButton.classList.remove(`card-details-${ this.colorButton.value }`); this.colorButtonValue.set(this.currentColor.get());
this.colorButton.value = this.currentColor.get();
this.colorButton.innerText = `${TAPi18n.__(`color-${ this.currentColor.get() }`)}`;
this.colorButton.classList.add(`card-details-${ this.colorButton.value }`);
Popup.close(); Popup.close();
}, },
}]; }];

View file

@ -53,6 +53,7 @@
.list-group .list-group
flex-direction: row flex-direction: row
height: 100% height: 100%
overflow: hidden
swimlane-color(background, color...) swimlane-color(background, color...)
background: background !important background: background !important

View file

@ -192,7 +192,7 @@
"color-slateblue": "azul", "color-slateblue": "azul",
"color-white": "blanco", "color-white": "blanco",
"color-yellow": "amarilla", "color-yellow": "amarilla",
"unset-color": "Unset", "unset-color": "Desmarcar",
"comment": "Comentar", "comment": "Comentar",
"comment-placeholder": "Escribir comentario", "comment-placeholder": "Escribir comentario",
"comment-only": "Sólo comentarios", "comment-only": "Sólo comentarios",
@ -306,7 +306,7 @@
"from-wekan": "Desde exportación previa", "from-wekan": "Desde exportación previa",
"import-board-instruction-trello": "En tu tablero de Trello, ve a 'Menú', luego 'Más' > 'Imprimir y exportar' > 'Exportar JSON', y copia el texto resultante.", "import-board-instruction-trello": "En tu tablero de Trello, ve a 'Menú', luego 'Más' > 'Imprimir y exportar' > 'Exportar JSON', y copia el texto resultante.",
"import-board-instruction-wekan": "En tu tablero, vete a 'Menú', luego 'Exportar tablero', y copia el texto en el archivo descargado.", "import-board-instruction-wekan": "En tu tablero, vete a 'Menú', luego 'Exportar tablero', y copia el texto en el archivo descargado.",
"import-board-instruction-about-errors": "Si obtiene errores cuando importe el tablero, a veces la importación funciona igualmente, y el tablero se encuentra en la página de Todos los Tableros.", "import-board-instruction-about-errors": "Aunque obtengas errores cuando importes el tablero, a veces la importación funciona igualmente, y el tablero se encontrará en la página de tableros.",
"import-json-placeholder": "Pega tus datos JSON válidos aquí", "import-json-placeholder": "Pega tus datos JSON válidos aquí",
"import-map-members": "Mapa de miembros", "import-map-members": "Mapa de miembros",
"import-members-map": "Tu tablero importado tiene algunos miembros. Por favor, mapea los miembros que quieres importar con tus usuarios.", "import-members-map": "Tu tablero importado tiene algunos miembros. Por favor, mapea los miembros que quieres importar con tus usuarios.",
@ -335,10 +335,10 @@
"list-archive-cards-pop": "Esto eliminará del tablero todas las tarjetas en esta lista. Para ver las tarjetas en el Archivo y recuperarlas al tablero haga click en \"Menu\" > \"Archivo\"", "list-archive-cards-pop": "Esto eliminará del tablero todas las tarjetas en esta lista. Para ver las tarjetas en el Archivo y recuperarlas al tablero haga click en \"Menu\" > \"Archivo\"",
"list-move-cards": "Mover todas las tarjetas de esta lista", "list-move-cards": "Mover todas las tarjetas de esta lista",
"list-select-cards": "Seleccionar todas las tarjetas de esta lista", "list-select-cards": "Seleccionar todas las tarjetas de esta lista",
"set-color-list": "Set Color", "set-color-list": "Cambiar el color",
"listActionPopup-title": "Acciones de la lista", "listActionPopup-title": "Acciones de la lista",
"swimlaneActionPopup-title": "Acciones del carril de flujo", "swimlaneActionPopup-title": "Acciones del carril de flujo",
"swimlaneAddPopup-title": "Add a Swimlane below", "swimlaneAddPopup-title": "Añadir un carril de flujo debajo",
"listImportCardPopup-title": "Importar una tarjeta de Trello", "listImportCardPopup-title": "Importar una tarjeta de Trello",
"listMorePopup-title": "Más", "listMorePopup-title": "Más",
"link-list": "Enlazar a esta lista", "link-list": "Enlazar a esta lista",
@ -404,9 +404,9 @@
"rules": "Reglas", "rules": "Reglas",
"search-cards": "Buscar entre los títulos y las descripciones de las tarjetas en este tablero.", "search-cards": "Buscar entre los títulos y las descripciones de las tarjetas en este tablero.",
"search-example": "¿Texto a buscar?", "search-example": "¿Texto a buscar?",
"select-color": "Selecciona un color", "select-color": "Seleccionar el color",
"set-wip-limit-value": "Fija un límite para el número máximo de tareas en esta lista.", "set-wip-limit-value": "Fija un límite para el número máximo de tareas en esta lista.",
"setWipLimitPopup-title": "Fijar el límite del trabajo en proceso", "setWipLimitPopup-title": "Fija el límite del trabajo en proceso",
"shortcut-assign-self": "Asignarte a ti mismo a la tarjeta actual", "shortcut-assign-self": "Asignarte a ti mismo a la tarjeta actual",
"shortcut-autocomplete-emoji": "Autocompletar emoji", "shortcut-autocomplete-emoji": "Autocompletar emoji",
"shortcut-autocomplete-members": "Autocompletar miembros", "shortcut-autocomplete-members": "Autocompletar miembros",
@ -519,10 +519,10 @@
"card-end-on": "Finalizado el", "card-end-on": "Finalizado el",
"editCardReceivedDatePopup-title": "Cambiar la fecha de recepción", "editCardReceivedDatePopup-title": "Cambiar la fecha de recepción",
"editCardEndDatePopup-title": "Cambiar la fecha de finalización", "editCardEndDatePopup-title": "Cambiar la fecha de finalización",
"setCardColorPopup-title": "Cambiar color", "setCardColorPopup-title": "Cambiar el color",
"setCardActionsColorPopup-title": "Choose a color", "setCardActionsColorPopup-title": "Elegir un color",
"setSwimlaneColorPopup-title": "Choose a color", "setSwimlaneColorPopup-title": "Elegir un color",
"setListColorPopup-title": "Choose a color", "setListColorPopup-title": "Elegir un color",
"assigned-by": "Asignado por", "assigned-by": "Asignado por",
"requested-by": "Solicitado por", "requested-by": "Solicitado por",
"board-delete-notice": "Se eliminarán todas las listas, tarjetas y acciones asociadas a este tablero. Esta acción no puede deshacerse.", "board-delete-notice": "Se eliminarán todas las listas, tarjetas y acciones asociadas a este tablero. Esta acción no puede deshacerse.",
@ -601,7 +601,7 @@
"r-label": "etiqueta", "r-label": "etiqueta",
"r-member": "miembro", "r-member": "miembro",
"r-remove-all": "Eliminar todos los miembros de la tarjeta", "r-remove-all": "Eliminar todos los miembros de la tarjeta",
"r-set-color": "Cambiar color a", "r-set-color": "Cambiar el color a",
"r-checklist": "lista de verificación", "r-checklist": "lista de verificación",
"r-check-all": "Marcar todo", "r-check-all": "Marcar todo",
"r-uncheck-all": "Desmarcar todo", "r-uncheck-all": "Desmarcar todo",

View file

@ -1,24 +1,24 @@
{ {
"accept": "Aceitar", "accept": "Aceitar",
"act-activity-notify": "Activity Notification", "act-activity-notify": "Notificação de Actividade",
"act-addAttachment": "attached __attachment__ to __card__", "act-addAttachment": "anexado __attachment__ ao __card__",
"act-addSubtask": "added subtask __checklist__ to __card__", "act-addSubtask": "adicionou sub-tarefa __checklist__ ao __card__",
"act-addChecklist": "added checklist __checklist__ to __card__", "act-addChecklist": "adicionou checklist __checklist__ ao __card__",
"act-addChecklistItem": "added __checklistItem__ to checklist __checklist__ on __card__", "act-addChecklistItem": "adicionou __checklistItem__ à checklist __checklist__ no __card__",
"act-addComment": "commented on __card__: __comment__", "act-addComment": "comentou em __card__: __comment__",
"act-createBoard": "created __board__", "act-createBoard": "criou __board__",
"act-createCard": "added __card__ to __list__", "act-createCard": "adicionou __card__ à __list__",
"act-createCustomField": "created custom field __customField__", "act-createCustomField": "criou o campo customizado __customField__",
"act-createList": "added __list__ to __board__", "act-createList": "adicionou __list__ a __board__",
"act-addBoardMember": "added __member__ to __board__", "act-addBoardMember": "adicionou __member__ a __board__",
"act-archivedBoard": "__board__ moved to Archive", "act-archivedBoard": "__board__ arquivado",
"act-archivedCard": "__card__ moved to Archive", "act-archivedCard": "__card__ arquivado",
"act-archivedList": "__list__ moved to Archive", "act-archivedList": "__list__ arquivada",
"act-archivedSwimlane": "__swimlane__ moved to Archive", "act-archivedSwimlane": "__swimlane__ arquivada",
"act-importBoard": "imported __board__", "act-importBoard": "__board__ importado",
"act-importCard": "imported __card__", "act-importCard": "__card__ importado",
"act-importList": "imported __list__", "act-importList": "__list__ importada",
"act-joinMember": "added __member__ to __card__", "act-joinMember": "__member__ adicionado ao __card__",
"act-moveCard": "moved __card__ from __oldList__ to __list__", "act-moveCard": "moved __card__ from __oldList__ to __list__",
"act-removeBoardMember": "removed __member__ from __board__", "act-removeBoardMember": "removed __member__ from __board__",
"act-restoredCard": "restored __card__ to __board__", "act-restoredCard": "restored __card__ to __board__",

View file

@ -335,10 +335,10 @@
"list-archive-cards-pop": "Это действие удалит все карточки из этого списка с доски. Чтобы просмотреть карточки в Архиве и вернуть их на доску, нажмите “Меню” > “Архив”.", "list-archive-cards-pop": "Это действие удалит все карточки из этого списка с доски. Чтобы просмотреть карточки в Архиве и вернуть их на доску, нажмите “Меню” > “Архив”.",
"list-move-cards": "Переместить все карточки в этом списке", "list-move-cards": "Переместить все карточки в этом списке",
"list-select-cards": "Выбрать все карточки в этом списке", "list-select-cards": "Выбрать все карточки в этом списке",
"set-color-list": "Set Color", "set-color-list": "Задать цвет",
"listActionPopup-title": "Список действий", "listActionPopup-title": "Список действий",
"swimlaneActionPopup-title": "Действия с дорожкой", "swimlaneActionPopup-title": "Действия с дорожкой",
"swimlaneAddPopup-title": "Add a Swimlane below", "swimlaneAddPopup-title": "Добавить дорожку ниже",
"listImportCardPopup-title": "Импортировать Trello карточку", "listImportCardPopup-title": "Импортировать Trello карточку",
"listMorePopup-title": "Поделиться", "listMorePopup-title": "Поделиться",
"link-list": "Ссылка на список", "link-list": "Ссылка на список",
@ -520,9 +520,9 @@
"editCardReceivedDatePopup-title": "Изменить дату получения", "editCardReceivedDatePopup-title": "Изменить дату получения",
"editCardEndDatePopup-title": "Изменить дату завершения", "editCardEndDatePopup-title": "Изменить дату завершения",
"setCardColorPopup-title": "Задать цвет", "setCardColorPopup-title": "Задать цвет",
"setCardActionsColorPopup-title": "Choose a color", "setCardActionsColorPopup-title": "Выберите цвет",
"setSwimlaneColorPopup-title": "Choose a color", "setSwimlaneColorPopup-title": "Выберите цвет",
"setListColorPopup-title": "Choose a color", "setListColorPopup-title": "Выберите цвет",
"assigned-by": "Поручил", "assigned-by": "Поручил",
"requested-by": "Запросил", "requested-by": "Запросил",
"board-delete-notice": "Удаление является постоянным. Вы потеряете все списки, карты и действия, связанные с этой доской.", "board-delete-notice": "Удаление является постоянным. Вы потеряете все списки, карты и действия, связанные с этой доской.",

View file

@ -1,6 +1,6 @@
{ {
"name": "wekan", "name": "wekan",
"version": "v2.03.0", "version": "v2.04.0",
"description": "Open-Source kanban", "description": "Open-Source kanban",
"private": true, "private": true,
"scripts": { "scripts": {

View file

@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
appTitle = (defaultText = "Wekan"), appTitle = (defaultText = "Wekan"),
# The name of the app as it is displayed to the user. # The name of the app as it is displayed to the user.
appVersion = 205, appVersion = 206,
# Increment this for every release. # Increment this for every release.
appMarketingVersion = (defaultText = "2.03.0~2019-01-25"), appMarketingVersion = (defaultText = "2.04.0~2019-01-26"),
# Human-readable presentation of the app version. # Human-readable presentation of the app version.
minUpgradableAppVersion = 0, minUpgradableAppVersion = 0,