mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
#17 changed naming convention
This commit is contained in:
@@ -14,10 +14,10 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { AlfrescoLoginComponent } from './src/alfresco-login.component';
|
import { AlfrescoLoginComponent } from './src/components/alfresco-login';
|
||||||
import { AlfrescoAuthenticationService } from './src/alfresco-authentication.service';
|
import { AlfrescoAuthenticationService } from './src/services/alfresco-authentication';
|
||||||
export * from './src/alfresco-login.component';
|
export * from './src/components/alfresco-login';
|
||||||
export * from './src/alfresco-authentication.service';
|
export * from './src/services/alfresco-authentication';
|
||||||
declare var _default: {
|
declare var _default: {
|
||||||
directives: typeof AlfrescoLoginComponent[];
|
directives: typeof AlfrescoLoginComponent[];
|
||||||
providers: typeof AlfrescoAuthenticationService[];
|
providers: typeof AlfrescoAuthenticationService[];
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
System.register(['./src/alfresco-login.component', './src/alfresco-authentication.service'], function(exports_1, context_1) {
|
System.register(['./src/components/alfresco-login', './src/services/alfresco-authentication'], function(exports_1, context_1) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var __moduleName = context_1 && context_1.id;
|
var __moduleName = context_1 && context_1.id;
|
||||||
var alfresco_login_component_1, alfresco_authentication_service_1;
|
var alfresco_login_1, alfresco_authentication_1;
|
||||||
var ALFRESCO_LOGIN_DIRECTIVES, ALFRESCO_AUTHENTICATION;
|
var ALFRESCO_LOGIN_DIRECTIVES, ALFRESCO_AUTHENTICATION;
|
||||||
var exportedNames_1 = {
|
var exportedNames_1 = {
|
||||||
'ALFRESCO_LOGIN_DIRECTIVES': true,
|
'ALFRESCO_LOGIN_DIRECTIVES': true,
|
||||||
@@ -16,21 +16,21 @@ System.register(['./src/alfresco-login.component', './src/alfresco-authenticatio
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
setters:[
|
setters:[
|
||||||
function (alfresco_login_component_1_1) {
|
function (alfresco_login_1_1) {
|
||||||
alfresco_login_component_1 = alfresco_login_component_1_1;
|
alfresco_login_1 = alfresco_login_1_1;
|
||||||
exportStar_1(alfresco_login_component_1_1);
|
exportStar_1(alfresco_login_1_1);
|
||||||
},
|
},
|
||||||
function (alfresco_authentication_service_1_1) {
|
function (alfresco_authentication_1_1) {
|
||||||
alfresco_authentication_service_1 = alfresco_authentication_service_1_1;
|
alfresco_authentication_1 = alfresco_authentication_1_1;
|
||||||
exportStar_1(alfresco_authentication_service_1_1);
|
exportStar_1(alfresco_authentication_1_1);
|
||||||
}],
|
}],
|
||||||
execute: function() {
|
execute: function() {
|
||||||
exports_1("default",{
|
exports_1("default",{
|
||||||
directives: [alfresco_login_component_1.AlfrescoLoginComponent],
|
directives: [alfresco_login_1.AlfrescoLoginComponent],
|
||||||
providers: [alfresco_authentication_service_1.AlfrescoAuthenticationService]
|
providers: [alfresco_authentication_1.AlfrescoAuthenticationService]
|
||||||
});
|
});
|
||||||
exports_1("ALFRESCO_LOGIN_DIRECTIVES", ALFRESCO_LOGIN_DIRECTIVES = [alfresco_login_component_1.AlfrescoLoginComponent]);
|
exports_1("ALFRESCO_LOGIN_DIRECTIVES", ALFRESCO_LOGIN_DIRECTIVES = [alfresco_login_1.AlfrescoLoginComponent]);
|
||||||
exports_1("ALFRESCO_AUTHENTICATION", ALFRESCO_AUTHENTICATION = [alfresco_authentication_service_1.AlfrescoAuthenticationService]);
|
exports_1("ALFRESCO_AUTHENTICATION", ALFRESCO_AUTHENTICATION = [alfresco_authentication_1.AlfrescoAuthenticationService]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"ng2-alfresco-login.js","sourceRoot":"","sources":["ng2-alfresco-login.ts"],"names":[],"mappings":";;;;QA2Ba,yBAAyB,EACzB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;YANpC,oBAAe;gBACX,UAAU,EAAE,CAAC,iDAAsB,CAAC;gBACpC,SAAS,EAAE,CAAC,+DAA6B,CAAC;aAC7C,EAAA;YAEY,uCAAA,yBAAyB,GAAU,CAAC,iDAAsB,CAAC,CAAA,CAAC;YAC5D,qCAAA,uBAAuB,GAAU,CAAC,+DAA6B,CAAC,CAAA,CAAC"}
|
{"version":3,"file":"ng2-alfresco-login.js","sourceRoot":"","sources":["ng2-alfresco-login.ts"],"names":[],"mappings":";;;;QA2Ba,yBAAyB,EACzB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;YANpC,oBAAe;gBACX,UAAU,EAAE,CAAC,uCAAsB,CAAC;gBACpC,SAAS,EAAE,CAAC,uDAA6B,CAAC;aAC7C,EAAA;YAEY,uCAAA,yBAAyB,GAAU,CAAC,uCAAsB,CAAC,CAAA,CAAC;YAC5D,qCAAA,uBAAuB,GAAU,CAAC,uDAA6B,CAAC,CAAA,CAAC"}
|
@@ -14,11 +14,11 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {AlfrescoLoginComponent} from './src/alfresco-login.component';
|
import {AlfrescoLoginComponent} from './src/components/alfresco-login';
|
||||||
import {AlfrescoAuthenticationService} from './src/alfresco-authentication.service';
|
import {AlfrescoAuthenticationService} from './src/services/alfresco-authentication';
|
||||||
|
|
||||||
export * from './src/alfresco-login.component';
|
export * from './src/components/alfresco-login';
|
||||||
export * from './src/alfresco-authentication.service';
|
export * from './src/services/alfresco-authentication';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
directives: [AlfrescoLoginComponent],
|
directives: [AlfrescoLoginComponent],
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"alfresco-authentication.service.js","sourceRoot":"","sources":["alfresco-authentication.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;YAsBA;;e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AC,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,IAAI,CAAC;oBAExD,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBAEpC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACjC,CAAC;gBAlFD;oBAAC,YAAK,EAAE;;sEAAA;gBAVZ;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,YAAY;wBACtB,UAAU,EAAE,CAAC,0BAAiB,EAAE,wBAAe,CAAC;wBAChD,WAAW,EAAE,iCAAiC;wBAC9C,SAAS,EAAE,CAAC,gCAAgC,CAAC;wBAC7C,KAAK,EAAE,CAAC,6BAAa,CAAC;qBAEzB,CAAC;;0CAAA;gBAqFF,6BAAC;YAAD,CAAC,AApFD,IAoFC;YApFD,2DAoFC,CAAA"}
|
|
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"authentication.service.spec.js","sourceRoot":"","sources":["authentication.service.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;YAsBA,kBAAQ,CAAC,gBAAgB,EAAE;gBACvB,IAAI,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAW,EACX,OAAO,CAAC;gBAEZ,UAAU,CAAC;oBACP,QAAQ,GAAG,eAAQ,CAAC,gBAAgB,CAAC;wBACjC,qBAAc;wBACd,qBAAW;wBACX,cAAO,CAAC,iBAAU,EAAE,EAAC,QAAQ,EAAE,qBAAW,EAAC,CAAC;wBAC5C,uCAAc;qBACjB,CAAC,CAAC;oBAEH,IAAI,KAAK,GAAG,EAAE,CAAC;oBAEf,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,GAAG;wBACrD,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,CAAC,CAAC,CAAC;oBACH,KAAK,CAA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AAE;oBACrD,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;oBAC7B,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;oBAC5C,OAAO,CAAC,MAAM,EAAE;yBACX,SAAS,CAAC;wBACP,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;wBACzC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;wBACxC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;oBAC5D,CAAC,CACJ,CAAC;gBACN,CAAC,CAAC,CAAC;YAEP,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|||||||
import { Router } from 'angular2/router';
|
import { Router } from 'angular2/router';
|
||||||
import { ControlGroup, FormBuilder } from 'angular2/common';
|
import { ControlGroup, FormBuilder } from 'angular2/common';
|
||||||
import { AlfrescoAuthenticationService } from './alfresco-authentication.service';
|
import { AlfrescoAuthenticationService } from '../services/alfresco-authentication';
|
||||||
import { TranslateService } from 'ng2-translate/ng2-translate';
|
import { TranslateService } from 'ng2-translate/ng2-translate';
|
||||||
export declare class AlfrescoLoginComponent {
|
export declare class AlfrescoLoginComponent {
|
||||||
auth: AlfrescoAuthenticationService;
|
auth: AlfrescoAuthenticationService;
|
@@ -1,4 +1,4 @@
|
|||||||
System.register(['angular2/core', 'angular2/router', 'angular2/common', './alfresco-authentication.service', 'ng2-translate/ng2-translate'], function(exports_1, context_1) {
|
System.register(['angular2/core', 'angular2/router', 'angular2/common', '../services/alfresco-authentication', 'ng2-translate/ng2-translate'], function(exports_1, context_1) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var __moduleName = context_1 && context_1.id;
|
var __moduleName = context_1 && context_1.id;
|
||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||||
@@ -10,7 +10,7 @@ System.register(['angular2/core', 'angular2/router', 'angular2/common', './alfre
|
|||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||||
};
|
};
|
||||||
var core_1, router_1, common_1, alfresco_authentication_service_1, ng2_translate_1;
|
var core_1, router_1, common_1, alfresco_authentication_1, ng2_translate_1;
|
||||||
var AlfrescoLoginComponent;
|
var AlfrescoLoginComponent;
|
||||||
return {
|
return {
|
||||||
setters:[
|
setters:[
|
||||||
@@ -23,8 +23,8 @@ System.register(['angular2/core', 'angular2/router', 'angular2/common', './alfre
|
|||||||
function (common_1_1) {
|
function (common_1_1) {
|
||||||
common_1 = common_1_1;
|
common_1 = common_1_1;
|
||||||
},
|
},
|
||||||
function (alfresco_authentication_service_1_1) {
|
function (alfresco_authentication_1_1) {
|
||||||
alfresco_authentication_service_1 = alfresco_authentication_service_1_1;
|
alfresco_authentication_1 = alfresco_authentication_1_1;
|
||||||
},
|
},
|
||||||
function (ng2_translate_1_1) {
|
function (ng2_translate_1_1) {
|
||||||
ng2_translate_1 = ng2_translate_1_1;
|
ng2_translate_1 = ng2_translate_1_1;
|
||||||
@@ -110,11 +110,11 @@ System.register(['angular2/core', 'angular2/router', 'angular2/common', './alfre
|
|||||||
selector: 'alfresco-login',
|
selector: 'alfresco-login',
|
||||||
moduleId: __moduleName,
|
moduleId: __moduleName,
|
||||||
directives: [router_1.ROUTER_DIRECTIVES, common_1.FORM_DIRECTIVES],
|
directives: [router_1.ROUTER_DIRECTIVES, common_1.FORM_DIRECTIVES],
|
||||||
templateUrl: './alfresco-login.component.html',
|
templateUrl: './alfresco-login.html',
|
||||||
styleUrls: ['./alfresco-login.component.css'],
|
styleUrls: ['./alfresco-login.css'],
|
||||||
pipes: [ng2_translate_1.TranslatePipe]
|
pipes: [ng2_translate_1.TranslatePipe]
|
||||||
}),
|
}),
|
||||||
__metadata('design:paramtypes', [common_1.FormBuilder, alfresco_authentication_service_1.AlfrescoAuthenticationService, router_1.Router, ng2_translate_1.TranslateService])
|
__metadata('design:paramtypes', [common_1.FormBuilder, alfresco_authentication_1.AlfrescoAuthenticationService, router_1.Router, ng2_translate_1.TranslateService])
|
||||||
], AlfrescoLoginComponent);
|
], AlfrescoLoginComponent);
|
||||||
return AlfrescoLoginComponent;
|
return AlfrescoLoginComponent;
|
||||||
}());
|
}());
|
||||||
@@ -122,4 +122,4 @@ System.register(['angular2/core', 'angular2/router', 'angular2/common', './alfre
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=alfresco-login.component.js.map
|
//# sourceMappingURL=alfresco-login.js.map
|
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"alfresco-login.js","sourceRoot":"","sources":["alfresco-login.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiCA;gBAQI;;;;;mBAKG;gBACH,gCAAY,EAAc,EACP,IAAkC,EAClC,MAAa,EACpB,SAA0B;oBAFnB,SAAI,GAAJ,IAAI,CAA8B;oBAClC,WAAM,GAAN,MAAM,CAAO;oBAfvB,WAAM,GAAU,KAAK,CAAC;oBAI/B,UAAK,GAAW,KAAK,CAAC;oBACtB,YAAO,GAAW,KAAK,CAAC;oBAapB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,KAAK,CAAC;wBACjB,QAAQ,EAAE,CAAC,EAAE,EAAE,mBAAU,CAAC,OAAO,CAAC,CAAC,mBAAU,CAAC,QAAQ,EAAE,mBAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAClF,QAAQ,EAAE,CAAC,EAAE,EAAE,mBAAU,CAAC,QAAQ,CAAC;qBACtC,C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,UAAgB,SAA2B;oBACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;oBAC3B,IAAI,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,kCAAkC;oBACnF,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,IAAI,CAAC;oBAExD,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBAEpC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACjC,CAAC;gBAlFD;oBAAC,YAAK,EAAE;;sEAAA;gBAVZ;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,YAAY;wBACtB,UAAU,EAAE,CAAC,0BAAiB,EAAE,wBAAe,CAAC;wBAChD,WAAW,EAAE,uBAAuB;wBACpC,SAAS,EAAE,CAAC,sBAAsB,CAAC;wBACnC,KAAK,EAAE,CAAC,6BAAa,CAAC;qBAEzB,CAAC;;0CAAA;gBAqFF,6BAAC;YAAD,CAAC,AApFD,IAoFC;YApFD,2DAoFC,CAAA"}
|
@@ -1,7 +1,7 @@
|
|||||||
System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angular2/core', './alfresco-login.component', 'rxjs/Rx', './alfresco-authentication.service', 'angular2/src/router/router', 'angular2/router', 'angular2/src/mock/location_mock', 'ng2-translate/ng2-translate'], function(exports_1, context_1) {
|
System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angular2/core', './alfresco-login', 'rxjs/Rx', '../services/alfresco-authentication', 'angular2/src/router/router', 'angular2/router', 'angular2/src/mock/location_mock', 'ng2-translate/ng2-translate'], function(exports_1, context_1) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var __moduleName = context_1 && context_1.id;
|
var __moduleName = context_1 && context_1.id;
|
||||||
var browser_1, testing_1, core_1, alfresco_login_component_1, Rx_1, alfresco_authentication_service_1, router_1, router_2, location_mock_1, ng2_translate_1;
|
var browser_1, testing_1, core_1, alfresco_login_1, Rx_1, alfresco_authentication_1, router_1, router_2, location_mock_1, ng2_translate_1;
|
||||||
var AuthenticationMock, TranslationMock;
|
var AuthenticationMock, TranslationMock;
|
||||||
return {
|
return {
|
||||||
setters:[
|
setters:[
|
||||||
@@ -14,14 +14,14 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
function (core_1_1) {
|
function (core_1_1) {
|
||||||
core_1 = core_1_1;
|
core_1 = core_1_1;
|
||||||
},
|
},
|
||||||
function (alfresco_login_component_1_1) {
|
function (alfresco_login_1_1) {
|
||||||
alfresco_login_component_1 = alfresco_login_component_1_1;
|
alfresco_login_1 = alfresco_login_1_1;
|
||||||
},
|
},
|
||||||
function (Rx_1_1) {
|
function (Rx_1_1) {
|
||||||
Rx_1 = Rx_1_1;
|
Rx_1 = Rx_1_1;
|
||||||
},
|
},
|
||||||
function (alfresco_authentication_service_1_1) {
|
function (alfresco_authentication_1_1) {
|
||||||
alfresco_authentication_service_1 = alfresco_authentication_service_1_1;
|
alfresco_authentication_1 = alfresco_authentication_1_1;
|
||||||
},
|
},
|
||||||
function (router_1_1) {
|
function (router_1_1) {
|
||||||
router_1 = router_1_1;
|
router_1 = router_1_1;
|
||||||
@@ -49,7 +49,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
AuthenticationMock.prototype.getProviders = function () {
|
AuthenticationMock.prototype.getProviders = function () {
|
||||||
return [core_1.provide(alfresco_authentication_service_1.AlfrescoAuthenticationService, { useValue: this })];
|
return [core_1.provide(alfresco_authentication_1.AlfrescoAuthenticationService, { useValue: this })];
|
||||||
};
|
};
|
||||||
return AuthenticationMock;
|
return AuthenticationMock;
|
||||||
}());
|
}());
|
||||||
@@ -71,7 +71,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
authService.getProviders(),
|
authService.getProviders(),
|
||||||
router_2.RouteRegistry,
|
router_2.RouteRegistry,
|
||||||
core_1.provide(router_2.Location, { useClass: location_mock_1.SpyLocation }),
|
core_1.provide(router_2.Location, { useClass: location_mock_1.SpyLocation }),
|
||||||
core_1.provide(router_2.ROUTER_PRIMARY_COMPONENT, { useValue: alfresco_login_component_1.AlfrescoLoginComponent }),
|
core_1.provide(router_2.ROUTER_PRIMARY_COMPONENT, { useValue: alfresco_login_1.AlfrescoLoginComponent }),
|
||||||
core_1.provide(router_2.Router, { useClass: router_1.RootRouter }),
|
core_1.provide(router_2.Router, { useClass: router_1.RootRouter }),
|
||||||
core_1.provide(ng2_translate_1.TranslateService, { useClass: TranslationMock })
|
core_1.provide(ng2_translate_1.TranslateService, { useClass: TranslationMock })
|
||||||
];
|
];
|
||||||
@@ -82,7 +82,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}));
|
}));
|
||||||
testing_1.it('should render `Login` form with input fields user and password with default value', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
testing_1.it('should render `Login` form with input fields user and password with default value', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
||||||
return tcb
|
return tcb
|
||||||
.createAsync(alfresco_login_component_1.AlfrescoLoginComponent)
|
.createAsync(alfresco_login_1.AlfrescoLoginComponent)
|
||||||
.then(function (fixture) {
|
.then(function (fixture) {
|
||||||
var element = fixture.nativeElement;
|
var element = fixture.nativeElement;
|
||||||
testing_1.expect(element.querySelector('form')).toBeDefined();
|
testing_1.expect(element.querySelector('form')).toBeDefined();
|
||||||
@@ -94,7 +94,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}));
|
}));
|
||||||
testing_1.it('should render the new values after change the user and password values', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
testing_1.it('should render the new values after change the user and password values', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
||||||
return tcb
|
return tcb
|
||||||
.createAsync(alfresco_login_component_1.AlfrescoLoginComponent)
|
.createAsync(alfresco_login_1.AlfrescoLoginComponent)
|
||||||
.then(function (fixture) {
|
.then(function (fixture) {
|
||||||
var compiled = fixture.debugElement.nativeElement;
|
var compiled = fixture.debugElement.nativeElement;
|
||||||
var password = compiled.querySelector('input[type="password"]');
|
var password = compiled.querySelector('input[type="password"]');
|
||||||
@@ -107,9 +107,9 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}));
|
}));
|
||||||
testing_1.it('should navigate to Home route after the login OK ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
testing_1.it('should navigate to Home route after the login OK ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
||||||
return tcb
|
return tcb
|
||||||
.createAsync(alfresco_login_component_1.AlfrescoLoginComponent)
|
.createAsync(alfresco_login_1.AlfrescoLoginComponent)
|
||||||
.then(function (fixture) {
|
.then(function (fixture) {
|
||||||
router.config([new router_2.Route({ path: '/home', name: 'Home', component: alfresco_login_component_1.AlfrescoLoginComponent })]);
|
router.config([new router_2.Route({ path: '/home', name: 'Home', component: alfresco_login_1.AlfrescoLoginComponent })]);
|
||||||
spyOn(router, 'navigate').and.callThrough();
|
spyOn(router, 'navigate').and.callThrough();
|
||||||
var compiled = fixture.debugElement.nativeElement;
|
var compiled = fixture.debugElement.nativeElement;
|
||||||
var password = compiled.querySelector('input[type="password"]');
|
var password = compiled.querySelector('input[type="password"]');
|
||||||
@@ -123,7 +123,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}));
|
}));
|
||||||
testing_1.it('should return error with a wrong username ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
testing_1.it('should return error with a wrong username ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
||||||
return tcb
|
return tcb
|
||||||
.createAsync(alfresco_login_component_1.AlfrescoLoginComponent)
|
.createAsync(alfresco_login_1.AlfrescoLoginComponent)
|
||||||
.then(function (fixture) {
|
.then(function (fixture) {
|
||||||
spyOn(router, 'navigate').and.callThrough();
|
spyOn(router, 'navigate').and.callThrough();
|
||||||
var compiled = fixture.debugElement.nativeElement;
|
var compiled = fixture.debugElement.nativeElement;
|
||||||
@@ -137,7 +137,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}));
|
}));
|
||||||
testing_1.it('should return error with a wrong password ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
testing_1.it('should return error with a wrong password ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
||||||
return tcb
|
return tcb
|
||||||
.createAsync(alfresco_login_component_1.AlfrescoLoginComponent)
|
.createAsync(alfresco_login_1.AlfrescoLoginComponent)
|
||||||
.then(function (fixture) {
|
.then(function (fixture) {
|
||||||
spyOn(router, 'navigate').and.callThrough();
|
spyOn(router, 'navigate').and.callThrough();
|
||||||
var compiled = fixture.debugElement.nativeElement;
|
var compiled = fixture.debugElement.nativeElement;
|
||||||
@@ -151,7 +151,7 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}));
|
}));
|
||||||
testing_1.it('should return error with a wrong username and password ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
testing_1.it('should return error with a wrong username and password ', testing_1.injectAsync([testing_1.TestComponentBuilder], function (tcb) {
|
||||||
return tcb
|
return tcb
|
||||||
.createAsync(alfresco_login_component_1.AlfrescoLoginComponent)
|
.createAsync(alfresco_login_1.AlfrescoLoginComponent)
|
||||||
.then(function (fixture) {
|
.then(function (fixture) {
|
||||||
spyOn(router, 'navigate').and.callThrough();
|
spyOn(router, 'navigate').and.callThrough();
|
||||||
var compiled = fixture.debugElement.nativeElement;
|
var compiled = fixture.debugElement.nativeElement;
|
||||||
@@ -167,4 +167,4 @@ System.register(['angular2/platform/testing/browser', 'angular2/testing', 'angul
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=alfresco-login.component.spec.js.map
|
//# sourceMappingURL=alfresco-login.spec.js.map
|
File diff suppressed because one or more lines are too long
@@ -17,9 +17,9 @@
|
|||||||
import {TEST_BROWSER_PLATFORM_PROVIDERS, TEST_BROWSER_APPLICATION_PROVIDERS} from 'angular2/platform/testing/browser';
|
import {TEST_BROWSER_PLATFORM_PROVIDERS, TEST_BROWSER_APPLICATION_PROVIDERS} from 'angular2/platform/testing/browser';
|
||||||
import {it, describe, expect, inject, injectAsync, beforeEach, beforeEachProviders, TestComponentBuilder, setBaseTestProviders} from 'angular2/testing';
|
import {it, describe, expect, inject, injectAsync, beforeEach, beforeEachProviders, TestComponentBuilder, setBaseTestProviders} from 'angular2/testing';
|
||||||
import {Component, provide, Injector} from 'angular2/core';
|
import {Component, provide, Injector} from 'angular2/core';
|
||||||
import {AlfrescoLoginComponent} from './alfresco-login.component';
|
import {AlfrescoLoginComponent} from './alfresco-login';
|
||||||
import {Observable} from 'rxjs/Rx';
|
import {Observable} from 'rxjs/Rx';
|
||||||
import {AlfrescoAuthenticationService} from './alfresco-authentication.service';
|
import {AlfrescoAuthenticationService} from '../services/alfresco-authentication';
|
||||||
import { RootRouter } from 'angular2/src/router/router';
|
import { RootRouter } from 'angular2/src/router/router';
|
||||||
import { Location, Router, RouteRegistry, ROUTER_PRIMARY_COMPONENT, Route } from 'angular2/router';
|
import { Location, Router, RouteRegistry, ROUTER_PRIMARY_COMPONENT, Route } from 'angular2/router';
|
||||||
import { SpyLocation } from 'angular2/src/mock/location_mock';
|
import { SpyLocation } from 'angular2/src/mock/location_mock';
|
@@ -17,7 +17,7 @@
|
|||||||
import {Component, Input} from 'angular2/core';
|
import {Component, Input} from 'angular2/core';
|
||||||
import {Router, ROUTER_DIRECTIVES} from 'angular2/router';
|
import {Router, ROUTER_DIRECTIVES} from 'angular2/router';
|
||||||
import {FORM_DIRECTIVES, ControlGroup, FormBuilder, Validators} from 'angular2/common';
|
import {FORM_DIRECTIVES, ControlGroup, FormBuilder, Validators} from 'angular2/common';
|
||||||
import {AlfrescoAuthenticationService} from './alfresco-authentication.service';
|
import {AlfrescoAuthenticationService} from '../services/alfresco-authentication';
|
||||||
import {TranslateService, TranslatePipe} from 'ng2-translate/ng2-translate';
|
import {TranslateService, TranslatePipe} from 'ng2-translate/ng2-translate';
|
||||||
declare let componentHandler;
|
declare let componentHandler;
|
||||||
declare let __moduleName:string;
|
declare let __moduleName:string;
|
||||||
@@ -26,8 +26,8 @@ declare let __moduleName:string;
|
|||||||
selector: 'alfresco-login',
|
selector: 'alfresco-login',
|
||||||
moduleId: __moduleName,
|
moduleId: __moduleName,
|
||||||
directives: [ROUTER_DIRECTIVES, FORM_DIRECTIVES],
|
directives: [ROUTER_DIRECTIVES, FORM_DIRECTIVES],
|
||||||
templateUrl: './alfresco-login.component.html',
|
templateUrl: './alfresco-login.html',
|
||||||
styleUrls: ['./alfresco-login.component.css'],
|
styleUrls: ['./alfresco-login.css'],
|
||||||
pipes: [TranslatePipe]
|
pipes: [TranslatePipe]
|
||||||
|
|
||||||
})
|
})
|
File diff suppressed because one or more lines are too long
@@ -137,4 +137,4 @@ System.register(['angular2/core', 'rxjs/Rx', 'angular2/http'], function(exports_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=alfresco-authentication.service.js.map
|
//# sourceMappingURL=alfresco-authentication.js.map
|
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"alfresco-authentication.js","sourceRoot":"","sources":["alfresco-authentication.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;YAsBA;;eAEG;YAEH;gBAMI;;;mBAGG;gBACH,uCAAmB,IAAS;oBAAT,SAAI,GAAJ,IAAI,CAAK;oBAPpB,UAAK,GAAU,4BAA4B,CAAC;oBAC5C,aAAQ,GAAU,IAAI,CAAC,KAAK,GAAG,wBAAwB,CAAC;oBAO5D,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C,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,MAAM,CAAC,eAAU,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,cAAc,CAAC,CAAC;gBAClE,CAAC;gBA7GL;oBAAC,iBAAU,EAAE;;iDAAA;gBA8Gb,oCAAC;YAAD,CAAC,AA7GD,IA6GC;YA7GD,yEA6GC,CAAA"}
|
@@ -1,7 +1,7 @@
|
|||||||
System.register(['angular2/testing', 'angular2/core', 'angular2/http', 'angular2/http/testing', './alfresco-authentication.service'], function(exports_1, context_1) {
|
System.register(['angular2/testing', 'angular2/core', 'angular2/http', 'angular2/http/testing', './alfresco-authentication'], function(exports_1, context_1) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var __moduleName = context_1 && context_1.id;
|
var __moduleName = context_1 && context_1.id;
|
||||||
var testing_1, core_1, http_1, testing_2, alfresco_authentication_service_1;
|
var testing_1, core_1, http_1, testing_2, alfresco_authentication_1;
|
||||||
return {
|
return {
|
||||||
setters:[
|
setters:[
|
||||||
function (testing_1_1) {
|
function (testing_1_1) {
|
||||||
@@ -16,8 +16,8 @@ System.register(['angular2/testing', 'angular2/core', 'angular2/http', 'angular2
|
|||||||
function (testing_2_1) {
|
function (testing_2_1) {
|
||||||
testing_2 = testing_2_1;
|
testing_2 = testing_2_1;
|
||||||
},
|
},
|
||||||
function (alfresco_authentication_service_1_1) {
|
function (alfresco_authentication_1_1) {
|
||||||
alfresco_authentication_service_1 = alfresco_authentication_service_1_1;
|
alfresco_authentication_1 = alfresco_authentication_1_1;
|
||||||
}],
|
}],
|
||||||
execute: function() {
|
execute: function() {
|
||||||
testing_1.describe('AlfrescoAuthentication', function () {
|
testing_1.describe('AlfrescoAuthentication', function () {
|
||||||
@@ -27,7 +27,7 @@ System.register(['angular2/testing', 'angular2/core', 'angular2/http', 'angular2
|
|||||||
http_1.HTTP_PROVIDERS,
|
http_1.HTTP_PROVIDERS,
|
||||||
testing_2.MockBackend,
|
testing_2.MockBackend,
|
||||||
core_1.provide(http_1.XHRBackend, { useClass: testing_2.MockBackend }),
|
core_1.provide(http_1.XHRBackend, { useClass: testing_2.MockBackend }),
|
||||||
alfresco_authentication_service_1.AlfrescoAuthenticationService
|
alfresco_authentication_1.AlfrescoAuthenticationService
|
||||||
]);
|
]);
|
||||||
var store = {};
|
var store = {};
|
||||||
spyOn(localStorage, 'getItem').and.callFake(function (key) {
|
spyOn(localStorage, 'getItem').and.callFake(function (key) {
|
||||||
@@ -49,7 +49,7 @@ System.register(['angular2/testing', 'angular2/core', 'angular2/http', 'angular2
|
|||||||
mockBackend = injector.get(testing_2.MockBackend);
|
mockBackend = injector.get(testing_2.MockBackend);
|
||||||
backend = injector.get(http_1.XHRBackend);
|
backend = injector.get(http_1.XHRBackend);
|
||||||
httpService = injector.get(http_1.Http);
|
httpService = injector.get(http_1.Http);
|
||||||
service = injector.get(alfresco_authentication_service_1.AlfrescoAuthenticationService);
|
service = injector.get(alfresco_authentication_1.AlfrescoAuthenticationService);
|
||||||
});
|
});
|
||||||
testing_1.it('should return true and token if the user is logged in', function () {
|
testing_1.it('should return true and token if the user is logged in', function () {
|
||||||
service.saveJwt('fake-local-token');
|
service.saveJwt('fake-local-token');
|
||||||
@@ -88,4 +88,4 @@ System.register(['angular2/testing', 'angular2/core', 'angular2/http', 'angular2
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=alfresco-authentication.service.spec.js.map
|
//# sourceMappingURL=alfresco-authentication.spec.js.map
|
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"alfresco-authentication.spec.js","sourceRoot":"","sources":["alfresco-authentication.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;YAsBA,kBAAQ,CAAC,wBAAwB,EAAE;gBAC/B,IAAI,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAW,EACX,OAAO,CAAC;gBAEZ,UAAU,CAAC;oBACP,QAAQ,GAAG,eA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AAI,CAAC,IAAI,CAAC,CAAC;wBACxC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;wBACjD,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;wBACpD,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;oBACrE,CAAC,CACJ,CAAC;gBACN,CAAC,CAAC,CAAC;gBAEH,YAAE,CAAC,oDAAoD,EAAE;oBACrD,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;oBAC7B,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;oBAC5C,OAAO,CAAC,MAAM,EAAE;yBACX,SAAS,CAAC;wBACP,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;wBACzC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;wBACxC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;oBAC5D,CAAC,CACJ,CAAC;gBACN,CAAC,CAAC,CAAC;YAEP,CAAC,CAAC,CAAC"}
|
@@ -18,7 +18,7 @@ import {it, describe} from 'angular2/testing';
|
|||||||
import {provide, Injector} from 'angular2/core';
|
import {provide, Injector} from 'angular2/core';
|
||||||
import {Http, HTTP_PROVIDERS, XHRBackend, Response, ResponseOptions} from 'angular2/http';
|
import {Http, HTTP_PROVIDERS, XHRBackend, Response, ResponseOptions} from 'angular2/http';
|
||||||
import {MockBackend} from 'angular2/http/testing';
|
import {MockBackend} from 'angular2/http/testing';
|
||||||
import {AlfrescoAuthenticationService} from './alfresco-authentication.service';
|
import {AlfrescoAuthenticationService} from './alfresco-authentication';
|
||||||
|
|
||||||
describe('AlfrescoAuthentication', () => {
|
describe('AlfrescoAuthentication', () => {
|
||||||
let injector,
|
let injector,
|
@@ -42,8 +42,8 @@
|
|||||||
|
|
||||||
// #3. Import the spec file explicitly
|
// #3. Import the spec file explicitly
|
||||||
Promise.all([
|
Promise.all([
|
||||||
System.import('src/alfresco-authentication.service.spec'),
|
System.import('src/services/alfresco-authentication.spec'),
|
||||||
System.import('src/alfresco-login.component.spec')
|
System.import('src/components/alfresco-login.spec')
|
||||||
])
|
])
|
||||||
// #4. wait for all imports to load ...
|
// #4. wait for all imports to load ...
|
||||||
// then re-execute `window.onload` which
|
// then re-execute `window.onload` which
|
||||||
|
Reference in New Issue
Block a user