port html extension

This commit is contained in:
dannyrb 2019-06-17 16:23:31 -04:00
parent d1f7431af6
commit b542ce4437
3 changed files with 11 additions and 14 deletions

View File

@ -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"
}
}

View File

@ -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;
}
}
};

View File

@ -67,7 +67,6 @@
"dependencies": {
"@babel/runtime": "^7.4.5",
"@ohif/extension-cornerstone": "file:.yalc/@ohif/extension-cornerstone",
"@ohif/extension-dicom-microscopy": "0.0.6",
"@ohif/extension-vtk": "file:.yalc/@ohif/extension-vtk",
"@ohif/i18n": "0.0.4",
"classnames": "^2.2.6",
@ -84,8 +83,6 @@
"lodash.isequal": "4.5.0",
"moment": "^2.24.0",
"ohif-core": "file:.yalc/ohif-core",
"ohif-dicom-html-extension": "^0.0.2",
"ohif-dicom-pdf-extension": "^0.0.6",
"oidc-client": "1.7.x",
"prop-types": "^15.7.2",
"react-i18next": "^10.11.0",