Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
"src/assets"
],
"styles": [
"./node_modules/bootstrap/dist/css/bootstrap.css",
"src/fonts/Roboto.css",
"src/styles.css"
"src/styles.scss"
],
"scripts": [
"node_modules/jquery/dist/jquery.slim.min.js",
"node_modules/popper.js/dist/umd/popper.min.js",
"node_modules/bootstrap/dist/js/bootstrap.js",
"node_modules/osc-js/lib/osc.js",
"node_modules/js-cookie/src/js.cookie.js"
]
],
"allowedCommonJsDependencies": ["crypto-js"]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -127,5 +127,11 @@
}
}
},
"defaultProject": "cuems"
}
"defaultProject": "cuems",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
}

}
Binary file added formitgo.pdf
Binary file not shown.
32,662 changes: 16,331 additions & 16,331 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,8 @@
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.9.5"
},
"browser": {
"crypto": false
}
}
26 changes: 26 additions & 0 deletions src/_custom-variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Color system
$white: #fff;

$bgmain: #1D2329;
$bgsecondary: #181D22;
$bgactive: #3B4349;

$modalbg: #f1f1f1;
$modaltext: #717b89;

$textactive: #CFD4DB;
$textcontent: #ADB1B7;

$primary: #7D63FB;
$secondary: #E74D88;
$success: #48C589;
$dark: #3B4349;

$successdisabledbg: #000000;
$successdisabledcolor: #283037;

$btn-hover-color: #FFF!important;

$errorclr:#a52a2a;

$dialog-actions: #e1e1e0;
10 changes: 7 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ import {MatMenuModule} from '@angular/material/menu';
import {MatTooltipModule} from '@angular/material/tooltip';
import {MatExpansionModule} from '@angular/material/expansion';
import {MatRadioModule} from '@angular/material/radio';
import {MatToolbarModule} from '@angular/material/toolbar';
import { MatSidenavModule } from '@angular/material/sidenav';



Expand Down Expand Up @@ -111,7 +113,7 @@ import { NewProjectComponent } from './components/new-project/new-project.compon
UnixNamePipe,
NewProjectComponent,
DessingComponent,

],
imports: [
BrowserModule,
Expand All @@ -120,6 +122,8 @@ import { NewProjectComponent } from './components/new-project/new-project.compon
FormsModule,
ReactiveFormsModule,
APP_ROUTING,
MatToolbarModule,
MatSidenavModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
Expand Down Expand Up @@ -155,8 +159,8 @@ import { NewProjectComponent } from './components/new-project/new-project.compon
EditCueComponent,
ConfirmDialogComponent
],
schemas: [
schemas: [
CUSTOM_ELEMENTS_SCHEMA
]
})
export class AppModule { }
export class AppModule { }
10 changes: 5 additions & 5 deletions src/app/components/confirm-dialog/confirm-dialog.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h1 mat-dialog-title>{{inData.name}}</h1>
<div mat-dialog-content>
<p>{{inData.msg}}</p>
<p class="mb-4">{{inData.msg}}</p>
</div>
<div mat-dialog-actions align="end">
<button class="btn btn-light px-4 py-2 mr-4" (click)="close()">{{ 'cancel' | translate }}</button>
<button class="btn {{inData.btnclass}} px-4 py-2" (click)="confirm()" cdkFocusInitial>{{inData.btnmsg}}</button>
</div>
<div mat-dialog-actions>
<button mat-button (click)="close()">Cancelar</button>
<button mat-button (click)="confirm()" cdkFocusInitial>Adelante</button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ export class ConfirmDialogComponent implements OnInit {
constructor(
private dialogRef: MatDialogRef<ConfirmDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any
) {
) {
this.inData.name = data.name;
this.inData.msg = data.msg;
this.inData.btnmsg = data.btnmsg;
this.inData.btnclass = data.btnclass;
}

ngOnInit(): void {
Expand Down
396 changes: 223 additions & 173 deletions src/app/components/cuelist/cuelist.component.html

Large diffs are not rendered by default.

90 changes: 48 additions & 42 deletions src/app/components/cuelist/cuelist.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export class CueListComponent implements OnInit, AfterViewInit {
this.recibimosWs(); // recibimos la respuesta del servidor
}
FULL_PATH: any[] = [];
nextCue;
nextCue;
timecode;
// Conexion websocket deserialized

wsRealtime = webSocket({
url: 'wss://dev.stagelab.net/realtime',
deserializer: (data: any) => this.in_message(data),
Expand All @@ -65,7 +65,7 @@ export class CueListComponent implements OnInit, AfterViewInit {
});

in_message(mess: any) {

if (mess.data instanceof ArrayBuffer) {
let dataView = new DataView(mess.data);
const msg = new OSC.Message();
Expand All @@ -92,14 +92,14 @@ export class CueListComponent implements OnInit, AfterViewInit {
if (msg.args[0] === '') {
this.unselectCue();
}

break;
case '/engine/status/timecode':
this.timecode = parseInt(msg.args[0], 10);
this.timecode = this.timecode / 1000;
// console.log(this.timecode);
break;

default:
break;
}
Expand All @@ -113,15 +113,15 @@ export class CueListComponent implements OnInit, AfterViewInit {
}

realTime(){

this.wsRealtime.subscribe( // nos conectamos al realtime
data => {
});
// console.log('realtime');


// this.wsRealtime.next('/'); // emitimos el mensage por el ws

}

// objeto que compartimos con el navbar
Expand Down Expand Up @@ -224,14 +224,14 @@ despligue_state = false;
};

public nodeList: NodeList = { // Listado de nodos y salidas
number_of_nodes: 0,
default_audio_input: '',
default_audio_output: '',
default_video_input: '',
default_video_output: '',
default_dmx_input: '',
default_dmx_output: '',

number_of_nodes: 0,
default_audio_input: '',
default_audio_output: '',
default_video_input: '',
default_video_output: '',
default_dmx_input: '',
default_dmx_output: '',
nodes: []
};

Expand Down Expand Up @@ -376,7 +376,7 @@ despligue_state = false;

// console.log(this.audioOutputList);
// console.log(this.videoOutputList);

// }
break;
}
Expand Down Expand Up @@ -425,11 +425,11 @@ despligue_state = false;
this.alertService.success('Despliqgue realizado ', options);
this.despligue_state = true;
}

break;
}
// case 'project_load': {

// // console.log(recibo.value);
// // if (recibo.value.uuid === this.cueMs.uuid){
// // this.proService.changeEditing(this.edit); // enlace con navbar posicionamiento en modo edit
Expand Down Expand Up @@ -664,6 +664,10 @@ saveProject(): void{
this.edit.guardar = false; // reseteamos el valor que compartimos con navbar
this.edit.estiloGuardar = ''; // reseteamos el estilo que compartimos con navbar
}
preferences(): void {
this.edit.preferences = true;
this.proService.changeEditing(this.edit);
}
duration(cue): string{
if (this.contents[cue][this.tipoCue[cue]].Media !== null) { // si Media no es null

Expand Down Expand Up @@ -722,8 +726,8 @@ duration(cue): string{
const newMediaName = data.media;
const newInTime = data.in_time;
const newOutTime = data.out_time;
const newOutputName = data.output_name;
const newOutputName = data.output_name;


if (newMediaName !== null) {
Media = {
Expand Down Expand Up @@ -816,7 +820,7 @@ duration(cue): string{
]
}
};

break;
case 'VideoCue':
newCue = {
Expand Down Expand Up @@ -1048,7 +1052,7 @@ const messageGo = new OSC.Message('/engine/command/go');
const binaryGo = messageGo.pack();
this.wsRealtime.next(binaryGo);
// console.log(this.cueMs.CueList.contents);

} else {
this.claseGo = 'btn h-100 btn-danger btn-block'; // Go en color rojo
setTimeout(() => { this.claseGo = 'btn h-100 btn-outline-danger btn-block'; }, 500);
Expand Down Expand Up @@ -1077,12 +1081,12 @@ this.wsRealtime.next(binaryGo);
if (this.despligue_state) {
console.log('despliegue en teario realizado, volvemos a enviar la orden');
this.wsService.wsEmit({action: 'project_deploy', value: this.cueMs.uuid});

} else {
console.log('despliegue');
this.wsService.wsEmit({action: 'project_deploy', value: this.cueMs.uuid});
}


}
hw_discovery(){
Expand All @@ -1093,15 +1097,15 @@ this.wsRealtime.next(binaryGo);

selectCue( id: number ): void{ // cuando seleccionamos una cue
if (this.edit.mode === true) { // si estamos en modo show

this.idCueSelected = id; // asignamos la id de la cue a actualizar para usarla en el submit
this.claseGo = 'btn h-100 btn-primary btn-block'; // mostramos la class de go como cargada

} else {

this.idCueSelected = id; // asignamos la id de la cue a actualizar para usarla en el submit
// this.claseGo = 'btn h-100 btn-primary btn-block'; // mostramos la class de go como cargada

}


Expand Down Expand Up @@ -1202,7 +1206,7 @@ initMode(value): void{
this.readyGo = false;
this.claseGo = 'btn h-100 btn-outline-danger btn-block';
// console.log(this.edit.mode);

} else {
this.proService.projectReady(this.cueMs.uuid);
}
Expand All @@ -1220,12 +1224,14 @@ initMode(value): void{
const dialogConfig = new MatDialogConfig();
dialogConfig.disableClose = true;
dialogConfig.autoFocus = true;
dialogConfig.height = '200px';
dialogConfig.width = '300px';
//dialogConfig.height = '200px';
//dialogConfig.width = '300px';

dialogConfig.data = {
name: 'Estás a punto de borrar la cue ' + this.contents[idx][this.tipoCue[idx]].name,
msg: 'Confirmas borrarla?'
name: 'Delete: '+this.contents[idx][this.tipoCue[idx]].name,
msg: 'This will delete this cue. Are you sure?',
btnmsg: 'Delete',
btnclass: 'btn-danger'
};

const dialogRef = this.dialog.open(ConfirmDialogComponent, dialogConfig);
Expand All @@ -1243,8 +1249,8 @@ initMode(value): void{

editCueDialog(): void {
// console.log(this.mediaList);
if (this.edit.mode === true) { // si no estamos en modo edit
if (this.edit.mode === true) { // si no estamos en modo edit

} else {
let Media;

Expand All @@ -1254,7 +1260,7 @@ if (this.edit.mode === true) { // si no estamos en modo edit
const callMedia = this.contents[this.idCueSelected][this.tipoCue[this.idCueSelected]].Media;
const outPuts = this.contents[this.idCueSelected][this.tipoCue[this.idCueSelected]].Outputs[0];
let output_name;

// console.log(commonProperties.description);
// let cueMedia = false;

Expand Down Expand Up @@ -1295,7 +1301,7 @@ if (this.edit.mode === true) { // si no estamos en modo edit
post_go : commonProperties.post_go,
media : callMedia,
output_name : output_name,

// in_time : region.in_time.CTimecode,
// out_time : region.out_time.CTimecode,
mediaList : this.mediaList,
Expand Down Expand Up @@ -1331,11 +1337,11 @@ if (this.edit.mode === true) { // si no estamos en modo edit
this.color_despligue = 'warn'; // resaltamos alerta de despligue

// console.log(data.output_name);


if (data.media !== null && data.media !== 'Sin media') {
Media = {
file_name: data.media,
file_name: data.media,
regions: [{
region: {
id: 0,
Expand Down Expand Up @@ -1390,8 +1396,8 @@ preferencesDialog(): void {
const dialogConfig = new MatDialogConfig();
dialogConfig.disableClose = true;
dialogConfig.autoFocus = true;
dialogConfig.height = '400px';
dialogConfig.width = '800px';
//dialogConfig.height = '400px';
//dialogConfig.width = '800px';

dialogConfig.data = {
accion : 'edit',
Expand Down
Loading