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

@ -8,10 +8,6 @@ node_js:
- '9'
- '10'
cache:
directories:
- node_modules
branches:
only:
- master

5656
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -40,9 +40,9 @@
"@angular/platform-browser-dynamic": "6.0.0",
"@angular/router": "6.0.0",
"@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "^2.0.0-rc.8",
"@nebular/security": "^2.0.0-rc.8",
"@nebular/theme": "^2.0.0-rc.8",
"@nebular/auth": "2.0.0-rc.9",
"@nebular/security": "2.0.0-rc.9",
"@nebular/theme": "2.0.0-rc.9",
"@ng-bootstrap/ng-bootstrap": "1.0.0",
"@swimlane/ngx-charts": "7.0.1",
"angular-tree-component": "7.2.0",

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,
},