Browse Source

deutsche Übersetzung reaktiviert und ergänzt

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
sqlite
Stephan Richter 2 months ago
parent
commit
ae38f489b8
  1. 10
      de.srsoftware.oidc.web/src/main/resources/DE/clients.html
  2. 13
      de.srsoftware.oidc.web/src/main/resources/DE/edit_client.html
  3. 18
      de.srsoftware.oidc.web/src/main/resources/DE/index.html
  4. 29
      de.srsoftware.oidc.web/src/main/resources/DE/login.html
  5. 12
      de.srsoftware.oidc.web/src/main/resources/DE/logout.html
  6. 1
      de.srsoftware.oidc.web/src/main/resources/DE/navigation.html
  7. 17
      de.srsoftware.oidc.web/src/main/resources/DE/new_client.html
  8. 54
      de.srsoftware.oidc.web/src/main/resources/DE/reset.html
  9. 68
      de.srsoftware.oidc.web/src/main/resources/DE/settings.html
  10. 55
      de.srsoftware.oidc.web/src/main/resources/DE/users.html
  11. 4
      de.srsoftware.oidc.web/src/main/resources/en/scripts/settings.js

10
de.srsoftware.oidc.web/src/main/resources/DE/clients.html

@ -6,31 +6,35 @@ @@ -6,31 +6,35 @@
<script src="scripts/user.js"></script>
<script src="scripts/clients.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
<div id="content">
<h1>Clients</h1>
<fieldset>
<legend>bei LightOIDC registrierte Clients:</legend>
<legend>Diese Clients sind bei LightOIDC registriert:</legend>
<table>
<tr class="centered">
<th>Client</th>
<th>ID</th>
<th>Weiterleitungs-URLs</th>
<th>Ziel-Seite</th>
<th>Aktionen</th>
</tr>
<tr id="bottom">
<td></td>
<td></td>
<td></td>
<td>
<button onclick="window.location.href='new_client.html';">Neuen Client hinzufügen…</button>
</td>
<td></td>
</tr>
</table>
<span class="hidden" id="message">Client "{}" wirklich löschen?</span>
<span class="hidden" id="message">Client „{}“ wirklich löschen?</span>
</fieldset>
</div>
</body>
</html>
</html>

13
de.srsoftware.oidc.web/src/main/resources/DE/edit_client.html

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
<script src="scripts/user.js"></script>
<script src="scripts/edit_client.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
@ -14,14 +15,14 @@ @@ -14,14 +15,14 @@
<fieldset class="wide">
<legend>Daten</legend>
<table>
<tr>
<th>ID</th>
<td><input type="text" disabled="true" id="client-id" /></td>
</tr>
<tr>
<th>Name</th>
<td><input type="text" id="client-name" /></td>
</tr>
<tr>
<th>ID</th>
<td><input type="text" disabled="true" id="client-id" /></td>
</tr>
<tr>
<th>Geheimnis</th>
<td><input type="text" id="client-secret" /></td>
@ -32,6 +33,10 @@ @@ -32,6 +33,10 @@
<textarea id="redirect-urls"></textarea>
</td>
</tr>
<tr>
<th>Ziel-Seite</th>
<td><input type="text" id="landing-page" /></td>
</tr>
<tr>
<td></td>
<td><button type="button" id="button" onclick="updateClient();">Aktualisieren</button></td>

18
de.srsoftware.oidc.web/src/main/resources/DE/index.html

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
<html>
<head>
<meta charset="utf-8">
<title>Light OIDC</title>
<script src="scripts/common.js"></script>
<script src="scripts/user.js"></script>
<script src="scripts/index.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
<div id="content">
<h1 id="welcome">Willkommen, {}!</h1>
<h3 id="client_hint" style="display: none">Dies sind die von Ihnen autorisierten Clients:</h3>
</div>
</body>
</html>

29
de.srsoftware.oidc.web/src/main/resources/DE/login.html

