mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-09 18:02:08 +08:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
@@ -18,30 +18,42 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
return {
|
||||
start: showDate.minus({months: 3}).toFormat("yyyy-MM-dd"),
|
||||
end: showDate.plus({months: 3}).toFormat("yyyy-MM-dd"),
|
||||
unmonitored: 'false',
|
||||
start: showDate.minus({ months: 3 }).toFormat("yyyy-MM-dd"),
|
||||
end: showDate.plus({ months: 3 }).toFormat("yyyy-MM-dd"),
|
||||
unmonitored: "false",
|
||||
};
|
||||
}, [showDate]);
|
||||
|
||||
// Load active integrations
|
||||
const integrations = useMemo(() => widget.integrations?.map(integration => ({
|
||||
service: dynamic(() => import(`./integrations/${integration?.type}`)),
|
||||
widget: integration,
|
||||
})) ?? [], [widget.integrations]);
|
||||
const integrations = useMemo(
|
||||
() =>
|
||||
widget.integrations?.map((integration) => ({
|
||||
service: dynamic(() => import(`./integrations/${integration?.type}`)),
|
||||
widget: integration,
|
||||
})) ?? [],
|
||||
[widget.integrations],
|
||||
);
|
||||
|
||||
return <Container service={service}>
|
||||
<div className="flex flex-col w-full">
|
||||
<div className="sticky top-0">
|
||||
{integrations.map(integration => {
|
||||
const Integration = integration.service;
|
||||
const key = integration.widget.type + integration.widget.service_name + integration.widget.service_group;
|
||||
return (
|
||||
<Container service={service}>
|
||||
<div className="flex flex-col w-full">
|
||||
<div className="sticky top-0">
|
||||
{integrations.map((integration) => {
|
||||
const Integration = integration.service;
|
||||
const key = integration.widget.type + integration.widget.service_name + integration.widget.service_group;
|
||||
|
||||
return <Integration key={key} config={integration.widget} params={params}
|
||||
className="fixed bottom-0 left-0 bg-red-500 w-screen h-12" />
|
||||
})}
|
||||
return (
|
||||
<Integration
|
||||
key={key}
|
||||
config={integration.widget}
|
||||
params={params}
|
||||
className="fixed bottom-0 left-0 bg-red-500 w-screen h-12"
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<MonthlyView service={service} className="flex" />
|
||||
</div>
|
||||
<MonthlyView service={service} className="flex"/>
|
||||
</div>
|
||||
</Container>;
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user