Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@egamer/ow-events-status-element

1.0.0 • Public • Published

ow-events-status-element

This is a custom element (web components - can be used every where regardless the framework) built with Svelte to indicate game events status.

Provided by eGamer.gg

Usage

gameid - OW game id.

polling - fetch events status every X ms.

<ow-events-status-element gameid="10906">
    <div slot="green">
        😎
    </div>
</ow-events-status-element>
<!-- polling status every 10 minutes -->
<ow-events-status-element gameid="10906" polling="600000">
    <div slot="red">
        😕
    </div>
</ow-events-status-element>

Available slots:

  • loading - loading events status from OW API
  • unsupported - game id is not support by OW
  • green - events are up and running
  • yellow- partial functionality, some game events may be unavailable.
  • red - game events are unavailable.
  • error - failed to load events status.

Examples:

TODO

  • validate props types
  • tests
  • give indication for every event - flag

Install

npm i @egamer/ow-events-status-element

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

82.7 kB

Total Files

4

Last publish

Collaborators

  • avatar