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
|
|
|
});
|
|
|
|
|
|
2016-02-13 18:57:04 +01:00
|
|
|
Package.onUse(function(api) {
|
2016-08-05 12:16:47 +02:00
|
|
|
api.versionsFrom('1.4');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-05-07 08:58:46 +02:00
|
|
|
api.use('ecmascript');
|
2016-07-22 14:26:29 +02:00
|
|
|
api.use('standard-app-packages');
|
2016-05-07 08:58:46 +02:00
|
|
|
api.use('http');
|
2015-10-13 14:14:50 +02:00
|
|
|
api.use('jquery');
|
|
|
|
|
api.use('stylus');
|
2016-06-15 16:14:30 +02:00
|
|
|
api.use('momentjs:moment');
|
2016-06-14 00:12:28 +02:00
|
|
|
api.use('validatejs');
|
2016-08-23 23:00:06 +02:00
|
|
|
|
2016-01-13 16:17:32 +01:00
|
|
|
// Our custom packages
|
2017-01-16 18:30:54 +01:00
|
|
|
api.use('ohif:design');
|
2016-07-22 14:26:29 +02:00
|
|
|
api.use('ohif:core');
|
2017-01-16 18:30:54 +01:00
|
|
|
api.use('ohif:log');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-11-25 20:38:07 +01:00
|
|
|
const assets = [
|
|
|
|
|
'assets/icons.svg',
|
|
|
|
|
'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-07-22 18:23:36 +02:00
|
|
|
|
2016-05-07 08:58:46 +02:00
|
|
|
// TODO: Use NPM depends for these
|
2016-08-05 12:16:47 +02:00
|
|
|
api.addFiles('client/compatibility/jquery.hotkeys.js', 'client', {
|
|
|
|
|
bare: true
|
|
|
|
|
});
|
|
|
|
|
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');
|
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
|
|
|
// Study Browser components
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/studyBrowser/studyBrowser/studyBrowser.html', 'client');
|
|
|
|
|
api.addFiles('client/components/studyBrowser/studyBrowser/studyBrowser.js', 'client');
|
|
|
|
|
api.addFiles('client/components/studyBrowser/studyBrowser/studyBrowser.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/studyBrowser/thumbnailEntry/thumbnailEntry.html', 'client');
|
|
|
|
|
api.addFiles('client/components/studyBrowser/thumbnailEntry/thumbnailEntry.js', 'client');
|
|
|
|
|
api.addFiles('client/components/studyBrowser/thumbnailEntry/thumbnailEntry.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/studyBrowser/imageThumbnail/imageThumbnail.html', 'client');
|
|
|
|
|
api.addFiles('client/components/studyBrowser/imageThumbnail/imageThumbnail.js', 'client');
|
|
|
|
|
api.addFiles('client/components/studyBrowser/imageThumbnail/imageThumbnail.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
|
|
|
|
// Viewer components
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/viewer/imageViewerViewport/imageViewerViewport.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/imageViewerViewport/imageViewerViewport.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/imageViewerViewport/imageViewerViewport.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-05-07 08:58:46 +02:00
|
|
|
api.addFiles('client/components/viewer/gridLayout/gridLayout.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/gridLayout/gridLayout.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/gridLayout/gridLayout.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/viewer/loadingIndicator/loadingIndicator.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/loadingIndicator/loadingIndicator.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/loadingIndicator/loadingIndicator.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
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-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/viewer/viewportOrientationMarkers/viewportOrientationMarkers.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/viewportOrientationMarkers/viewportOrientationMarkers.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/viewer/viewportOverlay/viewportOverlay.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/viewportOverlay/viewportOverlay.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/viewportOverlay/viewportOverlay.styl', 'client');
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-07-22 14:26:29 +02:00
|
|
|
api.addFiles('client/components/viewer/viewerMain/viewerMain.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/viewerMain/viewerMain.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/viewerMain/viewerMain.styl', 'client');
|
|
|
|
|
|
2015-12-10 12:01:06 +01:00
|
|
|
api.addFiles('client/components/viewer/imageControls/imageControls.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/imageControls/imageControls.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/imageControls/imageControls.styl', 'client');
|
|
|
|
|
|
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');
|
|
|
|
|
|
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');
|
|
|
|
|
|
2015-12-09 15:48:24 +01:00
|
|
|
api.addFiles('client/components/viewer/playClipButton/playClipButton.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/playClipButton/playClipButton.js', 'client');
|
2015-10-15 15:05:41 +02:00
|
|
|
|
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-01-16 18:30:54 +01:00
|
|
|
api.addFiles('client/components/viewer/textMarkerDialogs/textMarkerDialogs.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/textMarkerDialogs/textMarkerDialogs.js', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/textMarkerDialogs/textMarkerDialogs.styl', 'client');
|
|
|
|
|
|
2016-08-23 23:00:06 +02:00
|
|
|
api.addFiles('client/components/viewer/displaySetNavigation/displaySetNavigation.html', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/displaySetNavigation/displaySetNavigation.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.styl', 'client');
|
|
|
|
|
api.addFiles('client/components/viewer/studyTimepointBrowser/studyTimepointStudy.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
|
|
|
});
|