From a3e3dfc501c4876cccc68c630bf0131f457fd09a Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 17 Dec 2024 01:49:04 -0700 Subject: [PATCH] Reformat admin page --- public/assets/js/adminDirectory.js | 2 + views/admin/index.ejs | 90 +++++++++++++++--------------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/public/assets/js/adminDirectory.js b/public/assets/js/adminDirectory.js index 04b321f..e6a258c 100644 --- a/public/assets/js/adminDirectory.js +++ b/public/assets/js/adminDirectory.js @@ -9,6 +9,8 @@ function getDirectoryEntries() { row.innerHTML = `${entry.number}${entry.name}`; table.appendChild(row); }); + const dirCount = document.getElementById('dirCount'); + dirCount.textContent = data.length; }) .catch(error => console.error('Error fetching directory:', error)); } diff --git a/views/admin/index.ejs b/views/admin/index.ejs index 20b71d2..9ad8008 100644 --- a/views/admin/index.ejs +++ b/views/admin/index.ejs @@ -1,11 +1,13 @@ + AstroCom Admin + +
+

Admin Dashboard

+ Create New Server +

Total Servers: 0 | Total Directory Entries: 0

+
+
+ + + + + + + + + + + + + + + + +
IDHostname:PortIAX Username/ContextIAX2 SecretNumber BlockAPI KeyContactActions
+
+
-

Admin Dashboard

- Create New Server -

Total Servers: 0 | Total Directory Entries: 0

-
-
-
- - - - - - - - - - - - - - - - -
IDHostname:PortIAX Username/ContextIAX2 SecretNumber BlockAPI KeyContactActions
-
-
-
- -
-
-
-

Directory Management

-
- - - - - - - - - - - -
NumberNameActions
-
+

Directory Management

+ + + + + + + + + + + +
NumberNameActions
+
+ \ No newline at end of file