From 213567cd7e884b9243c8a6e8a8cd366449dac3ea Mon Sep 17 00:00:00 2001
From: iKAN2025 <142475176+iKAN2025@users.noreply.github.com>
Date: Wed, 3 Jul 2024 14:59:16 -0700
Subject: [PATCH 1/4] update home.html
---
_includes/nav/flask.html | 1 -
_includes/nav/home.html | 9 +++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/_includes/nav/flask.html b/_includes/nav/flask.html
index 90fb0806b..0555c938d 100644
--- a/_includes/nav/flask.html
+++ b/_includes/nav/flask.html
@@ -6,6 +6,5 @@
Profile |
Scrum |
Admin |
- Logout |
\ No newline at end of file
diff --git a/_includes/nav/home.html b/_includes/nav/home.html
index 2f50e2d75..fa0e5af5d 100644
--- a/_includes/nav/home.html
+++ b/_includes/nav/home.html
@@ -54,7 +54,7 @@
CSP |
CSA |
README |
- Login |
+ ${data.name}
`;
} else {
// User is not authenticated, then "Login" link is shown
- loginArea.innerHTML = 'Login';
+ loginArea.innerHTML = 'Login';
}
})
.catch(err => { // General error handler
From 13c2b45536c2b05d728a962b458d309a29017074 Mon Sep 17 00:00:00 2001
From: iKAN2025 <142475176+iKAN2025@users.noreply.github.com>
Date: Wed, 3 Jul 2024 15:00:17 -0700
Subject: [PATCH 2/4] {% include nav/flask.html %}
---
navigation/admin.md | 4 +++-
navigation/profile.md | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/navigation/admin.md b/navigation/admin.md
index 1460de8d0..b1ddfe8f8 100644
--- a/navigation/admin.md
+++ b/navigation/admin.md
@@ -3,4 +3,6 @@ layout: base
title: Admin
permalink: /admin
search_exclude: true
----
\ No newline at end of file
+---
+{% include nav/flask.html %}
+
diff --git a/navigation/profile.md b/navigation/profile.md
index dbf08f685..7c3278c3d 100644
--- a/navigation/profile.md
+++ b/navigation/profile.md
@@ -2,4 +2,6 @@
layout: post
title: Profile
permalink: /profile
----
\ No newline at end of file
+---
+
+{% include nav/flask.html %}
\ No newline at end of file
From 2dcfa5147608b4c3096b274f0d3939853aa19554 Mon Sep 17 00:00:00 2001
From: iKAN2025 <142475176+iKAN2025@users.noreply.github.com>
Date: Wed, 3 Jul 2024 16:06:03 -0700
Subject: [PATCH 3/4] profile
---
_includes/create_user.html | 61 +++-
navigation/backend.md | 557 +++++++++++++++++--------------------
navigation/profile.md | 320 ++++++++++++++++++++-
3 files changed, 626 insertions(+), 312 deletions(-)
diff --git a/_includes/create_user.html b/_includes/create_user.html
index 3d284102f..bfc65986a 100644
--- a/_includes/create_user.html
+++ b/_includes/create_user.html
@@ -3,6 +3,56 @@
Create User
+
@@ -25,17 +76,19 @@
async function submitForm() {
const form = document.getElementById('userForm');
const formData = new FormData(form);
-
+
+ // Collect selected sections
+
// Create the payload
const payload = {
name: formData.get('name'),
uid: formData.get('uid'),
password: formData.get('password'),
- kasm_server_needed: formData.get('kasm_server_needed') ? true : false
+ kasm_server_needed: formData.get('kasm_server_needed') === 'on',
};
try {
- const response = await fetch('http://127.0.0.1:8086/api/user', {
+ const response = await fetch('http://127.0.0.1:8086/api/users/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@@ -57,3 +110,5 @@
|