Files
stf-DeviceFarmer/res/app/app.js
Gunther Brunner e27e17d699 APPSTATE refactoring:
- Make index.html cacheable by being stateless
- Improve compression (base64 doesn't gzip well)
- Remove base64 encoding/decoding step
- Make AppState injectable so it can be unit tested
- Ready to remove the global leakage
2014-08-22 15:04:16 +09:00

35 lines
830 B
JavaScript

require.ensure([], function (require) {
require('angular')
require('angular-route')
require('angular-touch')
require('ng-file-upload')
angular.module('app', [
'ngRoute',
'ngTouch',
require('gettext').name,
'angularFileUpload',
require('angular-hotkeys').name,
require('./layout').name,
require('./device-list').name,
require('./control-panes').name,
require('./menu').name,
require('./settings').name,
require('./help').name,
require('./../common/lang').name
])
.config(function ($routeProvider, $locationProvider) {
$locationProvider.hashPrefix('!');
$routeProvider
.otherwise({
redirectTo: '/devices'
})
})
.config(function (hotkeysProvider) {
hotkeysProvider.templateTitle = 'Keyboard Shortcuts:'
})
})