dante2-editor 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/.babelrc +20 -0
  3. data/.eslint +13 -0
  4. data/.gitignore +15 -0
  5. data/README.md +5 -1
  6. data/dante2.gemspec +2 -4
  7. data/{app → demo}/assets/index.html +2 -2
  8. data/{app → demo}/assets/license.html +1 -1
  9. data/{app → demo}/assets/options.html +1 -5
  10. data/{app → demo}/assets/store.json +0 -0
  11. data/demo/data/poc.js +9 -0
  12. data/demo/demo.js +9 -0
  13. data/demo/initialize.js +7 -0
  14. data/{app → demo}/styles/layout/layout.scss +0 -0
  15. data/{app → demo}/styles/layout/normalize.css +0 -0
  16. data/{app → demo}/styles/layout/scaffold.scss +0 -0
  17. data/{app → demo}/styles/layout/tooltips.scss +0 -0
  18. data/dist/Dante2.js +2995 -0
  19. data/dist/Dante2.min.js +3 -0
  20. data/dist/Dante2.min.js.map +1 -0
  21. data/dist/DanteStyles.css +2 -0
  22. data/dist/DanteStyles.css.map +1 -0
  23. data/dist/DanteStyles.js +102 -0
  24. data/dist/DanteStyles.min.js +2 -0
  25. data/dist/DanteStyles.min.js.map +1 -0
  26. data/dist/dante-vendors.js +48316 -0
  27. data/dist/dante-vendors.min.js +29 -0
  28. data/dist/dante-vendors.min.js.map +1 -0
  29. data/{app/styles/fonts/dante → dist/fonts}/dante.eot +0 -0
  30. data/{app/styles/fonts/dante → dist/fonts}/dante.svg +0 -0
  31. data/{app/styles/fonts/dante → dist/fonts}/dante.ttf +0 -0
  32. data/{app/styles/fonts/dante → dist/fonts}/dante.woff +0 -0
  33. data/{app/styles/fonts/dante → dist/fonts}/fontello.eot +0 -0
  34. data/{app/styles/fonts/dante → dist/fonts}/fontello.svg +0 -0
  35. data/{app/styles/fonts/dante → dist/fonts}/fontello.ttf +0 -0
  36. data/{app/styles/fonts/dante → dist/fonts}/fontello.woff +0 -0
  37. data/docs/app.css +430 -1
  38. data/docs/app.css.map +1 -1
  39. data/docs/app.js +62 -2
  40. data/docs/app.js.map +1 -1
  41. data/docs/dante-vendors.js +49513 -22
  42. data/docs/dante-vendors.js.map +1 -1
  43. data/docs/dante.css +1602 -1
  44. data/docs/dante.css.map +1 -1
  45. data/docs/dante.js +3310 -3
  46. data/docs/dante.js.map +1 -1
  47. data/docs/doc.html +3 -7
  48. data/docs/index.html +4 -4
  49. data/docs/license.html +3 -3
  50. data/docs/options.html +53 -0
  51. data/package.json +47 -17
  52. data/rb_lib/dante2-editor/rails.rb +15 -0
  53. data/{lib → rb_lib}/dante2-editor/version.rb +1 -1
  54. data/{lib → rb_lib}/dante2-editor.rb +0 -0
  55. data/src/components/blocks/embed.js +126 -0
  56. data/src/components/blocks/image.js +377 -0
  57. data/src/components/blocks/placeholder.js +68 -0
  58. data/src/components/blocks/video.js +80 -0
  59. data/src/components/dante.js +291 -0
  60. data/src/components/dante_editor.js +928 -0
  61. data/src/components/debug.js +104 -0
  62. data/src/components/decorators/link.js +64 -0
  63. data/src/components/popovers/addButton.js +318 -0
  64. data/src/components/popovers/image.js +188 -0
  65. data/src/components/popovers/link.js +107 -0
  66. data/src/components/popovers/toolTip.js +402 -0
  67. data/{app/utils/logger.coffee → src/components/wrapper.js} +0 -0
  68. data/{app → src}/images/dante/media-loading-placeholder.png +0 -0
  69. data/{app → src}/images/site/dante-demo.png +0 -0
  70. data/{app → src}/images/site/dante-editor-logo.png +0 -0
  71. data/{app → src}/images/site/github-logo.png +0 -0
  72. data/src/index.js +9 -0
  73. data/{app → src}/model/index.js +0 -0
  74. data/src/style.js +3 -0
  75. data/{app → src}/styles/dante/_animations.scss +0 -0
  76. data/{app → src}/styles/dante/_caption.scss +0 -0
  77. data/{app → src}/styles/dante/_debug.scss +0 -0
  78. data/{app → src}/styles/dante/_fonts.scss +0 -0
  79. data/{app → src}/styles/dante/_graf.scss +0 -0
  80. data/{app → src}/styles/dante/_icons.scss +0 -0
  81. data/{app → src}/styles/dante/_media.scss +0 -0
  82. data/{app → src}/styles/dante/_menu.scss +0 -0
  83. data/{app → src}/styles/dante/_needsorder.scss +0 -0
  84. data/{app → src}/styles/dante/_popover.scss +0 -0
  85. data/{app → src}/styles/dante/_post.scss +0 -0
  86. data/{app → src}/styles/dante/_scaffold.scss +0 -0
  87. data/{app → src}/styles/dante/_tooltip.scss +0 -0
  88. data/{app → src}/styles/dante/_utilities.scss +0 -0
  89. data/{app → src}/styles/dante/_variables.scss +0 -0
  90. data/{app → src}/styles/dante/blame.scss +0 -0
  91. data/{app → src}/styles/dante.scss +0 -0
  92. data/{app → src}/styles/draft.css +0 -0
  93. data/src/styles/fonts/dante/dante.eot +0 -0
  94. data/src/styles/fonts/dante/dante.svg +18 -0
  95. data/src/styles/fonts/dante/dante.ttf +0 -0
  96. data/src/styles/fonts/dante/dante.woff +0 -0
  97. data/src/styles/fonts/dante/fontello.eot +0 -0
  98. data/src/styles/fonts/dante/fontello.svg +36 -0
  99. data/src/styles/fonts/dante/fontello.ttf +0 -0
  100. data/src/styles/fonts/dante/fontello.woff +0 -0
  101. data/src/utils/find_entities.js +17 -0
  102. data/src/utils/html2content.js +127 -0
  103. data/src/utils/save_content.js +80 -0
  104. data/{app → src}/utils/selection.js +0 -0
  105. data/tools/.eslintrc +9 -0
  106. data/tools/amd/README.md +7 -0
  107. data/tools/amd/bower.json +19 -0
  108. data/tools/amd/build.js +36 -0
  109. data/tools/build-cli.js +46 -0
  110. data/tools/build.js +30 -0
  111. data/tools/buildBabel.js +32 -0
  112. data/tools/constants.js +10 -0
  113. data/tools/dist/build.js +13 -0
  114. data/tools/docs/build.js +12 -0
  115. data/tools/es/build.js +27 -0
  116. data/tools/exec.js +50 -0
  117. data/tools/fs-utils.js +35 -0
  118. data/tools/lib/build.js +14 -0
  119. data/tools/promisify.js +14 -0
  120. data/webpack/base.config.js +89 -0
  121. data/webpack/docs.config.js +147 -0
  122. data/webpack/webpack.config.js +78 -0
  123. data/webpack.config-doc.js +5 -0
  124. data/webpack.config.js +3 -147
  125. data/yarn.lock +973 -718
  126. metadata +108 -64
  127. data/app/components/App.cjsx +0 -1083
  128. data/app/components/blocks/embed.cjsx +0 -109
  129. data/app/components/blocks/image.cjsx +0 -316
  130. data/app/components/blocks/placeholder.cjsx +0 -60
  131. data/app/components/blocks/video.cjsx +0 -75
  132. data/app/components/debug.cjsx +0 -96
  133. data/app/components/decorators/link.cjsx +0 -61
  134. data/app/components/popovers/addButton.cjsx +0 -247
  135. data/app/components/popovers/image.cjsx +0 -160
  136. data/app/components/popovers/link.cjsx +0 -87
  137. data/app/components/popovers/toolTip.cjsx +0 -326
  138. data/app/data/poc.js +0 -15
  139. data/app/demo.js +0 -7
  140. data/app/initialize.js +0 -4
  141. data/app/utils/find_entities.coffee +0 -20
  142. data/app/utils/html2content.coffee +0 -120
  143. data/app/utils/save_content.coffee +0 -63
  144. data/lib/dante2-editor/rails.rb +0 -16
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dante2-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Michelson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-24 00:00:00.000000000 Z
12
+ date: 2017-02-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: dante-editor yet another Medium editor clone.
15
15
  email:
