-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* EP-780 create new connected space * EP-780 fix broke sticky * EP-780 create input name * EP-780 add id to dashboard router
- Loading branch information
1 parent
6996e12
commit cee71b3
Showing
5 changed files
with
115 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import Title1 from '../../titles/Title1'; | ||
import { KeyProductionData } from '../details/KeyProductionData'; | ||
import { ProviderKey } from '../details/ProviderKey'; | ||
import { ProviderName } from '../details/ProviderName'; | ||
import { ProviderScope } from '../details/ProviderScope'; | ||
import { ProviderUrl } from '../details/ProviderUrl'; | ||
import { ProviderUrlDeco } from '../details/ProviderUrlDeco'; | ||
import { ProviderValidation } from '../details/ProviderValidation'; | ||
import { OidcClientFormContext } from '../details/oidc-client-form.context'; | ||
import { OidcClient } from '../../types'; | ||
import { useState } from 'react'; | ||
import { SideMenu } from '../details/ProviderSideMenu'; | ||
|
||
export const EspaceConnected = () => { | ||
const [oidcClientForm, setOidcClientForm] = useState<OidcClient>({ | ||
clientName: '', | ||
clientDescription: '', | ||
clientId: '', | ||
clientSecret: '', | ||
redirectUris: [], | ||
postLogoutRedirectUris: [], | ||
scope: [], | ||
}); | ||
return ( | ||
<OidcClientFormContext.Provider | ||
value={{ | ||
setOidcClientForm, | ||
}} | ||
> | ||
<div className="fr-container"> | ||
<Title1 title="Espace connecté" /> | ||
<div className="fr-container--fluid"> | ||
<div className="fr-grid-row fr-grid-row--gutters"></div> | ||
</div> | ||
<div className="fr-container--fluid fr-mt-10v"> | ||
<div className="fr-grid-row"> | ||
<SideMenu></SideMenu> | ||
<div className="fr-col-12 fr-col-md"> | ||
<ProviderName /> | ||
<ProviderKey /> | ||
<ProviderUrl /> | ||
<ProviderUrlDeco /> | ||
<ProviderScope /> | ||
<ProviderValidation oidcClientForm={oidcClientForm} /> | ||
<KeyProductionData /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</OidcClientFormContext.Provider> | ||
); | ||
}; |
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,20 @@ | ||
import { Input } from '@codegouvfr/react-dsfr/Input'; | ||
|
||
export const ProviderName = () => { | ||
return ( | ||
<div className="fr-mb-10v"> | ||
<div className="fr-container--fluid"> | ||
<div className="fr-grid-row fr-grid-row--bottom"> | ||
<Input | ||
className="fr-col-md-7 fr-m-1v fr-text--bold" | ||
label="Nom du projet" | ||
nativeInputProps={{ | ||
type: 'text', | ||
placeholder: 'Test - date', | ||
}} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
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