Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REACT ON DEMAND BOOTCAMP #2

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.DS_Store
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
113 changes: 113 additions & 0 deletions mocks/en-us/api-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"refs": [
{
"id": "master",
"ref": "YZaBvBIAACgAvnOP",
"label": "Master",
"isMasterRef": true
}
],
"bookmarks": {},
"experiments": {
"draft": [],
"running": []
},
"types": {
"product": "Product",
"category": "Category",
"banner": "Banner"
},
"languages": [
{
"id": "en-us",
"name": "English - United States"
},
{
"id": "es-mx",
"name": "Spanish - Mexico"
}
],
"forms": {
"everything": {
"method": "GET",
"enctype": "application/x-www-form-urlencoded",
"action": "https://wizeline-academy.cdn.prismic.io/api/v2/documents/search",
"fields": {
"ref": {
"type": "String",
"multiple": false
},
"q": {
"type": "String",
"multiple": true
},
"lang": {
"type": "String",
"multiple": false
},
"page": {
"type": "Integer",
"multiple": false,
"default": "1"
},
"pageSize": {
"type": "Integer",
"multiple": false,
"default": "20"
},
"after": {
"type": "String",
"multiple": false
},
"fetch": {
"type": "String",
"multiple": false
},
"fetchLinks": {
"type": "String",
"multiple": false
},
"graphQuery": {
"multiple": false,
"type": "String"
},
"orderings": {
"type": "String",
"multiple": false
},
"referer": {
"type": "String",
"multiple": false
},
"routes": {
"type": "String",
"multiple": false
},
"access_token": {
"type": "String",
"multiple": false
},
"integrationFieldsRef": {
"type": "String",
"multiple": false
}
}
},
"tags": {
"method": "GET",
"enctype": "application/x-www-form-urlencoded",
"action": "https://wizeline-academy.cdn.prismic.io/api/tags",
"fields": {
"access_token": {
"type": "String",
"multiple": false
}
}
}
},
"oauth_initiate": "https://wizeline-academy.prismic.io/auth",
"oauth_token": "https://wizeline-academy.prismic.io/auth/token",
"tags": [],
"license": "This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.",
"version": "f8e49ae"
}
2 changes: 1 addition & 1 deletion mocks/en-us/featured-products.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
}
}
],
"stock": 4,
"stock": 2,
"price": 1834.57
}
},
Expand Down
56 changes: 28 additions & 28 deletions mocks/en-us/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"name": "Tallulah Sofa Gray",
"sku": "1080681271",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -203,10 +203,10 @@
"name": "Tyler Poly Reclining Leather Armchair",
"sku": "1066982170",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -320,10 +320,10 @@
"name": "Grayton Armchair",
"sku": "1105659063",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -440,10 +440,10 @@
"name": "Thatcher Armchair",
"sku": "1091702718",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -540,10 +540,10 @@
"name": "Shay Armchair",
"sku": "1105659756",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -722,10 +722,10 @@
"name": "Spear Armchair",
"sku": "1105659217",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -886,10 +886,10 @@
"name": "Roscoe Armchair Gray",
"sku": "1086706985",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -996,10 +996,10 @@
"name": "Chesterfield Sofa Dark Brown",
"sku": "1078230319",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -1139,10 +1139,10 @@
"name": "Brown Turner Right Arm Armchair",
"sku": "1051376575",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -1234,10 +1234,10 @@
"name": "Balboa Armchair",
"sku": "1106346701",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -1400,10 +1400,10 @@
"name": "Comfort Aquare Arm Sofa",
"sku": "1083937814",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -1518,10 +1518,10 @@
"name": "PB Comfort Roll Arm Sofa",
"sku": "1074278902",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -1618,10 +1618,10 @@
"name": "Big Sur Modular Room",
"sku": "1108098020",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down Expand Up @@ -1733,10 +1733,10 @@
"name": "Pearce Modular Sofa Left Arm",
"sku": "1106697601",
"category": {
"id": "YWHviRIAACsAyjP3",
"id": "YWHy0xIAACoAykKm",
"type": "category",
"tags": [],
"slug": "furniture",
"slug": "lighting",
"lang": "en-us",
"first_publication_date": "2021-10-09T23:34:39+0000",
"last_publication_date": "2021-10-12T23:30:58+0000",
Expand Down
Loading