-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
b291469
commit c653f23
Showing
16 changed files
with
89 additions
and
33 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
apps/mix-cms/src/app/components/user-avatar/user-avatar.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,5 @@ | ||
<tui-avatar [autoColor]="true" | ||
[rounded]="true" | ||
[size]="size" | ||
[text]="userInfo.userName || userInfo.email || ''" | ||
[tp]="userInfo.userName || userInfo.email || ''"></tui-avatar> |
5 changes: 5 additions & 0 deletions
5
apps/mix-cms/src/app/components/user-avatar/user-avatar.component.scss
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,5 @@ | ||
:host { | ||
display: inline-block; | ||
border-radius: 50%; | ||
z-index: 1; | ||
} |
18 changes: 18 additions & 0 deletions
18
apps/mix-cms/src/app/components/user-avatar/user-avatar.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,18 @@ | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { TuiAvatarModule } from '@taiga-ui/kit'; | ||
import { TippyDirective } from '@ngneat/helipopper'; | ||
import { UserListVm } from '@mixcore/lib/model'; | ||
|
||
@Component({ | ||
selector: 'mix-user-avatar', | ||
standalone: true, | ||
imports: [CommonModule, TuiAvatarModule, TippyDirective], | ||
templateUrl: './user-avatar.component.html', | ||
styleUrls: ['./user-avatar.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class UserAvatarComponent { | ||
@Input() public userInfo!: UserListVm; | ||
@Input() public size: 'l' | 's' | 'xs' = 'l'; | ||
} |
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
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
...src/app/pages/portal/user/components/user-detail-dialog/user-detail-dialog.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 @@ | ||
<p>user-detail-dialog works!</p> |
Empty file.
11 changes: 11 additions & 0 deletions
11
...s/src/app/pages/portal/user/components/user-detail-dialog/user-detail-dialog.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,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
@Component({ | ||
selector: 'mix-user-detail-dialog', | ||
standalone: true, | ||
imports: [CommonModule], | ||
templateUrl: './user-detail-dialog.component.html', | ||
styleUrls: ['./user-detail-dialog.component.scss'], | ||
}) | ||
export class UserDetailDialogComponent {} |
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
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
c653f23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mix-portal-angular – ./
mix-portal-angular-git-master-mixcore.vercel.app
mix-portal-angular.vercel.app
studio.mixcore.net
mix-portal-angular-mixcore.vercel.app
admin.mixcore.dev