WIP reorganization
This commit is contained in:
1 parent
6706dfe634
commit
054e37dfb7
266 files changed
+98
-620
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import queryString from 'query-string';
|
||||
|
||||
WADOProxy.convertURL = (url, serverConfiguration) => {
|
||||
if (!url) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (serverConfiguration.requestOptions &&
|
||||
serverConfiguration.requestOptions.requestFromBrowser === true) {
|
||||
return url;
|
||||
}
|
||||
|
||||
const { settings } = WADOProxy;
|
||||
const serverId = serverConfiguration._id;
|
||||
const query = queryString.stringify({url, serverId});
|
||||
|
||||
return `${settings.uri}?${query}`;
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
WADOProxy.settings = Object.assign({
|
||||
uri : OHIF.utils.absoluteUrl("/__wado_proxy"),
|
||||
}, (Meteor.settings && Meteor.settings.proxy) ? Meteor.settings.proxy : {});
|
||||
+1
@@ -0,0 +1 @@
|
||||
WADOProxy = {};
|
||||
Reference in new issue
Block a user