mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
code style
Some checks are pending
Docker / Linting Checks (push) Waiting to run
Docker / Docker Build & Push (push) Blocked by required conditions
Docs / Linting Checks (push) Waiting to run
Docs / Test Build (push) Blocked by required conditions
Docs / Build & Deploy (push) Blocked by required conditions
Some checks are pending
Docker / Linting Checks (push) Waiting to run
Docker / Docker Build & Push (push) Blocked by required conditions
Docs / Linting Checks (push) Waiting to run
Docs / Test Build (push) Blocked by required conditions
Docs / Build & Deploy (push) Blocked by required conditions
This commit is contained in:
@@ -167,15 +167,15 @@ const headerStyles = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function getAllServices(services) {
|
function getAllServices(services) {
|
||||||
function get(sg) {
|
function getServices(group) {
|
||||||
let nestedServices = [...sg.services];
|
let nestedServices = [...group.services];
|
||||||
if (sg.groups.length > 0) {
|
if (group.groups.length > 0) {
|
||||||
nestedServices = [...nestedServices, ...sg.groups.map(get).flat()];
|
nestedServices = [...nestedServices, ...group.groups.map(getServices).flat()];
|
||||||
}
|
}
|
||||||
return nestedServices;
|
return nestedServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
return [...services.map(get).flat()];
|
return [...services.map(getServices).flat()];
|
||||||
}
|
}
|
||||||
|
|
||||||
function Home({ initialSettings }) {
|
function Home({ initialSettings }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user