1.0.10 โ€ข Published 3 years ago

react-epotion v1.0.10

Weekly downloads
19
License
-
Repository
-
Last release
3 years ago

react-epotion ๐Ÿงช

Continous Integration โ™พ npm version

Simple component for managing Epotion tracking.

Views ๐ŸŒ

Disabled ViewDisabled Minimized ViewEnabled ViewEnabled Minimized View
npm.ionpm.ionpm.ionpm.io

Install ๐Ÿ”ง

use NPM:

npm i -S react-epotion

use Yarn:

yarn add react-epotion

Example ๐Ÿค“

import Epotion from 'react-epotion';

const YourComponent = () => <Epotion />;

export default YourComponent;

Options โš™๏ธ

NameDescriptionDefaultTypeRequired
minimizedSpecifies if the window for Epotion is minimized. User has possibility to maximize it.falseboolโŒ
textText that's displayed when tracking is disabled.'Allow us to track your emotions while you browse the page so we could provide you with better user experience. Data is collected anonymously.'stringโŒ
readMoreTextText for Read More button.'Click here to read more.'stringโŒ
readMoreUrlUrl for Read More button.'https://marcinxkaminski.github.io/epotion-api/epotion.html'stringโŒ
startTrackingTextText for Start Tracking Button.'๐Ÿš€ start tracking'stringโŒ
stopTrackingTextText for Stop Tracking Button.'โœ‹๐Ÿป stop tracking'stringโŒ
customReporterSpecifies the reporter that will be used for reporting data. If you set your own reporter, default (Epotion's) reporter will be skipped. For more info check Epotion docs here.undefinedfunctionโŒ
enableReportingSpecifies if the reporting feature should be enabled.trueboolโŒ

Future Work ๐Ÿ”ฎ

  • Test the component
  • Add more views, e.g. statistics view, to display averages of already gathered data or page statistics view

Development ๐Ÿ‘ท๐Ÿผโ€โ™‚๏ธ

git clone https://github.com/marcinxkaminski/react-epotion.git
cd react-epotion
npm ci
npm run start

Contribution

Feel free to contribute - every help is welcome ๐Ÿ™๐Ÿป