glib-web 0.2.8 → 0.2.9

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: 71ebbfa315c624f4e03a9f817173ae0ef3828b2f
4
- data.tar.gz: c9c83fd55418f5dc5e54734a8c10b13fc6e10fab
3
+ metadata.gz: 898406e8819d8a7646063d4f020ca4dce7cddb8a
4
+ data.tar.gz: 89e45bd8a7f0df8d8cbb6694744e3d45b5cd833b
5
5
  SHA512:
6
- metadata.gz: 86f2ad586d632b40c5308585692461134229d84629adb9b8ffd2ddc9b2694c57d7c199226417190bb835a9464d2a2d68f6142efd01fdf3659e45925a6fe95554
7
- data.tar.gz: 156523cc553b9b31b504e0c13cf1ea0862e0b7bbe183a6b91de6b592716c5b0cdead9cb86bd536a9eca67f38656b2a177d18a5aa9b7eb912e119ceba4831eeac
6
+ metadata.gz: '000839b48dfc387e3caaf2e249bfece5b05080f5e4a6b94b7b8daf8184d6b9d72cfaf34a3c1065796ba63397c4f1cfae3e6cdc34eb0908fd84b7b434bf339cab'
7
+ data.tar.gz: 54321ff743ddfff4bc41f8d50ec1fd9fc7b29e462169c815c3360a76dd35c2e0849b4a254afd16b499826e1d6d9e721ca01a39d2aee94819112cf59b8760a45f
@@ -66,6 +66,10 @@ module Glib
66
66
  action :onClick
67
67
  end
68
68
 
69
+ class P < View
70
+ string :text
71
+ end
72
+
69
73
  class Label < View
70
74
  string :text
71
75
  end
@@ -73,6 +73,7 @@ class Glib::JsonUi::ViewBuilder
73
73
  array :options
74
74
  bool :readOnly
75
75
  bool :multiple
76
+ bool :manualEntry
76
77
  end
77
78
 
78
79
  class DynamicSelect < AbstractField
@@ -19,7 +19,7 @@ json_ui_page json do |page|
19
19
  template.thumbnail title: "Submission Indicator", onClick: ->(action) do
20
20
  action.windows_open url: json_ui_garage_url(path: 'forms/submission_indicator')
21
21
  end
22
- template.thumbnail title: 'Text Validation - TODO: web, ios, android', onClick: ->(action) do
22
+ template.thumbnail title: 'Text Validation', onClick: ->(action) do
23
23
  action.windows_open url: json_ui_garage_url(path: 'forms/text_validation')
24
24
  end
25
25
 
@@ -13,8 +13,8 @@ json_ui_page json do |page|
13
13
  action.windows_openWeb url: 'https://www.google.com'
14
14
  end
15
15
  template.thumbnail title: 'Item with subtitle', subtitle: 'Item subtitle'
16
- template.thumbnail title: 'Item with thumbnail image', subtitle: 'Item subtitle', imageUrl: @sample_image_url
17
- template.featured title: 'Featured with featured image', subtitle: 'Item subtitle', imageUrl: @sample_image_url
16
+ template.thumbnail title: 'Item with thumbnail image', subtitle: 'Item subtitle', imageUrl: json_image_standard_url
17
+ template.featured title: 'Featured with featured image', subtitle: 'Item subtitle', imageUrl: json_image_standard_url
18
18
  end
19
19
  end
20
20
  end
@@ -38,7 +38,8 @@ json_ui_page json do |page|
38
38
  template.thumbnail title: 'List', subtitle: 'Sub-panels: header, footer', onClick: ->(action) do
39
39
  action.windows_open url: json_ui_garage_url(path: 'lists/index')
40
40
  end
41
-
41
+ template.thumbnail title: 'Flex', subtitle: 'TODO', onClick: ->(action) do
42
+ end
42
43
  end
43
44
  end, ->(section) do
44
45
  section.header padding: json_padding_list, childViews: ->(header) do
@@ -22,7 +22,7 @@ json_ui_page json do |page|
22
22
  'Thu, 15 Nov 2018' => 1,
23
23
  'Fri, 16 Nov 2018' => 5,
24
24
  }
25
- json.dataPoints points
25
+ json.dataPoints points.map { |k, v| { x: k, y: v } }
26
26
  end
27
27
 
28
28
  json.child! do
@@ -37,7 +37,7 @@ json_ui_page json do |page|
37
37
  'Thu, 15 Nov 2018' => 5,
38
38
  'Fri, 16 Nov 2018' => 1,
39
39
  }
40
- json.dataPoints points
40
+ json.dataPoints points.map { |k, v| { x: k, y: v } }
41
41
  end
42
42
 
43
43
  end
@@ -5,8 +5,8 @@ json_ui_page json do |page|
5
5
 
6
6
  page.list firstSection: ->(section) do
