-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Luigi Container Component Travis Setup Release (#2957)
- Loading branch information
Showing
33 changed files
with
3,853 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/node_modules/ | ||
/public/bundle.js | ||
/public/bundle.js.map | ||
/public/bundle.d.ts | ||
/public/bundle.d.ts.map | ||
/test-app/bundle.js | ||
/test-app/bundle.js.map | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
# Luigi Container | ||
|
||
## Overview | ||
Luigi Container is a [web component](https://developer.mozilla.org/en-US/docs/Web/Web_Components) that can be included in an arbitrary application, in order to render a Luigi micro frontend (iframe or web component based) without the need of being a Luigi Core application. | ||
|
||
## Usage | ||
1. Install the container package: `@luigi-project/container` | ||
|
||
``` | ||
npm install @luigi-project/container | ||
``` | ||
|
||
2. Import it into your project: | ||
|
||
|
||
``` | ||
import '@luigi-project/container'; | ||
``` | ||
|
||
3. You can now use the Luigi container as follows anywhere in your application: | ||
|
||
``` | ||
<luigi-container | ||
viewURL="https://www.example-microfronted.com" | ||
webcomponent="false" | ||
label="my label" | ||
context='{"label": "Calendar"}'> | ||
</luigi-container> | ||
``` | ||
|
||
4. In a similar way you can use the Luigi compound container as follows: | ||
|
||
``` | ||
<luigi-compound-container | ||
context='{"label": "Dashboard"}' | ||
compoundConfig = { your config here } | ||
</luigi-compound-container> | ||
``` | ||
|
||
|
||
## Development | ||
|
||
Build the bundle and start an example app: | ||
|
||
```bash | ||
npm install | ||
npm run build | ||
npm start | ||
``` | ||
|
||
Check `./test-app/index.html` for how it is used. |
Oops, something went wrong.