glib-web 4.29.0 → 4.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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/json_ui/action_builder/dialogs.rb +2 -0
- data/app/helpers/glib/json_ui/action_builder/sheets.rb +1 -0
- data/app/helpers/glib/json_ui/action_builder/windows.rb +13 -12
- 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/view_builder.rb +6 -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/_dialogs.json.jbuilder +8 -2
- data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +9 -3
- data/app/views/json_ui/garage/actions/_windows.json.jbuilder +17 -4
- data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/actions/sheet_content.json.jbuilder +1 -0
- data/app/views/json_ui/garage/forms/basic.json.jbuilder +4 -0
- data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +1 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- 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 +3 -1
- data/app/views/json_ui/garage/home/index.json.jbuilder +4 -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/layout.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/views/calendar_data.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/dynamic_text/config.rb +0 -0
- data/lib/glib/dynamic_text.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/value.rb +0 -0
- data/lib/glib/version.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: 2a50b0fa5825fa2970b43e4771a42fbe86d1c49360514ec4c8bae4b5554f1596
|
4
|
+
data.tar.gz: 6fd65894cc019aba9777c6d9ff74d76a3ae40d8fc86e15c4eba73e9aa67822e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64878db62f6fa1e21b896270394a04d3f9fdbab5a35efae8095f2c1f4a4bd8a70dd637f81aeb3716477f0aed6dba5a2eda8a95d70e778f7192674c26a9e38b49
|
7
|
+
data.tar.gz: b117f01edb9d5b3ce19cde4bf8ee53ff4895057d26a973b8ab28a1233a4b3fb452ab4dc9e0105061465307d441bd619afd544b9a8b82f668bf1eb6e2ef05410e
|
File without changes
|
File without changes
|
File without changes
|
@@ -28,6 +28,7 @@ class Glib::JsonUi::ActionBuilder
|
|
28
28
|
end
|
29
29
|
|
30
30
|
class Open < Action
|
31
|
+
views :loaderViews
|
31
32
|
string :url, cache: true
|
32
33
|
bool :disableCloseButton
|
33
34
|
string :fullscreen
|
@@ -39,6 +40,7 @@ class Glib::JsonUi::ActionBuilder
|
|
39
40
|
end
|
40
41
|
|
41
42
|
class Reload < Action
|
43
|
+
views :loaderViews
|
42
44
|
string :url, cache: true
|
43
45
|
bool :disableCloseButton
|
44
46
|
string :fullscreen # mobile, always
|
@@ -13,20 +13,20 @@ class Glib::JsonUi::ActionBuilder
|
|
13
13
|
string :url, cache: true
|
14
14
|
bool :updateExisting
|
15
15
|
action :onOpen
|
16
|
+
views :loaderViews
|
16
17
|
end
|
17
18
|
|
18
19
|
class OpenWeb < Action
|
19
20
|
# string :url
|
20
21
|
|
21
22
|
def url(value, options = {})
|
22
|
-
other_host = !!options[:other_host]
|
23
23
|
regex = /\/.+\.json|format=json/
|
24
24
|
|
25
|
-
if Rails.env.development? || Rails.env.test? &&
|
25
|
+
if Rails.env.development? || Rails.env.test? && same_host?(value)
|
26
26
|
raise "JSON url detected #{value}" if value.to_s.match?(regex)
|
27
27
|
end
|
28
28
|
|
29
|
-
if value.to_s.match?(regex) && Rails.env.production? &&
|
29
|
+
if value.to_s.match?(regex) && Rails.env.production? && same_host?(value)
|
30
30
|
Rollbar.error("JSON url detected #{value}")
|
31
31
|
# value = value.gsub('.json', '')
|
32
32
|
end
|
@@ -35,16 +35,15 @@ class Glib::JsonUi::ActionBuilder
|
|
35
35
|
json.set! 'url', value
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
private
|
39
|
+
def same_host?(url)
|
40
|
+
host = URI(url.to_s).host
|
39
41
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
# return false unless url.to_s.start_with?("/")
|
46
|
-
# !url.to_s.start_with?("//")
|
47
|
-
# end
|
42
|
+
return true if host == page.context.request.host
|
43
|
+
return false unless host.nil?
|
44
|
+
return false unless url.to_s.start_with?('/')
|
45
|
+
!url.to_s.start_with?('//')
|
46
|
+
end
|
48
47
|
end
|
49
48
|
|
50
49
|
class Reload < Action
|
@@ -63,6 +62,7 @@ class Glib::JsonUi::ActionBuilder
|
|
63
62
|
class CloseWithOpen < Action
|
64
63
|
string :url
|
65
64
|
action :onOpen
|
65
|
+
views :loaderViews
|
66
66
|
|
67
67
|
required :url
|
68
68
|
end
|
@@ -70,6 +70,7 @@ class Glib::JsonUi::ActionBuilder
|
|
70
70
|
class CloseAllWithOpen < Action
|
71
71
|
string :url
|
72
72
|
action :onOpen
|
73
|
+
views :loaderViews
|
73
74
|
end
|
74
75
|
|
75
76
|
class Print < Action
|
File without changes
|
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
|
@@ -48,12 +48,18 @@ section.rows builder: ->(template) do
|
|
48
48
|
render 'json_ui/garage/actions/dialogs_show', json: json, action: action, dialog_mode: :show, include_form: true
|
49
49
|
end
|
50
50
|
|
51
|
-
template.thumbnail title: 'dialogs/open', onClick: ->(action) do
|
51
|
+
template.thumbnail title: 'dialogs/open with loaderViews', onClick: ->(action) do
|
52
52
|
action.dialogs_open \
|
53
53
|
width: 950,
|
54
|
-
url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog'),
|
54
|
+
url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog', sleep: true),
|
55
55
|
disableCloseButton: true,
|
56
56
|
closeOnBlur: true,
|
57
|
+
loaderViews: ->(view) do
|
58
|
+
view.panels_responsive padding: glib_json_padding_body, childViews: ->(res) do
|
59
|
+
res.skeleton template: 'textArea'
|
60
|
+
res.skeleton template: 'commentList'
|
61
|
+
end
|
62
|
+
end,
|
57
63
|
onClose: ->(saction) do
|
58
64
|
saction.snackbars_alert message: 'dialog closed'
|
59
65
|
end
|
@@ -18,9 +18,15 @@ section.rows builder: ->(template) do
|
|
18
18
|
template.thumbnail title: "sheets/open placement: 'top'", onClick: ->(action) do
|
19
19
|
action.sheets_open placement: 'top', url: json_ui_garage_url(path: 'actions/sheet_content')
|
20
20
|
end
|
21
|
-
template.thumbnail
|
22
|
-
|
23
|
-
|
21
|
+
template.thumbnail \
|
22
|
+
title: "sheets/open placement: 'right' with loaderViews", onClick: ->(action) do
|
23
|
+
action.sheets_open placement: 'right', url: json_ui_garage_url(path: 'actions/sheet_content'), loaderViews: ->(sview) do
|
24
|
+
sview.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
25
|
+
res.skeleton template: 'textArea'
|
26
|
+
res.skeleton template: 'commentList'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
24
30
|
template.thumbnail title: "sheets/open placement: 'bottom'", onClick: ->(action) do
|
25
31
|
action.sheets_open placement: 'bottom', url: json_ui_garage_url(path: 'actions/sheet_content')
|
26
32
|
end
|
@@ -11,16 +11,29 @@ section.rows builder: ->(template) do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
template.thumbnail title: 'windows/open', onClick: ->(action) do
|
14
|
-
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
14
|
+
action.windows_open url: json_ui_garage_url(path: 'home/blank', sleep: true), loaderViews: ->(view) do
|
15
|
+
view.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
16
|
+
res.skeleton template: 'bigProgressCircle'
|
17
|
+
end
|
18
|
+
end
|
15
19
|
end
|
16
20
|
|
17
21
|
template.thumbnail title: 'windows/open (updateExisting: true)', onClick: ->(action) do
|
18
|
-
action.windows_open updateExisting: true, url: json_ui_garage_url(path: 'home/blank')
|
22
|
+
action.windows_open updateExisting: true, url: json_ui_garage_url(path: 'home/blank', sleep: true), loaderViews: ->(view) do
|
23
|
+
view.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
24
|
+
res.skeleton template: 'textArea'
|
25
|
+
res.skeleton template: 'commentList'
|
26
|
+
end
|
27
|
+
end
|
19
28
|
end
|
20
29
|
|
21
30
|
template.thumbnail title: 'windows/closeAllWithOpen', onClick: ->(action) do
|
22
|
-
action.windows_closeAllWithOpen url: json_ui_garage_url(path: 'home/index')
|
23
|
-
|
31
|
+
action.windows_closeAllWithOpen url: json_ui_garage_url(path: 'home/index', sleep: true), loaderViews: ->(view) do
|
32
|
+
view.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
33
|
+
res.skeleton template: 'textArea'
|
34
|
+
res.skeleton template: 'commentList'
|
35
|
+
end
|
36
|
+
end
|
24
37
|
end
|
25
38
|
|
26
39
|
template.thumbnail title: 'windows/openWeb', onClick: ->(action) do
|
File without changes
|
File without changes
|
@@ -31,6 +31,7 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
31
31
|
template.spacer height: 10
|
32
32
|
template.fields_hidden name: 'message[error]'
|
33
33
|
template.fields_text width: 'matchParent', name: 'question', label: 'Question', placeholder: 'Question'
|
34
|
+
template.fields_richText width: 'matchParent', name: 'description', label: 'Desc', placeholder: 'Desc'
|
34
35
|
|
35
36
|
form.panels_responsive id: 'responsive_{{entryIndex}}', childViews: ->(column) do
|
36
37
|
column.panels_split width: 'matchParent', content: ->(split) 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
|
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
|
data/lib/glib/dynamic_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
|
data/lib/glib/value.rb
CHANGED
File without changes
|
data/lib/glib/version.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: 4.
|
4
|
+
version: 4.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -412,8 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
412
|
- !ruby/object:Gem::Version
|
413
413
|
version: '0'
|
414
414
|
requirements: []
|
415
|
-
|
416
|
-
rubygems_version: 2.7.6
|
415
|
+
rubygems_version: 3.4.6
|
417
416
|
signing_key:
|
418
417
|
specification_version: 4
|
419
418
|
summary: ''
|