1
0
Fork 0

Remove redundant notifications about connectors and AD9910

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2023-09-19 11:35:22 +08:00
parent ce31357802
commit 5559a04403
2 changed files with 4 additions and 36 deletions

View File

@ -2243,15 +2243,6 @@ class Shop extends React.PureComponent {
} }
// check for number of recommended EEM connectors
['novo', 'urukul', 'koster'].map(_type => {
if (itemsCloned.find(elem => elem.type === _type)) {
rules[this.state.items[_type].rules.connectors.type] = {...this.state.items[_type].rules.connectors};
}
return _type;
});
if (itemsCloned.find(elem => elem.type === 'urukul')) { if (itemsCloned.find(elem => elem.type === 'urukul')) {
if (this.state.items['urukul'].rules.info) { if (this.state.items['urukul'].rules.info) {
rules[this.state.items['urukul'].rules.info.type] = {...this.state.items['urukul'].rules.info}; rules[this.state.items['urukul'].rules.info.type] = {...this.state.items['urukul'].rules.info};

View File

@ -555,7 +555,7 @@ const shop_data = {
{type: "Switch", args: {title: "Use 1 EEM", outvar: "mono_eem", tip: "Use one EEM port setup. RF switch and synchronization will be unavailable."}}, {type: "Switch", args: {title: "Use 1 EEM", outvar: "mono_eem", tip: "Use one EEM port setup. RF switch and synchronization will be unavailable."}},
{ {
"if": [ "if": [
{"var": "ad9912"}, {"or": [{"var": "ad9912"}, {"var": "mono_eem"}]},
[ [
{type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}}}, {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}}},
], ],
@ -590,18 +590,6 @@ const shop_data = {
slotOccupied: 2, slotOccupied: 2,
clockOccupied: 1, clockOccupied: 1,
rules: { rules: {
connectors: {
type: 'urukul',
icon: '/shop/icon-reminder.svg',
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: { resources: {
type: 'urukul', type: 'urukul',
icon: '/shop/icon-warning.svg', icon: '/shop/icon-warning.svg',
@ -635,7 +623,7 @@ const shop_data = {
nbrSlotMin: 0, nbrSlotMin: 0,
nbrSlotMax: 0, nbrSlotMax: 0,
nbrClockMax: 0, nbrClockMax: 0,
slotOccupied: 2, slotOccupied: 1,
clockOccupied: 1, clockOccupied: 1,
rules: { rules: {
resources: { resources: {
@ -883,9 +871,10 @@ const shop_data = {
'Supports SU-Servo laser intensity stabilization servo in conjunction with Urukul.' 'Supports SU-Servo laser intensity stabilization servo in conjunction with Urukul.'
], ],
options: [ options: [
{type: "Switch", args: {title: "1 EEM mode", outvar: "mono_eem"}},
{ {
"if": [ "if": [
{"var": "ext_data.has_dds"}, {"and": [{"var": "ext_data.has_dds"}, {"!": {"var": "mono_eem"}}]},
{type: "Switch", args: {title: "SUServo mode", outvar: "suservo"}}, {type: "Switch", args: {title: "SUServo mode", outvar: "suservo"}},
null null
] ]
@ -900,12 +889,6 @@ const shop_data = {
slotOccupied: 2, slotOccupied: 2,
clockOccupied: 0, clockOccupied: 0,
rules: { rules: {
connectors: {
type: 'novo',
icon: '/shop/icon-reminder.svg',
name: 'Sampler',
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.',
},
resources: { resources: {
type: 'novo', type: 'novo',
icon: '/shop/icon-warning.svg', icon: '/shop/icon-warning.svg',
@ -940,12 +923,6 @@ const shop_data = {
slotOccupied: 2, slotOccupied: 2,
clockOccupied: 0, clockOccupied: 0,
rules: { rules: {
connectors: {
type: 'koster',
icon: '/shop/icon-reminder.svg',
name: 'Grabber',
message: 'This configuration uses 2 EEM connectors. If you prefer to use 1 or 3 EEM connectors, please inform us by leaving an additional note.',
},
resources: { resources: {
type: 'koster', type: 'koster',
icon: '/shop/icon-warning.svg', icon: '/shop/icon-warning.svg',