type
status
date
slug
summary
tags
category
icon
password
Need to assist professor for a platform which can diagnose the uterine fibroids. Chose the OHIF, however, lacking of tutorials. So note it for study.
📝 Architecture
Detailed as the video below, so it is no need to explain twice. A really good video for beginners.
Elegant as its architecture. It contains:
- ui: the UI lib.
- docs: documents.
- i18n:international libs for translation.
- core: it contains logic for UI rendering, data source and any other things. Need to explore more.
- cli: command line tools.
- viewer (now app): Combines the logic in core&ui together.Done things like registering the Extensions and Modes, reading configuration files, etc.
Demonstrate in version:
📝 Entrance of App
The entrance is:
platform\app\src\index.js
. It created the App:And the
App.tsx
registers the config, default Extensions and default Modes.The
defaultExtensions, defaultModes
are autoimported by plugins in .pluginImports.js
. So where’s the configuration loaded?Where the APP_CONFIG is loaded?
In
platform\app\.webpack\webpack.pwa.js
, we can see code like this:And in
package.json
, we directly set parameter --config
: So the program automatically read entries in
webpack.pwa.js
.📎 References
有关Notion安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~
- 作者:Niyuta
- 链接:https://www.niyuta.eu.org/article/75ec46d1-4f7b-4ba2-ac02-96c359a39d58
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。