Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions creativecloud/blocks/prm-yt-gallery/prm-yt-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Comment on lines 122 to +123

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.

Suggested change
headers: {
'x-product': CONFIG.API.PRODUCT,
'x-api-key': CONFIG.API.KEY,
'x-product': CONFIG.API.PRODUCT
headers: {'x-product': CONFIG.API.PRODUCT

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

Suggested change
'x-product': CONFIG.API.PRODUCT
'x-product': CONFIG.API.PRODUCT,

},
Comment on lines +123 to 124

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 before this closing brace.

Suggested change
'x-product': CONFIG.API.PRODUCT
},
'x-product': CONFIG.API.PRODUCT},

});

Expand All @@ -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',
};

Expand Down
Loading