Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Apr 29, 2024
1 parent 1029363 commit b7f0efc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
26 changes: 13 additions & 13 deletions core/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function objToParamStr(obj) {
class Store {
constructor(base, validation, config) {
this.base = base || './data/';

this.validation = validation || {};
this.config = config;
}
Expand Down Expand Up @@ -205,7 +205,7 @@ class Store {
credentials: 'include',
mode: 'cors',
}).then(this.errorHandler);
}
}
/**
* find marks matching slide and/or marktype
* will search by slide field as exactly given and by the oid slide of that name
Expand Down Expand Up @@ -997,33 +997,33 @@ class Store {
body: JSON.stringify(update),
});
}
/***
/** *
* dicom api start
*
*
*/
async syncSeries(baseUrl, data = {}) {
// the data structure:
// const {source_url, study, series, modality} = data

const suffix = 'loader/dicomWeb/importSeries';
const url = baseUrl + suffix;
const url = baseUrl + suffix;
// Default options are marked with *
const response = await fetch(url, {
method: "POST",
mode: "cors",
cache: "no-cache",
method: 'POST',
mode: 'cors',
cache: 'no-cache',
headers: {
"Content-Type": "application/json",
'Content-Type': 'application/json',
},
redirect: "follow",
referrerPolicy: "no-referrer",
redirect: 'follow',
referrerPolicy: 'no-referrer',
body: JSON.stringify(data),
});
return response.json();
}
/***
/** *
* dicom api end
*
*
*/
addPresetLabels(labels) {
const suffix = 'Presetlabels/add';
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7f0efc

Please sign in to comment.