shoelace-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +85 -0
- data/.gitignore +20 -0
- data/Appraisals +25 -0
- data/CHANGELOG.md +3 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +21 -0
- data/README.md +178 -0
- data/Rakefile +27 -0
- data/app/helpers/shoelace/form_helper.rb +451 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/dist/.keep +0 -0
- data/dist/types/.keep +0 -0
- data/gemfiles/rails_50.gemfile +12 -0
- data/gemfiles/rails_51.gemfile +11 -0
- data/gemfiles/rails_52.gemfile +11 -0
- data/gemfiles/rails_60.gemfile +11 -0
- data/gemfiles/rails_61.gemfile +11 -0
- data/gemfiles/rails_70.gemfile +11 -0
- data/gemfiles/rails_edge.gemfile +14 -0
- data/lib/shoelace/engine.rb +8 -0
- data/lib/shoelace/rails/version.rb +7 -0
- data/lib/shoelace/rails.rb +10 -0
- data/lib/shoelace/testing.rb +40 -0
- data/package.json +50 -0
- data/rollup.config.js +49 -0
- data/shoelace-rails.gemspec +35 -0
- data/src/index.ts +2 -0
- data/src/turbo/index.ts +6 -0
- data/src/turbo/polyfills/formdata-event.js +27 -0
- data/src/turbo/sl-turbo-form.ts +110 -0
- data/src/turbolinks/features/confirm.ts +42 -0
- data/src/turbolinks/features/disable.ts +94 -0
- data/src/turbolinks/features/remote.ts +107 -0
- data/src/turbolinks/index.ts +6 -0
- data/src/turbolinks/selectors.ts +38 -0
- data/src/turbolinks/start.ts +38 -0
- data/src/turbolinks/turbolinks.ts +78 -0
- data/src/turbolinks/utils/ajax.ts +146 -0
- data/src/turbolinks/utils/csp.ts +20 -0
- data/src/turbolinks/utils/csrf.ts +33 -0
- data/src/turbolinks/utils/dom.ts +40 -0
- data/src/turbolinks/utils/event.ts +57 -0
- data/src/turbolinks/utils/form.ts +58 -0
- data/test/dummy_app/Gemfile +19 -0
- data/test/dummy_app/Rakefile +6 -0
- data/test/dummy_app/app/controllers/hotwire_forms_controller.rb +46 -0
- data/test/dummy_app/app/controllers/turbolinks_forms_controller.rb +37 -0
- data/test/dummy_app/app/models/user.rb +16 -0
- data/test/dummy_app/app/packs/entrypoints/hotwire.js +1 -0
- data/test/dummy_app/app/packs/entrypoints/turbolinks.js +5 -0
- data/test/dummy_app/app/views/hotwire_forms/form.html.erb +45 -0
- data/test/dummy_app/app/views/hotwire_forms/show.html.erb +5 -0
- data/test/dummy_app/app/views/layouts/application.html.erb +39 -0
- data/test/dummy_app/app/views/turbolinks_forms/form.html.erb +44 -0
- data/test/dummy_app/app/views/turbolinks_forms/show.html.erb +5 -0
- data/test/dummy_app/bin/rails +5 -0
- data/test/dummy_app/bin/webpack +18 -0
- data/test/dummy_app/bin/yarn +18 -0
- data/test/dummy_app/config/application.rb +16 -0
- data/test/dummy_app/config/boot.rb +4 -0
- data/test/dummy_app/config/environment.rb +2 -0
- data/test/dummy_app/config/environments/development.rb +10 -0
- data/test/dummy_app/config/environments/test.rb +18 -0
- data/test/dummy_app/config/routes.rb +4 -0
- data/test/dummy_app/config/webpack/development.js +5 -0
- data/test/dummy_app/config/webpack/production.js +1 -0
- data/test/dummy_app/config/webpack/test.js +5 -0
- data/test/dummy_app/config/webpacker.yml +33 -0
- data/test/dummy_app/config.ru +6 -0
- data/test/dummy_app/package.json +24 -0
- data/test/dummy_app/test/system/hotwire_form_test.rb +65 -0
- data/test/dummy_app/test/system/turbolinks_form_test.rb +39 -0
- data/test/dummy_app/test/test_helper.rb +68 -0
- data/test/helpers/form_helper_test.rb +397 -0
- data/test/test_helper.rb +18 -0
- data/tsconfig.json +19 -0
- data/yarn.lock +249 -0
- metadata +196 -0
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shoelace-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yuki Nishijima
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: actionview
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: actionpack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 5.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: appraisal
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.14.4
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.14.4
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rails-dom-testing
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.0.3
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.0.3
|
83
|
+
description: The shoelace-rails gem adds useful view helper methods for using Shoalace
|
84
|
+
Web Components.
|
85
|
+
email:
|
86
|
+
- yuki24@hey.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".github/workflows/main.yml"
|
92
|
+
- ".gitignore"
|
93
|
+
- Appraisals
|
94
|
+
- CHANGELOG.md
|
95
|
+
- CODE_OF_CONDUCT.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- app/helpers/shoelace/form_helper.rb
|
101
|
+
- bin/console
|
102
|
+
- bin/setup
|
103
|
+
- dist/.keep
|
104
|
+
- dist/types/.keep
|
105
|
+
- gemfiles/rails_50.gemfile
|
106
|
+
- gemfiles/rails_51.gemfile
|
107
|
+
- gemfiles/rails_52.gemfile
|
108
|
+
- gemfiles/rails_60.gemfile
|
109
|
+
- gemfiles/rails_61.gemfile
|
110
|
+
- gemfiles/rails_70.gemfile
|
111
|
+
- gemfiles/rails_edge.gemfile
|
112
|
+
- lib/shoelace/engine.rb
|
113
|
+
- lib/shoelace/rails.rb
|
114
|
+
- lib/shoelace/rails/version.rb
|
115
|
+
- lib/shoelace/testing.rb
|
116
|
+
- package.json
|
117
|
+
- rollup.config.js
|
118
|
+
- shoelace-rails.gemspec
|
119
|
+
- src/index.ts
|
120
|
+
- src/turbo/index.ts
|
121
|
+
- src/turbo/polyfills/formdata-event.js
|
122
|
+
- src/turbo/sl-turbo-form.ts
|
123
|
+
- src/turbolinks/features/confirm.ts
|
124
|
+
- src/turbolinks/features/disable.ts
|
125
|
+
- src/turbolinks/features/remote.ts
|
126
|
+
- src/turbolinks/index.ts
|
127
|
+
- src/turbolinks/selectors.ts
|
128
|
+
- src/turbolinks/start.ts
|
129
|
+
- src/turbolinks/turbolinks.ts
|
130
|
+
- src/turbolinks/utils/ajax.ts
|
131
|
+
- src/turbolinks/utils/csp.ts
|
132
|
+
- src/turbolinks/utils/csrf.ts
|
133
|
+
- src/turbolinks/utils/dom.ts
|
134
|
+
- src/turbolinks/utils/event.ts
|
135
|
+
- src/turbolinks/utils/form.ts
|
136
|
+
- test/dummy_app/Gemfile
|
137
|
+
- test/dummy_app/Rakefile
|
138
|
+
- test/dummy_app/app/controllers/hotwire_forms_controller.rb
|
139
|
+
- test/dummy_app/app/controllers/turbolinks_forms_controller.rb
|
140
|
+
- test/dummy_app/app/models/user.rb
|
141
|
+
- test/dummy_app/app/packs/entrypoints/hotwire.js
|
142
|
+
- test/dummy_app/app/packs/entrypoints/turbolinks.js
|
143
|
+
- test/dummy_app/app/views/hotwire_forms/form.html.erb
|
144
|
+
- test/dummy_app/app/views/hotwire_forms/show.html.erb
|
145
|
+
- test/dummy_app/app/views/layouts/application.html.erb
|
146
|
+
- test/dummy_app/app/views/turbolinks_forms/form.html.erb
|
147
|
+
- test/dummy_app/app/views/turbolinks_forms/show.html.erb
|
148
|
+
- test/dummy_app/bin/rails
|
149
|
+
- test/dummy_app/bin/webpack
|
150
|
+
- test/dummy_app/bin/yarn
|
151
|
+
- test/dummy_app/config.ru
|
152
|
+
- test/dummy_app/config/application.rb
|
153
|
+
- test/dummy_app/config/boot.rb
|
154
|
+
- test/dummy_app/config/environment.rb
|
155
|
+
- test/dummy_app/config/environments/development.rb
|
156
|
+
- test/dummy_app/config/environments/test.rb
|
157
|
+
- test/dummy_app/config/routes.rb
|
158
|
+
- test/dummy_app/config/webpack/development.js
|
159
|
+
- test/dummy_app/config/webpack/production.js
|
160
|
+
- test/dummy_app/config/webpack/test.js
|
161
|
+
- test/dummy_app/config/webpacker.yml
|
162
|
+
- test/dummy_app/package.json
|
163
|
+
- test/dummy_app/test/system/hotwire_form_test.rb
|
164
|
+
- test/dummy_app/test/system/turbolinks_form_test.rb
|
165
|
+
- test/dummy_app/test/test_helper.rb
|
166
|
+
- test/helpers/form_helper_test.rb
|
167
|
+
- test/test_helper.rb
|
168
|
+
- tsconfig.json
|
169
|
+
- yarn.lock
|
170
|
+
homepage: https://github.com/yuki24/shoelace-rails
|
171
|
+
licenses:
|
172
|
+
- MIT
|
173
|
+
metadata:
|
174
|
+
homepage_uri: https://github.com/yuki24/shoelace-rails
|
175
|
+
source_code_uri: https://github.com/yuki24/shoelace-rails
|
176
|
+
changelog_uri: https://github.com/yuki24/shoelace-rails/releases
|
177
|
+
post_install_message:
|
178
|
+
rdoc_options: []
|
179
|
+
require_paths:
|
180
|
+
- lib
|
181
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: 2.5.0
|
186
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
requirements: []
|
192
|
+
rubygems_version: 3.3.3
|
193
|
+
signing_key:
|
194
|
+
specification_version: 4
|
195
|
+
summary: Rails view helpers Shoelace.style, the design system.
|
196
|
+
test_files: []
|