@pixelated-tech/components 3.8.1 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/admin/site-health/site-health-axe-core.integration.js +135 -20
- package/dist/components/admin/site-health/site-health-axe-core.integration.test.js +79 -0
- package/dist/components/admin/site-health/site-health-axe-core.js +35 -0
- package/dist/components/admin/site-health/site-health-core-web-vitals.integration.js +5 -3
- package/dist/components/admin/site-health/site-health-core-web-vitals.integration.test.js +33 -0
- package/dist/components/admin/site-health/site-health-template.js +3 -1
- package/dist/components/config/config.validators.js +67 -0
- package/dist/components/general/google.reviews.components.js +1 -2
- package/dist/components/general/metadata.functions.js +15 -1
- package/dist/components/general/proxy-csp-listener.js +20 -0
- package/dist/components/general/proxy-handler.js +4 -2
- package/dist/components/general/sitemap.js +9 -18
- package/dist/components/shoppingcart/ebay.components.js +114 -8
- package/dist/components/shoppingcart/ebay.functions.js +49 -32
- package/dist/components/sitebuilder/config/ConfigEngine.js +5 -2
- package/dist/components/sitebuilder/config/google-fonts.js +5 -3
- package/dist/components/sitebuilder/page/lib/pageStorageLocal.js +2 -1
- package/dist/config/pixelated.config.json +83 -71
- package/dist/index.adminclient.js +1 -0
- package/dist/index.js +2 -0
- package/dist/index.server.js +1 -0
- package/dist/types/components/admin/site-health/site-health-axe-core.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-axe-core.integration.d.ts +2 -0
- package/dist/types/components/admin/site-health/site-health-axe-core.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-axe-core.integration.test.d.ts +2 -0
- package/dist/types/components/admin/site-health/site-health-axe-core.integration.test.d.ts.map +1 -0
- package/dist/types/components/admin/site-health/site-health-core-web-vitals.integration.d.ts +1 -0
- package/dist/types/components/admin/site-health/site-health-core-web-vitals.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-core-web-vitals.integration.test.d.ts +2 -0
- package/dist/types/components/admin/site-health/site-health-core-web-vitals.integration.test.d.ts.map +1 -0
- package/dist/types/components/admin/site-health/site-health-template.d.ts.map +1 -1
- package/dist/types/components/config/config.types.d.ts +28 -11
- package/dist/types/components/config/config.types.d.ts.map +1 -1
- package/dist/types/components/config/config.validators.d.ts +17 -0
- package/dist/types/components/config/config.validators.d.ts.map +1 -0
- package/dist/types/components/general/google.reviews.components.d.ts.map +1 -1
- package/dist/types/components/general/metadata.functions.d.ts +2 -8
- package/dist/types/components/general/metadata.functions.d.ts.map +1 -1
- package/dist/types/components/general/proxy-csp-listener.d.ts +15 -0
- package/dist/types/components/general/proxy-csp-listener.d.ts.map +1 -0
- package/dist/types/components/general/proxy-handler.d.ts.map +1 -1
- package/dist/types/components/general/schema-localbusiness.d.ts.map +1 -1
- package/dist/types/components/general/schema-website.d.ts.map +1 -1
- package/dist/types/components/general/sitemap.d.ts.map +1 -1
- package/dist/types/components/shoppingcart/ebay.components.d.ts +9 -0
- package/dist/types/components/shoppingcart/ebay.components.d.ts.map +1 -1
- package/dist/types/components/shoppingcart/ebay.functions.d.ts +12 -28
- package/dist/types/components/shoppingcart/ebay.functions.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/config/ConfigBuilder.d.ts +135 -0
- package/dist/types/components/sitebuilder/config/ConfigBuilder.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/config/ConfigEngine.d.ts +3 -2
- package/dist/types/components/sitebuilder/config/ConfigEngine.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/config/google-fonts.d.ts +1 -1
- package/dist/types/components/sitebuilder/config/google-fonts.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/page/lib/pageStorageLocal.d.ts.map +1 -1
- package/dist/types/index.adminclient.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.server.d.ts +1 -0
- package/dist/types/stories/{seo/seo.404.stories.d.ts → general/404.stories.d.ts} +1 -1
- package/dist/types/stories/general/404.stories.d.ts.map +1 -0
- package/dist/types/stories/general/accordion.stories.d.ts +0 -1
- package/dist/types/stories/general/accordion.stories.d.ts.map +1 -1
- package/dist/types/stories/general/buzzword-bingo.stories.d.ts.map +1 -0
- package/dist/types/stories/general/callout.many.stories.d.ts.map +1 -0
- package/dist/types/stories/{callout → general}/callout.stories.d.ts.map +1 -1
- package/dist/types/stories/general/carousel-hero.stories.d.ts.map +1 -0
- package/dist/types/stories/general/carousel-reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/general/carousel-workportfolio.stories.d.ts.map +1 -0
- package/dist/types/stories/general/carousel.stories.d.ts.map +1 -0
- package/dist/types/stories/general/contentful.item.stories.d.ts.map +1 -0
- package/dist/types/stories/general/contentful.items.stories.d.ts.map +1 -0
- package/dist/types/stories/general/contentful.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo/seo.faq-accordion.stories.d.ts → general/faq-accordion.stories.d.ts} +1 -1
- package/dist/types/stories/general/faq-accordion.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms → general}/google.reviews.stories.d.ts +1 -1
- package/dist/types/stories/general/google.reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo/seo.googleanalytics.stories.d.ts → general/googleanalytics.stories.d.ts} +1 -1
- package/dist/types/stories/general/googleanalytics.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo/seo.googlesearch.stories.d.ts → general/googlesearch.stories.d.ts} +1 -1
- package/dist/types/stories/general/googlesearch.stories.d.ts.map +1 -0
- package/dist/types/stories/general/gravatar.stories.d.ts.map +1 -0
- package/dist/types/stories/{cms → general}/instagram.stories.d.ts +2 -2
- package/dist/types/stories/general/instagram.stories.d.ts.map +1 -0
- package/dist/types/stories/general/layout.stories.d.ts +9 -9
- package/dist/types/stories/{structured → general}/markdown.stories.d.ts +1 -1
- package/dist/types/stories/general/markdown.stories.d.ts.map +1 -0
- package/dist/types/stories/{menu → general}/menu-accordion.stories.d.ts +2 -2
- package/dist/types/stories/general/menu-accordion.stories.d.ts.map +1 -0
- package/dist/types/stories/{menu → general}/menu-expando.stories.d.ts +1 -1
- package/dist/types/stories/general/menu-expando.stories.d.ts.map +1 -0
- package/dist/types/stories/{menu → general}/menu-simple.stories.d.ts +1 -1
- package/dist/types/stories/general/menu-simple.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo/seo.metadata.stories.d.ts → general/metadata.stories.d.ts} +1 -1
- package/dist/types/stories/general/metadata.stories.d.ts.map +1 -0
- package/dist/types/stories/general/nerdjoke.stories.d.ts.map +1 -0
- package/dist/types/stories/{structured → general}/recipe.stories.d.ts +1 -1
- package/dist/types/stories/general/recipe.stories.d.ts.map +1 -0
- package/dist/types/stories/{structured → general}/resume.stories.d.ts +1 -1
- package/dist/types/stories/{structured → general}/resume.stories.d.ts.map +1 -1
- package/dist/types/stories/{seo/seo.schema.stories.d.ts → general/schema.stories.d.ts} +1 -1
- package/dist/types/stories/general/schema.stories.d.ts.map +1 -0
- package/dist/types/stories/{seo/seo.sitemap.stories.d.ts → general/sitemap.stories.d.ts} +1 -1
- package/dist/types/stories/general/sitemap.stories.d.ts.map +1 -0
- package/dist/types/stories/general/socialcard.stories.d.ts.map +1 -0
- package/dist/types/stories/general/tiles.stories.d.ts.map +1 -0
- package/dist/types/stories/general/timeline.stories.d.ts.map +1 -0
- package/dist/types/stories/general/wordpress.stories.d.ts.map +1 -0
- package/dist/types/stories/shoppingcart/ebay.stories.d.ts +16 -0
- package/dist/types/stories/shoppingcart/ebay.stories.d.ts.map +1 -0
- package/dist/types/stories/sitebuilder/compoundfontselector.stories.d.ts +2 -2
- package/dist/types/stories/sitebuilder/compoundfontselector.stories.d.ts.map +1 -1
- package/dist/types/test/test-utils.d.ts +3 -0
- package/dist/types/test/test-utils.d.ts.map +1 -1
- package/dist/types/tests/config.validators.test.d.ts +2 -0
- package/dist/types/tests/config.validators.test.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/types/stories/callout/callout.many.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel/carousel-hero.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel/carousel-reviews.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel/carousel-workportfolio.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel/carousel.stories.d.ts.map +0 -1
- package/dist/types/stories/carousel/tiles.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/contentful.item.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/contentful.items.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/contentful.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/google.reviews.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/gravatar.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/instagram.stories.d.ts.map +0 -1
- package/dist/types/stories/cms/wordpress.stories.d.ts.map +0 -1
- package/dist/types/stories/menu/menu-accordion.stories.d.ts.map +0 -1
- package/dist/types/stories/menu/menu-expando.stories.d.ts.map +0 -1
- package/dist/types/stories/menu/menu-simple.stories.d.ts.map +0 -1
- package/dist/types/stories/nerdjoke.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.404.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.faq-accordion.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.googleanalytics.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.googlesearch.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.metadata.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.schema.stories.d.ts.map +0 -1
- package/dist/types/stories/seo/seo.sitemap.stories.d.ts.map +0 -1
- package/dist/types/stories/structured/buzzword-bingo.stories.d.ts.map +0 -1
- package/dist/types/stories/structured/markdown.stories.d.ts.map +0 -1
- package/dist/types/stories/structured/recipe.stories.d.ts.map +0 -1
- package/dist/types/stories/structured/socialcard.stories.d.ts.map +0 -1
- package/dist/types/stories/structured/timeline.stories.d.ts.map +0 -1
- /package/dist/types/stories/{structured → general}/buzzword-bingo.stories.d.ts +0 -0
- /package/dist/types/stories/{callout → general}/callout.many.stories.d.ts +0 -0
- /package/dist/types/stories/{callout → general}/callout.stories.d.ts +0 -0
- /package/dist/types/stories/{carousel → general}/carousel-hero.stories.d.ts +0 -0
- /package/dist/types/stories/{carousel → general}/carousel-reviews.stories.d.ts +0 -0
- /package/dist/types/stories/{carousel → general}/carousel-workportfolio.stories.d.ts +0 -0
- /package/dist/types/stories/{carousel → general}/carousel.stories.d.ts +0 -0
- /package/dist/types/stories/{cms → general}/contentful.item.stories.d.ts +0 -0
- /package/dist/types/stories/{cms → general}/contentful.items.stories.d.ts +0 -0
- /package/dist/types/stories/{cms → general}/contentful.stories.d.ts +0 -0
- /package/dist/types/stories/{cms → general}/gravatar.stories.d.ts +0 -0
- /package/dist/types/stories/{nerdjoke.stories.d.ts → general/nerdjoke.stories.d.ts} +0 -0
- /package/dist/types/stories/{structured → general}/socialcard.stories.d.ts +0 -0
- /package/dist/types/stories/{carousel → general}/tiles.stories.d.ts +0 -0
- /package/dist/types/stories/{structured → general}/timeline.stories.d.ts +0 -0
- /package/dist/types/stories/{cms → general}/wordpress.stories.d.ts +0 -0
|
@@ -4,7 +4,7 @@ import { useState, useEffect } from "react";
|
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import { Carousel } from '../general/carousel';
|
|
6
6
|
import { SmartImage } from "../general/smartimage";
|
|
7
|
-
import {
|
|
7
|
+
import { getEbayItems, getEbayItem, getShoppingCartItem, getEbayRateLimits, getEbayAppToken } from "./ebay.functions";
|
|
8
8
|
import { addToShoppingCart } from "./shoppingcart.functions";
|
|
9
9
|
import { AddToCartButton, /* GoToCartButton */ ViewItemDetails } from "./shoppingcart.components";
|
|
10
10
|
import { getCloudinaryRemoteFetchURL as getImg } from "../general/cloudinary";
|
|
@@ -20,9 +20,10 @@ EbayItems.propTypes = {
|
|
|
20
20
|
};
|
|
21
21
|
export function EbayItems(props) {
|
|
22
22
|
// https://developer.ebay.com/devzone/finding/HowTo/GettingStarted_JS_NV_JSON/GettingStarted_JS_NV_JSON.html
|
|
23
|
+
const config = usePixelatedConfig();
|
|
23
24
|
const [items, setItems] = useState([]);
|
|
24
25
|
const [aspects, setAspects] = useState([]);
|
|
25
|
-
const
|
|
26
|
+
const apiProps = { ...(config?.ebay || {}), ...props.apiProps };
|
|
26
27
|
paintItems.propTypes = {
|
|
27
28
|
items: PropTypes.array.isRequired,
|
|
28
29
|
cloudinaryProductEnv: PropTypes.string,
|
|
@@ -33,7 +34,7 @@ export function EbayItems(props) {
|
|
|
33
34
|
let newItems = [];
|
|
34
35
|
for (let key in props.items) {
|
|
35
36
|
const item = props.items[key];
|
|
36
|
-
const newItem = _jsx(EbayListItem, { item: item, cloudinaryProductEnv: props.cloudinaryProductEnv }, item.legacyItemId);
|
|
37
|
+
const newItem = _jsx(EbayListItem, { item: item, apiProps: apiProps, cloudinaryProductEnv: props.cloudinaryProductEnv }, item.legacyItemId);
|
|
37
38
|
newItems.push(newItem);
|
|
38
39
|
}
|
|
39
40
|
return newItems;
|
|
@@ -126,16 +127,18 @@ export function EbayListFilter(props) {
|
|
|
126
127
|
EbayListItem.propTypes = {
|
|
127
128
|
item: PropTypes.any.isRequired,
|
|
128
129
|
cloudinaryProductEnv: PropTypes.string,
|
|
130
|
+
apiProps: PropTypes.any,
|
|
129
131
|
};
|
|
130
132
|
export function EbayListItem(props) {
|
|
131
133
|
const thisItem = props.item;
|
|
134
|
+
const apiProps = props.apiProps;
|
|
132
135
|
// const itemURL = thisItem.itemWebUrl;
|
|
133
136
|
const itemURL = "./store/" + thisItem.legacyItemId;
|
|
134
137
|
const itemURLTarget = "_self"; /* "_blank" */
|
|
135
138
|
const itemImage = (props.cloudinaryProductEnv)
|
|
136
139
|
? getImg({ url: thisItem.thumbnailImages[0].imageUrl, product_env: props.cloudinaryProductEnv })
|
|
137
140
|
: thisItem.thumbnailImages[0].imageUrl;
|
|
138
|
-
const shoppingCartItem = getShoppingCartItem({ thisItem: thisItem, cloudinaryProductEnv: props.cloudinaryProductEnv });
|
|
141
|
+
const shoppingCartItem = getShoppingCartItem({ thisItem: thisItem, cloudinaryProductEnv: props.cloudinaryProductEnv, apiProps: apiProps });
|
|
139
142
|
// CHANGE EBAY URL TO LOCAL EBAY ITEM DETAIL URL
|
|
140
143
|
shoppingCartItem.itemURL = itemURL;
|
|
141
144
|
const config = usePixelatedConfig();
|
|
@@ -145,7 +148,7 @@ export function EbayListItem(props) {
|
|
|
145
148
|
? _jsx("a", { href: itemURL, target: itemURLTarget, rel: "noopener noreferrer", children: itemImageComponent })
|
|
146
149
|
: (itemImageComponent) }), _jsxs("div", { className: "ebayItemBody grid-s5-e13", children: [_jsx("div", { className: "ebayItemHeader", children: itemURL
|
|
147
150
|
? _jsx(EbayItemHeader, { url: itemURL, target: itemURLTarget, title: thisItem.title })
|
|
148
|
-
: _jsx(EbayItemHeader, { title: thisItem.title }) }), _jsxs("div", { className: "ebayItemDetails grid12", children: [_jsxs("div", { children: [_jsx("b", { children: "Item ID: " }), thisItem.legacyItemId] }), _jsxs("div", { children: [_jsx("b", { children: "Quantity: " }), thisItem.categories[0].categoryId ==
|
|
151
|
+
: _jsx(EbayItemHeader, { title: thisItem.title }) }), _jsxs("div", { className: "ebayItemDetails grid12", children: [_jsxs("div", { children: [_jsx("b", { children: "Item ID: " }), thisItem.legacyItemId] }), _jsxs("div", { children: [_jsx("b", { children: "Quantity: " }), thisItem.categories[0].categoryId == apiProps.itemCategory ? 1 : 10] }), _jsxs("div", { children: [_jsx("b", { children: "Condition: " }), thisItem.condition] }), _jsxs("div", { children: [_jsx("b", { children: "Seller: " }), thisItem.seller.username, " (", thisItem.seller.feedbackScore, ")", _jsx("br", {}), thisItem.seller.feedbackPercentage, "% positive"] }), _jsxs("div", { children: [_jsx("b", { children: "Buying Options: " }), thisItem.buyingOptions[0]] }), _jsxs("div", { children: [_jsx("b", { children: "Location: " }), thisItem.itemLocation.postalCode + ", " + thisItem.itemLocation.country] }), _jsxs("div", { children: [_jsx("b", { children: "Listing Date: " }), thisItem.itemCreationDate] })] }), _jsx("div", { className: "ebayItemPrice", children: itemURL
|
|
149
152
|
? _jsxs("a", { href: itemURL, target: itemURLTarget, rel: "noreferrer", children: ["$", thisItem.price.value + " " + thisItem.price.currency] })
|
|
150
153
|
: "$" + thisItem.price.value + " " + thisItem.price.currency }), _jsx("br", {}), _jsxs("div", { className: "ebayItemAddToCart", children: [_jsx(ViewItemDetails, { href: "/store", itemID: thisItem.legacyItemId }), _jsx(AddToCartButton, { handler: addToShoppingCart, item: shoppingCartItem, itemID: thisItem.legacyItemId })] })] })] }));
|
|
151
154
|
}
|
|
@@ -166,8 +169,9 @@ EbayItemDetail.propTypes = {
|
|
|
166
169
|
cloudinaryProductEnv: PropTypes.string,
|
|
167
170
|
};
|
|
168
171
|
export function EbayItemDetail(props) {
|
|
172
|
+
const config = usePixelatedConfig();
|
|
169
173
|
const [item, setItem] = useState({});
|
|
170
|
-
const
|
|
174
|
+
const apiProps = { ...(config?.ebay || {}), ...props.apiProps };
|
|
171
175
|
useEffect(() => {
|
|
172
176
|
if (debug)
|
|
173
177
|
console.log("Running useEffect");
|
|
@@ -193,11 +197,11 @@ export function EbayItemDetail(props) {
|
|
|
193
197
|
: thisImage.imageUrl }));
|
|
194
198
|
const itemURL = undefined;
|
|
195
199
|
const itemURLTarget = "_self"; /* "_blank" */
|
|
196
|
-
const shoppingCartItem = getShoppingCartItem({ thisItem: thisItem, cloudinaryProductEnv: props.cloudinaryProductEnv });
|
|
200
|
+
const shoppingCartItem = getShoppingCartItem({ thisItem: thisItem, cloudinaryProductEnv: props.cloudinaryProductEnv, apiProps: apiProps });
|
|
197
201
|
shoppingCartItem.itemURL = itemURL;
|
|
198
202
|
return (_jsx(_Fragment, { children: _jsxs("div", { className: "ebayItem row-12col", children: [_jsx("div", { className: "ebayItemHeader grid-s1-e13", children: itemURL
|
|
199
203
|
? _jsx(EbayItemHeader, { url: itemURL, title: thisItem.title })
|
|
200
|
-
: _jsx(EbayItemHeader, { title: thisItem.title }) }), _jsx("br", {}), _jsx("div", { className: "ebayItemPhotoCarousel grid-s1-e7", children: _jsx(Carousel, { cards: images, draggable: true, imgFit: "contain" }) }), _jsxs("div", { className: "grid-s7-e13", children: [_jsx("div", { className: "ebayItemDetails grid12", children: _jsx("div", { dangerouslySetInnerHTML: { __html: thisItem.description.replace(/(<br\s*\/?>\s*){2,}/gi, '') } }) }), _jsx("br", {}), _jsxs("div", { className: "ebayItemDetails grid12", children: [_jsxs("div", { children: [_jsx("b", { children: "Item ID: " }), thisItem.legacyItemId] }), _jsxs("div", { children: [_jsx("b", { children: "Quantity: " }), thisItem.categoryId ==
|
|
204
|
+
: _jsx(EbayItemHeader, { title: thisItem.title }) }), _jsx("br", {}), _jsx("div", { className: "ebayItemPhotoCarousel grid-s1-e7", children: _jsx(Carousel, { cards: images, draggable: true, imgFit: "contain" }) }), _jsxs("div", { className: "grid-s7-e13", children: [_jsx("div", { className: "ebayItemDetails grid12", children: _jsx("div", { dangerouslySetInnerHTML: { __html: thisItem.description.replace(/(<br\s*\/?>\s*){2,}/gi, '') } }) }), _jsx("br", {}), _jsxs("div", { className: "ebayItemDetails grid12", children: [_jsxs("div", { children: [_jsx("b", { children: "Item ID: " }), thisItem.legacyItemId] }), _jsxs("div", { children: [_jsx("b", { children: "Quantity: " }), thisItem.categoryId == apiProps.itemCategory ? 1 : 10] }), _jsxs("div", { children: [_jsx("b", { children: "Category: " }), thisItem.categoryPath] }), _jsxs("div", { children: [_jsx("b", { children: "Condition: " }), thisItem.condition] }), _jsxs("div", { children: [_jsx("b", { children: "Seller: " }), thisItem.seller.username, " (", thisItem.seller.feedbackScore, ")", _jsx("br", {}), thisItem.seller.feedbackPercentage, "% positive"] }), _jsxs("div", { children: [_jsx("b", { children: "Buying Options: " }), thisItem.buyingOptions[0]] }), _jsxs("div", { children: [_jsx("b", { children: "Location: " }), thisItem.itemLocation.city + ", " + thisItem.itemLocation.stateOrProvince] }), _jsxs("div", { children: [_jsx("b", { children: "Listing Date: " }), thisItem.itemCreationDate] }), _jsx("br", {})] }), _jsx("div", { className: "ebayItemPrice", children: itemURL
|
|
201
205
|
? _jsxs("a", { href: itemURL, target: itemURLTarget, rel: "noreferrer", children: ["$", thisItem.price.value + " " + thisItem.price.currency] })
|
|
202
206
|
: "$" + thisItem.price.value + " " + thisItem.price.currency }), _jsx("br", {}), _jsx("div", { className: "ebayItemAddToCart", children: _jsx(AddToCartButton, { handler: addToShoppingCart, item: shoppingCartItem, itemID: thisItem.legacyItemId }) })] })] }) }));
|
|
203
207
|
}
|
|
@@ -205,3 +209,105 @@ export function EbayItemDetail(props) {
|
|
|
205
209
|
return (_jsx(_Fragment, { children: _jsx("div", { id: "ebayItems", className: "ebayItems", children: _jsx("div", { className: "centered", children: "Loading..." }) }) }));
|
|
206
210
|
}
|
|
207
211
|
}
|
|
212
|
+
/* ========== EBAY RATE LIMITS VISUALIZER ========== */
|
|
213
|
+
EbayRateLimitsVisualizer.propTypes = {
|
|
214
|
+
token: PropTypes.string,
|
|
215
|
+
apiProps: PropTypes.object,
|
|
216
|
+
};
|
|
217
|
+
export function EbayRateLimitsVisualizer(props) {
|
|
218
|
+
const config = usePixelatedConfig();
|
|
219
|
+
const apiProps = {
|
|
220
|
+
...(config?.ebay || {}),
|
|
221
|
+
...props.apiProps
|
|
222
|
+
};
|
|
223
|
+
const [token, setToken] = useState(props.token || '');
|
|
224
|
+
const [data, setData] = useState(null);
|
|
225
|
+
const [loading, setLoading] = useState(false);
|
|
226
|
+
const [fetchingToken, setFetchingToken] = useState(false);
|
|
227
|
+
const [error, setError] = useState(null);
|
|
228
|
+
const fetchToken = async () => {
|
|
229
|
+
setFetchingToken(true);
|
|
230
|
+
setError(null);
|
|
231
|
+
try {
|
|
232
|
+
const newToken = await getEbayAppToken({ apiProps });
|
|
233
|
+
if (newToken) {
|
|
234
|
+
setToken(newToken);
|
|
235
|
+
return newToken;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
setError('Failed to fetch eBay token. Check your appId and appCertId.');
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
catch (e) {
|
|
242
|
+
setError('Token fetch error: ' + e.message);
|
|
243
|
+
}
|
|
244
|
+
finally {
|
|
245
|
+
setFetchingToken(false);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
// Auto-fetch token on mount if credentials are available
|
|
249
|
+
useEffect(() => {
|
|
250
|
+
if (!token && apiProps.appId && apiProps.appCertId) {
|
|
251
|
+
fetchToken();
|
|
252
|
+
}
|
|
253
|
+
}, []);
|
|
254
|
+
const fetchData = async () => {
|
|
255
|
+
setLoading(true);
|
|
256
|
+
setError(null);
|
|
257
|
+
try {
|
|
258
|
+
const result = await getEbayRateLimits({
|
|
259
|
+
token: token,
|
|
260
|
+
apiProps: apiProps
|
|
261
|
+
});
|
|
262
|
+
setData(result);
|
|
263
|
+
}
|
|
264
|
+
catch (e) {
|
|
265
|
+
setError(e.message || 'Failed to fetch data');
|
|
266
|
+
}
|
|
267
|
+
finally {
|
|
268
|
+
setLoading(false);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
const showMockData = () => {
|
|
272
|
+
setData({
|
|
273
|
+
rate_limit: {
|
|
274
|
+
apiContext: "Buy",
|
|
275
|
+
apiName: "Browse",
|
|
276
|
+
apiVersion: "v1",
|
|
277
|
+
resources: [
|
|
278
|
+
{
|
|
279
|
+
resourceName: "item_summary",
|
|
280
|
+
methods: [
|
|
281
|
+
{
|
|
282
|
+
methodName: "search",
|
|
283
|
+
quotaTotal: 5000,
|
|
284
|
+
quotaRemaining: 4950,
|
|
285
|
+
quotaResets: "2026-01-10T00:00:00.000Z"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
user_rate_limit: {
|
|
292
|
+
userContext: "Individual",
|
|
293
|
+
resources: [
|
|
294
|
+
{
|
|
295
|
+
resourceName: "item",
|
|
296
|
+
methods: [
|
|
297
|
+
{
|
|
298
|
+
methodName: "get",
|
|
299
|
+
quotaTotal: 1000,
|
|
300
|
+
quotaRemaining: 990,
|
|
301
|
+
quotaResets: "2026-01-10T00:00:00.000Z"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
// Check for API-level errors in the returned data
|
|
310
|
+
const hasTokenError = data?.rate_limit?.errors?.[0]?.message === "Invalid access token" ||
|
|
311
|
+
data?.user_rate_limit?.errors?.[0]?.message === "Invalid access token";
|
|
312
|
+
return (_jsxs("div", { style: { padding: '20px', fontFamily: 'sans-serif', border: '1px solid #ddd', borderRadius: '8px' }, children: [_jsx("h3", { children: "Ebay Rate Limits Data Visualizer" }), _jsxs("div", { style: { marginBottom: '20px', display: 'flex', flexDirection: 'column', gap: '10px' }, children: [_jsxs("div", { style: { display: 'flex', gap: '10px', alignItems: 'center' }, children: [_jsx("label", { htmlFor: "ebay-token", children: _jsx("b", { children: "Token:" }) }), _jsx("input", { id: "ebay-token", type: "text", value: token, onChange: (e) => setToken(e.target.value), placeholder: "Paste eBay token here", style: { flexGrow: 1, padding: '5px', fontFamily: 'monospace' } }), _jsx("button", { onClick: fetchToken, disabled: fetchingToken || !apiProps.appId, children: fetchingToken ? 'Fetching Token...' : 'Auto-Fetch Token' })] }), _jsxs("div", { style: { display: 'flex', gap: '10px' }, children: [_jsx("button", { onClick: fetchData, disabled: loading || !token, style: { padding: '8px 16px', cursor: 'pointer', background: '#0070f3', color: 'white', border: 'none', borderRadius: '4px' }, children: loading ? 'Fetching Limits...' : 'Fetch Rate Limits' }), _jsx("button", { onClick: showMockData, style: { padding: '8px 16px', cursor: 'pointer', border: '1px solid #ccc', borderRadius: '4px', background: 'white' }, children: "Load Sample Structure" })] })] }), error && (_jsxs("div", { style: { color: '#d00', background: '#fff5f5', padding: '10px', borderRadius: '4px', marginBottom: '10px', border: '1px solid #feb2b2' }, children: [_jsx("b", { children: "Error:" }), " ", error] })), hasTokenError && (_jsxs("div", { style: { color: '#c53030', background: '#fff5f5', padding: '10px', borderRadius: '4px', marginBottom: '10px', border: '1px solid #feb2b2' }, children: ["\uD83D\uDEA8 ", _jsx("b", { children: "Authentication Error:" }), " Your eBay access token is invalid or expired. Use \"Auto-Fetch Token\" if credentials are set, or paste a new one."] })), data ? (_jsxs("div", { style: { marginTop: '20px' }, children: [_jsxs("div", { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' }, children: [_jsx("h4", { children: "Response Data:" }), _jsx("button", { onClick: () => setData(null), style: { padding: '4px 8px', fontSize: '12px' }, children: "Clear" })] }), _jsx("pre", { style: { background: '#f8f9fa', padding: '15px', borderRadius: '5px', overflow: 'auto', border: '1px solid #e9ecef', fontSize: '13px' }, children: JSON.stringify(data, null, 2) })] })) : (_jsx("div", { style: { color: '#666', fontStyle: 'italic', marginTop: '20px' }, children: "No rate limit data loaded yet." }))] }));
|
|
313
|
+
}
|
|
@@ -15,21 +15,55 @@ https://developer.ebay.com/api-docs/static/oauth-ui-tokens.html
|
|
|
15
15
|
https://developer.ebay.com/my/keys
|
|
16
16
|
https://developer.ebay.com/my/auth?env=production&index=0
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Merges provided props with server-side config if available.
|
|
20
|
+
* This ensures functions work out-of-the-box on the server without manual prop passing.
|
|
21
|
+
*/
|
|
22
|
+
function getMergedEbayConfig(providedApiProps) {
|
|
23
|
+
let apiProps = {
|
|
24
|
+
proxyURL: '',
|
|
25
|
+
baseTokenURL: '',
|
|
26
|
+
baseSearchURL: '',
|
|
27
|
+
qsSearchURL: '',
|
|
28
|
+
baseItemURL: '',
|
|
29
|
+
qsItemURL: '',
|
|
30
|
+
baseAnalyticsURL: '',
|
|
31
|
+
...providedApiProps
|
|
32
|
+
};
|
|
33
|
+
if (typeof window === 'undefined') {
|
|
34
|
+
try {
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
36
|
+
const { getFullPixelatedConfig } = require('../config/config');
|
|
37
|
+
const config = getFullPixelatedConfig();
|
|
38
|
+
if (config) {
|
|
39
|
+
apiProps = {
|
|
40
|
+
proxyURL: config.global?.proxyUrl || '',
|
|
41
|
+
...apiProps,
|
|
42
|
+
...(config.ebay || {}),
|
|
43
|
+
...providedApiProps
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
// Fail-silent, use what we have
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return apiProps;
|
|
52
|
+
}
|
|
22
53
|
getShoppingCartItem.propTypes = {
|
|
23
54
|
thisItem: PropTypes.any.isRequired,
|
|
24
55
|
cloudinaryProductEnv: PropTypes.string,
|
|
56
|
+
apiProps: PropTypes.any,
|
|
25
57
|
};
|
|
26
58
|
export function getShoppingCartItem(props) {
|
|
27
59
|
let qty = 0;
|
|
28
60
|
const thisItem = props.thisItem;
|
|
29
|
-
|
|
61
|
+
const apiProps = props.apiProps;
|
|
62
|
+
const itemCategory = apiProps?.itemCategory;
|
|
63
|
+
if (thisItem.categoryId && thisItem.categoryId == itemCategory) {
|
|
30
64
|
qty = 1;
|
|
31
65
|
}
|
|
32
|
-
else if (thisItem.categories[0]
|
|
66
|
+
else if (thisItem.categories?.[0]?.categoryId && thisItem.categories[0].categoryId == itemCategory) {
|
|
33
67
|
qty = 1;
|
|
34
68
|
}
|
|
35
69
|
else {
|
|
@@ -56,29 +90,12 @@ search tokenScope: 'https://api.ebay.com/oauth/api_scope',
|
|
|
56
90
|
item tokenScope: 'https://api.ebay.com/oauth/api_scope/buy.item.bulk',
|
|
57
91
|
getItem tokenScope: 'https://api.ebay.com/oauth/api_scope',
|
|
58
92
|
*/
|
|
59
|
-
export const defaultEbayProps = {
|
|
60
|
-
proxyURL: "https://proxy.pixelated.tech/prod/proxy?url=",
|
|
61
|
-
baseTokenURL: 'https://api.ebay.com/identity/v1/oauth2/token',
|
|
62
|
-
tokenScope: 'https://api.ebay.com/oauth/api_scope',
|
|
63
|
-
baseSearchURL: 'https://api.ebay.com/buy/browse/v1/item_summary/search',
|
|
64
|
-
qsSearchURL: '?q=sunglasses&fieldgroups=full&category_ids=79720&aspect_filter=categoryId:79720&filter=sellers:{pixelatedtech}&sort=newlyListed&limit=200',
|
|
65
|
-
baseItemURL: 'https://api.ebay.com/buy/browse/v1/item',
|
|
66
|
-
qsItemURL: '/v1|295959752403|0?fieldgroups=PRODUCT,ADDITIONAL_SELLER_DETAILS',
|
|
67
|
-
baseAnalyticsURL: 'https://api.ebay.com/developer/analytics/v1_beta',
|
|
68
|
-
appId: 'BrianWha-Pixelate-PRD-1fb4458de-1a8431fe', // clientId
|
|
69
|
-
appDevId: 'fa7b86b5-3a10-43ae-bf6f-497aa4e55ddd',
|
|
70
|
-
appCertId: 'PRD-fb4458deef01-0d54-496a-b572-a04b', // clientSecret
|
|
71
|
-
sbxAppId: 'BrianWha-Pixelate-SBX-ad482b6ae-8cb8fead', // Sandbox
|
|
72
|
-
sbxAppDevId: 'fa7b86b5-3a10-43ae-bf6f-497aa4e55ddd',
|
|
73
|
-
sbxAppCertId: 'SBX-d482b6ae0d62-f57c-4d3c-88b7-22ec',
|
|
74
|
-
globalId: 'EBAY-US',
|
|
75
|
-
};
|
|
76
93
|
/* ========== GET TOKEN ========== */
|
|
77
94
|
getEbayAppToken.propTypes = {
|
|
78
95
|
apiProps: PropTypes.object.isRequired,
|
|
79
96
|
};
|
|
80
97
|
export function getEbayAppToken(props) {
|
|
81
|
-
const apiProps =
|
|
98
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
82
99
|
const fetchToken = async () => {
|
|
83
100
|
if (debug)
|
|
84
101
|
console.log("Fetching Token");
|
|
@@ -115,7 +132,7 @@ getEbayBrowseSearch.propTypes = {
|
|
|
115
132
|
token: PropTypes.string.isRequired,
|
|
116
133
|
};
|
|
117
134
|
export function getEbayBrowseSearch(props) {
|
|
118
|
-
const apiProps =
|
|
135
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
119
136
|
const fetchData = async (token) => {
|
|
120
137
|
const fullURL = apiProps.baseSearchURL + apiProps.qsSearchURL;
|
|
121
138
|
const cacheKey = `search_${fullURL}`;
|
|
@@ -160,7 +177,7 @@ getEbayBrowseItem.propTypes = {
|
|
|
160
177
|
token: PropTypes.string.isRequired,
|
|
161
178
|
};
|
|
162
179
|
export function getEbayBrowseItem(props) {
|
|
163
|
-
const apiProps =
|
|
180
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
164
181
|
const fetchData = async (token) => {
|
|
165
182
|
const fullURL = (apiProps.baseItemURL ?? '') + (apiProps.qsItemURL ?? '');
|
|
166
183
|
const cacheKey = `item_${fullURL}`;
|
|
@@ -200,12 +217,12 @@ export function getEbayBrowseItem(props) {
|
|
|
200
217
|
return fetchData(props.token);
|
|
201
218
|
}
|
|
202
219
|
/* ========== RATE LIMITS ========== */
|
|
203
|
-
|
|
220
|
+
getEbayRateLimits.propTypes = {
|
|
204
221
|
apiProps: PropTypes.object.isRequired,
|
|
205
222
|
token: PropTypes.string.isRequired,
|
|
206
223
|
};
|
|
207
|
-
export function
|
|
208
|
-
const apiProps =
|
|
224
|
+
export function getEbayRateLimits(props) {
|
|
225
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
209
226
|
const fetchAllLimits = async (token) => {
|
|
210
227
|
if (debug)
|
|
211
228
|
console.log("Fetching all eBay API Rate Limits");
|
|
@@ -247,7 +264,7 @@ getEbayItems.propTypes = {
|
|
|
247
264
|
apiProps: PropTypes.object.isRequired,
|
|
248
265
|
};
|
|
249
266
|
export async function getEbayItems(props) {
|
|
250
|
-
const apiProps =
|
|
267
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
251
268
|
try {
|
|
252
269
|
const response = await getEbayAppToken({ apiProps: apiProps });
|
|
253
270
|
if (debug)
|
|
@@ -268,7 +285,7 @@ getEbayItem.propTypes = {
|
|
|
268
285
|
apiProps: PropTypes.object.isRequired,
|
|
269
286
|
};
|
|
270
287
|
export async function getEbayItem(props) {
|
|
271
|
-
const apiProps =
|
|
288
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
272
289
|
try {
|
|
273
290
|
const response = await getEbayAppToken({ apiProps: apiProps });
|
|
274
291
|
if (debug)
|
|
@@ -286,7 +303,7 @@ export async function getEbayItem(props) {
|
|
|
286
303
|
}
|
|
287
304
|
/* ========== ITEM SEARCH ========== */
|
|
288
305
|
export function getEbayItemsSearch(props) {
|
|
289
|
-
const apiProps =
|
|
306
|
+
const apiProps = getMergedEbayConfig(props.apiProps);
|
|
290
307
|
const fetchData = async (token) => {
|
|
291
308
|
const fullURL = apiProps.baseSearchURL + apiProps.qsSearchURL;
|
|
292
309
|
const cacheKey = `search_${fullURL}`;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { generateGoogleFontsUrl } from './google-fonts';
|
|
3
3
|
import { ALL_WEBSAFE_FONTS } from './fonts';
|
|
4
|
+
import { assertVisualDesign } from '../../config/config.validators';
|
|
4
5
|
export function VisualDesignStyles({ visualdesign }) {
|
|
5
|
-
|
|
6
|
+
// Validate visualdesign early so invalid routes.json fails fast
|
|
7
|
+
assertVisualDesign(visualdesign);
|
|
8
|
+
const tokens = visualdesign;
|
|
6
9
|
const resolveValue = (v) => (v && typeof v === 'object' && 'value' in v) ? v.value : v;
|
|
7
10
|
// Check if Google Fonts are being used
|
|
8
11
|
const hasGoogleFonts = () => {
|
|
@@ -82,7 +85,7 @@ export function VisualDesignStyles({ visualdesign }) {
|
|
|
82
85
|
* Component to handle Google Fonts imports - should be used in the document head
|
|
83
86
|
*/
|
|
84
87
|
export function GoogleFontsImports({ visualdesign }) {
|
|
85
|
-
const tokens = visualdesign
|
|
88
|
+
const tokens = visualdesign;
|
|
86
89
|
const fonts = [];
|
|
87
90
|
// Extract Google font names from the new 3-field font structure
|
|
88
91
|
for (const [key, val] of Object.entries(tokens)) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Google Fonts Integration
|
|
3
3
|
* Fetches and caches Google Fonts data for use in visual design forms
|
|
4
4
|
*/
|
|
5
|
+
import { getFullPixelatedConfig } from '../../config/config';
|
|
5
6
|
// Cache for Google Fonts data
|
|
6
7
|
let fontsCache = null;
|
|
7
8
|
let cacheTimestamp = 0;
|
|
@@ -31,16 +32,17 @@ const FALLBACK_GOOGLE_FONTS = [
|
|
|
31
32
|
];
|
|
32
33
|
/**
|
|
33
34
|
* Fetch Google Fonts list from API
|
|
34
|
-
*
|
|
35
|
+
* Reads API key from `pixelated.config.json` under `google.api_key` (server-side)
|
|
35
36
|
*/
|
|
36
37
|
export async function fetchGoogleFonts() {
|
|
37
38
|
// Check cache first
|
|
38
39
|
if (fontsCache && (Date.now() - cacheTimestamp) < CACHE_DURATION) {
|
|
39
40
|
return fontsCache;
|
|
40
41
|
}
|
|
41
|
-
const
|
|
42
|
+
const cfg = getFullPixelatedConfig();
|
|
43
|
+
const apiKey = cfg?.google?.api_key;
|
|
42
44
|
if (!apiKey) {
|
|
43
|
-
console.warn('
|
|
45
|
+
console.warn('google.api_key not set in pixelated.config.json; returning empty fonts list');
|
|
44
46
|
return [];
|
|
45
47
|
}
|
|
46
48
|
try {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
|
|
3
|
+
import { getFullPixelatedConfig } from '../../../config/config';
|
|
4
|
+
const PAGES_DIR = getFullPixelatedConfig()?.global?.pagesDir || 'public/data/pages';
|
|
4
5
|
/**
|
|
5
6
|
* Get absolute path to pages directory
|
|
6
7
|
*/
|
|
@@ -1,72 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
2
|
+
"global": {
|
|
3
|
+
"proxyUrl": "https://proxy.pixelated.tech/prod/proxy?url="
|
|
4
|
+
},
|
|
5
|
+
"cloudinary": {
|
|
6
|
+
"product_env": "dlbon7tpq",
|
|
7
|
+
"baseUrl": "https://res.cloudinary.com",
|
|
8
|
+
"secure": true,
|
|
9
|
+
"transforms": "f_auto,c_limit,q_auto,dpr_auto"
|
|
10
|
+
},
|
|
11
|
+
"contentful": {
|
|
12
|
+
"proxyURL": "https://proxy.pixelated.tech/prod/proxy?url=",
|
|
13
|
+
"base_url": "https://cdn.contentful.com",
|
|
14
|
+
"space_id": "ank9sh265hdu",
|
|
15
|
+
"environment": "master",
|
|
16
|
+
"delivery_access_token": "gcbxpeK2rfX4esUvaA9Hn_ngVuez03YfnGp5DHyVh5A",
|
|
17
|
+
"management_access_token": "CFPAT-CZmIOPsdKL7IU9UV6oVSTvM91MW9Se4g52gmBn-WlA4",
|
|
18
|
+
"preview_access_token": "W1Dw8BN_YzvqRoymEYDjBABQB3ulxTR421m2VfiLCyw"
|
|
19
|
+
},
|
|
20
|
+
"ebay": {
|
|
21
|
+
"proxyURL": "https://proxy.pixelated.tech/prod/proxy?url=",
|
|
22
|
+
"appId": "BrianWha-Pixelate-PRD-1fb4458de-1a8431fe",
|
|
23
|
+
"appDevId": "fa7b86b5-3a10-43ae-bf6f-497aa4e55ddd",
|
|
24
|
+
"appCertId": "PRD-fb4458deef01-0d54-496a-b572-a04b",
|
|
25
|
+
"sbxAppId": "BrianWha-Pixelate-SBX-ad482b6ae-8cb8fead",
|
|
26
|
+
"sbxAppDevId": "fa7b86b5-3a10-43ae-bf6f-497aa4e55ddd",
|
|
27
|
+
"sbxAppCertId": "SBX-d482b6ae0d62-f57c-4d3c-88b7-22ec",
|
|
28
|
+
"globalId": "EBAY_US",
|
|
29
|
+
"environment": "production",
|
|
30
|
+
"tokenScope": "https://api.ebay.com/oauth/api_scope",
|
|
31
|
+
"baseTokenURL": "https://api.ebay.com/identity/v1/oauth2/token",
|
|
32
|
+
"baseSearchURL": "https://api.ebay.com/buy/browse/v1/item_summary/search",
|
|
33
|
+
"baseAnalyticsURL": "https://api.ebay.com/developer/analytics/v1_beta",
|
|
34
|
+
"qsSearchURL": "?q=sunglasses&fieldgroups=full&category_ids=79720&aspect_filter=categoryId:79720&filter=sellers:{pixelatedtech}&sort=newlyListed&limit=200",
|
|
35
|
+
"baseItemURL": "https://api.ebay.com/buy/browse/v1/item",
|
|
36
|
+
"qsItemURL": "/v1|295959752403|0?fieldgroups=PRODUCT,ADDITIONAL_SELLER_DETAILS",
|
|
37
|
+
"itemCategory": "79720"
|
|
38
|
+
},
|
|
39
|
+
"flickr": {
|
|
40
|
+
"baseURL": "https://api.flickr.com/services/rest/?",
|
|
41
|
+
"urlProps": {
|
|
42
|
+
"method": "flickr.photos.search",
|
|
43
|
+
"api_key": "882cab5548d53c9e6b5fb24d59cc321d",
|
|
44
|
+
"user_id": "15473210@N04",
|
|
45
|
+
"tags": "pixelatedviewsgallery",
|
|
46
|
+
"extras": "date_taken,description,owner_name",
|
|
47
|
+
"sort": "date-taken-desc",
|
|
48
|
+
"per_page": 500,
|
|
49
|
+
"format": "json",
|
|
50
|
+
"photoSize": "Medium",
|
|
51
|
+
"nojsoncallback": "true"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"google": {
|
|
55
|
+
"client_id": "80165502504-j9d4l6qpfmvjkfetn261dsobivluj75c.apps.googleusercontent.com",
|
|
56
|
+
"client_secret": "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",
|
|
57
|
+
"api_key": "AIzaSyBJVi0O9Ir9imRgINLZbojTifatX-Z4aUs",
|
|
58
|
+
"refresh_token": "1//05NlarHOjB4fOCgYIARAAGAUSNgF-L9IrszHlwYnNU2fz5YtMHEyjVTYZ_SmOEQdw_qA64M1fJB7tHCQmMakQxpfFK-8A80sc0g"
|
|
59
|
+
},
|
|
60
|
+
"googleAnalytics": {
|
|
61
|
+
"id": "G-1J1W90VBE1",
|
|
62
|
+
"adId": "AW-17721931789"
|
|
63
|
+
},
|
|
64
|
+
"googleSearchConsole": {
|
|
65
|
+
"id": "009500278966481927899:bcssp73qony"
|
|
66
|
+
},
|
|
67
|
+
"googleMaps": {
|
|
68
|
+
"apiKey": "AIzaSyBJVi0O9Ir9imRgINLZbojTifatX-Z4aUs"
|
|
69
|
+
},
|
|
70
|
+
"nextAuth": {
|
|
71
|
+
"secret": "RZJ0yls+FdikOyfQ8UX0MB4bJFS9e73Wfaai1EVsUi8=",
|
|
72
|
+
"url": "https://localhost:3006"
|
|
73
|
+
},
|
|
74
|
+
"paypal": {
|
|
75
|
+
"sandboxPayPalApiKey": "AT10GG2ZHoApTtEw7dJoU6XRDYkf3wEvK2k_-eZ9GOvOK-REphG8yKCyZCqFi95OrxKgrdctlfWxayHG",
|
|
76
|
+
"sandboxPayPalSecret": "EDUrdPonwcNYZwO5j7hNmFSmF-13zptaCndUnO0-Vr_j0GYEW4m-Tfar9IaukHwm0ixL5fUojOOFtZVk",
|
|
77
|
+
"payPalApiKey": "AeWRwYpsrfslATCndF6xjL4GLcqA1UxQZLC5vxQE-FTvPezXfLbCJO_uAFk5zoXUKRFnP-zJ_73yEkBE",
|
|
78
|
+
"payPalSecret": "EBvYvynRXZCI6RbK4rg2NiENNG4N8tbgl8qAmpxB6f9nUkZjXMODxXJZ91JycP439kPrQcnB7uRKp0-F"
|
|
79
|
+
},
|
|
80
|
+
"wordpress": {
|
|
81
|
+
"baseURL": "https://public-api.wordpress.com/rest/v1/sites/",
|
|
82
|
+
"site": "blog.pixelated.tech"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from './components/admin/site-health/site-health-axe-core';
|
|
|
6
6
|
export * from './components/admin/site-health/site-health-cloudwatch';
|
|
7
7
|
export * from './components/admin/site-health/site-health-cloudwatch.integration';
|
|
8
8
|
export * from './components/admin/site-health/site-health-core-web-vitals.integration';
|
|
9
|
+
export * from './components/admin/site-health/site-health-axe-core.integration';
|
|
9
10
|
export * from './components/admin/site-health/site-health-dependency-vulnerabilities';
|
|
10
11
|
export * from './components/admin/site-health/site-health-github';
|
|
11
12
|
export * from './components/admin/site-health/site-health-google-analytics';
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from './components/config/config.client';
|
|
3
3
|
export * from './components/config/config.types';
|
|
4
4
|
export * from './components/config/config.utils';
|
|
5
|
+
export * from './components/config/config.validators';
|
|
5
6
|
export * from './components/general/404';
|
|
6
7
|
export * from './components/general/accordion';
|
|
7
8
|
export * from './components/general/buzzwordbingo';
|
|
@@ -39,6 +40,7 @@ export * from './components/general/menu-simple';
|
|
|
39
40
|
export * from './components/general/metadata.components';
|
|
40
41
|
export * from './components/general/metadata.functions';
|
|
41
42
|
export * from './components/general/microinteractions';
|
|
43
|
+
export * from './components/general/proxy-csp-listener';
|
|
42
44
|
export * from './components/general/modal';
|
|
43
45
|
export * from './components/general/nerdjoke';
|
|
44
46
|
export * from './components/general/recipe';
|
package/dist/index.server.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from './components/config/config';
|
|
|
9
9
|
export * from './components/config/config.server';
|
|
10
10
|
export * from './components/config/config.types';
|
|
11
11
|
export * from './components/config/config.utils';
|
|
12
|
+
export * from './components/config/config.validators';
|
|
12
13
|
export * from './components/config/crypto';
|
|
13
14
|
// SEO
|
|
14
15
|
export * from './components/general/contentful.delivery';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-axe-core.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-axe-core.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQnD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"site-health-axe-core.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-axe-core.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQnD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAiSpE;yBAjSe,iBAAiB"}
|
|
@@ -56,7 +56,9 @@ export interface AxeCoreData {
|
|
|
56
56
|
};
|
|
57
57
|
timestamp: string;
|
|
58
58
|
status: 'success' | 'error';
|
|
59
|
+
warnings?: string[];
|
|
59
60
|
error?: string;
|
|
61
|
+
injectionSource?: string;
|
|
60
62
|
}
|
|
61
63
|
export declare function performAxeCoreAnalysis(url: string): Promise<AxeCoreData>;
|
|
62
64
|
export {};
|