biola_frontend_toolkit 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30593500423411391197274af31cfa7cfbc06755
4
- data.tar.gz: 6509ebff93768b6e932a04b7959d0f86368ca59e
3
+ metadata.gz: c967f38c710cd8bebd1882d737c3ae5324f94a65
4
+ data.tar.gz: 3c9515401e35c27ec00bfdaa3b727f770c757359
5
5
  SHA512:
6
- metadata.gz: 580f710aa81371a9590f16fe2f8aaf8b2bd5317e24f0a1bcf17f20cf5d36ff1334cb242bc1c3d3723372fd017f5b1dcc110a25b7482cec2820fae4a4744935e3
7
- data.tar.gz: 7594194ad238d6271483f5d83bec035550874a0e53c45be5ae8c207e6b425274a392be454ccb36729be3caa91a6eff84b08dd010e09cfd82c691bb328e5975bb
6
+ metadata.gz: 42638d3da16d37725809c77a8a5dee58999b3351b603f1d10e22b09b7fc18b4ff416834deb2878eb9b9b5da2d454b57f06a5cc8513dc8e4cd9fad169d7455fec
7
+ data.tar.gz: 8cfac4f7d5f254725d82df4158790ace0b5592529e2c311c8e779cb36f9a6c35dc84b7332d0db916ebd5b7c536bec008d94638a0ee377310fbe349c5e233f887
data/README.md CHANGED
@@ -62,8 +62,19 @@ Create a new file called `/config/initializers/biola_frontend_toolkit.rb`
62
62
  config.app_name = Settings.app.name
63
63
  config.app_version = Version.current # optional
64
64
  config.relative_root = Settings.app.relative_url_root
65
+ config.release_phase = Settings.release.phase
65
66
  end
67
+ ## View Partials
68
+ ### frontend_toolkit/head
69
+ Use this partial to include default html head tags and csrf_meta_tags
66
70
 
71
+ ### frontend_toolkit/header
72
+ Use `frontend_toolkit/header` for content publishers and other employee web apps.
73
+
74
+ ### frontend_toolkit/prerelease_banner
75
+ Use `frontend_toolkit/prerelease_banner` when your app is in the alpha or beta phases. Make sure BiolaFrontendToolkit.config.release_phase is set to `alpha` or `beta`.
76
+
77
+ = render 'frontend_toolkit/prerelease_banner', feedback_form_url: Settings.feedback.form_url
67
78
 
68
79
  ## Contributing
69
80
 
@@ -0,0 +1,14 @@
1
+ - feedback_form_url ||= nil
2
+ - phase = BiolaFrontendToolkit.config.release_phase
3
+
4
+ - if ['alpha', 'beta'].include? phase
5
+ #wrapperPreRelease
6
+ div id==phase+'Banner' class='pre-release-banner'
7
+ .container
8
+ span
9
+ strong = phase.upcase+':'
10
+ '
11
+ - if feedback_form_url
12
+ | #{BiolaFrontendToolkit.config.release_phase_intro} — your #{link_to 'feedback', feedback_form_url, target: '_blank' } will help us improve it.
13
+ - else
14
+ = BiolaFrontendToolkit.config.release_phase_intro+'.'
@@ -4,6 +4,7 @@ module BiolaFrontendToolkit
4
4
  attr_accessor :app_version
5
5
  attr_accessor :relative_root
6
6
  attr_accessor :app_links
7
+ attr_accessor :release_phase
7
8
 
8
9
  def initialize
9
10
  @app_name = 'App Name'
@@ -11,5 +12,16 @@ module BiolaFrontendToolkit
11
12
  @relative_root = '/'
12
13
  @app_links = []
13
14
  end
15
+
16
+ def release_phase_intro
17
+ case release_phase
18
+ when 'alpha'
19
+ 'This is a prototype'
20
+ when 'beta'
21
+ 'This is a trial service'
22
+ else
23
+ ''
24
+ end
25
+ end
14
26
  end
15
27
  end
@@ -1,3 +1,3 @@
1
1
  module BiolaFrontendToolkit
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biola_frontend_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hall
@@ -55,10 +55,9 @@ files:
55
55
  - app/assets/stylesheets/biola/header.css.scss
56
56
  - app/assets/stylesheets/biola/prerelease.css.scss
57
57
  - app/helpers/biola_frontend/rails/frontend_toolkit_helper.rb
58
- - app/views/frontend_toolkit/_alpha_banner.html.slim
59
- - app/views/frontend_toolkit/_beta_banner.html.slim
60
58
  - app/views/frontend_toolkit/_head.html.slim
61
59
  - app/views/frontend_toolkit/_header.html.slim
60
+ - app/views/frontend_toolkit/_prerelease_banner.html.slim
62
61
  - biola_frontend_toolkit.gemspec
63
62
  - lib/biola_frontend_toolkit.rb
64
63
  - lib/biola_frontend_toolkit/configuration.rb
@@ -1,11 +0,0 @@
1
- - feedback_form_url ||= nil
2
- #wrapperPreRelease
3
- #alphaBanner.pre-release-banner
4
- .container
5
- span
6
- strong ALPHA:
7
- '
8
- - if feedback_form_url
9
- | This is a prototype — your #{link_to 'feedback', feedback_form_url, target: '_blank' } will help us improve it.
10
- - else
11
- | This is a prototype.
@@ -1,7 +0,0 @@
1
- #wrapperPreRelease
2
- #betaBanner.pre-release-banner
3
- .container
4
- span
5
- strong BETA:
6
- '
7
- | This is a trial service — your #{link_to 'feedback', 'https://forms.biola.edu/information-technology/profile-publisher-feedback'} will help us improve it.