readd device num to serial page (#727)
This commit is contained in:
@@ -14,14 +14,14 @@
|
|||||||
|
|
||||||
"homepage": "https://meshtastic.org",
|
"homepage": "https://meshtastic.org",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bunx --bun vite build",
|
"build": "vite build",
|
||||||
"build:analyze": "BUNDLE_ANALYZE=true bun run build",
|
"build:analyze": "BUNDLE_ANALYZE=true bun run build",
|
||||||
"check": "biome check src/",
|
"check": "biome check src/",
|
||||||
"check:fix": "biome check --write src/",
|
"check:fix": "biome check --write src/",
|
||||||
"dev": "bunx --bun vite",
|
"dev": "vite",
|
||||||
"test": "bunx --bun vitest",
|
"test": "vitest",
|
||||||
"ts:check": "bun run tsc --noEmit",
|
"ts:check": "bun run tsc --noEmit",
|
||||||
"preview": "bunx --bun vite preview",
|
"preview": "vite preview",
|
||||||
"generate:routes": "bun @tanstack/router-cli generate --outDir src/ routes --rootRoutePath /",
|
"generate:routes": "bun @tanstack/router-cli generate --outDir src/ routes --rootRoutePath /",
|
||||||
"package": "gzipper c -i html,js,css,png,ico,svg,json,webmanifest,txt dist dist/output && tar -cvf dist/build.tar -C ./dist/output/ ."
|
"package": "gzipper c -i html,js,css,png,ico,svg,json,webmanifest,txt dist dist/output && tar -cvf dist/build.tar -C ./dist/output/ ."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export const Serial = ({ closeDialog }: TabElementProps) => {
|
|||||||
disabled={connectionInProgress}
|
disabled={connectionInProgress}
|
||||||
>
|
>
|
||||||
<div className="flex h-48 flex-col gap-2 overflow-y-auto">
|
<div className="flex h-48 flex-col gap-2 overflow-y-auto">
|
||||||
{serialPorts.map((port) => {
|
{serialPorts.map((port, idx) => {
|
||||||
const { usbProductId, usbVendorId } = port.getInfo();
|
const { usbProductId, usbVendorId } = port.getInfo();
|
||||||
const vendor = usbVendorId ?? t("unknown.shortName");
|
const vendor = usbVendorId ?? t("unknown.shortName");
|
||||||
const product = usbProductId ?? t("unknown.shortName");
|
const product = usbProductId ?? t("unknown.shortName");
|
||||||
@@ -70,6 +70,7 @@ export const Serial = ({ closeDialog }: TabElementProps) => {
|
|||||||
{t("newDeviceDialog.serialConnection.deviceIdentifier", {
|
{t("newDeviceDialog.serialConnection.deviceIdentifier", {
|
||||||
vendorId: vendor,
|
vendorId: vendor,
|
||||||
productId: product,
|
productId: product,
|
||||||
|
index: idx,
|
||||||
})}
|
})}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user