glib-web 2.5.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/glib/json/libs.rb +18 -0
- data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
- data/app/helpers/glib/app_feature_support_helper.rb +0 -0
- data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
- data/app/helpers/glib/forms_helper.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/dialogs.rb +2 -0
- data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder/tours.rb +3 -0
- data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
- data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
- data/app/helpers/glib/json_ui/list_builders.rb +2 -4
- data/app/helpers/glib/json_ui/table_builders.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +4 -1
- data/app/helpers/glib/json_ui/view_builder/panels.rb +2 -0
- data/app/helpers/glib/urls_helper.rb +0 -0
- data/app/models/glib/active_storage/attachment.rb +0 -0
- data/app/models/glib/active_storage/blob.rb +0 -0
- data/app/models/glib/dynamic_text_record.rb +0 -0
- data/app/models/glib/text.rb +0 -0
- data/app/validators/email_typo_validator.rb +0 -0
- data/app/validators/email_validator.rb +0 -0
- data/app/validators/url_validator.rb +0 -0
- data/app/views/json_ui/garage/actions/_panels.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_reload.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/otp_field.json.jbuilder +7 -4
- data/app/views/json_ui/garage/forms/selects.json.jbuilder +7 -1
- data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submit_on_change.json.jbuilder +37 -2
- data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/_autoload_section.json.jbuilder +1 -3
- data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/reordering.json.jbuilder +7 -1
- data/app/views/json_ui/garage/lists/templating.json.jbuilder +16 -0
- data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/_timeline_content.json.jbuilder +0 -1
- data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +13 -0
- data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/split.json.jbuilder +1 -1
- data/app/views/json_ui/garage/panels/ul.json.jbuilder +6 -3
- data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
- data/config/routes.rb +0 -0
- data/lib/generators/glib/install_generator.rb +0 -0
- data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
- data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
- data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
- data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
- data/lib/generators/templates/database.yml +0 -0
- data/lib/generators/templates/dynamic_text.rb +0 -0
- data/lib/glib/crypt/utils.rb +0 -0
- data/lib/glib/crypt.rb +0 -0
- data/lib/glib/dynamic_text/config.rb +0 -0
- data/lib/glib/dynamic_text.rb +0 -0
- data/lib/glib/engine.rb +0 -0
- data/lib/glib/json_crawler/action_crawler.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
- data/lib/glib/json_crawler/coverage.rb +0 -0
- data/lib/glib/json_crawler.rb +0 -0
- data/lib/glib/mailer_tester.rb +0 -0
- data/lib/glib/value.rb +0 -0
- data/lib/glib/version.rb +0 -0
- data/lib/glib-web.rb +0 -0
- data/lib/tasks/db.rake +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb13d4976eaaf07dbf2459dc8be1eee222ebd668c04f1886bec4ce8e0e497ec6
|
4
|
+
data.tar.gz: 6781da7837fadbe015c7df63adcc6956289900c2064aac27cf7d345888554ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a95897d9a5725703b1379689095563dab95d29cceba0f0c6394673d3d2cb4360efc0031915a59e1fe6265086baade6924fe1646c66732ba295d6d652b3e79bd
|
7
|
+
data.tar.gz: ef34016972a3b1be612213db6269505ea37292ddc1c37d1b6d5a3bc4adb3a1a5fccdcc5fa3d5020e64adcdf8e5f267a444386dc93c68844202bf1dc9cf954c15
|
@@ -36,6 +36,24 @@ module Glib::Json::Libs
|
|
36
36
|
json_ui_app_device_os == 'web'
|
37
37
|
end
|
38
38
|
|
39
|
+
def json_ui_etag
|
40
|
+
template = "#{controller_name}/#{action_name}"
|
41
|
+
|
42
|
+
# 1) It's necessary to pass in the template explicitly because of the switching between JSON
|
43
|
+
# and HTML rendering.
|
44
|
+
#
|
45
|
+
# 2) When a model is not provided, two pages the use the same template (e.g. `projects#show`)
|
46
|
+
# will produce the exact same ETAG, even though their content might be different. Presumably
|
47
|
+
# this is because the ETAG is calculated based on the static template as opposed to the
|
48
|
+
# generated output.
|
49
|
+
#
|
50
|
+
# However, this is not a problem because the browser will still treat these pages as
|
51
|
+
# separate because they have different URLs (e.g. `projects/1` vs `projects/2`), meaning
|
52
|
+
# that it will not accidentally use the cache from a different URL even though the ETAG
|
53
|
+
# is exactly the same.
|
54
|
+
fresh_when nil, template: template
|
55
|
+
end
|
56
|
+
|
39
57
|
def json_ui_render(template, args = {})
|
40
58
|
JSON.parse(render_to_string(template, locals: args))
|
41
59
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class Glib::JsonUi::ActionBuilder
|
2
2
|
module Dialogs
|
3
3
|
class Alert < Action
|
4
|
+
string :title
|
4
5
|
string :message
|
5
6
|
action :onLoad
|
6
7
|
action :onClose
|
@@ -44,6 +45,7 @@ class Glib::JsonUi::ActionBuilder
|
|
44
45
|
bool :showClose
|
45
46
|
string :fullscreen
|
46
47
|
length :width
|
48
|
+
length :height
|
47
49
|
end
|
48
50
|
|
49
51
|
class Reload < Action
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -37,7 +37,7 @@ module Glib
|
|
37
37
|
action :onLongPress
|
38
38
|
icon :icon
|
39
39
|
bool :avatar
|
40
|
-
action :onReorder
|
40
|
+
# action :onReorder
|
41
41
|
string :paramNameForFormData
|
42
42
|
string :paramNameForNewAbsoluteIndex
|
43
43
|
string :paramNameForNewSectionIndex
|
@@ -46,9 +46,7 @@ module Glib
|
|
46
46
|
string :id # Deprecated
|
47
47
|
string :paramNameForNewIndex # Deprecated
|
48
48
|
|
49
|
-
|
50
|
-
# # an array of badges (with relevant properties, e.g. text, color, etc)
|
51
|
-
# views :accessoryViews
|
49
|
+
panels_builder :accessory, :header, :body, :footer
|
52
50
|
end
|
53
51
|
|
54
52
|
class Featured < Standard
|
File without changes
|
@@ -76,6 +76,7 @@ class Glib::JsonUi::ViewBuilder
|
|
76
76
|
class Text < AbstractField
|
77
77
|
int :maxLength
|
78
78
|
icon :leftIcon
|
79
|
+
icon :rightIcon
|
79
80
|
string :leftText
|
80
81
|
string :rightText
|
81
82
|
action :onTypeStart
|
@@ -114,6 +115,7 @@ class Glib::JsonUi::ViewBuilder
|
|
114
115
|
class Submit < AbstractField
|
115
116
|
string :text
|
116
117
|
color :color
|
118
|
+
icon :icon
|
117
119
|
end
|
118
120
|
|
119
121
|
class CheckGroup < AbstractField
|
@@ -301,7 +303,8 @@ class Glib::JsonUi::ViewBuilder
|
|
301
303
|
end
|
302
304
|
|
303
305
|
class Otp < AbstractField
|
304
|
-
int :
|
306
|
+
int :length
|
307
|
+
string :type
|
305
308
|
end
|
306
309
|
|
307
310
|
class Rating < AbstractField
|
@@ -140,6 +140,7 @@ class Glib::JsonUi::ViewBuilder
|
|
140
140
|
action :onScrollToBottom
|
141
141
|
|
142
142
|
int :responsiveCols
|
143
|
+
hash :dragSupport
|
143
144
|
|
144
145
|
def firstSection(block)
|
145
146
|
json.sections [1] do
|
@@ -242,6 +243,7 @@ class Glib::JsonUi::ViewBuilder
|
|
242
243
|
string :distribution
|
243
244
|
string :align
|
244
245
|
action :onClick
|
246
|
+
hash :dragSupport
|
245
247
|
end
|
246
248
|
|
247
249
|
class Flow < View
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/models/glib/text.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -14,21 +14,24 @@ page.form \
|
|
14
14
|
form.spacer height: 6
|
15
15
|
form.fields_otp \
|
16
16
|
name: 'user[otp_summary1]',
|
17
|
-
|
17
|
+
length: 7,
|
18
|
+
type: 'text'
|
18
19
|
|
19
20
|
form.spacer height: 20
|
20
|
-
form.h2 text: 'OTP Custom Length'
|
21
|
+
form.h2 text: 'OTP Custom Length and input type number'
|
21
22
|
form.spacer height: 6
|
22
23
|
form.fields_otp \
|
23
24
|
name: 'user[otp_summary2]',
|
24
|
-
|
25
|
+
length: 3,
|
26
|
+
type: 'number'
|
25
27
|
|
26
28
|
form.spacer height: 20
|
27
29
|
form.h2 text: 'OTP with Long Field'
|
28
30
|
form.spacer height: 6
|
29
31
|
form.fields_otp \
|
30
32
|
name: 'user[otp_summary3]',
|
31
|
-
|
33
|
+
length: 20,
|
34
|
+
type: 'text'
|
32
35
|
|
33
36
|
form.spacer height: 20
|
34
37
|
form.fields_submit text: 'Submit'
|
@@ -15,7 +15,13 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
15
15
|
'melbourne' => 'Melbourne',
|
16
16
|
'sydney' => 'Sydney',
|
17
17
|
}
|
18
|
-
form.fields_select
|
18
|
+
form.fields_select \
|
19
|
+
name: 'user[city]',
|
20
|
+
width: 'matchParent',
|
21
|
+
label: 'City1',
|
22
|
+
placeholder: 'This is a placeholder',
|
23
|
+
options: languages.map { |k, v| { value: k, text: v } },
|
24
|
+
value: 'canberra'
|
19
25
|
form.fields_select name: 'user[cities][]', width: 'matchParent', label: 'Cities', options: languages.map { |k, v| { value: k, text: v } }, value: ['melbourne', 'sydney'], multiple: true
|
20
26
|
|
21
27
|
form.spacer height: 20
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -17,8 +17,11 @@ page.scroll childViews: ->(scroll) do
|
|
17
17
|
checkValue: '16+',
|
18
18
|
uncheckValue: '0-16',
|
19
19
|
label: 'I am over 16 (has default value)',
|
20
|
+
paramNameForFormData: 'message',
|
20
21
|
onChange: ->(action) do
|
21
|
-
action.
|
22
|
+
action.dialogs_alert title: 'Submit data?', onClose: ->(subaction) do
|
23
|
+
action.forms_submit
|
24
|
+
end
|
22
25
|
end
|
23
26
|
|
24
27
|
form.fields_check \
|
@@ -43,7 +46,7 @@ page.scroll childViews: ->(scroll) do
|
|
43
46
|
onChange: ->(action) do
|
44
47
|
action.snackbars_select message: 'Submit data?', buttons: ->(menu) do
|
45
48
|
menu.button text: 'Yes, submit', onClick: ->(subaction) do
|
46
|
-
|
49
|
+
subaction.forms_submit
|
47
50
|
end
|
48
51
|
end
|
49
52
|
end
|
@@ -57,6 +60,7 @@ page.scroll childViews: ->(scroll) do
|
|
57
60
|
group.fields_radio value: 'senior', label: 'Senior'
|
58
61
|
group.fields_radio value: 'junior', label: 'Junior'
|
59
62
|
end,
|
63
|
+
paramNameForFormData: 'message',
|
60
64
|
onChange: ->(action) do
|
61
65
|
action.sheets_select message: 'Submit data?', buttons: ->(menu) do
|
62
66
|
menu.button text: 'Yes, submit', onClick: ->(subaction) do
|
@@ -78,6 +82,20 @@ page.scroll childViews: ->(scroll) do
|
|
78
82
|
end
|
79
83
|
end
|
80
84
|
|
85
|
+
|
86
|
+
form.spacer height: 20
|
87
|
+
form.h2 text: 'Textarea'
|
88
|
+
form.fields_textarea \
|
89
|
+
name: 'user[bio]',
|
90
|
+
width: 'matchParent',
|
91
|
+
onChange: ->(action) do
|
92
|
+
action.sheets_select message: 'Submit data?', buttons: ->(menu) do
|
93
|
+
menu.button text: 'Yes, submit', onClick: ->(subaction) do
|
94
|
+
action.forms_submit
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
81
99
|
form.spacer height: 20
|
82
100
|
form.h2 text: 'Text (Asynchronous)'
|
83
101
|
form.fields_text \
|
@@ -86,6 +104,23 @@ page.scroll childViews: ->(scroll) do
|
|
86
104
|
onChange: ->(action) do
|
87
105
|
action.http_post url: json_ui_garage_url(path: 'forms/generic_post')
|
88
106
|
end
|
107
|
+
|
108
|
+
form.spacer height: 20
|
109
|
+
rules = { fileType: 'image', maxFileSize: 5000, fileTypeErrorText: 'Invalid!', maxFileSizeErrorText: 'Too big!' }
|
110
|
+
form.fields_file \
|
111
|
+
name: 'user[photo][]',
|
112
|
+
width: 'matchParent',
|
113
|
+
label: 'Avatar',
|
114
|
+
accepts: rules,
|
115
|
+
directUploadUrl: rails_direct_uploads_url,
|
116
|
+
placeholderView: { type: 'avatar', width: 100, height: 100, url: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMREBUREhAWFhUWGBcVFRgXFxUVFxcWGRUWFxYVFRUYHSggGB0lHRgVITEhJSkrLi4uGB8zODMtNygtLisBCgoKBQUFDgUFDisZExkrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAOMA3gMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAABgcBAwQFAv/EAEAQAAECAwMKAwYEBAYDAAAAAAEAAgMRIQQSMQUGIjJBUWFxgZEHE6FCUnKxwdEUI2LwM4KSskNzg6LC4WOz8f/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwC6XuvCQRj7okcUe27UYoxt4TOKDDG3Knkjm3jeGCMdeoeaOcWmQwQZe6/Qc0a+6Lpx+6PbcqOSNbeF44oMMbcqeSOZeN4YIx1+h5oXEG6MEGXuv0HNGuui6cfuvMytl6zWTXi6XuN039hh1koflPxDe4nyILW/qfpO/pFB6oLDhMLTX0XLbLbChmcSNDZ8T2tPqVUNuy/aY38S0PI3A3W/0tkF5qC4bVnZYsPxLT8Ic71AWgZ72ICXmuP+m/7KpUQWzAzzsQP8Y9Ybx9F0szlsb3TFqhjDWJZ6uAVOogvcR2RR+XEa7bouB+S2B0hdOOHCqoVjiDMEg7xQ917FgzqtcHVjucNz9Mf7qjoUFwMFzHahbM3tmPZQfJ3iG10m2mCR+qGZjqw17EqXZNynCtDZwIrXt2gawn7zTUIOt7r1BzRj7ounFHtu1GOCMbeEzigwxtyp5I5t43hgjHXqHmjnXTdGCDL3X6DmjXXRdOP3R7blRyRrZi8cfsgwxtyp5I9t+o5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r1Sz6vdZRBpsuPT7JH1uyIg2WrDqswdTuiINdlxPJYtOt0REH//2Q==' },
|
117
|
+
onChange: ->(action) do
|
118
|
+
action.sheets_select message: 'Submit data?', buttons: ->(menu) do
|
119
|
+
menu.button text: 'Yes, submit', onClick: ->(subaction) do
|
120
|
+
action.forms_submit
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
89
124
|
end
|
90
125
|
|
91
126
|
end
|
File without changes
|
File without changes
|
@@ -11,9 +11,7 @@ section.rows builder: ->(row) do
|
|
11
11
|
array.each do |i|
|
12
12
|
index = page_index * batch_count + i
|
13
13
|
if local_assigns[:reorder]
|
14
|
-
row.thumbnail title: "Item #{index}"
|
15
|
-
action.dialogs_notification title: "Item #{index}"
|
16
|
-
end, paramNameForFormData: 'message', paramNameForNewIndex: 'new_index'
|
14
|
+
row.thumbnail title: "Item #{index}"
|
17
15
|
else
|
18
16
|
row.thumbnail title: "Item #{index}", subtitle: "Sub Item #{index}", subsubtitle: "Sub Sub Item #{index}"
|
19
17
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -30,5 +30,11 @@ else
|
|
30
30
|
end
|
31
31
|
render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index, reorder: true
|
32
32
|
end
|
33
|
-
]
|
33
|
+
], dragSupport: {
|
34
|
+
onDrop: {
|
35
|
+
action: 'dialogs/alert'
|
36
|
+
},
|
37
|
+
paramNameForFormData: 'message',
|
38
|
+
paramNameForNewIndex: 'new_index'
|
39
|
+
}
|
34
40
|
end
|
@@ -11,6 +11,22 @@ json_ui_page json do |page|
|
|
11
11
|
section.rows builder: ->(template) do
|
12
12
|
template.thumbnail title: 'Click me', onClick: ->(action) do
|
13
13
|
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
14
|
+
end,
|
15
|
+
accessory: ->(accessory) do
|
16
|
+
accessory.header \
|
17
|
+
width: 'matchParent',
|
18
|
+
backgroundColor: '#b3bac2',
|
19
|
+
padding: { top: 10, bottom: 10, left: 10, right: 10 },
|
20
|
+
childViews: ->(bottom) do
|
21
|
+
bottom.label text: 'Custom row header'
|
22
|
+
end
|
23
|
+
accessory.footer \
|
24
|
+
width: 'matchParent',
|
25
|
+
backgroundColor: '#b3bac2',
|
26
|
+
padding: { top: 10, bottom: 10, left: 10, right: 10 },
|
27
|
+
childViews: ->(bottom) do
|
28
|
+
bottom.label text: 'Custom row footer'
|
29
|
+
end
|
14
30
|
end
|
15
31
|
template.thumbnail title: 'Item with icon and subtitle', subtitle: 'Item subtitle', icon: 'facebook'
|
16
32
|
template.thumbnail title: 'Item with chips', chips: ->(menu) do
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,6 @@
|
|
1
1
|
progress = params[:progress]&.to_i&.between?(0, 5) ? params[:progress].to_i : 0
|
2
2
|
|
3
3
|
tview.panels_responsive \
|
4
|
-
width: 400,
|
5
4
|
childViews: ->(res) do
|
6
5
|
res.panels_column sm: { cols: 11 }, childViews: ->(subcolumn) do
|
7
6
|
subcolumn.panels_column sm: { cols: 2, padding: { right: 10 } }, childViews: ->(inner_column) do
|
File without changes
|
File without changes
|
@@ -127,6 +127,19 @@ json_ui_page json do |page|
|
|
127
127
|
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
128
128
|
end
|
129
129
|
|
130
|
+
scroll.spacer height: 20
|
131
|
+
scroll.h1 text: 'Drag-and-drop support'
|
132
|
+
scroll.panels_horizontal backgroundColor: '#b3bac2', width: 300, distribution: 'spaceEqually', childViews: ->(panel) do
|
133
|
+
panel.button id: 'button1', text: '1'
|
134
|
+
panel.button id: 'button2', text: '2'
|
135
|
+
panel.button id: 'button3', text: '3'
|
136
|
+
end, dragSupport: {
|
137
|
+
onDrop: {
|
138
|
+
action: 'dialogs/alert',
|
139
|
+
},
|
140
|
+
paramNameForFormData: 'message'
|
141
|
+
}
|
142
|
+
|
130
143
|
scroll.label text: "\n"
|
131
144
|
end
|
132
145
|
end
|
File without changes
|
@@ -72,7 +72,7 @@ json_ui_page json do |page|
|
|
72
72
|
left.button text: '1'
|
73
73
|
end
|
74
74
|
content.center childViews: ->(center) do
|
75
|
-
center.label text: 'a very very very very very very very very very very very very very very very very very very very very very very very very very very very very long text'
|
75
|
+
center.label text: 'a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long text'
|
76
76
|
end
|
77
77
|
content.right childViews: ->(right) do
|
78
78
|
right.button text: '2'
|
@@ -26,7 +26,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
scroll.spacer height: 14
|
29
|
-
scroll.h2 text: 'Breadcrumbs'
|
29
|
+
scroll.h2 text: 'Breadcrumbs (experimental)'
|
30
30
|
scroll.spacer height: 6
|
31
31
|
scroll.panels_ul \
|
32
32
|
width: 'matchParent',
|
@@ -37,8 +37,11 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
37
37
|
ul.button text: 'Level 1', styleClass: 'link', onClick: ->(action) do
|
38
38
|
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
39
39
|
end
|
40
|
-
|
41
|
-
|
40
|
+
|
41
|
+
ul.button icon: 'keyboard_arrow_down', text: 'Level 2', styleClass: 'link', childButtons: ->(menu) do
|
42
|
+
menu.button text: 'Dropdown item 1'
|
43
|
+
menu.button text: 'Dropdown item 2'
|
44
|
+
menu.button text: 'Dropdown item 3'
|
42
45
|
end
|
43
46
|
ul.label text: 'Level 3'
|
44
47
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/crypt/utils.rb
CHANGED
File without changes
|
data/lib/glib/crypt.rb
CHANGED
File without changes
|
File without changes
|
data/lib/glib/dynamic_text.rb
CHANGED
File without changes
|
data/lib/glib/engine.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/json_crawler.rb
CHANGED
File without changes
|
data/lib/glib/mailer_tester.rb
CHANGED
File without changes
|
data/lib/glib/value.rb
CHANGED
File without changes
|
data/lib/glib/version.rb
CHANGED
File without changes
|
data/lib/glib-web.rb
CHANGED
File without changes
|
data/lib/tasks/db.rake
CHANGED
File without changes
|
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: 2.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -313,7 +313,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
313
|
- !ruby/object:Gem::Version
|
314
314
|
version: '0'
|
315
315
|
requirements: []
|
316
|
-
|
316
|
+
rubyforge_project:
|
317
|
+
rubygems_version: 2.7.6
|
317
318
|
signing_key:
|
318
319
|
specification_version: 4
|
319
320
|
summary: ''
|