-
@ohif/viewer
-
@ohif/viewer is a zero-footprint medical image viewer provided by the Open Health Imaging Foundation (OHIF). It is a configurable and extensible progressive web application with out-of-the-box support for image archives which support DICOMweb.
+
@ohif/app
+
@ohif/app is a zero-footprint medical image viewer provided by the Open Health Imaging Foundation (OHIF). It is a configurable and extensible progressive web application with out-of-the-box support for image archives which support DICOMweb.
diff --git a/platform/viewer/assets/open-graph.fig b/platform/app/assets/open-graph.fig
similarity index 100%
rename from platform/viewer/assets/open-graph.fig
rename to platform/app/assets/open-graph.fig
diff --git a/platform/viewer/babel.config.js b/platform/app/babel.config.js
similarity index 100%
rename from platform/viewer/babel.config.js
rename to platform/app/babel.config.js
diff --git a/platform/viewer/cypress.config.ts b/platform/app/cypress.config.ts
similarity index 100%
rename from platform/viewer/cypress.config.ts
rename to platform/app/cypress.config.ts
diff --git a/platform/viewer/cypress/.eslintrc.js b/platform/app/cypress/.eslintrc.js
similarity index 100%
rename from platform/viewer/cypress/.eslintrc.js
rename to platform/app/cypress/.eslintrc.js
diff --git a/platform/viewer/cypress/fixtures/example.json b/platform/app/cypress/fixtures/example.json
similarity index 100%
rename from platform/viewer/cypress/fixtures/example.json
rename to platform/app/cypress/fixtures/example.json
diff --git a/platform/viewer/cypress/integration/OHIFPdfDisplay.spec.js b/platform/app/cypress/integration/OHIFPdfDisplay.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/OHIFPdfDisplay.spec.js
rename to platform/app/cypress/integration/OHIFPdfDisplay.spec.js
diff --git a/platform/viewer/cypress/integration/OHIFVideoDisplay.spec.js b/platform/app/cypress/integration/OHIFVideoDisplay.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/OHIFVideoDisplay.spec.js
rename to platform/app/cypress/integration/OHIFVideoDisplay.spec.js
diff --git a/platform/viewer/cypress/integration/customization/HangingProtocol.spec.js b/platform/app/cypress/integration/customization/HangingProtocol.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/customization/HangingProtocol.spec.js
rename to platform/app/cypress/integration/customization/HangingProtocol.spec.js
diff --git a/platform/viewer/cypress/integration/customization/OHIFDoubleClick.spec.js b/platform/app/cypress/integration/customization/OHIFDoubleClick.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/customization/OHIFDoubleClick.spec.js
rename to platform/app/cypress/integration/customization/OHIFDoubleClick.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFContextMenuCustomization.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFContextMenuCustomization.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFContextMenuCustomization.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFContextMenuCustomization.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFCornerstoneHotkeys.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFCornerstoneHotkeys.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFCornerstoneHotkeys.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFCornerstoneHotkeys.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFCornerstoneToolbar.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFCornerstoneToolbar.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFCornerstoneToolbar.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFCornerstoneToolbar.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFDownloadSnapshotFile.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFDownloadSnapshotFile.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFDownloadSnapshotFile.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFDownloadSnapshotFile.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFGeneralViewer.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFGeneralViewer.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFGeneralViewer.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFGeneralViewer.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFMeasurementPanel.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFMeasurementPanel.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFMeasurementPanel.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFMeasurementPanel.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFSaveMeasurements.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFSaveMeasurements.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFSaveMeasurements.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFSaveMeasurements.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/OHIFStudyBrowser.spec.js b/platform/app/cypress/integration/measurement-tracking/OHIFStudyBrowser.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/OHIFStudyBrowser.spec.js
rename to platform/app/cypress/integration/measurement-tracking/OHIFStudyBrowser.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js b/platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js
rename to platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js b/platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js
rename to platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js b/platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js
rename to platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFStudyViewer.spec.js b/platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFStudyViewer.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFStudyViewer.spec.js
rename to platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFStudyViewer.spec.js
diff --git a/platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFUserPreferences.spec.js b/platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFUserPreferences.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFUserPreferences.spec.js
rename to platform/app/cypress/integration/measurement-tracking/visual-regression/PercyCheckOHIFUserPreferences.spec.js
diff --git a/platform/viewer/cypress/integration/study-list/OHIFStudyList.spec.js b/platform/app/cypress/integration/study-list/OHIFStudyList.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/study-list/OHIFStudyList.spec.js
rename to platform/app/cypress/integration/study-list/OHIFStudyList.spec.js
diff --git a/platform/viewer/cypress/integration/study-list/OHIFUserPreferences.spec.js b/platform/app/cypress/integration/study-list/OHIFUserPreferences.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/study-list/OHIFUserPreferences.spec.js
rename to platform/app/cypress/integration/study-list/OHIFUserPreferences.spec.js
diff --git a/platform/viewer/cypress/integration/volume/MPR.spec.js b/platform/app/cypress/integration/volume/MPR.spec.js
similarity index 100%
rename from platform/viewer/cypress/integration/volume/MPR.spec.js
rename to platform/app/cypress/integration/volume/MPR.spec.js
diff --git a/platform/viewer/cypress/plugins/index.js b/platform/app/cypress/plugins/index.js
similarity index 100%
rename from platform/viewer/cypress/plugins/index.js
rename to platform/app/cypress/plugins/index.js
diff --git a/platform/viewer/cypress/results/.gitignore b/platform/app/cypress/results/.gitignore
similarity index 100%
rename from platform/viewer/cypress/results/.gitignore
rename to platform/app/cypress/results/.gitignore
diff --git a/platform/viewer/cypress/support/DragSimulator.js b/platform/app/cypress/support/DragSimulator.js
similarity index 100%
rename from platform/viewer/cypress/support/DragSimulator.js
rename to platform/app/cypress/support/DragSimulator.js
diff --git a/platform/viewer/cypress/support/aliases.js b/platform/app/cypress/support/aliases.js
similarity index 100%
rename from platform/viewer/cypress/support/aliases.js
rename to platform/app/cypress/support/aliases.js
diff --git a/platform/viewer/cypress/support/commands.js b/platform/app/cypress/support/commands.js
similarity index 100%
rename from platform/viewer/cypress/support/commands.js
rename to platform/app/cypress/support/commands.js
diff --git a/platform/viewer/cypress/support/index.js b/platform/app/cypress/support/index.js
similarity index 100%
rename from platform/viewer/cypress/support/index.js
rename to platform/app/cypress/support/index.js
diff --git a/platform/app/jest.config.js b/platform/app/jest.config.js
new file mode 100644
index 00000000000..63f2459e018
--- /dev/null
+++ b/platform/app/jest.config.js
@@ -0,0 +1,14 @@
+const base = require('../../jest.config.base.js');
+const pkg = require('./package');
+
+module.exports = {
+ ...base,
+ name: pkg.name,
+ displayName: pkg.name,
+ setupFilesAfterEnv: ['