Skip to content

Instantly share code, notes, and snippets.

@sergeyloysha
sergeyloysha / locations.json
Created June 28, 2023 11:33
Here we just added 3 extra fields: postcode - we need this field for filtering, slug - we need this field to create url for single page, address - according to design
[
{
"id": 48,
"type": 1,
"name": "Station Antwerpen-centraal",
"state": 1,
"latitude": 51.217611,
"longitude": 4.421,
"radius": 50,
"zone": null,
[{
"name": "Antwerp",
"postcodes": [
[1000, 1999],
[4000, 4999]
]
}]
@sergeyloysha
sergeyloysha / data.json
Last active April 14, 2023 16:19
upthrust-coding
"{
"name": "upthrust-coding",
"children": [
{
"name": ".storybook",
"children": []
},
{
"name": "node_modules",
"children": []
@sergeyloysha
sergeyloysha / response.json
Created August 18, 2020 12:21
?action=commerce/cart/get-cart
{
"cart": {
"number": "63d5bc21d2af8d46c17ec7f887287300",
"reference": null,
"couponCode": null,
"isCompleted": false,
"dateOrdered": null,
"datePaid": null,
"dateAuthorized": null,
"currency": "EUR",
@sergeyloysha
sergeyloysha / country_phone_codes.js
Created March 19, 2019 12:31
Country phone codes
export default {
AF: {
name: 'Afghanistan',
code: '+93'
},
AL: {
name: 'Albania',
code: '+355'
},
DZ: {