Skip to content

Commit

Permalink
feat(store): add topachat (#776)
Browse files Browse the repository at this point in the history
Co-authored-by: Oguzhan YAGCI <oyagci@student.42.fr>
  • Loading branch information
jef and oyagci authored Nov 12, 2020
1 parent 02d7c47 commit c38bebb
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ environment variables are **optional**._
| Very (UK) | `very`|
| Walmart | `walmart`|
| Zotac | `zotac`|
| TopAchat | `topachat`|

<details>
<summary>Micro Center stores</summary>
Expand Down Expand Up @@ -254,6 +255,8 @@ environment variables are **optional**._
| `pny` | `dual fan`, `xlr8 revel`, `xlr8 uprising` |
| `sony` | `ps5 console`, `ps5 digital` |
| `zotac` | `amp holo`, `amp extreme holo`, `trinity`, `trinity oc`, `twin edge`, `twin edge oc` |
| kfa2 | sg |
| gainward | phoenix, phoenix gs |

</details>

Expand Down
4 changes: 3 additions & 1 deletion src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import {Saturn} from './saturn';
import {Scan} from './scan';
import {Store} from './store';
import {Target} from './target';
import {TopAchat} from './topachat';
import {Very} from './very';
import {Walmart} from './walmart';
import {Zotac} from './zotac';
Expand Down Expand Up @@ -118,7 +119,8 @@ export const storeList = new Map([
[Target.name, Target],
[Very.name, Very],
[Walmart.name, Walmart],
[Zotac.name, Zotac]
[Zotac.name, Zotac],
[TopAchat.name, TopAchat]
]);

const brands = new Set();
Expand Down
1 change: 1 addition & 0 deletions src/store/model/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type Model =
| 'phoenix'
| 'phoenix gs'
| 'phoenix gs oc'
| 'sg'
| 'sg oc'
| 'strix'
| 'strix oc'
Expand Down
293 changes: 293 additions & 0 deletions src/store/model/topachat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
import {Store} from './store';

export const TopAchat: Store = {
labels: {
inStock: {
container: '.cart.button',
text: ['']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in11019393.html'
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005183.html'
},
{
brand: 'zotac',
model: 'trinity oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005509.html'
},
{
brand: 'zotac',
model: 'trinity',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005184.html'
},
{
brand: 'asus',
model: 'strix oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005320.html'
},
{
brand: 'asus',
model: 'tuf',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005070.html'
},
{
brand: 'asus',
model: 'tuf oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005289.html'
},
{
brand: 'asus',
model: 'strix oc',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005319.html'
},
{
brand: 'asus',
model: 'tuf',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005071.html'
},
{
brand: 'asus',
model: 'tuf oc',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005199.html'
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005262.html'
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005263.html'
},
{
brand: 'pny',
model: 'xlr8 revel',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005223.html'
},
{
brand: 'pny',
model: 'xlr8 revel',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005222.html'
},
{
brand: 'pny',
model: 'xlr8 revel',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005225.html'
},
{
brand: 'pny',
model: 'xlr8 revel',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005224.html'
},
{
brand: 'evga',
model: 'ftw3',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005291.html'
},
{
brand: 'evga',
model: 'ftw3 ultra',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005292.html'
},
{
brand: 'evga',
model: 'xc3 black',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005289.html'
},
{
brand: 'evga',
model: 'xc3',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005290.html'
},
{
brand: 'evga',
model: 'xc3 ultra',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005334.html'
},
{
brand: 'evga',
model: 'ftw3',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005296.html'
},
{
brand: 'evga',
model: 'ftw3 ultra',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005297.html'
},
{
brand: 'evga',
model: 'xc3',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005293.html'
},
{
brand: 'evga',
model: 'xc3',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005294.html'
},
{
brand: 'evga',
model: 'xc3 ultra',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005295.html'
},
{
brand: 'gainward',
model: 'phoenix',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005267.html'
},
{
brand: 'gainward',
model: 'phoenix gs',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005268.html'
},
{
brand: 'gainward',
model: 'phoenix',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005269.html'
},
{
brand: 'gainward',
model: 'phoenix gs',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005270.html'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005228.html'
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005227.html'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005226.html'
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005229.html'
},
{
brand: 'palit',
model: 'gaming pro',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005271.html'
},
{
brand: 'palit',
model: 'gaming pro oc',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005272.html'
},
{
brand: 'palit',
model: 'gaming pro',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005273.html'
},
{
brand: 'palit',
model: 'gaming pro oc',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005266.html'
},
{
brand: 'kfa2',
model: 'sg',
series: '3080',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005256.html'
},
{
brand: 'kfa2',
model: 'sg',
series: '3090',
url:
'https://www.topachat.com/pages/detail2_cat_est_micro_puis_rubrique_est_wgfx_pcie_puis_ref_est_in20005257.html'
}
],
name: 'topachat'
};

0 comments on commit c38bebb

Please sign in to comment.