Skip to content

Commit 591b9d5

Browse files
authored
Merge pull request #1813 from kripton/0.10-UpdateNewWebUI
New WebUI: Update angular and angular-route and add workaround to be compatible
2 parents 6029a8e + 825b72e commit 591b9d5

9 files changed

Lines changed: 381 additions & 270 deletions

File tree

javascript/new-src/bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"license": "GPL",
88
"private": true,
99
"dependencies": {
10-
"angular": "~1.3.14",
10+
"angular": "~1.8.3",
1111
"bootstrap": "~3.3.1",
12-
"angular-route": "~1.3.14"
12+
"angular-route": "~1.8.3"
1313
},
1414
"exportsOverride": {
1515
"angular": {

javascript/new-src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"license": "GPL-2.0+",
44
"repository": "OpenLightingProject/ola",
55
"devDependencies": {
6-
"olp-javascript-style": "OpenLightingProject/javascript-style",
76
"grunt": "~0.4.5",
87
"grunt-bower-task": "^0.4.0",
98
"grunt-contrib-cssmin": "^0.11.0",
109
"grunt-contrib-jshint": "^1.1.0",
1110
"grunt-contrib-uglify": "^0.7.0",
1211
"grunt-contrib-watch": "^0.6.1",
13-
"grunt-jscs": "^1.8.0"
12+
"grunt-jscs": "^1.8.0",
13+
"olp-javascript-style": "OpenLightingProject/javascript-style"
1414
}
1515
}

javascript/new-src/src/app.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
/* global angular */
2121
var ola = angular.module('olaApp', ['ngRoute']);
2222

23+
// AngularJS 1.6 now uses an '!' as the default hashPrefix, breaking
24+
// our routes. Following lines revert the default to the previous empty
25+
// string.
26+
// See https://docs.angularjs.org/guide/migration#commit-aa077e8
27+
ola.config(['$locationProvider', function($locationProvider) {
28+
'use strict';
29+
$locationProvider.hashPrefix('');
30+
}]);
31+
2332
ola.config(['$routeProvider',
2433
function($routeProvider) {
2534
'use strict';

olad/www/new/css/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)