beyond_canvas 0.19.2.pre → 0.23.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -45
  3. data/app/assets/images/icons/adblocker.svg +5 -0
  4. data/app/assets/images/icons/checkbox_checked.svg +1 -1
  5. data/app/assets/images/icons/checkbox_unchecked.svg +1 -1
  6. data/app/assets/images/icons/external_link.svg +1 -0
  7. data/app/assets/images/icons/toggle.svg +1 -0
  8. data/app/assets/images/icons/toggle_checked.svg +3 -0
  9. data/app/assets/images/icons/toggle_unchecked.svg +3 -0
  10. data/app/assets/javascripts/beyond_canvas/base.js +107 -44
  11. data/app/assets/stylesheets/beyond_canvas/base.scss +21 -18
  12. data/app/assets/stylesheets/beyond_canvas/components/_action_bar.scss +11 -6
  13. data/app/assets/stylesheets/beyond_canvas/components/_breadcrumbs.scss +8 -4
  14. data/app/assets/stylesheets/beyond_canvas/components/_buttons.scss +50 -56
  15. data/app/assets/stylesheets/beyond_canvas/components/_cards.scss +20 -12
  16. data/app/assets/stylesheets/beyond_canvas/components/_collapse.scss +33 -0
  17. data/app/assets/stylesheets/beyond_canvas/components/_flash.scss +13 -12
  18. data/app/assets/stylesheets/beyond_canvas/components/_forms.scss +2 -2
  19. data/app/assets/stylesheets/beyond_canvas/components/_inputs.scss +186 -38
  20. data/app/assets/stylesheets/beyond_canvas/components/_links.scss +80 -4
  21. data/app/assets/stylesheets/beyond_canvas/components/_main.scss +3 -3
  22. data/app/assets/stylesheets/beyond_canvas/components/_menu.scss +13 -0
  23. data/app/assets/stylesheets/beyond_canvas/components/_modals.scss +48 -18
  24. data/app/assets/stylesheets/beyond_canvas/components/_notices.scss +12 -13
  25. data/app/assets/stylesheets/beyond_canvas/components/_scrollbox.scss +5 -4
  26. data/app/assets/stylesheets/beyond_canvas/components/_select2.scss +70 -0
  27. data/app/assets/stylesheets/beyond_canvas/components/_statuses.scss +28 -0
  28. data/app/assets/stylesheets/beyond_canvas/components/_step_list.scss +67 -0
  29. data/app/assets/stylesheets/beyond_canvas/components/_tables.scss +10 -5
  30. data/app/assets/stylesheets/beyond_canvas/components/_titles.scss +1 -1
  31. data/app/assets/stylesheets/beyond_canvas/mailer.scss +2 -1
  32. data/app/assets/stylesheets/beyond_canvas/settings/_base_variables.scss +241 -0
  33. data/app/assets/stylesheets/beyond_canvas/settings/{_variables.scss → _constant_variables.scss} +60 -53
  34. data/app/assets/stylesheets/beyond_canvas/settings/_custom_variables.scss +233 -0
  35. data/app/assets/stylesheets/beyond_canvas/settings/_typography.scss +7 -3
  36. data/app/assets/stylesheets/beyond_canvas/utilities/_mixins.scss +39 -3
  37. data/app/controllers/beyond_canvas/authentications_controller.rb +18 -2
  38. data/app/controllers/beyond_canvas/system_controller.rb +3 -1
  39. data/app/controllers/beyond_canvas/webhooks_controller.rb +49 -0
  40. data/app/controllers/concerns/beyond_canvas/add_blocker_check.rb +17 -0
  41. data/app/controllers/concerns/beyond_canvas/custom_styles.rb +54 -0
  42. data/app/controllers/concerns/beyond_canvas/locale_management.rb +31 -8
  43. data/app/controllers/concerns/beyond_canvas/request_validation.rb +6 -0
  44. data/app/form_builders/beyond_canvas/form_builder.rb +62 -49
  45. data/app/helpers/beyond_canvas/application_helper.rb +48 -4
  46. data/app/helpers/beyond_canvas/form_tag_helper.rb +130 -0
  47. data/app/helpers/beyond_canvas/statuses_helper.rb +26 -0
  48. data/app/javascript/beyond_canvas/base.js +1 -1
  49. data/app/javascript/beyond_canvas/initializers/buttons.js +49 -29
  50. data/app/javascript/beyond_canvas/initializers/collapse.js +8 -0
  51. data/app/javascript/beyond_canvas/initializers/flash.js +33 -11
  52. data/app/javascript/beyond_canvas/initializers/inputs.js +9 -4
  53. data/app/javascript/beyond_canvas/initializers/modals.js +46 -10
  54. data/app/views/beyond_canvas/mailer/_header.html.erb +2 -2
  55. data/app/views/beyond_canvas/shared/_breadcrumbs.html.erb +5 -2
  56. data/app/views/beyond_canvas/shared/_flash.html.erb +14 -10
  57. data/app/views/beyond_canvas/shared/_head.html.erb +4 -0
  58. data/app/views/beyond_canvas/shared/_locales.html.erb +1 -1
  59. data/app/views/layouts/beyond_canvas/application.html.erb +1 -2
  60. data/app/views/layouts/beyond_canvas/public.html.erb +1 -1
  61. data/config/initializers/beyond_canvas/constants.rb +13 -0
  62. data/config/initializers/beyond_canvas/session_store.rb +8 -0
  63. data/lib/beyond_canvas/configuration.rb +9 -1
  64. data/lib/beyond_canvas/engine.rb +7 -0
  65. data/lib/beyond_canvas/rails/routes.rb +27 -7
  66. data/lib/beyond_canvas/version.rb +1 -1
  67. data/lib/beyond_canvas/webhook_event_registration.rb +19 -0
  68. data/lib/beyond_canvas.rb +6 -4
  69. data/lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.scss +33 -0
  70. data/lib/generators/beyond_canvas/install/install_generator.rb +6 -0
  71. data/lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb +38 -1
  72. data/lib/generators/beyond_canvas/model/model_generator.rb +3 -0
  73. data/lib/generators/beyond_canvas/webhook/templates/webhooks_controller.rb +22 -0
  74. data/lib/generators/beyond_canvas/webhook/webhook_generator.rb +15 -0
  75. data/lib/models/concerns/authentication.rb +10 -3
  76. data/lib/models/concerns/utils.rb +6 -5
  77. data/lib/models/concerns/webhook.rb +123 -0
  78. data/lib/models/shop.rb +1 -0
  79. metadata +73 -40
  80. data/app/assets/stylesheets/beyond_canvas/components/_comments.scss +0 -6
  81. data/app/assets/stylesheets/beyond_canvas/components/_containers.scss +0 -37
  82. data/app/views/beyond_canvas/shared/_modal.html.erb +0 -6
  83. data/config/routes.rb +0 -12
data/lib/models/shop.rb CHANGED
@@ -7,6 +7,7 @@ module BeyondCanvas
7
7
 
8
8
  include ::BeyondCanvas::Models::Concerns::Authentication
9
9
  include ::BeyondCanvas::Models::Concerns::Utils
10
+ include ::BeyondCanvas::Models::Concerns::Webhook
10
11
  end
11
12
  end
12
13
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2.pre
4
+ version: 0.23.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
8
8
  - Kathia Salazar
9
9
  - German San Emeterio
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-11-02 00:00:00.000000000 Z
13
+ date: 2021-09-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: attr_encrypted
@@ -30,30 +30,30 @@ dependencies:
30
30
  name: beyond_api
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: '0.11'
35
+ version: 0.18.0.pre
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '0.11'
42
+ version: 0.18.0.pre
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: bourbon
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '5.1'
49
+ version: '7.0'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '5.1'
56
+ version: '7.0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: colorize
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -111,81 +111,95 @@ dependencies:
111
111
  - !ruby/object:Gem::Version
112
112
  version: '4.4'
113
113
  - !ruby/object:Gem::Dependency
114
- name: premailer-rails
114
+ name: jwt
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '1.11'
119
+ version: '2.2'
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - "~>"
125
125
  - !ruby/object:Gem::Version
126
- version: '1.11'
126
+ version: '2.2'
127
127
  - !ruby/object:Gem::Dependency
128
- name: sassc-rails
128
+ name: loaf
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: '2.1'
133
+ version: '0.9'
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: '2.1'
140
+ version: '0.9'
141
141
  - !ruby/object:Gem::Dependency
142
- name: sprockets
142
+ name: premailer-rails
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- version: '3.0'
148
- - - "<"
145
+ - - "~>"
149
146
  - !ruby/object:Gem::Version
150
- version: '4.1'
147
+ version: '1.11'
151
148
  type: :runtime
