fix(cli): better support for external modules and toolGroups in templates (#3364)

* choe(modes, components): improved readability

This commit includes changes to improve performance in the basic-dev-mode and Thumbnail components.
Additionally, a change in the webpack configuration file was made to ignore ".min.js.map" files.
The defaultDataSourceName was also added to several configuration files, and whiteLabeling code was removed
from the local_orthanc configuration file.

* fix(cli): better path management and add dependencies

* better docs

* add default tool group to the templates

* add review comments

* apply review comments

* try to fix test

* fix thumbnail in tests
This commit is contained in:
Alireza authored and GitHub committed 2023-05-08 15:49:28 -04:00
1 parent 187e6b5f30
commit 2f355fa158
26 files changed
+193 -142

No files matched your search

+7 -1
View File
@@ -292,7 +292,7 @@ are currently being used by the viewer.
## Private NPM Repos
For the `yarn cli` to view private NPM repos, create a read-only token with the
For the `yarn cli` to view private NPM repos, create a read-only token with the
following steps and export it as an environmental variable. You may also export
an existing npm token.
```
@@ -300,3 +300,9 @@ npm login
npm token create --read-only
export NPM_TOKEN=<your readonly token>
```
## External dependencies
The ohif-cli will add the path to the external dependencies to the webpack config,
so that you can install them in your project and use them in your custom
extensions and modes. To achieve this ohif-cli will update the webpack.pwa.js
file in the platform/viewer directory.
@@ -127,7 +127,9 @@ window.config = {
> You can simply use the stylings from tailwind CSS in the whiteLabeling
In addition to text, you can also add your custom logo
In addition to text, you can also add your custom logo. You can put them
inside the platform/viewer/public/assets folder and use them in the
whiteLabeling section.
```js
window.config = {
@@ -143,7 +145,7 @@ window.config = {
href: '/',
},
React.createElement('img', {
src: './customLogo.svg',
src: './assets/customLogo.svg',
// className: 'w-8 h-8',
})
);