block_editor 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +147 -0
  4. data/Rakefile +18 -0
  5. data/app/assets/config/block_editor_manifest.js +1 -0
  6. data/app/assets/stylesheets/block_editor/backend.scss +4 -0
  7. data/app/assets/stylesheets/block_editor/backend/blocks.scss +0 -0
  8. data/app/assets/stylesheets/block_editor/frontend.scss +1 -0
  9. data/app/assets/stylesheets/block_editor/frontend/blocks.scss +0 -0
  10. data/app/controllers/block_editor/application_controller.rb +4 -0
  11. data/app/helpers/block_editor/application_helper.rb +11 -0
  12. data/app/javascript/block_editor/blocks/button/edit.js +240 -0
  13. data/app/javascript/block_editor/blocks/column/edit.js +93 -0
  14. data/app/javascript/block_editor/blocks/image/edit.js +656 -0
  15. data/app/javascript/block_editor/blocks/index.js +263 -0
  16. data/app/javascript/block_editor/components/block-editor/index.js +88 -0
  17. data/app/javascript/block_editor/components/block-editor/styles.scss +39 -0
  18. data/app/javascript/block_editor/components/header/index.js +45 -0
  19. data/app/javascript/block_editor/components/header/redo.js +36 -0
  20. data/app/javascript/block_editor/components/header/styles.scss +14 -0
  21. data/app/javascript/block_editor/components/header/undo.js +36 -0
  22. data/app/javascript/block_editor/components/media-upload/index.js +37 -0
  23. data/app/javascript/block_editor/components/notices/index.js +26 -0
  24. data/app/javascript/block_editor/components/notices/styles.scss +9 -0
  25. data/app/javascript/block_editor/components/sidebar/index.js +31 -0
  26. data/app/javascript/block_editor/components/sidebar/styles.scss +43 -0
  27. data/app/javascript/block_editor/stores/action-types.js +4 -0
  28. data/app/javascript/block_editor/stores/actions.js +41 -0
  29. data/app/javascript/block_editor/stores/controls.js +21 -0
  30. data/app/javascript/block_editor/stores/index.js +30 -0
  31. data/app/javascript/block_editor/stores/reducer.js +20 -0
  32. data/app/javascript/block_editor/stores/resolvers.js +10 -0
  33. data/app/javascript/block_editor/stores/selectors.js +13 -0
  34. data/app/javascript/controllers/block_editor_controller.jsx +42 -0
  35. data/app/javascript/controllers/index.js +6 -0
  36. data/app/javascript/packs/block_editor/application.js +2 -0
  37. data/app/javascript/packs/block_editor/application.scss +108 -0
  38. data/app/jobs/block_editor/application_job.rb +4 -0
  39. data/app/mailers/block_editor/application_mailer.rb +6 -0
  40. data/app/models/block_editor/application_record.rb +5 -0
  41. data/app/models/block_editor/block_list.rb +7 -0
  42. data/app/models/concerns/block_editor/listable.rb +24 -0
  43. data/app/views/layouts/block_editor/application.html.erb +15 -0
  44. data/config/initializers/webpacker_extension.rb +12 -0
  45. data/config/routes.rb +2 -0
  46. data/config/webpack/development.js +5 -0
  47. data/config/webpack/environment.js +3 -0
  48. data/config/webpack/production.js +5 -0
  49. data/config/webpack/test.js +5 -0
  50. data/config/webpacker.yml +92 -0
  51. data/db/migrate/20210312032114_create_block_lists.rb +11 -0
  52. data/lib/block_editor.rb +26 -0
  53. data/lib/block_editor/block_list_renderer.rb +43 -0
  54. data/lib/block_editor/blocks/base.rb +32 -0
  55. data/lib/block_editor/engine.rb +34 -0
  56. data/lib/block_editor/instance.rb +19 -0
  57. data/lib/block_editor/version.rb +3 -0
  58. data/lib/tasks/block_editor_tasks.rake +59 -0
  59. metadata +131 -0
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: block_editor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Patrick Lindsay
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '6.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: webpacker
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.1'
41
+ description: WYSIWYG editor but much better..
42
+ email:
43
+ - ptrick@yamasolutions.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
51
+ - app/assets/config/block_editor_manifest.js
52
+ - app/assets/stylesheets/block_editor/backend.scss
53
+ - app/assets/stylesheets/block_editor/backend/blocks.scss
54
+ - app/assets/stylesheets/block_editor/frontend.scss
55
+ - app/assets/stylesheets/block_editor/frontend/blocks.scss
56
+ - app/controllers/block_editor/application_controller.rb
57
+ - app/helpers/block_editor/application_helper.rb
58
+ - app/javascript/block_editor/blocks/button/edit.js
59
+ - app/javascript/block_editor/blocks/column/edit.js
60
+ - app/javascript/block_editor/blocks/image/edit.js
61
+ - app/javascript/block_editor/blocks/index.js
62
+ - app/javascript/block_editor/components/block-editor/index.js
63
+ - app/javascript/block_editor/components/block-editor/styles.scss
64
+ - app/javascript/block_editor/components/header/index.js
65
+ - app/javascript/block_editor/components/header/redo.js
66
+ - app/javascript/block_editor/components/header/styles.scss
67
+ - app/javascript/block_editor/components/header/undo.js
68
+ - app/javascript/block_editor/components/media-upload/index.js
69
+ - app/javascript/block_editor/components/notices/index.js
70
+ - app/javascript/block_editor/components/notices/styles.scss
71
+ - app/javascript/block_editor/components/sidebar/index.js
72
+ - app/javascript/block_editor/components/sidebar/styles.scss
73
+ - app/javascript/block_editor/stores/action-types.js
74
+ - app/javascript/block_editor/stores/actions.js
75
+ - app/javascript/block_editor/stores/controls.js
76
+ - app/javascript/block_editor/stores/index.js
77
+ - app/javascript/block_editor/stores/reducer.js
78
+ - app/javascript/block_editor/stores/resolvers.js
79
+ - app/javascript/block_editor/stores/selectors.js
80
+ - app/javascript/controllers/block_editor_controller.jsx
81
+ - app/javascript/controllers/index.js
82
+ - app/javascript/packs/block_editor/application.js
83
+ - app/javascript/packs/block_editor/application.scss
84
+ - app/jobs/block_editor/application_job.rb
85
+ - app/mailers/block_editor/application_mailer.rb
86
+ - app/models/block_editor/application_record.rb
87
+ - app/models/block_editor/block_list.rb
88
+ - app/models/concerns/block_editor/listable.rb
89
+ - app/views/layouts/block_editor/application.html.erb
90
+ - config/initializers/webpacker_extension.rb
91
+ - config/routes.rb
92
+ - config/webpack/development.js
93
+ - config/webpack/environment.js
94
+ - config/webpack/production.js
95
+ - config/webpack/test.js
96
+ - config/webpacker.yml
97
+ - db/migrate/20210312032114_create_block_lists.rb
98
+ - lib/block_editor.rb
99
+ - lib/block_editor/block_list_renderer.rb
100
+ - lib/block_editor/blocks/base.rb
101
+ - lib/block_editor/engine.rb
102
+ - lib/block_editor/instance.rb
103
+ - lib/block_editor/version.rb
104
+ - lib/tasks/block_editor_tasks.rake
105
+ homepage: https://github.com/yamasolutions/block-editor
106
+ licenses:
107
+ - MIT
108
+ metadata:
109
+ homepage_uri: https://github.com/yamasolutions/block-editor
110
+ source_code_uri: https://github.com/yamasolutions/block-editor
111
+ changelog_uri: https://github.com/yamasolutions/block-editor/blob/master/CHANGELOG.md
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubygems_version: 3.1.4
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: Ruby on Rails Block Editor
131
+ test_files: []