Add support for multiple RSS feeds

This commit is contained in:
ajnart
2023-04-05 14:16:28 +09:00
parent 7cf6fe53fc
commit 6811388991
3 changed files with 123 additions and 135 deletions

View File

@@ -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;