Skip to content

Commit 6fb8eec

Browse files
chore(tslint): quotemark
1 parent a6b4df4 commit 6fb8eec

16 files changed

+93
-93
lines changed

src/directives/directives.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
* @preferred
1010
* @module directives
1111
*/ /** */
12-
import {UISref, AnchorUISref} from "./uiSref";
13-
import {UISrefActive} from "./uiSrefActive";
14-
import {UIView} from "./uiView";
15-
import {UISrefStatus} from "./uiSrefStatus";
12+
import {UISref, AnchorUISref} from './uiSref';
13+
import {UISrefActive} from './uiSrefActive';
14+
import {UIView} from './uiView';
15+
import {UISrefStatus} from './uiSrefStatus';
1616

17-
export * from "./uiView";
18-
export * from "./uiSref";
19-
export * from "./uiSrefStatus";
20-
export * from "./uiSrefActive";
17+
export * from './uiView';
18+
export * from './uiSref';
19+
export * from './uiSrefStatus';
20+
export * from './uiSrefActive';
2121

2222
/** @internalapi */
2323
export const _UIROUTER_DIRECTIVES = [UISref, AnchorUISref, UIView, UISrefActive, UISrefStatus];

src/directives/uiSref.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/** @ng2api @module directives */
22
/** */
3-
import { UIRouter, extend, Obj, TransitionOptions, TargetState } from "@uirouter/core";
4-
import { Directive, Inject, Input, Optional, ElementRef, Renderer2, OnChanges, SimpleChanges, HostListener } from "@angular/core";
5-
import { UIView, ParentUIViewInject } from "./uiView";
6-
import { ReplaySubject } from "rxjs/ReplaySubject";
7-
import { Subscription } from "rxjs/Subscription";
3+
import { UIRouter, extend, Obj, TransitionOptions, TargetState } from '@uirouter/core';
4+
import { Directive, Inject, Input, Optional, ElementRef, Renderer2, OnChanges, SimpleChanges, HostListener } from '@angular/core';
5+
import { UIView, ParentUIViewInject } from './uiView';
6+
import { ReplaySubject } from 'rxjs/ReplaySubject';
7+
import { Subscription } from 'rxjs/Subscription';
88

99
/**
1010
* @internalapi
@@ -124,11 +124,11 @@ export class UISref implements OnChanges {
124124
}
125125

126126
/** @internalapi */
127-
set "uiSref"(val: string) { this.state = val; this.update(); }
127+
set 'uiSref'(val: string) { this.state = val; this.update(); }
128128
/** @internalapi */
129-
set "uiParams"(val: Obj) { this.params = val; this.update(); }
129+
set 'uiParams'(val: Obj) { this.params = val; this.update(); }
130130
/** @internalapi */
131-
set "uiOptions"(val: TransitionOptions) { this.options = val; this.update(); }
131+
set 'uiOptions'(val: TransitionOptions) { this.options = val; this.update(); }
132132

