mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
enable noImplicitReturns rule
This commit is contained in:
6
package-lock.json
generated
6
package-lock.json
generated
@@ -29,9 +29,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@alfresco/js-api": {
|
"@alfresco/js-api": {
|
||||||
"version": "3.6.0-e6e63bb456c4b5c98ee92b18e63e6e69f08b6557",
|
"version": "3.6.0-30c45018502e789b5f32210201829125b285bcce",
|
||||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-e6e63bb456c4b5c98ee92b18e63e6e69f08b6557.tgz",
|
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-30c45018502e789b5f32210201829125b285bcce.tgz",
|
||||||
"integrity": "sha512-13KrK7fvipEhtnr3Z9vrcpST2djkHyja2V0KnH6TXWkMLH7hhRnoFYYUlF0ivlH+RhE3oNr/aCUOloXH9b3PtQ==",
|
"integrity": "sha512-i65bwt3IIJrfOJaej17YOh3TWR5gX1NUyh1ZCkZvgaVz3LDPDO+ivaBiVxBv37eJzb89nRxwQS4TmJ98zVAGBA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"event-emitter": "0.3.4",
|
"event-emitter": "0.3.4",
|
||||||
"minimatch": "3.0.4",
|
"minimatch": "3.0.4",
|
||||||
|
@@ -39,7 +39,7 @@
|
|||||||
"@alfresco/adf-content-services": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
"@alfresco/adf-content-services": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||||
"@alfresco/adf-core": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
"@alfresco/adf-core": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||||
"@alfresco/adf-extensions": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
"@alfresco/adf-extensions": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5",
|
||||||
"@alfresco/js-api": "3.6.0-e6e63bb456c4b5c98ee92b18e63e6e69f08b6557",
|
"@alfresco/js-api": "3.6.0-30c45018502e789b5f32210201829125b285bcce",
|
||||||
"@angular/animations": "7.2.15",
|
"@angular/animations": "7.2.15",
|
||||||
"@angular/cdk": "^7.3.7",
|
"@angular/cdk": "^7.3.7",
|
||||||
"@angular/common": "7.2.15",
|
"@angular/common": "7.2.15",
|
||||||
|
@@ -24,7 +24,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
|
||||||
import { NodePaging, Pagination, MinimalNodeEntity } from '@alfresco/js-api';
|
import {
|
||||||
|
Pagination,
|
||||||
|
MinimalNodeEntity,
|
||||||
|
ResultSetPaging
|
||||||
|
} from '@alfresco/js-api';
|
||||||
import { ActivatedRoute, Params, Router } from '@angular/router';
|
import { ActivatedRoute, Params, Router } from '@angular/router';
|
||||||
import {
|
import {
|
||||||
SearchQueryBuilderService,
|
SearchQueryBuilderService,
|
||||||
@@ -57,7 +61,7 @@ export class SearchResultsComponent extends PageComponent implements OnInit {
|
|||||||
|
|
||||||
searchedWord: string;
|
searchedWord: string;
|
||||||
queryParamName = 'q';
|
queryParamName = 'q';
|
||||||
data: NodePaging;
|
data: ResultSetPaging;
|
||||||
totalResults = 0;
|
totalResults = 0;
|
||||||
hasSelectedFilters = false;
|
hasSelectedFilters = false;
|
||||||
sorting = ['name', 'asc'];
|
sorting = ['name', 'asc'];
|
||||||
@@ -201,7 +205,7 @@ export class SearchResultsComponent extends PageComponent implements OnInit {
|
|||||||
return this.formatFields(fields, userInput);
|
return this.formatFields(fields, userInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
onSearchResultLoaded(nodePaging: NodePaging) {
|
onSearchResultLoaded(nodePaging: ResultSetPaging) {
|
||||||
this.data = nodePaging;
|
this.data = nodePaging;
|
||||||
this.totalResults = this.getNumberOfResults();
|
this.totalResults = this.getNumberOfResults();
|
||||||
this.hasSelectedFilters = this.isFiltered();
|
this.hasSelectedFilters = this.isFiltered();
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"typeRoots": ["node_modules/@types"],
|
"typeRoots": ["node_modules/@types"],
|
||||||
"lib": ["es2018", "dom"],
|
"lib": ["es2018", "dom"],
|
||||||
|
Reference in New Issue
Block a user