sibu 0.9.5 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +81 -4
- data/app/assets/javascripts/sibu/sibu.js.erb +17 -3
- data/app/assets/javascripts/tabs/van11y-accessible-tab-panel-aria.js +122 -124
- data/app/assets/stylesheets/sibu/defaults.scss +72 -80
- data/app/assets/stylesheets/sibu/sibu.css +20 -1
- data/app/controllers/sibu/application_controller.rb +8 -0
- data/app/controllers/sibu/pages_controller.rb +11 -4
- data/app/controllers/sibu/sites_controller.rb +6 -1
- data/app/helpers/sibu/application_helper.rb +1 -1
- data/app/helpers/sibu/pages_helper.rb +97 -16
- data/app/models/sibu/page.rb +0 -1
- data/app/models/sibu/site.rb +7 -0
- data/app/models/sibu/site_template.rb +1 -1
- data/app/views/layouts/sibu/edit_content.html.erb +220 -126
- data/app/views/sibu/images/edit.js.erb +5 -3
- data/app/views/sibu/pages/_code_edit_panel.html.erb +4 -3
- data/app/views/sibu/pages/_form.html.erb +8 -0
- data/app/views/sibu/pages/_link_edit_panel.html.erb +6 -6
- data/app/views/sibu/pages/_map_edit_panel.html.erb +3 -2
- data/app/views/sibu/pages/_media_edit_panel.html.erb +2 -2
- data/app/views/sibu/pages/_new_section_panel.html.erb +1 -1
- data/app/views/sibu/pages/_paragraph_edit_panel.html.erb +2 -2
- data/app/views/sibu/pages/_text_edit_panel.html.erb +2 -2
- data/app/views/sibu/pages/child_element.js.erb +2 -2
- data/app/views/sibu/pages/clone_element.js.erb +2 -2
- data/app/views/sibu/pages/create_section.js.erb +1 -1
- data/app/views/sibu/pages/delete_element.js.erb +1 -1
- data/app/views/sibu/pages/delete_section.js.erb +1 -1
- data/app/views/sibu/pages/edit.html.erb +1 -1
- data/app/views/sibu/pages/edit_element.js.erb +68 -66
- data/app/views/sibu/pages/edit_section.js.erb +6 -5
- data/app/views/sibu/pages/index.html.erb +3 -3
- data/app/views/sibu/pages/new_section.js.erb +22 -13
- data/app/views/sibu/pages/update_element.js.erb +2 -2
- data/app/views/sibu/pages/update_section.js.erb +3 -3
- data/app/views/sibu/sites/index.html.erb +1 -1
- data/db/migrate/20200401130601_add_ref_to_site_templates.rb +5 -0
- data/lib/sibu/engine.rb +0 -2
- data/lib/sibu/version.rb +1 -1
- metadata +3 -18
- data/app/views/sibu/pages/destroy.html.erb +0 -2
- data/app/views/sibu/pages/update.html.erb +0 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
<% if @updated.nil? %>
|
2
|
-
|
2
|
+
document.querySelector("#edit_panel #edit_msg").innerHTML = "<p class='sibu_alert'>Une erreur s'est produite lors de l'enregistrement.</p>";
|
3
3
|
<% else %>
|
4
|
-
|
4
|
+
document.querySelector("#edit_panel").classList.remove("active");
|
5
5
|
refreshAfterEdit(true, '<%= @section_id %>');
|
6
6
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% if @updated %>
|
2
|
-
|
3
|
-
refreshAfterEdit(true, '<%= @section_id %>');
|
2
|
+
document.querySelector("#edit_panel").classList.remove("active");
|
3
|
+
refreshAfterEdit(true, '<%= @section_id %>');
|
4
4
|
<% else %>
|
5
|
-
|
5
|
+
document.querySelector("#edit_panel #edit_msg").innerHTML = "<p class='sibu_alert'>Une erreur s'est produite lors de l'enregistrement.</p>";
|
6
6
|
<% end %>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<td><%= l s.updated_at %></td>
|
25
25
|
<td colspan="2">
|
26
26
|
<%= link_to 'Pages', site_pages_path(s) %> |
|
27
|
-
<%= link_to '
|
27
|
+
<%= link_to 'Réglages du site', edit_site_path(s) %> |
|
28
28
|
<%= link_to 'Copier', duplicate_site_path(s), method: :post, data: {confirm: "Copier le site \"#{s.name}\" ?"} %> |
|
29
29
|
<%= link_to 'Supprimer', site_path(s), method: :delete, data: {confirm: "Supprimer le site \"#{s.name}\" ?"} %>
|
30
30
|
</td>
|
data/lib/sibu/engine.rb
CHANGED
data/lib/sibu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '4.3'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: jquery-rails
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '4.3'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '4.3'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: sass-rails
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,7 +188,6 @@ files:
|
|
202
188
|
- app/views/sibu/pages/create_section.js.erb
|
203
189
|
- app/views/sibu/pages/delete_element.js.erb
|
204
190
|
- app/views/sibu/pages/delete_section.js.erb
|
205
|
-
- app/views/sibu/pages/destroy.html.erb
|
206
191
|
- app/views/sibu/pages/edit.html.erb
|
207
192
|
- app/views/sibu/pages/edit_content.html.erb
|
208
193
|
- app/views/sibu/pages/edit_element.js.erb
|
@@ -211,7 +196,6 @@ files:
|
|
211
196
|
- app/views/sibu/pages/new.html.erb
|
212
197
|
- app/views/sibu/pages/new_section.js.erb
|
213
198
|
- app/views/sibu/pages/show.html.erb
|
214
|
-
- app/views/sibu/pages/update.html.erb
|
215
199
|
- app/views/sibu/pages/update_element.js.erb
|
216
200
|
- app/views/sibu/pages/update_section.js.erb
|
217
201
|
- app/views/sibu/sites/_form.html.erb
|
@@ -245,6 +229,7 @@ files:
|
|
245
229
|
- db/migrate/20180321170310_add_version_to_sibu_sites.rb
|
246
230
|
- db/migrate/20180405095448_create_sibu_documents.rb
|
247
231
|
- db/migrate/20190110204854_add_custom_data_to_sibu_pages.rb
|
232
|
+
- db/migrate/20200401130601_add_ref_to_site_templates.rb
|
248
233
|
- lib/sibu.rb
|
249
234
|
- lib/sibu/engine.rb
|
250
235
|
- lib/sibu/utils.rb
|