Compare commits
34 Commits
d3a5ee8a3d
...
5b5a2cf230
Author | SHA1 | Date |
---|---|---|
Egor Savkin | 5b5a2cf230 | |
Egor Savkin | a207d4662f | |
Egor Savkin | 9f5fb7606e | |
Egor Savkin | b412fae177 | |
Egor Savkin | b4989500ec | |
Egor Savkin | 1244ac1775 | |
Egor Savkin | 0762572956 | |
Egor Savkin | a8e3bae08e | |
Egor Savkin | 11aac2323d | |
Egor Savkin | a705feebc2 | |
Egor Savkin | 718a4509f4 | |
Egor Savkin | 1b1736ea15 | |
Egor Savkin | 264e583d82 | |
Egor Savkin | 3a6dfef9b7 | |
Egor Savkin | c2cf323cf4 | |
Egor Savkin | 4b5ea7c1db | |
Egor Savkin | 832a538c22 | |
Egor Savkin | 3980ece5b5 | |
Egor Savkin | 4e6447c3d2 | |
Egor Savkin | a4e7fce0f4 | |
Egor Savkin | 9b650b4a2c | |
Egor Savkin | 3454a1b4cd | |
Egor Savkin | 22372116ad | |
Egor Savkin | a6a6d758e9 | |
Egor Savkin | 712d8664f1 | |
Egor Savkin | bd7e39927d | |
Egor Savkin | b2250680c9 | |
Egor Savkin | 2eb4bc99dd | |
Egor Savkin | 759e41681f | |
Egor Savkin | 4c64879fbc | |
Egor Savkin | 6e54da2c71 | |
Egor Savkin | 47d9af400d | |
Egor Savkin | 7b394c8203 | |
Egor Savkin | ae23c18b0c |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 38 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 34 KiB |
File diff suppressed because one or more lines are too long
|
@ -86,12 +86,10 @@ const copy = (
|
|||
) => {
|
||||
const destClone = Array.from(destination.items);
|
||||
|
||||
destClone.splice(droppableDestination.index, 0, ...draggableSource.map((dragged_item, _) => {
|
||||
return {
|
||||
...model[dragged_item],
|
||||
id: uuidv4(),
|
||||
}
|
||||
}));
|
||||
destClone.splice(droppableDestination.index, 0, {
|
||||
...model[draggableSource],
|
||||
id: uuidv4(),
|
||||
});
|
||||
|
||||
return destClone;
|
||||
};
|
||||
|
@ -1681,12 +1679,10 @@ class Shop extends React.PureComponent {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
// index 0 is a Kasli, we place it as a default conf on the crate.
|
||||
const source = {
|
||||
droppableId: 'backlog',
|
||||
indexes: [
|
||||
itemsUnfoldedList.findIndex(element => element === "eem_pwr_mod"),
|
||||
itemsUnfoldedList.findIndex(element => element === "kasli")
|
||||
],
|
||||
index: 0,
|
||||
};
|
||||
const destination = {
|
||||
droppableId: 'cart',
|
||||
|
@ -2010,14 +2006,7 @@ class Shop extends React.PureComponent {
|
|||
source,
|
||||
destination,
|
||||
} = result;
|
||||
let dragged_items = [];
|
||||
if (source.indexes) {
|
||||
source.indexes.forEach((card_index, _) => {
|
||||
dragged_items.push(itemsUnfoldedList[card_index]);
|
||||
})
|
||||
} else if (source.index) {
|
||||
dragged_items.push(itemsUnfoldedList[source.index]);
|
||||
}
|
||||
let dragged_item = itemsUnfoldedList[source.index];
|
||||
|
||||
|
||||
if (!destination) {
|
||||
|
@ -2060,7 +2049,7 @@ class Shop extends React.PureComponent {
|
|||
this.state.items,
|
||||
this.state.columns[source.droppableId],
|
||||
this.state.columns[destination.droppableId],
|
||||
dragged_items,
|
||||
dragged_item,
|
||||
destination,
|
||||
),
|
||||
},
|
||||
|
|
|
@ -1116,30 +1116,6 @@ const shop_data = {
|
|||
slotOccupied: 1,
|
||||
clockOccupied: 0
|
||||
},
|
||||
'shuttler': {
|
||||
id: 'shuttler',
|
||||
name: 'DAC',
|
||||
name_number: '5716',
|
||||
name_codename: 'Shuttler',
|
||||
price: 8500,
|
||||
image: '/shop/graphic-03_Shuttler.svg',
|
||||
specs: [
|
||||
'16-ch, 125 MSPS DAC in FMC form factor, with remote analog front end board.',
|
||||
'High dc resolution (~18 bits) for trap electrode bias.',
|
||||
'~15 MHz analog bandwidth.',
|
||||
'AD9117 DACs (14 bits @ 125 MSPS, <1 LSB DNL).',
|
||||
'Differential analog output (+/-5 V differential) via COTS connector with shielded impedance-matched pairs (mini-SAS HD).',
|
||||
'Included remote analog front-end (AFE) board converts differential signals on mini-SAS HD cables to single-ended, with additional gain/filtering as desired.',
|
||||
],
|
||||
size: 'big',
|
||||
type: null,
|
||||
hp: 8,
|
||||
nbrSlotMin: 0,
|
||||
nbrSlotMax: 0,
|
||||
nbrClockMax: 0,
|
||||
slotOccupied: 0,
|
||||
clockOccupied: 0,
|
||||
},
|
||||
'pounder': {
|
||||
id: 'pounder',
|
||||
name: 'PDH lock generator',
|
||||
|
@ -1163,34 +1139,7 @@ const shop_data = {
|
|||
nbrClockMax: 0,
|
||||
slotOccupied: 1,
|
||||
clockOccupied: 1,
|
||||
},
|
||||
'eem_pwr_mod': {
|
||||
id: 'eem_pwr_mod',
|
||||
name: 'EEM AC Power Module',
|
||||
name_number: '1106',
|
||||
name_codename: '',
|
||||
price: 750,
|
||||
image: '/shop/graphic-03_eem_pwr_mod.svg',
|
||||
specs: [
|
||||
"EEM AC power module.",
|
||||
"400W with forced cooling (25CFM), 200W with free air convection.",
|
||||
"Universal input.",
|
||||
"IEC inlet on front panel.",
|
||||
"EMC filter.",
|
||||
"LED current indicator.",
|
||||
"6 rear side outputs.",
|
||||
"Mains circuit protected with steel cover.",
|
||||
"Optional - external power brick will be shipped free of charge if removed."
|
||||
],
|
||||
size: 'big',
|
||||
type: null,
|
||||
hp: 8,
|
||||
nbrSlotMin: 0,
|
||||
nbrSlotMax: 0,
|
||||
nbrClockMax: 0,
|
||||
slotOccupied: 0,
|
||||
clockOccupied: 0,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
columns: {
|
||||
|
@ -1225,8 +1174,7 @@ const shop_data = {
|
|||
itemIds: [
|
||||
'zotino',
|
||||
'fastino',
|
||||
'novo',
|
||||
'shuttler']},
|
||||
'novo']},
|
||||
{ name: 'Adapters',
|
||||
itemIds: [
|
||||
'idc-bnc-adapter',
|
||||
|
@ -1239,9 +1187,7 @@ const shop_data = {
|
|||
'koster',
|
||||
'stabilizer',
|
||||
'pounder',
|
||||
'thermostat-eem',
|
||||
'eem_pwr_mod',
|
||||
]}
|
||||
'thermostat-eem']}
|
||||
],
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue