diff --git a/account-console/src/main/resources/theme/learning-layers-account/account/.gitignore b/account-console/src/main/resources/theme/learning-layers-account/account/.gitignore index 53c766c..28a0fec 100644 --- a/account-console/src/main/resources/theme/learning-layers-account/account/.gitignore +++ b/account-console/src/main/resources/theme/learning-layers-account/account/.gitignore @@ -1,5 +1,5 @@ src/node_modules src/web_modules -/resources/ +/resources/* !/resources/content.json \ No newline at end of file diff --git a/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/ManageClientPage.tsx b/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/ManageClientPage.tsx index 832be60..9bf1983 100644 --- a/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/ManageClientPage.tsx +++ b/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/ManageClientPage.tsx @@ -7,12 +7,13 @@ import { ActionGroup, Button, ButtonVariant, ExpandableSection, Form, - FormGroup, Grid, GridItem, InputGroup, + FormGroup, Grid, GridItem, InputGroup, PageSectionVariants, Select, SelectOption, SelectVariant, Switch, Text, - TextInput + TextInput, + Stack, PageSection } from "@patternfly/react-core"; import {ClientRepresentation} from "./ClientRepresentation"; import {HttpResponse} from "../../account-service/account.service"; @@ -405,616 +406,619 @@ export class ManageClient extends React.Component - {!this.state.noClient && ( - - - - - - -
-
- )} -
this.handleSubmit(event)}> - {this.state.noClient ? - - - - - - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // } - > - {client.redirectUris.length > 1 ? - client.redirectUris.map((uri: string, index: number) => { - return ( - - - - - - - ) - }) : - + + + {!this.state.noClient && ( + + + + + + + + )} + this.handleSubmit(event)}> + {this.state.noClient ? + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + // } + > + {client.redirectUris.length > 1 ? + client.redirectUris.map((uri: string, index: number) => { + return ( + + + + + + + ) + }) : + + + + + } - - } - - - - - - - - - - // } - > - {client.webOrigins.length > 1 ? - client.webOrigins.map((origin: string, index: number) => ( - + + + + + + + + + // } + > + {client.webOrigins.length > 1 ? + client.webOrigins.map((origin: string, index: number) => ( + + + + + + + )) : - - )) : - - + } - - } - - - - - - - - - - - - this.onToggle(0)} - isExpanded={this.state.isExtended[0]} - > - - - - - - - - - - - this.onToggle(1)} - isExpanded={this.state.isExtended[1]} - > - - - - Minutes - - - - - - Minutes - - - - + + - Minutes - - - - - + + - Minutes - - - - - + + - Minutes - - - + this.onToggle(0)} + isExpanded={this.state.isExtended[0]} + > + + + + + + + + + + + this.onToggle(1)} + isExpanded={this.state.isExtended[1]} + > + + + + Minutes + + + + + + Minutes + + + + + + Minutes + + + + + + Minutes + + + + + + Minutes + + + + + + + + + + + } + + + - - - + + + + + + ); } diff --git a/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/UserClientPage.tsx b/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/UserClientPage.tsx index f57d748..6b0aa23 100644 --- a/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/UserClientPage.tsx +++ b/account-console/src/main/resources/theme/learning-layers-account/account/src/app/content/learning-layers-account/UserClientPage.tsx @@ -4,7 +4,7 @@ import { DataList, DataListCell, DataListItem, DataListItemCells, DataListItemRow, DataListToggle, Form, FormGroup, Grid, - GridItem, TextInput, + GridItem, PageSection, PageSectionVariants, Stack, TextInput, } from '@patternfly/react-core'; import { ContentPage } from '../ContentPage' import { Msg } from '../../widgets/Msg' @@ -168,176 +168,183 @@ export class UserClientPage extends React.Component - - - - - - - - - {this.state.tokenInputEnabled && ( - -
this.handleAddClient(event)}> - - - - - - - - - - - -
-
-
- )} - - - - // invisible toggle allows headings to line up properly - - - - - - , - - - , - - - , - + + + + +
+ +
+
+ +
+
+
+ {this.state.tokenInputEnabled && ( + +
this.handleAddClient(event)}> + + - - - - - + +
+ +
+
+ +
- , - ]} - /> - - - {this.state.clients.map((client: Client, appIndex: number) => { - return ( - +
+
+
+ )} + + - {/* this.onToggle(appIndex)}*/} - {/* isExpanded={this.state.isRowOpen[appIndex]}*/} - {/* id={this.elementId('toggle', application)}*/} - {/* aria-controls={this.elementId("expandable", application)}*/} - {/*/>*/} + // invisible toggle allows headings to line up properly + + + - + + , - - { client.name || '---' } + + , - - { client.description || '---'} + + , - + - - {this.state.isUnlinkEnabled[appIndex] && ( - -

- -

-
- )} - - - - {this.state.isUnlinkEnabled[appIndex] && ( - - - - )} -
+
- - {this.state.isDeleteEnabled[appIndex] && ( - -

- -

-
- )} - - - - {this.state.isDeleteEnabled[appIndex] && ( - - - - )} -
+
-
+
, ]} />
- ) - })} -
+ {this.state.clients.map((client: Client, appIndex: number) => { + return ( + + + {/* this.onToggle(appIndex)}*/} + {/* isExpanded={this.state.isRowOpen[appIndex]}*/} + {/* id={this.elementId('toggle', application)}*/} + {/* aria-controls={this.elementId("expandable", application)}*/} + {/*/>*/} + + +
, + + { client.name || '---' } + , + + { client.description || '---'} + , + + + + + {this.state.isUnlinkEnabled[appIndex] && ( + +

+ +

+
+ )} + + + + {this.state.isUnlinkEnabled[appIndex] && ( + + + + )} +
+
+ + + {this.state.isDeleteEnabled[appIndex] && ( + +

+ +

+
+ )} + + + + {this.state.isDeleteEnabled[appIndex] && ( + + + + )} +
+
+
+
+ ]} + /> +
+
+ ) + })} +
+ + ); };