mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
cleanup
This commit is contained in:
1 parent
ba10512f29
commit
709f1e5aa2
24 files changed
+112
-147
No files matched your search
@@ -1,3 +1,4 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
var host_id = document.getElementById("body").getAttribute("data-hid");
|
||||
var loadGraphBtn = document.getElementById("loadGraphBtn");
|
||||
@@ -19,7 +20,7 @@ async function loadHealthGraph(host_id) {
|
||||
try {
|
||||
let g = new Dygraph(
|
||||
graphDiv,
|
||||
"/admin/api/graphs/health/"+host_id,
|
||||
"/admin/api/graphs/health/" + host_id,
|
||||
{
|
||||
title: 'Historic Instance Healthiness',
|
||||
showRangeSelector: true,
|
||||
@@ -34,6 +35,7 @@ async function loadHealthGraph(host_id) {
|
||||
ylabel: 'Nitter Instances',
|
||||
}
|
||||
);
|
||||
// fixme: find valid annotation dates, regardless of the host
|
||||
g.ready(function () {
|
||||
g.setAnnotations([
|
||||
{
|
||||
@@ -66,7 +68,7 @@ async function loadStatsGraph(host_id) {
|
||||
try {
|
||||
let g = new Dygraph(
|
||||
graphDiv,
|
||||
"/admin/api/graphs/stats/"+host_id,
|
||||
"/admin/api/graphs/stats/" + host_id,
|
||||
{
|
||||
title: 'Historic Average Instance Statistics',
|
||||
showRangeSelector: true,
|
||||
|
||||
Reference in new issue
Block a user