spina-conferences-primer_theme-fork 0.9.2 → 1.0.0.rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -4
  3. data/Rakefile +6 -0
  4. data/app/assets/builds/spina/conferences/primer_theme/application.css +25964 -0
  5. data/app/assets/config/spina_conferences_primer_theme_manifest.js +7 -4
  6. data/app/assets/javascripts/spina/conferences/primer_theme/application.js +6 -7
  7. data/app/assets/javascripts/spina/conferences/primer_theme/controllers/application.js +10 -0
  8. data/app/assets/javascripts/spina/conferences/primer_theme/controllers/index.js +5 -0
  9. data/app/assets/javascripts/spina/conferences/primer_theme/controllers/{slideshow_controller.es6 → slideshow_controller.js} +14 -4
  10. data/app/assets/stylesheets/spina/conferences/primer_theme/application.sass +1 -1
  11. data/app/controllers/spina/conferences/primer_theme/blog/application_controller.rb +12 -0
  12. data/app/controllers/spina/conferences/primer_theme/blog/categories_controller.rb +0 -10
  13. data/app/controllers/spina/conferences/primer_theme/blog/posts_controller.rb +5 -20
  14. data/app/controllers/spina/conferences/primer_theme/conferences/application_controller.rb +12 -0
  15. data/app/controllers/spina/conferences/primer_theme/conferences/conferences_controller.rb +14 -13
  16. data/app/controllers/spina/conferences/primer_theme/conferences/presentations_controller.rb +2 -1
  17. data/app/controllers/spina/conferences/primer_theme/journal/application_controller.rb +11 -0
  18. data/app/controllers/spina/conferences/primer_theme/journal/articles_controller.rb +15 -7
  19. data/app/controllers/spina/conferences/primer_theme/journal/authors_controller.rb +48 -0
  20. data/app/controllers/spina/conferences/primer_theme/journal/issues_controller.rb +12 -5
  21. data/app/helpers/spina/conferences/primer_theme/application_helper.rb +33 -14
  22. data/app/helpers/spina/conferences/primer_theme/asset_helper.rb +10 -2
  23. data/app/helpers/spina/conferences/primer_theme/navigations_helper.rb +11 -1
  24. data/app/models/spina/parts/conferences/primer_theme/checkbox.rb +6 -2
  25. data/app/models/spina/parts/conferences/primer_theme.rb +9 -3
  26. data/app/views/conferences_primer_theme/pages/about.html.haml +14 -14
  27. data/app/views/conferences_primer_theme/pages/committee.html.haml +13 -12
  28. data/app/views/conferences_primer_theme/pages/embedded_form.html.haml +2 -2
  29. data/app/views/conferences_primer_theme/pages/events.html.haml +3 -3
  30. data/app/views/conferences_primer_theme/pages/homepage.html.haml +1 -1
  31. data/app/views/conferences_primer_theme/pages/information.html.haml +2 -2
  32. data/app/views/conferences_primer_theme/pages/journal_information.html.haml +10 -0
  33. data/app/views/conferences_primer_theme/pages/periodical.html.haml +10 -10
  34. data/app/views/conferences_primer_theme/pages/show.html.haml +1 -1
  35. data/app/views/conferences_primer_theme/partials/_event.html.haml +2 -2
  36. data/app/views/conferences_primer_theme/partials/_homepage_item.html.haml +2 -2
  37. data/app/views/layouts/conferences_primer_theme/application.html.haml +1 -1
  38. data/app/views/layouts/spina/conferences/primer_theme/application.html.haml +7 -14
  39. data/app/views/layouts/spina/conferences/primer_theme/journal/articles.html.haml +3 -0
  40. data/app/views/layouts/spina/conferences/primer_theme/journal/authors.html.haml +5 -0
  41. data/app/views/layouts/spina/conferences/primer_theme/journal/issues.html.haml +3 -0
  42. data/app/views/spina/application/_admin_bar.html.haml +7 -0
  43. data/app/views/spina/application/_alert.html.haml +4 -0
  44. data/app/views/spina/application/_analytics.html.erb +10 -0
  45. data/app/views/spina/application/{_footer_content.html.haml → _cookies_footer.html.haml} +1 -1
  46. data/app/views/spina/application/_footer.html.haml +20 -12
  47. data/app/views/spina/application/_google_site_verification.html.haml +1 -0
  48. data/app/views/spina/application/_journal_navigation.html.haml +17 -0
  49. data/app/views/spina/application/_mobile_navigation_items.html.haml +0 -3
  50. data/app/views/spina/application/_navigation.html.haml +0 -3
  51. data/app/views/spina/application/_text.html.haml +1 -1
  52. data/app/views/spina/conferences/primer_theme/blog/categories/show.html.haml +3 -3
  53. data/app/views/spina/conferences/primer_theme/blog/posts/_post.html.haml +4 -3
  54. data/app/views/spina/conferences/primer_theme/blog/posts/index.html.haml +3 -3
  55. data/app/views/spina/conferences/primer_theme/blog/posts/show.html.haml +8 -8
  56. data/app/views/spina/conferences/primer_theme/blog/shared/_sidebar.html.haml +1 -1
  57. data/app/views/spina/conferences/primer_theme/conferences/conferences/_conference.html.haml +2 -2
  58. data/app/views/spina/conferences/primer_theme/conferences/conferences/_event.html.haml +6 -6
  59. data/app/views/spina/conferences/primer_theme/conferences/conferences/_events.html.haml +1 -1
  60. data/app/views/spina/conferences/primer_theme/conferences/conferences/_header.html.haml +4 -4
  61. data/app/views/spina/conferences/primer_theme/conferences/conferences/_presentation.html.haml +4 -4
  62. data/app/views/spina/conferences/primer_theme/conferences/conferences/_presentations.html.haml +4 -4
  63. data/app/views/spina/conferences/primer_theme/conferences/conferences/_submission_flash.html.haml +3 -3
  64. data/app/views/spina/conferences/primer_theme/conferences/conferences/index.html.haml +3 -3
  65. data/app/views/spina/conferences/primer_theme/conferences/conferences/show.html.haml +5 -5
  66. data/app/views/spina/conferences/primer_theme/conferences/presentations/_abstract.html.haml +1 -1
  67. data/app/views/spina/conferences/primer_theme/conferences/presentations/_attachments.html.haml +1 -1
  68. data/app/views/spina/conferences/primer_theme/conferences/presentations/show.html.haml +3 -3
  69. data/app/views/spina/conferences/primer_theme/journal/articles/_authorship.html.haml +8 -6
  70. data/app/views/spina/conferences/primer_theme/journal/articles/_metadata.html.haml +7 -7
  71. data/app/views/spina/conferences/primer_theme/journal/articles/show.html.haml +24 -26
  72. data/app/views/spina/conferences/primer_theme/journal/authors/_author.html.haml +9 -0
  73. data/app/views/spina/conferences/primer_theme/journal/authors/index.html.haml +10 -0
  74. data/app/views/spina/conferences/primer_theme/journal/authors/show.html.haml +20 -0
  75. data/app/views/spina/conferences/primer_theme/journal/issues/_article.html.haml +6 -6
  76. data/app/views/spina/conferences/primer_theme/journal/issues/_issue.html.haml +10 -9
  77. data/app/views/spina/conferences/primer_theme/journal/issues/index.html.haml +27 -23
  78. data/app/views/spina/conferences/primer_theme/journal/issues/show.html.haml +31 -21
  79. data/config/initializers/importmap.rb +21 -0
  80. data/config/initializers/mime_types.rb +3 -1
  81. data/config/initializers/primer.rb +1 -1
  82. data/config/initializers/themes/conferences_primer_theme.rb +14 -2
  83. data/config/locales/en.yml +23 -33
  84. data/config/routes.rb +7 -3
  85. data/db/migrate/20210206170704_change_current_conference_alert_to_text.rb +1 -1
  86. data/lib/spina/conferences/primer_theme/breadcrumbs/builder.rb +4 -17
  87. data/lib/spina/conferences/primer_theme/engine.rb +7 -3
  88. data/lib/spina/conferences/primer_theme/version.rb +1 -1
  89. data/lib/spina/conferences/primer_theme.rb +10 -3
  90. metadata +62 -33
  91. data/app/views/spina/application/_current_conference_alert.html.haml +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6b6d06ee9207f434033dd3f7e10d6483eee02cf4ff6805173ee5e2cc9c5a3ca
4
- data.tar.gz: 82eaa180f742952c42063ff93af5029e8c7d7f9f228a1b0fc988d5626a4229ec
3
+ metadata.gz: 8b41121814204870d40e05f0f24a4903d2a90065a6c4e22f0bb9f35fbfc5cc6d
4
+ data.tar.gz: 407fa16213cc79508555b859dc426de75c632e19d1ddb8ab0f496fafb38132d6
5
5
  SHA512:
6
- metadata.gz: e716d4b2ac643c7b2567e35412c38972cc9bac0e0b8b0de7e98855c47fc12e431c254b796a39fd2443e85f0e26c057ef0f1a9b9178a3ea119b53053e706af015
7
- data.tar.gz: 6bd91a854364edaab284316bb496ade61b4ecd14a644f4b01e665d13c94b4b0c3dfadbae15d7021ec41aafa5cee4eba163cd0c1e8e6ba1c4aa678c48890f1984
6
+ metadata.gz: b23678f53c4f7b7009dee49c4bf677067ac366498debf71db357c1013f75fc7aec1a1d328568f0c299ef64521545ebb09c3363841956fee86cdc0589efa5f01a
7
+ data.tar.gz: 322fa3813cdd79f002781ce44ee5ae5fbb33e745a3e3f44efbfe679a835318c3643e60a540b8f059a029ca3ca02fbaf4cd24dbb20ef927d5cd5641cd6ea73bc0
data/README.md CHANGED
@@ -1,10 +1,16 @@
1
- # PrimerTheme
2
- A plugin for `Spina` that provides a frontend for `Spina::Admin::Conferences` using components from `Primer::ViewComponents`.
1
+ # PrimerTheme: frontend for Spina
3
2
 
4
- This fork provides an updated version of the plugin, as the main repo is currently stale.
3
+ ![Rails tests](https://github.com/louis-vs/spina-conferences-primer_theme-fork/workflows/Verify/badge.svg?branch=master&event=push)
4
+ [![codecov](https://codecov.io/gh/louis-vs/spina-conferences-primer_theme-fork/branch/master/graph/badge.svg?token=9TZ9QGGLAH)](https://codecov.io/gh/louis-vs/spina-conferences-primer_theme-fork)
5
+ [![CodeFactor](https://www.codefactor.io/repository/github/louis-vs/spina-conferences-primer_theme-fork/badge)](https://www.codefactor.io/repository/github/louis-vs/spina-conferences-primer_theme-fork)
6
+ [![Inline docs](http://inch-ci.org/github/louis-vs/spina-conferences-primer_theme-fork.svg?branch=master)](http://inch-ci.org/github/louis-vs/spina-conferences-primer_theme-fork)
7
+
8
+ A plugin for `Spina` that provides a frontend for `Spina::Admin::Conferences`, `Spina::Admin::Journal`, and `Spina::Admin::Conferences::Blog` using components from `Primer::ViewComponents`.
9
+
10
+ This fork provides an updated version of the plugin, as the main repo is currently badly outdated.
5
11
 
6
12
  ## Usage
7
- See the README for `Spina::Admin::Conferences`. Also make sure to ensure compilation of the assets for this gem by adding the following line to your
13
+ See the READMEs for the conference plugin, the journal plugin, and the bog plugin, respectively, for more information on what kind of content this frontend allows you to create and how to do so within the admin interface. Also make sure to ensure compilation of the assets for this gem by adding the following line to your
8
14
  `manifest.js` file.
9
15
 
10
16
  ```js
@@ -28,6 +34,12 @@ Or install it yourself as:
28
34
  $ gem install spina-conferences-primer_theme-fork
29
35
  ```
30
36
 
37
+ The first thing you will probably want to do is add three pages using the 'blank' template, and add
38
+ forwarding URLs as follows:
39
+ * Conferences to `/conferences/conferences`
40
+ * Journal to `/journal/issues`
41
+ * Blog to `/blog`
42
+
31
43
  ## Contributing
32
44
  Contributions welcome, open an issue first please.
33
45
 
data/Rakefile CHANGED
@@ -33,4 +33,10 @@ Rake::TestTask.new(:test) do |t|
33
33
  t.ruby_opts = %w[-W:no-deprecated]
34
34
  end
35
35
 
36
+ require 'rubocop/rake_task'
37
+
38
+ RuboCop::RakeTask.new do |t|
39
+ t.options << '--parallel' if ENV['CI']
40
+ end
41
+
36
42
  task default: :test