Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gitops-backend and remove mock-data
- Loading branch information
1 parent
ddb63b6
commit f2fcefe
Showing
16 changed files
with
286 additions
and
211 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
9 changes: 9 additions & 0 deletions
9
frontend/packages/dev-console/src/components/gitops/GitOpsEmptyState.scss
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,9 @@ | ||
.odc-gitops-empty-state { | ||
&__msg { | ||
font-size: var(--pf-global--FontSize--lg); | ||
} | ||
&__icon { | ||
height: var(--pf-c-empty-state__icon--FontSize); | ||
max-width: 100%; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
frontend/packages/dev-console/src/components/gitops/GitOpsEmptyState.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,21 @@ | ||
import * as React from 'react'; | ||
import { EmptyState, EmptyStateIcon, EmptyStateVariant } from '@patternfly/react-core'; | ||
import * as gitopsIcon from '../../images/gitops.svg'; | ||
import './GitOpsEmptyState.scss'; | ||
|
||
interface GitOpsEmptyStateProps { | ||
emptyStateMsg: string; | ||
} | ||
|
||
const gitopsImage = () => ( | ||
<img className="odc-gitops-empty-state__icon" src={gitopsIcon} alt="GitOps" /> | ||
); | ||
|
||
const GitOpsEmptyState: React.FC<GitOpsEmptyStateProps> = ({ emptyStateMsg }) => ( | ||
<EmptyState variant={EmptyStateVariant.full}> | ||
<p className="odc-gitops-empty-state__msg">{emptyStateMsg}</p> | ||
<EmptyStateIcon variant="container" component={gitopsImage} /> | ||
</EmptyState> | ||
); | ||
|
||
export default GitOpsEmptyState; |
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
50 changes: 0 additions & 50 deletions
50
frontend/packages/dev-console/src/components/gitops/details/GitOpsDetailsController.tsx
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
frontend/packages/dev-console/src/components/gitops/details/GitOpsDetailsPageHeading.scss
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,7 @@ | ||
.odc-gitops-details-page-heading { | ||
&__repo { | ||
align-items: center; | ||
font-weight: bold; | ||
font-size: 12px; | ||
} | ||
} |
Oops, something went wrong.