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] 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 +
@@ -18,6 +68,7 @@
+
@@ -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 @@ + + diff --git a/navigation/backend.md b/navigation/backend.md index 588cf6004..198f56e4a 100644 --- a/navigation/backend.md +++ b/navigation/backend.md @@ -5,338 +5,281 @@ permalink: /login search_exclude: true --- - {% include nav/flask.html %} - - - -
- - - -
-

User Login (Java)

-
-

-

-

- -

-

-
- - - - - - - - - - - - - -
NameIDAgeRole
- Java Details -
- - - -
-

User Login (Python)

-
-

-

-

- -

-

-
- - - - - - - - - - + +
IDNameUIDRoleProfile PictureKASM Server NeededClasses
+ + + + + + - - - - -
NameIDAgeRoles
- Python Details + + + + + + Java Details +
+ + +
+

User Login (Python)

+
+

+ +

+

+ +

+

+ +

+

+
+ + + + + + + + + + + + + + + +
IDNameUIDRoleProfile PictureKASM Server NeededClasses
+ Python Details +
- - - - - - - - diff --git a/navigation/profile.md b/navigation/profile.md index 7c3278c3d..b45221f7b 100644 --- a/navigation/profile.md +++ b/navigation/profile.md @@ -1,7 +1,323 @@ --- layout: post -title: Profile +title: Profile Setup permalink: /profile --- -{% include nav/flask.html %} \ No newline at end of file +{% include nav/flask.html %} + + + + + + Profile Setup + + + + + + + + +
+ + +
+

Profile Setup

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

+
+ + + + + + + + + + +
AbbreviationName
+ Save Sections +
+ +
+ + + + +