From 358fe1099b70d966f9153321547e127dcf6bfdc8 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Mon, 5 Aug 2024 01:28:16 +0200 Subject: [PATCH] html/css work Signed-off-by: Stephan Richter --- Readme.md | 5 + .../src/main/resources/de/clients.html | 45 +++--- .../src/main/resources/de/edit_client.html | 43 ++++++ .../src/main/resources/de/login.html | 35 +++++ .../src/main/resources/de/logout.html | 12 ++ .../src/main/resources/de/navigation.html | 3 +- .../src/main/resources/de/new_client.html | 42 +++++ .../src/main/resources/de/settings.html | 76 +++++++++ .../src/main/resources/en/clients.html | 45 +++--- .../src/main/resources/en/edit_client.html | 60 +++---- .../src/main/resources/en/index.html | 6 +- .../src/main/resources/en/login.html | 46 +++--- .../src/main/resources/en/logout.html | 2 +- .../src/main/resources/en/navigation.html | 1 - .../src/main/resources/en/new_client.html | 61 ++++---- .../src/main/resources/en/scripts/clients.js | 2 +- .../src/main/resources/en/settings.html | 146 +++++++++--------- .../src/main/resources/en/style.css | 48 +++++- 18 files changed, 469 insertions(+), 209 deletions(-) create mode 100644 Readme.md create mode 100644 de.srsoftware.oidc.web/src/main/resources/de/edit_client.html create mode 100644 de.srsoftware.oidc.web/src/main/resources/de/login.html create mode 100644 de.srsoftware.oidc.web/src/main/resources/de/logout.html create mode 100644 de.srsoftware.oidc.web/src/main/resources/de/new_client.html create mode 100644 de.srsoftware.oidc.web/src/main/resources/de/settings.html diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..16523c5 --- /dev/null +++ b/Readme.md @@ -0,0 +1,5 @@ +# LightOIDC + +This aims to be a [specification] compliant OpenID connect provider with minimal footprint. + +[specification]: https://openid.net/specs/openid-connect-core-1_0.html \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/de/clients.html b/de.srsoftware.oidc.web/src/main/resources/de/clients.html index 7642134..f34436a 100644 --- a/de.srsoftware.oidc.web/src/main/resources/de/clients.html +++ b/de.srsoftware.oidc.web/src/main/resources/de/clients.html @@ -9,27 +9,28 @@ -

Clients

- -
- bei LightOIDC registrierte Clients: - - - - - - - - - - - - - -
ClientIDWeiterleitungs-URLsAktionen
- -
- -
+
+

Clients

+
+ bei LightOIDC registrierte Clients: + + + + + + + + + + + + + +
ClientIDWeiterleitungs-URLsAktionen
+ +
+ +
+
diff --git a/de.srsoftware.oidc.web/src/main/resources/de/edit_client.html b/de.srsoftware.oidc.web/src/main/resources/de/edit_client.html new file mode 100644 index 0000000..7f09199 --- /dev/null +++ b/de.srsoftware.oidc.web/src/main/resources/de/edit_client.html @@ -0,0 +1,43 @@ + + + + Light OIDC + + + + + + + +
+

Client bearbeiten

+
+ Daten + + + + + + + + + + + + + + + + + + + + + +
ID
Name
Geheimnis
Weiterleitungs-URIs + +
+
+
+ + \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/de/login.html b/de.srsoftware.oidc.web/src/main/resources/de/login.html new file mode 100644 index 0000000..a6cd03c --- /dev/null +++ b/de.srsoftware.oidc.web/src/main/resources/de/login.html @@ -0,0 +1,35 @@ + + + + Light OIDC + + + + + +
+

Anmeldung

+
+ Zugangsdaten + + + + + + + + + + + + + + + + + +
Benutzername
Passwort
+
+
+ + \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/de/logout.html b/de.srsoftware.oidc.web/src/main/resources/de/logout.html new file mode 100644 index 0000000..04560d4 --- /dev/null +++ b/de.srsoftware.oidc.web/src/main/resources/de/logout.html @@ -0,0 +1,12 @@ + + + + Light OIDC + + + + + +
Sie werden abgemeldet…
+ + \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/de/navigation.html b/de.srsoftware.oidc.web/src/main/resources/de/navigation.html index 75f6d98..7ba2a95 100644 --- a/de.srsoftware.oidc.web/src/main/resources/de/navigation.html +++ b/de.srsoftware.oidc.web/src/main/resources/de/navigation.html @@ -1,6 +1,5 @@ Übersicht Clients Benutzer -Spec Einstellungen -Ausloggen +Abmelden diff --git a/de.srsoftware.oidc.web/src/main/resources/de/new_client.html b/de.srsoftware.oidc.web/src/main/resources/de/new_client.html new file mode 100644 index 0000000..ccc89ae --- /dev/null +++ b/de.srsoftware.oidc.web/src/main/resources/de/new_client.html @@ -0,0 +1,42 @@ + + + + Light OIDC + + + + + + + +
+ +

neuen Client hinzufügen

+
+ Einstellungen + + + + + + + + + + + + + + + + + + + + + +
Client-Id
Client-Name
Client-Geheimnus
Weiterleitungs-URLs
+
+
+ + \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/de/settings.html b/de.srsoftware.oidc.web/src/main/resources/de/settings.html new file mode 100644 index 0000000..266b09a --- /dev/null +++ b/de.srsoftware.oidc.web/src/main/resources/de/settings.html @@ -0,0 +1,76 @@ + + + + Light OIDC + + + + + + + +
+

Einstellungen

