glib-web 4.42.1 → 4.42.3
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/libs.rb +4 -9
- data/app/controllers/concerns/glib/json/ui.rb +6 -8
- data/app/views/json_ui/garage/test_page/_header.json.jbuilder +84 -14
- data/app/views/json_ui/garage/test_page/browsers.json.jbuilder +101 -0
- data/app/views/json_ui/garage/test_page/calendar.json.jbuilder +109 -0
- data/app/views/json_ui/garage/test_page/calendar_empty_data.json.jbuilder +3 -0
- data/app/views/json_ui/garage/test_page/carousel.json.jbuilder +70 -0
- data/app/views/json_ui/garage/test_page/charts.json.jbuilder +370 -0
- data/app/views/json_ui/garage/test_page/column.json.jbuilder +121 -0
- data/app/views/json_ui/garage/test_page/commands.json.jbuilder +98 -0
- data/app/views/json_ui/garage/test_page/components.json.jbuilder +143 -0
- data/app/views/json_ui/garage/test_page/cookies.json.jbuilder +109 -0
- data/app/views/json_ui/garage/test_page/custom.json.jbuilder +56 -0
- data/app/views/json_ui/garage/test_page/flow.json.jbuilder +70 -0
- data/app/views/json_ui/garage/test_page/forms.json.jbuilder +105 -0
- data/app/views/json_ui/garage/test_page/grid.json.jbuilder +68 -0
- data/app/views/json_ui/garage/test_page/horizontal.json.jbuilder +68 -0
- data/app/views/json_ui/garage/test_page/http.json.jbuilder +87 -37
- data/app/views/json_ui/garage/test_page/image.json.jbuilder +145 -0
- data/app/views/json_ui/garage/test_page/list.json.jbuilder +75 -0
- data/app/views/json_ui/garage/test_page/lists_append.json.jbuilder +151 -0
- data/app/views/json_ui/garage/test_page/logics_set.json.jbuilder +7 -6
- data/app/views/json_ui/garage/test_page/multimedia_video.json.jbuilder +118 -0
- data/app/views/json_ui/garage/test_page/pagination.json.jbuilder +64 -0
- data/app/views/json_ui/garage/test_page/panels.json.jbuilder +113 -0
- data/app/views/json_ui/garage/test_page/popovers.json.jbuilder +112 -0
- data/app/views/json_ui/garage/test_page/progressCircle.json.jbuilder +119 -0
- data/app/views/json_ui/garage/test_page/responsive.json.jbuilder +100 -0
- data/app/views/json_ui/garage/test_page/scroll.json.jbuilder +77 -0
- data/app/views/json_ui/garage/test_page/split.json.jbuilder +82 -0
- data/app/views/json_ui/garage/test_page/storage_items.json.jbuilder +144 -0
- data/app/views/json_ui/garage/test_page/table.json.jbuilder +99 -0
- data/app/views/json_ui/garage/test_page/timeline.json.jbuilder +97 -0
- data/app/views/json_ui/garage/test_page/timeouts.json.jbuilder +86 -0
- data/app/views/json_ui/garage/test_page/ul.json.jbuilder +68 -0
- data/app/views/json_ui/garage/test_page/vertical.json.jbuilder +68 -0
- data/app/views/json_ui/garage/test_page/web.json.jbuilder +64 -0
- data/app/views/json_ui/garage/test_page/windows.json.jbuilder +129 -0
- data/lib/glib/rubocop/cops/multiline_method_call_style.rb +8 -0
- data/lib/tasks/db.rake +1 -0
- metadata +34 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
json.title 'Test Page (Windows)'
|
|
2
|
+
|
|
3
|
+
page = json_ui_page json
|
|
4
|
+
|
|
5
|
+
page.body(
|
|
6
|
+
childViews: ->(body) do
|
|
7
|
+
render 'json_ui/garage/test_page/header', view: body
|
|
8
|
+
body.panels_responsive(
|
|
9
|
+
padding: glib_json_padding_body,
|
|
10
|
+
childViews: ->(res) do
|
|
11
|
+
res.h2 text: 'Windows'
|
|
12
|
+
res.label text: 'Open, update, and close windows.'
|
|
13
|
+
res.spacer height: 12
|
|
14
|
+
res.hr width: 'matchParent'
|
|
15
|
+
res.spacer height: 12
|
|
16
|
+
|
|
17
|
+
res.h2 text: 'Overview'
|
|
18
|
+
res.label text: 'Window actions can open new pages, update existing windows, or close navigation stacks.'
|
|
19
|
+
res.spacer height: 12
|
|
20
|
+
res.hr width: 'matchParent'
|
|
21
|
+
res.spacer height: 12
|
|
22
|
+
|
|
23
|
+
res.h2 text: 'Basic example'
|
|
24
|
+
res.spacer height: 8
|
|
25
|
+
res.button(
|
|
26
|
+
text: 'windows/open',
|
|
27
|
+
onClick: ->(action) do
|
|
28
|
+
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
|
29
|
+
end
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
res.spacer height: 16
|
|
33
|
+
res.hr width: 'matchParent'
|
|
34
|
+
res.spacer height: 16
|
|
35
|
+
|
|
36
|
+
res.h2 text: 'Variants/props'
|
|
37
|
+
res.spacer height: 8
|
|
38
|
+
res.panels_flow(
|
|
39
|
+
innerPadding: { bottom: 0 },
|
|
40
|
+
width: 'matchParent',
|
|
41
|
+
childViews: ->(flow) do
|
|
42
|
+
flow.button(
|
|
43
|
+
text: 'windows/open (updateExisting: true)',
|
|
44
|
+
onClick: ->(action) do
|
|
45
|
+
action.windows_open updateExisting: true, url: json_ui_garage_url(path: 'home/blank', sleep: true), loaderViews: ->(view) do
|
|
46
|
+
view.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
|
47
|
+
res.skeleton template: 'textArea'
|
|
48
|
+
res.skeleton template: 'commentList'
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
)
|
|
53
|
+
flow.spacer width: 8
|
|
54
|
+
flow.button(
|
|
55
|
+
text: 'windows/open (multistep form)',
|
|
56
|
+
onClick: ->(action) do
|
|
57
|
+
action.windows_open url: json_ui_garage_url(path: 'multistep_form/step1')
|
|
58
|
+
end
|
|
59
|
+
)
|
|
60
|
+
flow.spacer width: 8
|
|
61
|
+
flow.button(
|
|
62
|
+
text: 'windows/openWeb',
|
|
63
|
+
onClick: ->(action) do
|
|
64
|
+
action.windows_openWeb url: 'http://www.google.com'
|
|
65
|
+
end
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
res.spacer height: 16
|
|
71
|
+
res.hr width: 'matchParent'
|
|
72
|
+
res.spacer height: 16
|
|
73
|
+
|
|
74
|
+
res.h2 text: 'Actions/events'
|
|
75
|
+
res.spacer height: 8
|
|
76
|
+
res.panels_flow(
|
|
77
|
+
innerPadding: { bottom: 0 },
|
|
78
|
+
width: 'matchParent',
|
|
79
|
+
childViews: ->(flow) do
|
|
80
|
+
flow.button(
|
|
81
|
+
text: 'windows/close',
|
|
82
|
+
onClick: ->(action) do
|
|
83
|
+
action.windows_close onClose: ->(subaction) do
|
|
84
|
+
subaction.dialogs_alert message: 'Previous window closed'
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
)
|
|
88
|
+
flow.spacer width: 8
|
|
89
|
+
flow.button(
|
|
90
|
+
text: 'windows/closeWithOpen',
|
|
91
|
+
onClick: ->(action) do
|
|
92
|
+
action.windows_closeWithOpen url: json_ui_garage_url(path: 'home/print', encoded_key: 'Hello+World')
|
|
93
|
+
end
|
|
94
|
+
)
|
|
95
|
+
flow.spacer width: 8
|
|
96
|
+
flow.button(
|
|
97
|
+
text: 'windows/closeAllWithOpen',
|
|
98
|
+
onClick: ->(action) do
|
|
99
|
+
action.windows_closeAllWithOpen url: json_ui_garage_url(path: 'home/index', sleep: true), loaderViews: ->(view) do
|
|
100
|
+
view.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
|
101
|
+
res.skeleton template: 'textArea'
|
|
102
|
+
res.skeleton template: 'commentList'
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
res.spacer height: 16
|
|
111
|
+
res.hr width: 'matchParent'
|
|
112
|
+
res.spacer height: 16
|
|
113
|
+
|
|
114
|
+
res.h2 text: 'Edge/advanced'
|
|
115
|
+
res.spacer height: 8
|
|
116
|
+
res.button(
|
|
117
|
+
text: 'windows/open (with loader)',
|
|
118
|
+
onClick: ->(action) do
|
|
119
|
+
action.windows_open url: json_ui_garage_url(path: 'home/blank', sleep: true), loaderViews: ->(view) do
|
|
120
|
+
view.panels_responsive padding: { all: 16 }, childViews: ->(res) do
|
|
121
|
+
res.skeleton template: 'bigProgressCircle'
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
)
|
|
128
|
+
end
|
|
129
|
+
)
|
|
@@ -38,6 +38,7 @@ module RuboCop
|
|
|
38
38
|
return if proper_parentheses_style?(node)
|
|
39
39
|
return if proper_backslash_style?(node) && allow_backslash?
|
|
40
40
|
return if inside_correctable_parent?(node)
|
|
41
|
+
return if assignment_method?(node)
|
|
41
42
|
|
|
42
43
|
add_offense(node) do |corrector|
|
|
43
44
|
autocorrect(corrector, node)
|
|
@@ -52,6 +53,13 @@ module RuboCop
|
|
|
52
53
|
node.multiline? && node.arguments.any?
|
|
53
54
|
end
|
|
54
55
|
|
|
56
|
+
def assignment_method?(node)
|
|
57
|
+
# Skip setter methods (e.g., response.body=, foo.bar=)
|
|
58
|
+
# These are written as assignments (response.body = ...) and shouldn't
|
|
59
|
+
# be converted to method call style (response.body(...))
|
|
60
|
+
node.method_name.to_s.end_with?('=')
|
|
61
|
+
end
|
|
62
|
+
|
|
55
63
|
def allow_backslash?
|
|
56
64
|
# Allow backslash style without warnings when configured
|
|
57
65
|
# Set to true to allow both styles (but auto-correct will still convert to parentheses)
|
data/lib/tasks/db.rake
CHANGED
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.42.
|
|
4
|
+
version: 4.42.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
@@ -373,21 +373,54 @@ files:
|
|
|
373
373
|
- app/views/json_ui/garage/tables/panel_content.json.jbuilder
|
|
374
374
|
- app/views/json_ui/garage/test_page/_header.json.jbuilder
|
|
375
375
|
- app/views/json_ui/garage/test_page/auto_validate.json.jbuilder
|
|
376
|
+
- app/views/json_ui/garage/test_page/browsers.json.jbuilder
|
|
377
|
+
- app/views/json_ui/garage/test_page/calendar.json.jbuilder
|
|
378
|
+
- app/views/json_ui/garage/test_page/calendar_empty_data.json.jbuilder
|
|
379
|
+
- app/views/json_ui/garage/test_page/carousel.json.jbuilder
|
|
380
|
+
- app/views/json_ui/garage/test_page/charts.json.jbuilder
|
|
381
|
+
- app/views/json_ui/garage/test_page/column.json.jbuilder
|
|
382
|
+
- app/views/json_ui/garage/test_page/commands.json.jbuilder
|
|
383
|
+
- app/views/json_ui/garage/test_page/components.json.jbuilder
|
|
384
|
+
- app/views/json_ui/garage/test_page/cookies.json.jbuilder
|
|
385
|
+
- app/views/json_ui/garage/test_page/custom.json.jbuilder
|
|
376
386
|
- app/views/json_ui/garage/test_page/dialog.json.jbuilder
|
|
377
387
|
- app/views/json_ui/garage/test_page/dialog_open.json.jbuilder
|
|
378
388
|
- app/views/json_ui/garage/test_page/dirty_state.json.jbuilder
|
|
379
389
|
- app/views/json_ui/garage/test_page/file_upload_new.json.jbuilder
|
|
390
|
+
- app/views/json_ui/garage/test_page/flow.json.jbuilder
|
|
380
391
|
- app/views/json_ui/garage/test_page/form.json.jbuilder
|
|
381
392
|
- app/views/json_ui/garage/test_page/form_dynamic.json.jbuilder
|
|
393
|
+
- app/views/json_ui/garage/test_page/forms.json.jbuilder
|
|
394
|
+
- app/views/json_ui/garage/test_page/grid.json.jbuilder
|
|
395
|
+
- app/views/json_ui/garage/test_page/horizontal.json.jbuilder
|
|
382
396
|
- app/views/json_ui/garage/test_page/http.json.jbuilder
|
|
397
|
+
- app/views/json_ui/garage/test_page/image.json.jbuilder
|
|
383
398
|
- app/views/json_ui/garage/test_page/lifecycle.json.jbuilder
|
|
399
|
+
- app/views/json_ui/garage/test_page/list.json.jbuilder
|
|
384
400
|
- app/views/json_ui/garage/test_page/list_editable.json.jbuilder
|
|
401
|
+
- app/views/json_ui/garage/test_page/lists_append.json.jbuilder
|
|
385
402
|
- app/views/json_ui/garage/test_page/logics_set.json.jbuilder
|
|
403
|
+
- app/views/json_ui/garage/test_page/multimedia_video.json.jbuilder
|
|
386
404
|
- app/views/json_ui/garage/test_page/multiupload.json.jbuilder
|
|
405
|
+
- app/views/json_ui/garage/test_page/pagination.json.jbuilder
|
|
406
|
+
- app/views/json_ui/garage/test_page/panels.json.jbuilder
|
|
407
|
+
- app/views/json_ui/garage/test_page/popovers.json.jbuilder
|
|
408
|
+
- app/views/json_ui/garage/test_page/progressCircle.json.jbuilder
|
|
409
|
+
- app/views/json_ui/garage/test_page/responsive.json.jbuilder
|
|
410
|
+
- app/views/json_ui/garage/test_page/scroll.json.jbuilder
|
|
387
411
|
- app/views/json_ui/garage/test_page/selectable.json.jbuilder
|
|
388
412
|
- app/views/json_ui/garage/test_page/sheets.json.jbuilder
|
|
389
413
|
- app/views/json_ui/garage/test_page/snackbars.json.jbuilder
|
|
414
|
+
- app/views/json_ui/garage/test_page/split.json.jbuilder
|
|
415
|
+
- app/views/json_ui/garage/test_page/storage_items.json.jbuilder
|
|
416
|
+
- app/views/json_ui/garage/test_page/table.json.jbuilder
|
|
417
|
+
- app/views/json_ui/garage/test_page/timeline.json.jbuilder
|
|
418
|
+
- app/views/json_ui/garage/test_page/timeouts.json.jbuilder
|
|
419
|
+
- app/views/json_ui/garage/test_page/ul.json.jbuilder
|
|
420
|
+
- app/views/json_ui/garage/test_page/vertical.json.jbuilder
|
|
421
|
+
- app/views/json_ui/garage/test_page/web.json.jbuilder
|
|
390
422
|
- app/views/json_ui/garage/test_page/window.json.jbuilder
|
|
423
|
+
- app/views/json_ui/garage/test_page/windows.json.jbuilder
|
|
391
424
|
- app/views/json_ui/garage/views/_chart_data.json.jbuilder
|
|
392
425
|
- app/views/json_ui/garage/views/_checkbox_expand.json.jbuilder
|
|
393
426
|
- app/views/json_ui/garage/views/_expand_shrink_ex.json.jbuilder
|