updated test config maps
@@ -12,10 +12,6 @@ TEST_CONFIG_DEFINITION = {
|
|||||||
"TC6": {"T1B": "STA63", "T1C": "STA56", "T1D": "STA4"},
|
"TC6": {"T1B": "STA63", "T1C": "STA56", "T1D": "STA4"},
|
||||||
"TC7": {"T1F": "STA4", "T2A": "STA63", "T3E": "STA56"},
|
"TC7": {"T1F": "STA4", "T2A": "STA63", "T3E": "STA56"},
|
||||||
"TC8": {"T1F": "STA63", "T2A": "STA56", "T3E": "STA4"},
|
"TC8": {"T1F": "STA63", "T2A": "STA56", "T3E": "STA4"},
|
||||||
"TC9": {"T1F": "STA63", "T2A": "STA64", "T3E": "STA4"},
|
|
||||||
"TC10": {"T1F": "STA4", "T3E": "STA56", "T1K2A": "STA63"},
|
|
||||||
"TC11": {"T1F": "STA56", "T3E": "STA63", "T1K2A": "STA4"},
|
|
||||||
"TC12": {"T1F": "STA56", "T3E": "STA4", "T1K2A": "STA63"},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
|
After Width: | Height: | Size: 622 KiB |
|
After Width: | Height: | Size: 623 KiB |
|
After Width: | Height: | Size: 616 KiB |
|
After Width: | Height: | Size: 605 KiB |
|
After Width: | Height: | Size: 606 KiB |
|
After Width: | Height: | Size: 606 KiB |
|
After Width: | Height: | Size: 606 KiB |
|
After Width: | Height: | Size: 607 KiB |
|
Before Width: | Height: | Size: 397 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 403 KiB |
|
Before Width: | Height: | Size: 423 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 402 KiB |
|
Before Width: | Height: | Size: 423 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 402 KiB |
|
Before Width: | Height: | Size: 419 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 402 KiB |
|
Before Width: | Height: | Size: 416 KiB |
|
Before Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 402 KiB |
|
Before Width: | Height: | Size: 416 KiB |
|
Before Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 402 KiB |
|
Before Width: | Height: | Size: 416 KiB |
|
Before Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 397 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 398 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 212 KiB |
@@ -2,7 +2,7 @@ import { useEffect, useMemo, useState } from 'react'
|
|||||||
import { getDeviceAccentClass } from './TestCard'
|
import { getDeviceAccentClass } from './TestCard'
|
||||||
import { api } from '../api'
|
import { api } from '../api'
|
||||||
|
|
||||||
const CONFIG_MAP_IMAGE_MODULES = import.meta.glob('../assets/TC*_map/*.png', {
|
const CONFIG_MAP_IMAGE_MODULES = import.meta.glob('../assets/TC maps/*.png', {
|
||||||
eager: true,
|
eager: true,
|
||||||
import: 'default',
|
import: 'default',
|
||||||
})
|
})
|
||||||
@@ -100,10 +100,9 @@ function formatConfigEntries(config) {
|
|||||||
function getConfigMapImages(configKey) {
|
function getConfigMapImages(configKey) {
|
||||||
if (!configKey) return []
|
if (!configKey) return []
|
||||||
|
|
||||||
const folderToken = `/${configKey.toUpperCase()}_map/`
|
const fileName = `${configKey.toUpperCase()}.png`
|
||||||
return Object.entries(CONFIG_MAP_IMAGE_MODULES)
|
return Object.entries(CONFIG_MAP_IMAGE_MODULES)
|
||||||
.filter(([path]) => path.includes(folderToken))
|
.filter(([path]) => path.endsWith(`/TC maps/${fileName}`))
|
||||||
.sort(([pathA], [pathB]) => pathA.localeCompare(pathB, undefined, { numeric: true }))
|
|
||||||
.map(([, assetUrl]) => assetUrl)
|
.map(([, assetUrl]) => assetUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||