station 0.5.7 → 0.5.8
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/app/views/blog/blogpost/show.html.erb +41 -40
- data/lib/nexmo_developer/app/webpacker/javascript/components/search/Search.vue +18 -36
- data/lib/nexmo_developer/public/assets/{.sprockets-manifest-6fd77c48d2ed58425c82f10182b58f37.json → .sprockets-manifest-e06d999fcff329bbc661b696a8fb65d9.json} +1 -1
- data/lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js.gz +0 -0
- data/lib/nexmo_developer/public/assets/application-da9e52b43be65940dbcbec74f4a92cfd0325b5f595d9385805625c64b4e73c31.css.gz +0 -0
- data/lib/nexmo_developer/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/css/{application-1ff3c644.chunk.css → application-b5b7bc0e.chunk.css} +1 -1
- data/lib/nexmo_developer/public/packs/css/application-b5b7bc0e.chunk.css.br +0 -0
- data/lib/nexmo_developer/public/packs/css/{application-1ff3c644.chunk.css.gz → application-b5b7bc0e.chunk.css.gz} +0 -0
- data/lib/nexmo_developer/public/packs/js/{application-74499f8d7e9a76b33792.chunk.js → application-48a623b09b91ce687912.chunk.js} +2 -2
- data/lib/nexmo_developer/public/packs/js/application-48a623b09b91ce687912.chunk.js.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-48a623b09b91ce687912.chunk.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/application-48a623b09b91ce687912.chunk.js.map +1 -0
- data/lib/nexmo_developer/public/packs/js/application-48a623b09b91ce687912.chunk.js.map.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-48a623b09b91ce687912.chunk.js.map.gz +0 -0
- data/lib/nexmo_developer/public/packs/manifest.json +6 -6
- 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
- metadata +12 -12
- data/lib/nexmo_developer/public/packs/css/application-1ff3c644.chunk.css.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-74499f8d7e9a76b33792.chunk.js.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-74499f8d7e9a76b33792.chunk.js.gz +0 -0
- data/lib/nexmo_developer/public/packs/js/application-74499f8d7e9a76b33792.chunk.js.map +0 -1
- data/lib/nexmo_developer/public/packs/js/application-74499f8d7e9a76b33792.chunk.js.map.br +0 -0
- data/lib/nexmo_developer/public/packs/js/application-74499f8d7e9a76b33792.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: 0d0709670b85a2abad49045de301cd0d369a12d07e0c3cdd2b240f9fd85db7f5
|
4
|
+
data.tar.gz: 2a562040355173365497c1495938e6d512fdda4a57be9068451c514163b40409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9add43ace94c02b561749cf97cfdba33a3a3e92cb9232e0db12467803ee89581012547ab2680849d38fbaa9f364950746319963a9c63ba6b6f6ccdd5c8256c4c
|
7
|
+
data.tar.gz: 6b69b5d0902c7e07e60b3a57c8a0d3f11a8881e851e0f41f023dbec6d1d5a297dde9edf4cdd7ec14254ae0acf901a8409114e5cb099f8522e8731737542d087d
|
@@ -112,57 +112,58 @@
|
|
112
112
|
|
113
113
|
</div>
|
114
114
|
|
115
|
-
<!-- Related Blogposts -->
|
116
115
|
<div class="wrapper-cards">
|
117
|
-
<div id="related" class="Vlt-card Vlt-bg-white">
|
118
116
|
|
119
|
-
|
117
|
+
<!-- Call to Action Card -->
|
118
|
+
<div id="card-action" class="Vlt-card Vlt-bg-black">
|
120
119
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
</div>
|
126
|
-
|
127
|
-
<% @related_blogposts.each_with_index do |related, i| %>
|
128
|
-
<div class="Vlt-card__content">
|
129
|
-
<%= link_to "/#{related.link}" do %>
|
130
|
-
<h5><%= related.title %></h5>
|
131
|
-
<% if related.updated_at.present? %>
|
132
|
-
<span class='Vlt-grey-darker'><%= Time.parse(related.updated_at).strftime('%b %d, %Y') %></span>
|
133
|
-
<% end %>
|
134
|
-
<p class="Vlt-blue-darker">
|
135
|
-
[<%= t('read_more') %>]
|
136
|
-
</p>
|
137
|
-
<% end %>
|
120
|
+
<div class="rectangle"></div>
|
121
|
+
<span class="square"></span>
|
122
|
+
<div class="title">
|
123
|
+
<h3 class="title-text" >Start Building</h3>
|
138
124
|
</div>
|
125
|
+
<p>Start developing in minutes with free credit on us. No credit card required!</p>
|
139
126
|
|
140
|
-
|
141
|
-
|
127
|
+
<%= link_to @blog_button_path, class: "Vlt-btn-blog-sm" do %>
|
128
|
+
<svg class="Vlt-icon Vlt-icon--smaller Vlt-grey-darker">
|
129
|
+
<use xlink:href="/symbol/volta-icons.svg#Vlt-icon-rocket"></use>
|
130
|
+
</svg>
|
131
|
+
Sign Up
|
142
132
|
<% end %>
|
133
|
+
<img src="https://s3.eu-west-1.amazonaws.com/developer.vonage.com/blog/sign_up_button/laptop.png"/>
|
134
|
+
</div>
|
143
135
|
|
144
|
-
|
136
|
+
<!-- Related Blogposts -->
|
137
|
+
<div id="related" class="Vlt-card Vlt-bg-white">
|
145
138
|
|
146
|
-
|
147
|
-
<!-- Call to Action Card -->
|
148
|
-
<div id="card-action" class="Vlt-card Vlt-bg-black">
|
139
|
+
<h4 style="text-align:center;">Related Posts</h4>
|
149
140
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<p>Start developing in minutes with free credit on us. No credit card required!</p>
|
141
|
+
<div class="header-separator hr--short Vlt-text-separator Vlt-text-separator--small">
|
142
|
+
<span>
|
143
|
+
<svg class="Vlt-icon"><use xlink:href="/symbol/volta-icons.svg#Vlt-icon-pentool" /></svg>
|
144
|
+
</span>
|
145
|
+
</div>
|
156
146
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
147
|
+
<% @related_blogposts.each_with_index do |related, i| %>
|
148
|
+
<div class="Vlt-card__content">
|
149
|
+
<%= link_to "/#{related.link}" do %>
|
150
|
+
<h5><%= related.title %></h5>
|
151
|
+
<% if related.updated_at.present? %>
|
152
|
+
<span class='Vlt-grey-darker'><%= Time.parse(related.updated_at).strftime('%b %d, %Y') %></span>
|
153
|
+
<% end %>
|
154
|
+
<p class="Vlt-blue-darker">
|
155
|
+
[<%= t('read_more') %>]
|
156
|
+
</p>
|
157
|
+
<% end %>
|
158
|
+
</div>
|
164
159
|
|
165
|
-
|
160
|
+
<% if i != @related_blogposts.length - 1 %>
|
161
|
+
<hr class="hr--short" style="opacity:.4;">
|
162
|
+
<% end %>
|
163
|
+
|
164
|
+
<% end %>
|
165
|
+
|
166
|
+
</div>
|
166
167
|
</div>
|
167
168
|
</div>
|
168
169
|
|
@@ -4,9 +4,7 @@
|
|
4
4
|
<svg class="Vlt-icon Vlt-grey Nxd-search-icon">
|
5
5
|
<use xlink:href="/symbol/volta-icons.svg#Vlt-icon-search-full" />
|
6
6
|
</svg>
|
7
|
-
|
8
|
-
|
9
|
-
<div class="Nxd-search-input">
|
7
|
+
<div v-show="expanded" class="Nxd-search-input">
|
10
8
|
<div class="Vlt-composite Vlt-composite--appendedicon">
|
11
9
|
<div class="Vlt-composite__prepend Vlt-composite__prepend--icon">
|
12
10
|
<svg><use xlink:href="/symbol/volta-icons.svg#Vlt-icon-search"/></svg>
|
@@ -86,20 +84,12 @@ export default {
|
|
86
84
|
);
|
87
85
|
},
|
88
86
|
mounted: function() {
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
document.querySelector('.Adp-landing .wrapper').addEventListener('click', this.onClickOutside.bind(this));
|
93
|
-
}
|
94
|
-
this.$el.querySelector('.Nxd-search-icon').addEventListener('click', this.handleSearchToggle.bind(this));
|
95
|
-
this.$el.querySelector('.Nxd-search-close').addEventListener('click', this.handleSearchToggle.bind(this));
|
87
|
+
document.addEventListener('click', this.onClickOutside.bind(this));
|
88
|
+
this.$el.querySelector('.Nxd-search-icon').addEventListener('click', this.openSearch.bind(this));
|
89
|
+
this.$el.querySelector('.Nxd-search-close').addEventListener('click', this.closeSearch.bind(this));
|
96
90
|
},
|
97
91
|
onDestroy: function() {
|
98
|
-
|
99
|
-
document.querySelector('.Nxd-template').removeEventListener('click', this.onClickOutside.bind(this));
|
100
|
-
} else if (document.querySelector('.Adp-landing')) {
|
101
|
-
document.querySelector('.Adp-landing .wrapper').removeEventListener('click', this.onClickOutside.bind(this));
|
102
|
-
}
|
92
|
+
document.removeEventListener('click', this.onClickOutside.bind(this));
|
103
93
|
},
|
104
94
|
computed: {
|
105
95
|
showResults: function() {
|
@@ -128,30 +118,22 @@ export default {
|
|
128
118
|
hitKey: function(result, hit) {
|
129
119
|
return result.index + hit.objectID;
|
130
120
|
},
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
}
|
135
|
-
if (this.expanded) {
|
136
|
-
this.expanded = false;
|
137
|
-
}
|
138
|
-
|
139
|
-
this.toggleSearch(true);
|
121
|
+
openSearch: function(event) {
|
122
|
+
event.stopPropagation();
|
123
|
+
this.expanded = true;
|
140
124
|
},
|
141
|
-
|
142
|
-
handleSearchToggle: function(event) {
|
143
|
-
event.preventDefault();
|
125
|
+
closeSearch: function(event) {
|
144
126
|
event.stopPropagation();
|
145
|
-
|
146
|
-
this.
|
127
|
+
this.expanded = false;
|
128
|
+
this.query = '';
|
147
129
|
},
|
148
|
-
|
149
|
-
toggleSearch: function(hide) {
|
130
|
+
onClickOutside: function(event) {
|
150
131
|
let search = this.$el.querySelector('.Nxd-search-input');
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
132
|
+
const { clientX, clientY } = event;
|
133
|
+
const { x, y, width, height } = search.getBoundingClientRect();
|
134
|
+
|
135
|
+
if (clientX < x || clientX > x + width || clientY < y || clientY > y + height) {
|
136
|
+
this.closeSearch(event);
|
155
137
|
}
|
156
138
|
},
|
157
139
|
onEscDownHandler: function(event) {
|
@@ -232,7 +214,7 @@ export default {
|
|
232
214
|
align-items: flex-end;
|
233
215
|
}
|
234
216
|
.Nxd-search-input {
|
235
|
-
display:
|
217
|
+
display: flex;
|
236
218
|
width: 756px;
|
237
219
|
padding: 20px 30px;
|
238
220
|
background: white;
|
@@ -1 +1 @@
|
|
1
|
-
{"files":{"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2022-
|
1
|
+
{"files":{"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2022-09-05T15:12:01+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js":{"logical_path":"application.js","mtime":"2022-09-05T15:12:01+00:00","size":3172,"digest":"67f1fd16f949c2794341a44cf839e5436bbef74436e043ead39890d1c3b2e583","integrity":"sha256-Z/H9FvlJwnlDQaRM+DnlQ2u+90Q24EPq05iQ0cOy5YM="},"application-da9e52b43be65940dbcbec74f4a92cfd0325b5f595d9385805625c64b4e73c31.css":{"logical_path":"application.css","mtime":"2022-09-05T15:12:01+00:00","size":22537,"digest":"0c8a44dd0d09ae549cd27b653e2ecd764408661503f56a4f0e581f3d74da07fb","integrity":"sha256-DIpE3Q0JrlSc0ntlPi7NdkQIZhUD9WpPDlgfPXTaB/s="}},"assets":{"manifest.js":"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js","application.js":"application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js","application.css":"application-da9e52b43be65940dbcbec74f4a92cfd0325b5f595d9385805625c64b4e73c31.css"}}
|
Binary file
|
Binary file
|