@ -5,16 +5,20 @@ @@ -5,16 +5,20 @@
<script src="scripts/common.js"></script>
<script src="scripts/login.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="content">
<h1>SRSoftware Light OIDC</h1>
<fieldset id="login">
<legend>Anmeldung</legend>
<legend>Benutzer-Anmeldung</legend>
<table>
<tr>
<th>Benutzername</th>
<td><input type="text" id="username" placeholder="Benutzername *"/></td>
<td style="position: relative">
<input type="text" id="username" placeholder="Benutzername *"/>
<span id="bubble" style="display: none">Geben Sie einen Benutzernamen ein, um ihr Passwort zurückzusetzen!</span>
</td>
</tr>
<tr>
<th>Passwort</th>
@ -22,17 +26,32 @@ @@ -22,17 +26,32 @@
</tr>
<tr id="error" style="display: none">
<th>Fehler</th>
<td class="warning">Anmeldung nicht erfolgreich!</td>
<td class="warning">Anmeldung fehlgeschlagen!</td>
</tr>
<tr>
<td colspan="2">
<label>
<input type="checkbox" id="trust" name="trust" checked="checked"/>
Sitzung beenden, wenn Browser geschlossen wird.
</label>
</td>
</tr>
<tr>
<td></td>
<td><button type="button" onClick="tryLogin()">Anmelden</button></td>
</tr>
<tr>
<td></td>
<td><button type="button" id="resetBtn" class="light" onClick="resetPw()">Passwort zurücksetzen?</button></td>
</tr>
</table>
</fieldset>
<div id="sent" class="warning" style="display: none">
Ein Link zum Zurücksetzen ihres Passworts wurde ihnen per Mail gesendet.
</div>
</div>
<div id="ad">
Dieser schlanke Login-Dienst wurde entwickelt von <b>SRSoftware</b>. <a href="https://git.srsoftware.de/StephanRichter/LightOidc">Mehr erfahren…</a>
Dieser minimale Login-Service wird durch <b>SRSoftware</b> zur Verfügung gestellt. <a href="https://git.srsoftware.de/StephanRichter/LightOidc">Mehr erfahren…</a>
</div>
</body>
</html>
</html>

12
de.srsoftware.oidc.web/src/main/resources/DE/logout.html

@ -1,12 +0,0 @@ @@ -1,12 +0,0 @@
<html>
<head>
<meta charset="utf-8">
<title>Light OIDC</title>
<script src="scripts/common.js"></script>
<script src="scripts/logout.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="content">Sie werden abgemeldet…</div>
</body>
</html>

1
de.srsoftware.oidc.web/src/main/resources/DE/navigation.html

@ -3,4 +3,5 @@ @@ -3,4 +3,5 @@
<a href="users.html" class="MANAGE_USERS">Benutzer</a>
<a href="settings.html">Einstellungen</a>
<a href="todo.html">TODO</a>
<a href="https://openid.net/specs/openid-connect-core-1_0.html" target="_blank">Spec</a>
<a href="logout.html">Abmelden</a>

17
de.srsoftware.oidc.web/src/main/resources/DE/new_client.html

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
<script src="scripts/user.js"></script>
<script src="scripts/new_client.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
@ -16,21 +17,25 @@ @@ -16,21 +17,25 @@
<legend>Einstellungen</legend>
<table>
<tr>
<th>Client-Id</th>
<td><input type="text" size="50" id="client-id"></td>
<th>Name des Clients</th>
<td><input type="text" size="50" id="client-name"></td>
</tr>
<tr>
<th>Client-Name</th>
<td><input type="text" size="50" id="client-name"></td>
<th>Client-ID</th>
<td><input type="text" size="50" id="client-id"></td>
</tr>
<tr>
<th>Client-Geheimnus</th>
<th>Client-Geheimnis</th>
<td><input type="text" size="50" id="client-secret"></td>
</tr>
<tr>
<th>Weiterleitungs-URLs</th>
<td><textarea cols="50" rows="5" id="redirect-urls"></textarea></td>
</tr>
<tr>
<th>Zielseite</th>
<td><input type="text" size="50" id="landing-page" /></td>
</tr>
<tr>
<td></td>
<td><button id="button" type="button" onclick="addClient()">Client speichern</button></td>
@ -39,4 +44,4 @@ @@ -39,4 +44,4 @@
</fieldset>
</div>
</body>
</html>
</html>

