mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 04:04:21 +01:00
Fixing opening cards and slow performance of closing cards
Fixes: #5533
Fixes: #5548
Revert "Switch from kadira:flow-router to ostrio:flow-router-extra"
This reverts commit 718c1a393d.
This commit is contained in:
parent
d31403a918
commit
c925a27870
63 changed files with 4797 additions and 52 deletions
38
packages/kadira-flow-router/test/server/_helpers.js
Normal file
38
packages/kadira-flow-router/test/server/_helpers.js
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
Meteor.publish('foo', function () {
|
||||
this.ready();
|
||||
});
|
||||
|
||||
Meteor.publish('fooNotReady', function () {
|
||||
});
|
||||
|
||||
Meteor.publish('bar', function () {
|
||||
this.ready();
|
||||
});
|
||||
|
||||
// use this only to test global subs
|
||||
Meteor.publish('baz', function () {
|
||||
this.ready();
|
||||
});
|
||||
|
||||
Meteor.publish('bazNotReady', function () {
|
||||
});
|
||||
|
||||
Meteor.publish('readyness', function (doIt) {
|
||||
if(doIt) {
|
||||
this.ready();
|
||||
}
|
||||
});
|
||||
|
||||
InjectData = Package['meteorhacks:inject-data'].InjectData;
|
||||
var urlResolve = Npm.require('url').resolve;
|
||||
GetFRData = function GetFRData(path) {
|
||||
var url = urlResolve(process.env.ROOT_URL, path);
|
||||
// FastRender only servers if there is a accept header with html in it
|
||||
var options = {
|
||||
headers: {'accept': 'html'}
|
||||
};
|
||||
var res = HTTP.get(url, options);
|
||||
|
||||
var encodedData = res.content.match(/data">(.*)<\/script/)[1];
|
||||
return InjectData._decode(encodedData)['fast-render-data'];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue