creation of media-viewer

This commit is contained in:
Nicolas Constant 2019-02-25 00:04:09 -05:00
parent b30986dcb3
commit 3d5b461d59
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
8 changed files with 65 additions and 2 deletions

View File

@ -1,3 +1,6 @@
<app-media-viewer id="media-viewer"
*ngIf="mediaViewerActive"></app-media-viewer>
<app-left-side-bar>
</app-left-side-bar>

View File

@ -24,6 +24,15 @@
z-index: 1;
}
#media-viewer {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 99999999;
}
app-streams-selection-footer {
position: absolute;
height: 30px;

View File

@ -13,9 +13,10 @@ import { StreamElement } from './states/streams.state';
})
export class AppComponent implements OnInit, OnDestroy {
title = 'Sengi';
floatingColumnActive: boolean;
tutorialActive: boolean;
mediaViewerActive: boolean = false;
private columnEditorSub: Subscription;
@Select(state => state.streamsstatemodel.streams) streamElements$: Observable<StreamElement[]>;

View File

@ -48,6 +48,7 @@ import { StreamEditionComponent } from './components/stream/stream-edition/strea
import { TutorialComponent } from './components/tutorial/tutorial.component';
import { NotificationHubComponent } from './components/notification-hub/notification-hub.component';
import { NotificationService } from "./services/notification.service";
import { MediaViewerComponent } from './components/media-viewer/media-viewer.component';
const routes: Routes = [
{ path: "", redirectTo: "home", pathMatch: "full" },
@ -85,7 +86,8 @@ const routes: Routes = [
StreamStatusesComponent,
StreamEditionComponent,
TutorialComponent,
NotificationHubComponent
NotificationHubComponent,
MediaViewerComponent
],
imports: [
FontAwesomeModule,

View File

@ -0,0 +1,3 @@
<div class="media-viewer-canvas">
media-viewer works!
</div>

View File

@ -0,0 +1,5 @@
.media-viewer-canvas {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .6);
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MediaViewerComponent } from './media-viewer.component';
xdescribe('MediaViewerComponent', () => {
let component: MediaViewerComponent;
let fixture: ComponentFixture<MediaViewerComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MediaViewerComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MediaViewerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-media-viewer',
templateUrl: './media-viewer.component.html',
styleUrls: ['./media-viewer.component.scss']
})
export class MediaViewerComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}