|
|
@ -18,6 +18,7 @@ define([
|
|
|
|
'/bower_components/marked/marked.min.js',
|
|
|
|
'/bower_components/marked/marked.min.js',
|
|
|
|
'cm/lib/codemirror',
|
|
|
|
'cm/lib/codemirror',
|
|
|
|
'/kanban/jkanban_cp.js',
|
|
|
|
'/kanban/jkanban_cp.js',
|
|
|
|
|
|
|
|
'/kanban/export.js',
|
|
|
|
|
|
|
|
|
|
|
|
'cm/mode/gfm/gfm',
|
|
|
|
'cm/mode/gfm/gfm',
|
|
|
|
'cm/addon/edit/closebrackets',
|
|
|
|
'cm/addon/edit/closebrackets',
|
|
|
@ -50,7 +51,8 @@ define([
|
|
|
|
ChainPad,
|
|
|
|
ChainPad,
|
|
|
|
Marked,
|
|
|
|
Marked,
|
|
|
|
CodeMirror,
|
|
|
|
CodeMirror,
|
|
|
|
jKanban)
|
|
|
|
jKanban,
|
|
|
|
|
|
|
|
Export)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
var verbose = function (x) { console.log(x); };
|
|
|
|
var verbose = function (x) { console.log(x); };
|
|
|
@ -1060,6 +1062,11 @@ define([
|
|
|
|
var parsed;
|
|
|
|
var parsed;
|
|
|
|
try { parsed = JSON.parse(content); }
|
|
|
|
try { parsed = JSON.parse(content); }
|
|
|
|
catch (e) { return void console.error(e); }
|
|
|
|
catch (e) { return void console.error(e); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (parsed && parsed.id && parsed.lists && parsed.cards) {
|
|
|
|
|
|
|
|
return { content: Export.import(parsed) };
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return { content: parsed };
|
|
|
|
return { content: parsed };
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|