152
149
  prerelease: false
153
150
  version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '1.11'
155
+ - !ruby/object:Gem::Dependency
156
+ name: rails
157
+ requirement: !ruby/object:Gem::Requirement
154
158
  requirements:
155
159
  - - ">="
156
160
  - !ruby/object:Gem::Version
157
- version: '3.0'
158
- - - "<"
161
+ version: 5.1.7
162
+ type: :runtime
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
159
167
  - !ruby/object:Gem::Version
160
- version: '4.1'
168
+ version: 5.1.7
161
169
  - !ruby/object:Gem::Dependency
162
- name: loaf
170
+ name: sassc-rails
163
171
  requirement: !ruby/object:Gem::Requirement
164
172
  requirements:
165
173
  - - "~>"
166
174
  - !ruby/object:Gem::Version
167
- version: '0.9'
175
+ version: '2.1'
168
176
  type: :runtime
169
177
  prerelease: false
170
178
  version_requirements: !ruby/object:Gem::Requirement
171
179
  requirements:
172
180
  - - "~>"
173
181
  - !ruby/object:Gem::Version
174
- version: '0.9'
182
+ version: '2.1'
175
183
  - !ruby/object:Gem::Dependency
176
- name: jwt
184
+ name: sprockets
177
185
  requirement: !ruby/object:Gem::Requirement
178
186
  requirements:
179
- - - "~>"
187
+ - - ">="
180
188
  - !ruby/object:Gem::Version
181
- version: '2.2'
189
+ version: '3.0'
190
+ - - "<"
191
+ - !ruby/object:Gem::Version
192
+ version: '4.1'
182
193
  type: :runtime
183
194
  prerelease: false
184
195
  version_requirements: !ruby/object:Gem::Requirement
185
196
  requirements:
186
- - - "~>"
197
+ - - ">="
187
198
  - !ruby/object:Gem::Version
188
- version: '2.2'
199
+ version: '3.0'
200
+ - - "<"
201
+ - !ruby/object:Gem::Version
202
+ version: '4.1'
189
203
  - !ruby/object:Gem::Dependency
190
204
  name: rubocop-rails
191
205
  requirement: !ruby/object:Gem::Requirement
@@ -215,10 +229,12 @@ files:
215
229
  - README.md
216
230
  - Rakefile
217
231
  - app/assets/config/beyond_canvas_manifest.js
232
+ - app/assets/images/icons/adblocker.svg
218
233
  - app/assets/images/icons/arrow_right.svg
219
234
  - app/assets/images/icons/checkbox_checked.svg
220
235
  - app/assets/images/icons/checkbox_unchecked.svg
221
236
  - app/assets/images/icons/close.svg
237
+ - app/assets/images/icons/external_link.svg
222
238
  - app/assets/images/icons/file.svg
223
239
  - app/assets/images/icons/flash_checkbox.svg
224
240
  - app/assets/images/icons/flash_close.svg
@@ -228,6 +244,9 @@ files:
228
244
  - app/assets/images/icons/home.svg
229
245
  - app/assets/images/icons/radiobutton_checked.svg
230
246
  - app/assets/images/icons/radiobutton_unchecked.svg
247
+ - app/assets/images/icons/toggle.svg
248
+ - app/assets/images/icons/toggle_checked.svg
249
+ - app/assets/images/icons/toggle_unchecked.svg
231
250
  - app/assets/javascripts/beyond_canvas/base.js
232
251
  - app/assets/stylesheets/beyond_canvas/base.scss
233
252
  - app/assets/stylesheets/beyond_canvas/components/_action_bar.scss
@@ -235,8 +254,7 @@ files:
235
254
  - app/assets/stylesheets/beyond_canvas/components/_breadcrumbs.scss
236
255
  - app/assets/stylesheets/beyond_canvas/components/_buttons.scss
237
256
  - app/assets/stylesheets/beyond_canvas/components/_cards.scss
238
- - app/assets/stylesheets/beyond_canvas/components/_comments.scss
239
- - app/assets/stylesheets/beyond_canvas/components/_containers.scss
257
+ - app/assets/stylesheets/beyond_canvas/components/_collapse.scss
240
258
  - app/assets/stylesheets/beyond_canvas/components/_debug.scss
241
259
  - app/assets/stylesheets/beyond_canvas/components/_flash.scss
242
260
  - app/assets/stylesheets/beyond_canvas/components/_forms.scss
@@ -252,22 +270,30 @@ files:
252
270
  - app/assets/stylesheets/beyond_canvas/components/_notices.scss
253
271
  - app/assets/stylesheets/beyond_canvas/components/_relative.scss
254
272
  - app/assets/stylesheets/beyond_canvas/components/_scrollbox.scss
273
+ - app/assets/stylesheets/beyond_canvas/components/_select2.scss
255
274
  - app/assets/stylesheets/beyond_canvas/components/_sidebar.scss
256
275
  - app/assets/stylesheets/beyond_canvas/components/_spinner.scss
276
+ - app/assets/stylesheets/beyond_canvas/components/_statuses.scss
277
+ - app/assets/stylesheets/beyond_canvas/components/_step_list.scss
257
278
  - app/assets/stylesheets/beyond_canvas/components/_tables.scss
258
279
  - app/assets/stylesheets/beyond_canvas/components/_texts.scss
259
280
  - app/assets/stylesheets/beyond_canvas/components/_titles.scss
260
281
  - app/assets/stylesheets/beyond_canvas/mailer.scss
282
+ - app/assets/stylesheets/beyond_canvas/settings/_base_variables.scss
261
283
  - app/assets/stylesheets/beyond_canvas/settings/_breakpoints.scss
284
+ - app/assets/stylesheets/beyond_canvas/settings/_constant_variables.scss
285
+ - app/assets/stylesheets/beyond_canvas/settings/_custom_variables.scss
262
286
  - app/assets/stylesheets/beyond_canvas/settings/_reset_css.scss
263
287
  - app/assets/stylesheets/beyond_canvas/settings/_typography.scss
264
- - app/assets/stylesheets/beyond_canvas/settings/_variables.scss
265
288
  - app/assets/stylesheets/beyond_canvas/utilities/_functions.scss
266
289
  - app/assets/stylesheets/beyond_canvas/utilities/_mixins.scss
267
290
  - app/controllers/beyond_canvas/application_controller.rb
268
291
  - app/controllers/beyond_canvas/authentications_controller.rb
269
292
  - app/controllers/beyond_canvas/system_controller.rb
293
+ - app/controllers/beyond_canvas/webhooks_controller.rb
294
+ - app/controllers/concerns/beyond_canvas/add_blocker_check.rb
270
295
  - app/controllers/concerns/beyond_canvas/authentication.rb
296
+ - app/controllers/concerns/beyond_canvas/custom_styles.rb
271
297
  - app/controllers/concerns/beyond_canvas/locale_management.rb
272
298
  - app/controllers/concerns/beyond_canvas/request_validation.rb
273
299
  - app/controllers/concerns/beyond_canvas/status_codes.rb
@@ -277,9 +303,12 @@ files:
277
303
  - app/helpers/beyond_canvas/cockpit_app_helper.rb
278
304
  - app/helpers/beyond_canvas/controller_helper.rb
279
305
  - app/helpers/beyond_canvas/debug_helper.rb
306
+ - app/helpers/beyond_canvas/form_tag_helper.rb
280
307
  - app/helpers/beyond_canvas/locale_switch_helper.rb
308
+ - app/helpers/beyond_canvas/statuses_helper.rb
281
309
  - app/javascript/beyond_canvas/base.js
282
310
  - app/javascript/beyond_canvas/initializers/buttons.js
311
+ - app/javascript/beyond_canvas/initializers/collapse.js
283
312
  - app/javascript/beyond_canvas/initializers/flash.js
284
313
  - app/javascript/beyond_canvas/initializers/inputs.js
285
314
  - app/javascript/beyond_canvas/initializers/modals.js
@@ -296,15 +325,15 @@ files:
296
325
  - app/views/beyond_canvas/shared/_locales.html.erb
297
326
  - app/views/beyond_canvas/shared/_logo.html.erb
298
327
  - app/views/beyond_canvas/shared/_menu.html.erb
299
- - app/views/beyond_canvas/shared/_modal.html.erb
300
328
  - app/views/beyond_canvas/shared/_sidebar.html.erb
301
329
  - app/views/layouts/beyond_canvas/application.html.erb
302
330
  - app/views/layouts/beyond_canvas/mailer.html.erb
303
331
  - app/views/layouts/beyond_canvas/public.html.erb
332
+ - config/initializers/beyond_canvas/constants.rb
304
333
  - config/initializers/beyond_canvas/filter_parameter_logging.rb
