Skip to content

mufasa3000/match-overview-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

458 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

match-overview-widget

A widget showing the match schedule of upcoming matches in a scrollable list. The matches shown are based in the highlights (the popular list in the sportsbook). The matches are ordered by their start date.

The matches shown are from the events that are related to the links in the highlight list AND are also inside the provided filter argument.

If the combine argument is false only the matches from the first matched highlight will be shown, if it is true then the widget will show the matches from all the matched highlights.

In desktop mode the widget has clickable arrows to scroll the widget, In mobile mode the widget instead scrolls normally (by "tap-draging"). In mobile mode the widget has a smaller main logo which will be shown briefly before automatically scrolling it out of sight.

Configuration

Arguments and default values:

"args": {
    "filter": [
        "/football/champions_league",
        "/football/england/premier_league",
        "/football/europa_league",
        "/football/france/ligue_1",
        "/football/germany/bundesliga",
        "/football/international_friendly_matches",
        "/football/italy/serie_a",
        "/football/norway/tippeligaen",
        "/football/spain/laliga",
        "/football/sweden/allsvenskan",
        "/football/world_cup_qualifying_-_asia",
        "/football/world_cup_qualifying_-_europe",
        "/football/world_cup_qualifying_-_north__central___caribbean",
        "/football/world_cup_qualifying_-_south_america",
        "/football/belgium/jupiler_pro_league",
        "/football/netherlands/eredivisie"
    ],
    "combineFilters": false,
    "pollingInterval": 30000,
    "pollingCount": 4,
    "eventsRefreshInterval": 120000,
    "widgetTrackingName": "gm-match-overview-widget",
    "compareAgainstHighlights": true,
}
  1. filter - Array - list of filters to match against the highlights. Only matches from these filters will show up in the widget.
  2. combineFilters - boolean - if true will use all the filters that are also with the highlights mixing different tournaments together
  3. pollingInterval - number - interval in milliseconds to get new live data from live matches
  4. pollingCount - number - maximum number of matches to poll for live data at the same time
  5. eventsRefreshInterval - number - interval in milliseconds to look for live events
  6. widgetTrackingName - string - tracking name for analytics purposes
  7. compareAgainstHighlights - boolean - determines whether you want to compare whether the filters are within the highlighted events (popular events) or not. Will use the first item in the filter that returns events.

Build Instructions

Please refer to the core-library

About

A widget that shows the schedule for a specific filter or filters based on what is in the highlight resource

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors