feat(issue12): Adds info for Urukul

pull/49/head
sovanna 2020-01-31 13:51:25 +01:00
bovenliggende 80b074102a
commit 1f81e1ed0e
3 gewijzigde bestanden met toevoegingen van 23 en 1 verwijderingen

Bestand weergeven

@ -1654,6 +1654,13 @@ class Shop extends React.PureComponent {
});
if (itemsCloned.find(elem => elem.type === 'urukul')) {
if (this.state.items['urukul'].rules.info) {
rules[this.state.items['urukul'].rules.info.type] = {...this.state.items['urukul'].rules.info};
}
}
// check if IDC-BNC is correctly positionned (after Zotino or HD68)
const idxIDCBNC = itemsCloned.reduce((prev, next, i) => {
if (next.type === 'idc-bnc') {

11
static/js/shop.min.js vendored
Bestand weergeven

@ -1701,7 +1701,16 @@ function (_React$PureComponent12) {
}
return _type;
}); // check if IDC-BNC is correctly positionned (after Zotino or HD68)
});
if (itemsCloned.find(function (elem) {
return elem.type === 'urukul';
})) {
if (this.state.items['urukul'].rules.info) {
rules[this.state.items['urukul'].rules.info.type] = _objectSpread({}, this.state.items['urukul'].rules.info);
}
} // check if IDC-BNC is correctly positionned (after Zotino or HD68)
var idxIDCBNC = itemsCloned.reduce(function (prev, next, i) {
if (next.type === 'idc-bnc') {

Bestand weergeven

@ -259,6 +259,12 @@ const shop_data = {
name: 'Urukul',
message: 'This configuration uses 2 EEM connectors as it is recommended. If you prefer to use 1 EEM connector, please inform us by leaving an additional note.',
},
info: {
type: 'urukul-info',
icon: '/shop/icon-reminder.svg',
name: 'Urukul',
message: 'The default chip is AD9910, which supports more features. If you need the higher frequency resolution of the AD9912, leave us a note.',
},
resources: {
type: 'urukul',
icon: '/shop/icon-warning.svg',