System monitor section within admin profile

main
Bob Mottram 2021-10-20 11:38:41 +01:00
parent 21a3f18132
commit 9e9f970c96
18 changed files with 49 additions and 17 deletions

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "عرّف عن نفسك وحدد التاريخ والوقت اللذين ترغب في الإقامة فيهما", "Introduce yourself and specify the date and time when you wish to stay": "عرّف عن نفسك وحدد التاريخ والوقت اللذين ترغب في الإقامة فيهما",
"Members": "أعضاء", "Members": "أعضاء",
"Join": "انضم", "Join": "انضم",
"Leave": "يترك" "Leave": "يترك",
"System Monitor": "مراقب النظام"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Presenteu-vos i especifiqueu la data i lhora en què voleu romandre", "Introduce yourself and specify the date and time when you wish to stay": "Presenteu-vos i especifiqueu la data i lhora en què voleu romandre",
"Members": "Membres", "Members": "Membres",
"Join": "Uneix-te", "Join": "Uneix-te",
"Leave": "Marxa" "Leave": "Marxa",
"System Monitor": "Monitor del sistema"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Cyflwynwch eich hun a nodwch y dyddiad a'r amser pan fyddwch yn dymuno aros", "Introduce yourself and specify the date and time when you wish to stay": "Cyflwynwch eich hun a nodwch y dyddiad a'r amser pan fyddwch yn dymuno aros",
"Members": "Aelodau", "Members": "Aelodau",
"Join": "Ymunwch", "Join": "Ymunwch",
"Leave": "Gadewch" "Leave": "Gadewch",
"System Monitor": "Monitor System"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Stellen Sie sich vor und geben Sie Datum und Uhrzeit Ihres Aufenthalts an", "Introduce yourself and specify the date and time when you wish to stay": "Stellen Sie sich vor und geben Sie Datum und Uhrzeit Ihres Aufenthalts an",
"Members": "Mitglieder", "Members": "Mitglieder",
"Join": "Verbinden", "Join": "Verbinden",
"Leave": "Verlassen" "Leave": "Verlassen",
"System Monitor": "Systemmonitor"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Introduce yourself and specify the date and time when you wish to stay", "Introduce yourself and specify the date and time when you wish to stay": "Introduce yourself and specify the date and time when you wish to stay",
"Members": "Members", "Members": "Members",
"Join": "Join", "Join": "Join",
"Leave": "Leave" "Leave": "Leave",
"System Monitor": "System Monitor"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Preséntese y especifique la fecha y hora en que desea quedarse", "Introduce yourself and specify the date and time when you wish to stay": "Preséntese y especifique la fecha y hora en que desea quedarse",
"Members": "Miembros", "Members": "Miembros",
"Join": "Entrar", "Join": "Entrar",
"Leave": "Dejar" "Leave": "Dejar",
"System Monitor": "Monitor del sistema"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Présentez-vous et précisez la date et l'heure auxquelles vous souhaitez rester", "Introduce yourself and specify the date and time when you wish to stay": "Présentez-vous et précisez la date et l'heure auxquelles vous souhaitez rester",
"Members": "Membres", "Members": "Membres",
"Join": "Rejoindre", "Join": "Rejoindre",
"Leave": "Laisser" "Leave": "Laisser",
"System Monitor": "Moniteur système"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Cuir tú féin in aithne agus sonraigh an dáta agus an t-am ar mhaith leat fanacht", "Introduce yourself and specify the date and time when you wish to stay": "Cuir tú féin in aithne agus sonraigh an dáta agus an t-am ar mhaith leat fanacht",
"Members": "Baill", "Members": "Baill",
"Join": "Bí páirteach", "Join": "Bí páirteach",
"Leave": "Fág" "Leave": "Fág",
"System Monitor": "Monatóir Córais"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "अपना परिचय दें और वह तारीख और समय निर्दिष्ट करें जब आप रुकना चाहते हैं", "Introduce yourself and specify the date and time when you wish to stay": "अपना परिचय दें और वह तारीख और समय निर्दिष्ट करें जब आप रुकना चाहते हैं",
"Members": "सदस्यों", "Members": "सदस्यों",
"Join": "शामिल हों", "Join": "शामिल हों",
"Leave": "छोड़ना" "Leave": "छोड़ना",
"System Monitor": "सिस्टम मॉनिटर"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Presentati e specifica la data e l'ora in cui desideri soggiornare", "Introduce yourself and specify the date and time when you wish to stay": "Presentati e specifica la data e l'ora in cui desideri soggiornare",
"Members": "Membri", "Members": "Membri",
"Join": "Aderire", "Join": "Aderire",
"Leave": "Lasciare" "Leave": "Lasciare",
"System Monitor": "Monitor di sistema"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "自己紹介をし、滞在したい日時を指定してください", "Introduce yourself and specify the date and time when you wish to stay": "自己紹介をし、滞在したい日時を指定してください",
"Members": "メンバー", "Members": "メンバー",
"Join": "加入", "Join": "加入",
"Leave": "離れる" "Leave": "離れる",
"System Monitor": "システムモニター"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Xwe bidin nasîn û roj û dema ku hûn dixwazin bimînin bimînin diyar bikin", "Introduce yourself and specify the date and time when you wish to stay": "Xwe bidin nasîn û roj û dema ku hûn dixwazin bimînin bimînin diyar bikin",
"Members": "Endam", "Members": "Endam",
"Join": "Bihevgirêdan", "Join": "Bihevgirêdan",
"Leave": "Terikandin" "Leave": "Terikandin",
"System Monitor": "System Monitor"
} }

