Skip to content
This repository was archived by the owner on Aug 18, 2018. It is now read-only.

Commit 5260da3

Browse files
committed
new tslint applied. angularjs updated
1 parent c4e0ee5 commit 5260da3

20 files changed

+182
-122
lines changed

conf/webpack-dist.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module.exports = {
5757
// compress: {unused: true, dead_code: true} // eslint-disable-line camelcase
5858
// })
5959
],
60+
bail: true,
6061
output: {
6162
// https://webpack.github.io/docs/library-and-externals.html
6263
path: path.join(process.cwd(), conf.paths.dist),

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-angular-jsonapi",
3-
"version": "0.6.28",
3+
"version": "0.6.29",
44
"description": "JSONAPI library developed for AngularJS in Typescript",
55
"repository": {
66
"type": "git",
@@ -11,8 +11,7 @@
1111
},
1212
"dependencies": {
1313
"angular": ">=1.4.0",
14-
"angular-localforage": "^1.3.0",
15-
"localforage-getitems": "^1.3.0"
14+
"angular-localforage": "1.3.7"
1615
},
1716
"devDependencies": {
1817
"@types/angular": "^1.6.4",

src/demo/authors/author.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class AuthorController implements ng.IController {
3535

3636
}
3737

38-
/**
38+
/*
3939
Add a new author
40-
**/
40+
*/
4141
public new() {
4242
let author = this.AuthorsService.new();
4343
author.attributes.name = 'Pablo Reyes';
@@ -49,9 +49,9 @@ class AuthorController implements ng.IController {
4949
// author.save( /* { include: ['book'] } */ );
5050
}
5151

52-
/**
52+
/*
5353
Update name for actual author
54-
**/
54+
*/
5555
public update() {
5656
this.author.attributes.name += 'o';
5757
this.author.save(

src/demo/authors/authors.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="../_all.ts" />
2-
31
import * as Jsonapi from '../../library/index';
42

53
export class AuthorsService extends Jsonapi.Service {

src/demo/books/books.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class BooksController implements ng.IController {
2020
this.books = BooksService.all(
2121
{
2222
localfilter: filter,
23-
remotefilter: {
23+
remotefilter: {
2424
date: {
25-
since:'1983-01-01',
25+
since: '1983-01-01',
2626
until: '2010-01-01'
2727
}
2828
},

src/demo/books/books.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="../_all.ts" />
2-
31
import * as Jsonapi from '../../library/index';
42

53
export class BooksService extends Jsonapi.Service {

src/demo/containers/app.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ class AppController implements ng.IController {
3737
}
3838

3939
export class App implements ng.IComponentOptions {
40-
public templateUrl: 'demo/containers/app.html';
40+
public templateUrl: string;
4141
public controller: ng.Injectable<ng.IControllerConstructor> = AppController;
42-
public transclude: true;
42+
public transclude: boolean;
43+
44+
constructor() {
45+
this.templateUrl = 'demo/containers/app.html';
46+
this.transclude = true;
47+
}
4348
};

src/demo/photos/photos.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="../_all.ts" />
2-
31
import * as Jsonapi from '../../library/index';
42

53
export class PhotosService extends Jsonapi.Service {

src/library/core.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ import './services/core-services.service';
33
import { ICore, IResource, ICollection, IService } from './interfaces';
44

55
export class Core implements ICore {
6-
private resourceServices: Object = {};
7-
8-
public loadingsCounter: number = 0;
9-
public loadingsStart = () => {};
10-
public loadingsDone = () => {};
11-
public loadingsError = () => {};
12-
public loadingsOffline = () => {};
13-
146
public static me: ICore;
157
public static injectedServices: {
168
$q: ng.IQService,
@@ -19,6 +11,13 @@ export class Core implements ICore {
1911
rsJsonapiConfig: any
2012
};
2113

14+
private resourceServices: Object = {};
15+
public loadingsCounter: number = 0;
16+
public loadingsStart = () => {};
17+
public loadingsDone = () => {};
18+
public loadingsError = () => {};
19+
public loadingsOffline = () => {};
20+
2221
/** @ngInject */
2322
public constructor(
2423
protected rsJsonapiConfig,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { IParamsCollection, IParamsResource } from '../interfaces';
2+
3+
export interface IExecParamsProcessed {
4+
id: string;
5+
params: IParamsCollection | IParamsResource;
6+
fc_success: Function;
7+
fc_error: Function;
8+
exec_type: 'all' | 'get' | 'delete' | 'save';
9+
}

0 commit comments

Comments
 (0)