diff --git a/docs/docs/develop/daemon/index.mdx b/docs/docs/develop/daemon/index.mdx index e14bfa0b..71a1b273 100644 --- a/docs/docs/develop/daemon/index.mdx +++ b/docs/docs/develop/daemon/index.mdx @@ -42,9 +42,9 @@ class WsMsg: ```json { - "event-type" : ..., + "eventType" : ..., "payload" : ..., - "event-id" : ... + "eventId" : ... } ``` @@ -73,12 +73,12 @@ for instance, frontend connected to server. frontend should report connection ty ```json { - "event-type": "handshake", + "eventType": "handshake", "name": "project name", "payload": { "who": "web" }, - "event-id": X + "eventId": X } ``` @@ -90,12 +90,12 @@ cli sents log(s) via websocket, server will receives and broadcast this message ```json { - "event-type": "log", + "eventType": "log", "name": "project name", "payload": { "log" : {...json representing log data...} }, - "event-id": -1 + "eventId": -1 } ``` @@ -107,12 +107,12 @@ frontend send action request to server, and server will forwards the message to ```json { - "event-type" : "action", + "eventType" : "action", "name": "project name", "payload" : { "action" : {...json representing action trigger...} }, - "event-id" : x + "eventId" : x } ``` @@ -124,12 +124,12 @@ cli execute action query(s) from frontend, and gives response by sending ack: ```json { - "event-type" : "ack", + "eventType" : "ack", "name": "project name", "payload" : { "action" : {...json representing action result...} }, - "event-id" : x + "eventId" : x } ``` diff --git a/frontend/src/components/dashboard/project/runSelect.tsx b/frontend/src/components/dashboard/project/runSelect.tsx index ee91d4aa..dde50f57 100644 --- a/frontend/src/components/dashboard/project/runSelect.tsx +++ b/frontend/src/components/dashboard/project/runSelect.tsx @@ -48,12 +48,12 @@ export const RunSelect = memo((props: any) => { <> {isOnlineRun ? ( Online - ) : runId != items[0].runid ? ( + ) : runId != items[0].runId ? ( History ) : ( Offline )} - {items.find((x) => x.runid == p.value)?.timestamp} + {items.find((x) => x.runId == p.value)?.timestamp} )} > @@ -63,12 +63,12 @@ export const RunSelect = memo((props: any) => { style={{ gap: "5px" }} // workaround for semi-design select: won't update label unless key changed // https://github.com/DouyinFE/semi-design/blob/c7982af07ad92e6cafe72d96604ed63a8ca595d6/packages/semi-ui/select/index.tsx#L640 - key={item.runid + "-" + item.metadata?.name + "-" + item.online} - value={item.runid} + key={item.runId + "-" + item.metadata?.name + "-" + item.online} + value={item.runId} > {item.timestamp} - ({item.metadata?.name ?? item.runid}) + ({item.metadata?.name ?? item.runId})