From b00a29aedb2ea9f9c1b9cf4dda94d7b5ffc5390f Mon Sep 17 00:00:00 2001 From: 20062021 Date: Sun, 2 Feb 2025 11:51:49 +0100 Subject: [PATCH 01/13] add fiew things in README --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 55e14db..2b67c38 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -## TODO list : \ No newline at end of file +## TODO list : +- base sql +- accés au dossier public du rpi : upload/download + - file drop + - affichage de l'arborescence rpi/public/ +- faire du css moche +- From e4ebadfdd1f6590f9e1ffede4e982743f2c91f14 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Sun, 2 Feb 2025 11:52:30 +0100 Subject: [PATCH 02/13] add more path in .gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aa68d02..890ec63 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ jsconfig.json .git/ aide.txt -test_index.html \ No newline at end of file +test_index.html +.SQL/ +.localtest \ No newline at end of file From dfcf75702088b4a7c5fe51fb7b8b2ff35867314a Mon Sep 17 00:00:00 2001 From: 20062021 Date: Sun, 2 Feb 2025 11:53:07 +0100 Subject: [PATCH 03/13] add a div (troll) as an test/example of bios belike --- css/index.css | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 55 ++++++++++++++++++++++++++++++- 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/css/index.css b/css/index.css index 9e64e28..fad908f 100644 --- a/css/index.css +++ b/css/index.css @@ -189,4 +189,93 @@ header>p { #server-adress>p { position: absolute; display: none; +} + +.BIOS-div { + font-family: 'Courier New', Courier, monospace; + /* background-color: #00008b; */ + color: #fff; + margin: 0; + padding: 0; + display: auto; + justify-content: center; + align-items: center ; + height: auto; +} + +.bios-container { + width: auto; + background-color: #c0c0c0; + color: #000; + border: 2px solid #000; + padding: 10px; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); + margin: 31px; +} + +.header { + background-color: #00008b; + color: #fff; + padding: 10px; + font-size: 1.2em; + text-align: center; +} + +.menu { + background-color: #6495ed; + padding: 5px; + display: flex; + justify-content: space-around; + font-size: 1.1em; +} + +.menu span { + color: #000; +} + +.content { + display: flex; + margin-top: 10px; +} + +.left-section { + flex: 3; + padding: 10px; + background-color: #f0f0f0; + border-right: 2px solid #000; +} + +.right-section { + flex: 2; + padding: 10px; + background-color: #e6e6e6; +} + +.footer { + background-color: #00008b; + color: #fff; + text-align: center; + padding: 5px; + margin-top: 10px; + font-size: 0.9em; +} + +.instructions { + font-size: 0.9em; + margin-top: 10px; + color: #000; +} + +.TEST-div { + width: auto; + background-color: #c0c0c0; + color: #000; + border: 2px solid #000; + padding: 10px; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); + margin: 31px; +} + +.test-p { + text-align: center; } \ No newline at end of file diff --git a/index.html b/index.html index d930687..18c254d 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@
-

Website still under developement !

+

Website still under developement :D

@@ -22,8 +22,61 @@
+ + + + +
+
+
+ Rpi Apache Webpage | Copyright (C) 2024 - ֳֻẗ | Shadow, Inc. +
+ +
+
+

Administrator Password Status: Not Installed

+

User Password Status: Not Installed

+

Set Administrator Password: [Disabled]

+

Set User Password

+

Power ON Password

+
+
+

Administrator password is used if Power On Password is enabled and to control change access in BIOS Setup.

+

Length is 1-14 characters. Case sensitive alphabetic, numeric and special characters are allowed.

+

Note: Administrator password must be set in order to use the User account.

+
+ → : Select Screen
+ ↑↓ : Select Item
+ Enter : Select
+ +/- : Change Opt.
+ F1 : General Help
+ F9 : Setup Defaults
+ F10 : Save ESC : Exit +
+
+
+ +
+
+ +
+

test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test

+
+
+ + +
From f2ff2655b42cb326037b59509d32dad70f5de9b3 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 15:37:54 +0100 Subject: [PATCH 04/13] folder for html added --- html/index.html | 113 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 html/index.html diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..84b23a2 --- /dev/null +++ b/html/index.html @@ -0,0 +1,113 @@ + + + + Home + + + + + + + + + +
+

Website still under developement :D

+
+
+ +
+
+ +
+ +
+ + + + +
+
+
+ Rpi Apache Webpage | Copyright (C) 2024 - ֳֻẗ | Shadow, Inc. +
+ +
+
+

Administrator Password Status: Not Installed

+

User Password Status: Not Installed

+

Set Administrator Password: [Disabled]

+

Set User Password

+

Power ON Password

+
+
+

Administrator password is used if Power On Password is enabled and to control change access in BIOS Setup.

+

Length is 1-14 characters. Case sensitive alphabetic, numeric and special characters are allowed.

+

Note: Administrator password must be set in order to use the User account.

