Skip to content

Commit 3cfbe0c

Browse files
author
pipeline
committed
v19.1.63 is released
1 parent 3de58dd commit 3cfbe0c

File tree

111 files changed

+316
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+316
-223
lines changed

README.md

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,95 @@ Note: Here, '\*' Specifies that install the latest published package form the on
119119
"@syncfusion/ej2-react-grids": "*"
120120
},
121121
```
122-
## Run your Sample Browser
122+
# Using the samples
123+
124+
## Installing
125+
126+
Before installation check `@syncfusion:registry=http://nexus.syncfusion.com/repository/ej2-production/` is available in npmrc file. Then use the below command to install all dependent packages.
127+
128+
```
129+
npm install
130+
```
131+
132+
## Build
133+
134+
Use `npm run build` command to compile the source files. It calls the following tasks synchronously,
135+
136+
1. SEO changes
137+
2. Build
138+
3. Styles ship
139+
4. Site-map generate.
140+
141+
### SEO changes
142+
143+
It will set meta data and description for the h1 tag to show our components first in search engine. Use the below command to run it individual.
144+
145+
```
146+
gulp SEO-changes
147+
```
148+
149+
### Build
150+
151+
Use the below command to generate scripts, styles, locale and sample lists.
152+
153+
```
154+
gulp build
155+
```
156+
It runs the following tasks synchronously,
157+
158+
1. Scripts
159+
2. Styles
160+
161+
#### **Scripts**
162+
163+
It compiles the Typescript files and use the below command to run this task.
164+
165+
```
166+
gulp scripts
167+
```
168+
169+
#### **Styles**
170+
171+
`gulp styles` command is used to compile default themes. It calls the following two tasks synchronously.
172+
173+
1. Default theme
174+
2. Compile styles
175+
176+
#### Default theme
177+
178+
Use the below command to generate default theme files.
179+
180+
```
181+
gulp default-theme
182+
```
183+
184+
#### Compile Styles
185+
It compiles the scss file to css file. To run this task use the below command,
186+
187+
```
188+
gulp compile-styles
189+
```
190+
191+
### Styles Shipping
192+
193+
It copies css files for themes from node_modules. Use the below command to run it individual.
194+
195+
```
196+
gulp styles-ship
197+
```
198+
199+
### Site map generation
200+
201+
The below command combines sample of all components and store it in sitemap-demos.xml file to index our components, samples, documents in search engine.
202+
203+
```
204+
gulp sitemap-generate
205+
```
206+
207+
## Running the Sample Browser
123208

124209
To run your sample browser you can use any of the following command.
125210

126211
```
127212
gulp serve
128-
```
213+
```

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<link href="src/common/lib/content/bootstrap.min.css" rel="stylesheet" />
2626
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet"></link>
2727
<link rel="shortcut icon" href="favicon.ico" />
28-
<style id="themelink"></style>
28+
<link id="themelink" href="styles/material.css" rel="stylesheet" />
2929
<link rel="stylesheet" type="text/css" href="./styles/index.css" />
3030
<link rel="stylesheet" type="text/css" href="./src/common/lib/highlightjs/styles/default.css" />
3131
<link href="src/common/lib/content/codemirror.css" rel="stylesheet"></link>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-react-samples",
3-
"version": "19.1.54",
3+
"version": "19.1.63",
44
"description": "Examples of React UI Components",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

src/chart/adindicator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ export class AccumulationDistribution extends SampleBase<{}, {}> {
117117
let  chart:  Element  =  document.getElementById('charts');
118118
chart.setAttribute('title',  '');
119119
};
120-
// custom code start
120+
121121
public load(args: ILoadedEventArgs): void {
122122
let selectedTheme: string = location.hash.split('/')[1];
123123
selectedTheme = selectedTheme ? selectedTheme : 'Material';
124124
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)).
125125
replace(/-dark/i, "Dark") as ChartTheme;
126126
};
127-
// custom code end
127+
128128

129129
public axisLableRender(args: IAxisLabelRenderEventArgs): void {
130130
if (args.axis.name === 'secondary') {

src/chart/annotation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ export class Annotation extends SampleBase<{}, {}> {
129129
});
130130
this.pie.appendTo('#chart_annotation');
131131
};
132-
// custom code start
132+
133133
public load(args: ILoadedEventArgs): void {
134134
let selectedTheme: string = location.hash.split('/')[1];
135135
selectedTheme = selectedTheme ? selectedTheme : 'Material';
136136
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)).
137137
replace(/-dark/i, "Dark") as ChartTheme;
138138
};
139-
// custom code end
139+
140140

141141
public loaded(args: ILoadedEventArgs): void {
142142
if (this.isRender) {

src/chart/area-empty.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ export class AreaEmpty extends SampleBase<{}, {}> {
9393
let  chart:  Element  =  document.getElementById('charts');
9494
chart.setAttribute('title',  '');
9595
};
96-
// custom code start
96+
9797
public load(args: ILoadedEventArgs): void {
9898
let selectedTheme: string = location.hash.split('/')[1];
9999
selectedTheme = selectedTheme ? selectedTheme : 'Material';
100100
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)).
101101
replace(/-dark/i, "Dark") as ChartTheme;
102102
};
103-
// custom code end
103+
104104
}

src/chart/area-segments.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ export class AreaMultiColored extends SampleBase<{}, {}> {
175175
let chart: Element = document.getElementById('charts');
176176
chart.setAttribute('title', '');
177177
};
178-
// custom code start
178+
179179
public load(args: ILoadedEventArgs): void {
180180
let selectedTheme: string = location.hash.split('/')[1];
181181
selectedTheme = selectedTheme ? selectedTheme : 'Material';
182182
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)).
183183
replace(/-dark/i, "Dark") as ChartTheme;
184184
};
185-
// custom code end
185+
186186
}

src/chart/area.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ export class Area extends SampleBase<{}, {}> {
9494
let  chart:  Element  =  document.getElementById('charts');
9595
chart.setAttribute('title',  '');
9696
};
97-
// custom code start
97+
9898
public load(args: ILoadedEventArgs): void {
9999
let selectedTheme: string = location.hash.split('/')[1];
100100
selectedTheme = selectedTheme ? selectedTheme : 'Material';
101101
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)) as ChartTheme;
102102
};
103-
// custom code end
103+
104104
}

src/chart/atrindicator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ export class ATR extends SampleBase<{}, {}> {
116116
let chart: Element = document.getElementById('charts');
117117
chart.setAttribute('title', '');
118118
};
119-
// custom code start
119+
120120
public load(args: ILoadedEventArgs): void {
121121
let selectedTheme: string = location.hash.split('/')[1];
122122
selectedTheme = selectedTheme ? selectedTheme : 'Material';
123123
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)).
124124
replace(/-dark/i, "Dark") as ChartTheme;
125125
};
126-
// custom code end
126+
127127
}

src/chart/axis-crossing.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ export class AxisCrossing extends SampleBase<{}, {}> {
176176
chart.setAttribute('title', '');
177177

178178
};
179-
// custom code start
179+
180180
public load(args: ILoadedEventArgs): void {
181181
let selectedTheme: string = location.hash.split('/')[1];
182182
selectedTheme = selectedTheme ? selectedTheme : 'Material';
183183
args.chart.theme = (selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1)).
184184
replace(/-dark/i, "Dark") as ChartTheme;
185185
};
186-
// custom code end
186+
187187
}

0 commit comments

Comments
 (0)