station 0.0.108 → 0.0.109
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e90793d85b217d96402d9968a4600bdfa06435554fff645fbead5d93987bd80
|
4
|
+
data.tar.gz: f5c45a39a892979b78f91713e9bf3eb61ce225504aa1f93190878aa3390731cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8fda1c55eb40594f9c5f64143468df890ab7c7d70294714e6d428ce4cd3dff49f77bb3f650f2a7fc7aa0377c126f9ae69f8849dd9e69b35078e8b6fcbeffd57
|
7
|
+
data.tar.gz: a63d8bdec762da075d6720a9ef827db3d7eee587a85763de78f1fb1ab17aaf5eb72c82693a1fe5aeede5277bdb0ce2ce7e1e0802d4b3c610b704d798d201ef62
|
data/lib/nexmo_developer/Gemfile
CHANGED
@@ -263,7 +263,7 @@ GEM
|
|
263
263
|
activerecord
|
264
264
|
kaminari-core (= 1.2.1)
|
265
265
|
kaminari-core (1.2.1)
|
266
|
-
listen (3.4.
|
266
|
+
listen (3.4.1)
|
267
267
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
268
268
|
rb-inotify (~> 0.9, >= 0.9.10)
|
269
269
|
lograge (0.11.2)
|
@@ -271,7 +271,7 @@ GEM
|
|
271
271
|
activesupport (>= 4)
|
272
272
|
railties (>= 4)
|
273
273
|
request_store (~> 1.0)
|
274
|
-
loofah (2.
|
274
|
+
loofah (2.9.0)
|
275
275
|
crass (~> 1.0.2)
|
276
276
|
nokogiri (>= 1.5.9)
|
277
277
|
lumberjack (1.2.8)
|
@@ -313,7 +313,7 @@ GEM
|
|
313
313
|
sass (~> 3.1)
|
314
314
|
shotgun (~> 0.9)
|
315
315
|
sinatra (~> 2.0)
|
316
|
-
nexmo_markdown_renderer (0.7.
|
316
|
+
nexmo_markdown_renderer (0.7.6)
|
317
317
|
activemodel (~> 6.0)
|
318
318
|
banzai (~> 0.1.2)
|
319
319
|
i18n (~> 1.7)
|
@@ -534,7 +534,7 @@ GEM
|
|
534
534
|
activemodel (>= 6.0.0)
|
535
535
|
bindex (>= 0.4.0)
|
536
536
|
railties (>= 6.0.0)
|
537
|
-
webmock (3.11.
|
537
|
+
webmock (3.11.1)
|
538
538
|
addressable (>= 2.3.6)
|
539
539
|
crack (>= 0.3.2)
|
540
540
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -595,7 +595,7 @@ DEPENDENCIES
|
|
595
595
|
neatjson
|
596
596
|
newrelic_rpm
|
597
597
|
nexmo-oas-renderer (~> 2.5.0)
|
598
|
-
nexmo_markdown_renderer (~> 0.7.
|
598
|
+
nexmo_markdown_renderer (~> 0.7.6)
|
599
599
|
nokogiri (~> 1.11.1)
|
600
600
|
octokit
|
601
601
|
pg (~> 1.2)
|
@@ -11,6 +11,7 @@ export default class VoltaTabbedExamples {
|
|
11
11
|
this.onTabClick = this.onTabClick.bind(this)
|
12
12
|
this.onPopState = this.onPopState.bind(this)
|
13
13
|
this.persistLanguage = this.persistLanguage.bind(this)
|
14
|
+
this.activateTabFromURLHash = this.activateTabFromURLHash.bind(this);
|
14
15
|
this.restoreTabs()
|
15
16
|
this.setupEvents()
|
16
17
|
}
|
@@ -55,6 +56,9 @@ export default class VoltaTabbedExamples {
|
|
55
56
|
setupEvents() {
|
56
57
|
$('.Vlt-tabs__link').click(this.onTabClick)
|
57
58
|
$(window).on('popstate', this.onPopState)
|
59
|
+
|
60
|
+
window.addEventListener("load", this.activateTabFromURLHash);
|
61
|
+
window.addEventListener("hashchange", this.activateTabFromURLHash);
|
58
62
|
}
|
59
63
|
|
60
64
|
onPopState(event) {
|
@@ -64,12 +68,14 @@ export default class VoltaTabbedExamples {
|
|
64
68
|
}
|
65
69
|
|
66
70
|
onTabClick(event) {
|
71
|
+
const target = $(event.currentTarget);
|
67
72
|
// Prevent nested tabs from changing the url
|
68
73
|
if ($(event.target).parents('.Vlt-tabs').length > 1) { return; }
|
69
74
|
|
70
|
-
const language =
|
71
|
-
const languageType =
|
72
|
-
const linkable =
|
75
|
+
const language = target.data('language')
|
76
|
+
const languageType = target.data('language-type')
|
77
|
+
const linkable = target.data('language-linkable')
|
78
|
+
const tabId = target.attr('id');
|
73
79
|
|
74
80
|
if (language) {
|
75
81
|
if (linkable) {
|
@@ -81,6 +87,8 @@ export default class VoltaTabbedExamples {
|
|
81
87
|
}
|
82
88
|
|
83
89
|
this.persistLanguage(language, languageType, linkable)
|
90
|
+
} else if (tabId) {
|
91
|
+
window.location.hash = tabId;
|
84
92
|
}
|
85
93
|
}
|
86
94
|
|
@@ -103,4 +111,16 @@ export default class VoltaTabbedExamples {
|
|
103
111
|
setPlatform(platform) {
|
104
112
|
setTimeout(() => { $(`[data-platform='${platform}']`).click(); }, 0);
|
105
113
|
}
|
114
|
+
|
115
|
+
activateTabFromURLHash() {
|
116
|
+
let tabId = window.location.hash;
|
117
|
+
|
118
|
+
if (tabId !== "") {
|
119
|
+
let tab = document.querySelector(`.Vlt-tabs__link${tabId}`);
|
120
|
+
if (tab) {
|
121
|
+
tab.focus();
|
122
|
+
tab.click();
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
106
126
|
}
|
data/package.json
CHANGED
data/yarn.lock
CHANGED
@@ -14853,10 +14853,10 @@ webpack-dev-middleware@^3.7.2:
|
|
14853
14853
|
range-parser "^1.2.1"
|
14854
14854
|
webpack-log "^2.0.0"
|
14855
14855
|
|
14856
|
-
webpack-dev-server@^3.11.
|
14857
|
-
version "3.11.
|
14858
|
-
resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.11.
|
14859
|
-
integrity sha512-
|
14856
|
+
webpack-dev-server@^3.11.2, webpack-dev-server@^3.8.0:
|
14857
|
+
version "3.11.2"
|
14858
|
+
resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.11.2.tgz#695ebced76a4929f0d5de7fd73fafe185fe33708"
|
14859
|
+
integrity sha512-A80BkuHRQfCiNtGBS1EMf2ChTUs0x+B3wGDFmOeT4rmJOHhHTCH2naNxIHhmkr0/UillP4U3yeIyv1pNp+QDLQ==
|
14860
14860
|
dependencies:
|
14861
14861
|
ansi-html "0.0.7"
|
14862
14862
|
bonjour "^3.5.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: station
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.109
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vonage DevRel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -773,7 +773,7 @@ files:
|
|
773
773
|
- "./lib/nexmo_developer/public/android-chrome-512x512.png"
|
774
774
|
- "./lib/nexmo_developer/public/apple-touch-icon-precomposed.png"
|
775
775
|
- "./lib/nexmo_developer/public/apple-touch-icon.png"
|
776
|
-
- "./lib/nexmo_developer/public/assets/.sprockets-manifest-
|
776
|
+
- "./lib/nexmo_developer/public/assets/.sprockets-manifest-04a505bdfc9a5ed3ac6231c5a761707e.json"
|
777
777
|
- "./lib/nexmo_developer/public/assets/active_admin-53c26e5835e5681ba87c5a1593ec718b9e96afe3347ff17066bbe79bea62a7d6.css"
|
778
778
|
- "./lib/nexmo_developer/public/assets/active_admin-53c26e5835e5681ba87c5a1593ec718b9e96afe3347ff17066bbe79bea62a7d6.css.gz"
|
779
779
|
- "./lib/nexmo_developer/public/assets/active_admin-9565b1736f29aa1460496db7d732a6af656d6b680f42629ca551b3d57219baf1.js"
|
@@ -916,12 +916,12 @@ files:
|
|
916
916
|
- "./lib/nexmo_developer/public/packs/css/application-fe8bd52c.chunk.css"
|
917
917
|
- "./lib/nexmo_developer/public/packs/css/application-fe8bd52c.chunk.css.br"
|
918
918
|
- "./lib/nexmo_developer/public/packs/css/application-fe8bd52c.chunk.css.gz"
|
919
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
920
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
921
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
922
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
923
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
924
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
919
|
+
- "./lib/nexmo_developer/public/packs/js/application-ce8ace51500eba743ec2.chunk.js"
|
920
|
+
- "./lib/nexmo_developer/public/packs/js/application-ce8ace51500eba743ec2.chunk.js.br"
|
921
|
+
- "./lib/nexmo_developer/public/packs/js/application-ce8ace51500eba743ec2.chunk.js.gz"
|
922
|
+
- "./lib/nexmo_developer/public/packs/js/application-ce8ace51500eba743ec2.chunk.js.map"
|
923
|
+
- "./lib/nexmo_developer/public/packs/js/application-ce8ace51500eba743ec2.chunk.js.map.br"
|
924
|
+
- "./lib/nexmo_developer/public/packs/js/application-ce8ace51500eba743ec2.chunk.js.map.gz"
|
925
925
|
- "./lib/nexmo_developer/public/packs/js/runtime~application-6a014284b1b5bfd5675d.js"
|
926
926
|
- "./lib/nexmo_developer/public/packs/js/runtime~application-6a014284b1b5bfd5675d.js.br"
|
927
927
|
- "./lib/nexmo_developer/public/packs/js/runtime~application-6a014284b1b5bfd5675d.js.gz"
|