Browse Source

feat(issue12): Adds info for Urukul

master
sovanna 1 month ago
parent
commit
1f81e1ed0e
3 changed files with 23 additions and 1 deletions
  1. 7
    0
      static/js/shop.jsx
  2. 10
    1
      static/js/shop.min.js
  3. 6
    0
      static/js/shop_data.js

+ 7
- 0
static/js/shop.jsx 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') {

+ 10
- 1
static/js/shop.min.js 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') {

+ 6
- 0
static/js/shop_data.js 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',

Loading…
Cancel
Save