summaryrefslogtreecommitdiff
path: root/graphs/js/foodTruck/data.js
blob: dab9982bcb1ebfcd93c712829be8d45c5066ea66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"use strict";

const stocks = {
    mozzarella: 4,
    parmesan: 5,
    cheddar: 6,
    "goat cheese": 7,
    meat: 3,
    chicken: 4,
    salmon: 7,
    tuna: 8,
    bacon: 4,
    mushrooms: 4,
    tomato: 5,
    "tomato sauce": 5,
    "sour cream": 5,
    fries: 20,
    eggs: 10,
    buns: 20,
    lettuce: 5,
    oregano: 8,
};

const recipes = {
    pizza: {
        Margarita: {
            cheese: {
                mozzarella: 4,
            },
            sauce: "tomato sauce",
            toppings: { oregano: 2 },
        },
        "4 cheese": {
            cheese: {
                mozzarella: 2,
                parmesan: 2,
                cheddar: 2,
                "goat cheese": 2,
            },
            toppings: { oregano: 2 },
            sauce: "tomato sauce",
        },
        "Creamy 4 cheese": {
            cheese: {
                mozzarella: 2,
                parmesan: 2,
                cheddar: 2,
                "goat cheese": 2,
            },
            toppings: { oregano: 2 },
            sauce: "sour cream",
        },
    },
    burger: {
        Whoopty: { cheddar: 2, meat: 2, lettuce: 2, tomato: 2, buns: 2 },
        McChicken: { cheddar: 2, chicken: 1, lettuce: 2, buns: 2 },
    },
};

if (typeof window === "undefined") {
    module.exports = {
        stocks,
        recipes,
    };
} else {
    if (!globalThis.stocks && !globalThis.recipes) {
        globalThis.stocks = stocks;
        globalThis.recipes = recipes;
    }
}