fleetio_spark 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spark/components/header/_trial-status.scss +20 -2
- data/app/helpers/spark/menu_helper.rb +8 -1
- data/app/helpers/spark/nav_menu_helper.rb +3 -34
- data/lib/fleetio_spark/version.rb +1 -1
- data/public/{spark-0.1.2.css → spark-0.1.3.css} +10 -4
- data/public/spark-0.1.3.css.gz +0 -0
- data/public/{spark-0.1.2.js → spark-0.1.3.js} +0 -0
- data/public/{spark-0.1.2.js.gz → spark-0.1.3.js.gz} +0 -0
- metadata +6 -6
- data/public/spark-0.1.2.css.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c18dcc464d1439c17ff81fc63ab162a3d46a65a31ee29b3d35a5153f78cd62a
|
4
|
+
data.tar.gz: a2ab3f019a1593984cd3cf75c3e5909bb003bfee24b8ae674619870a54a7811a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d491dd735a52618802360677852ebb1b8453b80e2424ec93967eff29120fea258a34fa20c9af3466599acb7ece875d785c1d0be0c2be780b6c605f143b0c0e
|
7
|
+
data.tar.gz: 79abf70c16ac38871f3d1e27b476c38fbf3455ecd6c54d244b408e6d028f677e5d682792794ec8b340f6b6b157089274acb02c58ee80836f9072ec8900c70733
|
@@ -33,11 +33,29 @@
|
|
33
33
|
|
34
34
|
&.trial-ending-soon {
|
35
35
|
color: $fl-yellow-600;
|
36
|
-
|
36
|
+
|
37
|
+
.trial-status-link {
|
38
|
+
&,
|
39
|
+
&:hover,
|
40
|
+
&:focus {
|
41
|
+
color: $fl-white;
|
42
|
+
background-color: $fl-yellow-600;
|
43
|
+
border-color: transparent;
|
44
|
+
}
|
45
|
+
}
|
37
46
|
}
|
38
47
|
|
39
48
|
&.trial-ended {
|
40
49
|
color: $fl-red-600;
|
41
|
-
|
50
|
+
|
51
|
+
.trial-status-link {
|
52
|
+
&,
|
53
|
+
&:hover,
|
54
|
+
&:focus {
|
55
|
+
color: $fl-white;
|
56
|
+
background-color: $fl-red-600;
|
57
|
+
border-color: transparent;
|
58
|
+
}
|
59
|
+
}
|
42
60
|
}
|
43
61
|
}
|
@@ -49,13 +49,20 @@ module Spark
|
|
49
49
|
options = add_class( options, config[:base_class] + "-group" )
|
50
50
|
options['role'] = 'group'
|
51
51
|
|
52
|
+
content = capture( &block )
|
53
|
+
return if content.empty? ||
|
54
|
+
( options.include?('if') && !options.delete('if') ) ||
|
55
|
+
( options.include?('unless') && !!options.delete('unless') )
|
56
|
+
|
52
57
|
concat header( title ) if title
|
53
58
|
content_tag( config[:group_tag], options, &block )
|
54
59
|
end
|
55
60
|
|
56
61
|
def item( content=nil, url=nil, options=nil, &block )
|
57
62
|
content, url, options = parse_item_args( content, url, options, &block)
|
58
|
-
|
63
|
+
|
64
|
+
return if ( options.include?('if') && !options.delete('if') ) ||
|
65
|
+
( options.include?('unless') && !!options.delete('unless') )
|
59
66
|
|
60
67
|
if url
|
61
68
|
content_tag( config[:item_tag], role: 'none', class: config[:base_class] + "-item-wrapper" ) do
|
@@ -44,7 +44,9 @@ module Spark
|
|
44
44
|
def item_tree( name, options={}, &block )
|
45
45
|
content, url, options = parse_item_args( "#", options, &block)
|
46
46
|
|
47
|
-
return
|
47
|
+
return if content.empty? ||
|
48
|
+
( options.include?('if') && !options.delete('if') ) ||
|
49
|
+
( options.include?('unless') && !!options.delete('unless') )
|
48
50
|
|
49
51
|
node = Spark::Helpers.dasherize( name.strip.downcase ).gsub('-','_')
|
50
52
|
active = !!(options.delete( 'active' ) || content.match(/item-active/))
|
@@ -71,39 +73,6 @@ module Spark
|
|
71
73
|
end
|
72
74
|
end
|
73
75
|
|
74
|
-
#def group( name, options={}, &block )
|
75
|
-
#options = options.deep_stringify_keys
|
76
|
-
#content = capture( &block )
|
77
|
-
#active = !!(options.delete( 'active' ) || content.match(/nav-item-active/))
|
78
|
-
#new = is_new?( options.delete( 'new' ) ) || content.match(/nav-item-new/)
|
79
|
-
|
80
|
-
#icon = options.delete('icon')
|
81
|
-
#node = Spark::Helpers.dasherize( name.strip.downcase ).gsub('-','_')
|
82
|
-
|
83
|
-
#item_options = {
|
84
|
-
#role: 'treeitem',
|
85
|
-
#'aria-expanded': active || is_expanded?(node),
|
86
|
-
#'data-node': node,
|
87
|
-
#active: active,
|
88
|
-
#new: new,
|
89
|
-
#icon: icon,
|
90
|
-
#icon_options: { preset: 'icon_l' }
|
91
|
-
#}
|
92
|
-
|
93
|
-
#item('#', item_options ) {
|
94
|
-
#concat use_svg( icon, preset: 'icon_l' ) if icon
|
95
|
-
#concat name
|
96
|
-
#if new
|
97
|
-
#concat " "
|
98
|
-
#concat content_tag( :span, class: 'nav-item-new' ) { "New" }
|
99
|
-
#end
|
100
|
-
#concat use_svg( 'chevron-down', height: 9, class: 'expand-tree-icon' )
|
101
|
-
|
102
|
-
#concat content_tag( :ul, role: 'group', class: 'nav-tree-group', &block )
|
103
|
-
#}
|
104
|
-
|
105
|
-
#end
|
106
|
-
|
107
76
|
private
|
108
77
|
|
109
78
|
def _cookie
|
@@ -1240,11 +1240,17 @@ input:checked + .check-switch-panel {
|
|
1240
1240
|
display: flex;
|
1241
1241
|
margin-right: 16px; } }
|
1242
1242
|
.trial-status.trial-ending-soon {
|
1243
|
-
color: #F2AA2A;
|
1244
|
-
|
1243
|
+
color: #F2AA2A; }
|
1244
|
+
.trial-status.trial-ending-soon .trial-status-link, .trial-status.trial-ending-soon .trial-status-link:hover, .trial-status.trial-ending-soon .trial-status-link:focus {
|
1245
|
+
color: #FFFFFF;
|
1246
|
+
background-color: #F2AA2A;
|
1247
|
+
border-color: transparent; }
|
1245
1248
|
.trial-status.trial-ended {
|
1246
|
-
color: #EA352B;
|
1247
|
-
|
1249
|
+
color: #EA352B; }
|
1250
|
+
.trial-status.trial-ended .trial-status-link, .trial-status.trial-ended .trial-status-link:hover, .trial-status.trial-ended .trial-status-link:focus {
|
1251
|
+
color: #FFFFFF;
|
1252
|
+
background-color: #EA352B;
|
1253
|
+
border-color: transparent; }
|
1248
1254
|
|
1249
1255
|
.search-panel {
|
1250
1256
|
width: 100%;
|
Binary file
|
File without changes
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fleetio_spark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -180,10 +180,10 @@ files:
|
|
180
180
|
- lib/fleetio_spark.rb
|
181
181
|
- lib/fleetio_spark/helper.rb
|
182
182
|
- lib/fleetio_spark/version.rb
|
183
|
-
- public/spark-0.1.
|
184
|
-
- public/spark-0.1.
|
185
|
-
- public/spark-0.1.
|
186
|
-
- public/spark-0.1.
|
183
|
+
- public/spark-0.1.3.css
|
184
|
+
- public/spark-0.1.3.css.gz
|
185
|
+
- public/spark-0.1.3.js
|
186
|
+
- public/spark-0.1.3.js.gz
|
187
187
|
homepage:
|
188
188
|
licenses:
|
189
189
|
- MIT
|
data/public/spark-0.1.2.css.gz
DELETED
Binary file
|