feat: add video widget (#287)

* feat: add nestjs replacement, remove nestjs

* feat: add video widget

* feat: add notice about youtube not supported with video.js

* fix: format issue

* fix: format issue
This commit is contained in:
Meier Lukas
2024-04-13 11:44:16 +02:00
committed by GitHub
parent 80d2d485b8
commit 82e9887f36
9 changed files with 355 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
import { IconDeviceCctv } from "@homarr/ui";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";
export const { definition, componentLoader } = createWidgetDefinition("video", {
icon: IconDeviceCctv,
options: optionsBuilder.from((factory) => ({
feedUrl: factory.text({
defaultValue: "",
}),
hasAutoPlay: factory.switch({
withDescription: true,
}),
isMuted: factory.switch({
defaultValue: true,
}),
hasControls: factory.switch(),
})),
}).withDynamicImport(() => import("./component"));