-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pollish importers to v1 parity goals (#209)
- Loading branch information
1 parent
aeebfec
commit dbc9c9d
Showing
7 changed files
with
4,509 additions
and
2,801 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import dayjs from "dayjs"; | ||
import arraySupport from "dayjs/plugin/arraySupport"; | ||
import customParseFormat from "dayjs/plugin/customParseFormat"; | ||
import duration from "dayjs/plugin/duration"; | ||
import isSameOrBefore from "dayjs/plugin/isSameOrBefore"; | ||
import utc from "dayjs/plugin/utc"; | ||
import relativeTime from "dayjs/plugin/relativeTime"; | ||
import timezone from "dayjs/plugin/timezone"; | ||
import customParseFormat from "dayjs/plugin/customParseFormat"; | ||
import arraySupport from "dayjs/plugin/arraySupport"; | ||
import utc from "dayjs/plugin/utc"; | ||
|
||
dayjs.extend(utc); | ||
dayjs.extend(timezone); | ||
dayjs.extend(customParseFormat); | ||
dayjs.extend(isSameOrBefore); | ||
dayjs.extend(arraySupport); | ||
dayjs.extend(relativeTime); | ||
dayjs.extend(duration); |
28 changes: 28 additions & 0 deletions
28
client/src/app/pages/importer-list/components/importer-progress.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,28 @@ | ||
import React from "react"; | ||
|
||
import { | ||
Progress, | ||
ProgressMeasureLocation, | ||
ProgressSize, | ||
} from "@patternfly/react-core"; | ||
|
||
import { Progress as ProgressModel } from "@app/client"; | ||
|
||
export interface ImporterProgressProps { | ||
value: ProgressModel; | ||
} | ||
|
||
export const ImporterProgress: React.FC<ImporterProgressProps> = ({ | ||
value, | ||
}) => { | ||
return ( | ||
<Progress | ||
aria-label="Progress of Importer " | ||
value={value.current} | ||
min={0} | ||
max={value.total} | ||
measureLocation={ProgressMeasureLocation.inside} | ||
size={ProgressSize.sm} | ||
/> | ||
); | ||
}; |
Oops, something went wrong.