]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/polyfills.ts
3368646d33aa0eac03fe9c3ac01e47f55bf878da
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / polyfills.ts
1 /***************************************************************************************************
2 * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
3 */
4 import '@angular/localize/init';
5 /**
6 * This file includes polyfills needed by Angular and is loaded before the app.
7 * You can add your own extra polyfills to this file.
8 *
9 * This file is divided into 2 sections:
10 * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
11 * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
12 * file.
13 *
14 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
15 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
16 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
17 *
18 * Learn more in https://angular.io/guide/browser-support
19 */
20
21 /***************************************************************************************************
22 * BROWSER POLYFILLS
23 */
24
25 /** IE10 and IE11 requires the following for NgClass support on SVG elements */
26 // import 'classlist.js'; // Run `npm install --save classlist.js`.
27
28 /** IE10 and IE11 requires the following for the Reflect API. */
29 // import 'core-js/es6/reflect';
30
31 /**
32 * Required to support Web Animations `@angular/platform-browser/animations`.
33 * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
34 **/
35 // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
36
37 /***************************************************************************************************
38 * Zone JS is required by Angular itself.
39 */
40 import 'zone.js/dist/zone'; // Included with Angular CLI.
41
42 /***************************************************************************************************
43 * APPLICATION IMPORTS
44 */
45
46 /**
47 * Date, currency, decimal and percent pipes.
48 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
49 */
50 // import 'intl'; // Run `npm install --save intl`.
51 /**
52 * Need to import at least one locale-data with intl.
53 */
54 // import 'intl/locale-data/jsonp/en';