station 0.0.108 → 0.0.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1502ca376c40add3a4e6de7fd88e803ffb638243514146a8df886f4dfc779080
4
- data.tar.gz: 0fe458b13d269d56b0823ca6965932d85bfc87df3b95f9b47971d2f3d534f0e9
3
+ metadata.gz: 4e90793d85b217d96402d9968a4600bdfa06435554fff645fbead5d93987bd80
4
+ data.tar.gz: f5c45a39a892979b78f91713e9bf3eb61ce225504aa1f93190878aa3390731cc
5
5
  SHA512:
6
- metadata.gz: 74342d5c27457510ea0f0828c1308e9e5b78906216cf45bd2eb93fab89fa5319831d6ce931b86f7e4fb14adf33904d903f1910e54ffc1e3dad2599d256ad3110
7
- data.tar.gz: 21646a23f3ed00f4a07987044e79f93e6814e57519a783a0cbd199ede21616816b96eb485af7b73a0873bea3b395acf35b7e8ea3f05518fc3d24ae82f6ca0b2a
6
+ metadata.gz: d8fda1c55eb40594f9c5f64143468df890ab7c7d70294714e6d428ce4cd3dff49f77bb3f650f2a7fc7aa0377c126f9ae69f8849dd9e69b35078e8b6fcbeffd57
7
+ data.tar.gz: a63d8bdec762da075d6720a9ef827db3d7eee587a85763de78f1fb1ab17aaf5eb72c82693a1fe5aeede5277bdb0ce2ce7e1e0802d4b3c610b704d798d201ef62
@@ -131,7 +131,8 @@ gem 'country_select', '~> 4.0'
131
131
 
132
132
  gem 'nexmo-oas-renderer', '~> 2.5.0', require: false
133
133
 
134
- gem 'nexmo_markdown_renderer', '~> 0.7.5'
134
+ gem 'nexmo_markdown_renderer', '~> 0.7.6'
135
+
135
136
  gem 'smartling'
136
137
 
137
138
  gem 'newrelic_rpm'
@@ -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.0)
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.8.0)
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.5)
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.0)
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.5)
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 = $(event.currentTarget).data('language')
71
- const languageType = $(event.currentTarget).data('language-type')
72
- const linkable = $(event.currentTarget).data('language-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
  }
@@ -1,3 +1,3 @@
1
1
  module NexmoDeveloper
2
- VERSION = '0.0.108'.freeze
2
+ VERSION = '0.0.109'.freeze
3
3
  end
@@ -87,7 +87,7 @@
87
87
  "node-fetch": "^2.6.1",
88
88
  "vue-jest": "^3.0.7",
89
89
  "webpack-bundle-analyzer": "^4.3.0",
90
- "webpack-dev-server": "^3.11.1"
90
+ "webpack-dev-server": "^3.11.2"
91
91
  },
92
92
  "version": "1.1.0",
93
93
  "engines": {
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.1, webpack-dev-server@^3.8.0:
14857
- version "3.11.1"
14858
- resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.11.1.tgz#c74028bf5ba8885aaf230e48a20e8936ab8511f0"
14859
- integrity sha512-u4R3mRzZkbxQVa+MBWi2uVpB5W59H3ekZAJsQlKUTdl7Elcah2EhygTPLmeFXybQkf9i2+L0kn7ik9SnXa6ihQ==
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.108
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-12 00:00:00.000000000 Z
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-cc2c9d4f1af7967ed13b71b2aff8193e.json"
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-1209d37c2053ced5114e.chunk.js"
920
- - "./lib/nexmo_developer/public/packs/js/application-1209d37c2053ced5114e.chunk.js.br"
921
- - "./lib/nexmo_developer/public/packs/js/application-1209d37c2053ced5114e.chunk.js.gz"
922
- - "./lib/nexmo_developer/public/packs/js/application-1209d37c2053ced5114e.chunk.js.map"
923
- - "./lib/nexmo_developer/public/packs/js/application-1209d37c2053ced5114e.chunk.js.map.br"
924
- - "./lib/nexmo_developer/public/packs/js/application-1209d37c2053ced5114e.chunk.js.map.gz"
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"