This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// storeinventory module | |
const storeinventoryLoader = async productIds => { | |
return await fetch(productIds) | |
} | |
const storeinventoryTransformer = (storeinventory, product) => { | |
return { ...product, ...storeinventory[product.id] } | |
} | |
// excludedProducts module | |
const exludedProductsLoader = async productIds => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ProductPage = ({ store }) => { | |
useEffect(() => { | |
store.loadNotifications() | |
}, []) | |
return ( | |
<div className="product-page"> | |
<NotificationBar | |
notifications={store.notifications} | |
location="product page" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
const JourneyContainer = () => { | |
return ( | |
<div className="journey-container"> | |
<div className="content-container"> | |
<div className="brand-3">So einfach funktioniert’s:</div> | |
<div className="items-container"> | |
<div className="content-box"> | |
<div className="img-01" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
const JourneyContainer = () => { | |
return ( | |
<div className="journey-container"> | |
<div className="content-container"> | |
<div className="brand-3">So einfach funktioniert’s:</div> | |
<div className="items-container"> | |
<div className="content-box"> | |
<div className="img-01" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
const JourneyContainer = () => { | |
return ( | |
<div className="journey-container"> | |
<div className="content-container"> | |
<div className="brand-3">So einfach funktioniert’s:</div> | |
<div className="items-container"> | |
<div className="content-box"> | |
<div className="img-01" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"name": "Supermarkt" | |
}, | |
{ | |
"id": 2, | |
"name": "Lebensmittel", | |
"parent": 1 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const openidRelyingParty = new openid.RelyingParty( | |
`${config.baseurl}/verify`, | |
config.baseurl, | |
true, // Use stateless verification | |
false, // Strict mode | |
[ | |
new openid.AttributeExchange({ | |
'https://login.migros.ch/ax/legal/TNB_MYMIGROS': 'required', | |
'https://login.migros.ch/ax/contact/email': 'optional', | |
'https://login.migros.ch/ax/person/guid': 'required', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const transformFoodDeclarations = apiFoodDeclaration => { | |
const boldTextRegex = /\$([^\$]+)\$/g | |
const producing_country = | |
_.get(apiFoodDeclaration, 'producing_country', null) === '-' | |
? null | |
: _.replace( | |
_.get(apiFoodDeclaration, 'producing_country', null), | |
'DE: ', | |
'' | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"total_hits": 1, | |
"facets": { | |
"purchasable_online": { | |
"name": "Online erhältlich", | |
"terms": [ | |
{ | |
"term": "F", | |
"count": 1, | |
"name": "Nein", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SERVER: | |
io.on('connection', socket => { | |
socket.on('pickingstates.update', async pickingstateMsg => { | |
const [pickingstate, created] = await models.Pickingstates.findOrCreate( | |
{ | |
where: { | |
deliveryDate: pickingstateMsg.deliveryDate, | |
orderId: pickingstateMsg.orderId, | |
productId: pickingstateMsg.productId, | |
}, |
NewerOlder