305
334
  - config/initializers/beyond_canvas/form_utils.rb
335
+ - config/initializers/beyond_canvas/session_store.rb
306
336
  - config/locales/en.yml
307
- - config/routes.rb
308
337
  - lib/beyond_canvas.rb
309
338
  - lib/beyond_canvas/asset_registration.rb
310
339
  - lib/beyond_canvas/configuration.rb
@@ -313,6 +342,7 @@ files:
313
342
  - lib/beyond_canvas/parameter_sanitizer.rb
314
343
  - lib/beyond_canvas/rails/routes.rb
315
344
  - lib/beyond_canvas/version.rb
345
+ - lib/beyond_canvas/webhook_event_registration.rb
316
346
  - lib/generators/beyond_canvas/assets/assets_generator.rb
317
347
  - lib/generators/beyond_canvas/assets/templates/beyond_canvas.js
318
348
  - lib/generators/beyond_canvas/assets/templates/beyond_canvas.scss
@@ -329,18 +359,21 @@ files:
329
359
  - lib/generators/beyond_canvas/model/templates/migration.erb
330
360
  - lib/generators/beyond_canvas/model/templates/model.erb
331
361
  - lib/generators/beyond_canvas/views/views_generator.rb
362
+ - lib/generators/beyond_canvas/webhook/templates/webhooks_controller.rb
363
+ - lib/generators/beyond_canvas/webhook/webhook_generator.rb
332
364
  - lib/generators/beyond_canvas/webpacker/plugins/jquery.js
333
365
  - lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.js
334
366
  - lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.scss
335
367
  - lib/generators/beyond_canvas/webpacker/webpacker_generator.rb
336
368
  - lib/models/concerns/authentication.rb
337
369
  - lib/models/concerns/utils.rb
370
+ - lib/models/concerns/webhook.rb
338
371
  - lib/models/shop.rb
339
372
  homepage: https://github.com/ePages-de/beyond_canvas
340
373
  licenses:
341
374
  - MIT
342
375
  metadata: {}
343
- post_install_message:
376
+ post_install_message:
344
377
  rdoc_options: []
345
378
  require_paths:
346
379
  - lib
@@ -355,8 +388,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
388
  - !ruby/object:Gem::Version
356
389
  version: 1.3.1
357
390
  requirements: []
358
- rubygems_version: 3.1.4
359
- signing_key:
391
+ rubygems_version: 3.1.2
392
+ signing_key:
360
393
  specification_version: 4
361
394
  summary: Open-source framework that provides CSS styles
362
395
  test_files: []
@@ -1,6 +0,0 @@
1
- .comment {
2
- padding: 20px;
3
- box-sizing: border-box;
4
- background: $comment-background;
5
- color: $comment-color;
6
- }
@@ -1,37 +0,0 @@
1
- $columns: 2, 3, 4;
2
-
3
- .container {
4
- width: 100%;
5
- display: flex;
6
- flex-wrap: wrap;
7
-
8
- &--center {
9
- justify-content: center;
10
- }
11
-
12
- &__column {
13
-
14
- @each $column in $columns {
15
-
16
- &--#{$column} {
17
- width: 100%;
18
-
19
- @media (min-width: $laptop) {
20
- width: calc((100% - (#{$column} - 1) * #{$container-spacing}) / #{$column});
21
-
22
- &:not(:last-child) {
23
- margin-right: $container-spacing;
24
- }
25
- }
26
-
27
- &:not(:last-child) {
28
- margin-bottom: $container-spacing;
29
-
30
- @media (min-width: $laptop) {
31
- margin-bottom: 0;
32
- }
33
- }
34
- }
35
- }
36
- }
37
- }
@@ -1,6 +0,0 @@
1
- <div class="modal__background" id="modal">
2
- <div class="relative card card--padding">
3
- <span onClick= "$.closeModal()"><%= inline_svg_tag 'icons/close.svg', class: 'modal__close' %></span>
4
- <div id="modal__content"></div>
5
- </div>
6
- </div>
data/config/routes.rb DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- BeyondCanvas::Engine.routes.draw do
4
- put 'locale', to: 'system#update_locale', as: :update_locale
5
-
6
- def create_default_routes
7
- get 'callback', to: 'authentications#new'
8
- post 'callback', to: 'authentications#install'
9
- end
10
-
11
- create_default_routes unless BeyondCanvas.use_rails_app_controller
12
- end