rdcms_publication 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +41 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +32 -0
- data/Rakefile +21 -0
- data/admin/publications.rb +62 -0
- data/app/assets/javascript/publications.js.coffee +126 -0
- data/app/controllers/publications_controller.rb +23 -0
- data/app/models/publication.rb +116 -0
- data/app/views/admin/publications/_form.html.erb +142 -0
- data/app/views/admin/publications/_index.html.erb +82 -0
- data/app/views/publications/_search.html.erb +6 -0
- data/app/views/publications/index.html.erb +55 -0
- data/app/views/publications/show.html.erb +100 -0
- data/config/initializers/issuu.rb +5 -0
- data/config/locales/publications.br.yml +54 -0
- data/config/locales/publications.en.yml +54 -0
- data/config/locales/publications.es.yml +54 -0
- data/db/migrate/20130511000734_create_publications.rb +39 -0
- data/docs/issuu_embed.md +101 -0
- data/lib/rdcms_publication/engine.rb +10 -0
- data/lib/rdcms_publication/version.rb +3 -0
- data/lib/rdcms_publication.rb +4 -0
- data/rdcms_publication.gemspec +34 -0
- data/script/rails +8 -0
- metadata +154 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
</table>
|
2
|
+
<% @publication = Publication.new if !defined?(@publication) %>
|
3
|
+
<div class="fileuploads-container">
|
4
|
+
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
5
|
+
<%= semantic_form_for [:admin, @publication], :html => { :multipart => true, :id => "fileupload" } do |f| %>
|
6
|
+
<div class="fileupload-buttonbar">
|
7
|
+
<div class="btn-toolbar">
|
8
|
+
<div class="btn-group">
|
9
|
+
<!-- <input type="checkbox" class="toggle" title="<%= t('.toggle_selection') %>" > -->
|
10
|
+
</div>
|
11
|
+
<div class="btn-group">
|
12
|
+
<button type="reset" class="btn btn-warning cancel hidden" title="<%= t('.cancel') %>" >
|
13
|
+
<i class="icon-denied"></i> <span><%= t('.cancel') %></span>
|
14
|
+
</button>
|
15
|
+
<button type="button" class="btn btn-danger delete hidden" title="<%= t('.delete') %>" >
|
16
|
+
<i class="icon-trashcan"></i><span class="string"><%= t('.delete') %></span>
|
17
|
+
</button>
|
18
|
+
</div>
|
19
|
+
<div class="btn-group">
|
20
|
+
<!-- The fileinput-button span is used to style the file input field as button -->
|
21
|
+
<span class="btn btn-success fileinput-button" title="<%= t('.add_files') %>" >
|
22
|
+
<i class="icon-plus-2"></i>
|
23
|
+
<span class="string"><%= t('.add_files') %></span>
|
24
|
+
<input type="file" name="publication[file]" accept="application/pdf, application/msword, application/vnd.ms-powerpoint" multiple="multiple" />
|
25
|
+
</span>
|
26
|
+
</div>
|
27
|
+
<div class="btn-group">
|
28
|
+
<div class="span3 fileupload-progress fileupload-progressbar fade">
|
29
|
+
<!-- The global progress bar -->
|
30
|
+
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
|
31
|
+
<div class="bar" style="width:0%;"></div>
|
32
|
+
</div>
|
33
|
+
<div class="progress-extended"> </div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<em><%= t(".supported_file").html_safe %></em>
|
38
|
+
</div>
|
39
|
+
<!-- The loading indicator is shown during image processing -->
|
40
|
+
<div class="fileupload-loading"></div>
|
41
|
+
<!-- The table listing the files available for upload/download -->
|
42
|
+
<div id="upload_container" class="row">
|
43
|
+
<div class="span12">
|
44
|
+
<table role="presentation" class="table table-striped">
|
45
|
+
<tbody class="files selectable connectedSortable" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
|
46
|
+
</table>
|
47
|
+
</div>
|
48
|
+
<script type="text/javascript">
|
49
|
+
$("#upload_container .files").data(
|
50
|
+
'load',<%= raw defined?(@publications) ? { files: @publications.ordained.map{|publication| publication.to_jq_upload } }.to_json : "{}" %>);
|
51
|
+
</script>
|
52
|
+
</div>
|
53
|
+
<!-- templates -->
|
54
|
+
<%= render partial: 'form', :locals => { f: f } %>
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
<%= form_for Publication.new, :url => admin_publications_path, :html => { :id => "file_selector", :remote => true } do |f| -%>
|
58
|
+
<div class="hidden"> <%= hidden_field_tag :reorder_positions, true %> </div>
|
59
|
+
<% end -%>
|
60
|
+
|
61
|
+
<script>
|
62
|
+
var fileUploadErrors = {
|
63
|
+
maxFileSize : '<%= I18n.t "error.messages.max_file_size" %>',
|
64
|
+
minFileSize : '<%= I18n.t "error.messages.min_file_size" %>',
|
65
|
+
acceptFileTypes : '<%= I18n.t "error.messages.accept_file_types" %>',
|
66
|
+
maxNumberOfFiles: '<%= I18n.t "error.messages.max_number_of_files" %>',
|
67
|
+
uploadedBytes : '<%= I18n.t "error.messages.uploaded_bytes" %>',
|
68
|
+
emptyResult : '<%= I18n.t "error.messages.empty_result" %>'
|
69
|
+
};
|
70
|
+
</script>
|
71
|
+
<script type="text/javascript" charset="utf-8">
|
72
|
+
$(document).ready(function () {
|
73
|
+
// Initialize the jQuery File Upload widget:
|
74
|
+
fileupload_fun = $("#fileupload").fileupload({
|
75
|
+
// autoUpload: true,
|
76
|
+
acceptFileTypes : "/(\.|\/)(pdf|docx?|ppt)$/i"
|
77
|
+
});
|
78
|
+
});
|
79
|
+
</script>
|
80
|
+
</div>
|
81
|
+
<%= javascript_include_tag "publications" %>
|
82
|
+
<table>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<%= form_for @search, url: publications_path, :html => { :method => :get, class: "navbar-form" } do |f| %>
|
2
|
+
<div class="input-append pull-right">
|
3
|
+
<%= f.text_field :title_or_description_contains, placeholder: t(".search_publications"), class: "span2" %>
|
4
|
+
<%= f.button "<i class=\"icon-search\" aria-hidden=\"true\"></i>".html_safe, name: nil, type: "submit", class: "btn btn-success" %>
|
5
|
+
</div>
|
6
|
+
<% end %>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Search -->
|
2
|
+
<% if params[:controller] == "publications" %>
|
3
|
+
<div class="navbar sub_header_bar">
|
4
|
+
<div class="navbar-inner">
|
5
|
+
<ul class="nav nav_tags">
|
6
|
+
<% tags = Publication.tag_counts.order("count desc") %>
|
7
|
+
<%= raw tags.map { |t| content_tag(:li, link_to(t.name, tag_path(t.name)), class: "#{"active" if defined?(params[:tag]) and params[:tag] == t.name}") }.join %>
|
8
|
+
</ul>
|
9
|
+
<%= render partial: "search" %>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="row">
|
15
|
+
<div id="publication-list-container" class="span8">
|
16
|
+
<!-- Social buttons -->
|
17
|
+
<% unless defined?(disable_social) and disable_social %>
|
18
|
+
<div class="row">
|
19
|
+
<div class="span8">
|
20
|
+
<div class="social-container" data-url="<%= publications_url %>"></div>
|
21
|
+
<script type="text/javascript" charset="utf-8">
|
22
|
+
$('.social-container').social(<%= raw social_buttons_json %>);
|
23
|
+
</script>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<% end -%>
|
27
|
+
<!-- Itens -->
|
28
|
+
<div class="row">
|
29
|
+
<!-- Itens -->
|
30
|
+
<div class="span8">
|
31
|
+
<ul class="thumbnails">
|
32
|
+
<% @publications.each do |publication| %>
|
33
|
+
<li class="span8">
|
34
|
+
<div class="thumbnail publication-list clearfix">
|
35
|
+
<%= link_to(publication, { title: t("view_more"), class: "thumb pull-left" }) do %>
|
36
|
+
<%= image_tag publication.thumb_path %>
|
37
|
+
<% end %>
|
38
|
+
<div class="publication-container">
|
39
|
+
<h3><%= link_to publication.title, publication_path(publication) %></h3>
|
40
|
+
<div class="details">
|
41
|
+
<span class="publication-categories"><%= publication.tag_list %></span>
|
42
|
+
<!-- <span class="publication-categories">< %= publication.tag_list.map {|t| link_to t, tag_path(t) }.join(', ') %></span> -->
|
43
|
+
</div>
|
44
|
+
<div class="publication-body">
|
45
|
+
<p><%= raw truncate(publication.description, :length => 200) %></p>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</li>
|
50
|
+
<% end %>
|
51
|
+
</ul>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
@@ -0,0 +1,100 @@
|
|
1
|
+
<!-- Título, Data e Tags -->
|
2
|
+
<div class="row">
|
3
|
+
<div id="publication_informations" class="span12 informations-container">
|
4
|
+
<div class="page-header">
|
5
|
+
<h2><%= @publication.title %></h2>
|
6
|
+
<div class="details">
|
7
|
+
<span class="line categories"><%= @publication.tag_list %></span>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div class="row">
|
13
|
+
<div class="span12">
|
14
|
+
<div class="issuu_container" style="text-align: center;">
|
15
|
+
<object style="width:600px;height:426px" >
|
16
|
+
<%
|
17
|
+
issuu_params = {
|
18
|
+
"mode" => "embed",
|
19
|
+
"amp" => nil,
|
20
|
+
"layout" => "http://skin.issuu.com/v/lighticons/layout.xml",
|
21
|
+
"showFlipBtn" => "true",
|
22
|
+
"documentId" => "#{@publication.document}",
|
23
|
+
"docName" => "#{@publication.document_name}",
|
24
|
+
"username" => "#{@publication.username}",
|
25
|
+
"loadingInfoText" => "#{@publication.title}",
|
26
|
+
"et" => "1369035420732",
|
27
|
+
"er" => "27"
|
28
|
+
}
|
29
|
+
|
30
|
+
%>
|
31
|
+
<param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf?<%= issuu_params.to_query %>" />
|
32
|
+
<param name="allowfullscreen" value="true"/>
|
33
|
+
<param name="menu" value="false"/>
|
34
|
+
<param name="allowscriptaccess" value="always"/>
|
35
|
+
<embed src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" menu="false"
|
36
|
+
style="width:600px;height:426px"
|
37
|
+
flashvars="<%= issuu_params.to_query %>" />
|
38
|
+
</object>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<!-- Rede social -->
|
44
|
+
<div class="row">
|
45
|
+
<div class="span12">
|
46
|
+
<div class="social-container" data-url="<%= publication_url(@publication) %>"></div>
|
47
|
+
<script type="text/javascript" charset="utf-8">
|
48
|
+
$('.social-container').social(<%= raw social_buttons_json %>);
|
49
|
+
</script>
|
50
|
+
</div>
|
51
|
+
<hr />
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<!-- Descrição e Comentários -->
|
55
|
+
<div class="row">
|
56
|
+
<div id="publication_informations" class="span12 informations-container">
|
57
|
+
<div class="tabbable">
|
58
|
+
<ul class="nav nav-tabs">
|
59
|
+
<% if Setting.for_key("rdcms.disqus.active") %>
|
60
|
+
<li class="active"><a href="#comments" data-toggle="tab"><%= t(".comments") %></a></li>
|
61
|
+
<% end %>
|
62
|
+
<li class="<%= "active" unless Setting.for_key("rdcms.disqus.active") %>">
|
63
|
+
<a href="#descriptions" data-toggle="tab"><%= t(".description") %></a>
|
64
|
+
</li>
|
65
|
+
</ul>
|
66
|
+
<div class="tab-content">
|
67
|
+
<% if Setting.for_key("rdcms.disqus.active") %>
|
68
|
+
<div id="comments" class="tab-pane active clearfix">
|
69
|
+
<% shortname = Setting.for_key("rdcms.disqus.shortname")
|
70
|
+
if shortname.present? %>
|
71
|
+
<div id="comments">
|
72
|
+
<div id="disqus_thread"></div>
|
73
|
+
<script type="text/javascript">
|
74
|
+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
75
|
+
var disqus_shortname = '<%= shortname %>'; // Required - Replace example with your forum shortname
|
76
|
+
var disqus_title = '<%= @publication.title %>'; // a unique title for each page where Disqus is present;
|
77
|
+
var disqus_identifier = '<%= publication_url @publication %>'; // a unique identifier for each page where Disqus is present;
|
78
|
+
var disqus_url = '<%= publication_url @publication %>'; // a unique URL for each page where Disqus is present;
|
79
|
+
<%= "var disqus_developer = 0;" if ENV['RACK_ENV'] == 'development' %>
|
80
|
+
|
81
|
+
/* * * DON'T EDIT BELOW THIS LINE * * */
|
82
|
+
(function() {
|
83
|
+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
84
|
+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
|
85
|
+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
86
|
+
})();
|
87
|
+
</script>
|
88
|
+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
89
|
+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
90
|
+
</div>
|
91
|
+
<% end %>
|
92
|
+
</div>
|
93
|
+
<% end %>
|
94
|
+
<div id="descriptions" class="tab-pane clearfix <%= "active" unless Setting.for_key("rdcms.disqus.active") %>">
|
95
|
+
<%= raw @publication.description %>
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
</div>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
br:
|
2
|
+
# Atributos para formulários
|
3
|
+
attributes_all: &attributes_all
|
4
|
+
add_files: Adicionar arquivos
|
5
|
+
cancel: Cancelar
|
6
|
+
comments: Comentários
|
7
|
+
delete: Excluir
|
8
|
+
description: Descrição
|
9
|
+
edit: Editar
|
10
|
+
language: Idioma
|
11
|
+
move: Mover
|
12
|
+
preview: Visualizar
|
13
|
+
private: Privado
|
14
|
+
published: Público
|
15
|
+
toggle_selection: Alternar seleção
|
16
|
+
required: Obrigatório
|
17
|
+
save: Salvar
|
18
|
+
select: Selecionar
|
19
|
+
separated_by_commas: 'Separado por virgulas ","'
|
20
|
+
send: Enviar
|
21
|
+
tag_list: Categorias
|
22
|
+
supported_file: |
|
23
|
+
* Tamanho máximo: 100 megabytes e 500 páginas.<br>
|
24
|
+
* Tipos de arquivos suportados: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP e SXI.<br>
|
25
|
+
* Para um melhor resultado utilize as mesmas dimensões para todas as páginas.
|
26
|
+
|
27
|
+
# Placeholders
|
28
|
+
description_placeholder: Digite uma descrição
|
29
|
+
title_placeholder: Digite um título
|
30
|
+
search_publications: Pesquisar publicações
|
31
|
+
|
32
|
+
# Admin module
|
33
|
+
admin: &admin
|
34
|
+
publications:
|
35
|
+
index:
|
36
|
+
<<: *attributes_all
|
37
|
+
show:
|
38
|
+
<<: *attributes_all
|
39
|
+
form:
|
40
|
+
<<: *attributes_all
|
41
|
+
search:
|
42
|
+
<<: *attributes_all
|
43
|
+
<<: *admin
|
44
|
+
# ActiveRecord
|
45
|
+
activerecord:
|
46
|
+
models:
|
47
|
+
publication:
|
48
|
+
one: Publicação
|
49
|
+
other: Publicações
|
50
|
+
|
51
|
+
# Atributos dos módulos
|
52
|
+
attributes:
|
53
|
+
publication:
|
54
|
+
<<: *attributes_all
|
@@ -0,0 +1,54 @@
|
|
1
|
+
br:
|
2
|
+
# Atributos para formulários
|
3
|
+
attributes_all: &attributes_all
|
4
|
+
add_files: Add files
|
5
|
+
cancel: Cancel
|
6
|
+
comments: Comments
|
7
|
+
delete: Delete
|
8
|
+
description: Description
|
9
|
+
edit: Edit
|
10
|
+
language: Language
|
11
|
+
move: Move
|
12
|
+
preview: Preview
|
13
|
+
private: Private
|
14
|
+
published: Public
|
15
|
+
toggle_selection: Toggle selection
|
16
|
+
required: Required
|
17
|
+
save: Save
|
18
|
+
select: Select
|
19
|
+
separated_by_commas: 'Separated by commas ","'
|
20
|
+
send: Send
|
21
|
+
tag_list: Categories
|
22
|
+
supported_file: |
|
23
|
+
* Maximum Size: 100 megabytes and 500 pages.<br>
|
24
|
+
* Supported file types: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP and SXI.<br>
|
25
|
+
* For best results use the same size for all pages.
|
26
|
+
|
27
|
+
# Placeholders
|
28
|
+
description_placeholder: Enter a description
|
29
|
+
title_placeholder: Enter a title
|
30
|
+
search_publications: Search publications
|
31
|
+
|
32
|
+
# Admin module
|
33
|
+
admin: &admin
|
34
|
+
publications:
|
35
|
+
index:
|
36
|
+
<<: *attributes_all
|
37
|
+
show:
|
38
|
+
<<: *attributes_all
|
39
|
+
form:
|
40
|
+
<<: *attributes_all
|
41
|
+
search:
|
42
|
+
<<: *attributes_all
|
43
|
+
<<: *admin
|
44
|
+
# ActiveRecord
|
45
|
+
activerecord:
|
46
|
+
models:
|
47
|
+
publication:
|
48
|
+
one: Publication
|
49
|
+
other: Publications
|
50
|
+
|
51
|
+
# Atributos dos módulos
|
52
|
+
attributes:
|
53
|
+
publication:
|
54
|
+
<<: *attributes_all
|
@@ -0,0 +1,54 @@
|
|
1
|
+
br:
|
2
|
+
# Atributos para formulários
|
3
|
+
attributes_all: &attributes_all
|
4
|
+
add_files: Añadir archivos
|
5
|
+
cancel: Cancelar
|
6
|
+
comments: Comentarios
|
7
|
+
delete: Borrar
|
8
|
+
description: Descripción
|
9
|
+
edit: Editar
|
10
|
+
language: Idioma
|
11
|
+
move: Mover
|
12
|
+
preview: Visualizar
|
13
|
+
private: Privado
|
14
|
+
published: Público
|
15
|
+
toggle_selection: Alternar la selección
|
16
|
+
required: Obligatorio
|
17
|
+
save: Guardar
|
18
|
+
select: Seleccionar
|
19
|
+
separated_by_commas: 'Separados por comas ","'
|
20
|
+
send: Enviar
|
21
|
+
tag_list: Categorías
|
22
|
+
supported_file: |
|
23
|
+
* Tamaño máximo: 100 megabytes y 500 páginas.<br>
|
24
|
+
* Tipos de archivo admitidos: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP y SXI.<br>
|
25
|
+
* Para obtener los mejores resultados, utilice el mismo tamaño para todas las páginas.
|
26
|
+
|
27
|
+
# Placeholders
|
28
|
+
description_placeholder: Escriba una descripción
|
29
|
+
title_placeholder: Escriba un título
|
30
|
+
search_publications: Buscar publicaciones
|
31
|
+
|
32
|
+
# Admin module
|
33
|
+
admin: &admin
|
34
|
+
publications:
|
35
|
+
index:
|
36
|
+
<<: *attributes_all
|
37
|
+
show:
|
38
|
+
<<: *attributes_all
|
39
|
+
form:
|
40
|
+
<<: *attributes_all
|
41
|
+
search:
|
42
|
+
<<: *attributes_all
|
43
|
+
<<: *admin
|
44
|
+
# ActiveRecord
|
45
|
+
activerecord:
|
46
|
+
models:
|
47
|
+
publication:
|
48
|
+
one: Publicación
|
49
|
+
other: Publicaciones
|
50
|
+
|
51
|
+
# Atributos dos módulos
|
52
|
+
attributes:
|
53
|
+
publication:
|
54
|
+
<<: *attributes_all
|
@@ -0,0 +1,39 @@
|
|
1
|
+
class CreatePublications < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
create_table :publications do |t|
|
4
|
+
t.string :slug
|
5
|
+
t.string :title
|
6
|
+
t.text :description
|
7
|
+
t.string :username
|
8
|
+
t.string :language
|
9
|
+
t.string :document
|
10
|
+
t.string :document_name
|
11
|
+
t.string :content_type
|
12
|
+
t.string :width
|
13
|
+
t.string :height
|
14
|
+
t.string :view_mode
|
15
|
+
t.boolean :auto_flip
|
16
|
+
t.integer :auto_flip_time
|
17
|
+
t.string :background
|
18
|
+
t.string :layout
|
19
|
+
t.boolean :wmode
|
20
|
+
t.integer :position
|
21
|
+
t.boolean :published, :default => false
|
22
|
+
|
23
|
+
t.timestamps
|
24
|
+
end
|
25
|
+
|
26
|
+
add_index :publications, :title
|
27
|
+
add_index :publications, :slug, :unique => true
|
28
|
+
add_index :publications, :document, :unique => true
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
def dow
|
33
|
+
remove_index :publications, :title
|
34
|
+
remove_index :publications, :slug
|
35
|
+
remove_index :publications, :document
|
36
|
+
|
37
|
+
drop_table :publications
|
38
|
+
end
|
39
|
+
end
|
data/docs/issuu_embed.md
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# Parâmetros disponívels para embutir o ISSUU
|
2
|
+
|
3
|
+
DB:
|
4
|
+
title: "Cartilha arflora",
|
5
|
+
description: "testando integração",
|
6
|
+
|
7
|
+
username: "gullitmiranda",
|
8
|
+
name: "cartilha_arflora", (slug)
|
9
|
+
documentId: "130507055522-23d0c7d5d8de4d90aa3a65ba2c135e37",
|
10
|
+
language: "pt",
|
11
|
+
tags: [ "arflora", "cartilha", ...]
|
12
|
+
|
13
|
+
|
14
|
+
# embed
|
15
|
+
# Browsing : [300x213px 420x298px 600x426px ... ]
|
16
|
+
# Presentation: [300x426px 420x596px 600x852px ... ]
|
17
|
+
# Reading : [300x426px 420x596px 600x852px ... ]
|
18
|
+
width
|
19
|
+
height
|
20
|
+
|
21
|
+
pageNumber: 0
|
22
|
+
docName: ""
|
23
|
+
username: ""
|
24
|
+
loadingInfoText: "" (title)
|
25
|
+
viewMode: [ browsing presentation reading ]
|
26
|
+
|
27
|
+
# Passar pagina automaticamente
|
28
|
+
autoFlip: true
|
29
|
+
autoFlipTime: 6000
|
30
|
+
|
31
|
+
backgroundColor: 000000
|
32
|
+
layout: http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml
|
33
|
+
|
34
|
+
# Modo de visão
|
35
|
+
wmode: [ 0 1 ]
|
36
|
+
|
37
|
+
|
38
|
+
object:
|
39
|
+
# Dimensão
|
40
|
+
# Browsing : [300x213px 420x298px 600x426px ... ]
|
41
|
+
# Presentation: [300x426px 420x596px 600x852px ... ]
|
42
|
+
# Reading : [300x426px 420x596px 600x852px ... ]
|
43
|
+
style:
|
44
|
+
width: 420
|
45
|
+
height: 298
|
46
|
+
|
47
|
+
# parametros da url
|
48
|
+
params:
|
49
|
+
# Sempre exibir botões de flip - dafault=false
|
50
|
+
showFlipBtn: [true, false]
|
51
|
+
|
52
|
+
# Numero da Pagina inicial
|
53
|
+
pageNumber: 4
|
54
|
+
|
55
|
+
# Tipos de visualização [ browsing presentation reading ]
|
56
|
+
|
57
|
+
documentId: ""
|
58
|
+
docName: ""
|
59
|
+
username: ""
|
60
|
+
loadingInfoText: ""
|
61
|
+
|
62
|
+
|
63
|
+
### Personalizações específicas
|
64
|
+
|
65
|
+
viewMode: [ browsing presentation reading ]
|
66
|
+
|
67
|
+
# Auto Flip
|
68
|
+
autoFlip: true
|
69
|
+
autoFlipTime: 6000
|
70
|
+
|
71
|
+
# Somente para viewMode = [ browsing presentation ]
|
72
|
+
# Cor ou tema
|
73
|
+
[ # cor
|
74
|
+
backgroundColor: 000000
|
75
|
+
layout: http%3A%2F%2Fskin.issuu.com%2Fv%2Fcolor%2Flayout.xml
|
76
|
+
#tema
|
77
|
+
[ # light
|
78
|
+
layout: http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml
|
79
|
+
# Dark
|
80
|
+
layout: http%3A%2F%2Fskin.issuu.com%2Fv%2Fdark%2Flayout.xml
|
81
|
+
# light (apenas icones)
|
82
|
+
layout: http%3A%2F%2Fskin.issuu.com%2Fv%2Flighticons%2Flayout.xml
|
83
|
+
# dark (apenas icones)
|
84
|
+
layout: http%3A%2F%2Fskin.issuu.com%2Fv%2Fdarkicons%2Flayout.xml
|
85
|
+
# Custon
|
86
|
+
layout: [URL] # http://platform.issuu.com/customize
|
87
|
+
]
|
88
|
+
]
|
89
|
+
|
90
|
+
# Somente para viewMode = [ reading ]
|
91
|
+
# Modo de visão
|
92
|
+
wmode: [
|
93
|
+
0 # Paisagem
|
94
|
+
1 # Retrato
|
95
|
+
]
|
96
|
+
|
97
|
+
# Url para miniatura
|
98
|
+
http://image.issuu.com/[document]/jpg/page_[Página]_thumb_[size].jpg
|
99
|
+
ex:
|
100
|
+
http://image.issuu.com/130507060605-91cf0a978f3a45b39cd1dcfddd99166c/jpg/page_1_thumb_medium.jpg
|
101
|
+
http://image.issuu.com/130507060605-91cf0a978f3a45b39cd1dcfddd99166c/jpg/page_2_thumb_large.jpg
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'rdcms_publication/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "rdcms_publication"
|
9
|
+
s.version = RdcmsPublication::VERSION
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = ["Gullit Miranda"]
|
12
|
+
s.email = ["gullitmiranda@requestdev.com.br"]
|
13
|
+
s.homepage = "http://www.requestdev.com.br/rdcms/publications"
|
14
|
+
s.summary = %q{Módulo de Publicações para o RDCMS}
|
15
|
+
s.description = %q{O Rdcms Publications é o módulo para publicações de cartilhas, revistas, catálogos dentro outros materiais do gênero utilizando a api do ISSUU.com}
|
16
|
+
s.license = "MIT"
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split($/)
|
19
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
|
23
|
+
s.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
s.add_development_dependency "rake"
|
25
|
+
|
26
|
+
# s.add_development_dependency 'better_errors'
|
27
|
+
# s.add_development_dependency 'binding_of_caller'
|
28
|
+
|
29
|
+
# Dependências
|
30
|
+
s.add_dependency "rdcms", "~> 1.0.21"
|
31
|
+
s.add_dependency "devise", "~> 2.2.3"
|
32
|
+
s.add_dependency "activeadmin", "~> 0.6.0"
|
33
|
+
s.add_dependency "issuu", "~> 0.3.0"
|
34
|
+
end
|
data/script/rails
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/rdcms_publication/engine', __FILE__)
|
6
|
+
|
7
|
+
require 'rails/all'
|
8
|
+
require 'rails/engine/commands'
|