Add coordinator notice

This commit is contained in:
Reckless_Satoshi 2023-11-20 19:32:48 +00:00 committed by Reckless_Satoshi
parent eb840c5b14
commit fbee60ecbd
18 changed files with 29 additions and 17 deletions

View File

@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next';
import {
Dialog,
Alert,
DialogContent,
Divider,
Grid,
@ -19,6 +20,7 @@ import {
Accordion,
AccordionDetails,
AccordionSummary,
AlertTitle,
} from '@mui/material';
import {
@ -413,6 +415,16 @@ const CoordinatorDialog = ({ open = false, onClose, network, shortAlias }: Props
</ListItem>
</>
)}
{coordinator?.info?.notice_severity != undefined &&
coordinator?.info?.notice_severity !== 'none' && (
<ListItem>
<Alert severity={coordinator.info.notice_severity} sx={{ width: '100%' }}>
<AlertTitle>{t('Coordinator Notice')}</AlertTitle>
<div dangerouslySetInnerHTML={{ __html: coordinator.info.notice_message }} />
</Alert>
</ListItem>
)}
<ListItem>
<BadgesHall badges={coordinator?.badges} />
</ListItem>

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinador",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Primer genera un avatar de robot. A continuació, crea la teva pròpia oferta.",
"You do not have a robot avatar": "No tens un avatar robot",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "El teu Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "Nemáš robota a avatar",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "Du hast keinen Roboter-Avatar",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "You do not have a robot avatar",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Cliente",
"Coordinator": "Coordinador",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Hash de confirmación del coordinador",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Primero genera un robot avatar. Después crea tu propia orden.",
"You do not have a robot avatar": "No tienes un avatar robot",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Bezeroa",
"Coordinator": "Koordinatzailea",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "Ez daukazu robot avatarrik",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinateur",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinateur commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Créez d'abord un avatar de robot. Créez ensuite votre propre commande.",
"You do not have a robot avatar": "Vous n'avez pas d'avatar robot",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Votre Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "Versione di CLN",
"Client": "Client",
"Coordinator": "Coordinatore",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Commit hash del coordinatore",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Genera prima un avatar robot. Poi crea il tuo ordine.",
"You do not have a robot avatar": "Non hai un avatar robot",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Il tuo Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "クライアント",
"Coordinator": "コーディネーター",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "コーディネーターコミットハッシュ",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "最初にロボットアバターを生成してください。次に自分のオーダーを作成してください。",
"You do not have a robot avatar": "ロボットのアバターがありません",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "You do not have a robot avatar",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "Você não tem um avatar de robô",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "У Вас нет аватара робота",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "Du har ingen robotavatar",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "Toleo la CLN",
"Client": "Mteja",
"Coordinator": "Msimamizi",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Zalisha picha ya mwakilishi wa roboti kwanza. Kisha tengeneza amri yako mwenyewe.",
"You do not have a robot avatar": "Huna picha ya mwakilishi wa roboti",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Roboti yako",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "Client",
"Coordinator": "Coordinator",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "Generate a robot avatar first. Then create your own order.",
"You do not have a robot avatar": "คุณไม่มีโรบอท",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "Your Robot",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "客户端",
"Coordinator": "协调器",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "协调器提交哈希",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "请先生成一个机器人头像,然后创建你自己的订单。",
"You do not have a robot avatar": "你没有机器人头像",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "你的机器人",

View File

@ -244,6 +244,7 @@
"CLN version": "CLN version",
"Client": "客戶端",
"Coordinator": "協調器",
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "協調器提交哈希",
"Coordinator description": "Coordinator description",
"Coordinator offline": "Coordinator offline",
@ -299,7 +300,6 @@
"Generate a robot avatar first. Then create your own order.": "請先生成一個機器人頭像,然後創建你自己的訂單。",
"You do not have a robot avatar": "你沒有機器人頭像",
"#29": "Phrases in components/Dialogs/Notice.tsx",
"Coordinator Notice": "Coordinator Notice",
"#30": "Phrases in components/Dialogs/Profile.tsx",
"Coordinators that know your robots": "Coordinators that know your robots",
"Your Robot": "你的機器人",