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: e4fa3a5bc80fc1354db7030f213da3db807b948797c729500015f8f1d9e11ba1
4
- data.tar.gz: b9174c228c32924fdbc7ecb87214bfce37d4c63ce0a5d3b905be0e4ac0c2143f
3
+ metadata.gz: 64fa536f763a59dac5250be221ff17106a5bac2fadea370d85e980d81fff6d25
4
+ data.tar.gz: 1ab54307c650b074396467ef5c94a9f09b840fbc2348f43cbf287797e263b36f
5
5
  SHA512:
6
- metadata.gz: 9609485c6c0339b27600efbfd1fbea22f8b676c16b792c69cdb2a1c6a44f75ad3d2632d9868ed142bdfef70dd8fc22b876c1946c4d5de208d0a4d4ee0225d595
7
- data.tar.gz: e2e758483ccba38788bd0e06139aef0ad4acd2c0c9a71d85cd017aa92ac1320abb51b45613d46480a798f31e851da480b2e8f93929d0ee6c8b3f2ad6540c0fc9
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
- { 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
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: true)
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.panels_vertical \
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
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.36.1
4
+ version: 4.36.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''