spina-conferences-primer_theme-fork 0.10.0 → 1.0.0.rc4

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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -12
  3. data/app/assets/builds/spina/conferences/primer_theme/application.css +25964 -0
  4. data/app/assets/config/spina_conferences_primer_theme_manifest.js +7 -4
  5. data/app/assets/javascripts/spina/conferences/primer_theme/application.js +6 -7
  6. data/app/assets/javascripts/spina/conferences/primer_theme/controllers/application.js +10 -0
  7. data/app/assets/javascripts/spina/conferences/primer_theme/controllers/index.js +5 -0
  8. data/app/assets/javascripts/spina/conferences/primer_theme/controllers/{slideshow_controller.es6 → slideshow_controller.js} +14 -4
  9. data/app/assets/stylesheets/spina/conferences/primer_theme/application.sass +1 -1
  10. data/app/controllers/spina/conferences/primer_theme/blog/application_controller.rb +11 -0
  11. data/app/controllers/spina/conferences/primer_theme/blog/categories_controller.rb +0 -10
  12. data/app/controllers/spina/conferences/primer_theme/blog/posts_controller.rb +0 -15
  13. data/app/controllers/spina/conferences/primer_theme/conferences/application_controller.rb +13 -0
  14. data/app/controllers/spina/conferences/primer_theme/journal/application_controller.rb +12 -0
  15. data/app/controllers/spina/conferences/primer_theme/journal/articles_controller.rb +13 -7
  16. data/app/controllers/spina/conferences/primer_theme/journal/authors_controller.rb +48 -0
  17. data/app/controllers/spina/conferences/primer_theme/journal/issues_controller.rb +11 -4
  18. data/app/helpers/spina/conferences/primer_theme/application_helper.rb +20 -1
  19. data/app/helpers/spina/conferences/primer_theme/navigations_helper.rb +13 -0
  20. data/app/views/conferences_primer_theme/pages/about.html.haml +16 -10
  21. data/app/views/conferences_primer_theme/pages/committee.html.haml +8 -6
  22. data/app/views/conferences_primer_theme/pages/embedded_form.html.haml +1 -1
  23. data/app/views/conferences_primer_theme/pages/events.html.haml +11 -5
  24. data/app/views/conferences_primer_theme/pages/information.html.haml +1 -1
  25. data/app/views/conferences_primer_theme/pages/journal_information.html.haml +10 -0
  26. data/app/views/conferences_primer_theme/pages/periodical.html.haml +8 -8
  27. data/app/views/conferences_primer_theme/partials/_event.html.haml +2 -2
  28. data/app/views/conferences_primer_theme/partials/_homepage_item.html.haml +1 -1
  29. data/app/views/layouts/conferences_primer_theme/application.html.haml +1 -1
  30. data/app/views/layouts/spina/conferences/primer_theme/application.html.haml +7 -14
  31. data/app/views/layouts/spina/conferences/primer_theme/journal/articles.html.haml +3 -0
  32. data/app/views/layouts/spina/conferences/primer_theme/journal/authors.html.haml +5 -0
  33. data/app/views/layouts/spina/conferences/primer_theme/journal/issues.html.haml +3 -0
  34. data/app/views/spina/application/_admin_bar.html.haml +7 -0
  35. data/app/views/spina/application/_alert.html.haml +4 -0
  36. data/app/views/spina/application/_analytics.html.erb +10 -0
  37. data/app/views/spina/application/_cookies.html.haml +8 -7
  38. data/app/views/spina/application/_cookies_footer.html.haml +15 -0
  39. data/app/views/spina/application/_footer.html.haml +21 -13
  40. data/app/views/spina/application/_google_site_verification.html.haml +1 -0
  41. data/app/views/spina/application/_journal_navigation.html.haml +17 -0
  42. data/app/views/spina/application/_mobile_navigation_items.html.haml +0 -3
  43. data/app/views/spina/application/_navigation.html.haml +1 -4
  44. data/app/views/spina/conferences/primer_theme/blog/categories/show.html.haml +5 -3
  45. data/app/views/spina/conferences/primer_theme/blog/posts/_post.html.haml +3 -2
  46. data/app/views/spina/conferences/primer_theme/blog/posts/index.html.haml +5 -3
  47. data/app/views/spina/conferences/primer_theme/blog/posts/show.html.haml +5 -5
  48. data/app/views/spina/conferences/primer_theme/conferences/conferences/_conference.html.haml +2 -2
  49. data/app/views/spina/conferences/primer_theme/conferences/conferences/_event.html.haml +3 -3
  50. data/app/views/spina/conferences/primer_theme/conferences/conferences/_events.html.haml +6 -3
  51. data/app/views/spina/conferences/primer_theme/conferences/conferences/_header.html.haml +3 -3
  52. data/app/views/spina/conferences/primer_theme/conferences/conferences/_presentation.html.haml +1 -1
  53. data/app/views/spina/conferences/primer_theme/conferences/conferences/_presentations.html.haml +9 -6
  54. data/app/views/spina/conferences/primer_theme/conferences/conferences/_submission_flash.html.haml +2 -2
  55. data/app/views/spina/conferences/primer_theme/conferences/conferences/index.html.haml +9 -6
  56. data/app/views/spina/conferences/primer_theme/conferences/conferences/show.html.haml +8 -4
  57. data/app/views/spina/conferences/primer_theme/journal/articles/_authorship.html.haml +8 -6
  58. data/app/views/spina/conferences/primer_theme/journal/articles/_metadata.html.haml +7 -7
  59. data/app/views/spina/conferences/primer_theme/journal/articles/show.html.haml +12 -14
  60. data/app/views/spina/conferences/primer_theme/journal/authors/_author.html.haml +9 -0
  61. data/app/views/spina/conferences/primer_theme/journal/authors/index.html.haml +12 -0
  62. data/app/views/spina/conferences/primer_theme/journal/authors/show.html.haml +22 -0
  63. data/app/views/spina/conferences/primer_theme/journal/issues/_article.html.haml +4 -4
  64. data/app/views/spina/conferences/primer_theme/journal/issues/_issue.html.haml +7 -6
  65. data/app/views/spina/conferences/primer_theme/journal/issues/index.html.haml +30 -24
  66. data/app/views/spina/conferences/primer_theme/journal/issues/show.html.haml +33 -21
  67. data/config/initializers/importmap.rb +21 -0
  68. data/config/initializers/primer.rb +1 -1
  69. data/config/initializers/themes/conferences_primer_theme.rb +14 -2
  70. data/config/locales/en.yml +21 -32
  71. data/config/routes.rb +6 -2
  72. data/lib/spina/conferences/primer_theme/engine.rb +6 -2
  73. data/lib/spina/conferences/primer_theme/version.rb +1 -1
  74. data/lib/spina/conferences/primer_theme.rb +10 -2
  75. metadata +53 -25
  76. data/app/views/spina/application/_current_conference_alert.html.haml +0 -4
  77. data/app/views/spina/application/_footer_content.html.haml +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce68bf02784663a0e354ca369154d20f4599eae01c0910be10c57d6d330afba3
