sw2at-ui 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e0a8b35a11c5588f17d1349f77c8466f67bbdd2
4
- data.tar.gz: 68a958aaf317ad17653e8585576c3722151881b7
3
+ metadata.gz: 70519508dad88b8731b62a8b4b369fcd8a712c8a
4
+ data.tar.gz: b138100f5c3bdab3d07b9b84c4ac7c35f22deda0
5
5
  SHA512:
6
- metadata.gz: a7b6b22de0aec8cd9500b0db6103d8883409661c74a9b53f09eb03ca25e308fef10aa33614b4bb6afaf0088fdcd75479285c0d4da7fa1d4de13a464b65a42de5
7
- data.tar.gz: 8912bc850c1431d80af7accd5efb393c160de3e21c90af9b4914ae2bcbe9e39d94c793634ae5ab8e5bbfab4d41c442462f1e8fe531080c4d3cfb4c9f70820b7c
6
+ metadata.gz: 298136f656f4323fc40c107944b7f4eb4ceb68452f47f991912aa1e20a6b2cc5dbdc570daa838e1b197b13117eca2ebf9f91926c1ffafcfd4d1a5b935cfa74ae
7
+ data.tar.gz: aafd9f51075ee11e9c0417009545c1faaff7146bf86fa5453d31b69fec2bd8907c8dba4f74071307779ddccaaf08090c5ab1725add2a86ce3350cfa69ffe2496
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
@@ -6,7 +6,7 @@
6
6
  #= require_tree ./directives
7
7
 
8
8
  window.Swat =
9
- debug: true#false
9
+ debug: false
10
10
  log: (message)->
11
11
  return unless window.Swat.debug
12
12
  console.log(message)
@@ -1,13 +1,17 @@
1
1
  angular.module("SWAT").controller "ConfigurationCtrl", ($rootScope, $scope, $state, $stateParams, $timeout
2
2
  ConfigurationService) ->
3
3
  $scope.init = ->
4
- $timeout($scope.reloadConfig, 1000)
5
4
  $rootScope.globalControl.setReloader($scope.reloadConfig)
5
+ #$timeout($rootScope.globalControl.reload, 1000)
6
+ $rootScope.globalControl.reload()
7
+
6
8
 
7
9
  $scope.reloadConfig = ->
8
10
  $scope.configPromise = ConfigurationService.get()
9
11
  $scope.configPromise.$promise.then((resp)->
10
12
  $scope.config = resp
11
13
  )
14
+ $scope.configPromise
15
+
12
16
 
13
17
  $scope.init()
