glib-web 3.17.3 → 3.19.0
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/new_dynamic_text.rb +0 -0
- data/app/controllers/concerns/glib/json/traversal.rb +0 -4
- 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/json_ui/action_builder/sheets.rb +0 -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/table_builders.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +16 -1
- 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/_sheets.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_select_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +1 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/pickers.json.jbuilder +13 -0
- data/app/views/json_ui/garage/forms/rich_text_preview.json.jbuilder +0 -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/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_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/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/card.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
- 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/charts.json.jbuilder +3 -3
- 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/app/views/layouts/json_ui/no_custom.html.erb +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/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
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f1a12f58e636eebfea51213e913bf4a5dcd1f131f6d1fbbb8794391ac9493a
|
4
|
+
data.tar.gz: 8facd85fed8676d112978f51b1d7712374f91ba4f99bef116516f69354485ff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0b873948a68e24fd6fc0c2e9d2aaafa11c4f0102bfa33fc9b433703998bf502cda9e0a201bd2112d7f58834ea649846c9b3351e756e58288781c9211741fa9e
|
7
|
+
data.tar.gz: 4ea2b19bfbb4e3ae62998ff1fc7db9021c1f5019b93a0b9a4f59ce39d3375b5b6655b48a2e2288881d7802489da27bba0f02ee32ee8bd106ae49a88b1ec8500a
|
File without changes
|
@@ -94,10 +94,6 @@ module Glib::Json::Traversal
|
|
94
94
|
traverse_multiple view['leftButtons'], block
|
95
95
|
traverse_multiple view['rightButtons'], block
|
96
96
|
|
97
|
-
# Select field
|
98
|
-
traverse_vertical_content view['header'], block
|
99
|
-
traverse_vertical_content view['footer'], block
|
100
|
-
|
101
97
|
# Table row
|
102
98
|
traverse_multiple view['cellViews'], block
|
103
99
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -301,7 +301,7 @@ class Glib::JsonUi::ViewBuilder
|
|
301
301
|
array :files
|
302
302
|
string :directUploadUrl
|
303
303
|
string :uploadTitle
|
304
|
-
string :uploadFailedText
|
304
|
+
string :uploadFailedText # deprecated
|
305
305
|
|
306
306
|
required :accepts, :directUploadUrl
|
307
307
|
|
@@ -319,12 +319,27 @@ class Glib::JsonUi::ViewBuilder
|
|
319
319
|
@files = values
|
320
320
|
end
|
321
321
|
|
322
|
+
def responseMessages(values)
|
323
|
+
@responseMessages = values
|
324
|
+
end
|
325
|
+
|
322
326
|
def created
|
323
327
|
super
|
324
328
|
|
325
329
|
@placeholder ||= I18n.t('common.multi_upload.placeholder', default: nil)
|
326
330
|
@hint ||= I18n.t('common.multi_upload.hint', default: nil)
|
327
331
|
|
332
|
+
['200', '403', '401', 'else'].each do |status|
|
333
|
+
key = "common.multi_upload.responseMessages.#{status}"
|
334
|
+
@responseMessages[status] = I18n.t(key) if I18n.exists?(key)
|
335
|
+
end
|
336
|
+
json.responseMessages (@responseMessages || {}).reverse_merge({
|
337
|
+
'200' => 'File uploaded',
|
338
|
+
'403' => 'Forbidden',
|
339
|
+
'401' => 'Session expired',
|
340
|
+
'else' => 'Upload failed'
|
341
|
+
})
|
342
|
+
|
328
343
|
json.placeholder @placeholder if @placeholder
|
329
344
|
json.hint @hint if @hint
|
330
345
|
|
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
|
@@ -39,6 +39,7 @@ page.form options.merge(childViews: ->(form) do
|
|
39
39
|
form.spacer height: 16
|
40
40
|
form.fields_multiUpload \
|
41
41
|
name: 'user[multi][]',
|
42
|
+
width: 360,
|
42
43
|
accepts: { fileType: 'image', maxFileSize: 5000 },
|
43
44
|
directUploadUrl: rails_direct_uploads_url,
|
44
45
|
uploadTitle: 'Files uploaded:',
|
File without changes
|
@@ -3,8 +3,13 @@ json.title 'Forms'
|
|
3
3
|
page = json_ui_page json
|
4
4
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
5
5
|
|
6
|
+
if Object.const_defined?('User')
|
7
|
+
record = User.first
|
8
|
+
end
|
9
|
+
|
6
10
|
page.form \
|
7
11
|
url: json_ui_garage_url(path: 'forms/generic_post'),
|
12
|
+
model: record,
|
8
13
|
method: 'post',
|
9
14
|
padding: glib_json_padding_body,
|
10
15
|
childViews: ->(form) do
|
@@ -65,6 +70,14 @@ page.form \
|
|
65
70
|
max: '2021-03-01',
|
66
71
|
value: '2021-11'
|
67
72
|
|
73
|
+
if record.present?
|
74
|
+
form.fields_datetime \
|
75
|
+
prop: :created_at,
|
76
|
+
label: 'User created at',
|
77
|
+
placeholder: 'User created at',
|
78
|
+
width: 'matchParent'
|
79
|
+
end
|
80
|
+
|
68
81
|
form.spacer height: 20
|
69
82
|
form.h2 text: 'Country'
|
70
83
|
form.spacer height: 6
|
@@ -1,7 +1,6 @@
|
|
1
1
|
data = params[:user] || {}
|
2
2
|
|
3
3
|
json_ui_response_with_view json do |action|
|
4
|
-
# Experimental. Continue to use `components_update` instead.
|
5
4
|
action.components_replace targetId: 'preview', newView: ->(update) do
|
6
5
|
update.panels_vertical childViews: ->(vertical) do
|
7
6
|
vertical.label text: "Hello #{data[:name]},"
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -37,7 +37,7 @@ else
|
|
37
37
|
'Thu, 15 Nov 2018' => 1,
|
38
38
|
'Fri, 16 Nov 2018' => 5,
|
39
39
|
}
|
40
|
-
json.points points.map { |k, v| { x: k, y: v } }
|
40
|
+
json.points points.map { |k, v| { x: k, y: v, label: v > 5 ? 'Greater than five' : v } }
|
41
41
|
end,
|
42
42
|
-> do
|
43
43
|
json.title 'Line 2'
|
@@ -51,7 +51,7 @@ else
|
|
51
51
|
'Thu, 15 Nov 2018' => 5,
|
52
52
|
'Fri, 16 Nov 2018' => 1,
|
53
53
|
}
|
54
|
-
json.points points.map { |k, v| { x: k, y: v } }
|
54
|
+
json.points points.map { |k, v| { x: k, y: v, label: v > 5 ? 'Greater than five' : v } }
|
55
55
|
end
|
56
56
|
],
|
57
57
|
plugins: default_plugins,
|
@@ -132,7 +132,7 @@ else
|
|
132
132
|
legend: { display: false },
|
133
133
|
colors: ['#fc5a8d', '#F5E216'],
|
134
134
|
plugins: plugins,
|
135
|
-
dataPoints: [{ title: 'Strawberry', value: 25 }, { title: 'Banana', value: 75 }], legend: { display: false }
|
135
|
+
dataPoints: [{ title: 'Strawberry', value: 25, label: '❤ Strawberry' }, { title: 'Banana', value: 75, label: '❤ Banana' }], legend: { display: false }
|
136
136
|
|
137
137
|
scroll.h2 text: 'Donut chart'
|
138
138
|
scroll.charts_pie \
|
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/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
|
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
|
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: 3.
|
4
|
+
version: 3.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -328,8 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
328
|
- !ruby/object:Gem::Version
|
329
329
|
version: '0'
|
330
330
|
requirements: []
|
331
|
-
|
332
|
-
rubygems_version: 2.7.6
|
331
|
+
rubygems_version: 3.4.6
|
333
332
|
signing_key:
|
334
333
|
specification_version: 4
|
335
334
|
summary: ''
|