glib-web 0.5.81 → 0.5.82
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10f17a267280748f96fbdba46d76cd4edd1cb818d9da92c377a394e92fa5bcf8
|
4
|
+
data.tar.gz: 4abd9e1e1ae1ee191d26461629dea9ef30d5abd4c2a59a181071dab37ae0ad19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 982c859db558abc31c8fd3162f4011e4e6f99d69d3e061cf4af39cdb1da326ff545639be739815394459c916864b58852e995dae0bfc309de6c7519a24c2ece8
|
7
|
+
data.tar.gz: 4012bb2d1a0fe749918f8f7bb54f26f2800a50811426c9cc053164fb9f77492bac954c88e142669e7626e700278d5895d716d9a30df2b07a941c21dcea2b94a9
|
@@ -75,7 +75,7 @@ module Glib
|
|
75
75
|
|
76
76
|
### View definitions
|
77
77
|
|
78
|
-
class AbstractText < View
|
78
|
+
class AbstractText < View
|
79
79
|
string :textAlign
|
80
80
|
text :text
|
81
81
|
color :color
|
@@ -235,6 +235,12 @@ module Glib
|
|
235
235
|
bool :tick
|
236
236
|
end
|
237
237
|
|
238
|
+
class ProgressBar < View
|
239
|
+
float :value
|
240
|
+
color :color
|
241
|
+
color :backgroundColor
|
242
|
+
bool :reversed
|
243
|
+
end
|
238
244
|
end
|
239
245
|
end
|
240
246
|
end
|
@@ -10,30 +10,35 @@ json_ui_page json do |page|
|
|
10
10
|
end
|
11
11
|
|
12
12
|
section.rows builder: ->(template) do
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
action.windows_open url: json_ui_garage_url(path: 'views/controls')
|
18
|
-
end
|
19
|
-
template.thumbnail title: 'Images', onClick: ->(action) do
|
20
|
-
action.windows_open url: json_ui_garage_url(path: 'views/images')
|
21
|
-
end
|
22
|
-
template.thumbnail title: 'Charts', onClick: ->(action) do
|
23
|
-
action.windows_open url: json_ui_garage_url(path: 'views/charts')
|
24
|
-
end
|
25
|
-
template.thumbnail title: 'Banners', onClick: ->(action) do
|
26
|
-
action.windows_open url: json_ui_garage_url(path: 'views/banners')
|
27
|
-
end
|
28
|
-
template.thumbnail title: 'Maps', onClick: ->(action) do
|
29
|
-
action.windows_open url: json_ui_garage_url(path: 'views/maps')
|
30
|
-
end
|
31
|
-
template.thumbnail title: 'Misc', onClick: ->(action) do
|
32
|
-
action.windows_open url: json_ui_garage_url(path: 'views/misc')
|
33
|
-
end
|
34
|
-
template.thumbnail title: 'Icons', onClick: ->(action) do
|
35
|
-
action.windows_open url: json_ui_garage_url(path: 'views/icons')
|
13
|
+
['texts', 'controls', 'images', 'charts', 'banners', 'maps', 'misc', 'icons', 'progress'].each do |component|
|
14
|
+
template.thumbnail title: component.humanize, onClick: ->(action) do
|
15
|
+
action.windows_open url: json_ui_garage_url(path: "views/#{component}")
|
16
|
+
end
|
36
17
|
end
|
18
|
+
# template.thumbnail title: 'Texts', onClick: ->(action) do
|
19
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/texts')
|
20
|
+
# end
|
21
|
+
# template.thumbnail title: 'Controls', onClick: ->(action) do
|
22
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/controls')
|
23
|
+
# end
|
24
|
+
# template.thumbnail title: 'Images', onClick: ->(action) do
|
25
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/images')
|
26
|
+
# end
|
27
|
+
# template.thumbnail title: 'Charts', onClick: ->(action) do
|
28
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/charts')
|
29
|
+
# end
|
30
|
+
# template.thumbnail title: 'Banners', onClick: ->(action) do
|
31
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/banners')
|
32
|
+
# end
|
33
|
+
# template.thumbnail title: 'Maps', onClick: ->(action) do
|
34
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/maps')
|
35
|
+
# end
|
36
|
+
# template.thumbnail title: 'Misc', onClick: ->(action) do
|
37
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/misc')
|
38
|
+
# end
|
39
|
+
# template.thumbnail title: 'Icons', onClick: ->(action) do
|
40
|
+
# action.windows_open url: json_ui_garage_url(path: 'views/icons')
|
41
|
+
# end
|
37
42
|
end
|
38
43
|
end,
|
39
44
|
->(section) do
|
@@ -0,0 +1,31 @@
|
|
1
|
+
json.title 'Views'
|
2
|
+
|
3
|
+
page = json_ui_page json
|
4
|
+
render "#{@path_prefix}/nav_menu", json: json, page: page
|
5
|
+
|
6
|
+
page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
7
|
+
scroll.h2 text: 'Progress Bar'
|
8
|
+
scroll.spacer height: 6
|
9
|
+
scroll.progressBar value: 0.1
|
10
|
+
scroll.spacer height: 20
|
11
|
+
|
12
|
+
scroll.h2 text: 'Thin Progress Bar'
|
13
|
+
scroll.spacer height: 6
|
14
|
+
scroll.progressBar value: 0.25, height: 5, styleClass: 'no-text'
|
15
|
+
scroll.spacer height: 20
|
16
|
+
|
17
|
+
scroll.h2 text: 'Striped Progress Bar'
|
18
|
+
scroll.spacer height: 6
|
19
|
+
scroll.progressBar value: 0.5, styleClass: 'striped'
|
20
|
+
scroll.spacer height: 20
|
21
|
+
|
22
|
+
scroll.h2 text: 'Progress Bar with custom colors'
|
23
|
+
scroll.spacer height: 6
|
24
|
+
scroll.progressBar value: 0.75, color: '#272551', backgroundColor: '#FFFF00', styleClass: 'light'
|
25
|
+
scroll.spacer height: 20
|
26
|
+
|
27
|
+
scroll.h2 text: 'Reversed Progress Bar'
|
28
|
+
scroll.spacer height: 6
|
29
|
+
scroll.progressBar value: 0.1, reversed: true
|
30
|
+
scroll.spacer height: 20
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -230,6 +230,7 @@ files:
|
|
230
230
|
- app/views/json_ui/garage/views/maps.json.jbuilder
|
231
231
|
- app/views/json_ui/garage/views/markdowns.json.jbuilder
|
232
232
|
- app/views/json_ui/garage/views/misc.json.jbuilder
|
233
|
+
- app/views/json_ui/garage/views/progress.json.jbuilder
|
233
234
|
- app/views/json_ui/garage/views/texts.json.jbuilder
|
234
235
|
- app/views/layouts/json_ui/renderer.html.erb
|
235
236
|
- config/routes.rb
|