coprl 3.0.0.beta.3 → 3.0.0.beta.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +43 -1
- data/app/demo/plugins/animate.pom +144 -0
- data/app/demo/plugins/clipboard.pom +21 -0
- data/app/demo/plugins/color_picker.pom +17 -0
- data/app/demo/plugins/iframe.pom +14 -0
- data/app/demo/plugins/markup.pom +14 -0
- data/app/demo/plugins/nav/drawer.pom +1 -1
- data/app/demo/plugins/timer.pom +24 -0
- data/lib/coprl/presenters/generators/plugin.rb +2 -1
- data/lib/coprl/presenters/generators/templates/plugin/presenter_plugin.gemspec.tt +1 -1
- data/lib/coprl/presenters/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45145c29a52d2d2074e5df3ea11da0a7c88620b1043341a1189cd08a52b0d88c
|
4
|
+
data.tar.gz: d7de08262cb1acd575cad2128b11994e4951f40b87c14cab80adec38abc512c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a7cd7a2ef1e87c04010151ee4617dfa1bf341431a8663a5877fba94bd7347ee5b2c894ac87d62d06c6f806559dcfab1969d51ec1129c208ac5d316a85d4bd62
|
7
|
+
data.tar.gz: b5e9bdf460093dc6d0d54150ea03d1e2cf7f285b486fe4c9f70606abbc90fb8800e566ef6100a1d4703cc08dc82b4a52c90383ea16262d1c9efaf83d784eaa0d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [3.0.0-beta.4](https://github.com/rx/presenters/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-06-15)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Updated generator to use secure version of Rake ([5e0761f](https://github.com/rx/presenters/commit/5e0761f7c13139e68da38ea4dfaae4b40c010e71))
|
7
|
+
|
1
8
|
# [3.0.0-beta.3](https://github.com/rx/presenters/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-06-07)
|
2
9
|
|
3
10
|
|
data/Gemfile
CHANGED
@@ -28,6 +28,12 @@ gem 'google_maps_presenter_plugin', github: 'coprl/google_maps_presenter_plugin
|
|
28
28
|
gem 'cacheable_presenter_plugin', github: 'coprl/cacheable_presenter_plugin', require: false
|
29
29
|
gem 'script_presenter_plugin', github: 'coprl/script_presenter_plugin', require: false
|
30
30
|
gem 'scroll_to_presenter_plugin', github: 'coprl/scroll_to_presenter_plugin', require: false
|
31
|
+
gem 'clipboard_presenter_plugin', github: 'coprl/clipboard_presenter_plugin', require: false
|
32
|
+
gem 'markup_presenter_plugin', github: 'coprl/markup_presenter_plugin', require: false
|
33
|
+
gem 'iframe_presenter_plugin', github: 'coprl/iframe_presenter_plugin', require: false
|
34
|
+
gem 'color_picker_presenter_plugin', github: 'coprl/color_picker_presenter_plugin', require: false
|
35
|
+
gem 'timer_presenter_plugin', github: 'coprl/timer_presenter_plugin', require: false
|
36
|
+
gem 'animate_presenter_plugin', github: 'coprl/animate_presenter_plugin', require: false
|
31
37
|
|
32
38
|
gem 'rack-cors'
|
33
39
|
gem 'honeybadger' if ENV.fetch('HONEYBADGER_API_KEY'){false}
|
data/Gemfile.lock
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/coprl/animate_presenter_plugin.git
|
3
|
+
revision: 1eb21032ea4bd44113bb4d887df2472d5cd10a8f
|
4
|
+
specs:
|
5
|
+
animate_presenter_plugin (0.0.1)
|
6
|
+
|
1
7
|
GIT
|
2
8
|
remote: https://github.com/coprl/cacheable_presenter_plugin.git
|
3
9
|
revision: 262ac076d70d94b111b9ccb692dfc9225c7cc6c6
|
@@ -10,6 +16,18 @@ GIT
|
|
10
16
|
specs:
|
11
17
|
chart_presenter_plugin (0.1.0)
|
12
18
|
|
19
|
+
GIT
|
20
|
+
remote: https://github.com/coprl/clipboard_presenter_plugin.git
|
21
|
+
revision: 3de13cd7b858d68f4d2060bcbd44683b5ea755f8
|
22
|
+
specs:
|
23
|
+
clipboard_presenter_plugin (0.1.0)
|
24
|
+
|
25
|
+
GIT
|
26
|
+
remote: https://github.com/coprl/color_picker_presenter_plugin.git
|
27
|
+
revision: 73807e71d3c9410ff76437323b3f480784f98b47
|
28
|
+
specs:
|
29
|
+
color_picker_presenter_plugin (0.0.1)
|
30
|
+
|
13
31
|
GIT
|
14
32
|
remote: https://github.com/coprl/foo_presenter_plugin.git
|
15
33
|
revision: f9c92ab98388aeb150c9b523e97042c1386aff10
|
@@ -23,12 +41,24 @@ GIT
|
|
23
41
|
specs:
|
24
42
|
google_maps_presenter_plugin (0.1.0)
|
25
43
|
|
44
|
+
GIT
|
45
|
+
remote: https://github.com/coprl/iframe_presenter_plugin.git
|
46
|
+
revision: 7b460d23a277e85e89cb8547538c7af484a873f7
|
47
|
+
specs:
|
48
|
+
iframe_presenter_plugin (0.0.1)
|
49
|
+
|
26
50
|
GIT
|
27
51
|
remote: https://github.com/coprl/image_crop_presenter_plugin.git
|
28
52
|
revision: 33452c5d3b232e93a942280f8429be2707c992ab
|
29
53
|
specs:
|
30
54
|
image_crop_presenter_plugin (0.1.0)
|
31
55
|
|
56
|
+
GIT
|
57
|
+
remote: https://github.com/coprl/markup_presenter_plugin.git
|
58
|
+
revision: a02e7ec5878d73f1263d3d8e7c82ea10e67df02b
|
59
|
+
specs:
|
60
|
+
markup_presenter_plugin (0.0.2)
|
61
|
+
|
32
62
|
GIT
|
33
63
|
remote: https://github.com/coprl/script_presenter_plugin.git
|
34
64
|
revision: c7cea03e73f4752a3df99e4b3ab0d4030f141f4d
|
@@ -41,6 +71,12 @@ GIT
|
|
41
71
|
specs:
|
42
72
|
scroll_to_presenter_plugin (0.0.2)
|
43
73
|
|
74
|
+
GIT
|
75
|
+
remote: https://github.com/coprl/timer_presenter_plugin.git
|
76
|
+
revision: 319392281f17875cbe69aaeb8b5ac26ec78fc7bf
|
77
|
+
specs:
|
78
|
+
timer_presenter_plugin (0.0.1)
|
79
|
+
|
44
80
|
PATH
|
45
81
|
remote: .
|
46
82
|
specs:
|
@@ -168,15 +204,20 @@ PLATFORMS
|
|
168
204
|
x86_64-darwin-19
|
169
205
|
|
170
206
|
DEPENDENCIES
|
207
|
+
animate_presenter_plugin!
|
171
208
|
bundler (>= 1.13)
|
172
209
|
cacheable_presenter_plugin!
|
173
210
|
chart_presenter_plugin!
|
211
|
+
clipboard_presenter_plugin!
|
212
|
+
color_picker_presenter_plugin!
|
174
213
|
coprl!
|
175
214
|
dotenv
|
176
215
|
foo_presenter_plugin!
|
177
216
|
gem-release (~> 2.0)
|
178
217
|
google_maps_presenter_plugin!
|
218
|
+
iframe_presenter_plugin!
|
179
219
|
image_crop_presenter_plugin!
|
220
|
+
markup_presenter_plugin!
|
180
221
|
pry
|
181
222
|
pry-byebug
|
182
223
|
puma
|
@@ -192,6 +233,7 @@ DEPENDENCIES
|
|
192
233
|
shotgun (~> 0.9)
|
193
234
|
simplecov
|
194
235
|
thor (~> 1.1.0)
|
236
|
+
timer_presenter_plugin!
|
195
237
|
watir (~> 6.16)
|
196
238
|
watir-rspec (~> 3.0)
|
197
239
|
webdrivers (~> 4.1)
|
@@ -200,4 +242,4 @@ RUBY VERSION
|
|
200
242
|
ruby 2.7.2p137
|
201
243
|
|
202
244
|
BUNDLED WITH
|
203
|
-
2.2.
|
245
|
+
2.2.20
|
@@ -0,0 +1,144 @@
|
|
1
|
+
Coprl::Presenters.define(:animate, namespace: :plugins) do
|
2
|
+
helpers Demo::Helpers::IndentedGrid
|
3
|
+
attach :top_nav
|
4
|
+
attach :plugin_drawer
|
5
|
+
plugin :animate, :scroll_to
|
6
|
+
page_title 'Animate', id: :page_title
|
7
|
+
|
8
|
+
indented_grid do
|
9
|
+
grid do
|
10
|
+
column 4 do
|
11
|
+
heading "Animations plugin", id: :animate_heading
|
12
|
+
subheading "Just-add-POM CSS animations"
|
13
|
+
body "It is based on [animate.css](https://animate.style/)."
|
14
|
+
end
|
15
|
+
column 8 do
|
16
|
+
[["Attention seekers",
|
17
|
+
%i( bounce
|
18
|
+
flash
|
19
|
+
pulse
|
20
|
+
rubber_band
|
21
|
+
shake_x
|
22
|
+
shake_y
|
23
|
+
head_shake
|
24
|
+
swing
|
25
|
+
tada
|
26
|
+
wobble
|
27
|
+
jello
|
28
|
+
heart_beat)],
|
29
|
+
["Back entrances",
|
30
|
+
%i( back_in_down
|
31
|
+
back_in_left
|
32
|
+
back_in_right
|
33
|
+
back_in_up)],
|
34
|
+
["Back exits",
|
35
|
+
%i( back_out_down
|
36
|
+
back_out_left
|
37
|
+
back_out_right
|
38
|
+
back_out_up)],
|
39
|
+
["Bouncing entrances",
|
40
|
+
%i( bounce_in
|
41
|
+
bounce_in_down
|
42
|
+
bounce_in_left
|
43
|
+
bounce_in_right
|
44
|
+
bounce_in_up)],
|
45
|
+
["Bouncing exits",
|
46
|
+
%i( bounce_out
|
47
|
+
bounce_out_down
|
48
|
+
bounce_out_left
|
49
|
+
bounce_out_right
|
50
|
+
bounce_out_up)],
|
51
|
+
["Fading entrances",
|
52
|
+
%i( fade_in
|
53
|
+
fade_in_down
|
54
|
+
fade_in_down_big
|
55
|
+
fade_in_left
|
56
|
+
fade_in_left_big
|
57
|
+
fade_in_right
|
58
|
+
fade_in_right_big
|
59
|
+
fade_in_up
|
60
|
+
fade_in_up_big
|
61
|
+
fade_in_top_left
|
62
|
+
fade_in_top_right
|
63
|
+
fade_in_bottom_left
|
64
|
+
fade_in_bottom_right)],
|
65
|
+
["Fading exits",
|
66
|
+
%i( fade_out
|
67
|
+
fade_out_down
|
68
|
+
fade_out_down_big
|
69
|
+
fade_out_left
|
70
|
+
fade_out_left_big
|
71
|
+
fade_out_right
|
72
|
+
fade_out_right_big
|
73
|
+
fade_out_up
|
74
|
+
fade_out_up_big
|
75
|
+
fade_out_top_left
|
76
|
+
fade_out_top_right
|
77
|
+
fade_out_bottom_right
|
78
|
+
fade_out_bottom_left)],
|
79
|
+
["Flippers",
|
80
|
+
%i( flip
|
81
|
+
flip_in_x
|
82
|
+
flip_in_y
|
83
|
+
flip_out_x
|
84
|
+
flip_out_y)],
|
85
|
+
["lightspeed",
|
86
|
+
%i( light_speed_in_right
|
87
|
+
light_speed_in_left
|
88
|
+
light_speed_out_right
|
89
|
+
light_speed_out_left)],
|
90
|
+
["Rotating entrances",
|
91
|
+
%i( rotate_in
|
92
|
+
rotate_in_down_left
|
93
|
+
rotate_in_down_right
|
94
|
+
rotate_in_up_left
|
95
|
+
rotate_in_up_right)],
|
96
|
+
["Rotating exits",
|
97
|
+
%i( rotate_out
|
98
|
+
rotate_out_down_left
|
99
|
+
rotate_out_down_right
|
100
|
+
rotate_out_up_left
|
101
|
+
rotate_out_up_right)],
|
102
|
+
["Specials",
|
103
|
+
%i( hinge
|
104
|
+
jack_in_the_box
|
105
|
+
roll_in
|
106
|
+
roll_out)],
|
107
|
+
["Zooming entrances",
|
108
|
+
%i( zoom_in
|
109
|
+
zoom_in_down
|
110
|
+
zoom_in_left
|
111
|
+
zoom_in_right
|
112
|
+
zoom_in_up)],
|
113
|
+
["Zooming exits",
|
114
|
+
%i( zoom_out
|
115
|
+
zoom_out_down
|
116
|
+
zoom_out_left
|
117
|
+
zoom_out_right
|
118
|
+
zoom_out_up)],
|
119
|
+
["Sliding entrances",
|
120
|
+
%i( slide_in_down
|
121
|
+
slide_in_left
|
122
|
+
slide_in_right
|
123
|
+
slide_in_up)],
|
124
|
+
["Sliding exits",
|
125
|
+
%i( slide_out_down
|
126
|
+
slide_out_left
|
127
|
+
slide_out_right
|
128
|
+
slide_out_up)]].each do |animiation_title, animiations|
|
129
|
+
subtitle animiation_title
|
130
|
+
animiations.each do |animation|
|
131
|
+
button animation do
|
132
|
+
event :click do
|
133
|
+
scroll_to :page_title
|
134
|
+
animate :animate_heading, animation, wait: true
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
attach :code, file: __FILE__
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Coprl::Presenters.define(:clipboard, namespace: :plugins) do
|
2
|
+
helpers Demo::Helpers::IndentedGrid
|
3
|
+
attach :top_nav
|
4
|
+
attach :plugin_drawer
|
5
|
+
plugin :clipboard
|
6
|
+
page_title 'Clipboard'
|
7
|
+
|
8
|
+
indented_grid do
|
9
|
+
headline 'Copy'
|
10
|
+
text_field id: :copy_me do
|
11
|
+
value "Don't copy that floppy!"
|
12
|
+
end
|
13
|
+
button :copy, type: :raised do
|
14
|
+
event :click do
|
15
|
+
clipboard copy: :copy_me
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
attach :code, file: __FILE__
|
21
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Coprl::Presenters.define(:color_picker, namespace: :plugins) do
|
2
|
+
helpers Demo::Helpers::IndentedGrid
|
3
|
+
attach :top_nav
|
4
|
+
attach :plugin_drawer
|
5
|
+
plugin :color_picker
|
6
|
+
page_title 'Color picker'
|
7
|
+
|
8
|
+
indented_grid do
|
9
|
+
subheading 'Add a Color picker to your page'
|
10
|
+
color_picker 'color',
|
11
|
+
value: '#f44336',
|
12
|
+
color_per_row: 7,
|
13
|
+
color_size: 25
|
14
|
+
|
15
|
+
attach :code, file: __FILE__
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Coprl::Presenters.define(:iframe, namespace: :plugins) do
|
2
|
+
helpers Demo::Helpers::IndentedGrid
|
3
|
+
attach :top_nav
|
4
|
+
attach :plugin_drawer
|
5
|
+
plugin :iframe
|
6
|
+
page_title 'Iframe'
|
7
|
+
|
8
|
+
|
9
|
+
indented_grid do
|
10
|
+
subheading 'Embed an iFrame'
|
11
|
+
iframe 'https://en.wikipedia.org/wiki/Special:Random', height: "500px",scrolling: :yes # | :no (default)
|
12
|
+
attach :code, file: __FILE__
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Coprl::Presenters.define(:markup, namespace: :plugins) do
|
2
|
+
helpers Demo::Helpers::IndentedGrid
|
3
|
+
attach :top_nav
|
4
|
+
attach :plugin_drawer
|
5
|
+
plugin :markup
|
6
|
+
page_title 'Markup'
|
7
|
+
|
8
|
+
|
9
|
+
indented_grid do
|
10
|
+
markup "<h1>Hello Cruel World</h1>"
|
11
|
+
|
12
|
+
attach :code, file: __FILE__
|
13
|
+
end
|
14
|
+
end
|
@@ -7,7 +7,7 @@ Coprl::Presenters.define(:plugin_drawer, namespace: :plugins) do
|
|
7
7
|
loads :index
|
8
8
|
end
|
9
9
|
end
|
10
|
-
%i(image_crop chart google_maps cacheable script scroll_to).sort.each do |comp|
|
10
|
+
%i(image_crop chart google_maps cacheable script scroll_to clipboard markup iframe color_picker timer animate).sort.each do |comp|
|
11
11
|
item titleize(comp) do
|
12
12
|
event :click do
|
13
13
|
loads comp
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Coprl::Presenters.define(:timer, namespace: :plugins) do
|
2
|
+
helpers Demo::Helpers::IndentedGrid
|
3
|
+
attach :top_nav
|
4
|
+
attach :plugin_drawer
|
5
|
+
plugin :timer
|
6
|
+
page_title 'Timer'
|
7
|
+
|
8
|
+
indented_grid do
|
9
|
+
subheading 'Using an expiration timer'
|
10
|
+
|
11
|
+
count_down_timer DateTime.now + + Rational(130, 60 * 60 * 24), # add 2 minutes and 10 seconds
|
12
|
+
expired_message: 'Something important (shoping cart for example) has Expired',
|
13
|
+
safe_color: 'green',
|
14
|
+
warn_color: 'red',
|
15
|
+
delete_url: 'TODO', # TODO URL to delete something on expiration
|
16
|
+
delete_params: {}, # parmeters to pass on expiration
|
17
|
+
redirect_url: 'TODO', # Where to redirect after delete?
|
18
|
+
redirect_params: {} do
|
19
|
+
icon 'fas fa-stopwatch', color: :white
|
20
|
+
end
|
21
|
+
|
22
|
+
attach :code, file: __FILE__
|
23
|
+
end
|
24
|
+
end
|
@@ -79,7 +79,8 @@ module Coprl
|
|
79
79
|
def create_semantic_release_github_action
|
80
80
|
file('.releaserc')
|
81
81
|
file('.ruby-version')
|
82
|
-
file('semantic-release.yml', 'semantic-release.yml',
|
82
|
+
file('semantic-release.yml', 'semantic-release.yml',
|
83
|
+
dir('.github', 'workflows'), dir('.github', 'workflows'))
|
83
84
|
end
|
84
85
|
|
85
86
|
def create_plugin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coprl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.beta.
|
4
|
+
version: 3.0.0.beta.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Edens
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ice_nine
|
@@ -404,14 +404,20 @@ files:
|
|
404
404
|
- app/demo/patterns/drag_drop.pom
|
405
405
|
- app/demo/patterns/floating_card.pom
|
406
406
|
- app/demo/patterns/search_select.pom
|
407
|
+
- app/demo/plugins/animate.pom
|
407
408
|
- app/demo/plugins/cacheable.pom
|
408
409
|
- app/demo/plugins/chart.pom
|
410
|
+
- app/demo/plugins/clipboard.pom
|
411
|
+
- app/demo/plugins/color_picker.pom
|
409
412
|
- app/demo/plugins/google_maps.pom
|
413
|
+
- app/demo/plugins/iframe.pom
|
410
414
|
- app/demo/plugins/image_crop.pom
|
411
415
|
- app/demo/plugins/index.pom
|
416
|
+
- app/demo/plugins/markup.pom
|
412
417
|
- app/demo/plugins/nav/drawer.pom
|
413
418
|
- app/demo/plugins/script.pom
|
414
419
|
- app/demo/plugins/scroll_to.pom
|
420
|
+
- app/demo/plugins/timer.pom
|
415
421
|
- app/demo/shared/code.pom
|
416
422
|
- app/demo/shared/context_list.pom
|
417
423
|
- app/demo/shared/debug.pom
|