+
+
+ + Benutzer + + + + + + + + + + + + + + + + + + + + + + +
Benutzername
E-Mail
ID
+
+
+ + Passwort + + + + + + + + + + + + + + + + + + + + + + + + + + +
altes Passwort
Neues Passwort
Passwort wiederholen
+
+
+
+ + \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/clients.html b/de.srsoftware.oidc.web/src/main/resources/en/clients.html index 7cdf32d..d2a1ef6 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/clients.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/clients.html @@ -9,28 +9,29 @@ -

Clients

+
+

Clients

+
+ These are clients that are registered with LightOIDC: + + + + + + + + + + + + -
- These are clients that are registered with LightOIDC: -
ClientIDRedirect URLsActions
+ +
- - - - - - - - - - - - -
ClientIDRedirect URLsActions
- -
- -
- Umbrella + + + + +
\ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/edit_client.html b/de.srsoftware.oidc.web/src/main/resources/en/edit_client.html index 0563937..948e52b 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/edit_client.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/edit_client.html @@ -8,34 +8,36 @@ - -

Edit client

-
- Data - - - - - - - - - - - - - - - - - - - - - -
ID
Name
Secret
Redirect URIs - -
-
+ +
+

Edit client

+
+ Data + + + + + + + + + + + + + + + + + + + + + +
ID
Name
Secret
Redirect URIs + +
+
+
\ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/index.html b/de.srsoftware.oidc.web/src/main/resources/en/index.html index 124754f..e6b2306 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/index.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/index.html @@ -7,7 +7,9 @@ - -

Welcome!

+ +
+

Welcome!

+
\ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/login.html b/de.srsoftware.oidc.web/src/main/resources/en/login.html index 41e948e..49c9a21 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/login.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/login.html @@ -7,27 +7,29 @@ -

Login

-
- User credentials - - - - - - - - - - - - - - - - - -
User name
Password
-
+
+

Login

+
+ User credentials + + + + + + + + + + + + + + + + + +
User name
Password
+
+
\ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/logout.html b/de.srsoftware.oidc.web/src/main/resources/en/logout.html index f0cbbcf..0cb94ff 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/logout.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/logout.html @@ -7,6 +7,6 @@ - You are being logged out… +
You are being logged out…
\ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/navigation.html b/de.srsoftware.oidc.web/src/main/resources/en/navigation.html index e978097..3d85631 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/navigation.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/navigation.html @@ -1,6 +1,5 @@ Dashboard Clients Users -Spec Settings Logout diff --git a/de.srsoftware.oidc.web/src/main/resources/en/new_client.html b/de.srsoftware.oidc.web/src/main/resources/en/new_client.html index 97c4db6..521e12a 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/new_client.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/new_client.html @@ -7,33 +7,36 @@ - - -

Add new client

-
- Settings - - - - - - - - - - - - - - - - - - - - - -
client id
client name
client secret
redirect urls
-
- + + +
+ +

Add new client

+
+ Settings + + + + + + + + + + + + + + + + + + + + + +
client id
client name
client secret
redirect urls
+
+
+ \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js b/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js index 9aba0cb..fc3bfd8 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js +++ b/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js @@ -8,7 +8,7 @@ async function handleClients(response){ for (let id in clients){ var row = document.createElement("tr"); var client = clients[id]; - row.innerHTML = ""+client.name+"\n"+id+"\n"+client.redirect_uris.join("
")+'\n'; + row.innerHTML = ""+client.name+"\n"+id+"\n"+client.redirect_uris.join("
")+'\n'; bottom.parentNode.insertBefore(row,bottom); } } diff --git a/de.srsoftware.oidc.web/src/main/resources/en/settings.html b/de.srsoftware.oidc.web/src/main/resources/en/settings.html index 0485d4f..2186330 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/settings.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/settings.html @@ -1,74 +1,76 @@ - - - Light OIDC - - - - - - - -

Settings

-
-
- - Basic settings - - - - - - - - - - - - - - - - - - - - - - -
User name
Email
ID
-
-
- - Password - - - - - - - - - - - - - - - - - - - - - - - - - - -
Old password
New Password
Repeat Password
-
-
- + + + Light OIDC + + + + + + + +
+

Settings

+
+
+ + User settings + + + + + + + + + + + + + + + + + + + + + + +
User name
Email
ID
+
+
+ + Password + + + + + + + + + + + + + + + + + + + + + + + + + + +
Old password
New Password
Repeat Password
+
+
+
+ \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/style.css b/de.srsoftware.oidc.web/src/main/resources/en/style.css index f0ba8c8..441e651 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/style.css +++ b/de.srsoftware.oidc.web/src/main/resources/en/style.css @@ -1,24 +1,55 @@ body { - background: black; + background: rgb(48,48,48); color: white; + font-family: "Roboto", "Helvetica", "Arial", sans-serif; + text-align: center; } +a{ + color: rgb(108, 182, 255); + text-decoration: none; + font-weight: bold; +} +#content { + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + width: 100%; +} + +button { + background: royalblue; + border: none; + border-radius: 7px; + padding: 10px; + color: white; + margin: 2px; +} + +.danger{ + background: crimson; +} body fieldset { border-radius: 10px; display: inline-block; } -a { - color: yellow; +.wide input, textarea{ + width: 600px; } input, textarea{ - width: 600px; + border: none; + border-radius: 3px; + background-color: rgb(38, 103, 152); + padding: 7px; + color: white; + margin: 2px; } input:disabled{ - color: white; - background-color: gray; + color: indigo; } fieldset th, @@ -26,6 +57,11 @@ form th{ text-align: right; } +fieldset .centered th, +form .centered th{ + text-align: center; +} + .hidden{ display: none; }