mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
add: import board/cards/lists using CSV/TSV
This commit is contained in:
parent
533bc045d0
commit
1742bcd9b1
9 changed files with 413 additions and 14 deletions
|
|
@ -2,21 +2,27 @@ import { TrelloCreator } from './trelloCreator';
|
|||
import { WekanCreator } from './wekanCreator';
|
||||
import { Exporter } from './export';
|
||||
import wekanMembersMapper from './wekanmapper';
|
||||
import { CsvCreator } from './csvCreator';
|
||||
|
||||
Meteor.methods({
|
||||
importBoard(board, data, importSource, currentBoard) {
|
||||
check(board, Object);
|
||||
check(data, Object);
|
||||
check(importSource, String);
|
||||
check(currentBoard, Match.Maybe(String));
|
||||
let creator;
|
||||
switch (importSource) {
|
||||
case 'trello':
|
||||
check(board, Object);
|
||||
creator = new TrelloCreator(data);
|
||||
break;
|
||||
case 'wekan':
|
||||
check(board, Object);
|
||||
creator = new WekanCreator(data);
|
||||
break;
|
||||
case 'csv':
|
||||
check(board, Array);
|
||||
creator = new CsvCreator(data);
|
||||
break;
|
||||
}
|
||||
|
||||
// 1. check all parameters are ok from a syntax point of view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue