Sample State - KaminKevCrew/Striva GitHub Wiki


{
  entities: {
    users: {
      1: {
        id: 1,
        username: "kaminkevcrew",
        sex: "M"
      },
      2: {
        id: 2,
        username: "thebacon",
        sex: "M"
      },
      3: {
        id: 3,
        username: "eestiarmastus",
        sex: "F"
      },
    },
    

    workouts: {
      1: {
           user_id: 1,
           workout_type: 'Row',
           title: "Killer American Lake Row",
           description: "Felt extremely smooth",
           distance: 1.25,
           total_time: 360,
           total_elevation: 0,
           delta_elevation: 0,
           date: "2019-04-05T15:48:38Z",
           coordinates: `json string`,
           personal_record: 'true'
         },
      2: {
           user_id: 1,
           workout_type: 'Cycle',
           title: "Big Hills",
           description: "oof",
           distance: 20,
           total_time: 7200,
           total_elevation: 2600,
           delta_elevation: 3500,
           date: "2019-09-03T15:48:38Z",
           coordinates: `json string`,
           personal_record: 'false'
         },
    },
   
    routes: {
        1: {
            coordinates: `stringified json object`,
            title: 'American Lake 2k'
        },
        2: {
            coordinates: `stringified json object`,
            title: 'Woodside to Skyline Climb'
        },
    }

  ui: {
    loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"],
  },
  session: { currentUserId: 2 }
}