2017-03-01 16:06:15 +03:00
|
|
|
// Webpack entry point for perf.html
|
|
|
|
|
2018-02-28 18:15:55 +03:00
|
|
|
// Vendor Styles
|
2019-02-22 09:48:12 +03:00
|
|
|
import 'angular/angular-csp.css';
|
2018-03-12 20:52:01 +03:00
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
2017-03-01 16:06:15 +03:00
|
|
|
|
|
|
|
// Vendor JS
|
2018-03-12 20:52:01 +03:00
|
|
|
import 'bootstrap';
|
2019-02-05 11:44:49 +03:00
|
|
|
import { library, dom, config } from '@fortawesome/fontawesome-svg-core';
|
|
|
|
import {
|
|
|
|
faArrowAltCircleRight,
|
|
|
|
faClock,
|
|
|
|
faFileCode,
|
|
|
|
faFileWord,
|
|
|
|
faStar as faStarRegular,
|
|
|
|
} from '@fortawesome/free-regular-svg-icons';
|
|
|
|
import {
|
|
|
|
faAngleDoubleLeft,
|
|
|
|
faAngleDoubleRight,
|
|
|
|
faBan,
|
|
|
|
faBug,
|
|
|
|
faCheck,
|
|
|
|
faChevronLeft,
|
|
|
|
faChevronRight,
|
|
|
|
faCode,
|
|
|
|
faExclamationCircle,
|
|
|
|
faExclamationTriangle,
|
|
|
|
faLevelDownAlt,
|
|
|
|
faPlus,
|
|
|
|
faQuestionCircle,
|
|
|
|
faSpinner,
|
|
|
|
faStar as faStarSolid,
|
|
|
|
faUser,
|
|
|
|
} from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import { faGithub } from '@fortawesome/free-brands-svg-icons';
|
|
|
|
|
2018-01-03 18:40:02 +03:00
|
|
|
// The official 'flot' NPM package is out of date, so we're using 'jquery.flot'
|
|
|
|
// instead, which is identical to https://github.com/flot/flot
|
2018-02-28 20:26:15 +03:00
|
|
|
import 'jquery.flot';
|
|
|
|
import 'jquery.flot/jquery.flot.time';
|
|
|
|
import 'jquery.flot/jquery.flot.selection';
|
2017-03-01 16:06:15 +03:00
|
|
|
|
2018-02-28 18:15:55 +03:00
|
|
|
// Perf Styles
|
2018-02-28 20:26:15 +03:00
|
|
|
import './css/treeherder-global.css';
|
|
|
|
import './css/treeherder-navbar.css';
|
|
|
|
import './css/perf.css';
|
|
|
|
import './css/treeherder-loading-overlay.css';
|
2018-02-28 18:15:55 +03:00
|
|
|
|
2018-02-27 21:37:50 +03:00
|
|
|
// Bootstrap the Angular modules against which everything will be registered
|
2018-02-28 20:26:15 +03:00
|
|
|
import './js/perf';
|
2018-02-27 21:37:50 +03:00
|
|
|
|
2017-03-01 16:06:15 +03:00
|
|
|
// Perf JS
|
2018-02-28 20:26:15 +03:00
|
|
|
import './js/filters';
|
|
|
|
import './js/controllers/perf/graphs';
|
|
|
|
import './js/components/loading';
|
|
|
|
import './js/perfapp';
|
2019-03-26 04:54:53 +03:00
|
|
|
import './perfherder/compare/CompareSelectorView';
|
|
|
|
import './perfherder/compare/CompareView';
|
|
|
|
import './perfherder/compare/CompareSubtestDistributionView';
|
|
|
|
import './perfherder/compare/CompareSubtestsView';
|
2019-06-03 21:53:44 +03:00
|
|
|
import './perfherder/alerts/AlertTable';
|
|
|
|
import './perfherder/alerts/AlertsView';
|
2019-06-16 03:16:32 +03:00
|
|
|
import './perfherder/graphs/TestDataModal';
|
2019-06-28 03:42:21 +03:00
|
|
|
import './perfherder/graphs/SelectedTestsContainer';
|
2019-02-05 11:44:49 +03:00
|
|
|
|
|
|
|
config.showMissingIcons = true;
|
|
|
|
|
|
|
|
// TODO: Remove these as Perfherder components switch to using react-fontawesome.
|
|
|
|
library.add(
|
|
|
|
faAngleDoubleLeft,
|
|
|
|
faAngleDoubleRight,
|
|
|
|
faArrowAltCircleRight,
|
|
|
|
faBan,
|
|
|
|
faBug,
|
|
|
|
faCheck,
|
|
|
|
faChevronLeft,
|
|
|
|
faChevronRight,
|
|
|
|
faClock,
|
|
|
|
faCode,
|
|
|
|
faExclamationCircle,
|
|
|
|
faExclamationTriangle,
|
|
|
|
faFileCode,
|
|
|
|
faFileWord,
|
|
|
|
faGithub,
|
|
|
|
faLevelDownAlt,
|
|
|
|
faPlus,
|
|
|
|
faQuestionCircle,
|
|
|
|
faSpinner,
|
|
|
|
faStarRegular,
|
|
|
|
faStarSolid,
|
|
|
|
faUser,
|
|
|
|
);
|
|
|
|
|
|
|
|
// Replace any existing <i> or <span> tags with <svg> and set up a MutationObserver
|
|
|
|
// to continue doing this as the DOM changes. Remove once using react-fontawesome.
|
|
|
|
dom.watch();
|