mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-26 22:23:16 -05:00
fix js lint errors
This commit is contained in:
parent
e177cbd042
commit
150556e105
@ -31,13 +31,13 @@ matrix:
|
|||||||
script:
|
script:
|
||||||
- yarn
|
- yarn
|
||||||
- yarn build
|
- yarn build
|
||||||
- node_modules/eslint/bin/eslint.js ui-src
|
- yarn lint
|
||||||
- language: node_js
|
- language: node_js
|
||||||
node_js: "lts/*"
|
node_js: "lts/*"
|
||||||
script:
|
script:
|
||||||
- yarn
|
- yarn
|
||||||
- yarn build
|
- yarn build
|
||||||
- node_modules/eslint/bin/eslint.js ui-src
|
- yarn lint
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
cache:
|
cache:
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "webpack-dev-server --mode development --config webpack/dev.config.js --progress",
|
"start": "webpack-dev-server --mode development --config webpack/dev.config.js --progress",
|
||||||
"build": "webpack --mode production --config webpack/prod.config.js"
|
"build": "webpack --mode production --config webpack/prod.config.js",
|
||||||
|
"lint": "eslint ui-src"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "^3.2.1",
|
"jquery": "^3.2.1",
|
||||||
|
@ -382,7 +382,7 @@ export default class NVRApplication {
|
|||||||
* Start the application.
|
* Start the application.
|
||||||
*/
|
*/
|
||||||
start() {
|
start() {
|
||||||
let nav = $('#nav');
|
const nav = $('#nav');
|
||||||
|
|
||||||
$('#toggle-nav').click(() => {
|
$('#toggle-nav').click(() => {
|
||||||
nav.toggle('slide');
|
nav.toggle('slide');
|
||||||
|
@ -112,7 +112,8 @@ export default class RecordingsView {
|
|||||||
$('<tr class="hdr">').append(
|
$('<tr class="hdr">').append(
|
||||||
$(
|
$(
|
||||||
_columnOrder
|
_columnOrder
|
||||||
.map((name) => `<th class="${name}">${_columnLabels[name]}</th>`)
|
.map((name) =>
|
||||||
|
`<th class="${name}">${_columnLabels[name]}</th>`)
|
||||||
.join('')
|
.join('')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -103,10 +103,10 @@ export default class VideoDialogView {
|
|||||||
if (narrowWindow) {
|
if (narrowWindow) {
|
||||||
console.log('Narrow window; starting video in full-screen mode.');
|
console.log('Narrow window; starting video in full-screen mode.');
|
||||||
videoDomElement.requestFullscreen();
|
videoDomElement.requestFullscreen();
|
||||||
videoDomElement.addEventListener('fullscreenchange', (event) => {
|
videoDomElement.addEventListener('fullscreenchange', () => {
|
||||||
if (document.fullscreenElement !== videoDomElement) {
|
if (document.fullscreenElement !== videoDomElement) {
|
||||||
console.log('Closing video because user exited full-screen mode.');
|
console.log('Closing video because user exited full-screen mode.');
|
||||||
this.dialogElement_.dialog("close");
|
this.dialogElement_.dialog('close');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user