-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(components, shared-data): fix components and shared-data npm de…
…ploy actions (#15180) Closes AUTH-331 Co-authored-by: Seth Foster <[email protected]>
- Loading branch information
Showing
12 changed files
with
152 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,178 +11,224 @@ export interface DiagramProps { | |
|
||
type Diagrams = Record<string, string[]> | ||
|
||
const FOOTPRINT_IMAGE_RELATIVE_PATH = './images/dimensions/[email protected]' | ||
const DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH = | ||
'./images/dimensions/[email protected]' | ||
const DIMENSIONS_HEIGHT_TIP_RACK_IMAGE_RELATIVE_PATH = | ||
'./images/dimensions/[email protected]' | ||
|
||
const DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_RELATIVE_PATH = | ||
'./images/dimensions/[email protected]' | ||
|
||
const DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_IRREGULAR_RELATIVE_PATH = | ||
'./images/dimensions/[email protected]' | ||
|
||
const HEIGHT_ALUM_BLOCK_TUBES_IMAGE_RELATIVE_PATH = | ||
'./images/dimensions/[email protected]' | ||
|
||
const HEIGHT_ALUM_BLOCK_PLATE_IMAGE_RELATIVE_PATH = | ||
'./images/dimensions/[email protected]' | ||
|
||
const OFFSET_RESEVOIR_IMAGE_RELATIVE_PATH = | ||
'./images/offset/[email protected]' | ||
|
||
const SPACING_RESEVOIR_IMAGE_RELATIVE_PATH = | ||
'./images/spacing/[email protected]' | ||
|
||
const SPACING_RESEVOIR_MULTI_ROW_IMAGE_RELATIVE_PATH = | ||
'./images/spacing/[email protected]' | ||
|
||
const OFFSET_WELL_CIRCULAR_IMAGE_RELATIVE_PATH = | ||
'./images/offset/[email protected]' | ||
|
||
const SPACING_WELL_CIRCULAR_IMAGE_RELATIVE_PATH = | ||
'./images/spacing/[email protected]' | ||
|
||
const OFFSET_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH = | ||
'./images/offset/[email protected]' | ||
|
||
const SPACING_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH = | ||
'./images/spacing/[email protected]' | ||
|
||
const DEPTH_LENGTH_TIP_RACK_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH = | ||
'./images/shape/[email protected]' | ||
|
||
const DEPTH_PLATE_FLAT_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH = | ||
'./images/shape/[email protected]' | ||
|
||
const DEPTH_PLATE_ROUND_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const DEPTH_PLATE_V_SHAPE_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const DEPTH_RESEVOIR_AND_TUBES_FLAT_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const DEPTH_RESEVOIR_AND_TUBES_ROUND_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const DEPTH_RESEVOIR_AND_TUBES_V_SHAPE_IMAGE_RELATIVE_PATH = | ||
'./images/depth/[email protected]' | ||
|
||
const FOOTPRINT_DIAGRAMS: Diagrams = { | ||
wellPlate: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL( | ||
'./images/dimensions/[email protected]', | ||
import.meta.url | ||
).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
tipRack: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(DIMENSIONS_HEIGHT_TIP_RACK_IMAGE_RELATIVE_PATH, import.meta.url) | ||
.href, | ||
], | ||
tubeRack: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL('./images/dimensions/[email protected]', import.meta.url) | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_RELATIVE_PATH, import.meta.url) | ||
.href, | ||
], | ||
reservoir: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL( | ||
'./images/dimensions/[email protected]', | ||
import.meta.url | ||
).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
irregular: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL( | ||
'./images/dimensions/[email protected]', | ||
DIMENSIONS_HEIGHT_TUBE_RACK_IMAGE_IRREGULAR_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
], | ||
adapter: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL( | ||
'./images/dimensions/[email protected]', | ||
import.meta.url | ||
).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(DIMENSIONS_HEIGHT_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
} | ||
|
||
const ALUM_BLOCK_FOOTPRINTS: Diagrams = { | ||
tubeRack: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL( | ||
'./images/dimensions/[email protected]', | ||
import.meta.url | ||
).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(HEIGHT_ALUM_BLOCK_TUBES_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
wellPlate: [ | ||
new URL('./images/dimensions/[email protected]', import.meta.url).href, | ||
new URL( | ||
'./images/dimensions/[email protected]', | ||
import.meta.url | ||
).href, | ||
new URL(FOOTPRINT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(HEIGHT_ALUM_BLOCK_PLATE_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
} | ||
|
||
const RESERVOIR_SPACING_DIAGRAMS: Diagrams = { | ||
singleRow: [ | ||
new URL('./images/offset/[email protected]', import.meta.url).href, | ||
new URL('./images/spacing/[email protected]', import.meta.url).href, | ||
new URL(OFFSET_RESEVOIR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SPACING_RESEVOIR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
multiRow: [ | ||
new URL('./images/offset/[email protected]', import.meta.url).href, | ||
new URL( | ||
'./images/spacing/[email protected]', | ||
import.meta.url | ||
).href, | ||
new URL(OFFSET_RESEVOIR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SPACING_RESEVOIR_MULTI_ROW_IMAGE_RELATIVE_PATH, import.meta.url) | ||
.href, | ||
], | ||
} | ||
|
||
const SPACING_DIAGRAMS: Diagrams = { | ||
circular: [ | ||
new URL('./images/offset/[email protected]', import.meta.url) | ||
.href, | ||
new URL('./images/spacing/[email protected]', import.meta.url) | ||
.href, | ||
new URL(OFFSET_WELL_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SPACING_WELL_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL('./images/offset/[email protected]', import.meta.url) | ||
.href, | ||
new URL('./images/spacing/[email protected]', import.meta.url) | ||
.href, | ||
new URL(OFFSET_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SPACING_WELL_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
} | ||
|
||
const TIPRACK_MEASUREMENT_DIAGRAMS: string[] = [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_LENGTH_TIP_RACK_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
] | ||
|
||
type NestedDiagrams = Record<string, Record<string, string[]>> | ||
|
||
const PLATE_MEASUREMENT_DIAGRAMS: NestedDiagrams = { | ||
flat: { | ||
circular: [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_PLATE_FLAT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_PLATE_FLAT_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
}, | ||
u: { | ||
circular: [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_PLATE_ROUND_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_PLATE_ROUND_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
}, | ||
v: { | ||
circular: [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_PLATE_V_SHAPE_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL('./images/depth/[email protected]', import.meta.url).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(DEPTH_PLATE_V_SHAPE_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
}, | ||
} | ||
const MEASUREMENT_DIAGRAMS: NestedDiagrams = { | ||
flat: { | ||
circular: [ | ||
new URL( | ||
'./images/depth/[email protected]', | ||
DEPTH_RESEVOIR_AND_TUBES_FLAT_IMAGE_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL( | ||
'./images/depth/[email protected]', | ||
DEPTH_RESEVOIR_AND_TUBES_FLAT_IMAGE_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
}, | ||
u: { | ||
circular: [ | ||
new URL( | ||
'./images/depth/[email protected]', | ||
DEPTH_RESEVOIR_AND_TUBES_ROUND_IMAGE_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL( | ||
'./images/depth/[email protected]', | ||
DEPTH_RESEVOIR_AND_TUBES_ROUND_IMAGE_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
}, | ||
v: { | ||
circular: [ | ||
new URL( | ||
'./images/depth/[email protected]', | ||
DEPTH_RESEVOIR_AND_TUBES_V_SHAPE_IMAGE_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(SHAPE_CIRCULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
rectangular: [ | ||
new URL( | ||
'./images/depth/[email protected]', | ||
DEPTH_RESEVOIR_AND_TUBES_V_SHAPE_IMAGE_RELATIVE_PATH, | ||
import.meta.url | ||
).href, | ||
new URL('./images/shape/[email protected]', import.meta.url).href, | ||
new URL(SHAPE_RECTANGULAR_IMAGE_RELATIVE_PATH, import.meta.url).href, | ||
], | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.