From ae92866b21e5b85fc8c0439a5be6f7d777fd9647 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 7 Dec 2019 15:25:14 -0600 Subject: Clean up routing, add misc --- src/html/admin.html | 37 +++++++-- src/html/index.html | 1 + src/html/misc.html | 32 ++++++++ src/html/snake.html | 216 ---------------------------------------------------- 4 files changed, 62 insertions(+), 224 deletions(-) create mode 100644 src/html/misc.html delete mode 100644 src/html/snake.html (limited to 'src/html') diff --git a/src/html/admin.html b/src/html/admin.html index a97af06..363f5c0 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -14,13 +14,17 @@ el: '#stats', data: { stats: { session: [], url: [] }, + emails: [], showSessionTable: false, showUrlTable: false, showLogData: false, + showEmailData: false, }, created() { fetch(new Request('/admin/stats')).then(response => response.json()) .then(response => this.stats = response); + fetch(new Request('/admin/emails')).then(response => response.json()) + .then(response => this.emails = response); } }); } @@ -57,12 +61,27 @@ +
+ Chess +

Stats

+
+ + +
+
+ + +
+
+ + +
{{stats.total}} total sessions @@ -76,10 +95,6 @@
-
- - -
@@ -92,10 +107,6 @@
Method{{item.c}}
-
- - -
@@ -111,6 +122,16 @@
Date{{item.c}}
+ + + + + + + + + +
NameAddress
{{item.name}}{{item.address}}
diff --git a/src/html/index.html b/src/html/index.html index 1d57609..ce67842 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -33,6 +33,7 @@ Blog Email + Misc
diff --git a/src/html/misc.html b/src/html/misc.html new file mode 100644 index 0000000..60455c5 --- /dev/null +++ b/src/html/misc.html @@ -0,0 +1,32 @@ + + + + + Mark's Kitchen + + + + + + + + + + + +

+ < + Miscellany +

+
+ Projects +
+
+ Chess +
+
+ Word Play + + + + \ No newline at end of file diff --git a/src/html/snake.html b/src/html/snake.html deleted file mode 100644 index e2158e5..0000000 --- a/src/html/snake.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Snake - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3