mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
✨ Add support for multiple RSS feeds
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
MultiSelectProps,
|
||||
NumberInputProps,
|
||||
@@ -7,7 +8,7 @@ import {
|
||||
TextInputProps,
|
||||
} from '@mantine/core';
|
||||
import { TablerIcon } from '@tabler/icons';
|
||||
import React from 'react';
|
||||
|
||||
import { AreaType } from '../types/area';
|
||||
import { ShapeType } from '../types/shape';
|
||||
|
||||
@@ -37,7 +38,8 @@ export type IWidgetOptionValue =
|
||||
| ISliderInputOptionValue
|
||||
| ISelectOptionValue
|
||||
| INumberInputOptionValue
|
||||
| IDraggableListInputValue;
|
||||
| IDraggableListInputValue
|
||||
| IMultipleTextInputOptionValue;
|
||||
|
||||
// Interface for data type
|
||||
interface DataType {
|
||||
@@ -105,6 +107,13 @@ export type IDraggableListInputValue = {
|
||||
>;
|
||||
};
|
||||
|
||||
// will show a text-input with a button to add a new line
|
||||
export type IMultipleTextInputOptionValue = {
|
||||
type: 'multiple-text';
|
||||
defaultValue: string[];
|
||||
inputProps?: Partial<TextInputProps>;
|
||||
};
|
||||
|
||||
// is used to type the widget definitions which will be used to display all widgets
|
||||
export type IWidgetDefinition<TKey extends string = string> = {
|
||||
id: TKey;
|
||||
|
||||
Reference in New Issue
Block a user