Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 55fd171

Browse files
author
Paul Gray
committed
Fixing some config options
1 parent bcf4ad0 commit 55fd171

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

Gruntfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ module.exports = function (grunt) {
4040
},{
4141
pattern: new RegExp(/\/styles\/index.css/g),
4242
replacement: '/styles/index.sass'
43+
},{
44+
pattern: new RegExp(/\$ROOT_URL\$/g),
45+
replacement: '\'/\''
46+
},{
47+
pattern: new RegExp(/\$API_KEY\$/g),
48+
replacement: 'undefined'
4349
}]
4450
}
4551
},
@@ -53,10 +59,10 @@ module.exports = function (grunt) {
5359
options: {
5460
replacements: [{
5561
pattern: new RegExp(/\$ROOT_URL\$/g),
56-
replacement: grunt.option('host') || 'http://localhost:8080'
62+
replacement: grunt.option('host') ? "\'" + grunt.option('host') + "\'" : '\'http://localhost:8080\''
5763
},{
5864
pattern: new RegExp(/\$API_KEY\$/g),
59-
replacement: grunt.option('apiKey') || 'secret'
65+
replacement: grunt.option('apiKey') ? "\'" + grunt.option('apiKey') + "\'" : '\'secret\''
6066
}]
6167
}
6268
}

app/components/ui/progBar/progBar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import template from './progBar.html';
77
var ANIMATION_DUR = 500; //ms
88
var FRAMERATE = 25; //one frame per x ms
99

10-
export default ['$timeout', '$interval', function($timeout, $interval){
10+
export default ['$timeout', '$interval', function($timeout, $interval) {
1111
return {
1212
restrict:'E',
1313
replace:true,
@@ -20,17 +20,17 @@ export default ['$timeout', '$interval', function($timeout, $interval){
2020
link: function(scope, element){
2121
//scope.width
2222
var dur = (scope.animationLength || ANIMATION_DUR) / 1000;
23-
23+
2424
scope.intervalPercentage = 0;
25-
25+
2626
scope.progBarStyle = {
2727
transition: 'width ' + dur + 's ease-out',
2828
};
29-
29+
3030
$timeout(function(){
3131
scope.progBarStyle.width = scope.value + '%';
3232
});
33-
33+
3434
var elapsedTime = 0;
3535
var then = new Date();
3636
var interval = $interval(function(){
@@ -44,7 +44,7 @@ export default ['$timeout', '$interval', function($timeout, $interval){
4444
}
4545
then = now;
4646
}, FRAMERATE);
47-
47+
4848
}
4949
};
5050
}];

app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
</style>
1616
<script>
1717
window.lo_api_config = {
18-
root: '$ROOT_URL$',
19-
apiKey: '$API_KEY$'
18+
root: $ROOT_URL$,
19+
apiKey: $API_KEY$
2020
};
2121
window.lo_static_url = '/assets/';
2222
</script>

app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ app.config(['$httpProvider', function($httpProvider) {
3131
}]);
3232

3333
app.config(['$stateProvider', '$urlRouterProvider', ($stateProvider, $urlRouterProvider) => {
34-
$urlRouterProvider.otherwise("/transcript");
34+
$urlRouterProvider.otherwise("/");
3535
//
3636
// Now set up the states
3737
$stateProvider

0 commit comments

Comments
 (0)