@@ -7,9 +7,8 @@ angular.module("SWAT").controller "ConsoleCtrl", ($rootScope, $scope, $state, $s
7
7
  user: { name: '' }
8
8
  period: { name: '' }
9
9
  revision: { name: '' }
10
-
11
- $scope.loadConsoleData()
12
10
  $rootScope.globalControl.setReloader($scope.loadConsoleData)
11
+ $rootScope.globalControl.reload()
13
12
 
14
13
 
15
14
  $scope.loadConsoleData = ->
@@ -17,6 +16,7 @@ angular.module("SWAT").controller "ConsoleCtrl", ($rootScope, $scope, $state, $s
17
16
  $scope.consoleDataPromise.$promise.then((resp)->
18
17
  $scope.consoleData = resp
19
18
  )
19
+ $scope.consoleDataPromise
20
20
 
21
21
  $scope.sum = (data)->
22
22
  _.sum(_.values(data))
@@ -3,14 +3,15 @@ angular.module("SWAT").controller "RevisionCtrl", ($rootScope, $scope, $state, $
3
3
 
4
4
  $scope.init = ->
5
5
  $scope.currentState = $state.current.name
6
- $scope.reloadData()
7
6
  $rootScope.globalControl.setReloader($scope.reloadData)
7
+ $rootScope.globalControl.reload()
8
8
 
9
9
  $scope.reloadData = ->
10
10
  return if $scope.revisionPromise && !$scope.revisionPromise.$resolved
11
11
  params = { branch: decodeURI($stateParams.branch), user: $stateParams.user, time: $stateParams.time }
12
12
  $scope.revisionPromise = RevisionService.get(params)
13
13
  $scope.revisionPromise.$promise.then($scope.initTabs)
14
+ $scope.revisionPromise
14
15
 
15
16
  $scope.initTabs = (revision)->
16
17
  $scope.revision = revision
@@ -2,14 +2,15 @@ angular.module("SWAT").controller "RevisionsCtrl", ($rootScope, $scope, $state,
2
2
 
3
3
  $scope.init = ->
4
4
  window.Swat.log('Revisions Controller initalized!')
5
- $scope.initRevisions()
6
5
  $rootScope.globalControl.setReloader($scope.initRevisions)
6
+ $rootScope.globalControl.reload()
7
7
 
8
8
  $scope.initRevisions = ->
9
9
  $scope.revisionsPromise = RevisionService.query()
10
10
  $scope.revisionsPromise.$promise.then((resp)->
11
11
  $scope.revisions = resp
12
12
  )
13
+ $scope.revisionsPromise
13
14
 
14
15
  $scope.testsProgress = (revision)->
15
16
 
@@ -4,14 +4,15 @@ angular.module("SWAT").controller "SummaryCtrl", ($rootScope, $scope, $state, $s
4
4
  $scope.init = ->
5
5
  $scope.currentState = $state.current.name
6
6
  $scope.summary = {}
7
- $scope.reloadData()
8
7
  $rootScope.globalControl.setReloader($scope.reloadData)
8
+ $rootScope.globalControl.reload()
9
9
 
10
10
  $scope.reloadData = ->
11
- return if $scope.revisionPromise && !$scope.revisionPromise.$resolved
11
+ return $scope.revisionPromise if $scope.revisionPromise && !$scope.revisionPromise.$resolved
12
12
  params = { branch: $stateParams.branch, user: $stateParams.user, time: $stateParams.time }
13
13
  $scope.revisionPromise = RevisionService.get(params)
14
14
  $scope.revisionPromise.$promise.then($scope.initInformation)
15
+ $scope.revisionPromise
15
16
 
16
17
  $scope.initInformation = (revision)->
17
18
  $scope.revision = revision
@@ -24,5 +24,8 @@ angular.module("SWAT").factory "GlobalControl", ($cookies)->
24
24
  @reloader = func
25
25
 
26
26
  reload: ->
27
- @reloader()
27
+ @promise = @reloader()
28
+
29
+ isLoading: ->
30
+ @promise && @promise.$promise && !@promise.$resolved
28
31
 
@@ -42,6 +42,7 @@
42
42
  border-top: 1px solid rgba(190, 190, 190, 0.28);
43
43
  padding: 12px;
44
44
  background-color: rgb(236, 236, 236);
45
+ height: 53px;
45
46
 
46
47
  .controls {
47
48
  text-align: right;
@@ -67,6 +68,8 @@
67
68
  display: inline-block;
68
69
  float: left;
69
70
  margin-left: 16px;
71
+ margin-top: -10px;
72
+ margin-bottom: 2px;
70
73
  }
71
74
 
72
75
  }
@@ -46,7 +46,12 @@
46
46
  margin-top: -3px;
47
47
  padding: 7px;
48
48
  line-height: 25px;
49
- &:after { content: 'F5' }
49
+ background-image: url("/assets/swat/preloader-black-bg-static.png");
50
+ background-size: 39px;
51
+ &.loading {
52
+ background-image: url("/assets/swat/preloader-black-bg.gif");
53
+ }
54
+ //&:after { content: 'F5' }
50
55
  }
51
56
  }
52
57
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Application Colors
4
4
 
5
- $greenMain: greenyellow;
5
+ $greenMain: #ADFF2F;
6
6
 
7
7
  $blackColor: black;
8
8
  $whiteColor: white;
@@ -1,5 +1,4 @@
1
1
  #configuration
2
- span.loader ng-class="{ true: 'invisible' }[(configPromise && configPromise.$resolved)]"
3
2
  h1.title Configuration
4
3
  .configuration-info-container.info-widget-container ng-if="config"
5
4
  #configuration-info.info-widget
@@ -1,5 +1,4 @@
1
1
  #console
2
- span.loader ng-class="{ true: 'invisible' }[(consoleDataPromise && consoleDataPromise.$resolved)]"
3
2
  h1.title Console
4
3
  .info-widget-container
5
4
  .info-widget ng-if="(consoleDataPromise && consoleDataPromise.$resolved)"
@@ -1,5 +1,4 @@
1
1
  #revisions-container
2
- span.loader ng-class="{ true: 'invisible' }[(revisionsPromise && revisionsPromise.$resolved)]"
3
2
  h2.revisions-header Revisions
4
3
  .controls
5
4
  .list ng-if="revisions && (revisions.length > 0)"
@@ -3,7 +3,6 @@ h1.revision
3
3
 
4
4
  span.revision-status ng-class="revision.data.status.name"
5
5
  | {{ ' '+revision.data.status.label }}
6
- span.loader ng-class="{ true: 'invisible' }[(revisionPromise && revisionPromise.$resolved)]"
7
6
  .controls
8
7
  button.btn.revisions ui-sref="revisions" title="See all revisions list" ng-disabled="(currentState == 'revisions')"
9
8
  | Revisions
@@ -7,4 +7,9 @@
7
7
  .to
8
8
  .A
9
9
  .T
10
- .control.refresh ng-click="globalControl.reload()" title="Refresh"
10
+ .control.refresh[
11
+ title="Refresh"
12
+ ng-click="globalControl.reload()"
13
+ ng-class="{'loading': globalControl.isLoading()}"
14
+ ng-disabled="globalControl.isLoading()"
15
+ ]
data/sw2at-ui.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: sw2at-ui 0.0.15 ruby lib
5
+ # stub: sw2at-ui 0.0.16 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "sw2at-ui"
9
- s.version = "0.0.15"
9
+ s.version = "0.0.16"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Vitaly Tarasenko"]
14
- s.date = "2015-07-06"
14
+ s.date = "2015-07-26"
15
15
  s.description = " Control your tests, run them parallel. Check statuses of your revisions online. Share results to all team members. "
16
16
  s.email = "vetal.tarasenko@gmail.com"
17
17
  s.executables = ["rails"]
@@ -27,6 +27,9 @@ Gem::Specification.new do |s|
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "app/assets/images/swat/loading-green.gif",
30
+ "app/assets/images/swat/preloader-black-bg-static.png",
31
+ "app/assets/images/swat/preloader-black-bg.gif",
32
+ "app/assets/images/swat/preloader-trans-bg.gif",
30
33
  "app/assets/javascripts/swat/.bowerrc",
31
34
  "app/assets/javascripts/swat/app/app.coffee",
32
35
  "app/assets/javascripts/swat/app/controllers/global_nav.coffee",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sw2at-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Tarasenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -237,6 +237,9 @@ files:
237
237
  - Rakefile
238
238
  - VERSION
239
239
  - app/assets/images/swat/loading-green.gif
240
+ - app/assets/images/swat/preloader-black-bg-static.png
241
+ - app/assets/images/swat/preloader-black-bg.gif
242
+ - app/assets/images/swat/preloader-trans-bg.gif
240
243
  - app/assets/javascripts/swat/.bowerrc
241
244
  - app/assets/javascripts/swat/app/app.coffee
242
245
  - app/assets/javascripts/swat/app/controllers/global_nav.coffee