54
de.srsoftware.oidc.web/src/main/resources/DE/reset.html

@ -0,0 +1,54 @@ @@ -0,0 +1,54 @@
<html>
<head>
<meta charset="utf-8">
<title>Light OIDC</title>
<script src="scripts/common.js"></script>
<script src="scripts/reset.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
<div id="content">
<h1>Reset password</h1>
<div>Willkommen! Du kannst jetzt dein Passwort zurücksetzen!</div>
<form>
<fieldset>
<legend>
Passwort
</legend>
<table>
<tr>
<th>Neues Passwort</th>
<td><input id="newpass1" type="password"></td>
</tr>
<tr>
<th>Passwort wiederholen</th>
<td><input id="newpass2" type="password" onkeydown="passKeyDown()"></td>
</tr>
<tr id="password_mismatch" style="display: none">
<th>Error</th>
<td class="warning">neues Passwort und dessen Wiederholung stimmen nicht überein!</td>
</tr>
<tr id="weak_password" style="display: none">
<th>Error</th>
<td class="warning">Dein Passwort ist zu einfach!</td>
</tr>
<tr id="missing_token" style="display: none">
<th>Error</th>
<td class="warning">Zugriffs-Token fehlt!</td>
</tr>
<tr id="invalid_token" style="display: none">
<th>Error</th>
<td class="warning">Zugriffs-Token gefunden, ist aber ungültig!</td>
</tr>
<tr>
<td></td>
<td><button id="passBtn" type="button" onClick="updatePass()">Aktualisieren</button></td>
</tr>
</table>
</fieldset>
</form>
</div>
</body>
</html>

68
de.srsoftware.oidc.web/src/main/resources/DE/settings.html

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
<script src="scripts/user.js"></script>
<script src="scripts/settings.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
@ -14,7 +15,7 @@ @@ -14,7 +15,7 @@
<form>
<fieldset>
<legend>
Benutzer
Benutzer-Einstellungen
</legend>
<table>
<tr>
@ -30,12 +31,12 @@ @@ -30,12 +31,12 @@
<td><input id="email" type="email"></td>
</tr>
<tr>
<th>ID</th>
<td><input id="uuid" type="text" disabled="true"></td>
</tr>
<tr id="update_error" style="display: none">
<th>Fehler</th>
<td class="warning">Aktualisieren der Einstellungen fehlgeschlagen!</td>
<th>Sitzungs-Länge</th>
<td>
<input id="session_duration" type="range" value="50" min="1" max="103" oninput="durationUpdate()"/>
<br/>
<span id="days"></span> Tage, <span id="hours"></span> Stunden, <span id="minutes"></span> Minuten
</td>
</tr>
<tr>
<td></td>
@ -53,8 +54,12 @@ @@ -53,8 +54,12 @@
<td><input id="oldpass" type="password"></td>
</tr>
<tr>
<th></th>
<td><input type="text" style="visibility: hidden"></td>
<th>ID</th>
<td><input id="uuid" type="text" disabled="true"></td>
</tr>
<tr id="update_error" style="display: none">
<th>Fehler</th>
<td class="warning">Aktualisierung der Einstellungen fehlgeschlagen!</td>
</tr>
<tr>
<th>Neues Passwort</th>
@ -65,8 +70,8 @@ @@ -65,8 +70,8 @@
<td><input id="newpass2" type="password" onkeydown="passKeyDown()"></td>
</tr>
<tr id="wrong_password" style="display: none">
<th>Error</th>
<td class="warning">Wrong password!</td>
<th>Fehler</th>
<td class="warning">falsches Passwort!</td>
</tr>
<tr id="password_mismatch" style="display: none">
<th>Fehler</th>
@ -78,7 +83,46 @@ @@ -78,7 +83,46 @@
</tr>
</table>
</fieldset>
<br/>
<fieldset id="mail_settings" style="display: none">
<legend>
Mail-Einstellungen
</legend>
<table>
<tr>
<th>Smtp-Host</th>
<td><input type="text" id="smtp_host" placeholder="Smtp-Host"></td>
</tr>
<tr>
<th>Smtp-Port</th>
<td><input type="number" id="smtp_port"></td>
</tr>
<tr>
<th>Smtp-Nutzer</th>
<td><input type="text" id="smtp_user" placeholder="Smtp-Nutzer"></td>
</tr>
<tr>
<th>Smtp-Passwort</th>
<td><input type="password" id="smtp_pass" placeholder="Passwort"></td>
</tr>
<tr>
<th>Sicherheit</th>
<td>
<label>
<input type="checkbox" id="smtp_auth"> Auth
</label>
<label>
<input type="checkbox" id="start_tls"> StartTLS
</label>
</td>
</tr>
<tr>
<td></td>
<td><button id="smtpBtn" type="button" onClick="updateSmtp()">Aktualisieren</button></td>
</tr>
</table>
</fieldset>
</form>
</div>
</body>
</html>
</html>