+
+ → : Select Screen
+ ↑↓ : Select Item
+ Enter : Select
+ +/- : Change Opt.
+ F1 : General Help
+ F9 : Setup Defaults
+ F10 : Save ESC : Exit +
+
+
+ +
+
+ +
+

test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test

+
+ +
+ + + + +
+
+
+

Minecraft Server Status

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

LOADING...

+
+

Players : --/--

Version : -.--.-

+

Copied !

+ Play NOW at : bitwise.re +
+
+
+
+
+
+ + From 4a34a2f023c33df564511c95badea1dd03591e36 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 15:38:53 +0100 Subject: [PATCH 05/13] creation of js and css files for LoginRegister functionality (futur) --- css/LoginRegister.css | 0 js/LoginRegister.js | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 css/LoginRegister.css create mode 100644 js/LoginRegister.js diff --git a/css/LoginRegister.css b/css/LoginRegister.css new file mode 100644 index 0000000..e69de29 diff --git a/js/LoginRegister.js b/js/LoginRegister.js new file mode 100644 index 0000000..e69de29 From 9fe7b9cb67d2906affc1cc6b1d752da9eb9cef63 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 15:45:25 +0100 Subject: [PATCH 06/13] addition of a new webpage for LoginRegister --- html/LoginRegister.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 html/LoginRegister.html diff --git a/html/LoginRegister.html b/html/LoginRegister.html new file mode 100644 index 0000000..e69de29 From 21e93aebdd05e08e138088f4d6fb3e61e22d8234 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 16:40:53 +0100 Subject: [PATCH 07/13] v1 (example) login/register page --- css/LoginRegister.css | 61 +++++++++++++++++++++++++++++++++++++++++ html/LoginRegister.html | 34 +++++++++++++++++++++++ js/LoginRegister.js | 40 +++++++++++++++++++++++++++ 3 files changed, 135 insertions(+) diff --git a/css/LoginRegister.css b/css/LoginRegister.css index e69de29..b9e3dc5 100644 --- a/css/LoginRegister.css +++ b/css/LoginRegister.css @@ -0,0 +1,61 @@ +body { + font-family: Arial, sans-serif; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background-color: #f0f2f5; +} + +.container { + background: white; + padding: 2rem; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + width: 300px; +} + +.form-toggle { + text-align: center; + margin-bottom: 1.5rem; +} + +.toggle-btn { + cursor: pointer; + color: #1877f2; + border: none; + background: none; + font-size: 1.1rem; +} + +.form-container { + position: relative; +} + +.form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +input { + padding: 0.8rem; + border: 1px solid #dddfe2; + border-radius: 6px; + font-size: 1rem; +} + +button[type="submit"] { + background: #1877f2; + color: white; + padding: 0.8rem; + border: none; + border-radius: 6px; + font-size: 1rem; + cursor: pointer; +} + +.hidden { + display: none; +} \ No newline at end of file diff --git a/html/LoginRegister.html b/html/LoginRegister.html index e69de29..343264f 100644 --- a/html/LoginRegister.html +++ b/html/LoginRegister.html @@ -0,0 +1,34 @@ + + + + + Login/Register + + + + + + + + +
+
+ +
+ +
+
+ + + +
+ + +
+
+ + \ No newline at end of file diff --git a/js/LoginRegister.js b/js/LoginRegister.js index e69de29..f46d34b 100644 --- a/js/LoginRegister.js +++ b/js/LoginRegister.js @@ -0,0 +1,40 @@ + +const users = JSON.parse(localStorage.getItem('users')) || {}; + +function toggleForms() { + const loginForm = document.getElementById('loginForm'); + const registerForm = document.getElementById('registerForm'); + const toggleBtn = document.querySelector('.toggle-btn'); + + loginForm.classList.toggle('hidden'); + registerForm.classList.toggle('hidden'); + toggleBtn.textContent = loginForm.classList.contains('hidden') ? + 'Switch to Login' : 'Switch to Register'; +} + +document.getElementById('loginForm').addEventListener('submit', (e) => { + e.preventDefault(); + const username = e.target[0].value; + const password = e.target[1].value; + + if (users[username] && users[username] === password) { + alert('Login successful!'); + } else { + alert('Invalid credentials!'); + } +}); + +document.getElementById('registerForm').addEventListener('submit', (e) => { + e.preventDefault(); + const username = e.target[0].value; + const password = e.target[1].value; + + if (users[username]) { + alert('Username already exists!'); + } else { + users[username] = password; + localStorage.setItem('users', JSON.stringify(users)); + alert('Registration successful!'); + toggleForms(); + } +}); From 46a6099580a9da91c8e809fa93814b5ba555a586 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 16:41:26 +0100 Subject: [PATCH 08/13] was added to html folder --- index.html | 113 ----------------------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 18c254d..0000000 --- a/index.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - Home - - - - - - - - - -
-

Website still under developement :D

-
-
- -
-
- -
- -
- - - - -
-
-
- Rpi Apache Webpage | Copyright (C) 2024 - ֳֻẗ | Shadow, Inc. -
- -
-
-

Administrator Password Status: Not Installed

-

User Password Status: Not Installed

-

Set Administrator Password: [Disabled]

-

Set User Password

-

Power ON Password

-
-
-

Administrator password is used if Power On Password is enabled and to control change access in BIOS Setup.

-

Length is 1-14 characters. Case sensitive alphabetic, numeric and special characters are allowed.

-

Note: Administrator password must be set in order to use the User account.

-
- → : Select Screen
- ↑↓ : Select Item
- Enter : Select
- +/- : Change Opt.
- F1 : General Help
- F9 : Setup Defaults
- F10 : Save ESC : Exit -
-
-
- -
-
- -
-

test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test

-
- -
- - - - -
-
-
-

Minecraft Server Status

- -
-
- - - - - - - - - - -
- - - -

LOADING...

-
-

Players : --/--

Version : -.--.-

-

Copied !

- Play NOW at : bitwise.re -
-
-
-
-
-
- - From 2aa9c1519be7659c77a1e14617238684c131f6b0 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 16:48:17 +0100 Subject: [PATCH 09/13] link to LoginRegister.html addd in index.html --- html/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index 84b23a2..7e7826d 100644 --- a/html/index.html +++ b/html/index.html @@ -69,7 +69,7 @@
-

test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test-test

+

login / register

From 740759f7b42553002c396bbedb48b7fab015343d Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 16:53:37 +0100 Subject: [PATCH 10/13] path correction --- html/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/index.html b/html/index.html index 7e7826d..4340899 100644 --- a/html/index.html +++ b/html/index.html @@ -4,11 +4,11 @@ Home - - + + - +
From 592a4fb1c9a29d0a29ecb6a62edd5d288138b6e1 Mon Sep 17 00:00:00 2001 From: 20062021 Date: Mon, 3 Feb 2025 16:55:54 +0100 Subject: [PATCH 11/13] path correction --- html/LoginRegister.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/LoginRegister.html b/html/LoginRegister.html index 343264f..9e85503 100644 --- a/html/LoginRegister.html +++ b/html/LoginRegister.html @@ -5,10 +5,10 @@ Login/Register - + - +
From f818623bded83d3d702c9c79b3f0f8174c24cf51 Mon Sep 17 00:00:00 2001 From: C0dex73 Date: Mon, 3 Feb 2025 17:56:08 +0100 Subject: [PATCH 12/13] fixed file architecture and removed relative paths --- html/index.html => index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename html/index.html => index.html (91%) diff --git a/html/index.html b/index.html similarity index 91% rename from html/index.html rename to index.html index 4340899..9475876 100644 --- a/html/index.html +++ b/index.html @@ -4,11 +4,11 @@ Home - - + + - +
@@ -69,7 +69,7 @@
@@ -88,8 +88,8 @@ From d122b71a98670aa464a2caca3e1240459b34da56 Mon Sep 17 00:00:00 2001 From: C0dex73 Date: Mon, 3 Feb 2025 20:05:13 +0100 Subject: [PATCH 13/13] moved register option to left bar and added quick login to it --- css/index.css | 39 +++++++++++++++++++++++++++++---------- html/LoginRegister.html | 6 +++--- index.html | 18 ++++++++++++------ 3 files changed, 44 insertions(+), 19 deletions(-) diff --git a/css/index.css b/css/index.css index fad908f..45e9257 100644 --- a/css/index.css +++ b/css/index.css @@ -1,3 +1,7 @@ +html, body { + height:100% +} + body { display: flex; border: 0; @@ -42,7 +46,7 @@ header>p { .main-container>div { display: flex; - + height:100% } .side-bubble { @@ -53,7 +57,6 @@ header>p { } .middle-pane { - align-self: center; width: 70%; } @@ -266,16 +269,32 @@ header>p { color: #000; } -.TEST-div { - width: auto; +.left.side-pane { background-color: #c0c0c0; color: #000; - border: 2px solid #000; - padding: 10px; - box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); - margin: 31px; + border-right: 2px solid #000; + padding: 5px; + height: 100%; } -.test-p { - text-align: center; +.sep { + height: 5px; + margin-top: 5px; + margin-bottom: 5px; + border-top: 2px black solid; + border-bottom: 2px black solid; + width: 100%; + align-self: center; +} + +#qklogin input { + margin-bottom: 3px; +} + +#qklogin button { + width:45% +} + +#qklogin p { + display:inline } \ No newline at end of file diff --git a/html/LoginRegister.html b/html/LoginRegister.html index 9e85503..c0713b2 100644 --- a/html/LoginRegister.html +++ b/html/LoginRegister.html @@ -13,17 +13,17 @@
- +
-
+ - + diff --git a/index.html b/index.html index 9475876..0cdfa48 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,18 @@
- + +
+

Quick Login

+ + + + +

Or register now !

+ + +
+
@@ -67,11 +78,6 @@
- - -
- - + +

LOADING...