133133
ngOnInit() {
134134
this._emit = true;
@@ -162,13 +162,13 @@ export class UISref implements OnChanges {
162162
const defaultOpts: TransitionOptions = {
163163
relative: this._parent && this._parent.context && this._parent.context.name,
164164
inherit: true ,
165-
source: "sref"
165+
source: 'sref'
166166
};
167167
return extend(defaultOpts, this.options || {});
168168
}
169169

170170
/** When triggered by a (click) event, this function transitions to the UISref's target state */
171-
@HostListener("click", ["$event.button", "$event.ctrlKey", "$event.metaKey"])
171+
@HostListener('click', ['$event.button', '$event.ctrlKey', '$event.metaKey'])
172172
go(button: number, ctrlKey: boolean, metaKey: boolean) {
173173
if (this._anchorUISref && (this._anchorUISref.openInNewTab() || button != 0 || ctrlKey || metaKey)) {
174174
return;

src/directives/uiSrefActive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @ng2api @module directives */ /** */
2-
import {Directive, Input, ElementRef, Host, Renderer} from "@angular/core";
3-
import {UISrefStatus, SrefStatus} from "./uiSrefStatus";
4-
import {Subscription} from "rxjs/Subscription";
2+
import {Directive, Input, ElementRef, Host, Renderer} from '@angular/core';
3+
import {UISrefStatus, SrefStatus} from './uiSrefStatus';
4+
import {Subscription} from 'rxjs/Subscription';
55

66
/**
77
* A directive that adds a CSS class when its associated `uiSref` link is active.
@@ -87,10 +87,10 @@ import {Subscription} from "rxjs/Subscription";
8787
export class UISrefActive {
8888

8989
private _classes: string[] = [];
90-
@Input('uiSrefActive') set active(val: string) { this._classes = val.split("\s+")};
90+
@Input('uiSrefActive') set active(val: string) { this._classes = val.split('\s+')};
9191

9292
private _classesEq: string[] = [];
93-
@Input('uiSrefActiveEq') set activeEq(val: string) { this._classesEq = val.split("\s+")};
93+
@Input('uiSrefActiveEq') set activeEq(val: string) { this._classesEq = val.split('\s+')};
9494

9595
private _subscription: Subscription;
9696
constructor(uiSrefStatus: UISrefStatus, rnd: Renderer, @Host() host: ElementRef) {

src/directives/uiSrefStatus.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function mergeSrefStatus(left: SrefStatus, right: SrefStatus): SrefStatus {
189189
})
190190
export class UISrefStatus {
191191
/** current statuses of the state/params the uiSref directive is linking to */
192-
@Output("uiSrefStatus") uiSrefStatus = new EventEmitter<SrefStatus>(false);
192+
@Output('uiSrefStatus') uiSrefStatus = new EventEmitter<SrefStatus>(false);
193193
/** Monitor all child components for UISref(s) */
194194
@ContentChildren(UISref, {descendants: true}) private _srefs: QueryList<UISref>;
195195

@@ -211,8 +211,8 @@ export class UISrefStatus {
211211
const transEvents$: Observable<TransEvt> = switchMap.call(this._globals.start$, (trans: Transition) => {
212212
const event = (evt: string) => ({evt, trans} as TransEvt);
213213

214-
const transStart$ = of(event("start"));
215-
const transResult = trans.promise.then(() => event("success"), () => event("error"));
214+
const transStart$ = of(event('start'));
215+
const transResult = trans.promise.then(() => event('success'), () => event('error'));
216216
const transFinish$ = fromPromise(transResult);
217217

218218
return concat.call(transStart$, transFinish$);

src/directives/uiView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const ng2ComponentInputs = (factory: ComponentFactory<any>): InputMapping[] => {
9494
`
9595
})
9696
export class UIView {
97-
static PARENT_INJECT = "UIView.PARENT_INJECT";
97+
static PARENT_INJECT = 'UIView.PARENT_INJECT';
9898

9999
@ViewChild('componentTarget', {read: ViewContainerRef}) _componentTarget: ViewContainerRef;
100100
@Input('name') name: string;
@@ -121,7 +121,7 @@ export class UIView {
121121
* @returns the UI-Router `state` that is filling this uiView, or `undefined`.
122122
*/
123123
public get state(): StateDeclaration {
124-
return parse("_uiViewData.config.viewDecl.$context.self")(this);
124+
return parse('_uiViewData.config.viewDecl.$context.self')(this);
125125
}
126126

127127
ngOnInit() {
@@ -133,7 +133,7 @@ export class UIView {
133133
$type: 'ng2',
134134
id: id++,
135135
name: name,
136-
fqn: parentFqn ? parentFqn + "." + name : name,
136+
fqn: parentFqn ? parentFqn + '.' + name : name,
137137
creationContext: this._parent.context,
138138
configUpdated: this._viewConfigUpdated.bind(this),
139139
config: undefined

src/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/** @ng2api @module ng2 */ /** for typedoc */
22

3-
export * from "./interface";
4-
export * from "./providers";
5-
export * from "./uiRouterNgModule";
6-
export * from "./uiRouterConfig";
7-
export * from "./directives/directives";
8-
export * from "./statebuilders/views";
9-
export * from "./statebuilders/lazyLoad";
10-
export * from "./lazyLoad/lazyLoadNgModule";
3+
export * from './interface';
4+
export * from './providers';
5+
export * from './uiRouterNgModule';
6+
export * from './uiRouterConfig';
7+
export * from './directives/directives';
8+
export * from './statebuilders/views';
9+
export * from './statebuilders/lazyLoad';
10+
export * from './lazyLoad/lazyLoadNgModule';
1111

12-
export * from "@uirouter/core";
12+
export * from '@uirouter/core';

src/interface.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/** @ng2api @module state */
22
/** */
33

4-
import { StateDeclaration, _ViewDeclaration, Transition, HookResult } from "@uirouter/core";
5-
import { Type, Component } from "@angular/core";
6-
import { NgModuleToLoad } from "./lazyLoad/lazyLoadNgModule";
4+
import { StateDeclaration, _ViewDeclaration, Transition, HookResult } from '@uirouter/core';
5+
import { Type, Component } from '@angular/core';
6+
import { NgModuleToLoad } from './lazyLoad/lazyLoadNgModule';
77

88
/**
99
* The StateDeclaration object is used to define a state or nested state.

src/lazyLoad/lazyLoadNgModule.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/** @ng2api @module core */
22
/** */
3-
import { NgModuleRef, Injector, NgModuleFactory, Type, Compiler, NgModuleFactoryLoader } from "@angular/core";
3+
import { NgModuleRef, Injector, NgModuleFactory, Type, Compiler, NgModuleFactoryLoader } from '@angular/core';
44
import {
55
Transition, LazyLoadResult, UIRouter, Resolvable, NATIVE_INJECTOR_TOKEN, isString, unnestR, inArray, StateObject,
66
uniqR, StateDeclaration
7-
} from "@uirouter/core";
8-
import { RootModule, UIROUTER_ROOT_MODULE, UIROUTER_MODULE_TOKEN, StatesModule } from "../uiRouterNgModule";
9-
import { applyModuleConfig } from "../uiRouterConfig";
7+
} from '@uirouter/core';
8+
import { RootModule, UIROUTER_ROOT_MODULE, UIROUTER_MODULE_TOKEN, StatesModule } from '../uiRouterNgModule';
9+
import { applyModuleConfig } from '../uiRouterConfig';
1010

1111
/**
1212
* A function that returns an NgModule, or a promise for an NgModule

src/location/locationConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @module ng2 */
22
/** */
33

4-
import { UIRouter, is, BrowserLocationConfig } from "@uirouter/core";
5-
import { LocationStrategy, PathLocationStrategy } from "@angular/common";
4+
import { UIRouter, is, BrowserLocationConfig } from '@uirouter/core';
5+
import { LocationStrategy, PathLocationStrategy } from '@angular/common';
66

77
export class Ng2LocationConfig extends BrowserLocationConfig {
88
constructor(router: UIRouter, private _locationStrategy: LocationStrategy) {

src/location/locationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class Ng2LocationServices extends BaseLocationServices {
2222

2323
_set(state: any, title: string, url: string, replace: boolean): any {
2424
const { path, search, hash } = parseUrl(url);
25-
const urlWithHash = path + (hash ? "#" + hash : "");
25+
const urlWithHash = path + (hash ? '#' + hash : '');
2626

2727
if (replace) {
2828
this._locationStrategy.replaceState(state, title, urlWithHash, search);

0 commit comments

Comments
 (0)