Admin

Router

class Admin(props)

Admin router component for hosting cards

Admin.handleChange(e, newValue)

Handle tab change event

Arguments
  • e (*) – Event data

  • newValue (*) – New tab data

Lock

class Lock(props)

Account lock card component

Lock.getUserInfo()

Make user infor request of API

Lock.handleLock(event, username, to_state)

Make lock request of API

Arguments
  • event (*) – Event data

  • username (*) – Subject username

  • to_state (*) – Target lock state

Row(props)

Grid of account cards with lock buttons

Arguments
  • props (*) –

Returns

Card component wrapped in grid cell

Functions

class Functions(props)

Admin functions card component

Functions.runAllUsers(event)

Make run all playlists request of API

Arguments
  • event (*) – Event data

Functions.runStats(event)

Make run stats request of API

Arguments
  • event (*) – Event data

Tasks

class Tasks(props)

Running tasks card component

Tasks.getTasks()

Get tasks from API

TaskType(props)

Grid of task cards

Arguments
  • props (*) –

Returns

Card compnent wrapped in grid cell