SO Monitoring UI
[so.git] / so-monitoring / so-monitoring-ui / src / main / frontend / src / polyfills.ts
diff --git a/so-monitoring/so-monitoring-ui/src/main/frontend/src/polyfills.ts b/so-monitoring/so-monitoring-ui/src/main/frontend/src/polyfills.ts
new file mode 100644 (file)
index 0000000..ba93849
--- /dev/null
@@ -0,0 +1,80 @@
+/**\r
+ * This file includes polyfills needed by Angular and is loaded before the app.\r
+ * You can add your own extra polyfills to this file.\r
+ *\r
+ * This file is divided into 2 sections:\r
+ *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.\r
+ *   2. Application imports. Files imported after ZoneJS that should be loaded before your main\r
+ *      file.\r
+ *\r
+ * The current setup is for so-called "evergreen" browsers; the last versions of browsers that\r
+ * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),\r
+ * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.\r
+ *\r
+ * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html\r
+ */\r
+\r
+/***************************************************************************************************\r
+ * BROWSER POLYFILLS\r
+ */\r
+\r
+/** IE9, IE10 and IE11 requires all of the following polyfills. **/\r
+// import 'core-js/es6/symbol';\r
+// import 'core-js/es6/object';\r
+// import 'core-js/es6/function';\r
+// import 'core-js/es6/parse-int';\r
+// import 'core-js/es6/parse-float';\r
+// import 'core-js/es6/number';\r
+// import 'core-js/es6/math';\r
+// import 'core-js/es6/string';\r
+// import 'core-js/es6/date';\r
+// import 'core-js/es6/array';\r
+// import 'core-js/es6/regexp';\r
+// import 'core-js/es6/map';\r
+// import 'core-js/es6/weak-map';\r
+// import 'core-js/es6/set';\r
+\r
+/** IE10 and IE11 requires the following for NgClass support on SVG elements */\r
+// import 'classlist.js';  // Run `npm install --save classlist.js`.\r
+\r
+/** IE10 and IE11 requires the following for the Reflect API. */\r
+// import 'core-js/es6/reflect';\r
+\r
+\r
+/** Evergreen browsers require these. **/\r
+// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.\r
+import 'core-js/es7/reflect';\r
+\r
+\r
+/**\r
+ * Web Animations `@angular/platform-browser/animations`\r
+ * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.\r
+ * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).\r
+ **/\r
+// import 'web-animations-js';  // Run `npm install --save web-animations-js`.\r
+\r
+/**\r
+ * By default, zone.js will patch all possible macroTask and DomEvents\r
+ * user can disable parts of macroTask/DomEvents patch by setting following flags\r
+ */\r
+\r
+ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame\r
+ // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick\r
+ // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames\r
+\r
+ /*\r
+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js\r
+ * with the following flag, it will bypass `zone.js` patch for IE/Edge\r
+ */\r
+// (window as any).__Zone_enable_cross_context_check = true;\r
+\r
+/***************************************************************************************************\r
+ * Zone JS is required by default for Angular itself.\r
+ */\r
+import 'zone.js/dist/zone';  // Included with Angular CLI.\r
+\r
+\r
+\r
+/***************************************************************************************************\r
+ * APPLICATION IMPORTS\r
+ */\r