-
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
6729423
commit 47dfd86
Showing
44 changed files
with
1,331 additions
and
1,347 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.project { | ||
padding: var(--pf-c-nav__link--PaddingTop) var(--pf-c-nav__link--PaddingRight) | ||
var(--pf-global--spacer--lg) var(--pf-c-nav__link--PaddingLeft); | ||
border-bottom: 1px solid var(--pf-c-nav__link--before--BorderColor); | ||
} | ||
|
||
.project .pf-c-context-selector__toggle { | ||
color: #FFFFFF; | ||
} | ||
|
||
.project .pf-c-select .pf-c-select__toggle { | ||
color: var(--pf-global--BackgroundColor--100); | ||
background-color: var(--pf-global--Color--100); | ||
} | ||
|
||
.project .pf-c-select .pf-c-select__toggle::before { | ||
border-color: var(--pf-global--BackgroundColor--dark-400) | ||
var(--pf-global--BackgroundColor--dark-400) | ||
var(--pf-c-select__toggle--before--BorderBottomColor) | ||
var(--pf-global--BackgroundColor--dark-400); | ||
} | ||
|
||
.project .pf-c-select .pf-c-select__toggle:focus::before, | ||
.project .pf-c-select .pf-c-select__toggle:hover::before { | ||
border-bottom-color: var(--pf-c-select__toggle--before--BorderBottomColor); | ||
} | ||
|
||
.project .pf-c-select .pf-c-select__toggle:focus::before { | ||
border-bottom-width: var( | ||
--pf-c-select__toggle--m-expanded--before--BorderBottomWidth | ||
); | ||
} |
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.
66 changes: 66 additions & 0 deletions
66
application/src/main/webapp/src/pages/getting-started/getting-started.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,66 @@ | ||
import React from "react"; | ||
|
||
import { | ||
Bullseye, | ||
Button, | ||
EmptyState, | ||
EmptyStateBody, | ||
EmptyStateIcon, | ||
EmptyStateSecondaryActions, | ||
SelectVariant, | ||
Title, | ||
} from "@patternfly/react-core"; | ||
|
||
import FileCodeIcon from "@patternfly/react-icons/dist/esm/icons/file-code-icon"; | ||
import { SimpleSelect, useModal } from "@project-openubl/lib-ui"; | ||
import { ProjectDto } from "api/models"; | ||
import { AddProjectWizard } from "shared/components"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { useProjectsQuery } from "queries/projects"; | ||
|
||
export const GettingStarted: React.FC = () => { | ||
const navigate = useNavigate(); | ||
const projectModal = useModal<"ADD", ProjectDto>(); | ||
|
||
const projectsQuery = useProjectsQuery(); | ||
|
||
return ( | ||
<> | ||
<Bullseye> | ||
<EmptyState> | ||
<EmptyStateIcon icon={FileCodeIcon} /> | ||
<Title headingLevel="h4" size="lg"> | ||
Bienvenido a Ublhub | ||
</Title> | ||
<EmptyStateBody> | ||
Selecciona un proyecto o crea uno nuevo. | ||
</EmptyStateBody> | ||
<Button variant="primary" onClick={() => projectModal.open("ADD")}> | ||
Crear proyecto | ||
</Button> | ||
<EmptyStateSecondaryActions> | ||
<SimpleSelect | ||
toggleId="project-list-toggle" | ||
variant={SelectVariant.single} | ||
aria-label="Select project" | ||
id="project-list" | ||
options={(projectsQuery.data || []).map((elem) => elem.name)} | ||
onChange={(selection) => { | ||
navigate(`/projects/${selection}`); | ||
}} | ||
/> | ||
</EmptyStateSecondaryActions> | ||
</EmptyState> | ||
</Bullseye> | ||
{projectModal.isOpen && projectModal.isAction("ADD") && ( | ||
<AddProjectWizard | ||
onSave={(project) => { | ||
projectModal.close(); | ||
navigate(`/projects/${project.name}`); | ||
}} | ||
onClose={projectModal.close} | ||
/> | ||
)} | ||
</> | ||
); | ||
}; |
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 { GettingStarted as default } from "./getting-started"; |
Oops, something went wrong.