medlit-lib v0.0.3
Medlor Subscribe Wizard Library
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.
Install
npm install @medlit-libSemantic UI
This library depends on the semantic-ui-css
npm i -S semantic-ui-cssAnd import it in your main site's main entry point (i.e. /index.js)
import 'semantic-ui-css/semantic.min.css';.env
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=/graphqlAlso, 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_MODEREACT_APP_CHROME_EXTENSION_MODE is true when this library is hosted in a browser extension and otherwise false.