Files
redash/client/app/index.js
Arik Fraimovich 56d3be2248 Prettier all the Javascript code & GitHub Action (#4433)
* Prettier all the JS files

* Add GitHub Action to autoformat code pushed to master

* Fix eslint violation due to formatting.

* Remove GitHub actions for styling

* Add restyled.io config
2019-12-11 17:05:38 +02:00

19 lines
678 B
JavaScript

import ngModule from "@/config";
ngModule.config(($locationProvider, $compileProvider, uiSelectConfig) => {
$compileProvider.debugInfoEnabled(false);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|data|tel|sms|mailto):/);
$locationProvider.html5Mode(true);
uiSelectConfig.theme = "bootstrap";
});
// 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;