mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00
feat: update Nebular to rc.9 (#1741)
This commit is contained in:
parent
cef6ea6499
commit
18a4750ec2
4 changed files with 2841 additions and 2847 deletions
|
@ -8,10 +8,6 @@ node_js:
|
||||||
- '9'
|
- '9'
|
||||||
- '10'
|
- '10'
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- node_modules
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
5656
package-lock.json
generated
5656
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -40,9 +40,9 @@
|
||||||
"@angular/platform-browser-dynamic": "6.0.0",
|
"@angular/platform-browser-dynamic": "6.0.0",
|
||||||
"@angular/router": "6.0.0",
|
"@angular/router": "6.0.0",
|
||||||
"@asymmetrik/ngx-leaflet": "3.0.1",
|
"@asymmetrik/ngx-leaflet": "3.0.1",
|
||||||
"@nebular/auth": "^2.0.0-rc.8",
|
"@nebular/auth": "2.0.0-rc.9",
|
||||||
"@nebular/security": "^2.0.0-rc.8",
|
"@nebular/security": "2.0.0-rc.9",
|
||||||
"@nebular/theme": "^2.0.0-rc.8",
|
"@nebular/theme": "2.0.0-rc.9",
|
||||||
"@ng-bootstrap/ng-bootstrap": "1.0.0",
|
"@ng-bootstrap/ng-bootstrap": "1.0.0",
|
||||||
"@swimlane/ngx-charts": "7.0.1",
|
"@swimlane/ngx-charts": "7.0.1",
|
||||||
"angular-tree-component": "7.2.0",
|
"angular-tree-component": "7.2.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
|
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NbAuthModule, NbDummyAuthProvider } from '@nebular/auth';
|
import { NbAuthModule, NbDummyAuthStrategy } from '@nebular/auth';
|
||||||
import { NbSecurityModule, NbRoleProvider } from '@nebular/security';
|
import { NbSecurityModule, NbRoleProvider } from '@nebular/security';
|
||||||
import { of as observableOf } from 'rxjs';
|
import { of as observableOf } from 'rxjs';
|
||||||
|
|
||||||
|
@ -36,17 +36,13 @@ export class NbSimpleRoleProvider extends NbRoleProvider {
|
||||||
export const NB_CORE_PROVIDERS = [
|
export const NB_CORE_PROVIDERS = [
|
||||||
...DataModule.forRoot().providers,
|
...DataModule.forRoot().providers,
|
||||||
...NbAuthModule.forRoot({
|
...NbAuthModule.forRoot({
|
||||||
providers: {
|
|
||||||
email: {
|
strategies: [
|
||||||
service: NbDummyAuthProvider,
|
NbDummyAuthStrategy.setup({
|
||||||
config: {
|
name: 'email',
|
||||||
delay: 3000,
|
delay: 3000,
|
||||||
login: {
|
}),
|
||||||
rememberMe: true,
|
],
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
forms: {
|
forms: {
|
||||||
login: {
|
login: {
|
||||||
socialLinks: socialLinks,
|
socialLinks: socialLinks,
|
||||||
|
@ -56,6 +52,7 @@ export const NB_CORE_PROVIDERS = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}).providers,
|
}).providers,
|
||||||
|
|
||||||
NbSecurityModule.forRoot({
|
NbSecurityModule.forRoot({
|
||||||
accessControl: {
|
accessControl: {
|
||||||
guest: {
|
guest: {
|
||||||
|
@ -69,6 +66,7 @@ export const NB_CORE_PROVIDERS = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}).providers,
|
}).providers,
|
||||||
|
|
||||||
{
|
{
|
||||||
provide: NbRoleProvider, useClass: NbSimpleRoleProvider,
|
provide: NbRoleProvider, useClass: NbSimpleRoleProvider,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue