mirror of
https://github.com/getredash/redash.git
synced 2026-05-11 00:00:57 -04:00
* Refine Auth service: remove dead code and fix race condition * Export services in CommonJS style * Refine Users, Events and OfflineListener services * Refactor Notifications service - rewrite to CommonJS * Replace Angular service injection with imports in React components * Fix Footer tests * Events service -> recordEvent function * CR1
24 lines
793 B
JavaScript
24 lines
793 B
JavaScript
import ngModule from '@/config';
|
|
|
|
ngModule.config(($locationProvider, $compileProvider, uiSelectConfig, toastrConfig) => {
|
|
$compileProvider.debugInfoEnabled(false);
|
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|data|tel|sms|mailto):/);
|
|
$locationProvider.html5Mode(true);
|
|
uiSelectConfig.theme = 'bootstrap';
|
|
|
|
Object.assign(toastrConfig, {
|
|
positionClass: 'toast-bottom-right',
|
|
timeOut: 2000,
|
|
});
|
|
});
|
|
|
|
// Update ui-select's template to use Font-Awesome instead of glyphicon.
|
|
ngModule.run(($templateCache) => {
|
|
const templateName = 'bootstrap/match.tpl.html';
|
|
let template = $templateCache.get(templateName);
|
|
template = template.replace('glyphicon glyphicon-remove', 'fa fa-remove');
|
|
$templateCache.put(templateName, template);
|
|
});
|
|
|
|
export default ngModule;
|