* 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
21 lines
588 B
TypeScript
21 lines
588 B
TypeScript
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"));
|