OMV widget implementation

This commit is contained in:
Xinos
2023-08-12 14:44:54 +07:00
committed by shamoon
parent 19bf7a0e5a
commit bf8c10bb61
10 changed files with 311 additions and 0 deletions

View 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;
}
}