Commit 0f6cbb15 authored by Juela Palushi's avatar Juela Palushi
Browse files

Create component of HypoMoMap tool

parent ef8eb46e
Pipeline #122760 failed with stages
in 4 minutes and 59 seconds
......@@ -6,6 +6,7 @@ import { FeatureModelViewComponent } from './feature-model-view/feature-model-vi
import { BusinessModelViewComponent } from './business-model-view/business-model-view.component';
import { ToolExplanationComponent } from './tool-explanation/tool-explanation.component';
import {HypomomapExplanationComponent} from "./hypomomap-explanation/hypomomap-explanation.component";
import {HypomomapToolComponent} from "./hypomomap-tool/hypomomap-tool.component";
// Routing for the Feature Modeler
......@@ -13,6 +14,7 @@ const routes: Routes = [
{ path: '', redirectTo: '/featuremodels', pathMatch: 'full' },
{ path: 'explanation', component: ToolExplanationComponent},
{ path: 'hypomomap-explanation', component: HypomomapExplanationComponent},
{ path: 'hypomomap-tool', component: HypomomapToolComponent},
{ path: 'featuremodel/:id', component: FeatureModelDetailComponent },
{ path: 'featuremodelview/:id', component: FeatureModelViewComponent },
{ path: 'businessmodelview/:id/:bmid', component: BusinessModelViewComponent },
......
......@@ -17,6 +17,7 @@ import { CanvasBuildingBlockComponent } from './canvas-building-block/canvas-bui
import { ToolExplanationComponent } from './tool-explanation/tool-explanation.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { HypomomapExplanationComponent } from './hypomomap-explanation/hypomomap-explanation.component';
import { HypomomapToolComponent } from './hypomomap-tool/hypomomap-tool.component';
@NgModule({
declarations: [
......@@ -30,6 +31,7 @@ import { HypomomapExplanationComponent } from './hypomomap-explanation/hypomomap
CanvasBuildingBlockComponent,
ToolExplanationComponent,
HypomomapExplanationComponent,
HypomomapToolComponent,
],
imports: [
BrowserModule,
......
......@@ -63,7 +63,7 @@
<img src="assets/hypomomap-notation.png" class="image-hypomomap" alt="Visual Notation of HypoMoMap">
<figcaption class="figcaption-hypomomap"><i>Visual Notation of HypoMoMap</i></figcaption>
</figure>
<button type="button" routerLink="/hypomomap-explanation" class="btn btn-dark btn-sm btn-block">Use HypoMoMap tool</button>
<button type="button" routerLink="/hypomomap-tool" class="btn btn-dark btn-sm btn-block">Use HypoMoMap tool</button>
</div>
<div class="my-3 p-3 bg-white rounded shadow-sm">
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HypomomapToolComponent } from './hypomomap-tool.component';
describe('HypomomapToolComponent', () => {
let component: HypomomapToolComponent;
let fixture: ComponentFixture<HypomomapToolComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HypomomapToolComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HypomomapToolComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-hypomomap-tool',
templateUrl: './hypomomap-tool.component.html',
styleUrls: ['./hypomomap-tool.component.css']
})
export class HypomomapToolComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment