|
@ -67,33 +67,45 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col"> |
|
|
<div class="col"> |
|
|
<h3 class="mb-3 text-center" i18n>Analytics</h3> |
|
|
<h3 class="mb-3 text-center" i18n>Users</h3> |
|
|
<mat-card> |
|
|
<mat-card class="px-0"> |
|
|
<mat-card-content> |
|
|
<mat-card-content> |
|
|
<table class="analytics w-100"> |
|
|
<table class="users w-100"> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr class="mat-header-row"> |
|
|
<tr class="mat-header-row"> |
|
|
<th class="mat-header-cell pl-2 py-2" i18n>User</th> |
|
|
<th class="mat-header-cell pl-2 py-2 text-truncate" i18n> |
|
|
<th class="mat-header-cell pr-2 py-2" i18n> |
|
|
User |
|
|
|
|
|
</th> |
|
|
|
|
|
<th class="mat-header-cell pr-2 py-2 text-truncate" i18n> |
|
|
Registration Date |
|
|
Registration Date |
|
|
</th> |
|
|
</th> |
|
|
<th class="mat-header-cell pr-2 py-2" i18n>Engagement</th> |
|
|
<th class="mat-header-cell pr-2 py-2 text-truncate" i18n> |
|
|
<th class="mat-header-cell pr-2 py-2" i18n>Last Activitiy</th> |
|
|
Transactions |
|
|
|
|
|
</th> |
|
|
|
|
|
<th class="mat-header-cell pr-2 py-2 text-truncate" i18n> |
|
|
|
|
|
Engagement |
|
|
|
|
|
</th> |
|
|
|
|
|
<th class="mat-header-cell pr-2 py-2 text-truncate" i18n> |
|
|
|
|
|
Last Activitiy |
|
|
|
|
|
</th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
<tr *ngFor="let analyticsItem of analytics" class="mat-row"> |
|
|
<tr *ngFor="let userItem of users" class="mat-row"> |
|
|
<td class="mat-cell text-truncate pl-2 py-2"> |
|
|
<td class="mat-cell pl-2 py-2 text-truncate"> |
|
|
{{ analyticsItem.User.alias || analyticsItem.User.id }} |
|
|
{{ userItem.alias || userItem.id }} |
|
|
|
|
|
</td> |
|
|
|
|
|
<td class="mat-cell pr-2 py-2 text-truncate"> |
|
|
|
|
|
{{ userItem.createdAt | date: defaultDateFormat }} |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell pr-2 py-2"> |
|
|
<td class="mat-cell pr-2 py-2 text-truncate"> |
|
|
{{ analyticsItem.User.createdAt | date: defaultDateFormat }} |
|
|
{{ userItem._count.Order }} |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell pr-2 py-2"> |
|
|
<td class="mat-cell pr-2 py-2 text-truncate"> |
|
|
{{ analyticsItem.activityCount }} |
|
|
{{ userItem.Analytics.activityCount }} |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell pr-2 py-2"> |
|
|
<td class="mat-cell pr-2 py-2 text-truncate"> |
|
|
{{ formatDistanceToNow(analyticsItem.updatedAt) }} |
|
|
{{ formatDistanceToNow(userItem.Analytics.updatedAt) }} |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</tbody> |
|
|
</tbody> |
|
|