# mycujoo-scoreboard

> React based scoreboard for the player

Latest version **1.7.2** (published 2018-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install mycujoo-scoreboard
pnpm add mycujoo-scoreboard
yarn add mycujoo-scoreboard
bun add mycujoo-scoreboard
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.2 |
| Published | 2018-05-09 |
| First published | 2017-12-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 310.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aaron |
| Maintainers | aaronatmycujoo |

## Links

- npm: https://www.npmjs.com/package/mycujoo-scoreboard
- npm.io page: https://npm.io/package/mycujoo-scoreboard

## Recent versions

- 1.7.2 (latest) — 2018-05-09
- 1.7.1 — 2018-04-30
- 1.7.0 — 2018-02-19
- 1.6.0 — 2018-02-19
- 1.5.0 — 2018-02-19
- 1.4.0 — 2018-02-08
- 1.3.1 — 2017-12-07
- 1.3.0 — 2017-12-05
- 1.2.0 — 2017-12-05
- 1.1.1 — 2017-12-05
- 1.1.0 — 2017-12-04
- 1.0.0 — 2017-12-04

## README

# React Scoreboard

A React based scoreboard for the mycujoo player.

## Usage

```
yarn add mycujoo-scoreboard
```

and then

```
import Scoreboard from 'mycujoo-scoreboard'

<Scoreboard />
```

And done! 🎉

## API

```
<Scoreboard
    metaData: object
    sponsor: object
    forceScoreHidden: boolean
    competition: string
    isMobile: boolean
    toggleBackLogosDelay: int
    imageUrlPrefix: string
    onClickSponsor: function
    onLoadSponsor: function
    onViewSponsor: function
/>
```

## Syntax

### metaData

```
metaData: {
    score: {
        enabled: true,
        data: [1, 0], // [home, away]
    },
    timer: {
        enabled: true,
        time: 30, // seconds
    },
    team_home: {
        color: '#fff',
        abbr: '123',
    },
    team_name: {
        color: '#000',
        abbr: '456',
    }
}
```

### sponsor

```
sponsor: {
    data: {
        image_url: '//placecage.com/200/300',
        link_url: '//mycujoo.tv',
    }
}
```

### forceScoreHidden

Exposed to help with other components to force the component to close

```
forceScoreHidden: true
```

### imageUrlPrefix

The prefix for images that do not have a domain as a fallback (I guess? I didn't write this code)

```
imageUrlPrefix: 'https://mycujoo-static.imgix.net'
```

### competition

Displays the competition above the Scoreboard

```
scoreboard: 'U-19 league'
```

### toggleBackLogosDelay

When the score changes, the team logos will display. This int sets the amount of ms that the logos stay open for

```
toggleBackLogosDelay: 4000
```

---
_Source: https://npm.io/package/mycujoo-scoreboard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