@@ -19,70 +19,44 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - ".babelrc"
23
+ - ".eslint"
22
24
  - ".gitignore"
23
25
  - Gemfile
24
26
  - Gemfile.lock
25
27
  - README.md
26
- - app/assets/index.html
27
- - app/assets/license.html
28
- - app/assets/options.html
29
- - app/assets/store.json
30
- - app/components/App.cjsx
31
- - app/components/blocks/embed.cjsx
32
- - app/components/blocks/image.cjsx
33
- - app/components/blocks/placeholder.cjsx
34
- - app/components/blocks/video.cjsx
35
- - app/components/debug.cjsx
36
- - app/components/decorators/link.cjsx
37
- - app/components/popovers/addButton.cjsx
38
- - app/components/popovers/image.cjsx
39
- - app/components/popovers/link.cjsx
40
- - app/components/popovers/toolTip.cjsx
41
- - app/data/poc.js
42
- - app/demo.js
43
- - app/images/dante/media-loading-placeholder.png
44
- - app/images/site/dante-demo.png
45
- - app/images/site/dante-editor-logo.png
46
- - app/images/site/github-logo.png
47
- - app/initialize.js
48
- - app/model/index.js
49
- - app/styles/dante.scss
50
- - app/styles/dante/_animations.scss
51
- - app/styles/dante/_caption.scss
52
- - app/styles/dante/_debug.scss
53
- - app/styles/dante/_fonts.scss
54
- - app/styles/dante/_graf.scss
55
- - app/styles/dante/_icons.scss
56
- - app/styles/dante/_media.scss
57
- - app/styles/dante/_menu.scss
58
- - app/styles/dante/_needsorder.scss
59
- - app/styles/dante/_popover.scss
60
- - app/styles/dante/_post.scss
61
- - app/styles/dante/_scaffold.scss
62
- - app/styles/dante/_tooltip.scss
63
- - app/styles/dante/_utilities.scss
64
- - app/styles/dante/_variables.scss
65
- - app/styles/dante/blame.scss
66
- - app/styles/draft.css
67
- - app/styles/fonts/dante/dante.eot
68
- - app/styles/fonts/dante/dante.svg
69
- - app/styles/fonts/dante/dante.ttf
70
- - app/styles/fonts/dante/dante.woff
71
- - app/styles/fonts/dante/fontello.eot
72
- - app/styles/fonts/dante/fontello.svg
73
- - app/styles/fonts/dante/fontello.ttf
74
- - app/styles/fonts/dante/fontello.woff
75
- - app/styles/layout/layout.scss
76
- - app/styles/layout/normalize.css
77
- - app/styles/layout/scaffold.scss
78
- - app/styles/layout/tooltips.scss
79
- - app/utils/find_entities.coffee
80
- - app/utils/html2content.coffee
81
- - app/utils/logger.coffee
82
- - app/utils/save_content.coffee
83
- - app/utils/selection.js
84
28
  - config.ru
