mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
refactor(theme): move dependencies into demo
This commit is contained in:
parent
2afb26810e
commit
b71c1190bc
13 changed files with 61 additions and 16 deletions
|
|
@ -52,6 +52,7 @@
|
||||||
},
|
},
|
||||||
"lint": [
|
"lint": [
|
||||||
{
|
{
|
||||||
|
"files": "src/**/*.ts",
|
||||||
"project": "src/tsconfig.app.json"
|
"project": "src/tsconfig.app.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/component';
|
||||||
|
|
||||||
// TODO move colors to theme
|
// TODO move colors to theme
|
||||||
@include nga-install-component() {
|
@include nga-install-component() {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,5 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/all';
|
||||||
@include nga-install();
|
@include nga-themes-install();
|
||||||
|
|
||||||
|
@import '~@nga/auth/styles_new/all';
|
||||||
|
@include nga-auth-install();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { NgaChartsModule } from '@nga/theme';
|
|
||||||
|
|
||||||
import { SharedModule } from '../../shared.module';
|
import { SharedModule } from '../../shared.module';
|
||||||
|
|
||||||
|
|
@ -13,6 +12,9 @@ import { D3PieComponent } from './d3/pie/pie.component';
|
||||||
import { EchartsLineComponent } from './echarts/line/line.component';
|
import { EchartsLineComponent } from './echarts/line/line.component';
|
||||||
import { EchartsPieComponent } from './echarts/pie/pie.component';
|
import { EchartsPieComponent } from './echarts/pie/pie.component';
|
||||||
import { EchartsBarComponent } from './echarts/bar/bar.component';
|
import { EchartsBarComponent } from './echarts/bar/bar.component';
|
||||||
|
import { AngularEchartsModule } from 'angular2-echarts';
|
||||||
|
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
||||||
|
import { ChartsModule as Ng2Charts } from 'ng2-charts/ng2-charts';
|
||||||
|
|
||||||
const components = [
|
const components = [
|
||||||
ChartJsBarComponent,
|
ChartJsBarComponent,
|
||||||
|
|
@ -29,8 +31,10 @@ const components = [
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
NgaChartsModule,
|
|
||||||
ChartsRoutingModule,
|
ChartsRoutingModule,
|
||||||
|
AngularEchartsModule,
|
||||||
|
NgxChartsModule,
|
||||||
|
Ng2Charts,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...routedComponents,
|
...routedComponents,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/component';
|
||||||
|
|
||||||
@include nga-install-component() {
|
@include nga-install-component() {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { NgaComponentsModule } from '@nga/theme';
|
|
||||||
|
import { TreeModule } from 'ng2-tree';
|
||||||
|
import { ToasterModule } from 'angular2-toaster';
|
||||||
|
|
||||||
import { SharedModule } from '../../shared.module';
|
import { SharedModule } from '../../shared.module';
|
||||||
|
|
||||||
|
|
@ -8,8 +10,9 @@ import { ComponentsRoutingModule, routedComponents } from './components-routing.
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
NgaComponentsModule,
|
|
||||||
ComponentsRoutingModule,
|
ComponentsRoutingModule,
|
||||||
|
TreeModule,
|
||||||
|
ToasterModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...routedComponents,
|
...routedComponents,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/component';
|
||||||
|
@import '~@nga/theme/styles_new/global/bootstrap/hero-buttons';
|
||||||
|
|
||||||
@include nga-install-component() {
|
@include nga-install-component() {
|
||||||
.status-cards {
|
.status-cards {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/component';
|
||||||
|
|
||||||
@include nga-install-component() {
|
@include nga-install-component() {
|
||||||
/deep/ agm-map .agm-map-container-inner {
|
/deep/ agm-map .agm-map-container-inner {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/component';
|
||||||
|
|
||||||
@include nga-install-component() {
|
@include nga-install-component() {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { NgaTablesModule } from '@nga/theme';
|
import { Ng2SmartTableModule } from 'ng2-smart-table';
|
||||||
|
|
||||||
import { SharedModule } from '../../shared.module';
|
import { SharedModule } from '../../shared.module';
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { SmartTableService } from './smart-table/smart-table.service';
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
TablesRoutingModule,
|
TablesRoutingModule,
|
||||||
NgaTablesModule,
|
Ng2SmartTableModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...routedComponents,
|
...routedComponents,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
@import '~@nga/theme/styles_new/all';
|
@import '~@nga/theme/styles_new/component';
|
||||||
|
@import '~@nga/theme/styles_new/global/bootstrap/buttons';
|
||||||
|
|
||||||
@mixin btn-bg($background) {
|
@mixin btn-bg($background) {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { NgaCardModule, NgaBootstrapModule } from '@nga/theme';
|
import { NgaCardModule } from '@nga/theme';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
exports: [
|
exports: [
|
||||||
|
|
@ -11,7 +11,6 @@ import { NgaCardModule, NgaBootstrapModule } from '@nga/theme';
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
NgaCardModule,
|
NgaCardModule,
|
||||||
NgaBootstrapModule,
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class SharedModule { }
|
export class SharedModule { }
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,40 @@
|
||||||
"outDir": "../out-tsc/app",
|
"outDir": "../out-tsc/app",
|
||||||
"module": "es2015",
|
"module": "es2015",
|
||||||
"baseUrl": "",
|
"baseUrl": "",
|
||||||
"types": []
|
"types": [],
|
||||||
|
"paths": {
|
||||||
|
"@angular/*": [
|
||||||
|
"../node_modules/@angular/*"
|
||||||
|
],
|
||||||
|
"@nga/*": [
|
||||||
|
"../node_modules/@nga/*"
|
||||||
|
],
|
||||||
|
"@ng-bootstrap/*": [
|
||||||
|
"../node_modules/@ng-bootstrap/*"
|
||||||
|
],
|
||||||
|
"bootstrap/*": [
|
||||||
|
"../node_modules/bootstrap/*"
|
||||||
|
],
|
||||||
|
"font-awesome/*": [
|
||||||
|
"../node_modules/font-awesome/*"
|
||||||
|
],
|
||||||
|
"immutable/*": [
|
||||||
|
"../node_modules/immutable/*"
|
||||||
|
],
|
||||||
|
"ionicons/*": [
|
||||||
|
"../node_modules/ionicons/*"
|
||||||
|
],
|
||||||
|
"normalize.css/*": [
|
||||||
|
"../node_modules/normalize.css/*"
|
||||||
|
],
|
||||||
|
"segoe-fonts/*": [
|
||||||
|
"../node_modules/segoe-fonts/*"
|
||||||
|
],
|
||||||
|
"typeface-exo/*": [
|
||||||
|
"../node_modules/typeface-exo/*"
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"test.ts",
|
"test.ts",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue