From cc986965fb94c1c3ae15c03968e946d903656040 Mon Sep 17 00:00:00 2001 From: Azareal Date: Fri, 11 Oct 2019 18:45:09 +1000 Subject: [PATCH] Almost finished adding phrases to panel debug. Add the panel_debug_memory_stats_mspaninuse phrase. Add the panel_debug_memory_stats_mcacheinuse phrase. Add the panel_debug_memory_stats_mspansys phrase. Add the panel_debug_database_profile_replies phrase. Add the panel_debug_database_activity_stream phrase. Add the panel_debug_database_likes phrase. Add the panel_debug_database_attachments phrase. Add the panel_debug_database_polls phrase. Add the panel_debug_database_login_logs phrase. Add the panel_debug_database_reg_logs phrase. Add the panel_debug_database_mod_logs phrase. Add the panel_debug_database_admin_logs phrase. Add the panel_debug_database_views phrase. Add the panel_debug_database_views_agents phrase. Add the panel_debug_database_views_forums phrase. Add the panel_debug_database_views_langs phrase. Add the panel_debug_database_views_referrers phrase. Add the panel_debug_database_views_systems phrase. Add the panel_debug_disk_static_files phrase. Add the panel_debug_disk_attachments phrase. Add the panel_debug_disk_avatars phrase. Add the panel_debug_disk_log_files phrase. Add the panel_debug_disk_backups phrase. Add the panel_debug_disk_git phrase. --- langs/english.json | 27 +++++- templates/account_own_edit_password.html | 2 +- templates/panel_debug.html | 116 +++++++++-------------- 3 files changed, 72 insertions(+), 73 deletions(-) diff --git a/langs/english.json b/langs/english.json index 385e7d86..c03586bb 100644 --- a/langs/english.json +++ b/langs/english.json @@ -1095,6 +1095,9 @@ "panel_debug_memory_stats_heapidle":"HeapIdle", "panel_debug_memory_stats_heapobjects":"HeapObjects", "panel_debug_memory_stats_stackinuse":"StackInuse", + "panel_debug_memory_stats_mspaninuse":"MSpanInuse", + "panel_debug_memory_stats_mcacheinuse":"MCacheInuse", + "panel_debug_memory_stats_mspansys":"MSpanSys", "panel_debug_caches":"Caches", "panel_debug_caches_topic":"Topic Cache", @@ -1106,6 +1109,28 @@ "panel_debug_database_topics":"Topics", "panel_debug_database_users":"Users", "panel_debug_database_replies":"Replies", - "panel_debug_disk":"Disk" + "panel_debug_database_profile_replies":"Profile Replies", + "panel_debug_database_activity_stream":"Activity Stream", + "panel_debug_database_likes":"Likes", + "panel_debug_database_attachments":"Attachments", + "panel_debug_database_polls":"Polls", + "panel_debug_database_login_logs":"Login Logs", + "panel_debug_database_reg_logs":"Reg Logs", + "panel_debug_database_mod_logs":"Mod Logs", + "panel_debug_database_admin_logs":"Admin Logs", + "panel_debug_database_views":"Views", + "panel_debug_database_views_agents":"Views Agents", + "panel_debug_database_views_forums":"Views Forums", + "panel_debug_database_views_langs":"Views Langs", + "panel_debug_database_views_referrers":"Views Referrers", + "panel_debug_database_views_systems":"Views Systems", + + "panel_debug_disk":"Disk", + "panel_debug_disk_static_files":"Static Files", + "panel_debug_disk_attachments":"Attachments", + "panel_debug_disk_avatars":"Avatars", + "panel_debug_disk_log_files":"Log Files", + "panel_debug_disk_backups":"Backups", + "panel_debug_disk_git":"Git" } } \ No newline at end of file diff --git a/templates/account_own_edit_password.html b/templates/account_own_edit_password.html index 3d52e607..21f2bd27 100644 --- a/templates/account_own_edit_password.html +++ b/templates/account_own_edit_password.html @@ -26,4 +26,4 @@ -{{template "footer.html" . }} +{{template "footer.html" . }} \ No newline at end of file diff --git a/templates/panel_debug.html b/templates/panel_debug.html index 4beb2fb8..a493203c 100644 --- a/templates/panel_debug.html +++ b/templates/panel_debug.html @@ -32,25 +32,20 @@ {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_sys"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapsys"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapalloc"}} -
{{.MemStats.Sys}} ({{bunit .MemStats.Sys}})
{{.MemStats.HeapSys}} ({{bunit .MemStats.HeapSys}})
{{.MemStats.HeapAlloc}} ({{bunit .MemStats.HeapAlloc}})
- {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapidle"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapobjects"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_stackinuse"}} -
{{.MemStats.HeapIdle}} ({{bunit .MemStats.HeapIdle}})
{{.MemStats.HeapObjects}}
{{.MemStats.StackInuse}} ({{bunit .MemStats.StackInuse}})
- -
MSpanInuse
-
MCacheInuse
-
MSpanSys
- + {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mspaninuse"}} + {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mcacheinuse"}} + {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mspansys"}}
{{.MemStats.MSpanInuse}} ({{bunit .MemStats.MSpanInuse}})
{{.MemStats.MCacheInuse}} ({{bunit .MemStats.MCacheInuse}})
{{.MemStats.MSpanSys}} ({{bunit .MemStats.MSpanSys}})
@@ -71,16 +66,13 @@ {{template "panel_debug_stat_head.html" "panel_debug_caches_topic"}} {{template "panel_debug_stat_head.html" "panel_debug_caches_user"}} {{template "panel_debug_stat_head.html" "panel_debug_caches_reply"}} -
{{.Cache.Topics}} / {{.Cache.TCap}}
{{.Cache.Users}} / {{.Cache.UCap}}
{{.Cache.Replies}} / {{.Cache.RCap}}
- {{template "panel_debug_stat_head.html" "panel_debug_caches_topic_list"}} {{template "panel_debug_stat_head_q.html"}} {{template "panel_debug_stat_head_q.html"}} -
{{if .Cache.TopicListThaw}}Thawed{{else}}Sleeping{{end}}
{{template "panel_debug_stat_q.html"}} {{template "panel_debug_stat_q.html"}} @@ -92,92 +84,74 @@ {{template "panel_debug_stat_head.html" "panel_debug_database_topics"}} {{template "panel_debug_stat_head.html" "panel_debug_database_users"}} {{template "panel_debug_stat_head.html" "panel_debug_database_replies"}} + {{template "panel_debug_stat.html" .Database.Topics}} + {{template "panel_debug_stat.html" .Database.Users}} + {{template "panel_debug_stat.html" .Database.Replies}} -
{{.Database.Topics}}
-
{{.Database.Users}}
-
{{.Database.Replies}}
+ {{template "panel_debug_stat_head.html" "panel_debug_database_profile_replies"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_activity_stream"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_likes"}} + {{template "panel_debug_stat.html" .Database.ProfileReplies}} + {{template "panel_debug_stat.html" .Database.ActivityStream}} + {{template "panel_debug_stat.html" .Database.Likes}} - -
Profile Replies
-
Activity Stream
-
Likes
- -
{{.Database.ProfileReplies}}
-
{{.Database.ActivityStream}}
-
{{.Database.Likes}}
- - -
Attachments
-
Polls
+ {{template "panel_debug_stat_head.html" "panel_debug_database_attachments"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_polls"}} {{template "panel_debug_stat_head_q.html"}} - -
{{.Database.Attachments}}
-
{{.Database.Polls}}
+ {{template "panel_debug_stat.html" .Database.Attachments}} + {{template "panel_debug_stat.html" .Database.Polls}} {{template "panel_debug_stat_q.html"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_login_logs"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_reg_logs"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_mod_logs"}} + {{template "panel_debug_stat.html" .Database.LoginLogs}} + {{template "panel_debug_stat.html" .Database.RegLogs}} + {{template "panel_debug_stat.html" .Database.ModLogs}} -
Login Logs
-
Reg Logs
-
Mod Logs
- -
{{.Database.LoginLogs}}
-
{{.Database.RegLogs}}
-
{{.Database.ModLogs}}
- - -
Admin Logs
+ {{template "panel_debug_stat_head.html" "panel_debug_database_admin_logs"}} {{template "panel_debug_stat_head_q.html"}} {{template "panel_debug_stat_head_q.html"}} - -
{{.Database.AdminLogs}}
+ {{template "panel_debug_stat.html" .Database.AdminLogs}} {{template "panel_debug_stat_q.html"}} {{template "panel_debug_stat_q.html"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_views"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_views_agents"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_views_forums"}} + {{template "panel_debug_stat.html" .Database.Views}} + {{template "panel_debug_stat.html" .Database.ViewsAgents}} + {{template "panel_debug_stat.html" .Database.ViewsForums}} -
Views
-
Views Agents
-
Views Forums
- -
{{.Database.Views}}
-
{{.Database.ViewsAgents}}
-
{{.Database.ViewsForums}}
- - -
Views Langs
-
Views Referrers
-
Views Systems
- -
{{.Database.ViewsLangs}}
-
{{.Database.ViewsReferrers}}
-
{{.Database.ViewsSystems}}
- + {{template "panel_debug_stat_head.html" "panel_debug_database_views_langs"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_views_referrers"}} + {{template "panel_debug_stat_head.html" "panel_debug_database_views_systems"}} + {{template "panel_debug_stat.html" .Database.ViewsLangs}} + {{template "panel_debug_stat.html" .Database.ViewsReferrers}} + {{template "panel_debug_stat.html" .Database.ViewsSystems}}
Post Analytics
Topic Analytics
{{template "panel_debug_stat_head_q.html"}} - -
{{.Database.PostChunks}}
-
{{.Database.TopicChunks}}
+ {{template "panel_debug_stat.html" .Database.PostChunks}} + {{template "panel_debug_stat.html" .Database.TopicChunks}} {{template "panel_debug_stat_q.html"}}

{{lang "panel_debug_disk"}}

{{flush}}
-
Static Files
-
Attachments
-
Avatars
- + {{template "panel_debug_stat_head.html" "panel_debug_disk_static_files"}} + {{template "panel_debug_stat_head.html" "panel_debug_disk_attachments"}} + {{template "panel_debug_stat_head.html" "panel_debug_disk_avatars"}}
{{bunit .Disk.Static}}
{{bunit .Disk.Attachments}}
{{bunit .Disk.Avatars}}
- -
Log Files
-
Backups
-
Git
- + {{template "panel_debug_stat_head.html" "panel_debug_disk_log_files"}} + {{template "panel_debug_stat_head.html" "panel_debug_disk_backups"}} + {{template "panel_debug_stat_head.html" "panel_debug_disk_git"}}
{{bunit .Disk.Logs}}
{{bunit .Disk.Backups}}
{{bunit .Disk.Git}}
-
\ No newline at end of file +{{flush}} \ No newline at end of file