* Small refactor into Table Class setting events as static object into class * feature(STOW-SR) : Initial changes to stow when we have Server. * Improvements into requests and small fix into style * Small fix for jumpToRow without refheshing page * Handling STOW-SR once we don't have server * feature(STOW-SR) Refactor * Merge request with makeRequest and delete old file * Expose wadoproxy to client and update measurement-table to start using wadoproxy.getServerUrl * Move WADOProxy.getServerUrl to Measurement-table package. Fix querystring issue. * Remove proxy:enabled in favour of requestOptions.requestFromBrowser * Bcrypt 2.0.0 to fix Travis
19 lines
469 B
JavaScript
19 lines
469 B
JavaScript
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}`;
|
|
}
|