bookends 10.0.6 → 10.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6601ae27bcdc3f586ffc920edc776313e1a7135049a33df52d22d9acd27980ca
4
- data.tar.gz: '042279ceb99e5ed46d7adeabedaeabf2e3c99cece860dbbc16612be3084f7e29'
3
+ metadata.gz: eda5abadf8cf6af38c32aeeeacdd4140f9206db809b69e6726b3ddfc0348ea94
4
+ data.tar.gz: 2d4189980390b62ad3a8cdd0a584400bcba41f7000b0f3f931a562dba9376d6c
5
5
  SHA512:
6
- metadata.gz: 318b7ce84f031cec5767d1a3314b5f87f5518dc31742520fd49c9f596e8af38e828fd406020f54890a42320dd0415f9c9dd59741bba4c71f8b0750cd92f7b39f
7
- data.tar.gz: f5aaffbce20ab4840d00bfd5d66c8c872e42a83f02ccad8688203a6b40a7c00c995631f0631b3ec54afa125850c14400fa07f46ee3e59437fa9c03c99c1446a4
6
+ metadata.gz: b37d847eecaaf691a8596905cb35659f8bea49af23b51886d6e6b4a11b662746b5843d68bfe5f8ac24178e97ddaca5c7d05857d436a185ae5927c4ceec5c16fc
7
+ data.tar.gz: 2d0c739974543cf727847caf91eb8a2be9f22ab0fddfe3cf5f62a82250351f73c45552af0bbbd2363aebfc347b5e6df7c064a81b04e664d8d35ca8e67dbdeb2a
@@ -12,5 +12,4 @@
12
12
  @import 'search';
13
13
  @import 'search-page';
14
14
  @import 'footer';
15
- @import 'cookie-banner';
16
15
  @import 'helpers';
@@ -108,9 +108,10 @@
108
108
  <div class="col">
109
109
  <ul>
110
110
  <li><a href="<%= Bookends::Config.host_www %>/home">heroku.com</a></li>
111
- <li><a href="<%= Bookends::Config.host_www %>/policy/salesforce-heroku-msa" rel="nofollow">Terms of Service</a></li>
111
+ <li><a href="<%= ENV['BOOKENDS_TOS_URL'] || 'https://www.salesforce.com/company/legal/sfdc-website-terms-of-service/' %>" rel="nofollow">Terms of Service</a></li>
112
112
  <li><a href="https://www.salesforce.com/company/privacy/" rel="nofollow">Privacy</a></li>
113
113
  <li><a href="https://www.salesforce.com/company/privacy/full_privacy.jsp#nav_info" rel="nofollow">Cookies</a></li>
114
+ <li><a class="optanon-toggle-display" rel="nofollow" href="#">Cookie Preferences</a></li>
114
115
  <li class="copyright">
115
116
  &copy;
116
117
  <%= Date.current.year %>
@@ -1,5 +1,3 @@
1
- <div id="heroku-cookie-banner"></div>
2
-
3
1
  <!--googleoff: anchor-->
4
2
  <a class="visuallyhidden skip-link" href="#skip-link">Skip Navigation</a>
5
3
  <!--googleon: anchor-->
@@ -1,21 +1,30 @@
1
+ <% search_target = local_assigns[:search_target].presence || search_path %>
2
+ <% search_base_index = local_assigns[:search_base_index].presence || ENV['ALGOLIA_BASE_INDEX'] %>
3
+ <% www_search_index = local_assigns[:www_search_index].presence || 'www_page_idx' %>
4
+ <% devcenter_search_index = local_assigns[:devcenter_search_index].presence || 'dev_center_article_idx' %>
5
+ <% elements_search_index = local_assigns[:elements_search_index].presence || 'elements_resource_idx' %>
6
+ <% blog_search_index = local_assigns[:blog_search_index].presence || 'blog_post_idx' %>
7
+
1
8
  <div id="bookends-search-page" class="search-page">
2
9
  <div class="wrapper wrapper-md">
3
- <%= form_tag search_path, method: :get, id: 'search-form' do %>
10
+ <%= form_tag search_target, method: :get, id: 'search-form' do %>
4
11
  <%= text_field_tag :q, params[:q], class: 'form-control', id: 'search-input', autocomplete: 'off', autofocus: true %>
5
12
  <%= submit_tag 'Submit search', class: 'search-submit' %>
6
13
  <span class="search-icon"></span>
7
14
  <% end %>
8
15
  <%= hidden_field_tag :search_app_id, ENV['ALGOLIA_APP_ID'], id: 'search-app-id' %>
9
16
  <%= hidden_field_tag :search_api_key, ENV['ALGOLIA_SEARCH_API_KEY'], id: 'search-api-key' %>
