feat(discord): dynamic currency symbol (#1328)

This commit is contained in:
sohaiiil
2020-12-12 14:01:54 +00:00
committed by GitHub
parent ad0b2fe525
commit cccfde245a
91 changed files with 99 additions and 5 deletions
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Adorama: Store = {
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AlternateNL: Store = {
currency: '€',
labels: {
inStock: {
container: '.stockStatus',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Alternate: Store = {
currency: '€',
labels: {
inStock: {
container: '.stockStatus',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AmazonCa: Store = {
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const AmazonDeWarehouse: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const AmazonDe: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const AmazonEs: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const AmazonFr: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const AmazonIt: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AmazonNl: Store = {
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -4,6 +4,7 @@ import {parseCard} from './helpers/card';
export const AmazonUk: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '£',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Amazon: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AmdCa: Store = {
currency: '$',
labels: {
inStock: {
container: '.btn-shopping-cart',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AmdDe: Store = {
currency: '€',
labels: {
inStock: {
container: '.btn-shopping-cart',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AmdIt: Store = {
currency: '€',
labels: {
inStock: {
container: '.btn-shopping-cart',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Amd: Store = {
currency: '$',
labels: {
inStock: {
container: '.btn-shopping-cart',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AntOnline: Store = {
currency: '$',
labels: {
inStock: {
container: '.uk-button',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Argos: Store = {
currency: '£',
labels: {
inStock: {
container: 'button[data-test="add-to-trolley-button-button"',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Aria: Store = {
currency: '£',
labels: {
inStock: {
container: '#addQuantity',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Arlt: Store = {
currency: '€',
labels: {
inStock: {
container: '.articleDesc .shippingtext',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const AsusDe: Store = {
currency: '€',
labels: {
inStock: {
container: '.buybox--button',
+1
View File
@@ -3,6 +3,7 @@ import fetch from 'node-fetch';
export const Asus: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '$',
labels: {
inStock: {
container: '#item_add_cart',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Awd: Store = {
currency: '£',
labels: {
inStock: {
container: '.vs-stock .ty-qty-in-stock',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Azerty: Store = {
currency: '€',
labels: {
inStock: {
container: '.orderdelay',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const BAndH: Store = {
backoffStatusCodes: [403, 429],
currency: '$',
labels: {
inStock: {
container: 'div[data-selenium="addToCartSection"]',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const BestBuyCa: Store = {
currency: '$',
labels: {
inStock: {
container: '.addToCartContainer_2uzan',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const BestBuy: Store = {
currency: '$',
labels: {
inStock: {
container:
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Box: Store = {
currency: '£',
labels: {
inStock: {
container: '#divBuyButton',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const CanadaComputers: Store = {
currency: '$',
labels: {
inStock: {
container: 'div[class="pi-prod-availability"]',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Caseking: Store = {
backoffStatusCodes: [403, 429],
currency: '€',
labels: {
inStock: {
container: '.delivery_container',
+1
View File
@@ -3,6 +3,7 @@ import {getProductLinksBuilder} from './helpers/card';
export const Ccl: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '£',
labels: {
inStock: {
container: '#pnlAddToBasket',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Comet: Store = {
currency: '€',
labels: {
inStock: {
container: '.caption',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Computeruniverse: Store = {
currency: '€',
labels: {
inStock: {
container: '.availability',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Coolblue: Store = {
currency: '€',
labels: {
inStock: {
container: '.product-order',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Coolmod: Store = {
currency: '€',
labels: {
inStock: {
container: '.product-availability',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Corsair: Store = {
currency: '$',
labels: {
inStock: {
container: '.add_to_cart_form',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Currys: Store = {
currency: '£',
labels: {
inStock: {
container: '#product-actions button',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Cyberport: Store = {
currency: '€',
labels: {
inStock: {
container: '.tooltipAvailabilityParent',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const EbGames: Store = {
currency: '$',
labels: {
maxPrice: {
container: '.singleVariantText .prodPriceCont'
+2 -1
View File
@@ -2,10 +2,11 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Ebuyer: Store = {
currency: '£',
labels: {
inStock: {
container: '.purchase-info',
text: ['add to basket', 'in stock']
text: ['add to basket', 'in stock', 'pre-order']
},
maxPrice: {
container: '.purchase-info__price .price',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Elcorteingles: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
// Captcha: {
// container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Eprice: Store = {
currency: '€',
labels: {
inStock: {
container: '.topSideDx',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const EuronicsDE: Store = {
currency: '€',
labels: {
inStock: {
container: '.buy-btn--cart-text',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Euronics: Store = {
currency: '€',
labels: {
inStock: {
container: '.purchaseButtonsWidth',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const EvgaEu: Store = {
currency: '€',
labels: {
inStock: {
container: '.product-buy-specs',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Evga: Store = {
currency: '$',
labels: {
inStock: {
container: '.product-buy-specs',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Expert: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
inStock: [
{
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Galaxus: Store = {
currency: '€',
labels: {
inStock: {
container: '#addToCartButton:enabled',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Game: Store = {
currency: '£',
labels: {
inStock: {
container: '.buyingOptions',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const GamestopDE: Store = {
currency: '€',
labels: {
inStock: [
{
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Gamestop: Store = {
currency: '$',
labels: {
inStock: [
{
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Kabum: Store = {
currency: 'R$',
labels: {
inStock: {
container: '.botao-comprar',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Mediamarkt: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'p',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Medimax: Store = {
currency: '€',
labels: {
inStock: [
{
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Megekko: Store = {
currency: '€',
labels: {
inStock: {
container: '.product-order .text_green',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const MemoryExpress: Store = {
currency: '$',
labels: {
maxPrice: {
container:
+1
View File
@@ -209,6 +209,7 @@ for (const microCenterLocation of microCenterLocations) {
}
export const MicroCenter: Store = {
currency: '$',
labels: {
inStock: {
container: '#cart-options',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Mindfactory: Store = {
currency: '€',
labels: {
inStock: {
container: '.pshipping',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import fetch from 'node-fetch';
export const NeweggCa: Store = {
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import fetch from 'node-fetch';
export const Newegg: Store = {
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Notebooksbilliger: Store = {
currency: '€',
labels: {
inStock: {
container: '.warehouse',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Novatech: Store = {
currency: '£',
labels: {
inStock: {
container: '.newspec-specprice',
+1
View File
@@ -237,6 +237,7 @@ export const regionInfos = new Map<string, NvidiaRegionInfo>([
]);
export const NvidiaApi: Store = {
currency: '',
labels: {
inStock: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Nvidia: Store = {
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const OfficeDepot: Store = {
currency: '$',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Otto: Store = {
currency: '€',
labels: {
inStock: [
{
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Overclockers: Store = {
currency: '£',
labels: {
inStock: {
container: '#detailbox',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const PCComponentes: Store = {
currency: '€',
labels: {
inStock: {
container: '#btnsWishAddBuy',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import fetch from 'node-fetch';
export const PlayStation: Store = {
currency: '$',
labels: {
inStock: [
{
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Pny: Store = {
currency: '$',
labels: {
inStock: {
container: '#ctl01_lbtnAddToCart',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const ProshopDE: Store = {
currency: '€',
labels: {
maxPrice: {
container:
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const ProshopDK: Store = {
currency: 'kr.',
labels: {
inStock: {
container: '.site-stock',
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Saturn: Store = {
backoffStatusCodes: [403, 429, 503],
currency: '€',
labels: {
captcha: {
container: 'p',
+2 -1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
import {getProductLinksBuilder} from './helpers/card';
export const Scan: Store = {
currency: '£',
disableAdBlocker: true,
labels: {
captcha: [
@@ -29,7 +30,7 @@ export const Scan: Store = {
model: 'test:model',
series: 'test:series',
url:
'https://www.scan.co.uk/products/msi-geforce-rtx-2060-ventus-xs-oc-6gb-gddr6-vr-ready-graphics-card-1920-core-1710mhz-boost'
'https://www.scan.co.uk/products/nvidia-shield-tv-media-streamer-tegra-x1plus-processor-8gb-storage-2gb-ram-4k-hdr-ready-ai-upscaling'
},
{
brand: 'sony',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const SmythsToys: Store = {
currency: '£',
labels: {
inStock: {
container: '#addToCartButton',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Spielegrotte: Store = {
currency: '€',
labels: {
inStock: [
{
+1
View File
@@ -180,6 +180,7 @@ export type Store = {
};
labels: Labels;
name: string;
currency: '£' | '$' | '€' | 'R$' | 'kr.' | '';
setupAction?: (browser: Browser) => void;
/**
* The range of status codes which considered successful, i.e. without error
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Target: Store = {
currency: '$',
labels: {
inStock: [
{
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const TopAchat: Store = {
currency: '€',
labels: {
inStock: {
container: 'input.cart.button[value="Ajouter au panier"]',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const ToysRUs: Store = {
currency: '$',
labels: {
inStock: {
container: 'li.b-product_status',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Unieuro: Store = {
currency: '€',
labels: {
captcha: {
container: 'body',
+1
View File
@@ -3,6 +3,7 @@ import {logger} from '../../logger';
import {parseCard} from './helpers/card';
export const Very: Store = {
currency: '£',
labels: {
inStock: {
container: '.stockMessaging .indicator',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const VsGamers: Store = {
currency: '€',
labels: {
inStock: {
container: '#vs-product-sheet-dashboard',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const WalmartCa: Store = {
currency: '$',
labels: {
inStock: {
container: '[data-automation="cta-button"]',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Walmart: Store = {
currency: '$',
labels: {
inStock: {
container:
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Wipoid: Store = {
currency: '$',
labels: {
inStock: {
container: '#add_to_cart',
+1
View File
@@ -1,6 +1,7 @@
import {Store} from './store';
export const Xbox: Store = {
currency: '$',
labels: {
outOfStock: {
container:
+1
View File
@@ -2,6 +2,7 @@ import {Store} from './store';
export const Zotac: Store = {
backoffStatusCodes: [403, 503],
currency: '$',
labels: {
inStock: {
container: '.add-to-cart-wrapper',