Skip to content

Commit 252e553

Browse files
authored
Merge branch 'vnext' into apetrov/add-roundness-sample-vnext
2 parents 6545172 + c97e3e2 commit 252e553

File tree

9 files changed

+11
-172
lines changed

9 files changed

+11
-172
lines changed

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
]
4141
},
4242
"browser": "src/main.ts",
43-
"server": "src/main.server.ts",
43+
"server": "src/main.server.ts",
4444
"outputMode": "static",
4545
"ssr": {
4646
"entry": "src/server.ts"

gulpfile.js

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -63,66 +63,6 @@ gulp.task("overwrite-package-json", (done) => {
6363
done();
6464
});
6565

66-
const createPrependerdLobStructure = (cb) => {
67-
const folders = [
68-
'./dist/app-lob/samples',
69-
'./dist/app-lob/samples/grid',
70-
'./dist/app-lob/samples/tree-grid',
71-
'./dist/app-lob/samples/grid-finjs-dock-manager',
72-
'./dist/app-lob/samples/hierarchical-grid',
73-
'./dist/app-lob/grid',
74-
'./dist/app-lob/tree-grid',
75-
'./dist/app-lob/grid-finjs-dock-manager',
76-
'./dist/app-lob/hierarchical-grid'
77-
];
78-
folders.forEach(dir => {
79-
if (!fs.existsSync(dir)) {
80-
fs.mkdirSync(dir);
81-
}
82-
});
83-
cb();
84-
}
85-
86-
const addPrerenderedLobPages = (cb) => {
87-
const { metadata } = require('./projects/app-lob/src/app/metadata');
88-
const indexFilePath = path.resolve(__dirname, './', 'dist/app-lob/browser', 'index.html');
89-
90-
// read in the index.html file
91-
fs.readFile(indexFilePath, 'utf8', function (err, data) {
92-
if (err) {
93-
return console.error(err);
94-
}
95-
96-
metadata.forEach(({ url, title, description, og_url, folder }) => {
97-
let result = data;
98-
result = result.replace(/\$OG_TITLE/g, title);
99-
result = result.replace(/\$OG_DESCRIPTION/g, description);
100-
result = result.replace(/\$OG_URL/g, og_url);
101-
102-
let filename = url.substring(1).replace(/\//g, '-');
103-
if (filename.length) {
104-
filename = filename + '.html';
105-
} else {
106-
filename = 'index.html';
107-
}
108-
109-
fs.writeFile(path.resolve(__dirname, './', './dist/app-lob/samples/' + folder, filename), result, (err) => {
110-
if (err) {
111-
console.log(err);
112-
}
113-
});
114-
fs.writeFile(path.resolve(__dirname, './', './dist/app-lob/' + folder, filename), result, (err) => {
115-
if (err) {
116-
console.log(err);
117-
}
118-
});
119-
})
120-
})
121-
cb();
122-
}
123-
124-
exports.prerenderPages = gulp.series(createPrependerdLobStructure, addPrerenderedLobPages);
125-
12666
gulp.task("watch-live-editing", gulp.series("generate-live-editing", () => {
12767
gulp.watch(["./src/**/*.*", "!./src/assets/**", "./live-editing/**/*.*", "package.json"], function () {
12868
Object.keys(require.cache).forEach(function (key) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"watch-live-editing": "gulp watch-live-editing",
1717
"sass-js-compile-check": "gulp sass-js-compile-check",
1818
"build": "gulp generate-live-editing && gulp overwrite-package-json && ng build --configuration production",
19-
"build:app-lob": "gulp generate-live-editing --appDv=true && gulp overwrite-package-json && ng build app-lob --configuration production && gulp prerenderPages",
19+
"build:app-lob": "gulp generate-live-editing --appDv=true && gulp overwrite-package-json && ng build app-lob --configuration production",
2020
"build:app-crm": "gulp generate-live-editing --appCrm=true && gulp overwrite-package-json && ng build app-crm --configuration production",
2121
"test": "ng test",
2222
"lint": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng lint",
@@ -27,7 +27,7 @@
2727
"start:app-lob:live-editing": "gulp generate-live-editing --appDv=true && node node_modules/@angular/cli/bin/ng serve app-lob -o",
2828
"lint:app-crm": "ng lint app-crm",
2929
"build-ci": "gulp overwrite-package-json && ng build --configuration production",
30-
"build-ci:app-lob": "gulp overwrite-package-json && ng build app-lob --configuration production && gulp prerenderPages",
30+
"build-ci:app-lob": "gulp overwrite-package-json && ng build app-lob --configuration production",
3131
"build-ci:app-crm": "gulp overwrite-package-json && ng build app-crm --configuration production",
3232
"repositoryfyAngularDemos": "gulp repositoryfyAngularDemos",
3333
"repositoryfyAngularDemos:prod": "gulp repositoryfyAngularDemos --configuration production",

projects/app-lob/src/app/app.routes.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export const serverRoutes: ServerRoute[] = [
1010
renderMode: RenderMode.Client // TODO: Fails with Prerender
1111
},
1212
{
13-
path: 'grid-finjs-dock-manager',
13+
path: 'grid-finjs-dock-manager/**',
1414
renderMode: RenderMode.Client // TODO: Fails with Prerender
1515
},
1616
{
17-
path: 'samples/grid-finjs-dock-manager',
17+
path: 'samples/grid-finjs-dock-manager/**',
1818
renderMode: RenderMode.Client // TODO: Fails with Prerender
1919
},
2020
{

projects/app-lob/src/app/metadata.js

Lines changed: 0 additions & 101 deletions
This file was deleted.

src/app/app.routes.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const serverRoutes: ServerRoute[] = [
103103
},
104104
{
105105
path: 'samples/grid/**',
106-
renderMode: RenderMode.Prerender // TODO: Fails with Prerender
106+
renderMode: RenderMode.Client // TODO: Fails with Prerender
107107
},
108108
{
109109
path: '**',
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
<igx-combo #combo class="combo" [data]="lData" [displayKey]="'field'" [valueKey]="'field'"
33
placeholder="Location(s)" searchPlaceholder="Search..." [allowCustomValues]="customValues"
4-
(addition)="handleAddition($event)" [filteringOptions]="{ filterable }"
4+
(addition)="handleAddition($event)" [disableFiltering]="disableFiltering"
55
[showSearchCaseIcon]="showSearchCaseIcon" [itemsMaxHeight]="255" [disabled]="disabled">
66
</igx-combo>
77

8-
<igx-switch [(ngModel)]="filterable">Enable Filtering</igx-switch><br />
9-
<igx-switch [disabled]="!filterable" [(ngModel)]="showSearchCaseIcon">Show Case-sensitive Icon</igx-switch><br />
8+
<igx-switch [(ngModel)]="disableFiltering">Disable Filtering</igx-switch><br />
9+
<igx-switch [disabled]="disableFiltering" [(ngModel)]="showSearchCaseIcon">Show Case-sensitive Icon</igx-switch><br />
1010
<igx-switch [(ngModel)]="customValues">Allow Custom Values</igx-switch><br />
1111
<igx-switch (change)="enableGroups($event)">Enable Grouping</igx-switch><br />
1212
<igx-switch [(ngModel)]="disabled">Disable Combo</igx-switch>

src/app/lists/combo/combo-features/combo-features.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class ComboFeaturesComponent implements OnInit{
1414
// eslint-disable-next-line @typescript-eslint/naming-convention
1515
public GROUP_KEY = 'region';
1616
public lData: any[];
17-
public filterable = true;
17+
public disableFiltering = false;
1818
public showSearchCaseIcon = false;
1919
public customValues = true;
2020
public disabled = false;

web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
2727
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
2828
</conditions>
29-
<action type="Rewrite" url="/angular-demos/" />
29+
<action type="Rewrite" url="/angular-demos/index.csr.html" />
3030
</rule>
3131
<rule name="Angular Root Redirect" enabled="true" stopProcessing="true">
3232
<match url="^/?$" />

0 commit comments

Comments
 (0)