mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
OMV widget implementation
This commit is contained in:
16
src/widgets/openmediavault/component.jsx
Normal file
16
src/widgets/openmediavault/component.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import ServicesGetStatus from "./methods/services_get_status";
|
||||
import SmartGetList from "./methods/smart_get_list";
|
||||
import DownloaderGetDownloadList from "./methods/downloader_get_downloadlist";
|
||||
|
||||
export default function Component({ service }) {
|
||||
switch (service.widget.method) {
|
||||
case "services.getStatus":
|
||||
return <ServicesGetStatus service={service} />;
|
||||
case "smart.getListBg":
|
||||
return <SmartGetList service={service} />;
|
||||
case "downloader.getDownloadList":
|
||||
return <DownloaderGetDownloadList service={service} />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user