View File

@ -483,5 +483,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Introduce yourself and specify the date and time when you wish to stay", "Introduce yourself and specify the date and time when you wish to stay": "Introduce yourself and specify the date and time when you wish to stay",
"Members": "Members", "Members": "Members",
"Join": "Join", "Join": "Join",
"Leave": "Leave" "Leave": "Leave",
"System Monitor": "System Monitor"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Apresente-se e especifique a data e hora em que deseja ficar", "Introduce yourself and specify the date and time when you wish to stay": "Apresente-se e especifique a data e hora em que deseja ficar",
"Members": "Membros", "Members": "Membros",
"Join": "Juntar", "Join": "Juntar",
"Leave": "Sair" "Leave": "Sair",
"System Monitor": "Monitor de Sistema"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Представьтесь и укажите дату и время, когда вы хотите остаться", "Introduce yourself and specify the date and time when you wish to stay": "Представьтесь и укажите дату и время, когда вы хотите остаться",
"Members": "Члены", "Members": "Члены",
"Join": "Присоединиться", "Join": "Присоединиться",
"Leave": "Оставлять" "Leave": "Оставлять",
"System Monitor": "Системный монитор"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "Jitambulishe na taja tarehe na saa unapotaka kukaa", "Introduce yourself and specify the date and time when you wish to stay": "Jitambulishe na taja tarehe na saa unapotaka kukaa",
"Members": "Wanachama", "Members": "Wanachama",
"Join": "Jiunge", "Join": "Jiunge",
"Leave": "Ondoka" "Leave": "Ondoka",
"System Monitor": "Ufuatiliaji wa Mfumo"
} }

View File

@ -487,5 +487,6 @@
"Introduce yourself and specify the date and time when you wish to stay": "自我介绍并指定您希望入住的日期和时间", "Introduce yourself and specify the date and time when you wish to stay": "自我介绍并指定您希望入住的日期和时间",
"Members": "会员", "Members": "会员",
"Join": "加入", "Join": "加入",
"Leave": "离开" "Leave": "离开",
"System Monitor": "系统监视器"
} }

View File

@ -1415,6 +1415,16 @@ def _htmlEditProfileDangerZone(translate: {}) -> str:
return editProfileForm return editProfileForm
def _htmlSystemMonitor(translate: {}) -> str:
"""Links to performance graphs
"""
systemMonitorStr = beginEditSection(translate['System Monitor'])
systemMonitorStr += '<p><a href="/performance?graph=get">📊 GET</a></p>'
systemMonitorStr += '<p><a href="/performance?graph=post">📊 POST</a></p>'
systemMonitorStr += endEditSection()
return systemMonitorStr
def _htmlEditProfileSkills(baseDir: str, nickname: str, domain: str, def _htmlEditProfileSkills(baseDir: str, nickname: str, domain: str,
translate: {}) -> str: translate: {}) -> str:
"""skills section of Edit Profile screen """skills section of Edit Profile screen
@ -2038,6 +2048,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
roleAssignStr = '' roleAssignStr = ''
peertubeStr = '' peertubeStr = ''
libretranslateStr = '' libretranslateStr = ''
systemMonitorStr = ''
graphicsStr = '' graphicsStr = ''
sharesFederationStr = '' sharesFederationStr = ''
@ -2063,6 +2074,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
mediaInstanceStr, mediaInstanceStr,
blogsInstanceStr, blogsInstanceStr,
newsInstanceStr) newsInstanceStr)
systemMonitorStr = _htmlSystemMonitor(translate)
instanceTitle = getConfigParam(baseDir, 'instanceTitle') instanceTitle = getConfigParam(baseDir, 'instanceTitle')
editProfileForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle) editProfileForm = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
@ -2123,6 +2135,9 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
# automatic translations # automatic translations
editProfileForm += libretranslateStr editProfileForm += libretranslateStr
# system monitor
editProfileForm += systemMonitorStr
# Filtering and blocking section # Filtering and blocking section
replyIntervalHours = getReplyIntervalHours(baseDir, nickname, domain, replyIntervalHours = getReplyIntervalHours(baseDir, nickname, domain,
defaultReplyIntervalHours) defaultReplyIntervalHours)