fix(datasource): configurability of additional data source extensions (#2931)
* feat(dataSource):Support more than one data source type. * Add consumer type
This commit is contained in:
1 parent
55a1704e4a
commit
3900e62641
18 files changed
+83
-29
No files matched your search
@@ -4,7 +4,7 @@ import classnames from 'classnames';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import { ButtonGroup, Button, StudyItem, ThumbnailList } from '../';
|
||||
import { StringNumber } from '../../Types';
|
||||
import { StringNumber } from '../../types';
|
||||
|
||||
const buttonClasses = 'text-white text-base border-none p-2 min-w-18';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
import { useDrag } from 'react-dnd';
|
||||
import { Icon } from '../';
|
||||
import { StringNumber } from '../../Types';
|
||||
import { StringNumber } from '../../types';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import { Thumbnail, ThumbnailNoImage, ThumbnailTracked } from '../';
|
||||
import * as Types from '../../Types';
|
||||
import * as Types from '../../types';
|
||||
|
||||
const ThumbnailList = ({
|
||||
thumbnails,
|
||||
|
||||
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
|
||||
import { Icon, Thumbnail, Tooltip } from '../';
|
||||
import { StringNumber } from '../../Types';
|
||||
import { StringNumber } from '../../types';
|
||||
|
||||
const ThumbnailTracked = ({
|
||||
displaySetInstanceUID,
|
||||
|
||||
@@ -4,7 +4,7 @@ import classnames from 'classnames';
|
||||
import { Icon, ButtonGroup, Button, Tooltip, CinePlayer } from '../';
|
||||
import useOnClickOutside from '../../utils/useOnClickOutside';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { StringNumber } from '../../Types';
|
||||
import { StringNumber } from '../../types';
|
||||
|
||||
const classes = {
|
||||
infoHeader: 'text-base text-primary-light',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
/** CONTEXT/HOOKS */
|
||||
// Export types - need to do as two lines due to a bug in babel
|
||||
import * as Types from './Types';
|
||||
import * as Types from './types';
|
||||
|
||||
export {
|
||||
useCine,
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default PropTypes.oneOf([
|
||||
'thumbnail',
|
||||
'thumbnailTracked',
|
||||
'thumbnailNoImage',
|
||||
]);
|
||||
@@ -1,4 +1,7 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import ThumbnailType from './ThumbnailType';
|
||||
|
||||
// A few miscellaneous types declared inline here.
|
||||
|
||||
/**
|
||||
* StringNumber often comes back from DICOMweb for integer valued items.
|
||||
@@ -11,10 +14,4 @@ const StringNumber = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);
|
||||
*/
|
||||
const StringArray = PropTypes.oneOfType([PropTypes.string, PropTypes.array]);
|
||||
|
||||
const ThumbnailType = PropTypes.oneOf([
|
||||
'thumbnail',
|
||||
'thumbnailTracked',
|
||||
'thumbnailNoImage',
|
||||
]);
|
||||
|
||||
export { StringNumber, StringArray, ThumbnailType };
|
||||
Reference in new issue
Block a user