-
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.
- Loading branch information
1 parent
9fbadab
commit 48e6e32
Showing
11 changed files
with
105 additions
and
16 deletions.
There are no files selected for viewing
72 changes: 70 additions & 2 deletions
72
packages/modules/account/src/lib/components/account/account.component.ts
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 |
---|---|---|
@@ -1,8 +1,76 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
import { ROUTER } from '@console-core/config'; | ||
import { AccountFacade } from '@console-core/state'; | ||
|
||
@Component({ | ||
selector: 'app-account', | ||
template: ` <rc-page-account /> `, | ||
template: ` | ||
<ng-container *ngIf="user$ | async as user"> | ||
<div class="row small-snap-vertical"> | ||
<rc-page-account-index> | ||
<h3> | ||
Personal Data [<a | ||
[routerLink]=" | ||
ROUTER.pages.main.children.account.children.profile.path | ||
" | ||
>Edit</a | ||
>] | ||
</h3> | ||
<ul> | ||
<li><b>First Name</b>: {{ user.firstName }}</li> | ||
<li><b>Last Name</b>: {{ user.lastName }}</li> | ||
</ul> | ||
<h3> | ||
Account Data [<a | ||
[routerLink]=" | ||
ROUTER.pages.main.children.account.children.profile.path | ||
" | ||
>Edit</a | ||
>] | ||
</h3> | ||
<ul> | ||
<li><b>Username</b>: {{ user.name }}</li> | ||
<li><b>Email</b>: {{ user.email }}</li> | ||
</ul> | ||
<h3> | ||
Account Information [<a | ||
[routerLink]=" | ||
ROUTER.pages.main.children.account.children.preferences.path | ||
" | ||
>Edit</a | ||
>] | ||
</h3> | ||
<ul> | ||
<li><b>User ID</b>: {{ user.id }}</li> | ||
<li><b>Status</b>: {{ user.active ? 'Active' : 'Not active' }}</li> | ||
<li><b>Timezone ID:</b> {{ user.timezoneId || '-' }}</li> | ||
<li><b>Locale ID</b>: {{ user.localeId || '-' }}</li> | ||
<li><b>User Type</b>: {{ user.userType }}</li> | ||
<li> | ||
<b>Role Associations</b>: | ||
<ul> | ||
<li *ngFor="let association of user.roleAssociations"> | ||
{{ association.role }} | ||
</li> | ||
</ul> | ||
</li> | ||
<li><b>Created</b>: {{ user.meta?.created }}</li> | ||
<li><b>Updated</b>: {{ user.meta?.modified }}</li> | ||
</ul> | ||
<h3>Support</h3> | ||
<p>Contact us at support@restorecommerce.io</p> | ||
</rc-page-account-index> | ||
</div> | ||
</ng-container> | ||
`, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class AccountComponent {} | ||
export class AccountComponent { | ||
ROUTER = ROUTER; | ||
user$ = this.accountFacade.user$; | ||
constructor(private readonly accountFacade: AccountFacade) {} | ||
} |
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
1 change: 1 addition & 0 deletions
1
.../ui/src/lib/components/pages/account/page-account-index/page-account-index.component.html
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 @@ | ||
<ng-content /> |
8 changes: 8 additions & 0 deletions
8
...es/ui/src/lib/components/pages/account/page-account-index/page-account-index.component.ts
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,8 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'rc-page-account-index', | ||
templateUrl: './page-account-index.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class RcPageAccountIndexComponent {} |
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
2 changes: 1 addition & 1 deletion
2
packages/modules/ui/src/lib/components/pages/page-layout/page-layout.component.html
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
6 changes: 4 additions & 2 deletions
6
packages/modules/ui/src/lib/components/pages/page-overflow/page-overflow.component.html
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<div class="row grid-gutterx-2"> | ||
<ng-content /> | ||
<div class="row grid-gutterx-3 px-2"> | ||
<div class="col"> | ||
<ng-content /> | ||
</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
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