pnoker 0fc4e4386e refactor(alarm): rename eventId to alarmId; surface alarm level
Aligns with the iot-dc3 backend rename: dc3_rule_state.event_id and
dc3_notify_history.event_id now ship as alarm_id, and the corresponding
JSON keys / TypeScript types follow.

- AlarmDetail: rule-state and notify-history detail panels now show
  the field as "Alarm ID" with prop="alarmId".
- alarm.ts: RuleStateRecord.eventId / NotifyHistoryRecord.eventId →
  alarmId.
- EventTable: add a Level column rendering dc3_entity_alarm.alarm_level_flag
  (P0/P1/P2/P3) — the column already existed on the backend but the
  dashboard never surfaced it. Tag color leans danger->success as the
  level number grows so P0 lights up red.
- i18n: add settings.event.alarmLevel ("Level" / "级别") for the new column.
2026-05-21 19:09:16 +08:00
2026-05-13 17:00:11 +08:00

1. Prepare

  • git
  • Visual Studio Code
  • nodejs >= 18, recommended to use 22
  • pnpm, install using corepack enable && corepack prepare pnpm@latest --activate (or npm install -g pnpm)

2. Source code

git clone https://github.com/pnoker/iot-dc3-web.git

3. Develop

cd iot-dc3-web

# install
pnpm install

# run
pnpm dev
S
Description
IoT DC3 是一个基于 Spring Cloud 的 100% 完全开源的、分布式的物联网(IoT)平台,用于快速开发物联网项目和管理物联设备,是一整套物联系统解决方案。
Readme
311 MiB
Languages
Java 75.7%
TypeScript 10.4%
Vue 8.3%
PLpgSQL 3.6%
JavaScript 0.9%
Other 1%