diff --git a/client/src/pages/subpages/Barcodes.svelte b/client/src/pages/subpages/Barcodes.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/Drafts.svelte b/client/src/pages/subpages/Drafts.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/Inbox.svelte b/client/src/pages/subpages/Inbox.svelte
new file mode 100644
index 000000000..155e674a8
--- /dev/null
+++ b/client/src/pages/subpages/Inbox.svelte
@@ -0,0 +1,3 @@
+
+ Inbox!
+
\ No newline at end of file
diff --git a/client/src/pages/subpages/Invites.svelte b/client/src/pages/subpages/Invites.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/ManageAdmins.svelte b/client/src/pages/subpages/ManageAdmins.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/ManageSettings.svelte b/client/src/pages/subpages/ManageSettings.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/ManageStaff.svelte b/client/src/pages/subpages/ManageStaff.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/Metrics.svelte b/client/src/pages/subpages/Metrics.svelte
new file mode 100644
index 000000000..e69de29bb
diff --git a/client/src/pages/subpages/Outbox.svelte b/client/src/pages/subpages/Outbox.svelte
new file mode 100644
index 000000000..fb12177ae
--- /dev/null
+++ b/client/src/pages/subpages/Outbox.svelte
@@ -0,0 +1,3 @@
+
+ Outbox!
+
\ No newline at end of file
From b53ed211d295db4cb4712eebbe9f0052694585c2 Mon Sep 17 00:00:00 2001
From: Justin Ruaya
Date: Sun, 19 Mar 2023 01:32:19 +0800
Subject: [PATCH 05/36] feat(client): navbar buttons now routes to pages
---
.../{MediaQuery.svelte => ui/NavQuery.svelte} | 0
client/src/components/ui/Navbar.svelte | 32 +++++++++++--------
client/src/pages/dashboard/Dashboard.svelte | 2 +-
3 files changed, 19 insertions(+), 15 deletions(-)
rename client/src/components/{MediaQuery.svelte => ui/NavQuery.svelte} (100%)
diff --git a/client/src/components/MediaQuery.svelte b/client/src/components/ui/NavQuery.svelte
similarity index 100%
rename from client/src/components/MediaQuery.svelte
rename to client/src/components/ui/NavQuery.svelte
diff --git a/client/src/components/ui/Navbar.svelte b/client/src/components/ui/Navbar.svelte
index 067295d2e..81d924b7c 100644
--- a/client/src/components/ui/Navbar.svelte
+++ b/client/src/components/ui/Navbar.svelte
@@ -1,29 +1,32 @@
-
+
-
+
+
\ No newline at end of file
diff --git a/client/src/components/ui/Navbar.svelte b/client/src/components/ui/Navbar.svelte
index 81d924b7c..b8aa9b7d7 100644
--- a/client/src/components/ui/Navbar.svelte
+++ b/client/src/components/ui/Navbar.svelte
@@ -1,12 +1,15 @@
-
+
+
@@ -51,9 +54,23 @@
background-color: var(--secondary-color);
box-shadow: 0 1px 8px #ddd;
padding: var(--spacing-small);
+ justify-content: space-evenly;
position: sticky;
}
+ .picturecontainer {
+ position: fixed;
+ top: 10;
+ left: 10;
+ }
+
+ button {
+ padding: 0;
+ border: 0;
+ outline: 0;
+ background-color: transparent;
+ }
+
.navelements {
display: flex;
flex-direction: row-reverse;
@@ -65,24 +82,21 @@
.navitem {
list-style: none;
padding: 1em;
+ height: 50pt;
background: none;
text-decoration: none;
- background-color: pink;
+ user-select: none;
+ color: var(--primary-color);
display: inline-block;
}
.navitem:hover {
- background-color: blue;
+ background-color: var(--danger-color);
transition: all 0.3s ease 0s;
}
+
.mobile {
background-color: green;
}
-
- .profile {
- display: inline-block;
- size: 20%;
- margin: 0;
- }
diff --git a/client/src/pages/dashboard/Dashboard.svelte b/client/src/pages/dashboard/Dashboard.svelte
index 74b1663fd..335283e18 100644
--- a/client/src/pages/dashboard/Dashboard.svelte
+++ b/client/src/pages/dashboard/Dashboard.svelte
@@ -4,7 +4,7 @@
import { register } from '../register.ts';
import { Session } from '../../api/session.ts';
import Navbar from '../../components/ui/Navbar.svelte';
- import Button from '../../components/ui/Button.svelte'
+ import Button from '../../components/ui/Button.svelte';
import routes from './routes.ts';
From ddfabab85527d127181baa0d3dc429c26f82e598 Mon Sep 17 00:00:00 2001
From: Justin Ruaya
Date: Tue, 21 Mar 2023 11:21:30 +0800
Subject: [PATCH 07/36] chore(client): moved navbar components to a separate
folder
---
.../ui/{ => navigationbar}/NavPicture.svelte | 0
.../ui/{ => navigationbar}/NavQuery.svelte | 0
.../ui/{ => navigationbar}/Navbar.svelte | 23 +++++++------------
client/src/pages/dashboard/Dashboard.svelte | 2 +-
4 files changed, 9 insertions(+), 16 deletions(-)
rename client/src/components/ui/{ => navigationbar}/NavPicture.svelte (100%)
rename client/src/components/ui/{ => navigationbar}/NavQuery.svelte (100%)
rename client/src/components/ui/{ => navigationbar}/Navbar.svelte (79%)
diff --git a/client/src/components/ui/NavPicture.svelte b/client/src/components/ui/navigationbar/NavPicture.svelte
similarity index 100%
rename from client/src/components/ui/NavPicture.svelte
rename to client/src/components/ui/navigationbar/NavPicture.svelte
diff --git a/client/src/components/ui/NavQuery.svelte b/client/src/components/ui/navigationbar/NavQuery.svelte
similarity index 100%
rename from client/src/components/ui/NavQuery.svelte
rename to client/src/components/ui/navigationbar/NavQuery.svelte
diff --git a/client/src/components/ui/Navbar.svelte b/client/src/components/ui/navigationbar/Navbar.svelte
similarity index 79%
rename from client/src/components/ui/Navbar.svelte
rename to client/src/components/ui/navigationbar/Navbar.svelte
index b8aa9b7d7..56036158e 100644
--- a/client/src/components/ui/Navbar.svelte
+++ b/client/src/components/ui/navigationbar/Navbar.svelte
@@ -1,17 +1,17 @@
+
@@ -78,6 +92,7 @@
height: 50pt;
background: none;
text-decoration: none;
+ cursor: pointer;
user-select: none;
color: var(--primary-color);
display: inline-block;
@@ -87,6 +102,11 @@
background-color: var(--danger-color);
transition: all 0.3s ease 0s;
}
+
+ .logout {
+ width: 100%;
+ height: 100%;
+ }
.mobile {
From ce6d7a3a0c73a3f4d75e8ee56de9abbde734a264 Mon Sep 17 00:00:00 2001
From: Justin Ruaya
Date: Wed, 22 Mar 2023 13:37:41 +0800
Subject: [PATCH 09/36] feat(client): see changes below:
- added a new component called NavDrawer.svelte
- navbar updates based on screen size
Co-Authored-By: Basti Ortiz <39114273+Some-Dood@users.noreply.github.com>
---
.vscode/launch.json | 15 +++++
.../ui/navigationbar/NavDrawer.svelte | 65 +++++++++++++++++++
.../ui/navigationbar/NavMobileModal.svelte | 45 +++++++++++++
.../components/ui/navigationbar/Navbar.svelte | 37 +++++++----
client/src/pages/dashboard/Dashboard.svelte | 17 ++---
5 files changed, 159 insertions(+), 20 deletions(-)
create mode 100644 .vscode/launch.json
create mode 100644 client/src/components/ui/navigationbar/NavDrawer.svelte
create mode 100644 client/src/components/ui/navigationbar/NavMobileModal.svelte
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 000000000..2ba986f6f
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,15 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "chrome",
+ "request": "launch",
+ "name": "Launch Chrome against localhost",
+ "url": "http://localhost:8080",
+ "webRoot": "${workspaceFolder}"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/client/src/components/ui/navigationbar/NavDrawer.svelte b/client/src/components/ui/navigationbar/NavDrawer.svelte
new file mode 100644
index 000000000..a07764c97
--- /dev/null
+++ b/client/src/components/ui/navigationbar/NavDrawer.svelte
@@ -0,0 +1,65 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/components/ui/navigationbar/NavMobileModal.svelte b/client/src/components/ui/navigationbar/NavMobileModal.svelte
new file mode 100644
index 000000000..2c7ceac1b
--- /dev/null
+++ b/client/src/components/ui/navigationbar/NavMobileModal.svelte
@@ -0,0 +1,45 @@
+{#if show}
+
+
+
+
About me...
+
+
+
+{/if}
+
+
+
+
\ No newline at end of file
diff --git a/client/src/components/ui/navigationbar/Navbar.svelte b/client/src/components/ui/navigationbar/Navbar.svelte
index bec94ccc8..4359012d5 100644
--- a/client/src/components/ui/navigationbar/Navbar.svelte
+++ b/client/src/components/ui/navigationbar/Navbar.svelte
@@ -5,6 +5,7 @@
import Button from '../Button.svelte';
import Logout from '../../icons/Logout.svelte';
+ import Hamburger from '../../icons/Eye.svelte';
import { ButtonType } from '../../../components/types.ts';
@@ -13,7 +14,9 @@
import Router, { push, pop, replace } from 'svelte-spa-router';
import routes from '../../../pages/dashboard/routes.ts';
- let mobile = false;
+ // Mobile stuff
+ import Sidebar from './NavDrawer.svelte';
+ export let showBar : boolean;
// TODO: Updates based on permissions
const navItems = [
@@ -28,7 +31,6 @@
{ label: "Manage Global Settings", href: "manage-global-settings", key:'G' },
];
-
function logout() {
const form = document.createElement('form');
form.method = 'post';
@@ -46,19 +48,26 @@
+
+
@@ -102,14 +111,18 @@
background-color: var(--danger-color);
transition: all 0.3s ease 0s;
}
-
- .logout {
- width: 100%;
- height: 100%;
- }
-
.mobile {
background-color: green;
}
+
+ .mobile-icon {
+ top: 0;
+ left: 0;
+ position: fixed;
+ }
+
+ .hidden {
+ display: none;
+ }
diff --git a/client/src/pages/dashboard/Dashboard.svelte b/client/src/pages/dashboard/Dashboard.svelte
index b72dcdde5..7376be8d8 100644
--- a/client/src/pages/dashboard/Dashboard.svelte
+++ b/client/src/pages/dashboard/Dashboard.svelte
@@ -7,16 +7,17 @@
import Button from '../../components/ui/Button.svelte';
import routes from './routes.ts';
+ import Sidebar from '../../components/ui/navigationbar/NavDrawer.svelte';
+
+ let toggleDrawer = false;
+
-
{#await register()}
Waiting for service worker...
{:then}
-
-
+
+
+
+
{/await}
-
+
From 1e5833e437d77f1ae45b99b1fa1f5c2ce49bc0f3 Mon Sep 17 00:00:00 2001
From: Justin Ruaya
Date: Wed, 22 Mar 2023 23:23:01 +0800
Subject: [PATCH 10/36] chore(client): move navItems to dashboard to
accommodate the sidebar
---
.../ui/navigationbar/NavMobileModal.svelte | 45 -------------------
.../components/ui/navigationbar/Navbar.svelte | 12 +----
client/src/pages/dashboard/Dashboard.svelte | 15 ++++++-
3 files changed, 15 insertions(+), 57 deletions(-)
delete mode 100644 client/src/components/ui/navigationbar/NavMobileModal.svelte
diff --git a/client/src/components/ui/navigationbar/NavMobileModal.svelte b/client/src/components/ui/navigationbar/NavMobileModal.svelte
deleted file mode 100644
index 2c7ceac1b..000000000
--- a/client/src/components/ui/navigationbar/NavMobileModal.svelte
+++ /dev/null
@@ -1,45 +0,0 @@
-{#if show}
-