scrivito_content_browser 1.0.0 → 1.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/dist/scrivito_content_browser_pkg.js +20063 -344
- data/app/assets/javascripts/scrivito_content_browser.js +0 -1
- metadata +4 -24
- data/app/assets/javascripts/scrivito_content_browser/templates/modal_dialog.html +0 -113
- data/app/assets/javascripts/scrivito_content_browser/templates.js.erb +0 -4
- data/app/controllers/scrivito_content_browser/content_browser_controller.rb +0 -31
- data/app/views/layouts/scrivito_content_browser/inspector.html.erb +0 -11
- data/app/views/scrivito_content_browser/obj/details.html +0 -7
- data/config/routes.rb +0 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_content_browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.
|
33
|
+
version: 1.1.0.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: coffee-rails
|
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'
|
40
|
+
version: 1.1.0.rc1
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: pry
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,15 +77,9 @@ files:
|
|
91
77
|
- README.md
|
92
78
|
- app/assets/javascripts/dist/scrivito_content_browser_pkg.js
|
93
79
|
- app/assets/javascripts/scrivito_content_browser.js
|
94
|
-
- app/assets/javascripts/scrivito_content_browser/templates.js.erb
|
95
|
-
- app/assets/javascripts/scrivito_content_browser/templates/modal_dialog.html
|
96
|
-
- app/controllers/scrivito_content_browser/content_browser_controller.rb
|
97
80
|
- app/helpers/converter_helper.rb
|
98
|
-
- app/views/layouts/scrivito_content_browser/inspector.html.erb
|
99
|
-
- app/views/scrivito_content_browser/obj/details.html
|
100
81
|
- config/initializers/obj_extension.rb
|
101
82
|
- config/initializers/scrivito_content_browser.rb
|
102
|
-
- config/routes.rb
|
103
83
|
- lib/scrivito_content_browser.rb
|
104
84
|
- lib/scrivito_content_browser/engine.rb
|
105
85
|
homepage: http://www.scrivito.com
|
@@ -1,113 +0,0 @@
|
|
1
|
-
<div class="scrivito-content-browser-body">
|
2
|
-
<div class="scrivito-content-browser-wrapper">
|
3
|
-
<div class="scrivito-content-browser-topbar">
|
4
|
-
<div class="scrivito-content-browser-search">
|
5
|
-
<input class="search-field" placeholder="Search", type="text" />
|
6
|
-
<button class="search-field-button">
|
7
|
-
Search
|
8
|
-
</button>
|
9
|
-
</div>
|
10
|
-
<span class="editing-button-view" data-size="normal-list">
|
11
|
-
<span class="scrivito_icon scrivito_icon_list_medium"
|
12
|
-
title="List view"></span>
|
13
|
-
</span>
|
14
|
-
<span class="editing-button-view" data-size="large">
|
15
|
-
<span class="scrivito_icon scrivito_icon_th_large"
|
16
|
-
title="Large thumbnails"></span>
|
17
|
-
</span>
|
18
|
-
<span class="editing-button-view" data-size="big">
|
19
|
-
<span class="scrivito_icon scrivito_icon_th" title="Big thumbnails"></span>
|
20
|
-
</span>
|
21
|
-
<span class="editing-button-view" data-size="normal">
|
22
|
-
<span class="scrivito_icon scrivito_icon_list_medium"
|
23
|
-
title="Thumbnails"></span>
|
24
|
-
</span>
|
25
|
-
<span class="editing-button-view" data-size="small">
|
26
|
-
<span class="scrivito_icon scrivito_icon_th_small"
|
27
|
-
title="Small thumbnails"></span>
|
28
|
-
</span>
|
29
|
-
</div>
|
30
|
-
<div class="scrivito-content-browser-filter">
|
31
|
-
<div class="scrivito-content-browser-filter-fixed">
|
32
|
-
<div class="scrivito-content-browser-filter-item selected-filter">
|
33
|
-
<i class="scrivito_icon scrivito_icon_ok_box"></i>
|
34
|
-
<span class="scrivito-content-browser-filter-label">Selected
|
35
|
-
<span class="scrivito-content-browser-counter selected-total"></span>
|
36
|
-
</span>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
<div class="scrivito-content-browser-filter-scroll scrivito-content-browser-filter-toplevel">
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<div class="scrivito-content-browser-items"></div>
|
43
|
-
</div>
|
44
|
-
<div class="scrivito-content-browser-inspector"></div>
|
45
|
-
</div>
|
46
|
-
<div class="scrivito-content-browser-footer">
|
47
|
-
<a class="editing-button content-browser-close">
|
48
|
-
Cancel
|
49
|
-
</a>
|
50
|
-
<a class="scrivito_button scrivito_green content-browser-save">
|
51
|
-
Select
|
52
|
-
<span class="scrivito-content-browser-counter selected-total"></span>
|
53
|
-
</a>
|
54
|
-
<a class="scrivito_button scrivito_red content-browser-delete">
|
55
|
-
Delete
|
56
|
-
<span class="scrivito-content-browser-counter selected-total"></span>
|
57
|
-
</a>
|
58
|
-
</div>
|
59
|
-
|
60
|
-
<div class="templates" style="display:none">
|
61
|
-
<ul class="tree">
|
62
|
-
<li class="filter scrivito-content-browser-arrow-target">
|
63
|
-
<div class="scrivito-content-browser-hierarchy-arrow"></div>
|
64
|
-
<div class="scrivito-content-browser-hierarchy-label">
|
65
|
-
<i class="scrivito-content-browser-icon"></i>
|
66
|
-
<span class="scrivito-content-browser-filter-name"></span>
|
67
|
-
</div>
|
68
|
-
</li>
|
69
|
-
</ul>
|
70
|
-
<ul class="radio">
|
71
|
-
<li class="filter scrivito-content-browser-arrow-target">
|
72
|
-
<div class="scrivito-content-browser-hierarchy-radio"></div>
|
73
|
-
<div class="scrivito-content-browser-hierarchy-label">
|
74
|
-
<span class="scrivito-content-browser-filter-name"></span>
|
75
|
-
</div>
|
76
|
-
</li>
|
77
|
-
</ul>
|
78
|
-
<div class="scrivito-content-browser-filter-group scrivito-content-browser-tree">
|
79
|
-
<ul class="scrivito-content-browser-filter-items scrivito-content-browser-hierarchy-filter">
|
80
|
-
</ul>
|
81
|
-
</div>
|
82
|
-
<div class="scrivito-content-browser-filter-group scrivito-content-browser-radio_buttons">
|
83
|
-
<ul class="scrivito-content-browser-hierarchy-filter compact">
|
84
|
-
<li class="open scrivito-content-browser-arrow-target">
|
85
|
-
<div class="scrivito-content-browser-hierarchy-arrow"></div>
|
86
|
-
<div class="scrivito-content-browser-hierarchy-label scrivito-content-browser-muted">
|
87
|
-
<span class="scrivito-content-browser-filter-title"></span>
|
88
|
-
</div>
|
89
|
-
<ul class="scrivito-content-browser-filter-items">
|
90
|
-
<li class="filter filter-all">
|
91
|
-
<div class="scrivito-content-browser-hierarchy-radio"></div>
|
92
|
-
<div class="scrivito-content-browser-hierarchy-label">
|
93
|
-
<span>All</span>
|
94
|
-
</div>
|
95
|
-
</li>
|
96
|
-
</ul>
|
97
|
-
</li>
|
98
|
-
</ul>
|
99
|
-
</div>
|
100
|
-
<div class="scrivito-content-browser-more-filters scrivito_separator">More filters</div>
|
101
|
-
<div class="scrivito-content-browser-item-wrapper">
|
102
|
-
<div class="scrivito-content-browser-preview">
|
103
|
-
<img>
|
104
|
-
<span class="scrivito_icon scrivito_icon_generic"></span>
|
105
|
-
<span class="scrivito-content-browser-inspect"></span>
|
106
|
-
</div>
|
107
|
-
<div class="scrivito-content-browser-meta">
|
108
|
-
<span class="scrivito-content-browser-thumbnails-name"></span>
|
109
|
-
<span class="scrivito-content-browser-thumbnails-size"></span>
|
110
|
-
<span class="scrivito-content-browser-thumbnails-select select-item"></span>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
</div>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module ScrivitoContentBrowser
|
2
|
-
class ContentBrowserController < ApplicationController
|
3
|
-
# Return JSON responses without layout information.
|
4
|
-
layout false
|
5
|
-
|
6
|
-
# Render a JSON response that holds the content browser inspector markup. The inspector either
|
7
|
-
# renders the details view for the selected object, or a fallback view that is located under
|
8
|
-
# 'app/views/obj/details'.
|
9
|
-
def inspector
|
10
|
-
@obj = Obj.find(params[:id])
|
11
|
-
|
12
|
-
options = {
|
13
|
-
layout: 'scrivito_content_browser/inspector',
|
14
|
-
}
|
15
|
-
|
16
|
-
content = begin
|
17
|
-
render_to_string(details_view_template(@obj), options)
|
18
|
-
rescue ActionView::MissingTemplate
|
19
|
-
render_to_string('scrivito_content_browser/obj/details', options)
|
20
|
-
end
|
21
|
-
|
22
|
-
render json: { content: content }
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def details_view_template(obj)
|
28
|
-
"#{obj.obj_class.underscore}/details"
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
data/config/routes.rb
DELETED