dante-editor 0.0.15 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +49 -10
- data/app/assets/fonts/dante/dante.eot +0 -0
- data/app/assets/fonts/dante/dante.svg +9 -5
- data/app/assets/fonts/dante/dante.ttf +0 -0
- data/app/assets/fonts/dante/dante.woff +0 -0
- data/app/assets/javascripts/dante/behavior.js.coffee +2 -0
- data/app/assets/javascripts/dante/behaviors/image.js.coffee +56 -0
- data/app/assets/javascripts/dante/behaviors/list.js.coffee +150 -0
- data/app/assets/javascripts/dante/behaviors/save.js.coffee +40 -0
- data/app/assets/javascripts/dante/behaviors/suggest.js.coffee +118 -0
- data/app/assets/javascripts/dante/editor.js.coffee +110 -228
- data/app/assets/javascripts/dante/popover.js.coffee +350 -11
- data/app/assets/javascripts/dante/tooltip_widgets/uploader.js.coffee +2 -2
- data/app/assets/javascripts/dante.js +5 -0
- data/app/assets/stylesheets/dante/_blame.scss +209 -0
- data/app/assets/stylesheets/dante/_caption.scss +14 -0
- data/app/assets/stylesheets/dante/_icons.scss +10 -5
- data/app/assets/stylesheets/dante/_menu.scss +7 -7
- data/app/assets/stylesheets/dante/_popover.scss +122 -44
- data/app/assets/stylesheets/dante/_utilities.scss +5 -1
- data/app/assets/stylesheets/dante/_variables.scss +7 -3
- data/app/assets/stylesheets/dante.scss +2 -0
- data/config.rb +5 -4
- data/dist/css/dante-editor.css +246 -44
- data/dist/fonts/dante/dante.eot +0 -0
- data/dist/fonts/dante/dante.svg +9 -5
- data/dist/fonts/dante/dante.ttf +0 -0
- data/dist/fonts/dante/dante.woff +0 -0
- data/dist/js/dante-editor.js +1015 -283
- data/lib/dante-editor/version.rb +1 -1
- data/source/api/cristian.json.erb +8 -0
- data/source/api/miguel.json.erb +8 -0
- data/source/api/resource.json.erb +8 -0
- data/source/api/save.json.erb +1 -0
- data/source/api/suggest.json.erb +22 -0
- data/source/assets/images/dante-demo.png +0 -0
- data/source/icons/image-center.svg +12 -0
- data/source/icons/image-fill.svg +11 -0
- data/source/icons/image-left.svg +15 -0
- data/source/icons/image-wide.svg +12 -0
- data/source/index.html.erb +6 -0
- data/source/partials/_readme.markdown +2 -2
- metadata +18 -2
data/lib/dante-editor/version.rb
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"id": "1",
|
3
|
+
"type": "user",
|
4
|
+
"text": "Cristian Ferrari",
|
5
|
+
"avatar": "https://avatars3.githubusercontent.com/u/627694?v=3&s=460",
|
6
|
+
"href": "https://github.com/cristianferrarig",
|
7
|
+
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do."
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"id": "1",
|
3
|
+
"type": "user",
|
4
|
+
"text": "Miguel Michelson",
|
5
|
+
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/zeldman/128.jpg",
|
6
|
+
"href": "https://github.com/michelson",
|
7
|
+
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do."
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"status": "ok"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[{
|
2
|
+
"id": "1",
|
3
|
+
"type": "user",
|
4
|
+
"text": "John Lennon",
|
5
|
+
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/zeldman/128.jpg",
|
6
|
+
"href": "/api/resource.json",
|
7
|
+
"description": "@john"
|
8
|
+
}, {
|
9
|
+
"id": "2",
|
10
|
+
"type": "user",
|
11
|
+
"text": "Ringo Star",
|
12
|
+
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/iannnnn/128.jpg",
|
13
|
+
"href": "/api/resource.json",
|
14
|
+
"description": "@ringo"
|
15
|
+
}, {
|
16
|
+
"id": "3",
|
17
|
+
"type": "user",
|
18
|
+
"text": "Paul McCartney",
|
19
|
+
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/adellecharles/128.jpg",
|
20
|
+
"href": "/api/resource.json",
|
21
|
+
"description": "@paul"
|
22
|
+
}]
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="18px" height="16px" viewBox="0 0 18 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>image-center</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<rect id="path" fill="#000000" x="2" y="13" width="14" height="1.5"></rect>
|
9
|
+
<rect id="path" fill="#000000" x="2" y="4" width="14" height="7.5"></rect>
|
10
|
+
<rect id="path" fill="#000000" x="2" y="1" width="14" height="1.5"></rect>
|
11
|
+
</g>
|
12
|
+
</svg>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="18px" height="16px" viewBox="0 0 18 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>image-fill</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<rect id="path" fill="#000000" x="2" y="13" width="14" height="1.5"></rect>
|
9
|
+
<rect id="path" fill="#000000" x="0" y="1" width="18" height="10.5"></rect>
|
10
|
+
</g>
|
11
|
+
</svg>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="18px" height="16px" viewBox="0 0 18 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>image-left</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<rect id="path" fill="#000000" x="4" y="13" width="14" height="1.5"></rect>
|
9
|
+
<rect id="path" fill="#000000" x="12" y="10" width="6" height="1.5"></rect>
|
10
|
+
<rect id="path" fill="#000000" x="0" y="4" width="10.5" height="7.5"></rect>
|
11
|
+
<rect id="path" fill="#000000" x="12" y="7" width="6" height="1.5"></rect>
|
12
|
+
<rect id="path" fill="#000000" x="12" y="4" width="6" height="1.5"></rect>
|
13
|
+
<rect id="path" fill="#000000" x="4" y="1" width="14" height="1.5"></rect>
|
14
|
+
</g>
|
15
|
+
</svg>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="18px" height="16px" viewBox="0 0 18 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>image-wide</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<rect id="path" fill="#000000" x="2" y="13" width="14" height="1.5"></rect>
|
9
|
+
<rect id="path" fill="#000000" x="0" y="4" width="18" height="7.5"></rect>
|
10
|
+
<rect id="path" fill="#000000" x="2" y="1" width="14" height="1.5"></rect>
|
11
|
+
</g>
|
12
|
+
</svg>
|
data/source/index.html.erb
CHANGED
@@ -7,10 +7,16 @@ title: Dante Editor example
|
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
|
+
handler = function(data){
|
11
|
+
console.log("content saved");
|
12
|
+
}
|
13
|
+
|
10
14
|
editor = new Dante.Editor(
|
11
15
|
{
|
12
16
|
el: "#editor",
|
13
17
|
upload_url: "/uploads/new.json",
|
18
|
+
store_url: "/api/save.json",
|
19
|
+
store_success_handler: handler,
|
14
20
|
debug: <%= build? ? false : true %>
|
15
21
|
}
|
16
22
|
)
|
@@ -18,7 +18,7 @@ We don't have any intention to target all browsers versions, really... if you li
|
|
18
18
|
|
19
19
|
### MAINTAINERS:
|
20
20
|
|
21
|
-
+
|
22
|
-
+
|
21
|
+
+ <a href="#" data-type="user" data-href="/api/miguel.json" data-id="1" class="markup--user markup--p-user"> Miguel Michelson </a>
|
22
|
+
+ <a href="#" data-type="user" data-href="/api/cristian.json" data-id="1" class="markup--user markup--p-user"> Cristian Ferrari </a>
|
23
23
|
|
24
24
|
[Licensed under MIT.](./license.md) 2014
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dante-editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
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-06-
|
12
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: dante-editor yet another Medium editor clone.
|
15
15
|
email:
|
@@ -38,6 +38,11 @@ files:
|
|
38
38
|
- app/assets/fonts/dante/fontello.woff
|
39
39
|
- app/assets/images/dante/media-loading-placeholder.png
|
40
40
|
- app/assets/javascripts/dante.js
|
41
|
+
- app/assets/javascripts/dante/behavior.js.coffee
|
42
|
+
- app/assets/javascripts/dante/behaviors/image.js.coffee
|
43
|
+
- app/assets/javascripts/dante/behaviors/list.js.coffee
|
44
|
+
- app/assets/javascripts/dante/behaviors/save.js.coffee
|
45
|
+
- app/assets/javascripts/dante/behaviors/suggest.js.coffee
|
41
46
|
- app/assets/javascripts/dante/dante.js.coffee.erb
|
42
47
|
- app/assets/javascripts/dante/editor.js.coffee
|
43
48
|
- app/assets/javascripts/dante/menu.js.coffee
|
@@ -51,6 +56,7 @@ files:
|
|
51
56
|
- app/assets/javascripts/dante/view.js.coffee
|
52
57
|
- app/assets/stylesheets/dante.scss
|
53
58
|
- app/assets/stylesheets/dante/_animations.scss
|
59
|
+
- app/assets/stylesheets/dante/_blame.scss
|
54
60
|
- app/assets/stylesheets/dante/_caption.scss
|
55
61
|
- app/assets/stylesheets/dante/_debug.scss
|
56
62
|
- app/assets/stylesheets/dante/_fonts.scss
|
@@ -85,6 +91,12 @@ files:
|
|
85
91
|
- lib/dante-editor/version.rb
|
86
92
|
- license.md
|
87
93
|
- rakefile
|
94
|
+
- source/api/cristian.json.erb
|
95
|
+
- source/api/miguel.json.erb
|
96
|
+
- source/api/resource.json.erb
|
97
|
+
- source/api/save.json.erb
|
98
|
+
- source/api/suggest.json.erb
|
99
|
+
- source/assets/images/dante-demo.png
|
88
100
|
- source/assets/images/dante-editor-logo.png
|
89
101
|
- source/assets/images/github-logo.png
|
90
102
|
- source/assets/javascripts/all.js
|
@@ -105,6 +117,10 @@ files:
|
|
105
117
|
- source/embeds.html.erb
|
106
118
|
- source/icons/dante.json
|
107
119
|
- source/icons/embed.svg
|
120
|
+
- source/icons/image-center.svg
|
121
|
+
- source/icons/image-fill.svg
|
122
|
+
- source/icons/image-left.svg
|
123
|
+
- source/icons/image-wide.svg
|
108
124
|
- source/icons/image.svg
|
109
125
|
- source/icons/plus.svg
|
110
126
|
- source/icons/video.svg
|