summaryrefslogtreecommitdiffstats
path: root/afb-client/app/Frontend/app.js
blob: e11c266bf9eb40ed867e5bfe0b4e0adfdbea04ec (plain)
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

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Prep
(function() {
  'use strict';
  
  function  ParseQueryString () {
      var qd = {};
      location.search.substr(1).split("&").forEach(function(item) {
          var k = item.split("=")[0];
          var v = decodeURIComponent(item.split("=")[1]); 
          if (k in qd) qd[k].push(v); else qd[k] = [v];
      });
      return qd;
  }

  angular.module('@@APPNAME@@', [ // Warning: Appname should fit with gulpfile.js & index.html
    'ui.router',
    'ngAnimate',

    //foundation
    'foundation',
    'foundation.dynamicRouting',
    'foundation.dynamicRouting.animations',
    
    // external components
    'ui-notification',
    
    // Application Components
    'AppConfig',
    'JQueryEmu',
    'SampleHomeModule',
    'UploadFiles',
    'LinkButton',
    'TokenRefresh',
    'RangeSlider',
    'ModalNotification'
  ])
    .value ('urlquery', ParseQueryString())
    .config(config)
    .run(run)
  ;

  config.$inject = ['$urlRouterProvider', '$locationProvider'];
  
  function config($urlProvider, $locationProvider, AppConfig) {
    $urlProvider.otherwise('/sample-home');

    // https://docs.angularjs.org/error/$location/nobase
    $locationProvider.html5Mode(true).hashPrefix('!');
    
  }

  function run() {
    FastClick.attach(document.body);
  }

console.log ("opa=@@APPNAME@@ Loaded");
})();