-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cb7995
commit 7144609
Showing
110 changed files
with
411 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ui/src/components/General/CodeEditor/components/ValidateStatus.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ui/src/components/General/FormComponents/ResponsiveButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// import withSize from "components/Hoc/withSize"; | ||
import React from "react"; | ||
import { withSize } from "components/Hoc"; | ||
import { Button as AntButton } from "antd"; | ||
import { ButtonProps } from "antd/es/button"; | ||
|
||
const Button: React.FC<ButtonProps> = ({ children, ...props }) => { | ||
return <AntButton {...props}>{children}</AntButton>; | ||
}; | ||
|
||
const ResponsiveButton = withSize(Button); | ||
export default ResponsiveButton; |
14 changes: 14 additions & 0 deletions
14
ui/src/components/General/FormComponents/ResponsiveDropdownButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Dropdown } from "antd"; | ||
import React from "react"; | ||
import { withSize } from "components/Hoc"; | ||
import { DropdownButtonProps } from "antd/es/dropdown"; | ||
|
||
const DropdownButton: React.FC<DropdownButtonProps> = ({ | ||
children, | ||
...props | ||
}) => { | ||
return <Dropdown.Button {...props}>{children}</Dropdown.Button>; | ||
}; | ||
|
||
const ResponsiveDropdownButton = withSize(DropdownButton); | ||
export default ResponsiveDropdownButton; |
40 changes: 40 additions & 0 deletions
40
ui/src/components/General/FormComponents/ResponsiveInputWithLabel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Input, InputNumber } from "antd"; | ||
import React, { ReactNode } from "react"; | ||
import { withLabelSize } from "components/Hoc"; | ||
|
||
type NumberType = { | ||
type: "number"; | ||
value: number; | ||
onChange: (value: number | null) => void; | ||
}; | ||
|
||
type TextType = { | ||
type: "text"; | ||
value: string; | ||
onChange: (value: React.ChangeEvent<HTMLInputElement>) => void; | ||
}; | ||
|
||
type InputComponentProps = { | ||
label: string; | ||
precision?: number; | ||
min?: number; | ||
max?: number; | ||
step?: number; | ||
tooltip?: string; | ||
placeholder?: string; | ||
addonBefore?: ReactNode; | ||
addonAfter?: ReactNode; | ||
style?: React.CSSProperties; | ||
} & (NumberType | TextType); | ||
|
||
const ResponsiveInput: React.FC<InputComponentProps> = (props) => { | ||
return props.type === "number" ? ( | ||
<InputNumber style={{ width: "100%" }} {...props} /> | ||
) : ( | ||
<Input allowClear style={{ width: "100%" }} {...props} /> | ||
); | ||
}; | ||
|
||
const ResponsiveInputWithLabel = withLabelSize(ResponsiveInput); | ||
|
||
export default ResponsiveInputWithLabel; |
24 changes: 24 additions & 0 deletions
24
ui/src/components/General/FormComponents/ResponsiveSegementWithLabel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Segmented } from "antd"; | ||
import React from "react"; | ||
import { withLabelSize } from "components/Hoc"; | ||
|
||
interface Option { | ||
value: string; | ||
label: string; | ||
} | ||
|
||
interface SegmentComponentProps { | ||
label?: string; | ||
value: string; | ||
onChange: (value: string | number) => void; | ||
options: Option[]; | ||
} | ||
|
||
const ResponsiveSegment: React.FC<SegmentComponentProps> = (props) => { | ||
return <Segmented {...props} />; | ||
}; | ||
|
||
const ResponsiveSegementWithLabel = withLabelSize(ResponsiveSegment); | ||
|
||
export default ResponsiveSegementWithLabel; | ||
ResponsiveSegementWithLabel; |
23 changes: 23 additions & 0 deletions
23
ui/src/components/General/FormComponents/ResponsiveSelectWithLabel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Select } from "antd"; | ||
import React from "react"; | ||
import { withLabelSize } from "components/Hoc"; | ||
|
||
interface Option { | ||
value: string; | ||
label: string; | ||
} | ||
|
||
interface SelectComponentProps { | ||
label?: string; | ||
value?: string; | ||
defaultActiveFirstOption?: boolean; | ||
onSelect?: (value: string, option: Option) => void; | ||
options: Option[]; | ||
} | ||
|
||
const ResponsiveSelect: React.FC<SelectComponentProps> = (props) => { | ||
return <Select {...props} />; | ||
}; | ||
|
||
const ResponsiveSelectWithLabel = withLabelSize(ResponsiveSelect); | ||
export default ResponsiveSelectWithLabel; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
ui/src/components/General/Notification/components/NotificationList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export { default as ClipboardButton } from "./ClipboardButton"; | ||
export { default as CodeEditor } from "./CodeEditor"; | ||
export { default as CodeHighlightWithCopy } from "./CodeHighlightWithCopy"; | ||
export { default as ColorPickerWithInput } from "./ColorPickerWithInput"; | ||
export { default as Drawer } from "./Drawer"; | ||
export { default as DropdownDownloadButton } from "./DropdownDownloadButton"; | ||
export { default as ErrorComponent } from "./ErrorComponent"; | ||
export { default as FallbackComponent } from "./FallbackComponent"; | ||
export { default as ResponsiveSelectWithLabel } from "./FormComponents/ResponsiveSelectWithLabel"; | ||
export { default as ResponsiveSegementWithLabel } from "./FormComponents/ResponsiveSegementWithLabel"; | ||
export { default as ResponsiveInputWithLabel } from "./FormComponents/ResponsiveInputWithLabel"; | ||
export { default as ResponsiveButton } from "./FormComponents/ResponsiveButton"; | ||
export { default as ResponsiveDropdownButton } from "./FormComponents/ResponsiveDropdownButton"; | ||
export { default as HelpIcon } from "./HelpIcon"; | ||
export { default as Icon } from "./Icon"; | ||
export { default as News } from "./ListItems/News/News"; | ||
export { default as Resource } from "./ListItems/Resource/Resource"; | ||
export { default as Notification } from "./Notification"; | ||
export { default as PopupSearch } from "./PopupSearch"; | ||
export { default as Search } from "./Search"; | ||
export { default as Spin } from "./Spin"; | ||
export { default as Text } from "./Text"; | ||
export { default as Warning } from "./Warning"; | ||
|
||
export type { ResourceType } from "./ListItems/Resource/Resource"; | ||
export type { NewsType } from "./ListItems/News/News"; | ||
export type { IconName } from "./Icon"; | ||
export type { Markdown } from "./Notification/types"; | ||
|
||
export { getCategories } from "./Search/helper"; | ||
export { parsedMarkdown } from "./Notification/helper"; | ||
|
||
export { DEFAULT_RECORD } from "./Notification/constants"; |
Oops, something went wrong.