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.
Video preview
Elegant as its architecture. It contains:
  1. ui: the UI lib.
  1. docs: documents.
  1. i18n:international libs for translation.
  1. core: it contains logic for UI rendering, data source and any other things. Need to explore more.
  1. cli: command line tools.
  1. viewer (now app): Combines the logic in core&ui together.Done things like registering the Extensions and Modes, reading configuration files, etc.
 
notion image
 
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
Niyuta
变分无限,孤心测度有同伦
公告
type
status
date
slug
summary
tags
category
icon
password
🎉热烈庆祝Niyuta拥有了个人网站!🎉
-- 感谢支持喵:) ---
👏网站正在建设中,有bug望不吝反馈赐教~👏
(迟早要重构掉