File size: 1,042 Bytes
1abfaca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | (function () {
'use strict';
angular
.module('bomVizinhoWeb')
.config(config)
.config(configTranslations)
.config(configSatellizer);
/** @ngInject */
function config($logProvider, toastrConfig) {
// Enable log
$logProvider.debugEnabled(true);
// Set options third-party lib
toastrConfig.allowHtml = true;
toastrConfig.timeOut = 3000;
toastrConfig.positionClass = 'toast-top-right';
toastrConfig.preventDuplicates = true;
toastrConfig.progressBar = true;
}
/** @ngInject */
function configSatellizer($authProvider) {
$authProvider.facebook({
clientId: '1691283711115807'
});
}
function configTranslations($translateProvider) {
$translateProvider.useLocalStorage();
$translateProvider.preferredLanguage('pt-PT');
$translateProvider.useSanitizeValueStrategy('sanitize');
$translateProvider.useMissingTranslationHandlerLog();
$translateProvider.useStaticFilesLoader({
prefix: 'app/languages/',
suffix: '.json'
});
}
})();
|