mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 14:03:40 +01:00
Merge branch 'main' into configurable-widget-fields
This commit is contained in:
commit
c533966050
@ -170,8 +170,8 @@
|
|||||||
"transferRate": "Bewerten"
|
"transferRate": "Bewerten"
|
||||||
},
|
},
|
||||||
"authentik": {
|
"authentik": {
|
||||||
"users": "Users",
|
"users": "Benutzer",
|
||||||
"loginsLast24H": "Logins (24h)",
|
"loginsLast24H": "Anmeldungen (24h)",
|
||||||
"failedLoginsLast24H": "Failed Logins (24h)"
|
"failedLoginsLast24H": "fehlerhafte Anmeldungen (24h)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,8 +170,8 @@
|
|||||||
"transferRate": "Débit"
|
"transferRate": "Débit"
|
||||||
},
|
},
|
||||||
"authentik": {
|
"authentik": {
|
||||||
"users": "Users",
|
"users": "Utilisateurs",
|
||||||
"loginsLast24H": "Logins (24h)",
|
"loginsLast24H": "Cnx. (24h)",
|
||||||
"failedLoginsLast24H": "Failed Logins (24h)"
|
"failedLoginsLast24H": "Cnx. échouées (24h)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,8 +170,8 @@
|
|||||||
"domain_count": "Domenii"
|
"domain_count": "Domenii"
|
||||||
},
|
},
|
||||||
"authentik": {
|
"authentik": {
|
||||||
"users": "Users",
|
"users": "Utilizatori",
|
||||||
"loginsLast24H": "Logins (24h)",
|
"loginsLast24H": "Autentificări (24h)",
|
||||||
"failedLoginsLast24H": "Failed Logins (24h)"
|
"failedLoginsLast24H": "Conectări eșuate (24h)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@ export async function bookmarksResponse() {
|
|||||||
const fileContents = await fs.readFile(bookmarksYaml, "utf8");
|
const fileContents = await fs.readFile(bookmarksYaml, "utf8");
|
||||||
const bookmarks = yaml.load(fileContents);
|
const bookmarks = yaml.load(fileContents);
|
||||||
|
|
||||||
|
if (!bookmarks) return [];
|
||||||
|
|
||||||
// map easy to write YAML objects into easy to consume JS arrays
|
// map easy to write YAML objects into easy to consume JS arrays
|
||||||
const bookmarksArray = bookmarks.map((group) => ({
|
const bookmarksArray = bookmarks.map((group) => ({
|
||||||
name: Object.keys(group)[0],
|
name: Object.keys(group)[0],
|
||||||
@ -33,6 +35,8 @@ export async function widgetsResponse() {
|
|||||||
const fileContents = await fs.readFile(widgetsYaml, "utf8");
|
const fileContents = await fs.readFile(widgetsYaml, "utf8");
|
||||||
const widgets = yaml.load(fileContents);
|
const widgets = yaml.load(fileContents);
|
||||||
|
|
||||||
|
if (!widgets) return [];
|
||||||
|
|
||||||
// map easy to write YAML objects into easy to consume JS arrays
|
// map easy to write YAML objects into easy to consume JS arrays
|
||||||
const widgetsArray = widgets.map((group) => ({
|
const widgetsArray = widgets.map((group) => ({
|
||||||
type: Object.keys(group)[0],
|
type: Object.keys(group)[0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user