mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 18:29:48 +00:00
refactor service widgets
This commit is contained in:
parent
7807a38a9c
commit
94e9d66bec
19 changed files with 382 additions and 502 deletions
|
@ -2,12 +2,11 @@ import Image from "next/future/image";
|
|||
import { useState } from "react";
|
||||
import { Disclosure, Transition } from "@headlessui/react";
|
||||
|
||||
import StatsList from "./stats/list";
|
||||
import Status from "./status";
|
||||
import Widget from "./widget";
|
||||
import Docker from "./widgets/service/docker";
|
||||
|
||||
export default function Item({ service }) {
|
||||
const [statsOpen, setStatsOpen] = useState(false);
|
||||
return (
|
||||
<li key={service.name} className="">
|
||||
<Disclosure>
|
||||
|
@ -46,7 +45,7 @@ export default function Item({ service }) {
|
|||
|
||||
<Disclosure.Panel>
|
||||
<div className="w-full">
|
||||
<StatsList service={service} />
|
||||
<Docker service={{ widget: { container: service.container, server: service.server } }} />
|
||||
</div>
|
||||
</Disclosure.Panel>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue