glib-web 4.36.1 → 4.36.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64fa536f763a59dac5250be221ff17106a5bac2fadea370d85e980d81fff6d25
|
4
|
+
data.tar.gz: 1ab54307c650b074396467ef5c94a9f09b840fbc2348f43cbf287797e263b36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ce0a37c6434ee753bf8a9a41f2937f4aa2b5d22e939147cf994b0446a6869e110dc497c4121a5fcff5b880d247a5a37db16d216762d390cc91d938164d709d5
|
7
|
+
data.tar.gz: 91db1d16e51c6596083805196e1fbfa7c3be45245a02b81a46600f5958e0b306867b3df300d5bc87abf0899d7d71da7a796d265d6b01d5fe2b5adefa6de1aa20
|
@@ -68,10 +68,10 @@ module Glib::Json::Libs
|
|
68
68
|
|
69
69
|
# As much as possible, try retaining the front fragment by matching the back, because
|
70
70
|
# the front could be either a `?` or `&`
|
71
|
-
url = url.sub(/format=json\&/, '')
|
71
|
+
url = url.sub(/format=json\&/, '');
|
72
72
|
|
73
73
|
# If no match, then we replace the front fragment
|
74
|
-
url.sub(/[\&\?]format=json/, '')
|
74
|
+
url.sub(/[\&\?]format=json/, '');
|
75
75
|
end
|
76
76
|
|
77
77
|
def glib_redirect_to(url, return_to_previous: false, status: :ok)
|
@@ -159,14 +159,14 @@ module Glib::Json::Libs
|
|
159
159
|
end
|
160
160
|
|
161
161
|
render json: if glib_json_dialog_mode?
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
162
|
+
{ onLoad: __glib_error_dialog('Access denied', "Make sure you're logged in with the correct account.") }
|
163
|
+
else
|
164
|
+
{
|
165
|
+
onResponse: {
|
166
|
+
action: 'windows/open', url: user_default_url
|
167
|
+
}
|
168
|
+
}
|
169
|
+
end, status: Rails.env.test? ? :forbidden : :ok
|
170
170
|
end
|
171
171
|
format.csv do
|
172
172
|
if Rails.env.test?
|
@@ -236,7 +236,7 @@ module Glib::Json::Libs
|
|
236
236
|
if json_ui_activated?
|
237
237
|
if Rails.env.production? || preview_mode
|
238
238
|
if defined?(Rollbar) && !preview_mode
|
239
|
-
Rollbar.error(exception, use_exception_level_filters
|
239
|
+
Rollbar.error(exception, :use_exception_level_filters => true)
|
240
240
|
end
|
241
241
|
|
242
242
|
render file: Rails.root.join('public', '500.html'), status: :internal_server_error
|
@@ -13,54 +13,7 @@ section.rows builder: ->(row) do
|
|
13
13
|
if local_assigns[:reorder]
|
14
14
|
row.thumbnail title: "Item #{index}"
|
15
15
|
else
|
16
|
-
row.thumbnail
|
17
|
-
title: "Item #{index}",
|
18
|
-
subtitle: "Sub Item #{index}",
|
19
|
-
subsubtitle: "Sub Sub Item #{index}"
|
20
|
-
# onClick: ->(action) do
|
21
|
-
# action.windows_openWeb url: 'https://www.google.com'
|
22
|
-
# end,
|
23
|
-
# content: ->(content) do
|
24
|
-
# content.footer \
|
25
|
-
# childViews: ->(footer) do
|
26
|
-
# footer.panels_horizontal \
|
27
|
-
# padding: { x: 10, y: 5 },
|
28
|
-
# childViews: ->(horizontal) do
|
29
|
-
# horizontal.label \
|
30
|
-
# text: 'View',
|
31
|
-
# onClick: ->(action) do
|
32
|
-
# # TODO: For some reason this causes the auto-scrolling issue
|
33
|
-
# # action.windows_openWeb url: frontend_place_url(place)
|
34
|
-
|
35
|
-
# # action.windows_openWeb url: frontend_place_url(place)
|
36
|
-
# end
|
37
|
-
|
38
|
-
# horizontal.spacer styleClass: 'width-sm'
|
39
|
-
|
40
|
-
# horizontal.label \
|
41
|
-
# text: symbol_horizontal_separator,
|
42
|
-
# styleClasses: ['text-muted']
|
43
|
-
|
44
|
-
# horizontal.spacer styleClass: 'width-sm'
|
45
|
-
|
46
|
-
# horizontal.label \
|
47
|
-
# text: 'Delete',
|
48
|
-
# onClick: ->(action) do
|
49
|
-
# action.windows_openWeb url: 'https://www.google.com'
|
50
|
-
# # action.windows_openWeb url: frontend_place_url(place)
|
51
|
-
|
52
|
-
# # render \
|
53
|
-
# # 'shared/confirmation_sheet',
|
54
|
-
# # panel: action,
|
55
|
-
# # message: 'Are you sure you want to delete this favorite?',
|
56
|
-
# # confirmation_text: 'Yes, delete the favorite',
|
57
|
-
# # confirmation_action: ->(subsubaction) do
|
58
|
-
# # subsubaction.http_delete url: favorite_list_favorite_url(@favorite_list, favorite)
|
59
|
-
# # end
|
60
|
-
# end
|
61
|
-
# end
|
62
|
-
# end
|
63
|
-
# end
|
16
|
+
row.thumbnail title: "Item #{index}", subtitle: "Sub Item #{index}", subsubtitle: "Sub Sub Item #{index}"
|
64
17
|
end
|
65
18
|
end
|
66
19
|
end
|
@@ -13,16 +13,6 @@ end
|
|
13
13
|
|
14
14
|
page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
15
15
|
(1..100).each do |index|
|
16
|
-
scroll.
|
17
|
-
width: 'matchParent',
|
18
|
-
backgroundColor: '#b3bac2',
|
19
|
-
height: 'matchParent',
|
20
|
-
childViews: ->(panels) do
|
21
|
-
panels.label text: 'Content'
|
22
|
-
panels.spacer height: 4
|
23
|
-
panels.label text: 'view', onClick: ->(action) do
|
24
|
-
action.windows_openWeb url: 'https://www.google.com'
|
25
|
-
end
|
26
|
-
end
|
16
|
+
scroll.label text: 'Content'
|
27
17
|
end
|
28
18
|
end
|