Skip to content

Commit

Permalink
fix(grid-crm): fix routes for stackblitz generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetloslav15 committed Dec 7, 2022
1 parent 485c22f commit 255ee24
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 22 deletions.
24 changes: 18 additions & 6 deletions live-editing/configs/GridCRMConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,33 @@ import { BrowserModule, HammerModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { IgxPreventDocumentScrollModule } from '../../src/app/directives/prevent-scroll.directive';
import { GridsCrmModule } from '../../projects/app-crm/src/app/grid-crm/grid-crm.module';

export class GridCRMConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
const configs = new Array<Config>();

configs.push(new Config({
component: 'GridCRMComponent',
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts',
'/projects/app-crm/src/_app-layout.scss', '/projects/app-crm/src/_variables.scss'],
additionalFiles: [
'/src/app/directives/prevent-scroll.directive.ts',
'/projects/app-crm/src/_app-layout.scss',
'/projects/app-crm/src/_variables.scss',
'/projects/app-crm/src/app/grid-crm/data.ts'
],
additionalDependencies: [],
appModuleConfig: new AppModuleConfig({
imports: ['BrowserModule', 'RouterModule', 'BrowserAnimationsModule', 'FormsModule', 'HammerModule'],
ngDeclarations: ['GridCRMComponent'],
ngImports: ['IgxAutocompleteModule', 'IgxRippleModule', 'IgxGridModule', 'IgxIconModule', 'IgxLayoutModule',
'IgxAvatarModule', 'IgxInputGroupModule', 'IgxButtonModule', 'IgxPreventDocumentScrollModule']
imports: [
'RouterModule', 'HammerModule', 'IgxAutocompleteModule', 'IgxRippleModule',
'IgxGridModule', 'IgxIconModule', 'IgxLayoutModule',
'IgxAvatarModule', 'IgxInputGroupModule', 'IgxButtonModule',
'IgxPreventDocumentScrollModule', 'GridsCrmModule'
],
ngDeclarations: [],
ngImports: ['IgxPreventDocumentScrollModule', 'IgxRippleModule',
'IgxGridModule', 'IgxIconModule', 'IgxLayoutModule',
'IgxAvatarModule', 'IgxInputGroupModule', 'IgxButtonModule', 'GridsCrmModule']
})
}));

Expand Down
20 changes: 6 additions & 14 deletions projects/app-crm/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule, HammerModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {
IgxAutocompleteModule, IgxButtonModule, IgxIconModule, IgxInputGroupModule, IgxLayoutModule,
IgxRippleModule, IgxGridModule, IgxAvatarModule
IgxAutocompleteModule, IgxLayoutModule
} from 'igniteui-angular';
import { IgxPreventDocumentScrollModule } from '../../../../src/app/directives/prevent-scroll.directive';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app.routing.module';
import { GridsCrmModule } from './grid-crm/grid-crm.module';

@NgModule({
bootstrap: [AppComponent],
Expand All @@ -17,20 +15,14 @@ import { AppRoutingModule } from './app.routing.module';
],
imports: [
IgxAutocompleteModule,
IgxRippleModule,
IgxGridModule,
IgxIconModule,
IgxLayoutModule,
IgxAvatarModule,
IgxInputGroupModule,
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
IgxButtonModule,
FormsModule,
IgxPreventDocumentScrollModule,
HammerModule
]
HammerModule,
GridsCrmModule
],
providers: []
})
export class AppModule { }

2 changes: 1 addition & 1 deletion projects/app-crm/src/assets/samples/grid-crm.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/app-crm/src/assets/samples/meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"generationTimeStamp":1670355045503}
{"generationTimeStamp":1670397625889}

0 comments on commit 255ee24

Please sign in to comment.