-
Notifications
You must be signed in to change notification settings - Fork 1
#19 change application colors #70
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e488233
#3 search active projects in view projects
daros10 6defa24
#3 search active projects in view timeClockIn
daros10 f4304fe
#3 added project service in list
daros10 24fffd6
#3 Added importation filter project
daros10 dea7d20
#50 added border error in inputs
daros10 741bfdd
#50 added validaition style in Activity page
daros10 b390e14
#19 added navbar and sidebar styles
daros10 3ec1568
#19 added styles in pages
daros10 541eeb8
#3 search active projects in view projects
daros10 bd595a9
#3 search active projects in view timeClockIn
daros10 1521710
#3 added project service in list
daros10 d85cf09
#3 Added importation filter project
daros10 78fa129
#50 added border error in inputs
daros10 dd7f132
#19 added styles in pages
daros10 750f375
#19 styles aplied based only in master branch
daros10 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
#3 search active projects in view projects
- Loading branch information
commit e4882335168345a01d624f92f85ec79902191849
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
3 changes: 3 additions & 0 deletions
3
src/app/modules/shared/components/search-project/search-project.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,3 @@ | ||
| <div class="form-group"> | ||
| <input (keyup)="changeFilterValue()" type="text" class="form-control" placeholder=" Search active projects..." name="filterProject" [(ngModel)]="filterProject" style="font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, FontAwesome"> | ||
| </div> |
Empty file.
32 changes: 32 additions & 0 deletions
32
src/app/modules/shared/components/search-project/search-project.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,32 @@ | ||
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
|
||
| import { SearchProjectComponent } from './search-project.component'; | ||
|
|
||
| describe('SearchProjectComponent', () => { | ||
|
||
| let component: SearchProjectComponent; | ||
| let fixture: ComponentFixture<SearchProjectComponent>; | ||
|
|
||
| beforeEach(async(() => { | ||
| TestBed.configureTestingModule({ | ||
| declarations: [SearchProjectComponent] | ||
| }) | ||
| .compileComponents(); | ||
| })); | ||
|
|
||
| beforeEach(() => { | ||
| fixture = TestBed.createComponent(SearchProjectComponent); | ||
| component = fixture.componentInstance; | ||
| fixture.detectChanges(); | ||
| }); | ||
|
|
||
| it('should create', () => { | ||
| expect(component).toBeTruthy(); | ||
| }); | ||
|
|
||
| it('called method', () => { | ||
| component.changeFilterProject.emit('angular'); | ||
| component.filterProject = 'angular'; | ||
| component.changeFilterValue(); | ||
| expect(component.filterProject).toEqual('angular'); | ||
| }); | ||
| }); | ||
22 changes: 22 additions & 0 deletions
22
src/app/modules/shared/components/search-project/search-project.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,22 @@ | ||
| import { Component, OnInit, Output, EventEmitter } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-search-project', | ||
| templateUrl: './search-project.component.html', | ||
| styleUrls: ['./search-project.component.scss'] | ||
| }) | ||
| export class SearchProjectComponent implements OnInit { | ||
|
|
||
| filterProject: string; | ||
| @Output() changeFilterProject = new EventEmitter(); | ||
|
|
||
| constructor() { } | ||
|
|
||
| ngOnInit(): void { | ||
| } | ||
|
|
||
| changeFilterValue() { | ||
| this.changeFilterProject.emit(this.filterProject); | ||
| } | ||
|
|
||
| } |
8 changes: 8 additions & 0 deletions
8
src/app/modules/shared/pipes/filter-project/filter-project.pipe.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,8 @@ | ||
| import { FilterProjectPipe } from './filter-project.pipe'; | ||
|
|
||
| describe('FilterProjectPipe', () => { | ||
| it('create an instance', () => { | ||
| const pipe = new FilterProjectPipe(); | ||
| expect(pipe).toBeTruthy(); | ||
| }); | ||
| }); |
26 changes: 26 additions & 0 deletions
26
src/app/modules/shared/pipes/filter-project/filter-project.pipe.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,26 @@ | ||
| import { Pipe, PipeTransform } from '@angular/core'; | ||
| import { Project } from 'src/app/modules/shared/models/project.model'; | ||
|
|
||
| @Pipe({ | ||
| name: 'filterProject' | ||
| }) | ||
| export class FilterProjectPipe implements PipeTransform { | ||
|
|
||
| transform(value: Project[] = [], arg: string): string[] { | ||
|
|
||
| const restultProjects = []; | ||
| // tslint:disable-next-line: prefer-for-of | ||
| for (let i = 0; i < value.length; i++) { | ||
| if (value[i].name.toLowerCase().indexOf(arg.toLowerCase()) > -1) { | ||
| if (arg.length < 1) { | ||
| restultProjects.push(value[i]); | ||
| } else if (value[i].status === 'Active') { | ||
| restultProjects.push(value[i]); | ||
| } | ||
| } | ||
| } | ||
| console.log(restultProjects.length); | ||
| return restultProjects; | ||
| } | ||
|
|
||
| } |
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
Oops, something went wrong.
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.
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.
is this your local update.?
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.
removed.