-
Notifications
You must be signed in to change notification settings - Fork 1
569 create option users #575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d34f7c0
feat: #569 create users and users-list components
PaulRC-ioet e2caaea
feat: #569 create a user store and consume the service of users
PaulRC-ioet e998883
feat: #569 add test for user effects and selectors
PaulRC-ioet 6ad20d6
fix: #569 fix PR comments
PaulRC-ioet 5cc3346
fix: #569 fix PR comments by Rene
PaulRC-ioet f529b3e
fix: #569 remove column switch to admin
PaulRC-ioet 7b637c9
fix: #569 remove container from table
PaulRC-ioet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
feat: #569 create users and users-list components
- Loading branch information
commit d34f7c0d492cd772409ff40c533778b15ff68e53
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Empty file.
25 changes: 25 additions & 0 deletions
25
src/app/modules/users/components/users-list/users-list.component.html
This file contains hidden or 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,25 @@ | ||
| <table class="table table-sm table-bordered table-striped mb-0" datatable> | ||
| <thead class="thead-blue"> | ||
| <tr class="d-flex"> | ||
| <th class="col-3">User Email</th> | ||
| <th class="col-3">Names</th> | ||
| <th class="col-3">Role</th> | ||
| <th class="col-3 text-center">Options</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr class="d-flex"> | ||
| <td class="col-sm-3">[email protected]</td> | ||
| <td class="col-sm-3">Paul Rocha</td> | ||
| <td class="col-sm-3">Intern</td> | ||
| <td class="col-sm-3 text-center"> | ||
| <button type="button" class="btn btn-sm btn-primary"> | ||
| <i class="fa fa-pencil fa-xs"></i> | ||
| </button> | ||
| <button type="button" class="btn btn-sm btn-danger ml-2"> | ||
| <i class="fa fa-trash-alt fa-xs"></i> | ||
| </button> | ||
| </td> | ||
| </tr> | ||
| </tbody> | ||
| </table> |
25 changes: 25 additions & 0 deletions
25
src/app/modules/users/components/users-list/users-list.component.spec.ts
This file contains hidden or 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,25 @@ | ||
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
|
||
| import { UsersListComponent } from './users-list.component'; | ||
|
|
||
| describe('UsersListComponent', () => { | ||
| let component: UsersListComponent; | ||
| let fixture: ComponentFixture<UsersListComponent>; | ||
|
|
||
| beforeEach(async(() => { | ||
| TestBed.configureTestingModule({ | ||
| declarations: [ UsersListComponent ] | ||
| }) | ||
| .compileComponents(); | ||
| })); | ||
|
|
||
| beforeEach(() => { | ||
| fixture = TestBed.createComponent(UsersListComponent); | ||
| component = fixture.componentInstance; | ||
| fixture.detectChanges(); | ||
| }); | ||
|
|
||
| it('should create', () => { | ||
| expect(component).toBeTruthy(); | ||
| }); | ||
| }); | ||
15 changes: 15 additions & 0 deletions
15
src/app/modules/users/components/users-list/users-list.component.ts
This file contains hidden or 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,15 @@ | ||
| import { Component, OnInit } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-users-list', | ||
| templateUrl: './users-list.component.html', | ||
| styleUrls: ['./users-list.component.css'] | ||
| }) | ||
| export class UsersListComponent implements OnInit { | ||
|
|
||
| constructor() { } | ||
|
|
||
| ngOnInit(): void { | ||
| } | ||
|
|
||
| } |
Empty file.
This file contains hidden or 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,3 @@ | ||
| <div class="container"> | ||
| <app-users-list></app-users-list> | ||
| </div> | ||
PaulRC-ioet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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,25 @@ | ||
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
|
||
| import { UsersComponent } from './users.component'; | ||
|
|
||
| describe('UsersComponent', () => { | ||
| let component: UsersComponent; | ||
| let fixture: ComponentFixture<UsersComponent>; | ||
|
|
||
| beforeEach(async(() => { | ||
| TestBed.configureTestingModule({ | ||
| declarations: [ UsersComponent ] | ||
| }) | ||
| .compileComponents(); | ||
| })); | ||
|
|
||
| beforeEach(() => { | ||
| fixture = TestBed.createComponent(UsersComponent); | ||
| component = fixture.componentInstance; | ||
| fixture.detectChanges(); | ||
PaulRC-ioet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }); | ||
|
|
||
| it('should create', () => { | ||
| expect(component).toBeTruthy(); | ||
| }); | ||
| }); | ||
This file contains hidden or 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,15 @@ | ||
| import { Component, OnInit } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-users', | ||
| templateUrl: './users.component.html', | ||
| styleUrls: ['./users.component.css'] | ||
| }) | ||
| export class UsersComponent implements OnInit { | ||
|
|
||
| constructor() { } | ||
|
|
||
| ngOnInit(): void { | ||
PaulRC-ioet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.