feat(issue12): Adds info for Urukul

This commit is contained in:
sovanna 2020-01-31 13:51:25 +01:00
parent 80b074102a
commit 1f81e1ed0e
3 changed files with 23 additions and 1 deletions

View File

@ -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
View File

@ -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') {

View File

@ -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',