Skip to content

Commit 56bd563

Browse files
committed
Refactor
1 parent b30ace7 commit 56bd563

24 files changed

+74
-592
lines changed

Diff for: Grid/FinJS/src/app/error-routing/error-routing.module.ts

-13
This file was deleted.

Diff for: Grid/FinJS/src/app/error-routing/error/global-error-handler.service.ts

-27
This file was deleted.

Diff for: Grid/FinJS/src/app/error-routing/error/uncaught-error.component.ts

-6
This file was deleted.

Diff for: Grid/FinJS/src/app/error-routing/not-found/not-found.component.ts

-6
This file was deleted.

Diff for: Grid/FinJS/src/assets/.gitkeep

Whitespace-only changes.

Diff for: Grid/FinJS/src/assets/GitHub/github.svg

-1
This file was deleted.

Diff for: Grid/FinJS/src/assets/indigo-design.svg

-183
This file was deleted.

Diff for: Grid/FinJS/src/assets/responsive.gif

-251 KB
Binary file not shown.

Diff for: Grid/FinJS/src/environments/environment.prod.ts

-3
This file was deleted.

Diff for: Grid/FinJS/src/environments/environment.ts

-16
This file was deleted.

Diff for: Grid/FinJS/src/main.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
import './polyfills';
2+
13
import { enableProdMode } from '@angular/core';
24
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
35

46
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
67

7-
if (environment.production) {
8-
enableProdMode();
9-
}
8+
platformBrowserDynamic().bootstrapModule(AppModule).then(ref => {
9+
// Ensure Angular destroys itself on hot reloads.
10+
if (window['ngRef']) {
11+
window['ngRef'].destroy();
12+
}
13+
window['ngRef'] = ref;
1014

11-
platformBrowserDynamic().bootstrapModule(AppModule)
12-
.catch(err => console.error(err));
15+
// Otherwise, log the boot error
16+
}).catch(err => console.error(err));

Diff for: Grid/FinJS/src/polyfills.ts

+27-35
Original file line numberDiff line numberDiff line change
@@ -15,59 +15,51 @@
1515
*/
1616

1717
/***************************************************************************************************
18-
* BROWSER POLYFILLS
19-
*/
18+
* BROWSER POLYFILLS
19+
*/
20+
21+
// import 'core-js/es7/object';
2022

2123
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
2224
// import 'classlist.js'; // Run `npm install --save classlist.js`.
2325

24-
/**
25-
* Web Animations `@angular/platform-browser/animations`
26-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28-
*/
29-
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
26+
/** IE10 and IE11 requires the following for the Reflect API. */
27+
// import "core-js/es6/reflect";
3028

31-
/**
32-
* By default, zone.js will patch all possible macroTask and DomEvents
33-
* user can disable parts of macroTask/DomEvents patch by setting following flags
34-
* because those flags need to be set before `zone.js` being loaded, and webpack
35-
* will put import in the top of bundle, so user need to create a separate file
36-
* in this directory (for example: zone-flags.ts), and put the following flags
37-
* into that file, and then add the following code before importing zone.js.
38-
* import './zone-flags.ts';
39-
*
40-
* The flags allowed in zone-flags.ts are listed here.
41-
*
42-
* The following flags will work for all browsers.
43-
*
44-
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
45-
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
46-
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
47-
*
48-
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
49-
* with the following flag, it will bypass `zone.js` patch for IE/Edge
50-
*
51-
* (window as any).__Zone_enable_cross_context_check = true;
52-
*
29+
/* Evergreen browsers require these. */
30+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
31+
// import "core-js/es7/reflect";
32+
33+
/*
34+
* Required to support Web Animations `@angular/platform-browser/animations`.
35+
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
5336
*/
37+
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5438

5539
/***************************************************************************************************
56-
* Zone JS is required by default for Angular itself.
40+
* Zone JS is required by Angular itself.
5741
*/
42+
import 'hammerjs/hammer';
5843
import 'zone.js/dist/zone'; // Included with Angular CLI.
5944

45+
/***************************************************************************************************
46+
* @angular/animations polyfill
47+
*/
48+
if (!Element.prototype.matches) {
49+
Element.prototype.matches = (Element.prototype as any).msMatchesSelector;
50+
}
6051

6152
/***************************************************************************************************
6253
* APPLICATION IMPORTS
6354
*/
6455

65-
/**
66-
* Date formatting for igxCalendarComponent.
56+
/**
57+
* Date, currency, decimal and percent pipes.
6758
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
6859
*/
69-
// import 'intl'; // Run `npm install --save intl`.
60+
// import "intl"; // Run `npm install --save intl`.
61+
// import "intl/locale-data/jsonp/de";
7062
/**
7163
* Need to import at least one locale-data with intl.
7264
*/
73-
// import 'intl/locale-data/jsonp/en';
65+
// import "intl/locale-data/jsonp/en";

Diff for: TreeGrid/FinJS/src/app/error-routing/error-routing.module.ts

-13
This file was deleted.

0 commit comments

Comments
 (0)