creation of media-viewer
This commit is contained in:
parent
b30986dcb3
commit
3d5b461d59
|
@ -1,3 +1,6 @@
|
||||||
|
<app-media-viewer id="media-viewer"
|
||||||
|
*ngIf="mediaViewerActive"></app-media-viewer>
|
||||||
|
|
||||||
<app-left-side-bar>
|
<app-left-side-bar>
|
||||||
</app-left-side-bar>
|
</app-left-side-bar>
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,15 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#media-viewer {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 99999999;
|
||||||
|
}
|
||||||
|
|
||||||
app-streams-selection-footer {
|
app-streams-selection-footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|
|
@ -13,9 +13,10 @@ import { StreamElement } from './states/streams.state';
|
||||||
})
|
})
|
||||||
export class AppComponent implements OnInit, OnDestroy {
|
export class AppComponent implements OnInit, OnDestroy {
|
||||||
title = 'Sengi';
|
title = 'Sengi';
|
||||||
|
|
||||||
floatingColumnActive: boolean;
|
floatingColumnActive: boolean;
|
||||||
tutorialActive: boolean;
|
tutorialActive: boolean;
|
||||||
|
mediaViewerActive: boolean = false;
|
||||||
|
|
||||||
private columnEditorSub: Subscription;
|
private columnEditorSub: Subscription;
|
||||||
|
|
||||||
@Select(state => state.streamsstatemodel.streams) streamElements$: Observable<StreamElement[]>;
|
@Select(state => state.streamsstatemodel.streams) streamElements$: Observable<StreamElement[]>;
|
||||||
|
|
|
@ -48,6 +48,7 @@ import { StreamEditionComponent } from './components/stream/stream-edition/strea
|
||||||
import { TutorialComponent } from './components/tutorial/tutorial.component';
|
import { TutorialComponent } from './components/tutorial/tutorial.component';
|
||||||
import { NotificationHubComponent } from './components/notification-hub/notification-hub.component';
|
import { NotificationHubComponent } from './components/notification-hub/notification-hub.component';
|
||||||
import { NotificationService } from "./services/notification.service";
|
import { NotificationService } from "./services/notification.service";
|
||||||
|
import { MediaViewerComponent } from './components/media-viewer/media-viewer.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: "", redirectTo: "home", pathMatch: "full" },
|
{ path: "", redirectTo: "home", pathMatch: "full" },
|
||||||
|
@ -85,7 +86,8 @@ const routes: Routes = [
|
||||||
StreamStatusesComponent,
|
StreamStatusesComponent,
|
||||||
StreamEditionComponent,
|
StreamEditionComponent,
|
||||||
TutorialComponent,
|
TutorialComponent,
|
||||||
NotificationHubComponent
|
NotificationHubComponent,
|
||||||
|
MediaViewerComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<div class="media-viewer-canvas">
|
||||||
|
media-viewer works!
|
||||||
|
</div>
|
|
@ -0,0 +1,5 @@
|
||||||
|
.media-viewer-canvas {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(0, 0, 0, .6);
|
||||||
|
}
|
|
@ -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();
|
||||||
|
});
|
||||||
|
});
|
|
@ -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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue