More work on UI
This commit is contained in:
@@ -37,7 +37,6 @@ export class Checklist {
|
||||
this.updateRow(this.Rows.CAMERAUNITYSTREAM, status.CAMERAUNITYSTREAM);
|
||||
this.updateRow(this.Rows.UNITYBUILD, status.UNITYBUILD);
|
||||
this.updateRow(this.Rows.REPLAYFUNCTION, status.REPLAYFUNCTION);
|
||||
console.log('Updated checklist:', status);
|
||||
}
|
||||
|
||||
updateRow(row: HTMLDivElement, state: StateEntry) {
|
||||
|
||||
19
frontend/views/control/ts/lighting.ts
Normal file
19
frontend/views/control/ts/lighting.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Main } from './main';
|
||||
|
||||
export class Lighting {
|
||||
private _Main: Main;
|
||||
|
||||
gainInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_lightingsettings-gain',
|
||||
);
|
||||
exposureInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_lightingsettings-exposure',
|
||||
);
|
||||
whiteBalanceInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_lightingsettings-whitebalance',
|
||||
);
|
||||
|
||||
constructor(Main: Main) {
|
||||
this._Main = Main;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@ import { Calibration } from './calibration';
|
||||
import { ce, MorphComponent, MorphFeature } from 'morphux';
|
||||
import { OutOfServiceMode } from './outOfServiceMode';
|
||||
import { Timer } from './timer';
|
||||
import { Lighting } from './lighting';
|
||||
import { Sound } from './sound';
|
||||
|
||||
const socket = io('/');
|
||||
|
||||
@@ -14,6 +16,8 @@ export class Main {
|
||||
Calibration = new Calibration(this);
|
||||
OutOfServiceMode = new OutOfServiceMode(this);
|
||||
Timer = new Timer(this);
|
||||
Lighting = new Lighting(this);
|
||||
Sound = new Sound(this);
|
||||
|
||||
socket = socket;
|
||||
|
||||
|
||||
22
frontend/views/control/ts/sound.ts
Normal file
22
frontend/views/control/ts/sound.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Main } from './main';
|
||||
|
||||
export class Sound {
|
||||
private _Main: Main;
|
||||
|
||||
volumeInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_soundsettings-volume',
|
||||
);
|
||||
eqLowInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_soundsettings-eqlow',
|
||||
);
|
||||
eqMidInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_soundsettings-eqmid',
|
||||
);
|
||||
eqHighInput: HTMLInputElement = document.querySelector(
|
||||
'.ntsh_soundsettings-eqhigh',
|
||||
);
|
||||
|
||||
constructor(Main: Main) {
|
||||
this._Main = Main;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user