Merge branch 'master' into docs/testing-guidelines

This commit is contained in:
Danny Brown 2019-08-21 23:28:58 -04:00 committed by GitHub
commit 0a2acdf2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 316 additions and 905 deletions

View File

@ -27,4 +27,4 @@ mv platform/viewer/dist/* .netlify/www/pwa -v
echo 'Nothing left to see here. Go home, folks.' echo 'Nothing left to see here. Go home, folks.'
# Build using react-scripts # Build using react-scripts
# npx cross-env PUBLIC_URL=/demo REACT_APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build # npx cross-env PUBLIC_URL=/demo APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build

View File

@ -22,6 +22,7 @@ module.exports = {
// https://babeljs.io/docs/en/options#babelrcroots // https://babeljs.io/docs/en/options#babelrcroots
babelrcRoots: ['./platform/*', './extensions/*'], babelrcRoots: ['./platform/*', './extensions/*'],
plugins: [ plugins: [
'react-hot-loader/babel',
'inline-react-svg', 'inline-react-svg',
'@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-object-rest-spread',

View File

@ -10,7 +10,7 @@
<!-- CORNERSTONE.js --> <!-- CORNERSTONE.js -->
<tr> <tr>
<td> <td>
<a href="https://www.npmjs.com/package/ohif-cornerstone-extension"> <a href="https://www.npmjs.com/package/@ohif/extension-cornerstone">
Cornerstone Cornerstone
</a> </a>
</td> </td>
@ -22,7 +22,7 @@
<!-- VTK.js --> <!-- VTK.js -->
<tr> <tr>
<td> <td>
<a href="https://www.npmjs.com/package/ohif-vtk-extension"> <a href="https://www.npmjs.com/package/@ohif/extension-vtk">
VTK.js VTK.js
</a> </a>
</td> </td>
@ -33,28 +33,28 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<a href="">HTML</a> <a href="https://www.npmjs.com/package/@ohif/extension-dicom-html">DICOM HTML</a>
</td> </td>
<td> <td>
Renders text and HTML content for <a href="https://github.com/OHIF/Viewers/blob/react/extensions/ohif-dicom-html-extension/src/OHIFDicomHtmlSopClassHandler.js#L7-L15">specific SopClassUIDs</a>. Renders text and HTML content for <a href="https://github.com/OHIF/Viewers/blob/master/extensions/dicom-html/src/OHIFDicomHtmlSopClassHandler.js#L4-L12">specific SopClassUIDs</a>.
</td> </td>
<td>Viewport, SopClassHandler</td> <td>Viewport, SopClassHandler</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href="https://www.npmjs.com/package/ohif-dicom-pdf-extension">PDF</a> <a href="https://www.npmjs.com/package/@ohif/extension-dicom-pdf">DICOM PDF</a>
</td> </td>
<td> <td>
Renders PDFs for a <a href="https://github.com/OHIF/Viewers/blob/react/extensions/ohif-dicom-pdf-extension/src/OHIFDicomPDFSopClassHandler.js#L8">specific SopClassUID</a>. Renders PDFs for a <a href="https://github.com/OHIF/Viewers/blob/master/extensions/dicom-pdf/src/OHIFDicomPDFSopClassHandler.js#L4-L6">specific SopClassUID</a>.
</td> </td>
<td>Viewport, SopClassHandler</td> <td>Viewport, SopClassHandler</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href="https://www.npmjs.com/package/ohif-dicom-microscopy-extension">Microscopy</a> <a href="https://www.npmjs.com/package/@ohif/extension-dicom-microscopy">DICOM Microscopy</a>
</td> </td>
<td> <td>
Renders Microscopy images for a <a href="https://github.com/OHIF/Viewers/blob/react/extensions/ohif-dicom-microscopy-extension/src/DicomMicroscopySopClassHandler.js#L6">specific SopClassUID</a>. Renders Microscopy images for a <a href="https://github.com/OHIF/Viewers/blob/master/extensions/dicom-microscopy/src/DicomMicroscopySopClassHandler.js#L5-L7">specific SopClassUID</a>.
</td> </td>
<td>Viewport, SopClassHandler</td> <td>Viewport, SopClassHandler</td>
</tr> </tr>

View File

@ -152,7 +152,7 @@ is used depends on:
<center><i>An example of three Viewports</i></center> <center><i>An example of three Viewports</i></center>
For a complete example implementation, For a complete example implementation,
[check out the OHIFCornerstoneViewport](https://github.com/OHIF/Viewers/blob/react/extensions/ohif-cornerstone-extension/src/OHIFCornerstoneViewport.js). [check out the OHIFCornerstoneViewport](https://github.com/OHIF/Viewers/blob/master/extensions/cornerstone/src/OHIFCornerstoneViewport.js).
#### Toolbar #### Toolbar
@ -168,7 +168,7 @@ store.
Toolbar components are rendered in the `ToolbarRow` component. Toolbar components are rendered in the `ToolbarRow` component.
For a complete example implementation, For a complete example implementation,
[check out the OHIFCornerstoneViewport's Toolbar Module](https://github.com/OHIF/Viewers/blob/react/extensions/ohif-cornerstone-extension/src/ToolbarModule.js). [check out the OHIFCornerstoneViewport's Toolbar Module](https://github.com/OHIF/Viewers/blob/master/extensions/cornerstone/src/toolbarModule.js).
#### SopClassHandler #### SopClassHandler
@ -197,9 +197,9 @@ would like included at startup.
_app.js_ _app.js_
```js ```js
import { createStore, combineReducers } from "redux"; import { createStore, combineReducers } from 'redux';
import OHIF from "@ohif/core"; import OHIF from '@ohif/core';
import OHIFCornerstoneExtension from "ohif-cornerstone-extension"; import OHIFCornerstoneExtension from 'ohif-cornerstone-extension';
const combined = combineReducers(OHIF.redux.reducers); const combined = combineReducers(OHIF.redux.reducers);
const store = createStore(combined); const store = createStore(combined);
@ -214,8 +214,8 @@ ExtensionManager.registerExtensions(store, extensions);
A small number of powerful extensions for popular use cases are maintained by A small number of powerful extensions for popular use cases are maintained by
OHIF. They're co-located in the OHIF. They're co-located in the
[`OHIF/Viewers`](https://github.com/OHIF/Viewers/tree/react/) repository, in the [`OHIF/Viewers`](https://github.com/OHIF/Viewers) repository, in the top level
top level [`extensions/`](https://github.com/OHIF/Viewers/tree/react/extensions) [`extensions/`](https://github.com/OHIF/Viewers/tree/master/extensions)
directory. directory.
{% include "./_maintained-extensions-table.md" %} {% include "./_maintained-extensions-table.md" %}
@ -225,6 +225,6 @@ directory.
--> -->
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
[example-ext-src]: https://github.com/OHIF/Viewers/blob/master/extensions/_ohif-example-extension/src/index.js) [example-ext-src]: https://github.com/OHIF/Viewers/tree/master/extensions/_example/src
[module-types]: https://github.com/OHIF/ohif-core/blob/43c08a29eff3fb646a0e83a03a236ddd84f4a6e8/src/plugins.js#L1-L6 [module-types]: https://github.com/OHIF/Viewers/blob/master/platform/core/src/extensions/MODULE_TYPES.js
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->

View File

@ -53,7 +53,7 @@ Images can even be transcoded on the fly if this is desired.
```bash ```bash
cd OHIFViewer cd OHIFViewer
yarn install yarn install
REACT_APP_CONFIG=config/google.js yarn run dev APP_CONFIG=config/google.js yarn run dev
``` ```
## Running via Docker ## Running via Docker

View File

@ -71,11 +71,11 @@ how to configure the project for your own imaging archive below.
#### How it Works #### How it Works
The configuration for our project is in the `/public/config` directory. Our The configuration for our project is in the `/public/config` directory. Our
build process knows which configuration file to use based on the build process knows which configuration file to use based on the `APP_CONFIG`
`REACT_APP_CONFIG` environment variable. By default, its value is environment variable. By default, its value is
[`default.js`](https://github.com/OHIF/Viewers/blob/react/public/config/default.js). [`default.js`](https://github.com/OHIF/Viewers/blob/master/platform/viewer/public/config/default.js).
When we build, the `%REACT_APP_CONFIG%` value in When we build, the `%APP_CONFIG%` value in
our[`/public/index.html`](https://github.com/OHIF/Viewers/blob/react/public/index.html#L12-L15) our[`/public/index.html`](https://github.com/OHIF/Viewers/blob/master/platform/viewer/public/index.html)
file is substituted for the correct configuration file's name. This sets file is substituted for the correct configuration file's name. This sets
the`window.config` equal to our configuration file's value. the`window.config` equal to our configuration file's value.
@ -104,17 +104,17 @@ window.config = {
}, },
], ],
}, },
} };
``` ```
You can also create a new config file and specify its path relative to the build You can also create a new config file and specify its path relative to the build
output's root by setting the `REACT_APP_CONFIG` environment variable. You can output's root by setting the `APP_CONFIG` environment variable. You can set the
set the value of this environment variable a few different ways: value of this environment variable a few different ways:
- [Add a temporary environment variable in your shell](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-temporary-environment-variables-in-your-shell) - [Add a temporary environment variable in your shell](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-temporary-environment-variables-in-your-shell)
- [Add environment specific variables in `.env` file(s)](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-development-environment-variables-in-env) - [Add environment specific variables in `.env` file(s)](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-development-environment-variables-in-env)
- Using the `cross-env` package in an npm script: - Using the `cross-env` package in an npm script:
- `"build": "cross-env REACT_APP_CONFIG=config/my-config.js react-scripts build"` - `"build": "cross-env APP_CONFIG=config/my-config.js react-scripts build"`
After updating the configuration, `yarn run build:web` to generate updated build After updating the configuration, `yarn run build:web` to generate updated build
output. output.

View File

@ -11,7 +11,7 @@ control.
Do not use this recipe to host sensitive medical data on the open web. Depending Do not use this recipe to host sensitive medical data on the open web. Depending
on your company's policies, this may be an appropriate setup on an internal on your company's policies, this may be an appropriate setup on an internal
network when protected with a server's basic authentication. For a more robust network when protected with a server's basic authentication. For a more robust
setup, check out our [user account control recpie](./user-account-control.md) setup, check out our [user account control recipe](./user-account-control.md)
that builds on the lessons learned here. that builds on the lessons learned here.
## Overview ## Overview
@ -51,7 +51,7 @@ We can solve this one of two ways:
This solution uses the first approach, but you can see an example of the second This solution uses the first approach, but you can see an example of the second
in the `docker-compose` bundled with this project for local development: in the `docker-compose` bundled with this project for local development:
[HERE](#) [HERE](https://github.com/OHIF/Viewers/blob/master/platform/viewer/.recipes/Nginx-Orthanc/docker-compose.yml)
You can read more about CORS in this Medium article: [Understanding You can read more about CORS in this Medium article: [Understanding
CORS][understanding-cors] CORS][understanding-cors]
@ -124,10 +124,10 @@ likely want to update:
The OHIF Viewer's configuration is imported from a static `.js` file and made The OHIF Viewer's configuration is imported from a static `.js` file and made
available globally at `window.config`. The configuration we use is set to a available globally at `window.config`. The configuration we use is set to a
specific file when we build the viewer, and determined by the env variable: specific file when we build the viewer, and determined by the env variable:
`REACT_APP_CONFIG`. You can see where we set its value in the `dockerfile` for `APP_CONFIG`. You can see where we set its value in the `dockerfile` for this
this solution: solution:
`ENV REACT_APP_CONFIG=config/docker_openresty-orthanc.js` `ENV APP_CONFIG=config/docker_openresty-orthanc.js`
You can find the configuration we're using here: You can find the configuration we're using here:
`/public/config/docker_openresty-orthanc.js` `/public/config/docker_openresty-orthanc.js`

View File

@ -125,10 +125,10 @@ likely want to update:
The OHIF Viewer's configuration is imported from a static `.js` file and made The OHIF Viewer's configuration is imported from a static `.js` file and made
available globally at `window.config`. The configuration we use is set to a available globally at `window.config`. The configuration we use is set to a
specific file when we build the viewer, and determined by the env variable: specific file when we build the viewer, and determined by the env variable:
`REACT_APP_CONFIG`. You can see where we set its value in the `dockerfile` for `APP_CONFIG`. You can see where we set its value in the `dockerfile` for this
this solution: solution:
`ENV REACT_APP_CONFIG=config/docker_openresty-orthanc-keycloak.js` `ENV APP_CONFIG=config/docker_openresty-orthanc-keycloak.js`
You can find the configuration we're using here: You can find the configuration we're using here:
`/public/config/docker_openresty-orthanc-keycloak.js` `/public/config/docker_openresty-orthanc-keycloak.js`
@ -281,9 +281,9 @@ community members put together:
[orthanc-docs]: http://book.orthanc-server.com/users/configuration.html#configuration [orthanc-docs]: http://book.orthanc-server.com/users/configuration.html#configuration
[lua-resty-openidc-docs]: https://github.com/zmartzone/lua-resty-openidc [lua-resty-openidc-docs]: https://github.com/zmartzone/lua-resty-openidc
<!-- SRC --> <!-- SRC -->
[config]: # [config]: https://github.com/OHIF/Viewers/blob/master/platform/viewer/src/config.js
[dockerfile]: # [dockerfile]: https://github.com/OHIF/Viewers/tree/master/platform/viewer/.recipes
[config-nginx]: # [config-nginx]: https://github.com/OHIF/Viewers/tree/master/platform/viewer/.recipes
[config-orthanc]: # [config-orthanc]: https://github.com/OHIF/Viewers/tree/master/platform/viewer/.recipes
[config-keycloak]: # [config-keycloak]: https://github.com/OHIF/Viewers/tree/master/platform/viewer/.recipes
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->

View File

@ -7,11 +7,11 @@
## How it Works ## How it Works
The configuration for our project is in the `/public/config` directory. Our The configuration for our project is in the `/public/config` directory. Our
build process knows which configuration file to use based on the build process knows which configuration file to use based on the `APP_CONFIG`
`REACT_APP_CONFIG` environment variable. By default, its value is environment variable. By default, its value is
[`default.js`](https://github.com/OHIF/Viewers/blob/react/public/config/default.js). [`default.js`](https://github.com/OHIF/Viewers/blob/master/platform/viewer/public/config/default.js).
When we build, the `%REACT_APP_CONFIG%` value in When we build, the `%APP_CONFIG%` value in
our[`/public/index.html`](https://github.com/OHIF/Viewers/blob/react/public/index.html#L12-L15) our[`/public/index.html`](https://github.com/OHIF/Viewers/blob/master/platform/viewer/public/index.html)
file is substituted for the correct configuration file's name. This sets the file is substituted for the correct configuration file's name. This sets the
`window.config` equal to our configuration file's value. `window.config` equal to our configuration file's value.
@ -40,17 +40,17 @@ window.config = {
}, },
], ],
}, },
} };
``` ```
You can also create a new config file and specify its path relative to the build You can also create a new config file and specify its path relative to the build
output's root by setting the `REACT_APP_CONFIG` environment variable. You can output's root by setting the `APP_CONFIG` environment variable. You can set the
set the value of this environment variable a few different ways: value of this environment variable a few different ways:
- [Add a temporary environment variable in your shell](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-temporary-environment-variables-in-your-shell) - [Add a temporary environment variable in your shell](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-temporary-environment-variables-in-your-shell)
- [Add environment specific variables in `.env` file(s)](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-development-environment-variables-in-env) - [Add environment specific variables in `.env` file(s)](https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables#adding-development-environment-variables-in-env)
- Using the `cross-env` package in an npm script: - Using the `cross-env` package in an npm script:
- `"build": "cross-env REACT_APP_CONFIG=config/my-config.js react-scripts build"` - `"build": "cross-env APP_CONFIG=config/my-config.js react-scripts build"`
After updating the configuration, `yarn run build:web` to generate updated build After updating the configuration, `yarn run build:web` to generate updated build
output. output.

View File

@ -60,8 +60,8 @@ _Upload your first Study:_
#### Orthanc: Learn More #### Orthanc: Learn More
You can see the `docker-compose.yml` file this command runs at You can see the `docker-compose.yml` file this command runs at
[`<project-root>/docker/Nginx-Docker/`](#), and more on Orthanc for Docker in [`<project-root>/platform/viewer/.recipes/Nginx-Orthanc/`](https://github.com/OHIF/Viewers/tree/master/platform/viewer/.recipes/Nginx-Orthanc),
[Orthanc's documentation][orthanc-docker]. and more on Orthanc for Docker in [Orthanc's documentation][orthanc-docker].
### Connecting to Orthanc ### Connecting to Orthanc
@ -87,19 +87,18 @@ is running the `dev:orthanc` script in our project's `package.json`. That script
is: is:
```js ```js
cross-env PORT=5000 REACT_APP_CONFIG=config/docker_nginx-orthanc.js react-scripts start cross-env PORT=5000 APP_CONFIG=config/docker_nginx-orthanc.js react-scripts start
``` ```
- `cross-env` sets two environment variables - `cross-env` sets two environment variables
- PORT: 5000 - PORT: 5000
- REACT_APP_CONFIG: `config/docker_nginx-orthanc.js` - APP_CONFIG: `config/docker_nginx-orthanc.js`
- `react-scripts` runs it's `start` script. This is [the de-facto - `react-scripts` runs it's `start` script. This is [the de-facto
way][cra-start] to run a "Create React App" in development mode. way][cra-start] to run a "Create React App" in development mode.
The `REACT_APP_CONFIG` value tells our app which file to load on to The `APP_CONFIG` value tells our app which file to load on to `window.config`.
`window.config`. By default, our app uses the file at By default, our app uses the file at `<project-root>/public/config/default.js`.
`<project-root>/public/config/default.js`. Here is what that configuration looks Here is what that configuration looks like:
like:
```js ```js
window.config = { window.config = {

View File

@ -37,8 +37,8 @@ Some tips for filing a new issue:
At the moment we are in the process of defining our roadmap and will do our best At the moment we are in the process of defining our roadmap and will do our best
to communicate this to the community. If your requested feature is on the to communicate this to the community. If your requested feature is on the
roadmap, then it will most likely be built at some point. If it is not, you are roadmap, then it will most likely be built at some point. If it is not, you are
welcome to build it yourself and [contribute it](../contributing.md). If you welcome to build it yourself and [contribute it](contributing.md). If you have
have resources and would like to fund the development of a feature, please resources and would like to fund the development of a feature, please
[contact us](http://www.ohif.org). [contact us](http://www.ohif.org).
### Who should I contact about Academic Collaborations? ### Who should I contact about Academic Collaborations?

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-cornerstone@0.50.0-alpha.10...@ohif/extension-cornerstone@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-cornerstone
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-cornerstone@0.0.39-alpha.9...@ohif/extension-cornerstone@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-cornerstone@0.0.39-alpha.9...@ohif/extension-cornerstone@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-cornerstone **Note:** Version bump only for package @ohif/extension-cornerstone

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/extension-cornerstone", "name": "@ohif/extension-cornerstone",
"version": "0.50.0", "version": "0.50.1",
"description": "OHIF extension for Cornerstone", "description": "OHIF extension for Cornerstone",
"author": "OHIF", "author": "OHIF",
"license": "MIT", "license": "MIT",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-html@0.50.0-alpha.10...@ohif/extension-dicom-html@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-dicom-html
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-html@0.0.4-alpha.9...@ohif/extension-dicom-html@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-html@0.0.4-alpha.9...@ohif/extension-dicom-html@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-dicom-html **Note:** Version bump only for package @ohif/extension-dicom-html

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/extension-dicom-html", "name": "@ohif/extension-dicom-html",
"version": "0.50.0", "version": "0.50.1",
"description": "OHIF extension for rendering structured reports to HTML", "description": "OHIF extension for rendering structured reports to HTML",
"author": "OHIF", "author": "OHIF",
"license": "MIT", "license": "MIT",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-microscopy@0.50.0-alpha.10...@ohif/extension-dicom-microscopy@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-microscopy@0.0.9-alpha.9...@ohif/extension-dicom-microscopy@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-microscopy@0.0.9-alpha.9...@ohif/extension-dicom-microscopy@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-dicom-microscopy **Note:** Version bump only for package @ohif/extension-dicom-microscopy

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/extension-dicom-microscopy", "name": "@ohif/extension-dicom-microscopy",
"version": "0.50.0", "version": "0.50.1",
"description": "OHIF extension for Dicom Microscopy", "description": "OHIF extension for Dicom Microscopy",
"author": "OHIF", "author": "OHIF",
"license": "MIT", "license": "MIT",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.50.0-alpha.10...@ohif/extension-dicom-pdf@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-dicom-pdf
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.9...@ohif/extension-dicom-pdf@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@0.0.8-alpha.9...@ohif/extension-dicom-pdf@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-dicom-pdf **Note:** Version bump only for package @ohif/extension-dicom-pdf

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/extension-dicom-pdf", "name": "@ohif/extension-dicom-pdf",
"version": "0.50.0", "version": "0.50.1",
"description": "OHIF extension for Dicom PDF", "description": "OHIF extension for Dicom PDF",
"author": "OHIF", "author": "OHIF",
"license": "MIT", "license": "MIT",

View File

@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@0.50.1...@ohif/extension-vtk@0.50.2) (2019-08-15)
### Bug Fixes
* Update vtk and viewport dependencies ([98c40bc](https://github.com/OHIF/Viewers/commit/98c40bc))
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@0.50.0-alpha.10...@ohif/extension-vtk@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-vtk
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@0.1.4-alpha.9...@ohif/extension-vtk@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@0.1.4-alpha.9...@ohif/extension-vtk@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/extension-vtk **Note:** Version bump only for package @ohif/extension-vtk

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/extension-vtk", "name": "@ohif/extension-vtk",
"version": "0.50.0", "version": "0.50.2",
"description": "OHIF extension for VTK.js", "description": "OHIF extension for VTK.js",
"author": "OHIF", "author": "OHIF",
"license": "MIT", "license": "MIT",
@ -48,15 +48,15 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.5.5", "@babel/runtime": "^7.5.5",
"react-vtkjs-viewport": "0.0.9", "react-vtkjs-viewport": "0.0.11",
"vtk.js": "^8.11.0" "vtk.js": "^9.5.0"
}, },
"devDependencies": { "devDependencies": {
"@ohif/core": "^0.50.0", "@ohif/core": "^0.50.1",
"@ohif/ui": "^0.50.0", "@ohif/ui": "^0.50.1",
"cornerstone-tools": "^3.13.0", "cornerstone-tools": "^3.13.0",
"cornerstone-wado-image-loader": "^3.0.0", "cornerstone-wado-image-loader": "^3.0.0",
"dcmjs": "^0.4.7", "dcmjs": "^0.5.1",
"dicom-parser": "^1.8.3", "dicom-parser": "^1.8.3",
"gh-pages": "^2.0.1", "gh-pages": "^2.0.1",
"i18next": "^17.0.3", "i18next": "^17.0.3",

View File

@ -70,7 +70,7 @@
"prettier": "^1.18.2", "prettier": "^1.18.2",
"react": "^16.8.6", "react": "^16.8.6",
"react-dom": "^16.8.6", "react-dom": "^16.8.6",
"react-scripts": "^3.0.1", "react-hot-loader": "^4.12.11",
"redux-testkit": "^1.0.6", "redux-testkit": "^1.0.6",
"shader-loader": "^1.3.1", "shader-loader": "^1.3.1",
"style-loader": "^1.0.0", "style-loader": "^1.0.0",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/core@0.50.0-alpha.10...@ohif/core@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/core
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/core@0.11.1-alpha.9...@ohif/core@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/core@0.11.1-alpha.9...@ohif/core@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/core **Note:** Version bump only for package @ohif/core

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/core", "name": "@ohif/core",
"version": "0.50.0", "version": "0.50.1",
"description": "Generic business logic for web-based medical imaging applications", "description": "Generic business logic for web-based medical imaging applications",
"author": "OHIF Core Team", "author": "OHIF Core Team",
"license": "MIT", "license": "MIT",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.0-alpha.11...@ohif/i18n@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/i18n
# [0.50.0-alpha.11](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.0-alpha.10...@ohif/i18n@0.50.0-alpha.11) (2019-08-14) # [0.50.0-alpha.11](https://github.com/OHIF/Viewers/compare/@ohif/i18n@0.50.0-alpha.10...@ohif/i18n@0.50.0-alpha.11) (2019-08-14)

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/i18n", "name": "@ohif/i18n",
"version": "0.50.0", "version": "0.50.1",
"description": "Internationalization library for The OHIF Viewer", "description": "Internationalization library for The OHIF Viewer",
"author": "OHIF", "author": "OHIF",
"license": "MIT", "license": "MIT",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/ui@0.50.0-alpha.10...@ohif/ui@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/ui
# [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/ui@0.2.18-alpha.9...@ohif/ui@0.50.0-alpha.10) (2019-08-14) # [0.50.0-alpha.10](https://github.com/OHIF/Viewers/compare/@ohif/ui@0.2.18-alpha.9...@ohif/ui@0.50.0-alpha.10) (2019-08-14)
**Note:** Version bump only for package @ohif/ui **Note:** Version bump only for package @ohif/ui

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/ui", "name": "@ohif/ui",
"version": "0.50.0", "version": "0.50.1",
"description": "A set of React components for Medical Imaging Viewers", "description": "A set of React components for Medical Imaging Viewers",
"author": "OHIF Contributors", "author": "OHIF Contributors",
"license": "MIT", "license": "MIT",

View File

@ -69,7 +69,7 @@ services:
# - orthanc # - orthanc
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- REACT_APP_CONFIG=config/local_dcm4chee - APP_CONFIG=config/local_dcm4chee
restart: always restart: always
networks: networks:
- dcm4che_default - dcm4che_default

View File

@ -28,7 +28,7 @@ FROM node:11.2.0-slim as builder
RUN mkdir /usr/src/app RUN mkdir /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV REACT_APP_CONFIG=config/docker_openresty-orthanc-keycloak.js ENV APP_CONFIG=config/docker_openresty-orthanc-keycloak.js
ENV PATH /usr/src/app/node_modules/.bin:$PATH ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json COPY package.json /usr/src/app/package.json

View File

@ -28,7 +28,7 @@ FROM node:11.2.0-slim as builder
RUN mkdir /usr/src/app RUN mkdir /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV REACT_APP_CONFIG=config/docker_openresty-orthanc.js ENV APP_CONFIG=config/docker_openresty-orthanc.js
ENV PATH /usr/src/app/node_modules/.bin:$PATH ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json COPY package.json /usr/src/app/package.json

View File

@ -3,6 +3,49 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.50.5](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.4...@ohif/viewer@0.50.5) (2019-08-21)
### Bug Fixes
* **StandaloneRouting:** Promise rejection - added `return` ([#791](https://github.com/OHIF/Viewers/issues/791)) ([d09fb4e](https://github.com/OHIF/Viewers/commit/d09fb4e))
## [0.50.4](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.3...@ohif/viewer@0.50.4) (2019-08-20)
**Note:** Version bump only for package @ohif/viewer
## [0.50.3](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.2...@ohif/viewer@0.50.3) (2019-08-15)
**Note:** Version bump only for package @ohif/viewer
## [0.50.2](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.1...@ohif/viewer@0.50.2) (2019-08-15)
**Note:** Version bump only for package @ohif/viewer
## [0.50.1](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.0-alpha.13...@ohif/viewer@0.50.1) (2019-08-14)
**Note:** Version bump only for package @ohif/viewer
# [0.50.0-alpha.13](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.0-alpha.12...@ohif/viewer@0.50.0-alpha.13) (2019-08-14) # [0.50.0-alpha.13](https://github.com/OHIF/Viewers/compare/@ohif/viewer@0.50.0-alpha.12...@ohif/viewer@0.50.0-alpha.13) (2019-08-14)
**Note:** Version bump only for package @ohif/viewer **Note:** Version bump only for package @ohif/viewer

View File

@ -1,6 +1,6 @@
{ {
"name": "@ohif/viewer", "name": "@ohif/viewer",
"version": "0.50.0", "version": "0.50.5",
"description": "OHIF Viewer", "description": "OHIF Viewer",
"author": "OHIF Contributors", "author": "OHIF Contributors",
"license": "MIT", "license": "MIT",
@ -44,14 +44,14 @@
}, },
"dependencies": { "dependencies": {
"@babel/runtime": "^7.5.5", "@babel/runtime": "^7.5.5",
"@ohif/core": "^0.50.0", "@ohif/core": "^0.50.1",
"@ohif/extension-cornerstone": "^0.50.0", "@ohif/extension-cornerstone": "^0.50.1",
"@ohif/extension-dicom-html": "^0.50.0", "@ohif/extension-dicom-html": "^0.50.1",
"@ohif/extension-dicom-microscopy": "^0.50.0", "@ohif/extension-dicom-microscopy": "^0.50.1",
"@ohif/extension-dicom-pdf": "^0.50.0", "@ohif/extension-dicom-pdf": "^0.50.1",
"@ohif/extension-vtk": "^0.50.0", "@ohif/extension-vtk": "^0.50.2",
"@ohif/i18n": "^0.50.0", "@ohif/i18n": "^0.50.1",
"@ohif/ui": "^0.50.0", "@ohif/ui": "^0.50.1",
"@tanem/react-nprogress": "^1.1.25", "@tanem/react-nprogress": "^1.1.25",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"core-js": "^3.1.4", "core-js": "^3.1.4",

View File

@ -1,4 +1,7 @@
import { hot } from 'react-hot-loader/root';
import './config'; import './config';
// Polyfills // Polyfills
// PWA Only? // PWA Only?
import 'core-js/features/array/flat'; import 'core-js/features/array/flat';
@ -194,5 +197,5 @@ function _makeAbsoluteIfNecessary(url, base_url) {
return base_url + url; return base_url + url;
} }
export default App; export default hot(App);
export { commandsManager, extensionManager, hotkeysManager }; export { commandsManager, extensionManager, hotkeysManager };

View File

@ -26,7 +26,7 @@ class StandaloneRouting extends Component {
const url = query.url; const url = query.url;
if (!url) { if (!url) {
reject(new Error("No URL was specified. Use ?url=$yourURL")); return reject(new Error("No URL was specified. Use ?url=$yourURL"));
} }
// Define a request to the server to retrieve the study data // Define a request to the server to retrieve the study data

922
yarn.lock

File diff suppressed because it is too large Load Diff