bookends 10.1.0beta2 → 10.2.1

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: 29fd5bf9df9299ddd108d242564c73eb6070a6cf448611c2c183436eb8fe0453
4
- data.tar.gz: d91dae4f604ef84be089a2ce92b17f482a053b1eb066154146a43a0473c6793c
3
+ metadata.gz: d46a1a7b6ac9fc879abb7fe26d8ff49da3ad306c268c20630611fae84f1df2c2
4
+ data.tar.gz: bafacf3b305d4e3cb079b9d41f9c2e15bbc491a172684b9892dae1fd76f76e71
5
5
  SHA512:
6
- metadata.gz: 02aea68b0be0cabaf7f5bc13ae2cfa6914c8ca85b82b80ecc04f5152efbf20086236f5f6445d7ef7bb69a97c2316bac6b9364a9dffe3ec583c17caa8b41c96c1
7
- data.tar.gz: 4ac2909e04256d131ec46b74e372aa933a64b212db2b683467606af66122d5b8871c5073a14e58ee6bd23482342a9ca94998daac09528ae3c9ec7bdbf76a365a
6
+ metadata.gz: 8a20833745a9ba79df41c1282927fee797c4c39aa8334dbe9fd477f4b01b1115d80e54d877b93c419e448ff6bc87be80cd7fb428a73eed9c87f86fce1e7ee742
7
+ data.tar.gz: 0c914e3be6ac6961940da53fe41d412ca90ad7129e11a00acb808b3040feb608970b31c001031d612cd26e92264a438b4b25863b489ec50d2f5c87347ef15a0a
@@ -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';
@@ -91,7 +91,7 @@
91
91
  <li><a class="heroku-footer-icon-instagram" href="https://instagram.com/heroku" target="_blank" aria-label="Opens in new window" title="Heroku's Instagram">Instagram</a></li>
92
92
  <li><a class="heroku-footer-icon-github" href="https://github.com/heroku" target="_blank" aria-label="Opens in new window" title="Heroku's GitHub">GitHub</a></li>
93
93
  <li><a class="heroku-footer-icon-linkedin" href="https://www.linkedin.com/company/heroku" target="_blank" aria-label="Opens in new window" title="Heroku's LinkedIn">LinkedIn</a></li>
94
- <li><a class="heroku-footer-icon-youtube" href="https://www.youtube.com/c/HerokuOfficial" target="_blank" aria-label="Opens in new window" title="Heroku's YouTube">YouTube</a></li>
94
+ <li><a class="heroku-footer-icon-youtube" href="https://www.youtube.com/c/SalesforceDevelopers/community" target="_blank" aria-label="Opens in new window" title="Heroku's YouTube">YouTube</a></li>
95
95
  </ul>
96
96
  <% if ENV['BOOKENDS_JP_LINK'] == 'true' %>
97
97
  <div class="language-select">
@@ -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,5 +1,10 @@
1
1
  <% search_target = local_assigns[:search_target].presence || search_path %>
2
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
+
3
8
  <div id="bookends-search-page" class="search-page">
4
9
  <div class="wrapper wrapper-md">
5
10
  <%= form_tag search_target, method: :get, id: 'search-form' do %>
@@ -16,10 +21,10 @@
16
21
  <% if ENV['SEARCH_BASE_INDEX_ONLY'].nil? || ENV['SEARCH_BASE_INDEX_ONLY'].to_s == 'false' %>
17
22
  <nav class="js-index-selector-container search-tabs">
18
23
  <ul>
19
- <li><a href="#" class="js-index-selector search-tab" data-index="www_page_idx">WWW</a></li>
20
- <li><a href="#" class="js-index-selector search-tab" data-index="dev_center_article_idx">Dev Center</a></li>
21
- <li><a href="#" class="js-index-selector search-tab" data-index="elements_resource_idx">Marketplace</a></li>
22
- <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>
23
28
  </ul>
24
29
  </nav>
25
30
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Bookends
2
- VERSION = '10.1.0beta2'.freeze
2
+ VERSION = '10.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookends
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.0beta2
4
+ version: 10.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketing Web Ops at heroku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-29 00:00:00.000000000 Z
11
+ date: 2021-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<"
18
- - !ruby/object:Gem::Version
19
- version: '7.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 3.2.22
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "<"
28
- - !ruby/object:Gem::Version
29
- version: '7.0'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 3.2.22
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sass-rails
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -82,22 +82,22 @@ dependencies:
82
82
  name: fernet
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '2.2'
88
85
  - - ">="
89
86
  - !ruby/object:Gem::Version
90
87
  version: 2.0.0
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '2.2'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '2.2'
98
95
  - - ">="
99
96
  - !ruby/object:Gem::Version
100
97
  version: 2.0.0
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: '2.2'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: bundler
103
103
  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
@@ -315,7 +313,7 @@ files:
315
313
  homepage: https://www.heroku.com
316
314
  licenses: []
317
315
  metadata: {}
318
- post_install_message:
316
+ post_install_message:
319
317
  rdoc_options: []
320
318
  require_paths:
321
319
  - lib
@@ -326,12 +324,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
324
  version: '0'
327
325
  required_rubygems_version: !ruby/object:Gem::Requirement
328
326
  requirements:
329
- - - ">"
327
+ - - ">="
330
328
  - !ruby/object:Gem::Version
331
- version: 1.3.1
329
+ version: '0'
332
330
  requirements: []
333
- rubygems_version: 3.2.6
334
- signing_key:
331
+ rubygems_version: 3.0.9
332
+ signing_key:
335
333
  specification_version: 4
336
334
  summary: an engine to abstract common html/css elements across Heroku properties
337
335
  test_files:
@@ -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
- }