10
- <%= hidden_field_tag :search_base_index, ENV['ALGOLIA_BASE_INDEX'], id: 'search-base-index' %>
17
+ <%= hidden_field_tag :search_base_index, search_base_index, id: 'search-base-index' %>
18
+
19
+ <%= yield if block_given? %>
11
20
 
12
21
  <% if ENV['SEARCH_BASE_INDEX_ONLY'].nil? || ENV['SEARCH_BASE_INDEX_ONLY'].to_s == 'false' %>
13
22
  <nav class="js-index-selector-container search-tabs">
14
23
  <ul>
15
- <li><a href="#" class="js-index-selector search-tab" data-index="www_page_idx">WWW</a></li>
16
- <li><a href="#" class="js-index-selector search-tab" data-index="dev_center_article_idx">Dev Center</a></li>
17
- <li><a href="#" class="js-index-selector search-tab" data-index="elements_resource_idx">Marketplace</a></li>
18
- <li><a href="#" class="js-index-selector search-tab" data-index="blog_post_idx">Blog</a></li>
24
+ <li><a href="#" class="js-index-selector search-tab" data-index="<%= www_search_index %>">WWW</a></li>
25
+ <li><a href="#" class="js-index-selector search-tab" data-index="<%= devcenter_search_index %>">Dev Center</a></li>
26
+ <li><a href="#" class="js-index-selector search-tab" data-index="<%= elements_search_index %>">Marketplace</a></li>
27
+ <li><a href="#" class="js-index-selector search-tab" data-index="<%= blog_search_index %>">Blog</a></li>
19
28
  </ul>
20
29
  </nav>
21
30
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Bookends
2
- VERSION = '10.0.6'.freeze
2
+ VERSION = '10.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookends
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.6
4
+ version: 10.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketing Web Ops at heroku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-19 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -104,14 +104,14 @@ dependencies:
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: 2.1.4
107
+ version: 2.2.3
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: 2.1.4
114
+ version: 2.2.3
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: rake
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -132,14 +132,14 @@ dependencies:
132
132
  requirements:
133
133
  - - "~>"
134
134
  - !ruby/object:Gem::Version
135
- version: '3.5'
135
+ version: 4.0.2
136
136
  type: :development
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - "~>"
141
141
  - !ruby/object:Gem::Version
142
- version: '3.5'
142
+ version: 4.0.2
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: sqlite3
145
145
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +221,6 @@ files:
221
221
  - app/assets/images/nav-flyout-caret.svg
222
222
  - app/assets/javascripts/blog-fetcher.js
223
223
  - app/assets/javascripts/bookends.js
224
- - app/assets/javascripts/cookie-banner.js
225
224
  - app/assets/javascripts/heroku-namespace.js
226
225
  - app/assets/javascripts/lscache.js
227
226
  - app/assets/javascripts/md5.js
@@ -237,7 +236,6 @@ files:
237
236
  - app/assets/javascripts/vendor/algoliasearch.js
238
237
  - app/assets/stylesheets/bookends/_base.scss
239
238
  - app/assets/stylesheets/bookends/_colors.scss
240
- - app/assets/stylesheets/bookends/_cookie-banner.scss
241
239
  - app/assets/stylesheets/bookends/_fonts.scss
242
240
  - app/assets/stylesheets/bookends/_footer.scss
243
241
  - app/assets/stylesheets/bookends/_glostick.scss
