App-Arena JS-Client SDK which dynamically loads and display widgets of the customer on all pages where it is included. Always included via App-Arena Analytics.js and loaded via shim/index.js
Run yarn build
to build the Client-Sdk.
Run yarn build:shim
to build the the shim.
Explanation of the folders in /lib
Folder/File | Description |
---|---|
shim | This File will be loaded by the analytics.js-integration-apparena and creates an iframe and loads the js-client-sdk (frame.js) |
index.jsx | Startpoint of the client-sdk, creates and renders the react-app. -> Creates div with class="apparena-container" |
widgetFrameContainer | Render an div container for the widget iframe |
widgetFrame | Render an iframe and load async the widget js-file to show the widget. |
At the moment there is no automatic deployment defined. yarn build
will create the frame.js
file, which needs to be uploaded to S3 Bucket aa-manager-20/cdn/client-sdk/1.0/frame.js
.
The same for yarn build:shim
. which will create the shim.js
file. This file needs to be uploaded to S3 aa-manager-20/cdn/client-sdk/1.0/shim.js
.
After a successful upload, the Cloudfront am-cdn.app-arena.com distribution needs to be invalidated.