port html extension

This commit is contained in:
dannyrb committed 2019-06-17 16:23:31 -04:00
1 parent d1f7431af6
commit b542ce4437
3 files changed
+11 -14

No files matched your search

@@ -1,5 +1,5 @@
{
"name": "ohif-dicom-html-extension",
"name": "@ohif/extension-dicom-html",
"version": "0.0.2",
"description": "OHIF extension for rendering structured reports to HTML",
"author": "OHIF",
@@ -25,6 +25,9 @@
"react": "^15.0.0 || ^16.0.0",
"react-dom": "^15.0.0 || ^16.0.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/plugin-external-helpers": "^7.2.0",
@@ -80,7 +83,7 @@
"files": [
"dist"
],
"dependencies": {
"@babel/runtime": "^7.2.0"
"publishConfig": {
"access": "public"
}
}
@@ -1,19 +1,16 @@
import OHIFDicomHtmlSopClassHandler from './OHIFDicomHtmlSopClassHandler.js';
import OHIFDicomHtmlViewport from './OHIFDicomHtmlViewport.js';
export default class OHIFDicomHtmlExtension {
export default {
/**
* Extension ID is a unique id, might be used for namespacing extension specific redux actions/reducers (?)
* Only required property. Should be a unique value across all extensions.
*/
getExtensionId() {
return 'html';
}
id: 'html',
getViewportModule() {
return OHIFDicomHtmlViewport;
}
},
getSopClassHandlerModule() {
return OHIFDicomHtmlSopClassHandler;
}
}
};