feat: update Nebular to rc.9 (#1741)

This commit is contained in:
Dmitry Nehaychik 2018-06-20 18:46:49 +03:00 committed by GitHub
parent cef6ea6499
commit 18a4750ec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2841 additions and 2847 deletions

View file

@ -1,6 +1,6 @@
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NbAuthModule, NbDummyAuthProvider } from '@nebular/auth';
import { NbAuthModule, NbDummyAuthStrategy } from '@nebular/auth';
import { NbSecurityModule, NbRoleProvider } from '@nebular/security';
import { of as observableOf } from 'rxjs';
@ -36,17 +36,13 @@ export class NbSimpleRoleProvider extends NbRoleProvider {
export const NB_CORE_PROVIDERS = [
...DataModule.forRoot().providers,
...NbAuthModule.forRoot({
providers: {
email: {
service: NbDummyAuthProvider,
config: {
delay: 3000,
login: {
rememberMe: true,
},
},
},
},
strategies: [
NbDummyAuthStrategy.setup({
name: 'email',
delay: 3000,
}),
],
forms: {
login: {
socialLinks: socialLinks,
@ -56,6 +52,7 @@ export const NB_CORE_PROVIDERS = [
},
},
}).providers,
NbSecurityModule.forRoot({
accessControl: {
guest: {
@ -69,6 +66,7 @@ export const NB_CORE_PROVIDERS = [
},
},
}).providers,
{
provide: NbRoleProvider, useClass: NbSimpleRoleProvider,
},