Skip to content

Sample State

Porfirio A Matias edited this page Sep 19, 2017 · 2 revisions

{

  entities: {
    tasks: {
      1: {
        id: 1,
        title: "capture the iron throne",
        description: "by making alliances",
        complete?: false
      },
      2: {
        id: 2,
        title: "Defeat all enemies",
        body: "Starting with Tyrion",
        complete?: true
      }
    },
    users: {
      11: {
        id: 11,
        username: "sansa_stark25425"
      }
      23: {
        id: 23,
        username: "Jon_snow4324"
      },
      25: {
        id: 2,
        username: "tywin_lannister32"
      }
    },
    projects: {
      1: {
        id: 2,
        title: "Expand Empire",
        description: "Conquer All"
      },
      5: {
        id: 2,
        title: "Save all of Westeros",
        description: "Defeat the White Walkers"
      }
    },
    teams: {
      1: {
        name: "House Lannister",
        description: "Royal House"
      },
     2: {
        name: "House Stark",
        description: "Royal House"
     }
    }
  },
  ui: {
    current_team: null,
    current_task: null,
    current_project: null,
    current_view_user: null
  },
  errors: {
    login: ["Invalid username/password combination"],
    newTaskForm: [" Title and/or Description cannot be blank"],
    newProjectForm: [" Title and/or Description cannot be blank"],
  },
  session: {
    currentUser: {
      id: 2,
      username: "tywin_lannister",
    }
  }

}

Clone this wiki locally