85
29
  - dante2.gemspec
30
+ - demo/assets/index.html
31
+ - demo/assets/license.html
32
+ - demo/assets/options.html
33
+ - demo/assets/store.json
34
+ - demo/data/poc.js
35
+ - demo/demo.js
36
+ - demo/initialize.js
37
+ - demo/styles/layout/layout.scss
38
+ - demo/styles/layout/normalize.css
39
+ - demo/styles/layout/scaffold.scss
40
+ - demo/styles/layout/tooltips.scss
41
+ - dist/Dante2.js
42
+ - dist/Dante2.min.js
43
+ - dist/Dante2.min.js.map
44
+ - dist/DanteStyles.css
45
+ - dist/DanteStyles.css.map
46
+ - dist/DanteStyles.js
47
+ - dist/DanteStyles.min.js
48
+ - dist/DanteStyles.min.js.map
49
+ - dist/dante-vendors.js
50
+ - dist/dante-vendors.min.js
51
+ - dist/dante-vendors.min.js.map
52
+ - dist/fonts/dante.eot
53
+ - dist/fonts/dante.svg
54
+ - dist/fonts/dante.ttf
55
+ - dist/fonts/dante.woff
56
+ - dist/fonts/fontello.eot
57
+ - dist/fonts/fontello.svg
58
+ - dist/fonts/fontello.ttf
59
+ - dist/fonts/fontello.woff
86
60
  - docs/app.css
87
61
  - docs/app.css.map
88
62
  - docs/app.js
@@ -106,12 +80,82 @@ files:
106
80
  - docs/images/github-logo.png
107
81
  - docs/index.html
108
82
  - docs/license.html
109
- - lib/dante2-editor.rb
110
- - lib/dante2-editor/rails.rb
111
- - lib/dante2-editor/version.rb
83
+ - docs/options.html
112
84
  - package.json
113
85
  - rakefile
86
+ - rb_lib/dante2-editor.rb
87
+ - rb_lib/dante2-editor/rails.rb
88
+ - rb_lib/dante2-editor/version.rb
89
+ - src/components/blocks/embed.js
90
+ - src/components/blocks/image.js
91
+ - src/components/blocks/placeholder.js
92
+ - src/components/blocks/video.js
93
+ - src/components/dante.js
94
+ - src/components/dante_editor.js
95
+ - src/components/debug.js
96
+ - src/components/decorators/link.js
97
+ - src/components/popovers/addButton.js
98
+ - src/components/popovers/image.js
99
+ - src/components/popovers/link.js
100
+ - src/components/popovers/toolTip.js
101
+ - src/components/wrapper.js
102
+ - src/images/dante/media-loading-placeholder.png
103
+ - src/images/site/dante-demo.png
104
+ - src/images/site/dante-editor-logo.png
105
+ - src/images/site/github-logo.png
106
+ - src/index.js
107
+ - src/model/index.js
108
+ - src/style.js
109
+ - src/styles/dante.scss
110
+ - src/styles/dante/_animations.scss
111
+ - src/styles/dante/_caption.scss
112
+ - src/styles/dante/_debug.scss
113
+ - src/styles/dante/_fonts.scss
114
+ - src/styles/dante/_graf.scss
115
+ - src/styles/dante/_icons.scss
116
+ - src/styles/dante/_media.scss
117
+ - src/styles/dante/_menu.scss
118
+ - src/styles/dante/_needsorder.scss
119
+ - src/styles/dante/_popover.scss
120
+ - src/styles/dante/_post.scss
121
+ - src/styles/dante/_scaffold.scss
122
+ - src/styles/dante/_tooltip.scss
123
+ - src/styles/dante/_utilities.scss
124
+ - src/styles/dante/_variables.scss
125
+ - src/styles/dante/blame.scss
126
+ - src/styles/draft.css
127
+ - src/styles/fonts/dante/dante.eot
128
+ - src/styles/fonts/dante/dante.svg
129
+ - src/styles/fonts/dante/dante.ttf
130
+ - src/styles/fonts/dante/dante.woff
131
+ - src/styles/fonts/dante/fontello.eot
132
+ - src/styles/fonts/dante/fontello.svg
133
+ - src/styles/fonts/dante/fontello.ttf
134
+ - src/styles/fonts/dante/fontello.woff
135
+ - src/utils/find_entities.js
136
+ - src/utils/html2content.js
137
+ - src/utils/save_content.js
138
+ - src/utils/selection.js
139
+ - tools/.eslintrc
140
+ - tools/amd/README.md
141
+ - tools/amd/bower.json
142
+ - tools/amd/build.js
143
+ - tools/build-cli.js
144
+ - tools/build.js
145
+ - tools/buildBabel.js
146
+ - tools/constants.js
147
+ - tools/dist/build.js
148
+ - tools/docs/build.js
149
+ - tools/es/build.js
150
+ - tools/exec.js
151
+ - tools/fs-utils.js
152
+ - tools/lib/build.js
153
+ - tools/promisify.js
154
+ - webpack.config-doc.js
114
155
  - webpack.config.js
156
+ - webpack/base.config.js
157
+ - webpack/docs.config.js
158
+ - webpack/webpack.config.js
115
159
  - yarn.lock
116
160
  homepage: http://michelson.github.io/Dante/
117
161
  licenses: []
@@ -119,7 +163,7 @@ metadata: {}
119
163
  post_install_message:
120
164
  rdoc_options: []
121
165
  require_paths:
122
- - lib
166
+ - rb_lib
123
167
  required_ruby_version: !ruby/object:Gem::Requirement
124
168
  requirements:
125
169
  - - ">="