Refactored Form Component locations

All form related components now reside in the components/forms folder
This commit is contained in:
Nicolai Ort 2020-07-20 11:15:33 +02:00
parent b57dcbb951
commit b502f7cfe6
17 changed files with 48 additions and 49 deletions

View File

@ -7,9 +7,9 @@ import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { BackendService } from './services/backend.service'; import { BackendService } from './services/backend.service';
import { TaskFormComponent } from './components/task-form/task-form.component'; import { TaskFormComponent } from './components/forms/task/task-form.component';
import { UserstoryFormComponent } from './components/userstory-form/userstory-form.component'; import { UserstoryFormComponent } from './components/forms/userstory/userstory-form.component';
import { SprintFormComponent } from './components/sprint-form/sprint-form.component'; import { SprintFormComponent } from './components/forms/sprint/sprint-form.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { UserstoryTableComponent } from './components/tabels/userstory/userstory-table.component'; import { UserstoryTableComponent } from './components/tabels/userstory/userstory-table.component';
import { TaskTableComponent } from './components/tabels/task/task-table.component'; import { TaskTableComponent } from './components/tabels/task/task-table.component';

View File

@ -7,7 +7,7 @@ import {
ScrumSprint, ScrumSprint,
} from '../../services/backend.service'; } from '../../services/backend.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { SprintFormComponent } from '../sprint-form/sprint-form.component'; import { SprintFormComponent } from '../forms/sprint/sprint-form.component';
@Component({ @Component({
selector: 'app-backlog', selector: 'app-backlog',

View File

@ -1,7 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import { BackendService } from '../../services/backend.service'; import { BackendService } from '../../../services/backend.service';
import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { SprintFormComponent } from './sprint-form.component'; import { SprintFormComponent } from './sprint-form.component';

View File

@ -1,7 +1,7 @@
// Importing necessary components and interfaces. // Importing necessary components and interfaces.
import { Component, OnInit, Input } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { BackendService, ScrumSprint } from '../../services/backend.service'; import { BackendService, ScrumSprint } from '../../../services/backend.service';
@Component({ @Component({
selector: 'app-task-form', selector: 'app-task-form',

View File

@ -1,36 +1,36 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TaskFormComponent } from './task-form.component'; import { TaskFormComponent } from './task-form.component';
import { HttpClientModule } from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import { BackendService } from '../../services/backend.service'; import { BackendService } from '../../../services/backend.service';
import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
describe('TaskFormComponent', () => { describe('TaskFormComponent', () => {
let component: TaskFormComponent; let component: TaskFormComponent;
let fixture: ComponentFixture<TaskFormComponent>; let fixture: ComponentFixture<TaskFormComponent>;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [ imports: [
HttpClientModule, HttpClientModule,
NgbModule, NgbModule,
], ],
declarations: [TaskFormComponent], declarations: [TaskFormComponent],
providers: [ providers: [
BackendService, BackendService,
NgbActiveModal, NgbActiveModal,
] ]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(TaskFormComponent); fixture = TestBed.createComponent(TaskFormComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });
it('should create the component', () => { it('should create the component', () => {
expect(component).toBeTruthy(); expect(component).toBeTruthy();
}); });
}); });

View File

@ -10,7 +10,7 @@ import {
ScrumUser, ScrumUser,
ScrumProject, ScrumProject,
ScrumUserstory ScrumUserstory
} from '../../services/backend.service'; } from '../../../services/backend.service';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { HttpResponse } from '@angular/common/http'; import { HttpResponse } from '@angular/common/http';

View File

@ -1,7 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import { BackendService } from '../../services/backend.service'; import { BackendService } from '../../../services/backend.service';
import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { UserstoryFormComponent } from './userstory-form.component'; import { UserstoryFormComponent } from './userstory-form.component';

View File

@ -1,8 +1,7 @@
// Importing necessary components and interfaces. // Importing necessary components and interfaces.
import { Component, OnInit, Input } from '@angular/core'; import { Component, OnInit, Input } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { BackendService, ScrumUserstory, Priority } from '../../services/backend.service'; import { BackendService, ScrumUserstory, Priority, ScrumStatus, ScrumCategory, ScrumUser } from '../../../services/backend.service';
import { ScrumTask, ScrumStatus, ScrumCategory, ScrumUser, ScrumProject } from '../../services/backend.service';
@Component({ @Component({
selector: 'app-userstory-form', selector: 'app-userstory-form',

View File

@ -3,7 +3,7 @@ import { BackendService, ScrumSprint } from '../../../services/backend.service';
import { TableComponentBase } from '../table-component.base'; import { TableComponentBase } from '../table-component.base';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ActivatedRoute, ParamMap, Router } from '@angular/router'; import { ActivatedRoute, ParamMap, Router } from '@angular/router';
import { SprintFormComponent } from '../../sprint-form/sprint-form.component'; import { SprintFormComponent } from '../../forms/sprint/sprint-form.component';
@Component({ @Component({
selector: 'app-sprint', selector: 'app-sprint',

View File

@ -7,7 +7,7 @@ import {
ScrumCategory, ScrumCategory,
} from '../../../services/backend.service'; } from '../../../services/backend.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { TaskFormComponent } from '../../task-form/task-form.component'; import { TaskFormComponent } from '../../forms/task/task-form.component';
import { TableComponentBase } from '../table-component.base'; import { TableComponentBase } from '../table-component.base';
import { ActivatedRoute, ParamMap, Router } from '@angular/router'; import { ActivatedRoute, ParamMap, Router } from '@angular/router';
import { getNumberForPriority } from '../../../services/sorting.service'; import { getNumberForPriority } from '../../../services/sorting.service';

View File

@ -9,7 +9,7 @@ import {
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { TableComponentBase } from '../table-component.base'; import { TableComponentBase } from '../table-component.base';
import { getNumberForPriority } from '../../../services/sorting.service'; import { getNumberForPriority } from '../../../services/sorting.service';
import { UserstoryFormComponent } from '../../userstory-form/userstory-form.component'; import { UserstoryFormComponent } from '../../forms/userstory/userstory-form.component';
import { ActivatedRoute, ParamMap, Router } from '@angular/router'; import { ActivatedRoute, ParamMap, Router } from '@angular/router';
@Component({ @Component({