Skip to content

Commit

Permalink
feat(store): Add AO and BT (UK) (jef#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruippeixotog authored and erwinc1 committed Mar 31, 2021
1 parent 39dc1d0 commit d5656d6
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Used with the `STORES` variable.
| AMD | IT | `amd-it`|
| AMD | UK | `amd-uk`|
| AntOnline | US | `antonline`|
| AO | UK | `ao`|
| Argos | UK | `argos`|
| Argos | IE | `argos-ie`|
| Aria PC | UK | `aria`|
Expand All @@ -72,6 +73,7 @@ Used with the `STORES` variable.
| Box | UK | `box`|
| BPCTech | AU | `bpctech`|
| BPM-Power | IT | `bpm-power`|
| BT | UK | `bt`|
| CanadaComputers | CA | `canadacomputers` |
| Caseking | DE | `caseking`|
| CCL | UK | `ccl`|
Expand Down
26 changes: 26 additions & 0 deletions src/store/model/ao.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {Store} from './store';

export const AO: Store = {
currency: '£',
labels: {
outOfStock: {
container: 'section.centred-heading-copy strong',
text: ['currently unavailable'],
},
},
links: [
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://ao.com/brands/playstation',
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://ao.com/brands/playstation',
},
],
name: 'ao',
};
26 changes: 26 additions & 0 deletions src/store/model/bt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {Store} from './store';

export const BT: Store = {
currency: '£',
labels: {
outOfStock: {
container: '#cms-component-content-panel-200124986 p',
text: ["We've sold out of our current allocation of PlayStation 5"],
},
},
links: [
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://shop.bt.com/mini-sites/gaming',
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://shop.bt.com/mini-sites/gaming',
},
],
name: 'bt',
};
4 changes: 4 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {AmdDe} from './amd-de';
import {AmdIt} from './amd-it';
import {AmdUk} from './amd-uk';
import {AntOnline} from './antonline';
import {AO} from './ao';
import {Argos} from './argos';
import {ArgosIE} from './argos-ie';
import {Aria} from './aria';
Expand All @@ -36,6 +37,7 @@ import {BestBuyCa} from './bestbuy-ca';
import {Box} from './box';
import {Bpctech} from './bpctech';
import {BpmPower} from './bpmpower';
import {BT} from './bt';
import {CanadaComputers} from './canadacomputers';
import {Caseking} from './caseking';
import {Ccl} from './ccl';
Expand Down Expand Up @@ -168,6 +170,7 @@ export const storeList = new Map([
[AmdIt.name, AmdIt],
[AmdUk.name, AmdUk],
[AntOnline.name, AntOnline],
[AO.name, AO],
[Argos.name, Argos],
[ArgosIE.name, Argos],
[Aria.name, Aria],
Expand All @@ -182,6 +185,7 @@ export const storeList = new Map([
[Box.name, Box],
[Bpctech.name, Bpctech],
[BpmPower.name, BpmPower],
[BT.name, BT],
[CanadaComputers.name, CanadaComputers],
[Caseking.name, Caseking],
[Ccl.name, Ccl],
Expand Down

0 comments on commit d5656d6

Please sign in to comment.