station 0.0.128 → 0.0.132
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexmo_developer/Gemfile.lock +3 -3
- data/lib/nexmo_developer/app/controllers/static_controller.rb +9 -14
- data/lib/nexmo_developer/app/presenters/header.rb +8 -0
- data/lib/nexmo_developer/app/views/layouts/partials/_header.html.erb +14 -10
- data/lib/nexmo_developer/app/webpacker/javascript/components/search/Search.vue +0 -1
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_header.scss +3 -3
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss +1 -1
- data/lib/nexmo_developer/public/assets/{.sprockets-manifest-a6c589e69453a39ffc6349ccc031361f.json → .sprockets-manifest-5e1272991386791ef087632ac38231cc.json} +1 -1
- data/lib/nexmo_developer/public/assets/application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css.gz +0 -0
- data/lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js.gz +0 -0
- data/lib/nexmo_developer/public/assets/manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/css/{application-9da1177f.chunk.css → application-b74d14eb.chunk.css} +1 -1
- data/lib/nexmo_developer/public/packs/css/application-b74d14eb.chunk.css.br +0 -0
- data/lib/nexmo_developer/public/packs/css/{application-9da1177f.chunk.css.gz → application-b74d14eb.chunk.css.gz} +0 -0
- data/lib/nexmo_developer/public/packs/js/application-e88af41644473e715a12.chunk.js +2 -0
- data/lib/nexmo_developer/public/packs/js/application-e88af41644473e715a12.chunk.js.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-e88af41644473e715a12.chunk.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/application-e88af41644473e715a12.chunk.js.map +1 -0
- data/lib/nexmo_developer/public/packs/js/application-e88af41644473e715a12.chunk.js.map.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-e88af41644473e715a12.chunk.js.map.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-8f8c86d9f8ad97e2605f.chunk.js +3 -0
- data/lib/nexmo_developer/public/packs/js/{vendors~application-186c82017c7148640a3d.chunk.js.LICENSE.txt → vendors~application-8f8c86d9f8ad97e2605f.chunk.js.LICENSE.txt} +2 -2
- data/lib/nexmo_developer/public/packs/js/vendors~application-8f8c86d9f8ad97e2605f.chunk.js.br +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-8f8c86d9f8ad97e2605f.chunk.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/{vendors~application-186c82017c7148640a3d.chunk.js.map → vendors~application-8f8c86d9f8ad97e2605f.chunk.js.map} +1 -1
- data/lib/nexmo_developer/public/packs/js/vendors~application-8f8c86d9f8ad97e2605f.chunk.js.map.br +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-8f8c86d9f8ad97e2605f.chunk.js.map.gz +0 -0
- data/lib/nexmo_developer/public/packs/manifest.json +10 -10
- data/lib/nexmo_developer/public/packs/manifest.json.br +0 -0
- data/lib/nexmo_developer/public/packs/manifest.json.gz +0 -0
- data/lib/nexmo_developer/version.rb +1 -1
- data/package.json +6 -6
- data/station.gemspec +2 -2
- data/yarn.lock +209 -286
- metadata +23 -23
- data/lib/nexmo_developer/public/packs/css/application-9da1177f.chunk.css.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-f3bf8fd42b720553e801.chunk.js +0 -2
- data/lib/nexmo_developer/public/packs/js/application-f3bf8fd42b720553e801.chunk.js.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-f3bf8fd42b720553e801.chunk.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/application-f3bf8fd42b720553e801.chunk.js.map +0 -1
- data/lib/nexmo_developer/public/packs/js/application-f3bf8fd42b720553e801.chunk.js.map.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-f3bf8fd42b720553e801.chunk.js.map.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js +0 -3
- data/lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.br +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.map.br +0 -0
- data/lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.map.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e67525f05a2f5deed875d6a3fac59af41cdf977ac39b01b814e9579f13d079eb
|
4
|
+
data.tar.gz: a2207a37a582e2d246450efb6b7f96f7fdb70315b5c4093bd347eee10ef662d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5989fc796c403e0fb279e12f2cbcdf1de90026d6945e424409e8485eef01bfe6c77579ee30c7ec0e28c720d6d9dc2aed2414312002a4f2f68e38c706b0886a45
|
7
|
+
data.tar.gz: 8b5df40b73a6bc48a42472ba59c95e00dd405993e86a23947ff53128debd3b924444d270b07f764cecd984fd851e4493bba65c25f944d7fe7e2d33c6b80765da
|
@@ -90,7 +90,7 @@ GEM
|
|
90
90
|
minitest (>= 5.1)
|
91
91
|
tzinfo (~> 2.0)
|
92
92
|
zeitwerk (~> 2.3)
|
93
|
-
addressable (2.
|
93
|
+
addressable (2.8.0)
|
94
94
|
public_suffix (>= 2.0.2, < 5.0)
|
95
95
|
algoliasearch (1.27.5)
|
96
96
|
httpclient (~> 2.8, >= 2.8.3)
|
@@ -130,7 +130,7 @@ GEM
|
|
130
130
|
rack-test (>= 0.6.3)
|
131
131
|
regexp_parser (>= 1.5, < 3.0)
|
132
132
|
xpath (~> 3.2)
|
133
|
-
chartkick (4.0.
|
133
|
+
chartkick (4.0.5)
|
134
134
|
coderay (1.1.3)
|
135
135
|
coffee-rails (5.0.0)
|
136
136
|
coffee-script (>= 2.2.0)
|
@@ -429,7 +429,7 @@ GEM
|
|
429
429
|
rb-fsevent (0.11.0)
|
430
430
|
rb-inotify (0.10.1)
|
431
431
|
ffi (~> 1.0)
|
432
|
-
recaptcha (5.8.
|
432
|
+
recaptcha (5.8.1)
|
433
433
|
json
|
434
434
|
redcarpet (3.5.1)
|
435
435
|
redis (4.3.1)
|
@@ -149,22 +149,17 @@ class StaticController < ApplicationController
|
|
149
149
|
end
|
150
150
|
|
151
151
|
def blog_cookie
|
152
|
-
# This is the first touch time so we only want to set it if it's not already set
|
153
|
-
set_utm_cookie('ft', Time.now.getutc.to_i) unless cookies[:ft]
|
154
|
-
|
155
|
-
# Clear out old values that might not be set
|
156
|
-
cookies.delete('utm_campaign', domain: :all)
|
157
|
-
cookies.delete('utm_term', domain: :all)
|
158
|
-
cookies.delete('utm_content', domain: :all)
|
159
|
-
|
160
152
|
# These are the things we'll be tracking through the customer dashboard
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
153
|
+
utm_params = {
|
154
|
+
'utm_medium' => 'dev_education',
|
155
|
+
'utm_source' => 'blog',
|
156
|
+
}
|
157
|
+
|
158
|
+
utm_params.merge!('utm_campaign' => params['c']) if params['c']
|
159
|
+
utm_params.merge!('utm_content' => params['ct']) if params['ct']
|
160
|
+
utm_params.merge!('utm_term' => params['t']) if params['t']
|
166
161
|
|
167
|
-
redirect_to
|
162
|
+
redirect_to "https://dashboard.nexmo.com/sign-up?#{utm_params.to_query}"
|
168
163
|
end
|
169
164
|
|
170
165
|
private
|
@@ -11,6 +11,14 @@ class Header
|
|
11
11
|
@sign_up_text ||= config['header']['links']['sign-up']['text']
|
12
12
|
end
|
13
13
|
|
14
|
+
def sign_in_path
|
15
|
+
@sign_in_path ||= config['header']['links']['sign-in']['path']
|
16
|
+
end
|
17
|
+
|
18
|
+
def sign_in_text
|
19
|
+
@sign_in_text ||= config['header']['links']['sign-in']['text']
|
20
|
+
end
|
21
|
+
|
14
22
|
private
|
15
23
|
|
16
24
|
def after_initialize!
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<use xlink:href="/symbol/volta-icons.svg#Vlt-icon-arrow-outbound" />
|
14
14
|
</svg>
|
15
15
|
</a>
|
16
|
-
<a href="https://www.vonage.
|
16
|
+
<a href="https://www.vonage.com/communications-apis/pricing" title="Pricing" target="_blank" rel="noopener noreferrer" class="Vlt-grey">
|
17
17
|
Pricing
|
18
18
|
<svg class="Vlt-icon Vlt-icon--large Vlt-grey">
|
19
19
|
<use xlink:href="/symbol/volta-icons.svg#Vlt-icon-arrow-outbound" />
|
@@ -28,7 +28,11 @@
|
|
28
28
|
|
29
29
|
<%= render partial: 'layouts/partials/locale_switcher' %>
|
30
30
|
|
31
|
-
<a href=<%= header.
|
31
|
+
<a href=<%= header.sign_in_path %> target="_blank" rel="noopener" class="Vlt-btn Vlt-btn--white Vlt-btn--outline Vlt-btn--app Vlt-btn--small" id="signin">
|
32
|
+
<b><%= t(".#{header.sign_in_text}") %></b>
|
33
|
+
</a>
|
34
|
+
|
35
|
+
<a href=<%= header.sign_up_path %> target="_blank" rel="noopener" class="Vlt-btn--white Vlt-btn--app Vlt-btn--outline Vlt-btn--small" id="signup" data-ab="try_button_v2"><b>
|
32
36
|
<% ab_test(:try_button_v2, header.sign_up_text.map { |s| ["{ #{t(".#{s}")} }", "< #{t(".#{s}")} />"] }.flatten) do |s| %>
|
33
37
|
<%= s %>
|
34
38
|
<% end %>
|
@@ -46,10 +50,10 @@
|
|
46
50
|
|
47
51
|
<ul class="Adp-header__sub__menu Vlt-M-plus">
|
48
52
|
<li class="Vlt-tabs__link">
|
49
|
-
<a href="
|
53
|
+
<a href="/use-cases"><p><b class="Vlt-white"><%= I18n.t('layouts.partials.header.use-cases') %></b></p></a>
|
50
54
|
</li>
|
51
55
|
<li class="Vlt-tabs__link">
|
52
|
-
<a href="
|
56
|
+
<a href="/documentation"><p><b class="Vlt-white"><%= I18n.t('layouts.partials.header.documentation') %></b></p></a>
|
53
57
|
</li>
|
54
58
|
<li class="Vlt-tabs__link Vlt-tabs__link-menu">
|
55
59
|
<button class="Vlt-btn Vlt-btn--link">
|
@@ -61,10 +65,10 @@
|
|
61
65
|
<div class="Vlt-topmenu">
|
62
66
|
<div class="Vlt-topmenu__items">
|
63
67
|
<div class="Vlt-topmenu__item">
|
64
|
-
<a href="
|
68
|
+
<a href="/tools"><p><b class="Vlt-white"><%= I18n.t('layouts.partials.header.tools') %></b></p></a>
|
65
69
|
</div>
|
66
70
|
<div class="Vlt-topmenu__item">
|
67
|
-
<a href="
|
71
|
+
<a href="/extend"><p><b class="Vlt-white">Integrations</b></p></a>
|
68
72
|
</div>
|
69
73
|
</div>
|
70
74
|
</div>
|
@@ -81,16 +85,16 @@
|
|
81
85
|
<div class="Vlt-topmenu">
|
82
86
|
<div class="Vlt-topmenu__items">
|
83
87
|
<div class="Vlt-topmenu__item">
|
84
|
-
<a href="
|
88
|
+
<a href="/community"><p><b class="Vlt-white">Community hub</b></p></a>
|
85
89
|
</div>
|
86
90
|
<div class="Vlt-topmenu__item">
|
87
|
-
<a href="
|
91
|
+
<a href="/devtv"><p><b class="Vlt-white">DevTV</b></p></a>
|
88
92
|
</div>
|
89
93
|
<div class="Vlt-topmenu__item">
|
90
|
-
<a href="
|
94
|
+
<a href="/startups"><p><b class="Vlt-white">Startup program</b></p></a>
|
91
95
|
</div>
|
92
96
|
<div class="Vlt-topmenu__item">
|
93
|
-
<a href="
|
97
|
+
<a href="/voyagers"><p><b class="Vlt-white">Voyagers program</b></p></a>
|
94
98
|
</div>
|
95
99
|
<div class="Vlt-topmenu__item">
|
96
100
|
<a href="https://stackoverflow.com/questions/tagged/nexmo" target='_blank' rel='noopener noreferrer'><p><b class="Vlt-white">Stackoverflow</b></p></a>
|
@@ -142,7 +142,7 @@
|
|
142
142
|
.Vlt-topmenu {
|
143
143
|
width: 100%;
|
144
144
|
visibility: hidden;
|
145
|
-
z-index:
|
145
|
+
z-index: 100002;
|
146
146
|
display: block;
|
147
147
|
position: absolute;
|
148
148
|
left: 0;
|
@@ -173,7 +173,7 @@
|
|
173
173
|
height: 100vh;
|
174
174
|
width: 100vw;
|
175
175
|
background: $black;
|
176
|
-
z-index:
|
176
|
+
z-index: 100001;
|
177
177
|
top: 60px;
|
178
178
|
left: 0;
|
179
179
|
display: flex;
|
@@ -192,7 +192,7 @@
|
|
192
192
|
|
193
193
|
&-active {
|
194
194
|
height: 250px;
|
195
|
-
z-index:
|
195
|
+
z-index: 100001;
|
196
196
|
|
197
197
|
@media #{$S-only} {
|
198
198
|
display: none;
|
@@ -1 +1 @@
|
|
1
|
-
{"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-
|
1
|
+
{"files":{"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js":{"logical_path":"manifest.js","mtime":"2021-11-05T16:47:58+00:00","size":1,"digest":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","integrity":"sha256-AbpHGcgLb+kRsJGnwFEktk7uzpZOCcBY74+YBdrKVGs="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2021-11-05T16:47:58+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css":{"logical_path":"application.css","mtime":"2021-11-05T16:47:58+00:00","size":8704,"digest":"99228d4019121f891ee008e4db5fb0ffa736bada427f4996d15c9c95d1af58b3","integrity":"sha256-mSKNQBkSH4ke4Ajk21+w/6c2utpCf0mW0VycldGvWLM="}},"assets":{"manifest.js":"manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js","application.js":"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js","application.css":"application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css"}}
|
Binary file
|
Binary file
|