pc setup: 2017 build (GTX 1070, i7-6700K, B150, HyperX Fury, 212 EVO, 850 EVO + WD Blue, SPEC-01, 650 G1, SickleFlow, AS5) images, Ergotron HX arm images; add-ons sort after their base item in a slot card; SEO says since 2017
All checks were successful
Deploy production / deploy (push) Successful in 1m6s
All checks were successful
Deploy production / deploy (push) Successful in 1m6s
This commit is contained in:
@@ -215,6 +215,9 @@ export function slotCards(parts: Part[], section: string, at: string): SlotCard[
|
||||
const i = SLOT_ORDER.indexOf(s);
|
||||
return i < 0 ? 999 : i;
|
||||
};
|
||||
// Add-ons (e.g. a monitor-arm tilt pivot) sit after the item they extend.
|
||||
const addOn = (p: Part) => /\badd-on\b/i.test(p.model);
|
||||
for (const c of cards.values()) c.parts.sort((a, b) => Number(addOn(a)) - Number(addOn(b)));
|
||||
return [...cards.values()].sort((a, b) => rank(a.slot) - rank(b.slot));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export const load: PageServerLoad = async (event) => {
|
||||
seo: {
|
||||
title: 'PC setup',
|
||||
description:
|
||||
'My PC, desk and devices on one screen, with a time slider that shows the setup on any day since 2021, plus the planned next build and my mouse sensitivities.'
|
||||
'My PC, desk and devices on one screen, with a time slider that shows the setup on any day since 2017, plus the planned next build and my mouse sensitivities.'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user