From 4b0c288d9946b4ffa59df763d925cc5040edac58 Mon Sep 17 00:00:00 2001 From: Aidan Date: Sun, 8 Dec 2024 18:14:58 -0500 Subject: [PATCH] add guides page, clean up --- .gitignore | 3 ++- app.js | 24 +++++++++++++++++++++++ exclusions.json.example | 6 ------ src/guides.ejs | 25 ++++++++++++++++++++++++ src/guides/user/index.ejs | 28 +++++++++++++++++++++++++++ src/guides/vaultwarden/android.ejs | 31 ++++++++++++++++++++++++++++++ src/guides/vaultwarden/chrome.ejs | 31 ++++++++++++++++++++++++++++++ src/guides/vaultwarden/firefox.ejs | 31 ++++++++++++++++++++++++++++++ src/guides/webmail/index.ejs | 25 ++++++++++++++++++++++++ src/shards/header.ejs | 2 +- src/shards/nav.ejs | 5 +++++ 11 files changed, 203 insertions(+), 8 deletions(-) delete mode 100644 exclusions.json.example create mode 100644 src/guides.ejs create mode 100644 src/guides/user/index.ejs create mode 100644 src/guides/vaultwarden/android.ejs create mode 100644 src/guides/vaultwarden/chrome.ejs create mode 100644 src/guides/vaultwarden/firefox.ejs create mode 100644 src/guides/webmail/index.ejs diff --git a/.gitignore b/.gitignore index 6b282ae..8670b45 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules/ package-lock.json docker-compose.yml register,log -donations.json \ No newline at end of file +donations.json +.idea/ \ No newline at end of file diff --git a/app.js b/app.js index 71e5a70..8666587 100644 --- a/app.js +++ b/app.js @@ -40,6 +40,30 @@ app.get('/privacy', (req, res) => { res.render('privacy', { currentPage: 'privacy' }); }); +app.get('/guides', (req, res) => { + res.render('guides', { currentPage: 'guides' }); +}); + +app.get('/guides/user', (req, res) => { + res.render('guides/user/index', { currentPage: 'guides' }); +}); + +app.get('/guides/webmail', (req, res) => { + res.render('guides/webmail/index', { currentPage: 'guides' }); +}); + +app.get('/guides/vaultwarden/android', (req, res) => { + res.render('guides/vaultwarden/android', { currentPage: 'guides' }); +}); + +app.get('/guides/vaultwarden/chrome', (req, res) => { + res.render('guides/vaultwarden/chrome', { currentPage: 'guides' }); +}); + +app.get('/guides/vaultwarden/firefox', (req, res) => { + res.render('guides/vaultwarden/firefox', { currentPage: 'guides' }); +}); + const PORT = process.env.PORT || 3000; app.listen(PORT, () => { console.log(`Server is running on port ${PORT}`); diff --git a/exclusions.json.example b/exclusions.json.example deleted file mode 100644 index 79f744b..0000000 --- a/exclusions.json.example +++ /dev/null @@ -1,6 +0,0 @@ -{ - "excludedIPs": [ - "127.0.0.1", - "192.168.1.1" - ] -} \ No newline at end of file diff --git a/src/guides.ejs b/src/guides.ejs new file mode 100644 index 0000000..37d9eff --- /dev/null +++ b/src/guides.ejs @@ -0,0 +1,25 @@ +<%- include('shards/header', { title: 'Guides - p0ntus mail' }) %> +
+ <%- include('shards/nav', { currentPage: 'guides' }) %> + + Vaultwarden +
+ + + Webmail +
+ + + User Dashboard +
+ +
+<%- include('shards/footer') %> \ No newline at end of file diff --git a/src/guides/user/index.ejs b/src/guides/user/index.ejs new file mode 100644 index 0000000..f4506ca --- /dev/null +++ b/src/guides/user/index.ejs @@ -0,0 +1,28 @@ +<%- include('../../shards/header', { title: 'Using the User Dashboard - p0ntus mail' }) %> +
+ <%- include('../../shards/nav', { currentPage: 'guides' }) %> + Using the User Dashboard +
+
+

Signing in

+

If you just signed up, use the default password with your requested email, and input that into user.p0ntus.com. Change your password in the interface, and follow the next steps using your email and password.

+

Even if you didn't just sign up, use your email and password to login.

+

Using the User Dashboard

+

Once you are signed in, you can use the user dashboard to manage your account. You can change your password and view account information. Everything is highly organized for ease of access :)

+

Enabling Two-Factor Authentication

+

On the main page, for traditional Google Authenticator/authenticator app setup, click the "Please select" dropdown under the "Set two-factor authentication method" section. Click Time-Based OTP, and scan the QR code to continue.

+

On the main page, for a FIDO device, select the "Register FIDO Device" button, and doing the normal process with your authenticator to sign in and register. Once done, it will be usable on the user.p0ntus.com dashboard. You must setup traditional 2FA (or store it on your FIDO device, if supported) for SOGo webmail.

+

Logging out

+

When you are done, click the "Exit" icon in the top right corner of the UI.

+

See also

+ + + Back to Guides + +
+
+<%- include('../../shards/footer') %> \ No newline at end of file diff --git a/src/guides/vaultwarden/android.ejs b/src/guides/vaultwarden/android.ejs new file mode 100644 index 0000000..ac53afb --- /dev/null +++ b/src/guides/vaultwarden/android.ejs @@ -0,0 +1,31 @@ +<%- include('../../shards/header', { title: 'Using Vaultwarden on Android - p0ntus mail' }) %> +
+ <%- include('../../shards/nav', { currentPage: 'guides' }) %> + Using Vaultwarden on Android +
+ + + Back to Guides + +
+<%- include('../../shards/footer') %> \ No newline at end of file diff --git a/src/guides/vaultwarden/chrome.ejs b/src/guides/vaultwarden/chrome.ejs new file mode 100644 index 0000000..06ea905 --- /dev/null +++ b/src/guides/vaultwarden/chrome.ejs @@ -0,0 +1,31 @@ +<%- include('../../shards/header', { title: 'Using Vaultwarden on Chrome - p0ntus mail' }) %> +
+ <%- include('../../shards/nav', { currentPage: 'guides' }) %> + Using Vaultwarden on Chrome +
+ + + Back to Guides + +
+<%- include('../../shards/footer') %> \ No newline at end of file diff --git a/src/guides/vaultwarden/firefox.ejs b/src/guides/vaultwarden/firefox.ejs new file mode 100644 index 0000000..8391a38 --- /dev/null +++ b/src/guides/vaultwarden/firefox.ejs @@ -0,0 +1,31 @@ +<%- include('../../shards/header', { title: 'Using Vaultwarden on Firefox - p0ntus mail' }) %> +
+ <%- include('../../shards/nav', { currentPage: 'guides' }) %> + Using Vaultwarden on Firefox +
+ + + Back to Guides + +
+<%- include('../../shards/footer') %> \ No newline at end of file diff --git a/src/guides/webmail/index.ejs b/src/guides/webmail/index.ejs new file mode 100644 index 0000000..5f42dfb --- /dev/null +++ b/src/guides/webmail/index.ejs @@ -0,0 +1,25 @@ +<%- include('../../shards/header', { title: 'Using the Webmail - p0ntus mail' }) %> +
+ <%- include('../../shards/nav', { currentPage: 'guides' }) %> + Using the Webmail +
+
+

Signing in

+

If you just signed up, use the default password with your requested email, and input that into mail.p0ntus.com. Change your password in the interface, and follow the next steps using your email and password.

+

To sign in, use user.p0ntus.com either on the login page with the "Webmail" button, or in the signed-in interface, with the "Sign in to webmail" button.

+

Using the Webmail

+

Once you are signed in, you can use the webmail to send and receive emails. You can also use the calendar and contacts features.

+

Logging out

+

When you are done, click the "Exit" icon in the top right corner of the UI.

+

See also

+ + + Back to Guides + +
+
+<%- include('../../shards/footer') %> \ No newline at end of file diff --git a/src/shards/header.ejs b/src/shards/header.ejs index 1f6e35d..b783ae2 100644 --- a/src/shards/header.ejs +++ b/src/shards/header.ejs @@ -9,6 +9,6 @@ - + \ No newline at end of file diff --git a/src/shards/nav.ejs b/src/shards/nav.ejs index 88fced5..3ea1c0f 100644 --- a/src/shards/nav.ejs +++ b/src/shards/nav.ejs @@ -27,4 +27,9 @@ <% } else { %> Privacy <% } %> + <% if (currentPage === 'guides') { %> + Guides + <% } else { %> + Guides + <% } %> \ No newline at end of file