stimulus_reflex 3.5.0.pre9 → 3.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of stimulus_reflex might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +122 -127
- data/README.md +13 -19
- data/app/assets/javascripts/stimulus_reflex.js +1017 -523
- data/app/assets/javascripts/stimulus_reflex.umd.js +940 -496
- data/app/channels/stimulus_reflex/channel.rb +9 -24
- data/bin/console +0 -2
- data/bin/standardize +2 -1
- data/lib/generators/stimulus_reflex/stimulus_reflex_generator.rb +68 -9
- data/lib/generators/stimulus_reflex/templates/app/controllers/examples_controller.rb.tt +9 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/channels/consumer.js.tt +6 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.esbuild.tt +4 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.importmap.tt +2 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.shakapacker.tt +5 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.vite.tt +1 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/channels/index.js.webpacker.tt +5 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/config/cable_ready.js.tt +4 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/config/index.js.tt +2 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/config/mrujs.js.tt +9 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/config/stimulus_reflex.js.tt +5 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/%file_name%_controller.js.tt +141 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/application.js.tt +11 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/application_controller.js.tt +74 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.esbuild.tt +7 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.importmap.tt +5 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.shakapacker.tt +5 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.vite.tt +5 -0
- data/lib/generators/stimulus_reflex/templates/app/javascript/controllers/index.js.webpacker.tt +5 -0
- data/{test/tmp/app/reflexes/user_reflex.rb → lib/generators/stimulus_reflex/templates/app/reflexes/%file_name%_reflex.rb.tt} +38 -9
- data/lib/generators/stimulus_reflex/templates/app/reflexes/application_reflex.rb.tt +27 -0
- data/lib/generators/stimulus_reflex/templates/app/views/examples/show.html.erb.tt +207 -0
- data/lib/generators/stimulus_reflex/templates/config/initializers/cable_ready.rb +27 -0
- data/lib/generators/stimulus_reflex/templates/config/initializers/stimulus_reflex.rb +18 -13
- data/lib/generators/stimulus_reflex/templates/esbuild.config.mjs.tt +94 -0
- data/lib/install/action_cable.rb +155 -0
- data/lib/install/broadcaster.rb +90 -0
- data/lib/install/bundle.rb +56 -0
- data/lib/install/compression.rb +41 -0
- data/lib/install/config.rb +87 -0
- data/lib/install/development.rb +110 -0
- data/lib/install/esbuild.rb +114 -0
- data/lib/install/example.rb +22 -0
- data/lib/install/importmap.rb +133 -0
- data/lib/install/initializers.rb +25 -0
- data/lib/install/mrujs.rb +133 -0
- data/lib/install/npm_packages.rb +25 -0
- data/lib/install/reflexes.rb +25 -0
- data/lib/install/shakapacker.rb +64 -0
- data/lib/install/spring.rb +54 -0
- data/lib/install/updatable.rb +34 -0
- data/lib/install/vite.rb +64 -0
- data/lib/install/webpacker.rb +90 -0
- data/lib/install/yarn.rb +55 -0
- data/lib/stimulus_reflex/broadcasters/broadcaster.rb +15 -8
- data/lib/stimulus_reflex/broadcasters/page_broadcaster.rb +7 -8
- data/lib/stimulus_reflex/broadcasters/selector_broadcaster.rb +10 -10
- data/lib/stimulus_reflex/broadcasters/update.rb +3 -0
- data/lib/stimulus_reflex/cable_readiness.rb +29 -0
- data/lib/stimulus_reflex/cable_ready_channels.rb +6 -5
- data/lib/stimulus_reflex/callbacks.rb +17 -1
- data/lib/stimulus_reflex/concern_enhancer.rb +6 -4
- data/lib/stimulus_reflex/configuration.rb +12 -2
- data/lib/stimulus_reflex/dataset.rb +11 -1
- data/lib/stimulus_reflex/engine.rb +16 -9
- data/lib/stimulus_reflex/html/document.rb +59 -0
- data/lib/stimulus_reflex/html/document_fragment.rb +13 -0
- data/lib/stimulus_reflex/importmap.rb +6 -3
- data/lib/stimulus_reflex/installer.rb +274 -0
- data/lib/stimulus_reflex/open_struct_fix.rb +2 -0
- data/lib/stimulus_reflex/reflex.rb +40 -31
- data/lib/stimulus_reflex/reflex_data.rb +19 -3
- data/lib/stimulus_reflex/reflex_factory.rb +6 -3
- data/lib/stimulus_reflex/request_parameters.rb +2 -0
- data/lib/stimulus_reflex/utils/logger.rb +10 -0
- data/lib/stimulus_reflex/utils/sanity_checker.rb +8 -48
- data/lib/stimulus_reflex/version.rb +1 -1
- data/lib/stimulus_reflex/version_checker.rb +54 -0
- data/lib/stimulus_reflex.rb +2 -0
- data/lib/tasks/stimulus_reflex/stimulus_reflex.rake +250 -0
- data/package.json +36 -28
- data/{rollup.config.js → rollup.config.mjs} +6 -24
- data/stimulus_reflex.gemspec +16 -19
- data/yarn.lock +1331 -748
- metadata +129 -79
- data/LATEST +0 -1
- data/app/assets/javascripts/stimulus_reflex.min.js +0 -2
- data/app/assets/javascripts/stimulus_reflex.min.js.map +0 -1
- data/app/assets/javascripts/stimulus_reflex.umd.min.js +0 -905
- data/app/assets/javascripts/stimulus_reflex.umd.min.js.map +0 -1
- data/lib/generators/stimulus_reflex/initializer_generator.rb +0 -14
- data/test/broadcasters/broadcaster_test.rb +0 -11
- data/test/broadcasters/broadcaster_test_case.rb +0 -39
- data/test/broadcasters/nothing_broadcaster_test.rb +0 -31
- data/test/broadcasters/page_broadcaster_test.rb +0 -79
- data/test/broadcasters/selector_broadcaster_test.rb +0 -173
- data/test/callbacks_test.rb +0 -652
- data/test/concern_enhancer_test.rb +0 -54
- data/test/element_test.rb +0 -254
- data/test/generators/stimulus_reflex_generator_test.rb +0 -58
- data/test/reflex_test.rb +0 -43
- data/test/test_helper.rb +0 -71
- data/test/tmp/app/reflexes/application_reflex.rb +0 -12
- data/yarn-error.log +0 -4964
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9e4f16a6c108abed76ee50881ec95b7595a8182092422eaec27a9ba32cfb3b6
|
4
|
+
data.tar.gz: 5f463ec6bedc1462e477714599f68a9c22479114af4284de427caac9144cf71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f05665f72b18c7cd0afee54fa099ec29df4e736fa83d8ec87756a3be80be3402d74d715cafa70b41092091794d2fc4a002e6998d676574365e5b756f53eaa6a0
|
7
|
+
data.tar.gz: f9d044f8d60a6154aab10ed680b51da5b6afc499d35a19a4eaefb233164519f74aef05e2583fe9f6194bf4989f6894a3065f3de164658ea9691da9df0dec030d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,207 +1,203 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stimulus_reflex (3.5.0.
|
5
|
-
actioncable (>= 5.2)
|
6
|
-
actionpack (>= 5.2)
|
7
|
-
actionview (>= 5.2)
|
8
|
-
activesupport (>= 5.2)
|
9
|
-
cable_ready (>= 5.0.0.
|
10
|
-
nokogiri
|
11
|
-
rack
|
12
|
-
railties (>= 5.2)
|
13
|
-
redis
|
4
|
+
stimulus_reflex (3.5.0.rc1)
|
5
|
+
actioncable (>= 5.2, < 8)
|
6
|
+
actionpack (>= 5.2, < 8)
|
7
|
+
actionview (>= 5.2, < 8)
|
8
|
+
activesupport (>= 5.2, < 8)
|
9
|
+
cable_ready (>= 5.0.0.rc1)
|
10
|
+
nokogiri (~> 1.0)
|
11
|
+
rack (>= 2, < 4)
|
12
|
+
railties (>= 5.2, < 8)
|
13
|
+
redis (>= 4.0, < 6.0)
|
14
14
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
-
actioncable (7.0.2
|
19
|
-
actionpack (= 7.0.2
|
20
|
-
activesupport (= 7.0.2
|
18
|
+
actioncable (7.0.4.2)
|
19
|
+
actionpack (= 7.0.4.2)
|
20
|
+
activesupport (= 7.0.4.2)
|
21
21
|
nio4r (~> 2.0)
|
22
22
|
websocket-driver (>= 0.6.1)
|
23
|
-
actionmailbox (7.0.2
|
24
|
-
actionpack (= 7.0.2
|
25
|
-
activejob (= 7.0.2
|
26
|
-
activerecord (= 7.0.2
|
27
|
-
activestorage (= 7.0.2
|
28
|
-
activesupport (= 7.0.2
|
23
|
+
actionmailbox (7.0.4.2)
|
24
|
+
actionpack (= 7.0.4.2)
|
25
|
+
activejob (= 7.0.4.2)
|
26
|
+
activerecord (= 7.0.4.2)
|
27
|
+
activestorage (= 7.0.4.2)
|
28
|
+
activesupport (= 7.0.4.2)
|
29
29
|
mail (>= 2.7.1)
|
30
30
|
net-imap
|
31
31
|
net-pop
|
32
32
|
net-smtp
|
33
|
-
actionmailer (7.0.2
|
34
|
-
actionpack (= 7.0.2
|
35
|
-
actionview (= 7.0.2
|
36
|
-
activejob (= 7.0.2
|
37
|
-
activesupport (= 7.0.2
|
33
|
+
actionmailer (7.0.4.2)
|
34
|
+
actionpack (= 7.0.4.2)
|
35
|
+
actionview (= 7.0.4.2)
|
36
|
+
activejob (= 7.0.4.2)
|
37
|
+
activesupport (= 7.0.4.2)
|
38
38
|
mail (~> 2.5, >= 2.5.4)
|
39
39
|
net-imap
|
40
40
|
net-pop
|
41
41
|
net-smtp
|
42
42
|
rails-dom-testing (~> 2.0)
|
43
|
-
actionpack (7.0.2
|
44
|
-
actionview (= 7.0.2
|
45
|
-
activesupport (= 7.0.2
|
43
|
+
actionpack (7.0.4.2)
|
44
|
+
actionview (= 7.0.4.2)
|
45
|
+
activesupport (= 7.0.4.2)
|
46
46
|
rack (~> 2.0, >= 2.2.0)
|
47
47
|
rack-test (>= 0.6.3)
|
48
48
|
rails-dom-testing (~> 2.0)
|
49
49
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
50
|
-
actiontext (7.0.2
|
51
|
-
actionpack (= 7.0.2
|
52
|
-
activerecord (= 7.0.2
|
53
|
-
activestorage (= 7.0.2
|
54
|
-
activesupport (= 7.0.2
|
50
|
+
actiontext (7.0.4.2)
|
51
|
+
actionpack (= 7.0.4.2)
|
52
|
+
activerecord (= 7.0.4.2)
|
53
|
+
activestorage (= 7.0.4.2)
|
54
|
+
activesupport (= 7.0.4.2)
|
55
55
|
globalid (>= 0.6.0)
|
56
56
|
nokogiri (>= 1.8.5)
|
57
|
-
actionview (7.0.2
|
58
|
-
activesupport (= 7.0.2
|
57
|
+
actionview (7.0.4.2)
|
58
|
+
activesupport (= 7.0.4.2)
|
59
59
|
builder (~> 3.1)
|
60
60
|
erubi (~> 1.4)
|
61
61
|
rails-dom-testing (~> 2.0)
|
62
62
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
63
|
-
activejob (7.0.2
|
64
|
-
activesupport (= 7.0.2
|
63
|
+
activejob (7.0.4.2)
|
64
|
+
activesupport (= 7.0.4.2)
|
65
65
|
globalid (>= 0.3.6)
|
66
|
-
activemodel (7.0.2
|
67
|
-
activesupport (= 7.0.2
|
68
|
-
activerecord (7.0.2
|
69
|
-
activemodel (= 7.0.2
|
70
|
-
activesupport (= 7.0.2
|
71
|
-
activestorage (7.0.2
|
72
|
-
actionpack (= 7.0.2
|
73
|
-
activejob (= 7.0.2
|
74
|
-
activerecord (= 7.0.2
|
75
|
-
activesupport (= 7.0.2
|
66
|
+
activemodel (7.0.4.2)
|
67
|
+
activesupport (= 7.0.4.2)
|
68
|
+
activerecord (7.0.4.2)
|
69
|
+
activemodel (= 7.0.4.2)
|
70
|
+
activesupport (= 7.0.4.2)
|
71
|
+
activestorage (7.0.4.2)
|
72
|
+
actionpack (= 7.0.4.2)
|
73
|
+
activejob (= 7.0.4.2)
|
74
|
+
activerecord (= 7.0.4.2)
|
75
|
+
activesupport (= 7.0.4.2)
|
76
76
|
marcel (~> 1.0)
|
77
77
|
mini_mime (>= 1.1.0)
|
78
|
-
activesupport (7.0.2
|
78
|
+
activesupport (7.0.4.2)
|
79
79
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
80
80
|
i18n (>= 1.6, < 2)
|
81
81
|
minitest (>= 5.1)
|
82
82
|
tzinfo (~> 2.0)
|
83
83
|
ast (2.4.2)
|
84
84
|
builder (3.2.4)
|
85
|
-
cable_ready (5.0.0.
|
86
|
-
actioncable (>= 5.2)
|
85
|
+
cable_ready (5.0.0.rc1)
|
87
86
|
actionpack (>= 5.2)
|
88
87
|
actionview (>= 5.2)
|
89
|
-
activerecord (>= 5.2)
|
90
88
|
activesupport (>= 5.2)
|
91
89
|
railties (>= 5.2)
|
92
90
|
thread-local (>= 1.1.0)
|
93
|
-
|
94
|
-
|
91
|
+
concurrent-ruby (1.2.0)
|
92
|
+
connection_pool (2.4.0)
|
95
93
|
crass (1.0.6)
|
96
|
-
|
97
|
-
erubi (1.
|
98
|
-
globalid (1.
|
94
|
+
date (3.3.3)
|
95
|
+
erubi (1.12.0)
|
96
|
+
globalid (1.1.0)
|
99
97
|
activesupport (>= 5.0)
|
100
|
-
i18n (1.
|
98
|
+
i18n (1.12.0)
|
101
99
|
concurrent-ruby (~> 1.0)
|
102
|
-
|
100
|
+
json (2.6.3)
|
101
|
+
language_server-protocol (3.17.0.3)
|
102
|
+
loofah (2.19.1)
|
103
103
|
crass (~> 1.0.2)
|
104
104
|
nokogiri (>= 1.5.9)
|
105
|
-
|
105
|
+
magic_frozen_string_literal (1.2.0)
|
106
|
+
mail (2.8.1)
|
106
107
|
mini_mime (>= 0.1.1)
|
108
|
+
net-imap
|
109
|
+
net-pop
|
110
|
+
net-smtp
|
107
111
|
marcel (1.0.2)
|
108
112
|
method_source (1.0.0)
|
109
113
|
mini_mime (1.1.2)
|
110
|
-
minitest (5.
|
114
|
+
minitest (5.17.0)
|
111
115
|
mocha (1.13.0)
|
112
|
-
net-imap (0.
|
113
|
-
|
116
|
+
net-imap (0.3.4)
|
117
|
+
date
|
114
118
|
net-protocol
|
115
|
-
|
116
|
-
net-pop (0.1.1)
|
117
|
-
digest
|
119
|
+
net-pop (0.1.2)
|
118
120
|
net-protocol
|
121
|
+
net-protocol (0.2.1)
|
119
122
|
timeout
|
120
|
-
net-
|
121
|
-
timeout
|
122
|
-
net-smtp (0.3.1)
|
123
|
-
digest
|
123
|
+
net-smtp (0.3.3)
|
124
124
|
net-protocol
|
125
|
-
timeout
|
126
125
|
nio4r (2.5.8)
|
127
|
-
nokogiri (1.
|
126
|
+
nokogiri (1.14.2-x86_64-darwin)
|
128
127
|
racc (~> 1.4)
|
129
|
-
nokogiri (1.
|
128
|
+
nokogiri (1.14.2-x86_64-linux)
|
130
129
|
racc (~> 1.4)
|
131
|
-
parallel (1.
|
132
|
-
parser (3.
|
130
|
+
parallel (1.22.1)
|
131
|
+
parser (3.2.1.0)
|
133
132
|
ast (~> 2.4.1)
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
activejob (= 7.0.2.3)
|
151
|
-
activemodel (= 7.0.2.3)
|
152
|
-
activerecord (= 7.0.2.3)
|
153
|
-
activestorage (= 7.0.2.3)
|
154
|
-
activesupport (= 7.0.2.3)
|
133
|
+
racc (1.6.2)
|
134
|
+
rack (2.2.6.4)
|
135
|
+
rack-test (2.0.2)
|
136
|
+
rack (>= 1.3)
|
137
|
+
rails (7.0.4.2)
|
138
|
+
actioncable (= 7.0.4.2)
|
139
|
+
actionmailbox (= 7.0.4.2)
|
140
|
+
actionmailer (= 7.0.4.2)
|
141
|
+
actionpack (= 7.0.4.2)
|
142
|
+
actiontext (= 7.0.4.2)
|
143
|
+
actionview (= 7.0.4.2)
|
144
|
+
activejob (= 7.0.4.2)
|
145
|
+
activemodel (= 7.0.4.2)
|
146
|
+
activerecord (= 7.0.4.2)
|
147
|
+
activestorage (= 7.0.4.2)
|
148
|
+
activesupport (= 7.0.4.2)
|
155
149
|
bundler (>= 1.15.0)
|
156
|
-
railties (= 7.0.2
|
150
|
+
railties (= 7.0.4.2)
|
157
151
|
rails-dom-testing (2.0.3)
|
158
152
|
activesupport (>= 4.2.0)
|
159
153
|
nokogiri (>= 1.6)
|
160
|
-
rails-html-sanitizer (1.
|
161
|
-
loofah (~> 2.
|
162
|
-
railties (7.0.2
|
163
|
-
actionpack (= 7.0.2
|
164
|
-
activesupport (= 7.0.2
|
154
|
+
rails-html-sanitizer (1.5.0)
|
155
|
+
loofah (~> 2.19, >= 2.19.1)
|
156
|
+
railties (7.0.4.2)
|
157
|
+
actionpack (= 7.0.4.2)
|
158
|
+
activesupport (= 7.0.4.2)
|
165
159
|
method_source
|
166
160
|
rake (>= 12.2)
|
167
161
|
thor (~> 1.0)
|
168
162
|
zeitwerk (~> 2.5)
|
169
|
-
rainbow (3.
|
163
|
+
rainbow (3.1.1)
|
170
164
|
rake (13.0.6)
|
171
|
-
redis (
|
172
|
-
|
165
|
+
redis (5.0.6)
|
166
|
+
redis-client (>= 0.9.0)
|
167
|
+
redis-client (0.14.0)
|
168
|
+
connection_pool
|
169
|
+
regexp_parser (2.7.0)
|
173
170
|
rexml (3.2.5)
|
174
|
-
rubocop (1.
|
171
|
+
rubocop (1.44.1)
|
172
|
+
json (~> 2.3)
|
175
173
|
parallel (~> 1.10)
|
176
|
-
parser (>= 3.
|
174
|
+
parser (>= 3.2.0.0)
|
177
175
|
rainbow (>= 2.2.2, < 4.0)
|
178
176
|
regexp_parser (>= 1.8, < 3.0)
|
179
|
-
rexml
|
180
|
-
rubocop-ast (>= 1.
|
177
|
+
rexml (>= 3.2.5, < 4.0)
|
178
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
181
179
|
ruby-progressbar (~> 1.7)
|
182
|
-
unicode-display_width (>=
|
183
|
-
rubocop-ast (1.
|
184
|
-
parser (>= 3.
|
185
|
-
rubocop-performance (1.
|
180
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
181
|
+
rubocop-ast (1.26.0)
|
182
|
+
parser (>= 3.2.1.0)
|
183
|
+
rubocop-performance (1.15.2)
|
186
184
|
rubocop (>= 1.7.0, < 2.0)
|
187
185
|
rubocop-ast (>= 0.4.0)
|
188
186
|
ruby-progressbar (1.11.0)
|
189
|
-
standard (1.
|
190
|
-
|
191
|
-
rubocop
|
192
|
-
|
193
|
-
standard
|
194
|
-
strscan (3.0.1)
|
187
|
+
standard (1.24.3)
|
188
|
+
language_server-protocol (~> 3.17.0.2)
|
189
|
+
rubocop (= 1.44.1)
|
190
|
+
rubocop-performance (= 1.15.2)
|
195
191
|
thor (1.2.1)
|
196
192
|
thread-local (1.1.0)
|
197
|
-
timeout (0.2
|
198
|
-
tzinfo (2.0.
|
193
|
+
timeout (0.3.2)
|
194
|
+
tzinfo (2.0.6)
|
199
195
|
concurrent-ruby (~> 1.0)
|
200
|
-
unicode-display_width (2.
|
196
|
+
unicode-display_width (2.4.2)
|
201
197
|
websocket-driver (0.7.5)
|
202
198
|
websocket-extensions (>= 0.1.0)
|
203
199
|
websocket-extensions (0.1.5)
|
204
|
-
zeitwerk (2.
|
200
|
+
zeitwerk (2.6.7)
|
205
201
|
|
206
202
|
PLATFORMS
|
207
203
|
x86_64-darwin-19
|
@@ -209,12 +205,11 @@ PLATFORMS
|
|
209
205
|
|
210
206
|
DEPENDENCIES
|
211
207
|
bundler (~> 2.0)
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
standardrb (~> 1.0)
|
208
|
+
magic_frozen_string_literal (~> 1.2)
|
209
|
+
mocha (~> 1.13)
|
210
|
+
rails (>= 5.2, < 8)
|
211
|
+
rake (~> 13.0)
|
212
|
+
standard (~> 1.24)
|
218
213
|
stimulus_reflex!
|
219
214
|
|
220
215
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<img src="https://
|
2
|
+
<img src="https://github.com/stimulusreflex/stimulus_reflex/blob/main/assets/stimulus-reflex-logo-with-copy.png?raw=1" width="360" />
|
3
3
|
<h1 align="center">Welcome to StimulusReflex 👋</h1>
|
4
4
|
<p align="center">
|
5
5
|
<img src="https://img.shields.io/gem/v/stimulus_reflex.svg?color=red" />
|
@@ -7,12 +7,9 @@
|
|
7
7
|
<a href="https://www.npmjs.com/package/stimulus_reflex">
|
8
8
|
<img alt="downloads" src="https://img.shields.io/npm/dm/stimulus_reflex.svg?color=blue" target="_blank" />
|
9
9
|
</a>
|
10
|
-
<a href="https://github.com/stimulusreflex/stimulus_reflex/blob/
|
10
|
+
<a href="https://github.com/stimulusreflex/stimulus_reflex/blob/main/LICENSE.txt">
|
11
11
|
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
|
12
12
|
</a>
|
13
|
-
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/" target="_blank">
|
14
|
-
<img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-2190-brightgreen.svg?style=flat" />
|
15
|
-
</a>
|
16
13
|
<a href="https://docs.stimulusreflex.com/" target="_blank">
|
17
14
|
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
|
18
15
|
</a>
|
@@ -27,16 +24,13 @@
|
|
27
24
|
<img alt="JavaScript Code Style" src="https://img.shields.io/badge/JavaScript_Code_Style-prettier_standard-ff69b4.svg" />
|
28
25
|
</a>
|
29
26
|
<br />
|
30
|
-
<a href="https://
|
31
|
-
<img alt="Code Quality" src="https://app.codacy.com/project/badge/Grade/d1d72a7060f5467b8696884351cf477f"/>
|
32
|
-
</a>
|
33
|
-
<a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/workflows/Prettier-Standard/badge.svg">
|
27
|
+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/actions/workflows/prettier-standard.yml">
|
34
28
|
<img src="https://github.com/stimulusreflex/stimulus_reflex/workflows/Prettier-Standard/badge.svg" alt="Prettier-Standard" style="max-width:100%;">
|
35
29
|
</a>
|
36
|
-
<a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/workflows/
|
30
|
+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/actions/workflows/standardrb.yml">
|
37
31
|
<img src="https://github.com/stimulusreflex/stimulus_reflex/workflows/StandardRB/badge.svg" alt="StandardRB" style="max-width:100%;">
|
38
32
|
</a>
|
39
|
-
<a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/workflows/
|
33
|
+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/stimulusreflex/stimulus_reflex/actions/workflows/tests.yml">
|
40
34
|
<img src="https://github.com/stimulusreflex/stimulus_reflex/workflows/Tests/badge.svg" alt="Tests">
|
41
35
|
</a>
|
42
36
|
</p>
|
@@ -54,7 +48,7 @@ It works seamlessly with the Rails tooling you already know and love.
|
|
54
48
|
- Server-rendered HTML, delivered in milliseconds over the wire via Websockets
|
55
49
|
- ERB templates and partials, with first-class [ViewComponent](https://github.com/github/view_component) support
|
56
50
|
- [Russian doll caching](https://edgeguides.rubyonrails.org/caching_with_rails.html#russian-doll-caching) and [ActiveJob](https://guides.rubyonrails.org/active_job_basics.html)
|
57
|
-
- [StimulusJS](https://
|
51
|
+
- [StimulusJS](https://stimulus.hotwired.dev/) and [Turbolinks](https://www.youtube.com/watch?v=SWEts0rlezA)/[Turbo Drive](https://turbo.hotwired.dev/reference/drive)
|
58
52
|
- Built with [CableReady](https://www.youtube.com/watch?v=dPzv2qsj5L8), our secret power-move
|
59
53
|
|
60
54
|
**Our goal is to help small teams do big things with familiar tools.**
|
@@ -72,11 +66,11 @@ This project strives to live up to the vision outlined in [The Rails Doctrine](h
|
|
72
66
|
- [Build a Twitter Clone in 10 Minutes](https://youtu.be/F5hA79vKE_E) (video)
|
73
67
|
- [BeastMode](https://beastmode.leastbad.com/) - faceted search, with filtering, sorting and pagination
|
74
68
|
- [StimulusReflex Patterns](https://www.stimulusreflexpatterns.com/patterns/) - single-file SR apps hosted on Glitch
|
75
|
-
- [
|
69
|
+
- [Boxdrop](https://www.boxdrop.io) - a Dropbox-inspired [concept demo](https://github.com/marcoroth/boxdrop/)
|
76
70
|
|
77
71
|
## 👩👩👧 Discord Community
|
78
72
|
|
79
|
-
Please join over
|
73
|
+
Please join over 2000 of us on [Discord](https://discord.gg/stimulus-reflex) for support getting started, as well as active discussions around Rails, Hotwire, Stimulus, Phlex and CableReady.
|
80
74
|
|
81
75
|
![](https://img.shields.io/discord/629472241427415060)
|
82
76
|
|
@@ -84,18 +78,18 @@ Stop by #newcomers and introduce yourselves!
|
|
84
78
|
|
85
79
|
## 💙 Support
|
86
80
|
|
87
|
-
Your best bet is to ask for help on Discord before filing an issue on
|
81
|
+
Your best bet is to ask for help on Discord before filing an issue on GitHub. We are happy to help, and we ask people who need help to come with all relevant code to look at. A git repo is preferred, but Gists are fine, too. If you need a template for reproducing your issue, try [this](https://github.com/leastbad/stimulus_reflex_harness).
|
88
82
|
|
89
83
|
Please note that we are not actively providing support on Stack Overflow. If you post there, we likely won't see it.
|
90
84
|
|
91
85
|
## 🚀 Installation and upgrading
|
92
86
|
|
93
|
-
CLI and manual setup procedures are fully detailed in the [official docs](https://docs.stimulusreflex.com/setup).
|
87
|
+
CLI and manual setup procedures are fully detailed in the [official docs](https://docs.stimulusreflex.com/hello-world/setup.html).
|
94
88
|
|
95
89
|
### Rubygem
|
96
90
|
|
97
91
|
```sh
|
98
|
-
bundle add
|
92
|
+
bundle add stimulus_reflex
|
99
93
|
```
|
100
94
|
|
101
95
|
### JavaScript
|
@@ -115,7 +109,7 @@ yarn add stimulus_reflex
|
|
115
109
|
|
116
110
|
# ...
|
117
111
|
|
118
|
-
pin 'stimulus_reflex', to: 'stimulus_reflex.
|
112
|
+
pin 'stimulus_reflex', to: 'stimulus_reflex.js', preload: true
|
119
113
|
```
|
120
114
|
|
121
115
|
#### Rails Asset pipeline (Sprockets):
|
@@ -123,7 +117,7 @@ pin 'stimulus_reflex', to: 'stimulus_reflex.min.js', preload: true
|
|
123
117
|
```html+erb
|
124
118
|
<!-- app/views/layouts/application.html.erb -->
|
125
119
|
|
126
|
-
<%= javascript_include_tag "stimulus_reflex.umd.
|
120
|
+
<%= javascript_include_tag "stimulus_reflex.umd.js", "data-turbo-track": "reload" %>
|
127
121
|
```
|
128
122
|
|
129
123
|
## 🙏 Contributing
|