7
7
  section.rows builder: ->(template) do
8
- template.thumbnail title: 'Basic', onClick: ->(action) do
9
- action.windows_open url: json_ui_garage_url(path: 'views/basic')
8
+ template.thumbnail title: 'Texts', onClick: ->(action) do
9
+ action.windows_open url: json_ui_garage_url(path: 'views/texts')
10
10
  end
11
11
  template.thumbnail title: 'Images', onClick: ->(action) do
12
12
  action.windows_open url: json_ui_garage_url(path: 'views/images')
@@ -17,6 +17,9 @@ json_ui_page json do |page|
17
17
  template.thumbnail title: 'Charts', onClick: ->(action) do
18
18
  action.windows_open url: json_ui_garage_url(path: 'views/charts')
19
19
  end
20
+ template.thumbnail title: 'Misc', onClick: ->(action) do
21
+ action.windows_open url: json_ui_garage_url(path: 'views/misc')
22
+ end
20
23
  template.thumbnail title: 'Links', onClick: ->(action) do
21
24
  action.windows_open url: json_ui_garage_url(path: 'views/links')
22
25
  end
@@ -4,28 +4,6 @@ json_ui_page json do |page|
4
4
  render "#{@path_prefix}/nav_menu", json: json, page: page
5
5
 
6
6
  page.scroll padding: json_padding_body, childViews: ->(scroll) do
7
- scroll.h1 text: 'Heading 1'
8
-
9
- scroll.spacer height: 10
10
- scroll.h2 text: 'Heading 2'
11
-
12
- scroll.spacer height: 10
13
- scroll.h3 text: 'Heading 3'
14
-
15
- scroll.spacer height: 10
16
- scroll.h4 text: 'Heading 4'
17
-
18
- scroll.spacer height: 10
19
- scroll.label text: 'Label'
20
-
21
- scroll.spacer height: 20
22
- scroll.hr width: 'matchParent'
23
- scroll.spacer height: 20
24
-
25
- scroll.h2 text: 'Chip'
26
- scroll.spacer height: 6
27
- scroll.chip text: 'pending'
28
-
29
7
  scroll.spacer height: 20
30
8
  scroll.h2 text: 'Map'
31
9
  scroll.spacer height: 6
@@ -0,0 +1,41 @@
1
+ json.title 'Views'
2
+
3
+ json_ui_page json do |page|
4
+ render "#{@path_prefix}/nav_menu", json: json, page: page
5
+
6
+ page.scroll padding: json_padding_body, childViews: ->(scroll) do
7
+ scroll.h1 text: 'Heading 1'
8
+
9
+ scroll.spacer height: 10
10
+ scroll.h2 text: 'Heading 2'
11
+
12
+ scroll.spacer height: 10
13
+ scroll.h3 text: 'Heading 3'
14
+
15
+ scroll.spacer height: 10
16
+ scroll.h4 text: 'Heading 4'
17
+
18
+ scroll.spacer height: 10
19
+ scroll.label text: 'Label'
20
+
21
+ scroll.spacer height: 20
22
+ scroll.hr width: 'matchParent'
23
+ scroll.spacer height: 20
24
+
25
+ scroll.h2 text: 'Paragraph'
26
+ scroll.spacer height: 6
27
+ scroll.p text: 'Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC,'\
28
+ ' making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,'\
29
+ ' consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.'\
30
+ ' Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC.'\
31
+ ' This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..",'\
32
+ ' comes from a line in section 1.10.32.' + "\n\n" +
33
+ 'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum"'\
34
+ ' by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.'
35
+
36
+ scroll.h2 text: 'Chip'
37
+ scroll.spacer height: 6
38
+ scroll.chip text: 'pending'
39
+
40
+ end
41
+ 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.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -85,7 +85,6 @@ files:
85
85
  - app/views/json_ui/garage/panels/split.json.jbuilder
86
86
  - app/views/json_ui/garage/panels/table.json.jbuilder
87
87
  - app/views/json_ui/garage/panels/vertical.json.jbuilder
88
- - app/views/json_ui/garage/views/basic.json.jbuilder
89
88
  - app/views/json_ui/garage/views/calendar_data.json.jbuilder
90
89
  - app/views/json_ui/garage/views/carousels.json.jbuilder
91
90
  - app/views/json_ui/garage/views/charts.json.jbuilder
@@ -93,6 +92,8 @@ files:
93
92
  - app/views/json_ui/garage/views/index.json.jbuilder
94
93
  - app/views/json_ui/garage/views/links.json.jbuilder
95
94
  - app/views/json_ui/garage/views/map_data.json.jbuilder
95
+ - app/views/json_ui/garage/views/misc.json.jbuilder
96
+ - app/views/json_ui/garage/views/texts.json.jbuilder
96
97
  - config/routes.rb
97
98
  - lib/glib-web.rb
98
99
  - lib/glib/engine.rb