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 { BackendService } from './services/backend.service';
import { TaskFormComponent } from './components/task-form/task-form.component';
import { UserstoryFormComponent } from './components/userstory-form/userstory-form.component';
import { SprintFormComponent } from './components/sprint-form/sprint-form.component';
import { TaskFormComponent } from './components/forms/task/task-form.component';
import { UserstoryFormComponent } from './components/forms/userstory/userstory-form.component';
import { SprintFormComponent } from './components/forms/sprint/sprint-form.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { UserstoryTableComponent } from './components/tabels/userstory/userstory-table.component';
import { TaskTableComponent } from './components/tabels/task/task-table.component';

View File

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

View File

@ -1,7 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
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 { SprintFormComponent } from './sprint-form.component';

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
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 { UserstoryFormComponent } from './userstory-form.component';

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import {
ScrumCategory,
} from '../../../services/backend.service';
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 { ActivatedRoute, ParamMap, Router } from '@angular/router';
import { getNumberForPriority } from '../../../services/sorting.service';

View File

@ -9,7 +9,7 @@ import {
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { TableComponentBase } from '../table-component.base';
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';
@Component({