mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix lint
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
"serve": "node browser-sync-config.js",
|
"serve": "node browser-sync-config.js",
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json app/**/*.ts",
|
"tslint-src": "tslint -c tslint.json app/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"licensecheck": "license-check"
|
"licensecheck": "license-check"
|
||||||
},
|
},
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
"server": "http-server -c-1 -o -p 8875 .",
|
"server": "http-server -c-1 -o -p 8875 .",
|
||||||
"build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check",
|
"build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n",
|
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n",
|
||||||
"copy-html": "copyfiles './src/**/*.html' dist",
|
"copy-html": "copyfiles './src/**/*.html' dist",
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
"server": "wsrv -o",
|
"server": "wsrv -o",
|
||||||
"build": "npm run tslint && rimraf dist && tsc",
|
"build": "npm run tslint && rimraf dist && tsc",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts"
|
"tslint-root": "tslint -c tslint.json *.ts"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc",
|
"build": "npm run tslint && rimraf dist && tsc",
|
||||||
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts"
|
"tslint-root": "tslint -c tslint.json *.ts"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\" \"npm run copy-images:w\"",
|
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\" \"npm run copy-images:w\"",
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc",
|
"build": "npm run tslint && rimraf dist && tsc",
|
||||||
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts"
|
"tslint-root": "tslint -c tslint.json *.ts"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-images:w\" \"npm run copy-i18n:w\"",
|
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-images:w\" \"npm run copy-i18n:w\"",
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc",
|
"build": "npm run tslint && rimraf dist && tsc",
|
||||||
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts"
|
"tslint-root": "tslint -c tslint.json *.ts"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\" \"npm run copy-images:w\"",
|
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\" \"npm run copy-images:w\"",
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc",
|
"build": "npm run tslint && rimraf dist && tsc",
|
||||||
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts"
|
"tslint-root": "tslint -c tslint.json *.ts"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc",
|
"build": "npm run tslint && rimraf dist && tsc",
|
||||||
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
"build:w": "npm run tslint && rimraf dist && tsc -w",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts"
|
"tslint-root": "tslint -c tslint.json *.ts"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||||
"tslint-src": "tslint -c tslint.json src/**/*.ts",
|
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"tslint-root": "tslint -c tslint.json *.ts",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
"copytemplates": "npm run copy-html-css && npm run copy-i18n",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
|
||||||
|
@@ -244,9 +244,9 @@ export class PdfViewerComponent {
|
|||||||
@HostListener('document:keydown', ['$event'])
|
@HostListener('document:keydown', ['$event'])
|
||||||
handleKeyboardEvent(event: KeyboardEvent) {
|
handleKeyboardEvent(event: KeyboardEvent) {
|
||||||
let key = event.keyCode;
|
let key = event.keyCode;
|
||||||
if (key === 39) { // right arrow
|
if (key === 39) { // right arrow
|
||||||
this.nextPage();
|
this.nextPage();
|
||||||
} else if (key === 37) { // left arrow
|
} else if (key === 37) {// left arrow
|
||||||
this.previousPage();
|
this.previousPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user