@@ -1,49 +0,0 @@
1
- // Uses cookies to see if users have dismissed the cookie banner.
2
- // If they haven't, inserts the banner:
3
- // - if an element with ID = Heroku.CookieBanner.domElementId exists, inserts the content of the banner there
4
- // - if not, inserts the banner at the top of the body element
5
- var Heroku = Heroku || {};
6
-
7
- Heroku.CookieBanner = {
8
- cookieName : 'heroku-cookie-banner-dismissed',
9
- cookieDismissedValue : '1',
10
- domElementId : 'heroku-cookie-banner',
11
- domain : '.heroku.com', // accessible to all subdomains
12
- init : function() {
13
- var dismissed = Heroku.CookieBanner.getCookie(Heroku.CookieBanner.cookieName) == Heroku.CookieBanner.cookieDismissedValue;
14
- if (!dismissed) {
15
- Heroku.CookieBanner.insert();
16
- }
17
- },
18
- insert : function() {
19
- var html = '<div class="heroku-cookie-banner" aria-live="polite" role="status"><p>We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can <a href="https://www.salesforce.com/company/privacy/full_privacy.jsp#nav_info">read more</a> and <a href="https://www.salesforce.com/company/privacy/full_privacy.jsp#nav_info">make your cookie choices here</a>. By continuing to use this site you are giving us your consent to do this.</p> <a class="heroku-cookie-banner__dismiss" href="#" onclick="Heroku.CookieBanner.dismiss(event)"><svg viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.663 8.01l-3.362 3.362a.955.955 0 0 0-.005 1.352.953.953 0 0 0 1.352-.005L8.01 9.357l3.362 3.362a.955.955 0 0 0 1.352.005.953.953 0 0 0-.005-1.352L9.357 8.01l3.362-3.362a.955.955 0 0 0 .005-1.352.953.953 0 0 0-1.352.005L8.01 6.663 4.648 3.301a.955.955 0 0 0-1.352-.005.953.953 0 0 0 .005 1.352L6.663 8.01z"></path></svg></a></div>';
20
- var placeholder = document.getElementById('heroku-cookie-banner');
21
- if (placeholder) {
22
- placeholder.innerHTML = html;
23
- } else {
24
- var banner = document.createElement('div');
25
- banner.setAttribute('id', Heroku.CookieBanner.domElementId);
26
- banner.innerHTML = html;
27
- document.body.insertBefore(banner, document.body.childNodes[0]);
28
- }
29
- },
30
- getCookie: function(name) {
31
- var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
32
- return v ? v[2] : null;
33
- },
34
- setCookie : function(name, value, domain, days) {
35
- var d = new Date;
36
- d.setTime(d.getTime() + 24*60*60*1000*days);
37
- document.cookie = name + '=' + value + ';domain=' + domain + ';path=/;expires=' + d.toGMTString();
38
- },
39
- dismiss : function(event) {
40
- Heroku.CookieBanner.setCookie(Heroku.CookieBanner.cookieName, Heroku.CookieBanner.cookieDismissedValue, Heroku.CookieBanner.domain, 365);
41
- var cookieBanner = document.getElementById(Heroku.CookieBanner.domElementId);
42
- cookieBanner.parentElement.removeChild(cookieBanner);
43
- event.preventDefault();
44
- }
45
- };
46
-
47
- document.addEventListener("DOMContentLoaded", function(event) {
48
- Heroku.CookieBanner.init();
49
- });
@@ -1,91 +0,0 @@
1
- /* Cookie Banner */
2
-
3
- .heroku-cookie-banner {
4
- background: #F9F9FB;
5
- font-family: inherit;
6
- line-height: 1.4;
7
- box-shadow: 0 0 0 1px rgba(89,105,128,0.05),0 3px 20px 0 rgba(89,105,128,0.1),0 1px 2px 0 rgba(0,0,0,0.05);
8
- position: relative;
9
- z-index: 1000;
10
- display: flex;
11
- }
12
-
13
- .heroku-cookie-banner a {
14
- color: #1969ca;
15
- }
16
-
17
- .heroku-cookie-banner.heroku-cookie-banner p {
18
- margin: 0;
19
- padding: 0;
20
- color: #333D47;
21
- padding: 15px 20px;
22
- max-width: 1024px;
23
- margin-right: auto;
24
- font-size: 14px;
25
- line-height: 1.4;
26
- }
27
-
28
- .heroku-cookie-banner__dismiss {
29
- border-left: 1px solid #e7e7e7;
30
- display: flex;
31
- padding: 20px;
32
- transition: background-color 0.3s;
33
- }
34
-
35
- .heroku-cookie-banner__dismiss:hover {
36
- background-color: #F0F7FF;
37
- }
38
-
39
- .heroku-cookie-banner__dismiss svg {
40
- width: 16px;
41
- height: 100%;
42
- fill: currentColor;
43
- vertical-align: middle;
44
- }
45
-
46
- /* Media Queries */
47
-
48
- @media (max-width: 600px) {
49
- .heroku-cookie-banner {
50
- font-size: 13px;
51
- flex-direction: column;
52
- }
53
-
54
- .heroku-cookie-banner p,
55
- .heroku-cookie-banner__dismiss {
56
- padding: 15px;
57
- }
58
-
59
- .heroku-cookie-banner__dismiss {
60
- text-decoration: none;
61
- border-top: 1px solid #eee;
62
- border-left: none;
63
- }
64
-
65
- .heroku-cookie-banner__dismiss::after {
66
- content: "Dismiss";
67
- padding-left: 10px;
68
- }
69
-
70
- .heroku-cookie-banner__dismiss svg {
71
- height: 16px;
72
- }
73
- }
74
-
75
- /* Overrides */
76
- /* Banner mode */
77
- #heroku-cookie-banner.banner-mode .heroku-cookie-banner {
78
- border-radius: 3px;
79
- margin: 20px auto;
80
- z-index: 0;
81
- max-width: 1024px;
82
- }
83
-
84
- /* Overrides */
85
- /* Fixed mode */
86
- #heroku-cookie-banner.fixed-mode .heroku-cookie-banner {
87
- position: fixed;
88
- top: 0;
89
- left: 0;
90
- width: 100%;
91
- }