mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#17 Used external Alfresco Login component
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {Router, RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';
|
||||
import {Authentication} from './services/authentication';
|
||||
import {Authentication} from 'ng2-alfresco-login/ng2-alfresco-login';
|
||||
import {AlfrescoService} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
|
||||
import {MDL} from './components/common/MaterialDesignLiteUpgradeElement';
|
||||
import {FilesComponent} from './components/files/files.component';
|
||||
import {LoginComponent} from './components/login/login.component';
|
||||
import {Login} from 'ng2-alfresco-login/ng2-alfresco-login';
|
||||
import {AuthRouterOutlet} from './components/router/AuthRouterOutlet';
|
||||
|
||||
declare var document: any;
|
||||
@@ -16,7 +16,7 @@ declare var document: any;
|
||||
})
|
||||
@RouteConfig([
|
||||
{path: '/', name: 'Files', component: FilesComponent, useAsDefault: true},
|
||||
{path: '/login', name: 'Login', component: LoginComponent}
|
||||
{path: '/login', name: 'Login', component: Login}
|
||||
])
|
||||
export class AppComponent {
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {Router, ROUTER_DIRECTIVES} from 'angular2/router';
|
||||
import {FORM_DIRECTIVES, ControlGroup, FormBuilder, Validators} from 'angular2/common';
|
||||
import {Authentication} from '../../services/authentication';
|
||||
import {Authentication} from 'ng2-alfresco-login/ng2-alfresco-login';
|
||||
declare let componentHandler;
|
||||
|
||||
@Component({
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { ElementRef, DynamicComponentLoader, Directive, Attribute } from 'angular2/core';
|
||||
import { Router, RouterOutlet, ComponentInstruction } from 'angular2/router';
|
||||
import {Authentication} from '../../services/authentication';
|
||||
import {Authentication} from 'ng2-alfresco-login/ng2-alfresco-login';
|
||||
|
||||
@Directive({selector: 'auth-router-outlet'})
|
||||
export class AuthRouterOutlet extends RouterOutlet {
|
||||
|
@@ -2,12 +2,12 @@ import {bootstrap} from 'angular2/platform/browser';
|
||||
import {AppComponent} from './app.component';
|
||||
import {ROUTER_PROVIDERS} from 'angular2/router';
|
||||
import {HTTP_PROVIDERS} from 'angular2/http';
|
||||
import {Authentication} from './services/authentication';
|
||||
import {ALFRESCO_AUTHENTICATION} from 'ng2-alfresco-login/ng2-alfresco-login';
|
||||
import {ALFRESCO_PROVIDERS} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
|
||||
|
||||
bootstrap(AppComponent, [
|
||||
ROUTER_PROVIDERS,
|
||||
HTTP_PROVIDERS,
|
||||
Authentication,
|
||||
ALFRESCO_AUTHENTICATION,
|
||||
ALFRESCO_PROVIDERS
|
||||
]);
|
||||
|
@@ -35,7 +35,8 @@
|
||||
System.config({
|
||||
map: {
|
||||
'ng2-uploader': 'node_modules/ng2-uploader',
|
||||
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist'
|
||||
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist',
|
||||
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login'
|
||||
},
|
||||
packages: {
|
||||
app: {
|
||||
@@ -47,6 +48,9 @@
|
||||
},
|
||||
'ng2-alfresco-documentlist': {
|
||||
defaultExtension: 'js'
|
||||
},
|
||||
'ng2-alfresco-login': {
|
||||
defaultExtension: 'js'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@@ -23,6 +23,7 @@
|
||||
"jquery": "^2.2.2",
|
||||
"material-design-lite": "^1.1.3",
|
||||
"ng2-alfresco-documentlist": "file:../ng2-components/ng2-alfresco-documentlist",
|
||||
"ng2-alfresco-login": "file:../ng2-components/ng2-alfresco-login",
|
||||
"ng2-uploader": "denisvuyka/ng2-uploader",
|
||||
"reflect-metadata": "0.1.2",
|
||||
"rxjs": "5.0.0-beta.2",
|
||||
|
Reference in New Issue
Block a user