mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Add support for EdgeHTML browser (Microsoft Legacy Edge, not based on Chromium) by removing incompatible csv-stringify package.
CSV export will be fixed later. Thanks to xet7 ! Closes #3125
This commit is contained in:
parent
1a49d25c90
commit
b9a4b0b51d
3 changed files with 30 additions and 30 deletions
|
@ -1,7 +1,8 @@
|
|||
const stringify = require('csv-stringify');
|
||||
// const stringify = require('csv-stringify');
|
||||
|
||||
// exporter maybe is broken since Gridfs introduced, add fs and path
|
||||
export class Exporter {
|
||||
/*
|
||||
constructor(boardId) {
|
||||
this._boardId = boardId;
|
||||
}
|
||||
|
@ -240,29 +241,29 @@ export class Exporter {
|
|||
}
|
||||
i++;
|
||||
});
|
||||
/* TODO: Try to get translations working.
|
||||
These currently only bring English translations.
|
||||
TAPi18n.__('title'),
|
||||
TAPi18n.__('description'),
|
||||
TAPi18n.__('status'),
|
||||
TAPi18n.__('swimlane'),
|
||||
TAPi18n.__('owner'),
|
||||
TAPi18n.__('requested-by'),
|
||||
TAPi18n.__('assigned-by'),
|
||||
TAPi18n.__('members'),
|
||||
TAPi18n.__('assignee'),
|
||||
TAPi18n.__('labels'),
|
||||
TAPi18n.__('card-start'),
|
||||
TAPi18n.__('card-due'),
|
||||
TAPi18n.__('card-end'),
|
||||
TAPi18n.__('overtime-hours'),
|
||||
TAPi18n.__('spent-time-hours'),
|
||||
TAPi18n.__('createdAt'),
|
||||
TAPi18n.__('last-modified-at'),
|
||||
TAPi18n.__('last-activity'),
|
||||
TAPi18n.__('voting'),
|
||||
TAPi18n.__('archived'),
|
||||
*/
|
||||
|
||||
// TODO: Try to get translations working.
|
||||
// These currently only bring English translations.
|
||||
// TAPi18n.__('title'),
|
||||
// TAPi18n.__('description'),
|
||||
// TAPi18n.__('status'),
|
||||
// TAPi18n.__('swimlane'),
|
||||
// TAPi18n.__('owner'),
|
||||
// TAPi18n.__('requested-by'),
|
||||
// TAPi18n.__('assigned-by'),
|
||||
// TAPi18n.__('members'),
|
||||
// TAPi18n.__('assignee'),
|
||||
// TAPi18n.__('labels'),
|
||||
// TAPi18n.__('card-start'),
|
||||
// TAPi18n.__('card-due'),
|
||||
// TAPi18n.__('card-end'),
|
||||
// TAPi18n.__('overtime-hours'),
|
||||
// TAPi18n.__('spent-time-hours'),
|
||||
// TAPi18n.__('createdAt'),
|
||||
// TAPi18n.__('last-modified-at'),
|
||||
// TAPi18n.__('last-activity'),
|
||||
// TAPi18n.__('voting'),
|
||||
// TAPi18n.__('archived'),
|
||||
|
||||
const stringifier = stringify({
|
||||
header: true,
|
||||
|
@ -395,4 +396,9 @@ export class Exporter {
|
|||
const board = Boards.findOne(this._boardId);
|
||||
return board && board.isVisibleBy(user);
|
||||
}
|
||||
*/
|
||||
|
||||
canExport(user) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -1378,11 +1378,6 @@
|
|||
"resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz",
|
||||
"integrity": "sha1-xtJnJjKi5cg+AT5oZKQs6N79IK4="
|
||||
},
|
||||
"csv-stringify": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/csv-stringify/-/csv-stringify-5.5.0.tgz",
|
||||
"integrity": "sha512-G05575DSO/9vFzQxZN+Srh30cNyHk0SM0ePyiTChMD5WVt7GMTVPBQf4rtgMF6mqhNCJUPw4pN8LDe8MF9EYOA=="
|
||||
},
|
||||
"dashdash": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
|
||||
|
|
|
@ -62,7 +62,6 @@
|
|||
"bcrypt": "^3.0.7",
|
||||
"bson": "^4.0.3",
|
||||
"bunyan": "^1.8.12",
|
||||
"csv-stringify": "^5.5.0",
|
||||
"es6-promise": "^4.2.4",
|
||||
"fibers": "^5.0.0",
|
||||
"flatted": "^2.0.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue