sibu 0.9.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/sibu/sibu.js.erb +17 -3
  3. data/app/assets/javascripts/tabs/van11y-accessible-tab-panel-aria.js +122 -124
  4. data/app/assets/stylesheets/sibu/defaults.scss +72 -80
  5. data/app/assets/stylesheets/sibu/sibu.css +8 -0
  6. data/app/controllers/sibu/application_controller.rb +8 -0
  7. data/app/controllers/sibu/pages_controller.rb +4 -3
  8. data/app/controllers/sibu/sites_controller.rb +1 -0
  9. data/app/helpers/sibu/pages_helper.rb +61 -12
  10. data/app/models/sibu/page.rb +0 -1
  11. data/app/models/sibu/site.rb +7 -0
  12. data/app/models/sibu/site_template.rb +1 -1
  13. data/app/views/layouts/sibu/edit_content.html.erb +189 -117
  14. data/app/views/sibu/images/edit.js.erb +5 -3
  15. data/app/views/sibu/pages/_code_edit_panel.html.erb +2 -2
  16. data/app/views/sibu/pages/_link_edit_panel.html.erb +6 -6
  17. data/app/views/sibu/pages/_map_edit_panel.html.erb +2 -2
  18. data/app/views/sibu/pages/_media_edit_panel.html.erb +2 -2
  19. data/app/views/sibu/pages/_new_section_panel.html.erb +1 -1
  20. data/app/views/sibu/pages/_paragraph_edit_panel.html.erb +2 -2
  21. data/app/views/sibu/pages/_text_edit_panel.html.erb +2 -2
  22. data/app/views/sibu/pages/child_element.js.erb +2 -2
  23. data/app/views/sibu/pages/clone_element.js.erb +2 -2
  24. data/app/views/sibu/pages/create_section.js.erb +1 -1
  25. data/app/views/sibu/pages/delete_element.js.erb +1 -1
  26. data/app/views/sibu/pages/delete_section.js.erb +1 -1
  27. data/app/views/sibu/pages/edit_element.js.erb +68 -66
  28. data/app/views/sibu/pages/edit_section.js.erb +6 -5
  29. data/app/views/sibu/pages/index.html.erb +1 -1
  30. data/app/views/sibu/pages/new_section.js.erb +22 -13
  31. data/app/views/sibu/pages/update_element.js.erb +2 -2
  32. data/app/views/sibu/pages/update_section.js.erb +3 -3
  33. data/db/migrate/20200401130601_add_ref_to_site_templates.rb +5 -0
  34. data/lib/sibu/engine.rb +0 -2
  35. data/lib/sibu/version.rb +1 -1
  36. metadata +3 -18
  37. data/app/views/sibu/pages/destroy.html.erb +0 -2
  38. data/app/views/sibu/pages/update.html.erb +0 -2
@@ -0,0 +1,5 @@
1
+ class AddRefToSiteTemplates < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :sibu_site_templates, :ref, :string
4
+ end
5
+ end
@@ -1,5 +1,3 @@
1
- require 'jquery-rails'
2
-
3
1
  module Sibu
4
2
  class Engine < ::Rails::Engine
5
3
  isolate_namespace Sibu
@@ -1,3 +1,3 @@
1
1
  module Sibu
2
- VERSION = '0.9.5'
2
+ VERSION = '1.0.0'
3
3
  end
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.9.5
4
+ version: 1.0.0
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-06-18 00:00:00.000000000 Z
11
+ date: 2020-04-27 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
@@ -1,2 +0,0 @@
1
- <h1>Pages#destroy</h1>
2
- <p>Find me in app/views/sibu/pages/destroy.html.erb</p>
@@ -1,2 +0,0 @@
1
- <h1>Pages#update</h1>
2
- <p>Find me in app/views/sibu/pages/update.html.erb</p>