-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for Operator Backed SBR through topology inContext
remove comment address review comments address review comments address review comments address review comments support service binding connector for yaml view
- Loading branch information
Showing
24 changed files
with
795 additions
and
727 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './withPostFormSubmissionCallback'; |
17 changes: 17 additions & 0 deletions
17
frontend/packages/console-shared/src/hoc/withPostFormSubmissionCallback.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,17 @@ | ||
import * as React from 'react'; | ||
import { K8sResourceCommon } from '@console/internal/module/k8s'; | ||
import { usePostFormSubmitAction } from '../hooks/post-form-submit-action'; | ||
|
||
type WithPostFormSubmissionCallbackProps<R> = { | ||
postFormSubmissionCallback: (arg: R) => Promise<R>; | ||
}; | ||
|
||
export const withPostFormSubmissionCallback = < | ||
Props extends WithPostFormSubmissionCallbackProps<R>, | ||
R = K8sResourceCommon | ||
>( | ||
Component: React.ComponentType<Props>, | ||
): React.FC<Omit<Props, keyof WithPostFormSubmissionCallbackProps<R>>> => (props: Props) => { | ||
const postFormSubmissionCallback = usePostFormSubmitAction<R>(); | ||
return <Component {...props} postFormSubmissionCallback={postFormSubmissionCallback} />; | ||
}; |
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 was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
frontend/packages/console-shared/src/hooks/useQueryParams.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,18 @@ | ||
import * as React from 'react'; | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
export const useQueryParams = () => { | ||
const { search } = useLocation(); | ||
return React.useMemo(() => new URLSearchParams(search), [search]); | ||
}; | ||
|
||
export type WithQueryParamsProps = { | ||
queryParams: URLSearchParams; | ||
}; | ||
|
||
export const withQueryParams = <Props extends WithQueryParamsProps>( | ||
Component: React.ComponentType<Props>, | ||
): React.FC<Omit<Props, keyof WithQueryParamsProps>> => (props: Props) => { | ||
const queryParams = useQueryParams(); | ||
return <Component {...props} queryParams={queryParams} />; | ||
}; |
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
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
Oops, something went wrong.