From a7be09d56eda441cb1625ebb642cccab63d71f31 Mon Sep 17 00:00:00 2001 From: MrToshio Date: Tue, 2 Mar 2021 18:50:01 +0100 Subject: [PATCH] feat(store): add ldlc (FR) (#2037) Co-authored-by: Jef LeCompte --- docs/reference/filter.md | 1 + src/store/model/index.ts | 2 + src/store/model/ldlc.ts | 250 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 253 insertions(+) create mode 100644 src/store/model/ldlc.ts diff --git a/docs/reference/filter.md b/docs/reference/filter.md index 4c3bfa0953..096abc5736 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -117,6 +117,7 @@ Used with the `STORES` variable. | Kabum | BR | `kabum`| | Komplett | NO | `komplett-no`| | Landmark Computers | AU | `landmark-computers`| +| Ldlc | FR | `ldlc`| | Mediamarkt | DE | `mediamarkt`| | Medimax | DE | `medimax`| | Megekko | NL | `megekko`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 0a31f81d19..3a05e1d476 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -1,5 +1,6 @@ import {config, defaultStoreData} from '../../config'; import {AComPC} from './acompc'; +import {Ldlc} from './ldlc'; import {Adorama} from './adorama'; import {Akinformatica} from './akinformatica'; import {Allneeds} from './allneeds'; @@ -229,6 +230,7 @@ export const storeList = new Map([ [Mediamarkt.name, Mediamarkt], [Medimax.name, Medimax], [Megekko.name, Megekko], + [Ldlc.name, Ldlc], [MemoryExpress.name, MemoryExpress], [MicroCenter.name, MicroCenter], [Mindfactory.name, Mindfactory], diff --git a/src/store/model/ldlc.ts b/src/store/model/ldlc.ts new file mode 100644 index 0000000000..73279bd547 --- /dev/null +++ b/src/store/model/ldlc.ts @@ -0,0 +1,250 @@ +import {Store} from './store'; + +export const Ldlc: Store = { + currency: '€', + labels: { + inStock: { + container: '.stock', + text: ['stock'], + }, + maxPrice: { + container: '.price .price', + euroFormat: true, + }, + outOfStock: { + container: '.stock', + text: ['rupture'], + }, + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.ldlc.com/fr-be/fiche/PB00317660.html', + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369303.html', + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369299.html', + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369299.html', + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369299.html', + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369072.html', + }, + { + brand: 'gigabyte', + model: 'aorus', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00376208.html', + }, + { + brand: 'inno3d', + model: 'twin x2', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368690.html', + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369094.html', + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369150.html', + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369298.html', + }, + { + brand: 'palit', + model: 'gamerock', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00386334.html', + }, + { + brand: 'kfa2', + model: 'sg', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00396037.html', + }, + { + brand: 'zotac', + model: 'amp holo', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00375625.html', + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368844.html', + }, + { + brand: 'msi', + model: 'ventus 2x oc', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368506.html', + }, + { + brand: 'gigabyte', + model: 'aorus xtreme', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00390466.html', + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368789.html', + }, + { + brand: 'gigabyte', + model: 'aorus xtreme waterforce', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00398370.html', + }, + { + brand: 'msi', + model: 'suprim x', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00391682.html', + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00376207.html', + }, + { + brand: 'inno3d', + model: 'ichill x3', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368691.html', + }, + { + brand: 'gainward', + model: 'phoenix gs', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369158.html', + }, + { + brand: 'evga', + model: 'xc3', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369268.html', + }, + { + brand: 'inno3d', + model: 'ichill frostbite', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00391624.html', + }, + { + brand: 'evga', + model: 'ftw3 ultra hybrid', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00398046.html', + }, + { + brand: 'kfa2', + model: 'sg', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368931.html', + }, + { + brand: 'palit', + model: 'gaming pro', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00375448.html', + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00375431.html', + }, + { + brand: 'evga', + model: 'ftw3', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00369265.html', + }, + { + brand: 'gainward', + model: 'phantom gs', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00390727.html', + }, + { + brand: 'evga', + model: 'xc3 ultra hybrid', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00398045.html', + }, + { + brand: 'inno3d', + model: 'ichill x4', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368692.html', + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00368579.html', + }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00375644.html', + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00385535.html', + }, + { + brand: 'palit', + model: 'gamerock', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00386332.html', + }, + { + brand: 'gigabyte', + model: 'aorus xtreme waterforce wb', + series: '3080', + url: 'https://www.ldlc.com/fr-be/fiche/PB00398373.html', + }, + ], + name: 'ldlc', +};