mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
fix(app): remove immutable from the project, use basic arrays instead
This commit is contained in:
parent
f7b26d8c26
commit
d33dbb6029
5 changed files with 198 additions and 170 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
|
@ -4225,11 +4225,6 @@
|
||||||
"xmldom": "0.1.27"
|
"xmldom": "0.1.27"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"immutable": {
|
|
||||||
"version": "3.8.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.1.tgz",
|
|
||||||
"integrity": "sha1-IAgH8Rqw9ycQ6khVQt4IgHX2jNI="
|
|
||||||
},
|
|
||||||
"imurmurhash": {
|
"imurmurhash": {
|
||||||
"version": "0.1.4",
|
"version": "0.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,6 @@
|
||||||
"d3": "4.8.0",
|
"d3": "4.8.0",
|
||||||
"echarts": "3.5.4",
|
"echarts": "3.5.4",
|
||||||
"font-awesome": "4.7.0",
|
"font-awesome": "4.7.0",
|
||||||
"immutable": "3.8.1",
|
|
||||||
"intl": "1.2.5",
|
"intl": "1.2.5",
|
||||||
"ionicons": "2.0.1",
|
"ionicons": "2.0.1",
|
||||||
"leaflet": "1.0.3",
|
"leaflet": "1.0.3",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { Component, Input, OnDestroy } from '@angular/core';
|
import { Component, OnDestroy } from '@angular/core';
|
||||||
import { List } from 'immutable';
|
|
||||||
import { NbMenuItem } from '@nebular/theme';
|
import { NbMenuItem } from '@nebular/theme';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
|
|
||||||
|
|
@ -55,8 +54,7 @@ import { StateService } from '../../../@core/data/state.service';
|
||||||
})
|
})
|
||||||
export class SampleLayoutComponent implements OnDestroy {
|
export class SampleLayoutComponent implements OnDestroy {
|
||||||
|
|
||||||
subMenu: List<NbMenuItem> = List(
|
subMenu: NbMenuItem[] = [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
title: 'PAGE LEVEL MENU',
|
title: 'PAGE LEVEL MENU',
|
||||||
group: true,
|
group: true,
|
||||||
|
|
@ -96,8 +94,7 @@ export class SampleLayoutComponent implements OnDestroy {
|
||||||
icon: 'ion ion-android-radio-button-off',
|
icon: 'ion ion-android-radio-button-off',
|
||||||
link: '/pages/ui-features/tabs',
|
link: '/pages/ui-features/tabs',
|
||||||
},
|
},
|
||||||
],
|
];
|
||||||
);
|
|
||||||
layout: any = {};
|
layout: any = {};
|
||||||
sidebar: any = {};
|
sidebar: any = {};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,118 +1,158 @@
|
||||||
import { NbMenuItem } from '@nebular/theme';
|
import { NbMenuItem } from '@nebular/theme';
|
||||||
|
|
||||||
import { List } from 'immutable';
|
export const MENU_ITEMS: NbMenuItem[] = [
|
||||||
|
{
|
||||||
export const MENU_ITEMS: List<NbMenuItem> = List([{
|
|
||||||
title: 'Dashboard',
|
title: 'Dashboard',
|
||||||
icon: 'nb-home',
|
icon: 'nb-home',
|
||||||
link: '/pages/dashboard',
|
link: '/pages/dashboard',
|
||||||
home: true,
|
home: true,
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'FEATURES',
|
title: 'FEATURES',
|
||||||
group: true,
|
group: true,
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'UI Features',
|
title: 'UI Features',
|
||||||
icon: 'nb-keypad',
|
icon: 'nb-keypad',
|
||||||
link: '/pages/ui-features',
|
link: '/pages/ui-features',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Buttons',
|
title: 'Buttons',
|
||||||
link: '/pages/ui-features/buttons',
|
link: '/pages/ui-features/buttons',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Grid',
|
title: 'Grid',
|
||||||
link: '/pages/ui-features/grid',
|
link: '/pages/ui-features/grid',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Icons',
|
title: 'Icons',
|
||||||
link: '/pages/ui-features/icons',
|
link: '/pages/ui-features/icons',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Modals',
|
title: 'Modals',
|
||||||
link: '/pages/ui-features/modals',
|
link: '/pages/ui-features/modals',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Typography',
|
title: 'Typography',
|
||||||
link: '/pages/ui-features/typography',
|
link: '/pages/ui-features/typography',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Animated Searches',
|
title: 'Animated Searches',
|
||||||
link: '/pages/ui-features/search-fields',
|
link: '/pages/ui-features/search-fields',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Tabs',
|
title: 'Tabs',
|
||||||
link: '/pages/ui-features/tabs',
|
link: '/pages/ui-features/tabs',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Forms',
|
title: 'Forms',
|
||||||
icon: 'nb-compose',
|
icon: 'nb-compose',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Form Inputs',
|
title: 'Form Inputs',
|
||||||
link: '/pages/forms/inputs',
|
link: '/pages/forms/inputs',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Form Layouts',
|
title: 'Form Layouts',
|
||||||
link: '/pages/forms/layouts',
|
link: '/pages/forms/layouts',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Components',
|
title: 'Components',
|
||||||
icon: 'nb-gear',
|
icon: 'nb-gear',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Tree',
|
title: 'Tree',
|
||||||
link: '/pages/components/tree',
|
link: '/pages/components/tree',
|
||||||
}, {
|
}, {
|
||||||
title: 'Notifications',
|
title: 'Notifications',
|
||||||
link: '/pages/components/notifications',
|
link: '/pages/components/notifications',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Maps',
|
title: 'Maps',
|
||||||
icon: 'nb-location',
|
icon: 'nb-location',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Google Maps',
|
title: 'Google Maps',
|
||||||
link: '/pages/maps/gmaps',
|
link: '/pages/maps/gmaps',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Leaflet Maps',
|
title: 'Leaflet Maps',
|
||||||
link: '/pages/maps/leaflet',
|
link: '/pages/maps/leaflet',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Bubble Maps',
|
title: 'Bubble Maps',
|
||||||
link: '/pages/maps/bubble',
|
link: '/pages/maps/bubble',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Charts',
|
title: 'Charts',
|
||||||
icon: 'nb-bar-chart',
|
icon: 'nb-bar-chart',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Echarts',
|
title: 'Echarts',
|
||||||
link: '/pages/charts/echarts',
|
link: '/pages/charts/echarts',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Charts.js',
|
title: 'Charts.js',
|
||||||
link: '/pages/charts/chartjs',
|
link: '/pages/charts/chartjs',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'D3',
|
title: 'D3',
|
||||||
link: '/pages/charts/d3',
|
link: '/pages/charts/d3',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Editors',
|
title: 'Editors',
|
||||||
icon: 'nb-title',
|
icon: 'nb-title',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'TinyMCE',
|
title: 'TinyMCE',
|
||||||
link: '/pages/editors/tinymce',
|
link: '/pages/editors/tinymce',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'CKEditor',
|
title: 'CKEditor',
|
||||||
link: '/pages/editors/ckeditor',
|
link: '/pages/editors/ckeditor',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Tables',
|
title: 'Tables',
|
||||||
icon: 'nb-tables',
|
icon: 'nb-tables',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Smart Table',
|
title: 'Smart Table',
|
||||||
link: '/pages/tables/smart-table',
|
link: '/pages/tables/smart-table',
|
||||||
}]),
|
},
|
||||||
}, {
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
title: 'Auth',
|
title: 'Auth',
|
||||||
icon: 'nb-locked',
|
icon: 'nb-locked',
|
||||||
children: List<NbMenuItem>([{
|
children: [
|
||||||
|
{
|
||||||
title: 'Login',
|
title: 'Login',
|
||||||
link: '/auth/login',
|
link: '/auth/login',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Register',
|
title: 'Register',
|
||||||
link: '/auth/register',
|
link: '/auth/register',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Request Password',
|
title: 'Request Password',
|
||||||
link: '/auth/request-password',
|
link: '/auth/request-password',
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Reset Password',
|
title: 'Reset Password',
|
||||||
link: '/auth/reset-password',
|
link: '/auth/reset-password',
|
||||||
}]),
|
},
|
||||||
}]);
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,6 @@
|
||||||
],
|
],
|
||||||
"@nebular/*": [
|
"@nebular/*": [
|
||||||
"../node_modules/@nebular/*"
|
"../node_modules/@nebular/*"
|
||||||
],
|
|
||||||
"immutable/*": [
|
|
||||||
"../node_modules/immutable/*"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue