Files
homarr/apps/docs/docs/widgets/timetable/index.ts
T

26 lines
681 B
TypeScript

import { WidgetDefinition } from "@site/src/types";
import { IconBusStop } from "@tabler/icons-react";
export const timetableWidget: WidgetDefinition = {
icon: IconBusStop,
name: "Timetable",
description: "Displays departure times for a station.",
path: "../../widgets/timetable",
configuration: {
items: [
{
name: "Search.ch URL",
description: "Base URL for the Search.ch timetable API.",
values: "Any valid URL.",
defaultValue: "https://search.ch",
},
{
name: "Station",
description: "Select the station",
values: "List of station names",
defaultValue: "-",
},
],
},
};