Skip to content
Snippets Groups Projects
Commit a612e0c2 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

explorer service and network menu as sidebar in explorer; next step...

explorer service and network menu as sidebar in explorer; next step componizing of network and sidebar such that it can be applied easily to analysis
parent 6c0b5cf2
No related branches found
No related tags found
No related merge requests found
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NetworkMenuComponent } from './network-menu.component';
describe('NetworkMenuComponent', () => {
let component: NetworkMenuComponent;
let fixture: ComponentFixture<NetworkMenuComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ NetworkMenuComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(NetworkMenuComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, Input, OnInit } from '@angular/core';
import { DrugstoneConfigService } from 'src/app/services/drugstone-config/drugstone-config.service';
@Component({
selector: 'app-network-menu',
templateUrl: './network-menu.component.html',
styleUrls: ['./network-menu.component.scss']
})
export class NetworkMenuComponent implements OnInit {
constructor(public drugstoneConfig: DrugstoneConfigService) { }
@Input() networkContext: any;
ngOnInit(): void {
}
}
import { TestBed } from '@angular/core/testing';
import { DrugstoneConfigService } from './drugstone-config.service';
describe('DrugstoneConfigService', () => {
let service: DrugstoneConfigService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(DrugstoneConfigService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
import { Injectable } from '@angular/core';
import {defaultConfig, IConfig} from '../../config';
@Injectable({
providedIn: 'root'
})
export class DrugstoneConfigService {
public config: IConfig = JSON.parse(JSON.stringify(defaultConfig));
public smallStyle = false;
constructor() { }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment