Sha256: a79fd5156a39d9308091d86cbcc1ae029260e92216ef0fc541920be442988a8b

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

@DashboardApp = angular.module("Dashboard", [ 'ngResource',
                                              'ngRoute',
                                              'ngLocale',
                                              'ngSanitize',
                                              'btford.socket-io'])


@DashboardApp.factory "Dashboard", ($resource) ->
  $resource("/data/:id", {id: "@id"})

@DashboardApp.config [
  "$routeProvider"
  ($routeProvider) ->
    $routeProvider
    .when('/',
      templateUrl: 'views/home'
      controller:  'HomeController'
    ).when('/overview',
      templateUrl: 'views/overview'
      controller:  'OverviewController'
    ).when("/population",
      templateUrl: "views/population/home"
      controller: "PopulationController"
    ).when("/population/general",
      templateUrl: "views/population/general"
      controller: "PopulationController"
    ).when("/population/speciation",
      templateUrl: "views/population/speciation"
      controller: "PopulationController"
    ).when('/critters',
      templateUrl: 'views/critters'
      controller:  'CrittersController'
    ).otherwise redirectTo: "/"
  ]

Array::toDict = (key) ->
  @reduce ( (dict, obj) ->
      dict[ obj[key] ] = obj if obj[key]?
      dict
    ), {}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyneat_dashboard-0.4.1 app/js/dashboard.coffee
rubyneat_dashboard-0.4.0.alpha.6 app/js/dashboard.coffee
rubyneat_dashboard-0.4.0.alpha.4.pre.1 app/js/dashboard.coffee
rubyneat_dashboard-0.4.0.alpha.4 app/js/dashboard.coffee