retrieve if needed
This commit is contained in:
parent
c9fa22b093
commit
43f95c52a0
2 changed files with 12 additions and 11 deletions
|
@ -27,8 +27,8 @@ module.exports = function(grunt) {
|
||||||
build: {
|
build: {
|
||||||
src: [
|
src: [
|
||||||
'../static/lib/**/*.js',
|
'../static/lib/**/*.js',
|
||||||
'../static/js/**/*.js',
|
|
||||||
'../static/build/*.js',
|
'../static/build/*.js',
|
||||||
|
'../static/js/**/*.js',
|
||||||
'../static/dist/template-cache.js',
|
'../static/dist/template-cache.js',
|
||||||
'!../static/js/**/*.spec.js'
|
'!../static/js/**/*.spec.js'
|
||||||
],
|
],
|
||||||
|
|
|
@ -3,29 +3,29 @@ import * as Raven from 'raven-js';
|
||||||
|
|
||||||
quayConfig.$inject = [
|
quayConfig.$inject = [
|
||||||
'$provide',
|
'$provide',
|
||||||
|
'$injector',
|
||||||
'INJECTED_CONFIG',
|
'INJECTED_CONFIG',
|
||||||
'cfpLoadingBarProvider',
|
'cfpLoadingBarProvider',
|
||||||
'$tooltipProvider',
|
'$tooltipProvider',
|
||||||
'$compileProvider',
|
'$compileProvider',
|
||||||
'RestangularProvider',
|
'RestangularProvider',
|
||||||
'$analyticsProvider',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export function quayConfig(
|
export function quayConfig(
|
||||||
$provide,
|
$provide: ng.auto.IProvideService,
|
||||||
INJECTED_CONFIG,
|
$injector: ng.auto.IInjectorService,
|
||||||
cfpLoadingBarProvider,
|
INJECTED_CONFIG: any,
|
||||||
$tooltipProvider,
|
cfpLoadingBarProvider: any,
|
||||||
$compileProvider,
|
$tooltipProvider: any,
|
||||||
RestangularProvider,
|
$compileProvider: ng.ICompileProvider,
|
||||||
$analyticsProvider) {
|
RestangularProvider: any) {
|
||||||
cfpLoadingBarProvider.includeSpinner = false;
|
cfpLoadingBarProvider.includeSpinner = false;
|
||||||
|
|
||||||
// decorate the tooltip getter
|
// decorate the tooltip getter
|
||||||
var tooltipFactory = $tooltipProvider.$get[$tooltipProvider.$get.length - 1];
|
var tooltipFactory: any = $tooltipProvider.$get[$tooltipProvider.$get.length - 1];
|
||||||
$tooltipProvider.$get[$tooltipProvider.$get.length - 1] = function($window: ng.IWindowService) {
|
$tooltipProvider.$get[$tooltipProvider.$get.length - 1] = function($window: ng.IWindowService) {
|
||||||
if ('ontouchstart' in $window) {
|
if ('ontouchstart' in $window) {
|
||||||
var existing = tooltipFactory.apply(this, arguments);
|
var existing: any = tooltipFactory.apply(this, arguments);
|
||||||
return function(element) {
|
return function(element) {
|
||||||
// Note: We only disable bs-tooltip's themselves. $tooltip is used for other things
|
// Note: We only disable bs-tooltip's themselves. $tooltip is used for other things
|
||||||
// (such as the datepicker), so we need to be specific when canceling it.
|
// (such as the datepicker), so we need to be specific when canceling it.
|
||||||
|
@ -53,6 +53,7 @@ export function quayConfig(
|
||||||
|
|
||||||
// Configure analytics.
|
// Configure analytics.
|
||||||
if (INJECTED_CONFIG && INJECTED_CONFIG.MIXPANEL_KEY) {
|
if (INJECTED_CONFIG && INJECTED_CONFIG.MIXPANEL_KEY) {
|
||||||
|
let $analyticsProvider: any = $injector.get('$analyticsProvider');
|
||||||
$analyticsProvider.virtualPageviews(true);
|
$analyticsProvider.virtualPageviews(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue