From 1d3574d38909bc9aae2792d839023e296fb25791 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 23 Dec 2021 16:50:42 -0600 Subject: Add email unsubcribe link, update about me, add hello.js --- src/html/admin.html | 13 ++++++++++++- src/html/email-confirm.html | 23 +++++++++++++++++++++++ src/html/email-success.html | 2 +- src/html/email-unsubscribe.html | 23 +++++++++++++++++++++++ 4 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 src/html/email-confirm.html create mode 100644 src/html/email-unsubscribe.html (limited to 'src/html') diff --git a/src/html/admin.html b/src/html/admin.html index 29e4b87..d15598a 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -18,7 +18,7 @@ showSessionTable: false, showUrlTable: false, showLogData: false, - showEmailData: false, + showEmailData: true, }, created() { fetch(new Request('/admin/stats')).then(response => response.json()) @@ -28,6 +28,15 @@ } }); } + function delete_email(id, name){ + if (confirm(`Delete ${name}?`)) { + let path = `/admin/email/${id}` + fetch(new Request(path, { + method: 'delete', + })).then(response => response.json()) + .then(response => this.emails = response); + } + } @@ -130,10 +139,12 @@ Name Address + {{item.name}} {{item.address}} + diff --git a/src/html/email-confirm.html b/src/html/email-confirm.html new file mode 100644 index 0000000..b0ee130 --- /dev/null +++ b/src/html/email-confirm.html @@ -0,0 +1,23 @@ + + + + + Mark's Kitchen - Email + + + + + + + +
+

+ < + Unsubcribe? +

+ Click to unsubscribe! +
+ + + + diff --git a/src/html/email-success.html b/src/html/email-success.html index 65bc2e5..11350df 100644 --- a/src/html/email-success.html +++ b/src/html/email-success.html @@ -15,7 +15,7 @@ < Email -

Success, thank you!

+

Success, thank you!

diff --git a/src/html/email-unsubscribe.html b/src/html/email-unsubscribe.html new file mode 100644 index 0000000..37acf97 --- /dev/null +++ b/src/html/email-unsubscribe.html @@ -0,0 +1,23 @@ + + + + + Mark's Kitchen - Email + + + + + + + +
+

+ < + Email +

+

You are now unsubscribed!

+
+ + + + -- cgit v1.2.3