From fe48a8e07a13935f05d014fd83cc14d6305c7394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Tue, 25 Jul 2023 19:01:38 +0200 Subject: [PATCH] Add a dummy user interface --- pwa/app.js | 10 ++++++++++ pwa/index.html | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/pwa/app.js b/pwa/app.js index eddfa8d..5e3044c 100644 --- a/pwa/app.js +++ b/pwa/app.js @@ -46,6 +46,16 @@ class Account { console.log('Sub-addr: ' + test_addr.genSubAddr('test')); }); +document.querySelector('#btn-generate').addEventListener('click', (event) => { + event.preventDefault(); + console.log('TODO: address generation'); + ['a', 'b'].forEach((e) => { + const test_addr = new Account(e, '+', 'example.org', '11voiefK5PgCX5F1TTcuoQ=='); + console.log(test_addr); + console.log('Sub-addr: ' + test_addr.genSubAddr('test')); + }); +}); + window.addEventListener('load', () => { if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw.js'); diff --git a/pwa/index.html b/pwa/index.html index 05f400c..1c6bb00 100644 --- a/pwa/index.html +++ b/pwa/index.html @@ -12,5 +12,45 @@ +
+
+
+
+

New email address

+
+ +
+
+
+ +
+
+

+ New +

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+