Compare commits
38 Commits
5b5a2cf230
...
d3a5ee8a3d
Author | SHA1 | Date |
---|---|---|
Egor Savkin | d3a5ee8a3d | |
Egor Savkin | 7e7905e522 | |
Egor Savkin | 67a6e772f3 | |
Egor Savkin | 893ca829e1 | |
Egor Savkin | 9da249aa95 | |
Egor Savkin | 44bed4a4e1 | |
Egor Savkin | 0126a663ea | |
Egor Savkin | 2fee470e11 | |
Egor Savkin | 4c584efdf3 | |
Egor Savkin | 631e1dd6b1 | |
Egor Savkin | 248fd9782e | |
Egor Savkin | eddf408f26 | |
Egor Savkin | 9cdf563d26 | |
Egor Savkin | 4838f50b60 | |
Egor Savkin | 3d8f82fcd6 | |
Egor Savkin | 65f896f517 | |
Egor Savkin | ba054ee2a2 | |
Egor Savkin | c95ce76b00 | |
Egor Savkin | c57a27f762 | |
Egor Savkin | 55492c5090 | |
Egor Savkin | a6994416d0 | |
Egor Savkin | a92ec4289c | |
Egor Savkin | fa406b7d49 | |
Egor Savkin | 8483d101d6 | |
Egor Savkin | 45c5b388aa | |
Egor Savkin | e5c3c0bada | |
Egor Savkin | ef64c3ce6c | |
Egor Savkin | adac15f803 | |
Egor Savkin | 019a6f384b | |
Egor Savkin | 02f8e916a7 | |
Egor Savkin | 577fc6520c | |
Egor Savkin | 0e556c270a | |
Egor Savkin | a6f131e781 | |
Egor Savkin | 2eb2c37178 | |
Egor Savkin | da74bb1d8d | |
Sebastien Bourdeauducq | 320665c3bd | |
Sebastien Bourdeauducq | a6faaecb8b | |
Egor Savkin | 393fc8e3c9 |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 38 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 34 KiB |
File diff suppressed because one or more lines are too long
|
@ -86,10 +86,12 @@ const copy = (
|
||||||
) => {
|
) => {
|
||||||
const destClone = Array.from(destination.items);
|
const destClone = Array.from(destination.items);
|
||||||
|
|
||||||
destClone.splice(droppableDestination.index, 0, {
|
destClone.splice(droppableDestination.index, 0, ...draggableSource.map((dragged_item, _) => {
|
||||||
...model[draggableSource],
|
return {
|
||||||
id: uuidv4(),
|
...model[dragged_item],
|
||||||
});
|
id: uuidv4(),
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
return destClone;
|
return destClone;
|
||||||
};
|
};
|
||||||
|
@ -1679,10 +1681,12 @@ class Shop extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
// index 0 is a Kasli, we place it as a default conf on the crate.
|
|
||||||
const source = {
|
const source = {
|
||||||
droppableId: 'backlog',
|
droppableId: 'backlog',
|
||||||
index: 0,
|
indexes: [
|
||||||
|
itemsUnfoldedList.findIndex(element => element === "eem_pwr_mod"),
|
||||||
|
itemsUnfoldedList.findIndex(element => element === "kasli")
|
||||||
|
],
|
||||||
};
|
};
|
||||||
const destination = {
|
const destination = {
|
||||||
droppableId: 'cart',
|
droppableId: 'cart',
|
||||||
|
@ -2006,7 +2010,14 @@ class Shop extends React.PureComponent {
|
||||||
source,
|
source,
|
||||||
destination,
|
destination,
|
||||||
} = result;
|
} = result;
|
||||||
let dragged_item = itemsUnfoldedList[source.index];
|
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]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!destination) {
|
if (!destination) {
|
||||||
|
@ -2049,7 +2060,7 @@ class Shop extends React.PureComponent {
|
||||||
this.state.items,
|
this.state.items,
|
||||||
this.state.columns[source.droppableId],
|
this.state.columns[source.droppableId],
|
||||||
this.state.columns[destination.droppableId],
|
this.state.columns[destination.droppableId],
|
||||||
dragged_item,
|
dragged_items,
|
||||||
destination,
|
destination,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
|
@ -1116,6 +1116,30 @@ const shop_data = {
|
||||||
slotOccupied: 1,
|
slotOccupied: 1,
|
||||||
clockOccupied: 0
|
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': {
|
'pounder': {
|
||||||
id: 'pounder',
|
id: 'pounder',
|
||||||
name: 'PDH lock generator',
|
name: 'PDH lock generator',
|
||||||
|
@ -1139,7 +1163,34 @@ const shop_data = {
|
||||||
nbrClockMax: 0,
|
nbrClockMax: 0,
|
||||||
slotOccupied: 1,
|
slotOccupied: 1,
|
||||||
clockOccupied: 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: {
|
columns: {
|
||||||
|
@ -1174,7 +1225,8 @@ const shop_data = {
|
||||||
itemIds: [
|
itemIds: [
|
||||||
'zotino',
|
'zotino',
|
||||||
'fastino',
|
'fastino',
|
||||||
'novo']},
|
'novo',
|
||||||
|
'shuttler']},
|
||||||
{ name: 'Adapters',
|
{ name: 'Adapters',
|
||||||
itemIds: [
|
itemIds: [
|
||||||
'idc-bnc-adapter',
|
'idc-bnc-adapter',
|
||||||
|
@ -1187,7 +1239,9 @@ const shop_data = {
|
||||||
'koster',
|
'koster',
|
||||||
'stabilizer',
|
'stabilizer',
|
||||||
'pounder',
|
'pounder',
|
||||||
'thermostat-eem']}
|
'thermostat-eem',
|
||||||
|
'eem_pwr_mod',
|
||||||
|
]}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue