The library that contains the tool for creating and maintaining medlor edl tag files for videos. Note that the library is specifically designed to support being hosted as a browser extension.
This front-end library depends on medlor-api, medlor-auth-api, and medlit-api backend for servers for graphql queries and mutations.
npm install @medlit-lib
This library depends on the semantic-ui-css
npm i -S semantic-ui-css
And import it in your main site's main entry point (i.e. /index.js)
import 'semantic-ui-css/semantic.min.css';
The url and path to the authentication graphql server is expected in a .env file named: REACT_APP_MEDLOR_BASE_URL & REACT_APP_MEDLOR_API_PATH. For Example:
REACT_APP_MEDLOR_BASE_URL=http://localhost:3031
REACT_APP_MEDLOR_API_PATH=/graphql
Also, for social authentication to work properly, ensure that the hosting application has the following environment variables configured:
REACT_APP_FACEBOOK_APPID
REACT_APP_GOOGLE_APPID
REACT_APP_CHROME_EXTENSION_MODE
REACT_APP_CHROME_EXTENSION_MODE is true when this library is hosted in a browser extension and otherwise false.