lint fix
This commit is contained in:
parent
27eebf7f78
commit
1ab7d6bbad
@ -1,5 +1,6 @@
|
||||
import { IListable } from '../../listing/models/listable';
|
||||
import { Filter } from './filter';
|
||||
import { IListable, INestedFilter } from '@iqser/common-ui';
|
||||
import { INestedFilter } from './nested-filter.model';
|
||||
|
||||
export class NestedFilter extends Filter implements INestedFilter, IListable {
|
||||
expanded: boolean;
|
||||
|
||||
@ -15,7 +15,7 @@ import { ListingComponent } from '../listing-component.directive';
|
||||
import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
||||
import { Required } from '../../utils';
|
||||
import { LoadingService } from '../../loading';
|
||||
import { IListable } from '../models';
|
||||
import {IListable} from "../models";
|
||||
|
||||
interface WorkflowColumn<T, K> {
|
||||
key: K;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { HeaderOptions } from '@iqser/common-ui';
|
||||
import { HeaderOptions } from '../services/generic.service';
|
||||
|
||||
export class HeadersConfiguration {
|
||||
static getHeaders(options?: HeaderOptions): HttpHeaders {
|
||||
@ -71,6 +71,7 @@ export class HeadersConfiguration {
|
||||
* @return True if the given MIME is JSON, false otherwise.
|
||||
*/
|
||||
static isJsonMime(mime: string): boolean {
|
||||
// eslint-disable-next-line no-control-regex
|
||||
const jsonMime = new RegExp('^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
||||
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
||||
}
|
||||
|
||||
@ -7,12 +7,12 @@ import { HttpUrlEncodingCodec } from "@angular/common/http";
|
||||
*/
|
||||
export class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
||||
encodeKey(k: string): string {
|
||||
k = super.encodeKey(k);
|
||||
return k.replace(/\+/gi, '%2B');
|
||||
const kk = super.encodeKey(k);
|
||||
return kk.replace(/\+/gi, '%2B');
|
||||
}
|
||||
|
||||
encodeValue(v: string): string {
|
||||
v = super.encodeValue(v);
|
||||
return v.replace(/\+/gi, '%2B');
|
||||
const vv = super.encodeValue(v);
|
||||
return vv.replace(/\+/gi, '%2B');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user