ng-jhipster
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"explorerExcludedFiles.show": true | ||
"explorerExcludedFiles.show": false, | ||
"files.exclude": { | ||
"nbproject": "explorerExcludedFiles", | ||
"manifest.mf": "explorerExcludedFiles", | ||
"build.xml": "explorerExcludedFiles", | ||
"node_modules": "explorerExcludedFiles", | ||
"node_modules/*": "explorerExcludedFiles", | ||
"npm-debug.log": "explorerExcludedFiles", | ||
"src/**/*.js": "explorerExcludedFiles", | ||
"*.js": "explorerExcludedFiles", | ||
"!config/*": "explorerExcludedFiles", | ||
"config/testing-utils.js": "explorerExcludedFiles", | ||
"!karma.conf.js": "explorerExcludedFiles", | ||
"!webpack.config.js": "explorerExcludedFiles", | ||
"*.map": "explorerExcludedFiles", | ||
"*.d.ts": "explorerExcludedFiles", | ||
"!make.js": "explorerExcludedFiles", | ||
"!examples/**/*.js": "explorerExcludedFiles", | ||
"coverage": "explorerExcludedFiles", | ||
"**/*.metadata.json": "explorerExcludedFiles", | ||
"*.metadata.json": "explorerExcludedFiles", | ||
"bundles": "explorerExcludedFiles", | ||
".idea": "explorerExcludedFiles", | ||
".project": "explorerExcludedFiles", | ||
".settings": "explorerExcludedFiles", | ||
".vscode": "explorerExcludedFiles", | ||
"Thumbs.db": "explorerExcludedFiles", | ||
"Desktop.ini": "explorerExcludedFiles", | ||
".DS_Store": "explorerExcludedFiles", | ||
"**/.DS_Store": "explorerExcludedFiles" | ||
} | ||
} |
@@ -78,3 +78,3 @@ { | ||
}, | ||
"version": "0.0.9" | ||
"version": "0.0.10" | ||
} |
@@ -6,2 +6,3 @@ export interface ModuleConfig { | ||
sortIconSelector?: string; | ||
i18nEnabled?: boolean; | ||
defaultI18nLocation?: string; | ||
@@ -8,0 +9,0 @@ defaultI18nLang?: string; |
@@ -6,2 +6,3 @@ export declare const CONSTANTS: { | ||
sortIconSelector: string; | ||
i18nEnabled: boolean; | ||
defaultI18nLocation: string; | ||
@@ -8,0 +9,0 @@ defaultI18nLang: string; |
@@ -21,2 +21,3 @@ /* | ||
sortIconSelector: 'span.fa', | ||
i18nEnabled: false, | ||
defaultI18nLocation: 'global', | ||
@@ -23,0 +24,0 @@ defaultI18nLang: 'en', |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"CONSTANTS":{"sortIcon":"fa-sort","sortAscIcon":"fa-sort-asc","sortDescIcon":"fa-sort-desc","sortIconSelector":"span.fa","defaultI18nLocation":"global","defaultI18nLang":"en","noi18nMessage":"translation-not-found"}}},{"__symbolic":"module","version":1,"metadata":{"CONSTANTS":{"sortIcon":"fa-sort","sortAscIcon":"fa-sort-asc","sortDescIcon":"fa-sort-desc","sortIconSelector":"span.fa","defaultI18nLocation":"global","defaultI18nLang":"en","noi18nMessage":"translation-not-found"}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"CONSTANTS":{"sortIcon":"fa-sort","sortAscIcon":"fa-sort-asc","sortDescIcon":"fa-sort-desc","sortIconSelector":"span.fa","i18nEnabled":false,"defaultI18nLocation":"global","defaultI18nLang":"en","noi18nMessage":"translation-not-found"}}},{"__symbolic":"module","version":1,"metadata":{"CONSTANTS":{"sortIcon":"fa-sort","sortAscIcon":"fa-sort-asc","sortDescIcon":"fa-sort-desc","sortIconSelector":"span.fa","i18nEnabled":false,"defaultI18nLocation":"global","defaultI18nLang":"en","noi18nMessage":"translation-not-found"}}}] |
@@ -17,2 +17,3 @@ import { CONSTANTS } from './constants'; | ||
setProperty('sortIconSelector'); | ||
setProperty('i18nEnabled'); | ||
setProperty('defaultI18nLocation'); | ||
@@ -19,0 +20,0 @@ setProperty('defaultI18nLang'); |
@@ -1,14 +0,14 @@ | ||
import { HttpInterceptable } from './http.interceptable'; | ||
import { Http, ConnectionBackend, RequestOptions, RequestOptionsArgs, Request, Response } from '@angular/http'; | ||
import { Observable } from 'rxjs/Observable'; | ||
export declare class HttpInterceptor extends Http { | ||
private firstInterceptor; | ||
constructor(backend: ConnectionBackend, defaultOptions: RequestOptions, interceptors: HttpInterceptable[]); | ||
request(url: string | Request, options?: RequestOptionsArgs): Observable<Response>; | ||
get(url: string, options?: RequestOptionsArgs): Observable<Response>; | ||
post(url: string, body: string, options?: RequestOptionsArgs): Observable<Response>; | ||
put(url: string, body: string, options?: RequestOptionsArgs): Observable<Response>; | ||
delete(url: string, options?: RequestOptionsArgs): Observable<Response>; | ||
getRequestOptionArgs(options?: RequestOptionsArgs): RequestOptionsArgs; | ||
intercept(observable: Observable<Response>): Observable<Response>; | ||
import { Response, RequestOptionsArgs } from '@angular/http'; | ||
/** | ||
* A HTTP interceptor responsibility chain member is a class, which may react on request and response of all requests | ||
* done by HTTP. | ||
*/ | ||
export declare abstract class HttpInterceptor { | ||
private _successor; | ||
successor: HttpInterceptor; | ||
processRequestInterception(options?: RequestOptionsArgs): RequestOptionsArgs; | ||
processResponseInterception(response: Observable<Response>): Observable<Response>; | ||
abstract requestIntercept(options?: RequestOptionsArgs): RequestOptionsArgs; | ||
abstract responseIntercept(observable: Observable<Response>): Observable<Response>; | ||
} |
@@ -1,63 +0,25 @@ | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
import { Injectable } from '@angular/core'; | ||
import { Http, ConnectionBackend, RequestOptions, Headers } from '@angular/http'; | ||
export var HttpInterceptor = (function (_super) { | ||
__extends(HttpInterceptor, _super); | ||
function HttpInterceptor(backend, defaultOptions, interceptors) { | ||
_super.call(this, backend, defaultOptions); | ||
/** | ||
* building a responsibility chain of http interceptables, so when processXXXInterception is called on first interceptor, | ||
* all http interceptables are called in a row | ||
* Note: the array of interceptors are wired in customHttpProvider of the generated Jhipster app in file `http.provider.ts` | ||
* | ||
*/ | ||
if (interceptors.length > 0) { | ||
interceptors.reduce(function (chain, current) { | ||
chain.successor = current; | ||
return current; | ||
}); | ||
this.firstInterceptor = interceptors[0]; | ||
} | ||
/** | ||
* A HTTP interceptor responsibility chain member is a class, which may react on request and response of all requests | ||
* done by HTTP. | ||
*/ | ||
export var HttpInterceptor = (function () { | ||
function HttpInterceptor() { | ||
this._successor = null; | ||
} | ||
HttpInterceptor.prototype.request = function (url, options) { | ||
return this.intercept(_super.prototype.request.call(this, url, this.getRequestOptionArgs(options))); | ||
Object.defineProperty(HttpInterceptor.prototype, "successor", { | ||
set: function (successor) { | ||
this._successor = successor; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
HttpInterceptor.prototype.processRequestInterception = function (options) { | ||
return (!this._successor) ? this.requestIntercept(options) : | ||
this._successor.processRequestInterception(this.requestIntercept(options)); | ||
}; | ||
HttpInterceptor.prototype.get = function (url, options) { | ||
return _super.prototype.get.call(this, url, this.getRequestOptionArgs(options)); | ||
HttpInterceptor.prototype.processResponseInterception = function (response) { | ||
return (!this._successor) ? this.responseIntercept(response) : | ||
this._successor.processResponseInterception(this.responseIntercept(response)); | ||
}; | ||
HttpInterceptor.prototype.post = function (url, body, options) { | ||
return _super.prototype.post.call(this, url, body, this.getRequestOptionArgs(options)); | ||
}; | ||
HttpInterceptor.prototype.put = function (url, body, options) { | ||
return _super.prototype.put.call(this, url, body, this.getRequestOptionArgs(options)); | ||
}; | ||
HttpInterceptor.prototype.delete = function (url, options) { | ||
return _super.prototype.delete.call(this, url, this.getRequestOptionArgs(options)); | ||
}; | ||
HttpInterceptor.prototype.getRequestOptionArgs = function (options) { | ||
if (options == null) { | ||
options = new RequestOptions(); | ||
} | ||
if (options.headers == null) { | ||
options.headers = new Headers(); | ||
} | ||
return !this.firstInterceptor ? options : this.firstInterceptor.processRequestInterception(options); | ||
}; | ||
HttpInterceptor.prototype.intercept = function (observable) { | ||
return !this.firstInterceptor ? observable : this.firstInterceptor.processResponseInterception(observable); | ||
}; | ||
HttpInterceptor.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
HttpInterceptor.ctorParameters = function () { return [ | ||
{ type: ConnectionBackend, }, | ||
{ type: RequestOptions, }, | ||
{ type: Array, }, | ||
]; }; | ||
return HttpInterceptor; | ||
}(Http)); | ||
}()); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"HttpInterceptor":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/http","name":"Http"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"ConnectionBackend"},{"__symbolic":"reference","module":"@angular/http","name":"RequestOptions"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./http.interceptable","name":"HttpInterceptable"}]}]}],"request":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"getRequestOptionArgs":[{"__symbolic":"method"}],"intercept":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HttpInterceptor":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/http","name":"Http"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"ConnectionBackend"},{"__symbolic":"reference","module":"@angular/http","name":"RequestOptions"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","module":"./http.interceptable","name":"HttpInterceptable"}]}]}],"request":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"getRequestOptionArgs":[{"__symbolic":"method"}],"intercept":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"HttpInterceptor":{"__symbolic":"class","members":{"processRequestInterception":[{"__symbolic":"method"}],"processResponseInterception":[{"__symbolic":"method"}],"requestIntercept":[{"__symbolic":"method"}],"responseIntercept":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HttpInterceptor":{"__symbolic":"class","members":{"processRequestInterception":[{"__symbolic":"method"}],"processResponseInterception":[{"__symbolic":"method"}],"requestIntercept":[{"__symbolic":"method"}],"responseIntercept":[{"__symbolic":"method"}]}}}}] |
export * from './http.interceptor'; | ||
export * from './http.interceptable'; | ||
export * from './interceptable-http'; |
export * from './http.interceptor'; | ||
export * from './http.interceptable'; | ||
export * from './interceptable-http'; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./http.interceptor"},{"from":"./http.interceptable"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./http.interceptor"},{"from":"./http.interceptable"}]}] | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./http.interceptor"},{"from":"./interceptable-http"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./http.interceptor"},{"from":"./interceptable-http"}]}] |
import { FilterPipe, KeysPipe, OrderByPipe, TruncateCharactersPipe } from './pipe'; | ||
import { ShowValidationDirective, JhiSortByDirective } from './directive'; | ||
import { JhiItemCountComponent } from './component'; | ||
import { DataUtils, DateUtils, EventManager, ParseLinks, PaginationUtil } from './service'; | ||
import { DataUtils, DateUtils, EventManager, ParseLinks, PaginationUtil, AlertService, Base64 } from './service'; | ||
export declare const JHI_PIPES: (typeof TruncateCharactersPipe | typeof OrderByPipe | typeof FilterPipe | typeof KeysPipe)[]; | ||
export declare const JHI_DIRECTIVES: (typeof ShowValidationDirective | typeof JhiSortByDirective)[]; | ||
export declare const JHI_COMPONENTS: typeof JhiItemCountComponent[]; | ||
export declare const JHI_SERVICES: (typeof PaginationUtil | typeof ParseLinks | typeof DataUtils | typeof DateUtils | typeof EventManager)[]; | ||
export declare const JHI_SERVICES: (typeof PaginationUtil | typeof ParseLinks | typeof DataUtils | typeof DateUtils | typeof EventManager | typeof AlertService | typeof Base64)[]; |
import { CapitalizePipe, FilterPipe, KeysPipe, OrderByPipe, PureFilterPipe, TruncateCharactersPipe, TruncateWordsPipe } from './pipe'; | ||
import { MaxbytesValidatorDirective, MinbytesValidatorDirective, ShowValidationDirective, JhiSortDirective, JhiSortByDirective } from './directive'; | ||
import { JhiItemCountComponent } from './component'; | ||
import { DataUtils, DateUtils, EventManager, ParseLinks, PaginationUtil } from './service'; | ||
import { DataUtils, DateUtils, EventManager, ParseLinks, PaginationUtil, AlertService, Base64 } from './service'; | ||
export var JHI_PIPES = [ | ||
@@ -29,3 +29,5 @@ CapitalizePipe, | ||
ParseLinks, | ||
PaginationUtil | ||
PaginationUtil, | ||
AlertService, | ||
Base64 | ||
]; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"JHI_PIPES":[{"__symbolic":"reference","module":"./pipe","name":"CapitalizePipe"},{"__symbolic":"reference","module":"./pipe","name":"FilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"KeysPipe"},{"__symbolic":"reference","module":"./pipe","name":"OrderByPipe"},{"__symbolic":"reference","module":"./pipe","name":"PureFilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateCharactersPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateWordsPipe"}],"JHI_DIRECTIVES":[{"__symbolic":"reference","module":"./directive","name":"MaxbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"MinbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"ShowValidationDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortByDirective"}],"JHI_COMPONENTS":[{"__symbolic":"reference","module":"./component","name":"JhiItemCountComponent"}],"JHI_SERVICES":[{"__symbolic":"reference","module":"./service","name":"DataUtils"},{"__symbolic":"reference","module":"./service","name":"DateUtils"},{"__symbolic":"reference","module":"./service","name":"EventManager"},{"__symbolic":"reference","module":"./service","name":"ParseLinks"},{"__symbolic":"reference","module":"./service","name":"PaginationUtil"}]}},{"__symbolic":"module","version":1,"metadata":{"JHI_PIPES":[{"__symbolic":"reference","module":"./pipe","name":"CapitalizePipe"},{"__symbolic":"reference","module":"./pipe","name":"FilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"KeysPipe"},{"__symbolic":"reference","module":"./pipe","name":"OrderByPipe"},{"__symbolic":"reference","module":"./pipe","name":"PureFilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateCharactersPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateWordsPipe"}],"JHI_DIRECTIVES":[{"__symbolic":"reference","module":"./directive","name":"MaxbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"MinbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"ShowValidationDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortByDirective"}],"JHI_COMPONENTS":[{"__symbolic":"reference","module":"./component","name":"JhiItemCountComponent"}],"JHI_SERVICES":[{"__symbolic":"reference","module":"./service","name":"DataUtils"},{"__symbolic":"reference","module":"./service","name":"DateUtils"},{"__symbolic":"reference","module":"./service","name":"EventManager"},{"__symbolic":"reference","module":"./service","name":"ParseLinks"},{"__symbolic":"reference","module":"./service","name":"PaginationUtil"}]}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"JHI_PIPES":[{"__symbolic":"reference","module":"./pipe","name":"CapitalizePipe"},{"__symbolic":"reference","module":"./pipe","name":"FilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"KeysPipe"},{"__symbolic":"reference","module":"./pipe","name":"OrderByPipe"},{"__symbolic":"reference","module":"./pipe","name":"PureFilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateCharactersPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateWordsPipe"}],"JHI_DIRECTIVES":[{"__symbolic":"reference","module":"./directive","name":"MaxbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"MinbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"ShowValidationDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortByDirective"}],"JHI_COMPONENTS":[{"__symbolic":"reference","module":"./component","name":"JhiItemCountComponent"}],"JHI_SERVICES":[{"__symbolic":"reference","module":"./service","name":"DataUtils"},{"__symbolic":"reference","module":"./service","name":"DateUtils"},{"__symbolic":"reference","module":"./service","name":"EventManager"},{"__symbolic":"reference","module":"./service","name":"ParseLinks"},{"__symbolic":"reference","module":"./service","name":"PaginationUtil"},{"__symbolic":"reference","module":"./service","name":"AlertService"},{"__symbolic":"reference","module":"./service","name":"Base64"}]}},{"__symbolic":"module","version":1,"metadata":{"JHI_PIPES":[{"__symbolic":"reference","module":"./pipe","name":"CapitalizePipe"},{"__symbolic":"reference","module":"./pipe","name":"FilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"KeysPipe"},{"__symbolic":"reference","module":"./pipe","name":"OrderByPipe"},{"__symbolic":"reference","module":"./pipe","name":"PureFilterPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateCharactersPipe"},{"__symbolic":"reference","module":"./pipe","name":"TruncateWordsPipe"}],"JHI_DIRECTIVES":[{"__symbolic":"reference","module":"./directive","name":"MaxbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"MinbytesValidatorDirective"},{"__symbolic":"reference","module":"./directive","name":"ShowValidationDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortDirective"},{"__symbolic":"reference","module":"./directive","name":"JhiSortByDirective"}],"JHI_COMPONENTS":[{"__symbolic":"reference","module":"./component","name":"JhiItemCountComponent"}],"JHI_SERVICES":[{"__symbolic":"reference","module":"./service","name":"DataUtils"},{"__symbolic":"reference","module":"./service","name":"DateUtils"},{"__symbolic":"reference","module":"./service","name":"EventManager"},{"__symbolic":"reference","module":"./service","name":"ParseLinks"},{"__symbolic":"reference","module":"./service","name":"PaginationUtil"},{"__symbolic":"reference","module":"./service","name":"AlertService"},{"__symbolic":"reference","module":"./service","name":"Base64"}]}}] |
@@ -6,1 +6,3 @@ export * from './pagination-util.service'; | ||
export * from './event-manager.service'; | ||
export * from './alert.service'; | ||
export * from './base64.service'; |
@@ -6,1 +6,3 @@ export * from './pagination-util.service'; | ||
export * from './event-manager.service'; | ||
export * from './alert.service'; | ||
export * from './base64.service'; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./pagination-util.service"},{"from":"./parse-links.service"},{"from":"./data-util.service"},{"from":"./date-util.service"},{"from":"./event-manager.service"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./pagination-util.service"},{"from":"./parse-links.service"},{"from":"./data-util.service"},{"from":"./date-util.service"},{"from":"./event-manager.service"}]}] | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./pagination-util.service"},{"from":"./parse-links.service"},{"from":"./data-util.service"},{"from":"./date-util.service"},{"from":"./event-manager.service"},{"from":"./alert.service"},{"from":"./base64.service"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./pagination-util.service"},{"from":"./parse-links.service"},{"from":"./data-util.service"},{"from":"./date-util.service"},{"from":"./event-manager.service"},{"from":"./alert.service"},{"from":"./base64.service"}]}] |
@@ -30,3 +30,2 @@ { | ||
"no-arg": true, | ||
"no-bitwise": true, | ||
"no-console": [ | ||
@@ -33,0 +32,0 @@ true, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
911230
136
7867