Skip to content
Snippets Groups Projects
Select Git revision
  • 43af6d371cfdad419f32e564aedf07f63e7cb428
  • master default protected
  • json-output
  • nostr
  • 48-error-base-58-requirement-is-violated
  • no-rename
  • hugo/tx-comments
  • poka/dev
  • hugo/dev
  • tuxmain/mail
  • 0.4.3-RC2
  • 0.4.3-RC1
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.17
  • 0.2.16
  • 0.2.15
  • 0.2.14
  • 0.2.13
  • 0.2.12
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
30 results

oneshot.rs

Blame
  • platform.js 12.07 KiB
    
    angular.module('cesium.platform', ['ngIdle', 'cesium.config', 'cesium.services'])
    
      // Translation i18n
      .config(function ($translateProvider, csConfig) {
        'ngInject';
    
        $translateProvider
          .uniformLanguageTag('bcp47')
          .determinePreferredLanguage()
          // Cela fait bugger les placeholder (pb d'affichage des accents en FR)
          //.useSanitizeValueStrategy('sanitize')
          .useSanitizeValueStrategy(null)
          .fallbackLanguage([csConfig.fallbackLanguage ? csConfig.fallbackLanguage : 'en'])
          .useLoaderCache(true);
      })
    
      .config(function($httpProvider, csConfig) {
        'ngInject';
    
        // Set default timeout
        $httpProvider.defaults.timeout = !!csConfig.timeout ? csConfig.timeout : 300000 /* default timeout */;
    
        //Enable cross domain calls
        $httpProvider.defaults.useXDomain = true;
    
        //Remove the header used to identify ajax call  that would prevent CORS from working
        delete $httpProvider.defaults.headers.common['X-Requested-With'];
    
        // removeIf(no-device)
        // Group http request response processing (better performance when many request)
        $httpProvider.useApplyAsync(true);
        // endRemoveIf(no-device)
      })
    
    
      .config(function($compileProvider, csConfig) {
        'ngInject';
    
        $compileProvider.debugInfoEnabled(!!csConfig.debug);
      })
    
      .config(function($animateProvider) {
        'ngInject';
    
        $animateProvider.classNameFilter( /\banimate-/ );
      })
    
      // Configure cache (used by HTTP requests) default max age
      .config(function (CacheFactoryProvider, csConfig) {
        'ngInject';
        angular.extend(CacheFactoryProvider.defaults, { maxAge: csConfig.cacheTimeMs || 60 * 1000 /*1min*/});
      })
    
      // Configure screen size detection
      .config(function(screenmatchConfigProvider) {
        'ngInject';
    
        screenmatchConfigProvider.config.rules = 'bootstrap';
      })
    
      .config(function($ionicConfigProvider) {
        'ngInject';
    
        // JS scrolling need for iOs (see http://blog.ionic.io/native-scrolling-in-ionic-a-tale-in-rhyme/)
        var enableJsScrolling = ionic.Platform.isIOS();
        $ionicConfigProvider.scrolling.jsScrolling(enableJsScrolling);
    
        // Configure the view cache
        $ionicConfigProvider.views.maxCache(5);