summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-23 22:56:28 +0200
committerRaindropsSys <contact@minteck.org>2023-07-23 22:56:28 +0200
commit10dc1b8236dd81e9d0eb9d63718cafe3bbc72696 (patch)
tree1f00d33dfef01c3a77c95abbadedcf22aa4e72d9
parent05a4fcc9848ea1fb9feb5b5bfb7a2733dec3ce40 (diff)
downloadpluralconnect-10dc1b8236dd81e9d0eb9d63718cafe3bbc72696.tar.gz
pluralconnect-10dc1b8236dd81e9d0eb9d63718cafe3bbc72696.tar.bz2
pluralconnect-10dc1b8236dd81e9d0eb9d63718cafe3bbc72696.zip
Updated 2 files and added 3 files (automated)
-rw-r--r--assets/icons/new/logout.svg1
-rw-r--r--assets/icons/new/pair.svg1
-rw-r--r--assets/icons/new/session_manager.svg1
-rw-r--r--includes/components/2023ui.inc4
-rw-r--r--pages/account.inc13
5 files changed, 18 insertions, 2 deletions
diff --git a/assets/icons/new/logout.svg b/assets/icons/new/logout.svg
new file mode 100644
index 0000000..0d2322a
--- /dev/null
+++ b/assets/icons/new/logout.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h299v60H180v600h299v60H180Zm486-185-43-43 102-102H360v-60h363L621-612l43-43 176 176-174 174Z"/></svg> \ No newline at end of file
diff --git a/assets/icons/new/pair.svg b/assets/icons/new/pair.svg
new file mode 100644
index 0000000..0d58dc1
--- /dev/null
+++ b/assets/icons/new/pair.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M260-40q-24.75 0-42.375-17.625T200-100v-760q0-24.75 17.625-42.375T260-920h440q24.75 0 42.375 17.625T760-860v146h-60v-56H260v580h440v-56h60v146q0 24.75-17.625 42.375T700-40H260Zm0-90v30h440v-30H260Zm441-202-5-46q-12-3-22-9t-17-14l-40 19-29-46 36-27q-5-11-5-27t5-27l-36-27 29-46 40 19q7-8 16-14t23-9l5-46h56l5 46q14 3 23 9t16 14l40-19 29 46-36 27q5 11 5 27t-5 27l36 27-29 46-40-19q-7 8-17 14t-22 9l-5 46h-56Zm28-84q28 0 47-19t19-47q0-28-19-47t-47-19q-28 0-47 19t-19 47q0 28 19 47t47 19ZM260-830h440v-30H260v30Zm0 0v-30 30Zm0 700v30-30Z"/></svg> \ No newline at end of file
diff --git a/assets/icons/new/session_manager.svg b/assets/icons/new/session_manager.svg
new file mode 100644
index 0000000..0770b37
--- /dev/null
+++ b/assets/icons/new/session_manager.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="m436-347 228-228-42-41-183 183-101-101-44 44 142 143Zm44 266q-140-35-230-162.5T160-523v-238l320-120 320 120v238q0 152-90 279.5T480-81Zm0-62q115-38 187.5-143.5T740-523v-196l-260-98-260 98v196q0 131 72.5 236.5T480-143Zm0-337Z"/></svg> \ No newline at end of file
diff --git a/includes/components/2023ui.inc b/includes/components/2023ui.inc
index 81022d5..cd37e36 100644
--- a/includes/components/2023ui.inc
+++ b/includes/components/2023ui.inc
@@ -20,9 +20,9 @@
</div>
</div>
<div style="height: 52px; display: flex; align-items: center;">
- <form action="/-/search" style="width: 100%;">
+ <!--<form action="/-/search" style="width: 100%;">
<input name="q" class="form-control" type="text" value="" placeholder="Search on Cold Haze..." style="width: 100%; margin-left: auto; margin-right: auto; border-color: var(--palette-4) !important; background-color: var(--palette-4) !important;">
- </form>
+ </form>-->
</div>
<div style="display: grid; grid-template-columns: 1fr max-content;">
<div style="display: flex; align-items: center;">
diff --git a/pages/account.inc b/pages/account.inc
index c1c5d52..4107f8f 100644
--- a/pages/account.inc
+++ b/pages/account.inc
@@ -9,6 +9,19 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; ?>
<div class="container">
<div id="page-content">
<h2>Account and security</h2>
+ <br>
+
+ <div class="list-group">
+ <a href="/-/sessions" class="list-group-item list-group-item-action" style="display: grid; grid-template-columns: max-content 1fr;">
+ <img src="<?= icon('session_manager', null, true) ?>" style="margin-right: 5px; height: 24px; width: 24px;"><div style="display: flex; align-items: center; color: var(--bs-body-color);">Logged in devices</div>
+ </a>
+ <a href="/-/pair" class="list-group-item list-group-item-action" style="display: grid; grid-template-columns: max-content 1fr;">
+ <img src="<?= icon('pair', null, true) ?>" style="margin-right: 5px; height: 24px; width: 24px;"><div style="display: flex; align-items: center; color: var(--bs-body-color);">Pair new device</div>
+ </a>
+ <a href="/-/logout" class="list-group-item list-group-item-action" style="display: grid; grid-template-columns: max-content 1fr;">
+ <img src="<?= icon('logout', null, true) ?>" style="margin-right: 5px; height: 24px; width: 24px;"><div style="display: flex; align-items: center; color: var(--bs-body-color);">Logout</div>
+ </a>
+ </div>
</div>
</div>