rewrite website

This commit is contained in:
2025-10-13 17:22:49 +02:00
parent a6d910f56a
commit 32f28e5324
263 changed files with 17904 additions and 14451 deletions

8
src/util/objects.ts Normal file
View File

@@ -0,0 +1,8 @@
export function getObjectEntryByKey(key: string, data: { [key: string]: any }): any | undefined {
let entry = data;
for (const part of key.split('.')) {
entry = entry[part];
if (entry === null || typeof entry !== 'object') return entry;
}
return entry;
}