mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 19:00:09 -04:00
* 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
19 lines
678 B
JavaScript
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;
|