- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring: ControlPanel is now extracted, which simplifies the main…
… controller. This refactoring is prep work for #22, #24, #30 and pretty much everything that's related to customising Build Monitor on client-by-client basis.
- v1.12+build.201809061734
- v1.12+build.201809041621
- v1.12+build.201805070054
- v1.12+build.201708172343
- v1.12+build.201704111018
- v1.11+build.201701152243
- v1.10+build.201611041949
- v1.10+build.201610041454
- v1.10+build.201608030223
- v1.9+build.201606131328
- v1.9+build.201606052339
- v1.9+build.201605021413
- v1.8+build.201601112328
- v1.8+build.201601052013
- v1.7+build.172
- v1.6+build.164
- v1.6+build.163
- v1.6+build.162
- v1.6+build.159
- v1.6+build.156
- v1.6+build.150
- v1.6+build.149
- v1.6+build.142
- v1.6+build.140
- v1.6+build.138
- v1.6+build.135
- v1.6+build.132
- v1.5+build.123
- v1.5+build.120
- v1.5+build.119
- v1.5+build.118
- v1.5+build.117
- v1.4+build.102
- v1.3+build.72
- v1.3+build.71
- v1.3+build.70
- v1.3+build.68
- 1.14-961.v676e38a_7a_248
- 1.14-948.va_a_a_5a_7eb_1f37
- 1.14-947.vfec2cf655fe2
- 1.14-943.vf82794123d4e
- 1.14-942.v18a_5ca_625a_91
- 1.14-925.v95b_9089a_4c7f
- 1.14-908.vd91a_186b_9121
- 1.14-883.vf620a_44eb_ec1
- 1.14-876.v2162064db_a_93
- 1.14-860.vd06ef2568b_3f
- 1.14-826.vb_a_c11536174d
- 1.14-745.ve2023a_305f40
- 1.14-744.v35fd6fa_a_26b_2
- 1.14-740.v1df20e5c64b_b_
- 1.14-717.v3efcdffe8d58
- 1.14-702.vf34cc4398955
- 1.14-681.vd6817317a_2b_7
- 1.14-667.vfb_ef30539e07
- 1.14-653.va_1c684a_30b_ff
- 1.14-651.v429b_16b_db_60e
- 1.14-650.vb_43f505305f6
Showing
6 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...rces/com/smartcodeltd/jenkinsci/plugins/buildmonitor/BuildMonitorView/main-jobViews.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...onitor/BuildMonitorView/main-config.jelly → ...itor/BuildMonitorView/main-settings.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
'use strict'; | ||
|
||
angular. | ||
module('buildMonitor', [ 'buildMonitor.controllers', 'uiSlider', 'jenkins' ]). | ||
run(function($rootScope, notifyUser) { | ||
module('buildMonitor', [ 'buildMonitor.controllers', 'buildMonitor.settings' ]). | ||
run(['$rootScope', 'notifyUser', function($rootScope, notifyUser) { | ||
$rootScope.settings = { }; | ||
|
||
if (! Modernizr.flexbox) { | ||
notifyUser.aboutInsufficientSupportOfCSS3('flexbox'); | ||
} | ||
}); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
angular. | ||
module('buildMonitor.settings', [ 'buildMonitor.services', 'uiSlider']). | ||
|
||
controller('controlPanel', ['$scope', 'cookieJar', | ||
function ($scope, cookieJar) { | ||
'use strict'; | ||
|
||
$scope.settings.fontSize = cookieJar.get('fontSize', 1); | ||
$scope.settings.numberOfColumns = cookieJar.get('numberOfColumns', 2); | ||
|
||
angular.forEach($scope.settings, function(value, name) { | ||
$scope.$watch('settings.' + name, function(currentValue) { | ||
cookieJar.put(name, currentValue); | ||
}); | ||
}); | ||
}]); |