mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-04 14:32:15 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96431c6085 | ||
|
|
f64aa50cc0 |
@@ -25,6 +25,10 @@ function parseServicesToGroups(services) {
|
|||||||
const serviceGroupServices = [];
|
const serviceGroupServices = [];
|
||||||
serviceGroup[name].forEach((entries) => {
|
serviceGroup[name].forEach((entries) => {
|
||||||
const entryName = Object.keys(entries)[0];
|
const entryName = Object.keys(entries)[0];
|
||||||
|
if (!entries[entryName]) {
|
||||||
|
logger.warn(`Error parsing service "${entryName}" from config. Ensure required fields are present.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (Array.isArray(entries[entryName])) {
|
if (Array.isArray(entries[entryName])) {
|
||||||
groups = groups.concat(parseServicesToGroups([{ [entryName]: entries[entryName] }]));
|
groups = groups.concat(parseServicesToGroups([{ [entryName]: entries[entryName] }]));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ export default function Container({ children, widget, error = null, chart = true
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames("service-container relative", chart ? "h-[120px]" : "")}>
|
<div className={classNames("service-container", chart ? "chart relative h-[120px]" : "")}>
|
||||||
{children}
|
{children}
|
||||||
<div className={`absolute top-0 right-0 bottom-0 left-0 overflow-clip pointer-events-none ${className}`} />
|
<div className={`absolute top-0 right-0 bottom-0 left-0 overflow-clip pointer-events-none ${className}`} />
|
||||||
{chart && <div className="chart h-[68px] overflow-clip" />}
|
{chart && <div className="h-[68px] overflow-clip" />}
|
||||||
{!chart && <div className="h-[16px] overflow-clip" />}
|
{!chart && <div className="h-[16px] overflow-clip" />}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user