Merge branch 'main' into configurable-widget-fields

This commit is contained in:
Jason Fischer 2022-09-29 21:15:56 -07:00
commit c533966050
No known key found for this signature in database
4 changed files with 13 additions and 9 deletions

View file

@ -170,8 +170,8 @@
"transferRate": "Bewerten"
},
"authentik": {
"users": "Users",
"loginsLast24H": "Logins (24h)",
"failedLoginsLast24H": "Failed Logins (24h)"
"users": "Benutzer",
"loginsLast24H": "Anmeldungen (24h)",
"failedLoginsLast24H": "fehlerhafte Anmeldungen (24h)"
}
}

View file

@ -170,8 +170,8 @@
"transferRate": "Débit"
},
"authentik": {
"users": "Users",
"loginsLast24H": "Logins (24h)",
"failedLoginsLast24H": "Failed Logins (24h)"
"users": "Utilisateurs",
"loginsLast24H": "Cnx. (24h)",
"failedLoginsLast24H": "Cnx. échouées (24h)"
}
}

View file

@ -170,8 +170,8 @@
"domain_count": "Domenii"
},
"authentik": {
"users": "Users",
"loginsLast24H": "Logins (24h)",
"failedLoginsLast24H": "Failed Logins (24h)"
"users": "Utilizatori",
"loginsLast24H": "Autentificări (24h)",
"failedLoginsLast24H": "Conectări eșuate (24h)"
}
}

View file

@ -14,6 +14,8 @@ export async function bookmarksResponse() {
const fileContents = await fs.readFile(bookmarksYaml, "utf8");
const bookmarks = yaml.load(fileContents);
if (!bookmarks) return [];
// map easy to write YAML objects into easy to consume JS arrays
const bookmarksArray = bookmarks.map((group) => ({
name: Object.keys(group)[0],
@ -33,6 +35,8 @@ export async function widgetsResponse() {
const fileContents = await fs.readFile(widgetsYaml, "utf8");
const widgets = yaml.load(fileContents);
if (!widgets) return [];
// map easy to write YAML objects into easy to consume JS arrays
const widgetsArray = widgets.map((group) => ({
type: Object.keys(group)[0],