4
- data.tar.gz: fe44d6649b68188d82fdd843b0a55d44b32bde8f89752513a152f61fd074ea2f
3
+ metadata.gz: 3f6a7caf015d10b4b0c43b0e99fa682a26da63c770b2d93ef4b11891e30b48c8
4
+ data.tar.gz: 4d95d757a0e0e4ee920e70ef564cd8729e223ba61091a8f464571791fb8d5df4
5
5
  SHA512:
6
- metadata.gz: 193634c447d2d784f51be6787991e3754d178bc78998de0a4c0dfd4171eeb5ad669fc1a13e7ac02fd2d288a254611213d6b72949360d547855c63e59707fca93
7
- data.tar.gz: d337742e09e81dab12073e1a49a844e3d66612769e5bd7d9cb152beccfba1f3f629909bdc39ce8871fadfbd440e044c1ea2a9399e65e31e64b8965af0d15d7df
6
+ metadata.gz: f031b0f95f0f83b6740c7ac27f34b7d30c38c5fef26b96a17b10e7c592efff88362276d1733c69da93de6c2a3a42f17d1196f32565298edf1b4020e49ecbf55c
7
+ data.tar.gz: 1b0b5603a18de7dcf81f060b6ff8a27df9e08ca62e7527d41c87c71d455ad4a8b6b7d4849571119a9691bac18f4922000c81e2dd28202541f217318a963961bc
data/README.md CHANGED
@@ -1,24 +1,39 @@
1
- # PrimerTheme: frontend for Spina
1
+ # PrimerTheme for Spina
2
+
3
+ PrimerTheme is a theme for Spina that uses [GitHub's Primer design system](https://primer.style/). It provides frontends for Spina pages, as well as for the following Spina plugins:
4
+
5
+ - [Conferences](https://github.com/louis-vs/spina-admin-conferences-fork/)
6
+ - [Journal](https://github.com/louis-vs/spina-admin-journal)
7
+ - [Blog (fork)](https://github.com/louis-vs/spina-admin-conferences-blog)
8
+
9
+ All of these plugins will be automatically installed with PrimerTheme, but you can use any selection of them that you wish. PrimerTheme provides you with an easy-to-setup Spina theme with a wide array of options, extending the core Spina setup.
10
+
11
+ PrimerTheme was originally designed for the Undergraduate Linguistics Association of Britain's website, which you can [view here](https://www.ulab.org.uk/) if you want to see the theme in action.
12
+
13
+ **NB:** Please use this fork, rather than the original. This fork provides a stable, updated release, whilst the old repo is no longer maintained.
2
14
 
3
15
  ![Rails tests](https://github.com/louis-vs/spina-conferences-primer_theme-fork/workflows/Verify/badge.svg?branch=master&event=push)
4
16
  [![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
17
  [![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
18
  [![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
19
 
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`.
20
+ ## Features
9
21
 
10
- This fork provides an updated version of the plugin, as the main repo is currently badly outdated.
22
+ The plugin's main goal is to provide frontends for Spina core and the three plugins listed above, using Primer. It also provides a number of useful page templates for use with Spina.
11
23
 
12
24
  ## Usage
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
14
- `manifest.js` file.
15
25
 
16
- ```js
17
- //= link spina_conferences_primer_theme_manifest.js
18
- ```
26
+ See the READMEs for the conference plugin, the journal plugin, and the blog 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.
27
+
28
+ You can customise Primer by overriding the `_custom.sass` and `_custom_variables.sass` files. See the [ULAB Website](https://github.com/ulab-committee/ulab-website) repo for an example.
19
29
 
20
30
  ## Installation
21
- Add this line to your application's Gemfile:
31
+
32
+ Make sure you have a working installation of Ruby on Rails 7. You can find a setup guide [here](https://guides.rubyonrails.org/getting_started.html).
33
+
34
+ You then need to install Spina, following the guide [on the Spina website](https://spinacms.com/docs).
35
+
36
+ To install the plugin, add this line to your application's Gemfile:
22
37
 
23
38
  ```ruby
24
39
  gem 'spina-conferences-primer_theme-fork', require: 'spina/conferences/primer_theme'
@@ -29,13 +44,46 @@ And then execute:
29
44
  $ bundle
30
45
  ```
31
46
 
32
- Or install it yourself as:
47
+ You will also need to configure Yarn. Add this repo as a dependency, so that your `package.json` resembles the following:
48
+
49
+ ```json
50
+ {
51
+ "name": "website_name",
52
+ "private": true,
53
+ "dependencies": {
54
+ "spina-conferences-primer-theme-fork": "louis-vs/spina-conferences-primer_theme-fork"
55
+ }
56
+ }
57
+ ```
58
+
59
+ You will then need to install and run the migrations from all of the plugins that come bundled with PrimerTheme:
60
+
61
+ ```bash
62
+ $ bin/rails spina_admin_journal:install:migrations
63
+ $ bin/rails spina_admin_conferences:install:migrations
64
+ $ bin/rails spina_admin_conferences_blog:install:migrations
65
+ $ bin/rails spina_conferences_primer_theme:install:migrations
66
+ $ bin/rails db:migrate
67
+ ```
68
+
69
+ Also make sure to ensure compilation of the assets for this gem by adding the following line to your `manifest.js` file.
70
+
71
+ ```js
72
+ //= link spina_conferences_primer_theme_manifest.js
73
+ ```
74
+
75
+ Finally, start the server with:
76
+
33
77
  ```bash
34
- $ gem install spina-conferences-primer_theme-fork
78
+ $ bin/rails s
35
79
  ```
36
80
 
81
+ If you want to customise Primer, you will need to add `_custom.sass` and/or `_custom_variables.sass` into `app/assets/stylesheets/spina/conferences/primer_theme`. You will also need to override the CSS build rake task so that it finds your new files - an example of this can be found in the ULAB website [here](https://github.com/ulab-committee/ulab-website/blob/master/lib/tasks/ulab_website_tasks.rake).
82
+
37
83
  ## Contributing
38
- Contributions welcome, open an issue first please.
84
+
85
+ Bug reports and feature requests are welcome in the [Issues](https://github.com/louis-vs/spina-conferences-primer_theme-fork/issues) section. Translations are also very welcome!
39
86
 
40
87
  ## License
88
+
41
89
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).