55
de.srsoftware.oidc.web/src/main/resources/DE/users.html

@ -0,0 +1,55 @@ @@ -0,0 +1,55 @@
<html>
<head>
<meta charset="utf-8">
<title>Light OIDC</title>
<script src="scripts/common.js"></script>
<script src="scripts/user.js"></script>
<script src="scripts/users.js"></script>
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav></nav>
<div id="content">
<h1>Users</h1>
<fieldset>
<legend>Dies sind die bei LightOIDC registrierten Benutzer:</legend>
<table class="centered">
<tr>
<th>Benutzername</th>
<th>Anzeigename</th>
<th>E-Mail</th>
<th>ID</th>
<th style="display: none" class="permissions">Berechtigungen</th>
<th>Aktionen</th>
</tr>
<tr id="bottom">
<td>
<input value="" type="text" id="username" placeholder="Benutzername" />
</td>
<td>
<input value="" type="text" id="realname" placeholder="Anzeigename" />
</td>
<td>
<input value="" type="text" id="email" placeholder="E-Mail-Adresse" autocomplete="off" />
</td>
<td>
<input value="" type="password" id="pw" placeholder="Passwort" autocomplete="new-password" />
</td>
<td>
<input value="" type="password" id="pw2" placeholder="Passwort wiederholen" autocomplete="repeat-password" />
</td>
<td>
<button onclick="addUser()">Neuen Nutzer anlegen…</button>
</td>
</tr>
</table>
<span class="hidden" id="message">Really remove client "{}"?</span>
<span class="error" style="display: none" id="missing_user_id">Server did not receive a valid user_id for removal!</span>
<span class="error" style="display: none" id="missing_confirmation">Server did not receive confirmation for this request!</span>
<span class="error" style="display: none" id="unknown_user">The backend does not know this user!</span>
</fieldset>
</div>
</body>
</html>

4
de.srsoftware.oidc.web/src/main/resources/en/scripts/settings.js

@ -65,7 +65,7 @@ function handleResponse(response){ @@ -65,7 +65,7 @@ function handleResponse(response){
},10000);
}
function handleSettings(response){
function handleMailSettings(response){
console.log('handleSettings(…)',response);
if (response.ok){
response.json().then(json => {
@ -180,5 +180,5 @@ function durationUpdate(){ @@ -180,5 +180,5 @@ function durationUpdate(){
document.addEventListener("DOMContentLoaded", function(event) { // wait until page loaded
fillForm();
fetch("/api/email/settings",{credentials:'include'}).then(handleSettings);
fetch("/api/email/settings",{credentials:'include'}).then(handleMailSettings);
});
Loading…
Cancel
Save