Skip to content

Commit ec07b19

Browse files
CDN update (#986)
* cdn update * cdn update * cdn update * cdn path css * fix names * cdn gen data * Update index.tsx * cdn path to images * fixed names
1 parent e0c5b36 commit ec07b19

File tree

1,696 files changed

+5854
-6244
lines changed

Some content is hidden

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

1,696 files changed

+5854
-6244
lines changed

browser/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
2525
-->
2626
<title>Samples Browser | IgniteUI for React | Infragistics</title>
27-
<link href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css" rel="stylesheet" />
28-
<link href="https://static.infragistics.com/xplatform/css/samples/custom-legend.css" rel="stylesheet" type="text/css" />
27+
<link href="https://dl.infragistics.com/x/css/samples/shared.v8.css" rel="stylesheet" />
28+
<link href="https://dl.infragistics.com/x/css/samples/custom-legend.css" rel="stylesheet" type="text/css" />
2929
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" > -->
3030
<!-- <link href="https://fonts.googleapis.com/css?family=Kanit&display=swap" rel="stylesheet"> -->
3131
<!-- <link href='https://fonts.googleapis.com/css?family=Titillium Web' rel='stylesheet'> -->

browser/templates/sample/ReadMe-dev.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can preview example of this {PlatformName} application on CodeSandbox by cli
1515
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
1616
<body>
1717
<a target="_blank" href="{SandboxUrlEdit}" rel="noopener noreferrer">
18-
<img height="40px" style="border-radius: 0.25rem" alt="Edit on CodeSandbox" src="https://static.infragistics.com/xplatform/images/sandbox/code.png"/>
18+
<img height="40px" style="border-radius: 0.25rem" alt="Edit on CodeSandbox" src="https://dl.infragistics.com/x/img/sandbox/code.png"/>
1919
</a>
2020
</body>
2121
</html>
@@ -75,11 +75,11 @@ href="https://codesandbox.io/s/github/IgniteUI/igniteui-react-examples/tree/mast
7575
</a> -->
7676
<!-- <a target="_blank" style="margin-left: 0.5rem"
7777
href="{SandboxUrlView}">
78-
<img height="40px" style="border-radius: 5px" alt="View on CodeSandbox" src="https://static.infragistics.com/xplatform/images/sandbox/view.png"/>
78+
<img height="40px" style="border-radius: 5px" alt="View on CodeSandbox" src="https://dl.infragistics.com/x/img/sandbox/view.png"/>
7979
</a> -->
8080
<!-- <a target="_blank"
8181
href="https://codesandbox.io/embed/github/IgniteUI/igniteui-react-examples/tree/master/samples/maps/geo-map/binding-csv-points?fontsize=14&hidenavigation=1&theme=dark&view=preview">
82-
<img alt="View on CodeSandbox" src="https://static.infragistics.com/xplatform/images/sandbox/view.png"/>
82+
<img alt="View on CodeSandbox" src="https://dl.infragistics.com/x/img/sandbox/view.png"/>
8383
</a>
8484
https://codesandbox.io/embed/react-treemap-overview-rtb45
8585
https://codesandbox.io/static/img/play-codesandbox.svg

browser/templates/shared/src/CountryTreeData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class CountryTreeData {
127127
data.push({ Parent: "Europe", Name: "Channel Islands", Pop: 153876 });
128128
data.push({ Parent: "Europe", Name: "Croatia", Pop: 4403000 });
129129
data.push({ Parent: "Europe", Name: "Cyprus", Pop: 1116564 });
130-
data.push({ Parent: "Europe", Name: "Czech Republic", Pop: 10496088 });
130+
data.push({ Parent: "Europe", Name: "Czechia", Pop: 10496088 });
131131
data.push({ Parent: "Europe", Name: "Denmark", Pop: 5570572 });
132132
data.push({ Parent: "Europe", Name: "Estonia", Pop: 1339928 });
133133
data.push({ Parent: "Europe", Name: "Finland", Pop: 5388272 });

browser/templates/shared/src/DataGridSharedData.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export class DataGridSharedData {
88
}
99

1010
const employees: any[] = [];
11-
let maleCount: number = 0;
12-
let femaleCount: number = 0;
11+
let maleCount: number = 10;
12+
let femaleCount: number = 10;
1313
for (let i = 0; i < count; i++) {
1414
const age: number = Math.round(this.getRandomNumber(20, 40));
1515
const gender: string = this.getRandomGender();
@@ -25,15 +25,15 @@ export class DataGridSharedData {
2525

2626
if (gender === "male") {
2727
maleCount++;
28-
if (maleCount > 26) {
29-
maleCount = 1;
28+
if (maleCount > 39) {
29+
maleCount = 10;
3030
}
3131
photoPath = this.getPhotoMale(maleCount);
3232
}
3333
else {
3434
femaleCount++;
35-
if (femaleCount > 24) {
36-
femaleCount = 1;
35+
if (femaleCount > 39) {
36+
femaleCount = 10;
3737
}
3838
photoPath = this.getPhotoFemale(femaleCount);
3939
}
@@ -98,7 +98,7 @@ export class DataGridSharedData {
9898
"Samsung HDD", "WD HDD", "Seagate HDD", "Intel HDD",
9999
"Samsung SSD", "WD SSD", "Seagate SSD", "Intel SSD",
100100
"Samsung Monitor", "Asus Monitor", "LG Monitor", "HP Monitor" ];
101-
const countries: string[] = ["USA", "UK", "France", "Canada", "Poland", "Japan", "Germany"];
101+
const countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland", "Japan", "Germany"];
102102
const status: string[] = ["Packing", "Shipped", "Delivered"];
103103
const sales: any[] = [];
104104

@@ -135,7 +135,7 @@ export class DataGridSharedData {
135135
const houses: any[] = [];
136136
const property: string[] = [ "Townhouse", "Single", "Condo", "Villa"];
137137
const emails: string[] = [ "estates.com", "remax.com", "zillow.com", "realtor.com", "coldwell.com"];
138-
const countries: string[] = ["USA", "UK", "France", "Canada", "Poland", "Japan", "Germany"];
138+
const countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland", "Japan", "Germany"];
139139

140140
for (let i = 0; i < count; i++) {
141141
const year: number = this.getRandomNumber(1950, 2015);
@@ -180,7 +180,7 @@ export class DataGridSharedData {
180180
private static maleNames: string[] = ["Kyle", "Oscar", "Ralph", "Mike", "Bill", "Frank", "Howard", "Jack", "Larry", "Pete", "Steve", "Vince", "Mark", "Alex", "Max", "Brian", "Chris", "Andrew", "Martin", "Mike", "Steve", "Glenn", "Bruce"];
181181
private static femaleNames: string[] = ["Gina", "Irene", "Katie", "Brenda", "Casey", "Fiona", "Holly", "Kate", "Liz", "Pamela", "Nelly", "Marisa", "Monica", "Anna", "Jessica", "Sofia", "Isabella", "Margo", "Jane", "Audrey", "Sally", "Melanie", "Greta", "Aurora", "Sally"];
182182
private static lastNames: string[] = ["Adams", "Crowley", "Ellis", "Martinez", "Irvine", "Maxwell", "Clark", "Owens", "Rooney", "Lincoln", "Thomas", "Spacey", "MOrgan", "King", "Newton", "Fitzgerald", "Holmes", "Jefferson", "Landry", "Berry", "Perez", "Spencer", "Starr", "Carter", "Edwards", "Stark", "Johnson", "Fitz", "Chief", "Blanc", "Perry", "Stone", "Williams", "Lane", "Jobs", "Adams", "Power", "Tesla"];
183-
private static countries: string[] = ["USA", "UK", "France", "Canada", "Poland"];
183+
private static countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland"];
184184
private static citiesUS: string[] = ["New York", "Los Angeles", "Miami", "San Francisco", "San Diego", "Las Vegas"];
185185
private static citiesUK: string[] = ["London", "Liverpool", "Manchester"];
186186
private static citiesFR: string[] = ["Paris", "Marseille", "Lyon"];
@@ -236,13 +236,13 @@ export class DataGridSharedData {
236236
return this.getRandomItem(this.citiesFR);
237237
} else if (country === "Poland") {
238238
return this.getRandomItem(this.citiesPL);
239-
} else if (country === "USA") {
239+
} else if (country === "United-States") {
240240
return this.getRandomItem(this.citiesUS);
241241
} else if (country === "Japan") {
242242
return this.getRandomItem(this.citiesJP);
243243
} else if (country === "Germany") {
244244
return this.getRandomItem(this.citiesGR);
245-
} else { // if (country === "United Kingdom") {
245+
} else { // if (country === "United-Kingdom") {
246246
return this.getRandomItem(this.citiesUK);
247247
}
248248
}
@@ -263,19 +263,19 @@ export class DataGridSharedData {
263263
}
264264

265265
private static getPhotoMale(id: number): string {
266-
return 'https://static.infragistics.com/xplatform/images/people//GUY' + this.pad(id, 2) + '.png';
266+
return 'https://dl.infragistics.com/x/img/people/men/' + this.pad(id, 2) + '.png';
267267
}
268268

269269
private static getPhotoFemale(id: number): string {
270-
return 'https://static.infragistics.com/xplatform/images/people/GIRL' + this.pad(id, 2) + '.png';
270+
return 'https://dl.infragistics.com/x/img/people/women/' + this.pad(id, 2) + '.png';
271271
}
272272

273273
private static getGenderPhoto(gender: string): string {
274-
return 'https://static.infragistics.com/xplatform/images/genders/' + gender + '.png';
274+
return 'https://dl.infragistics.com/x/img/genders/' + gender + '.png';
275275
}
276276

277277
private static getCountryFlag(country: string): string {
278-
return 'https://static.infragistics.com/xplatform/images/flags/' + country + '.png';
278+
return 'https://dl.infragistics.com/x/img/flags/' + country + '.png';
279279
}
280280

281281
private static pad(num: number, size: number): string{

browser/templates/shared/src/DockManagerSharedData.ts

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export class DockManagerSharedData {
66
}
77

88
const contacts: any[] = [];
9-
let maleCount: number = 0;
10-
let femaleCount: number = 0;
9+
let maleCount: number = 10;
10+
let femaleCount: number = 10;
1111
const emails: string[] = [ "gmail.com", "yahoo.com", "facebook.com", "twitter.com"];
1212

1313
for (let i = 0; i < count; i++) {
@@ -26,17 +26,17 @@ export class DockManagerSharedData {
2626

2727
if (gender === "male") {
2828
maleCount++;
29-
if (maleCount > 26) {
30-
maleCount = 1;
29+
if (maleCount > 39) {
30+
maleCount = 10;
3131
}
32-
photoPath = "https://static.infragistics.com/xplatform/images/people/GUY" + this.pad(maleCount, 2) + ".png";
32+
photoPath = "https://dl.infragistics.com/x/img/people/men/" + this.pad(maleCount, 2) + ".png";
3333
}
3434
else {
3535
femaleCount++;
36-
if (femaleCount > 24) {
37-
femaleCount = 1;
36+
if (femaleCount > 39) {
37+
femaleCount = 10;
3838
}
39-
photoPath = "https://static.infragistics.com/xplatform/images/people/GIRL" + this.pad(femaleCount, 2) + ".png";
39+
photoPath = "https://dl.infragistics.com/x/img/people/women/" + this.pad(femaleCount, 2) + ".png";
4040
}
4141

4242
let person: any = {};
@@ -48,10 +48,10 @@ export class DockManagerSharedData {
4848
person.Location = location.city + ", " + location.country;
4949
person.Latitude = location.lat;
5050
person.Longitude = location.lon;
51-
person.CountryFlag = "https://static.infragistics.com/xplatform/images/flags/" + location.country + ".png";
51+
person.CountryFlag = "https://dl.infragistics.com/x/img/flags/" + location.country + ".png";
5252
person.Email = email;
5353
person.FirstName = firstName;
54-
person.Gender = "https://static.infragistics.com/xplatform/images/genders/" + gender + ".png";
54+
person.Gender = "https://dl.infragistics.com/x/img/genders/" + gender + ".png";
5555
person.Generation = generation;
5656
person.ID = this.pad(i + 1, 5);
5757
person.LastName = lastName;
@@ -124,7 +124,7 @@ export class DockManagerSharedData {
124124
"Samsung HDD", "WD HDD", "Seagate HDD", "Intel HDD",
125125
"Samsung SSD", "WD SSD", "Seagate SSD", "Intel SSD",
126126
"Samsung Monitor", "Asus Monitor", "LG Monitor", "HP Monitor" ];
127-
const countries: string[] = ["USA", "UK", "France", "Canada", "Poland", "Japan", "Germany"];
127+
const countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland", "Japan", "Germany"];
128128

129129
const sales: any[] = [];
130130

@@ -153,7 +153,7 @@ export class DockManagerSharedData {
153153
private static maleNames: string[] = ["Kyle", "Oscar", "Ralph", "Mike", "Bill", "Frank", "Howard", "Jack", "Larry", "Pete", "Steve", "Vince", "Mark", "Alex", "Max", "Brian", "Chris", "Andrew", "Martin", "Mike", "Steve", "Glenn", "Bruce"];
154154
private static femaleNames: string[] = ["Gina", "Irene", "Katie", "Brenda", "Casey", "Fiona", "Holly", "Kate", "Liz", "Pamela", "Nelly", "Marisa", "Monica", "Anna", "Jessica", "Sofia", "Isabella", "Margo", "Jane", "Audrey", "Sally", "Melanie", "Greta", "Aurora", "Sally"];
155155
private static lastNames: string[] = ["Adams", "Crowley", "Ellis", "Martinez", "Irvine", "Maxwell", "Clark", "Owens", "Rooney", "Lincoln", "Thomas", "Spacey", "Betts", "King", "Newton", "Fitzgerald", "Holmes", "Jefferson", "Landry", "Newberry", "Perez", "Spencer", "Starr", "Carter", "Edwards", "Stark", "Johnson", "Fitz", "Chief", "Blanc", "Perry", "Stone", "Williams", "Lane", "Jobs", "Adama", "Power", "Tesla"];
156-
// private static countries: string[] = ["USA", "UK", "France", "Canada", "Poland"];
156+
// private static countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland"];
157157
// private static citiesUS: string[] = ["New York", "Los Angeles", "Miami", "San Francisco", "San Diego", "Las Vegas"];
158158
// private static citiesUK: string[] = ["London", "Liverpool", "Manchester"];
159159
// private static citiesFR: string[] = ["Paris", "Marseille", "Lyon"];
@@ -174,7 +174,7 @@ export class DockManagerSharedData {
174174
{ lat: 51.488, lon: -0.178, country: "UK", city: "London" },
175175
// { lat: 50.837, lon: 4.368, country: "Belgium", city: "Bruxelles" },
176176
{ lat: 50.448, lon: 30.502, country: "Ukraine", city: "Kiev" },
177-
{ lat: 50.106, lon: 14.457, country: "Czech-Republic", city: "Prague" },
177+
{ lat: 50.106, lon: 14.457, country: "Czechia", city: "Prague" },
178178
{ lat: 48.882, lon: 2.433, country: "France", city: "Paris" },
179179
// { lat: 48.202, lon: 16.321, country: "Austria", city: "Vienna" },
180180
// { lat: 47.929, lon: 106.912, country: "Mongolia", city: "Ulaanbaatar" },
@@ -192,10 +192,10 @@ export class DockManagerSharedData {
192192
// { lat: 40.208, lon: 44.533, country: "Armenia", city: "Yerevan" },
193193
{ lat: 39.929, lon: 32.853, country: "Turkey", city: "Ankara" },
194194
{ lat: 39.906, lon: 116.388, country: "China", city: "Beijing" },
195-
{ lat: 39.029, lon: 125.758, country: "Korea-North", city: "Pyongyang" },
195+
{ lat: 39.029, lon: 125.758, country: "North-Korea", city: "Pyongyang" },
196196
{ lat: 38.891, lon: -76.954, country: "USA", city: "Washington" },
197197
{ lat: 37.950, lon: 58.390, country: "Turkmenistan", city: "Ashkhabad" },
198-
{ lat: 37.542, lon: 126.935, country: "Korea-South", city: "Seoul" },
198+
{ lat: 37.542, lon: 126.935, country: "South-Korea", city: "Seoul" },
199199
{ lat: 36.819, lon: 10.166, country: "Tunisia", city: "Tunis" },
200200
{ lat: 35.774, lon: 51.448, country: "Iran", city: "Tehran" },
201201
{ lat: 35.683, lon: 139.809, country: "Japan", city: "Tokyo" },
@@ -275,24 +275,6 @@ export class DockManagerSharedData {
275275
}
276276
}
277277

278-
// private static getRandomCity(country: string): string {
279-
// if (country === "Canada") {
280-
// return this.getRandomItem(this.citiesCA);
281-
// } else if (country === "France") {
282-
// return this.getRandomItem(this.citiesFR);
283-
// } else if (country === "Poland") {
284-
// return this.getRandomItem(this.citiesPL);
285-
// } else if (country === "USA") {
286-
// return this.getRandomItem(this.citiesUS);
287-
// } else if (country === "Japan") {
288-
// return this.getRandomItem(this.citiesJP);
289-
// } else if (country === "Germany") {
290-
// return this.getRandomItem(this.citiesGR);
291-
// } else { // if (country === "United Kingdom") {
292-
// return this.getRandomItem(this.citiesUK);
293-
// }
294-
// }
295-
296278
private static getRandomStreet(): string {
297279
const num = Math.round(this.getRandomNumber(100, 300)).toString();
298280
const road = this.getRandomItem(this.roadNames);
@@ -308,22 +290,6 @@ export class DockManagerSharedData {
308290
return new Date(year, month, day);
309291
}
310292

311-
// private static getPhotoMale(id: number): string {
312-
// return require('./assets/GUY' + this.pad(id, 2) + '.png');
313-
// }
314-
315-
// private static getPhotoFemale(id: number): string {
316-
// return require('./assets/GIRL' + this.pad(id, 2) + '.png');
317-
// }
318-
319-
// private static getGenderPhoto(gender: string): string {
320-
// return require('./genders/' + gender + '.png');
321-
// }
322-
323-
// private static getCountryFlag(country: string): string {
324-
// return require('./flags/' + country + '.png');
325-
// }
326-
327293
private static pad(num: number, size: number): string{
328294
let s = num + "";
329295
while (s.length < size) {

browser/templates/shared/src/LiveFinancialData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Regions: any[] = [
1313
{
1414
"Name": "Europe",
1515
"Countries": [ "Russia", "Germany", "France", "United Kingdom", "Italy", "Spain", "Poland", "Romania", "Netherlands", "Belgium", "Greece",
16-
"Portugal", "Czech Republic", "Hungary", "Sweden", "Austria", "Switzerland", "Bulgaria", "Denmark", "Finland", "Slovakia", "Norway",
16+
"Portugal", "Czechia", "Hungary", "Sweden", "Austria", "Switzerland", "Bulgaria", "Denmark", "Finland", "Slovakia", "Norway",
1717
"Ireland", "Croatia", "Slovenia", "Estonia", "Iceland",]
1818
},
1919
{

browser/templates/shared/src/Products.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class Products {
1010
"Samsung SSD", "WD SSD", "Seagate SSD", "Intel SSD", "Asus SSD",
1111
"Samsung Monitor", "Asus Monitor", "LG Monitor", "HP Monitor" ];
1212

13-
public static countries: string[] = ["USA", "UK", "France", "Canada", "Poland",
13+
public static countries: string[] = ["United-States", "United-Kingdom", "France", "Canada", "Poland",
1414
"Denmark", "Croatia", "Australia", "Seychelles",
1515
"Sweden", "Germany", "Japan", "Ireland",
1616
"Barbados", "Jamaica", "Cuba", "Spain",];
@@ -85,7 +85,7 @@ export class Products {
8585
}
8686

8787
public static getCountryFlag(country: string): string {
88-
const flag = 'https://static.infragistics.com/xplatform/images/flags/' + country + '.png'
88+
const flag = 'https://dl.infragistics.com/x/img/flags/' + country + '.png'
8989
return flag;
9090
}
9191

browser/templates/shared/src/SampleComboData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class SampleComboData {
5555
{ country: "Cuba", pop: 11253665, id: "Cuba", continent: "Central_America" },
5656
{ country: "Curacao", pop: 145619, id: "Curacao", continent: "Central_America" },
5757
{ country: "Cyprus", pop: 1116564, id: "Cyprus", continent: "Europe" },
58-
{ country: "Czech Republic", pop: 10496088, id: "Czech_Republic", continent: "Europe" },
58+
{ country: "Czechia", pop: 10496088, id: "Czech_Republic", continent: "Europe" },
5959
{ country: "Denmark", pop: 5570572, id: "Denmark", continent: "Europe" },
6060
{ country: "Djibouti", pop: 905564, id: "Djibouti", continent: "Africa" },
6161
{ country: "Dominica", pop: 67675, id: "Dominica", continent: "Central_America" },

browser/templates/shared/src/SampleScatterStats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class SampleScatterStats {
164164
data.push(new Country("CUB",11270957,0,1780,9,"Cuba","North America"));
165165
data.push(new Country("CUW",152056,0,0,138,"Curacao","North America"));
166166
data.push(new Country("CYP",1128994,26352,37812,94,"Cyprus","Europe"));
167-
data.push(new Country("CZE",10510785,18690,8260,123,"Czech Republic","Europe"));
167+
data.push(new Country("CZE",10510785,18690,8260,123,"Czechia","Europe"));
168168
data.push(new Country("DNK",5591572,56364,101084,116,"Denmark","Europe"));
169169
data.push(new Country("DJI",859652,1575,573,20,"Djibouti","Africa"));
170170
data.push(new Country("DMA",71684,6913,3000,148,"Dominica","North America"));

0 commit comments

Comments
 (0)