diff --git a/core/Store.js b/core/Store.js index 30374c993..5beead6fc 100644 --- a/core/Store.js +++ b/core/Store.js @@ -36,7 +36,7 @@ function objToParamStr(obj) { class Store { constructor(base, validation, config) { this.base = base || './data/'; - + this.validation = validation || {}; this.config = config; } @@ -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 @@ -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'; diff --git a/package-lock.json b/package-lock.json index cb5d86adb..ddb02e2b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2600,7 +2600,6 @@ "version": "1.4.730", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.730.tgz", "integrity": "sha512-oJRPo82XEqtQAobHpJIR3zW5YO3sSRRkPz2an4yxi1UvqhsGm54vR/wzTFV74a3soDOJ8CKW7ajOOX5ESzddwg==", - "dev": true }, "node_modules/emittery": {