-
Notifications
You must be signed in to change notification settings - Fork 5
Plugin Modules
In your Zeta project, you can use all the Xyna modules of other Xyna repositories like the Process Monitor or the Xyna Properties.
It is common practice to place all the Xyna Factory modules inside a folder xfm.
inside root folder: git submodule add https://github.com/Xyna-Factory/xyna-factory-manager.git impl/projects/xyna/src/app/xfm/factory-manager
Add an environment path for each Xyna Factory module to tsconfig.json’s paths
:
- Factory Manager:
@fman
- Process Modeller:
@pmod
- Yggdrasil:
@yggdrasil
"paths": {
…
"@fman/*": ["projects/xyna/src/app/xfm/factory-manager/*"],
…
}
Import the desired modules inside your module where you want to use the Xyna component.
Add FactoryManagerModule
to the imports
list of your module.
Inside app/_const.scss
, import the respective "_const.scss" file from the xyna repository.
@import 'xfm/factory-manager/const';
Now, each component of the imported Xyna Factory module can be used. For example, add a route to a routing.ts:
{ path: 'xyna-properties', component: XynaPropertiesComponent, canActivate: [AuthGuard] }