2015-10-13 14:14:50 +02:00
|
|
|
Package.describe({
|
2016-08-15 15:34:36 +02:00
|
|
|
name: 'ohif:viewerbase',
|
2016-02-13 18:57:04 +01:00
|
|
|
summary: 'Shared components and functions for Meteor DICOM Viewers',
|
|
|
|
|
version: '0.0.1'
|
2015-10-13 14:14:50 +02:00
|
|
|
});
|
|
|
|
|
|
2018-12-06 13:10:46 +01:00
|
|
|
Npm.depends({
|
|
|
|
|
'react-cornerstone-viewport': 'git://github.com:cornerstonejs/react-cornerstone-viewport.git',
|
2018-12-11 12:30:21 +01:00
|
|
|
'react-viewerbase': 'git://github.com:OHIF/react-viewerbase.git',
|
2018-12-06 13:10:46 +01:00
|
|
|
hammerjs: '2.0.8',
|
|
|
|
|
'cornerstone-core': '2.2.8',
|
|
|
|
|
'cornerstone-tools': '3.0.0-b.1471',
|
|
|
|
|
'cornerstone-math': '0.1.7',
|
|
|
|
|
'dicom-parser': '1.8.3',
|
|
|
|
|
'cornerstone-wado-image-loader': '2.2.3',
|
2018-12-06 16:09:31 +01:00
|
|
|
'react-redux': '6.0.0'
|
2018-12-06 13:10:46 +01:00
|
|
|
});
|
|
|
|
|
|
2016-02-13 18:57:04 +01:00
|
|
|
Package.onUse(function(api) {
|
2018-09-23 10:57:21 +02:00
|
|
|
api.versionsFrom('1.7');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2017-04-22 01:30:29 +02:00
|
|
|
api.use(['ecmascript',
|
|
|
|
|
'standard-app-packages',
|
|
|
|
|
'http',
|
|
|
|
|
'jquery',
|
|
|
|
|
'stylus',
|
|
|
|
|
'momentjs:moment',
|
|
|
|
|
]);
|
2016-08-23 23:00:06 +02:00
|
|
|
|
2017-04-22 01:30:29 +02:00
|
|
|
// OHIF dependencies
|
|
|
|
|
api.use([
|
|
|
|
|
'ohif:design',
|
2018-02-09 19:14:39 +01:00
|
|
|
'ohif:cornerstone',
|
2017-04-22 01:30:29 +02:00
|
|
|
'ohif:core',
|
2018-02-09 19:14:39 +01:00
|
|
|
'ohif:cornerstone-settings',
|
2017-04-22 01:30:29 +02:00
|
|
|
'ohif:hotkeys',
|
|
|
|
|
'ohif:log'
|
|
|
|
|
]);
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-11-25 20:38:07 +01:00
|
|
|
const assets = [
|
|
|
|
|
'assets/icons.svg',
|
2018-07-19 13:57:23 +02:00
|
|
|
'assets/user-menu-icons.svg',
|
2016-11-25 20:38:07 +01:00
|
|
|
'assets/fonts/Roboto-Black-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Black-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Black-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Black-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-BlackItalic-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-BlackItalic-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-BlackItalic-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-BlackItalic-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Bold-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Bold-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Bold-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Bold-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-BoldItalic-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-BoldItalic-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-BoldItalic-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-BoldItalic-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Italic-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Italic-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Italic-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Italic-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Light-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Light-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Light-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Light-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-LightItalic-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-LightItalic-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-LightItalic-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-LightItalic-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Medium-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Medium-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Medium-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Medium-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-MediumItalic-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-MediumItalic-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-MediumItalic-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-MediumItalic-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Regular-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Regular-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Regular-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Regular-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Thin-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-Thin-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-Thin-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-Thin-latin.woff2',
|
|
|
|
|
'assets/fonts/Roboto-ThinItalic-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Roboto-ThinItalic-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Roboto-ThinItalic-latin.woff',
|
|
|
|
|
'assets/fonts/Roboto-ThinItalic-latin.woff2',
|
|
|
|
|
'assets/fonts/Sanchez-Regular-latin-ext.woff',
|
|
|
|
|
'assets/fonts/Sanchez-Regular-latin-ext.woff2',
|
|
|
|
|
'assets/fonts/Sanchez-Regular-latin.woff',
|
|
|
|
|
'assets/fonts/Sanchez-Regular-latin.woff2'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
api.addAssets(assets, 'client');
|
|
|
|
|
|
2016-08-05 12:16:47 +02:00
|
|
|
api.addFiles('client/compatibility/dialogPolyfill.js', 'client', {
|
|
|
|
|
bare: true
|
|
|
|
|
});
|
|
|
|
|
api.addFiles('client/compatibility/dialogPolyfill.styl', 'client');
|
2015-12-09 15:48:24 +01:00
|
|
|
|
2015-10-13 14:14:50 +02:00
|
|
|
// ---------- Components ----------
|
|
|
|
|
|
|
|
|
|
// Basic components
|
2016-07-23 20:11:01 +02:00
|
|
|
api.addFiles('client/components/basic/layout/layout.html', 'client');
|
2016-11-25 20:38:07 +01:00
|
|
|
api.addFiles('client/components/basic/layout/layout.styl', 'client');
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/basic/loadingText/loadingText.html', 'client');
|
|
|
|
|
api.addFiles('client/components/basic/loadingText/loadingText.styl', 'client');
|
2017-06-08 15:16:48 +02:00
|
|
|
api.addFiles('client/components/basic/errorText/errorText.html', 'client');
|
|
|
|
|
api.addFiles('client/components/basic/errorText/errorText.styl', 'client');
|
2015-11-06 12:06:11 +01:00
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/basic/removableBackdrop/removableBackdrop.html', 'client');
|
|
|
|
|
api.addFiles('client/components/basic/removableBackdrop/removableBackdrop.styl', 'client');
|
2015-11-16 12:40:50 +01:00
|
|
|
|
2016-08-11 12:47:09 +02:00
|
|
|
api.addFiles('client/components/basic/aboutModal/aboutModal.html', 'client');
|
|
|
|
|
api.addFiles('client/components/basic/aboutModal/aboutModal.js', 'client');
|
|
|
|
|
api.addFiles('client/components/basic/aboutModal/aboutModal.styl', 'client');
|
2016-07-23 20:11:01 +02:00
|
|
|
|
2015-10-13 14:14:50 +02:00
|
|
|
// Viewer components
|
2016-08-05 12:16:47 +02:00
|
|
|
api.addFiles('client/components/viewer/annotationDialogs/annotationDialogs.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/annotationDialogs/annotationDialogs.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/annotationDialogs/annotationDialogs.styl', 'client');
|
2015-12-10 12:01:06 +01:00
|
|
|
|
2016-07-23 15:56:36 +02:00
|
|
|
api.addFiles('client/components/viewer/layoutButton/layoutButton.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/layoutButton/layoutButton.js', 'client');
|
|
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/viewer/layoutChooser/layoutChooser.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/layoutChooser/layoutChooser.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/layoutChooser/layoutChooser.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-03-17 12:08:46 +01:00
|
|
|
api.addFiles('client/components/viewer/cineDialog/cineDialog.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/cineDialog/cineDialog.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/cineDialog/cineDialog.styl', 'client');
|
|
|
|
|
|
2017-11-17 11:33:41 +01:00
|
|
|
api.addFiles('client/components/viewer/downloadDialog/downloadDialog.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/downloadDialog/downloadDialog.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/downloadDialog/downloadDialog.styl', 'client');
|
|
|
|
|
|
2016-07-22 18:23:36 +02:00
|
|
|
api.addFiles('client/components/viewer/toolbarSectionButton/toolbarSectionButton.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/toolbarSectionButton/toolbarSectionButton.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/toolbarSectionButton/toolbarSectionButton.styl', 'client');
|
|
|
|
|
|
|
|
|
|
api.addFiles('client/components/viewer/toolbarSectionTools/toolbarSectionTools.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/toolbarSectionTools/toolbarSectionTools.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/toolbarSectionTools/toolbarSectionTools.styl', 'client');
|
|
|
|
|
|
2018-07-04 17:40:03 +02:00
|
|
|
api.addFiles('client/components/viewer/userPreferences/dialog.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/userPreferences/dialog.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/userPreferences/dialog.styl', 'client');
|
|
|
|
|
|
2016-09-09 20:44:21 +02:00
|
|
|
api.addFiles('client/components/viewer/confirmDeleteDialog/confirmDeleteDialog.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/confirmDeleteDialog/confirmDeleteDialog.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/confirmDeleteDialog/confirmDeleteDialog.styl', 'client');
|
|
|
|
|
|
2017-10-17 21:30:05 +02:00
|
|
|
api.addFiles('client/components/viewer/seriesQuickSwitch/seriesQuickSwitch.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/seriesQuickSwitch/seriesQuickSwitch.styl', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/seriesQuickSwitch/seriesQuickSwitch.js', 'client');
|
|
|
|
|
|
2016-08-15 15:34:36 +02:00
|
|
|
api.addFiles('client/components/viewer/studySeriesQuickSwitch/studySeriesQuickSwitch.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studySeriesQuickSwitch/studySeriesQuickSwitch.styl', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studySeriesQuickSwitch/studySeriesQuickSwitch.js', 'client');
|
|
|
|
|
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepoint.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepoint.styl', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepoint.js', 'client');
|
|
|
|
|
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepointBrowser.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepointBrowser.styl', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepointBrowser.js', 'client');
|
|
|
|
|
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepointStudy.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepointStudy.js', 'client');
|
|
|
|
|
|
2017-04-28 22:17:36 +02:00
|
|
|
api.addFiles('client/components/viewer/windowLevelPresets/form.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/windowLevelPresets/form.js', 'client');
|
|
|
|
|
|
2017-01-16 18:30:54 +01:00
|
|
|
api.export('dialogPolyfill', 'client');
|
|
|
|
|
|
|
|
|
|
api.mainModule('main.js', 'client');
|
|
|
|
|
|
2015-10-13 14:14:50 +02:00
|
|
|
});
|
2018-03-27 11:50:40 +02:00
|
|
|
|
|
|
|
|
Package.onTest(function(api) {
|
2018-09-23 10:57:21 +02:00
|
|
|
api.versionsFrom('1.7');
|
2018-03-27 11:50:40 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Really important dependencies to the project
|
|
|
|
|
*/
|
|
|
|
|
api.use(['ecmascript',
|
|
|
|
|
'standard-app-packages',
|
|
|
|
|
'http',
|
|
|
|
|
'jquery',
|
|
|
|
|
'mongo',
|
|
|
|
|
'momentjs:moment',
|
2018-07-04 18:52:28 +02:00
|
|
|
], 'client');
|
2018-03-27 11:50:40 +02:00
|
|
|
|
|
|
|
|
// OHIF dependencies
|
|
|
|
|
api.use([
|
|
|
|
|
'lookback:logger',
|
|
|
|
|
'aldeed:simple-schema@1.5.3',
|
|
|
|
|
'ohif:design',
|
|
|
|
|
'ohif:core',
|
|
|
|
|
'ohif:hotkeys',
|
|
|
|
|
'ohif:log'
|
2018-07-04 18:52:28 +02:00
|
|
|
], 'client');
|
2018-03-27 11:50:40 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Our custom packages
|
|
|
|
|
*/
|
2018-07-04 18:52:28 +02:00
|
|
|
api.use('ohif:viewerbase', 'client');
|
2018-03-27 11:50:40 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Tests framework components
|
|
|
|
|
*/
|
|
|
|
|
api.use('cultofcoders:mocha');
|
|
|
|
|
api.use('practicalmeteor:sinon');
|
|
|
|
|
api.use('practicalmeteor:chai');
|
|
|
|
|
api.use('lmieulet:meteor-coverage@1.1.4');
|
|
|
|
|
api.use('xolvio:template-isolator');
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Adding all our tests files
|
|
|
|
|
*/
|
|
|
|
|
api.addFiles('./tests/client/components/viewer/gridLayout/gridLayout.tests.js', 'client');
|
|
|
|
|
});
|