-
Notifications
You must be signed in to change notification settings - Fork 58
MWPW-183578 | Changing stock IO direct endpoint to Akamai Proxy stage endpoint #850
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,9 +4,8 @@ import { createTag, getScreenSizeCategory } from '../../scripts/utils.js'; | |||||||
| const CONFIG = { | ||||||||
| CARD_LIMIT: { desktop: 15, tablet: 9, mobile: 10 }, | ||||||||
| API: { | ||||||||
| KEY: 'milo-prm-yt-gallery', | ||||||||
| PRODUCT: 'creativecloud', | ||||||||
| BASE_URL: 'https://stock.adobe.io/Rest/Media/1/Search/Collections', | ||||||||
| BASE_URL: 'https://www.stage.adobe.com/stock-api/Rest/Media/1/Search/Collections', | ||||||||
| }, | ||||||||
| VIEWPORT: { mobile: 599, tablet: 1199 }, | ||||||||
| EAGER_LOAD_COUNT: 6, | ||||||||
|
|
@@ -121,8 +120,7 @@ const fetchAdobeStockData = async ({ collectionId, offset = 0, limit }) => { | |||||||
| const response = await fetch(apiUrl, { | ||||||||
| method: 'GET', | ||||||||
| headers: { | ||||||||
| 'x-product': CONFIG.API.PRODUCT, | ||||||||
| 'x-api-key': CONFIG.API.KEY, | ||||||||
| 'x-product': CONFIG.API.PRODUCT | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Suggested change
|
||||||||
| }, | ||||||||
|
Comment on lines
+123
to
124
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Suggested change
|
||||||||
| }); | ||||||||
|
|
||||||||
|
|
@@ -141,9 +139,8 @@ const fetchAdobeStockData = async ({ collectionId, offset = 0, limit }) => { | |||||||
| * Maps property labels to their corresponding keys. | ||||||||
| */ | ||||||||
| const PROPERTY_MAP = { | ||||||||
| collectionid: 'collectionId', | ||||||||
| 'collection-id': 'collectionId', | ||||||||
| button: 'buttonText', | ||||||||
| 'button-text': 'buttonText', | ||||||||
| 'free-tag-text': 'freeTagText', | ||||||||
| }; | ||||||||
|
|
||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.