sample state - cgradeff/Spelled GitHub Wiki

{
    entities: {
        users: {
            1: {
                id: 1,
                username: 'mooshi',
                email: '[email protected]'
            }
            2: {
                id: 2,
                username: 'thea',
                email: '[email protected]'
            }
            3: {
                id: 3,
                username: 'fugi',
                email: '[email protected]'
            }
        }

        listings: {
            1: {
                id: 1,
                author_id: 1,
                title: 'Belbe, Corrupted Observer',
                body: '',
                price: 5,
                offer: true,
                sold: false,
                condition: 'new',
                color: ['black', 'green'],
                rarity: 'rare',
                types: ['Legendary Creature'],
                mana: 2
            }
            2: {
                id: 2,
                author_id: 1,
                title: 'Archon of Cruelty',
                body: 'one of my favorite cards in a belbe deck, also has an old boarder',
                price: 50,
                offer: true,
                sold: false,
                condition: 'used',
                color: ['black'],
                rarity: 'mythic rare',
                types: ['Creature'],
                mana: 8
            }
            3: {
                id: 3,
                author_id: 2,
                title: 'Tuvasa the Sunlit',
                body: 'super sick commander',
                price: 100,
                offer: false,
                sold: false,
                condition: 'like-new',
                color: ['green', 'white', 'blue'],
                rarity: 'mythic rare',
                types: ['Legendary Creature'],
                mana: 3
            }
        }

        comments: {
            1: {
                id: 1,
                author_id: 2,
                list_id: 1,
                body: 'this is a sweet card'
            }
            2: {
                id: 2,
                author_id: 3,
                list_id: 3,
                body: 'i want this!'
            }
        }

        favorites: {
            1: {
                id: 1,
                user_id: 1,
                list_id: 3,
            }
        }
    }

    ui: {
        loading: true/false,
        modal: true/false
    }

    errors: {
        login: ["Incorrect username/password combination"],
        listForm: ["Body cannot be blank", "Title cannot be blank", "Price cannot be blank",
         "Body cannot be blank", "Color cannot be blank", "Condition cannot be blank",
         "Rarity cannot be blank", "Types cannot be blank"],
        comment: ["Comment cannot be blank"]
    }
} 
⚠️ **GitHub.com Fallback** ⚠️