Skip to content

Commit

Permalink
feat(about): add zigbee-herdsman-converters/zigbee-herdsman version t…
Browse files Browse the repository at this point in the history
…o about page (#1817)

* feat(about): add zigbee-herdsman-converters version to about page

* feat(about): add zh version

* fix(about): fix

* fix(pretty): prettier
  • Loading branch information
Koenkk authored Oct 21, 2023
1 parent 652b689 commit 474888c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ export class SettingsPage extends Component<
content: <>{bridgeInfo.coordinator?.ieee_address ?? t('common:unknown')}</>,
},
{ translationKey: 'frontend_version', content: frontentPackageJson.version },
{
translationKey: 'zigbee_herdsman_converters_version',
content: bridgeInfo.zigbee_herdsman_converters?.version ?? t('common:unknown'),
},
{
translationKey: 'zigbee_herdsman_version',
content: bridgeInfo.zigbee_herdsman?.version ?? t('common:unknown'),
},
{ translationKey: 'stats', content: <Stats devices={devices} /> },
];

Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,8 @@
"external_converters": "External converters",
"frontend": "Frontend",
"frontend_version": "Frontend version",
"zigbee_herdsman_converters_version": "Zigbee-herdsman-converters version",
"zigbee_herdsman_version": "Zigbee-herdsman version",
"main": "Main",
"mqtt": "MQTT",
"ota": "OTA updates",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,8 @@
"experimental": "Experimenteel",
"external_converters": "Externe converters",
"frontend_version": "Versie frontend",
"zigbee_herdsman_converters_version": "Zigbee-herdsman-converters versie",
"zigbee_herdsman_version": "Zigbee-herdsman versie",
"main": "Hoofd",
"passlist": "Toegangslijst",
"raw": "Ruw",
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export interface BridgeInfo {
permit_join_timeout: number;
commit?: string;
version?: string;
zigbee_herdsman_converters: {version: string},
zigbee_herdsman: {version: string},
coordinator?: {
meta?: {
revision?: string;
Expand Down

0 comments on commit 474888c

Please sign in to comment.