From 0146b07518cb394e478073e9405c621acbff2953 Mon Sep 17 00:00:00 2001 From: IvayloG Date: Wed, 24 Jan 2018 17:35:57 +0200 Subject: [PATCH] fix: React add descriptions. Fix wrong descriptions. --- templates/angular/ig-ts/combo/combo/index.ts | 2 +- templates/angular/ig-ts/projects/empty/index.ts | 2 +- templates/angular/igx-ts/projects/empty/index.ts | 2 +- templates/jquery/js/projects/empty/index.ts | 2 +- .../default/files/client/components/__path__/index.js | 2 +- templates/react/es6/combo/combo/index.ts | 2 +- templates/react/es6/grid/basic/index.ts | 3 ++- templates/react/es6/grid/grid-custom/index.ts | 3 ++- templates/react/es6/grid/grid-editing/index.ts | 3 ++- templates/react/es6/grid/grid-export/index.ts | 3 ++- templates/react/es6/grid/grid-templating/index.ts | 4 ++-- .../es6/hierarchical-grid/hierarchical-grid-custom/index.ts | 1 + .../es6/hierarchical-grid/hierarchical-grid-editing/index.ts | 1 + .../es6/hierarchical-grid/hierarchical-grid-export/index.ts | 1 + .../react/es6/hierarchical-grid/hierarchical-grid/index.ts | 1 + templates/react/es6/projects/empty/index.ts | 2 +- templates/react/es6/tree-grid/tree-grid-custom/index.ts | 1 + templates/react/es6/tree-grid/tree-grid-editing/index.ts | 1 + templates/react/es6/tree-grid/tree-grid-export/index.ts | 3 ++- templates/react/es6/tree-grid/tree-grid/index.ts | 1 + 20 files changed, 26 insertions(+), 14 deletions(-) diff --git a/templates/angular/ig-ts/combo/combo/index.ts b/templates/angular/ig-ts/combo/combo/index.ts index 5aaec44c8..6f97406a4 100644 --- a/templates/angular/ig-ts/combo/combo/index.ts +++ b/templates/angular/ig-ts/combo/combo/index.ts @@ -6,7 +6,7 @@ class ComboTemplate extends AngularTemplate { super(__dirname); this.id = "combo"; this.name = "combo"; - this.description = "The is a combo template structure for Angular"; + this.description = "Combo template structure for Angular"; this.projectType = "ig-ts"; this.components = ["Combo"]; this.dependencies = ["igCombo"]; diff --git a/templates/angular/ig-ts/projects/empty/index.ts b/templates/angular/ig-ts/projects/empty/index.ts index fa5d737ca..ff11db452 100644 --- a/templates/angular/ig-ts/projects/empty/index.ts +++ b/templates/angular/ig-ts/projects/empty/index.ts @@ -5,7 +5,7 @@ import { ProjectConfig } from "./../../../../../lib/ProjectConfig"; class EmptyAngularProject implements ProjectTemplate { public id: string = "angular"; public name = "empty"; - public description = "The is the default empty project structure for angular"; + public description = "Default empty project structure for angular"; public dependencies: string[] = []; public framework: string = "angular"; public projectType: string = "ig-ts"; diff --git a/templates/angular/igx-ts/projects/empty/index.ts b/templates/angular/igx-ts/projects/empty/index.ts index 7b9bddb3e..86017a6d8 100644 --- a/templates/angular/igx-ts/projects/empty/index.ts +++ b/templates/angular/igx-ts/projects/empty/index.ts @@ -4,7 +4,7 @@ import { Util } from "../../../../../lib/Util"; class EmptyJsBlocksProject implements ProjectTemplate { public id: string = "angular"; public name = "empty"; - public description = "The is the default empty angular project structure for JsBlocks"; + public description = "Default empty angular project structure for Ignite UI for Angular"; public dependencies: string[] = []; public framework: string = "angular"; public projectType: string = "igx-ts"; diff --git a/templates/jquery/js/projects/empty/index.ts b/templates/jquery/js/projects/empty/index.ts index 8454beacf..61920055a 100644 --- a/templates/jquery/js/projects/empty/index.ts +++ b/templates/jquery/js/projects/empty/index.ts @@ -6,7 +6,7 @@ import { Util } from "../../../../../lib/Util"; class EmptyProject implements ProjectTemplate { public id: string = "jquery"; public name: string = "jquery with Javascript"; - public description: string = "The is the default empty project structure for jQuery"; + public description: string = "Default empty project structure for jQuery"; public dependencies: string[]; public framework: string = "jquery"; public projectType: string = "js"; diff --git a/templates/react/es6/column-chart/default/files/client/components/__path__/index.js b/templates/react/es6/column-chart/default/files/client/components/__path__/index.js index 7a5332daa..08ff98f9b 100644 --- a/templates/react/es6/column-chart/default/files/client/components/__path__/index.js +++ b/templates/react/es6/column-chart/default/files/client/components/__path__/index.js @@ -23,7 +23,7 @@ export default class $(ClassName) extends Component { width="650px" height="350px" dataSource={this.state.view} - responseDataKey="lastFiveYears" + responseDataKey="lastFiveYears" legend={{ element: "columnLegend" }} title="Energy Production Per Country" subtitle="The top five Total Primary Energy producers" diff --git a/templates/react/es6/combo/combo/index.ts b/templates/react/es6/combo/combo/index.ts index 125b65a11..3bb745df6 100644 --- a/templates/react/es6/combo/combo/index.ts +++ b/templates/react/es6/combo/combo/index.ts @@ -10,7 +10,7 @@ class ComboTemplate extends ReactTemplate { this.id = "combo"; this.name = "combo"; this.widget = "igCombo"; - this.description = "The is a combo template structure for React"; + this.description = "Combo template structure for React"; this.projectType = "es6"; this.components = ["Combo"]; this.controlGroup = "Data Entry"; diff --git a/templates/react/es6/grid/basic/index.ts b/templates/react/es6/grid/basic/index.ts index 26c7f08cd..9ed573abb 100644 --- a/templates/react/es6/grid/basic/index.ts +++ b/templates/react/es6/grid/basic/index.ts @@ -15,7 +15,7 @@ class GridTemplate extends ReactTemplate { super(__dirname); this.id = "grid"; this.name = "Grid"; - this.description = "The is a grid template structure for React"; + this.description = "Grid template structure for React"; this.projectType = "es6"; this.components = ["Grid"]; this.controlGroup = "Data Grids"; @@ -43,6 +43,7 @@ class GridTemplate extends ReactTemplate { config["$(Control)"] = this.className("igGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/grid/grid-custom/index.ts b/templates/react/es6/grid/grid-custom/index.ts index 5f29455ab..10f7747c8 100644 --- a/templates/react/es6/grid/grid-custom/index.ts +++ b/templates/react/es6/grid/grid-custom/index.ts @@ -15,7 +15,7 @@ class GridCustomTemplate extends ReactTemplate { super(__dirname); this.id = "grid-custom"; this.name = "Custom Grid"; - this.description = "The is a custom grid template for React"; + this.description = "Custom grid template for React"; this.projectType = "es6"; this.components = ["Grid"]; this.controlGroup = "Data Grids"; @@ -46,6 +46,7 @@ class GridCustomTemplate extends ReactTemplate { config["$(Control)"] = this.className("igGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/grid/grid-editing/index.ts b/templates/react/es6/grid/grid-editing/index.ts index 4c164a24a..687bc283e 100644 --- a/templates/react/es6/grid/grid-editing/index.ts +++ b/templates/react/es6/grid/grid-editing/index.ts @@ -15,7 +15,7 @@ class GridEditingTemplate extends ReactTemplate { super(__dirname); this.id = "grid-editing"; this.name = "Grid Editing"; - this.description = "This is a grid editing template for React"; + this.description = "Grid editing template for React"; this.projectType = "es6"; this.components = ["Grid"]; this.controlGroup = "Data Grids"; @@ -44,6 +44,7 @@ class GridEditingTemplate extends ReactTemplate { config["$(Control)"] = this.className("igGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/grid/grid-export/index.ts b/templates/react/es6/grid/grid-export/index.ts index 26e0613b9..0c3403d9f 100644 --- a/templates/react/es6/grid/grid-export/index.ts +++ b/templates/react/es6/grid/grid-export/index.ts @@ -15,7 +15,7 @@ class GridExportTemplate extends ReactTemplate { super(__dirname); this.id = "grid-export"; this.name = "Grid Exporting"; - this.description = "The is a grid exporting template for React"; + this.description = "Grid exporting template for React"; this.projectType = "es6"; this.components = ["Grid"]; this.controlGroup = "Data Grids"; @@ -43,6 +43,7 @@ class GridExportTemplate extends ReactTemplate { config["$(Control)"] = this.className("igGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/grid/grid-templating/index.ts b/templates/react/es6/grid/grid-templating/index.ts index 93f40842e..23b98b07a 100644 --- a/templates/react/es6/grid/grid-templating/index.ts +++ b/templates/react/es6/grid/grid-templating/index.ts @@ -15,7 +15,7 @@ class GridTemplatingTemplate extends ReactTemplate { super(__dirname); this.id = "grid-templating"; this.name = "Grid Templating"; - this.description = "The is a grid with templating for React"; + this.description = "Grid with templating for React"; this.projectType = "es6"; this.components = ["Grid"]; this.controlGroup = "Data Grids"; @@ -44,7 +44,7 @@ class GridTemplatingTemplate extends ReactTemplate { config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions config["$(gridfeatures)"] = features; - config["$(description)"] = "This is an igGrid with templating."; + config["$(description)"] = this.description; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { return Promise.resolve(false); diff --git a/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.ts b/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.ts index c1a92bd44..47afe61cb 100644 --- a/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.ts +++ b/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.ts @@ -45,6 +45,7 @@ class HierarchicalGridCustomTemplate extends ReactTemplate { config["$(Control)"] = this.className("igHierarchicalGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.ts b/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.ts index 22c2de320..f96a319f1 100644 --- a/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.ts +++ b/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.ts @@ -44,6 +44,7 @@ class HierarchicalGridEditingTemplate extends ReactTemplate { config["$(Control)"] = this.className("igHierarchicalGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.ts b/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.ts index 8a32b84d1..0af29fa09 100644 --- a/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.ts +++ b/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.ts @@ -42,6 +42,7 @@ class HierarchicalGridExportTemplate extends ReactTemplate { config["$(Control)"] = this.className("igHierarchicalGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/hierarchical-grid/hierarchical-grid/index.ts b/templates/react/es6/hierarchical-grid/hierarchical-grid/index.ts index 94c70b6c8..350482eb2 100644 --- a/templates/react/es6/hierarchical-grid/hierarchical-grid/index.ts +++ b/templates/react/es6/hierarchical-grid/hierarchical-grid/index.ts @@ -42,6 +42,7 @@ class HierarchicalGridTemplate extends ReactTemplate { config["$(Control)"] = this.className("igHierarchicalGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(gridfeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/projects/empty/index.ts b/templates/react/es6/projects/empty/index.ts index 656cd9a32..f48357a46 100644 --- a/templates/react/es6/projects/empty/index.ts +++ b/templates/react/es6/projects/empty/index.ts @@ -6,7 +6,7 @@ class EmptyProject implements ProjectTemplate { public _updateFile: string = "webpack.config.js"; public id: string = "react"; public name = "empty"; - public description = "The is the default empty project structure for jQuery"; + public description = "Default empty project structure for React"; public framework: string = "react"; public projectType: string = "jsx"; public dependencies: string[]; diff --git a/templates/react/es6/tree-grid/tree-grid-custom/index.ts b/templates/react/es6/tree-grid/tree-grid-custom/index.ts index bf4b6091c..b2647b80e 100644 --- a/templates/react/es6/tree-grid/tree-grid-custom/index.ts +++ b/templates/react/es6/tree-grid/tree-grid-custom/index.ts @@ -46,6 +46,7 @@ class TreeGridCustomTemplate extends ReactTemplate { config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions config["$(treeGridFeatures)"] = features; + config["$(description)"] = this.description; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { return Promise.resolve(false); diff --git a/templates/react/es6/tree-grid/tree-grid-editing/index.ts b/templates/react/es6/tree-grid/tree-grid-editing/index.ts index af820b069..0816a64be 100644 --- a/templates/react/es6/tree-grid/tree-grid-editing/index.ts +++ b/templates/react/es6/tree-grid/tree-grid-editing/index.ts @@ -45,6 +45,7 @@ class TreeGridEditingTemplate extends ReactTemplate { config["$(Control)"] = this.className("igTreeGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(treeGridFeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { diff --git a/templates/react/es6/tree-grid/tree-grid-export/index.ts b/templates/react/es6/tree-grid/tree-grid-export/index.ts index 600edc507..415433627 100644 --- a/templates/react/es6/tree-grid/tree-grid-export/index.ts +++ b/templates/react/es6/tree-grid/tree-grid-export/index.ts @@ -14,7 +14,7 @@ class TreeGridExportTemplate extends ReactTemplate { super(__dirname); this.id = "tree-grid-export"; this.name = "Tree Grid Exporting"; - this.description = "The is a tree grid exporting template for React"; + this.description = "Tree grid exporting template for React"; this.projectType = "es6"; this.components = ["Tree Grid"]; this.controlGroup = "Data Grids"; @@ -47,6 +47,7 @@ class TreeGridExportTemplate extends ReactTemplate { config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions config["$(treeGridFeatures)"] = features; + config["$(description)"] = this.description; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) { return Promise.resolve(false); diff --git a/templates/react/es6/tree-grid/tree-grid/index.ts b/templates/react/es6/tree-grid/tree-grid/index.ts index 121a61bfa..d2656a06f 100644 --- a/templates/react/es6/tree-grid/tree-grid/index.ts +++ b/templates/react/es6/tree-grid/tree-grid/index.ts @@ -45,6 +45,7 @@ class TreeGridTemplate extends ReactTemplate { config["$(Control)"] = this.className("igTreeGrid"); config["$(igniteImports)"] = this.getImports(); config["$(name)"] = name; // this name should not have restrictions + config["$(description)"] = this.description; config["$(treeGridFeatures)"] = features; // TODO: Refactor to base if (!Util.validateTemplate(path.join(__dirname, "files"), projectPath, config, pathsConfig)) {