Skip to content

Sample State

Jonathan Bae edited this page Sep 27, 2019 · 17 revisions
{
  entities: {
    notebooks: {
      1: {
        id: 1, 
        title: "ocarina of time", 
        authorId: 11, 
        noteIds: [3]

      },
      2: {
        id: 2, 
        title: "majora's mask", 
        authorId: 18, 
        noteIds: []
      },
      3: {
        id: 3, 
        title: "breath of the wild", 
        authorId: 6, 
        noteIds: [1,2]
      },
      4: {
        id: 4, 
        title: "wind waker", 
        authorId: 20, 
        noteIds: []
      }
      
    }

    users: {
      11: {
        id: 11,
        username: "zelda",
        authoredNoteIds: [1, 2],  
        authoredNotebookIds: [3]   
      },
      25: {
        id: 25,
        username: "green_tunic_link",
        authoredNoteIds: [9],
        authoredNotebookIds: [1, 2, 4]   
      }
    },
 


    notes: {
      1: {
        id: 1, 
        title: "zelda\'s diary entry 1" 
        content: "After meeting with the Champions, 
        I left to research the ancient technology, but nothing of note came of my research. 
        The return of Ganon looms—a dark force taunting us from afar. 
        I must learn all I can about the relics so we can stop him. 
        If the fortune-teller's prophecy is to be believed, there isn't much time left... 
        Ah, but turning over these thoughts in my head puts me ill at ease. 
        I suppose I should turn in for the night.

        P.S. Tomorrow my father is assigning HIM as my appointed knight...",
        authorId: 1,
        notebookId: 3,
        tagIds: [1,2]

      },
      
      2: {
        id: 2, 
        title: "zelda\'s diary entry 2" 
        content: "I set out for Goron City today to make some adjustments to Divine Beast Vah Rudania. 
        I still recall feeling his eyes on me as I walked ahead. 
        The feeling stayed with me so long, I grew anxious and weary. 
        It is the same feeling I've felt before in his company... 
        And still, not a word passes his lips. I never know what he's thinking! 
        It makes my imagination run wild, guessing at what he is thinking but will not say. 
        What does the boy chosen by the sword that seals the darkness think of me? Will I ever truly know? Then, I suppose it's simple. 
        A daughter of Hyrule's royal family yet unable to use sealing magic... He must despise me." ,
        authorId: 1,
        notebookId: 3,
        tagIds: [1,2]

      },

      3: {
        id: 3, 
        title: "navi" 
        content: "hey listen", 
        authorId: 2, 
        notebookId: 1
        tagIds: [3]

      }
      
    }

    tags: {
      1: {
        id: 1, 
        name: red, 

      },
      
      2: {
        id: 2, 
        name: yellow, 

      },
      
      3: {
        id: 3, 
        name: green, 

      }

    }
  }
  ui: {
  loading: true/false
  },
  errors: {
    login: ["Incorrect username/password combination"],
    noteForm: ["Note content cannot be blank"],
  },
  session: { currentUserId: 25 }
  }
}

Clone this wiki locally