station 0.0.120 → 0.0.125
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +2 -2
- data/lib/nexmo_developer/Gemfile +8 -8
- data/lib/nexmo_developer/Gemfile.lock +132 -123
- data/lib/nexmo_developer/app/assets/stylesheets/application.css +8 -1
- data/lib/nexmo_developer/app/controllers/static_controller.rb +1 -0
- data/lib/nexmo_developer/app/presenters/code_snippets_home_presenter.rb +26 -0
- data/lib/nexmo_developer/app/presenters/footer.rb +2 -3
- data/lib/nexmo_developer/app/presenters/header.rb +0 -31
- data/lib/nexmo_developer/app/views/contribute/code-snippets/how-to-update-code-snippets.md +1 -1
- data/lib/nexmo_developer/app/views/contribute/code-snippets/sample-code-snippet.md +1 -1
- data/lib/nexmo_developer/app/views/layouts/application.html.erb +0 -1
- data/lib/nexmo_developer/app/views/layouts/documentation-index.html.erb +0 -1
- data/lib/nexmo_developer/app/views/layouts/landing.html.erb +4 -2
- data/lib/nexmo_developer/app/views/layouts/page.html.erb +0 -1
- data/lib/nexmo_developer/app/views/layouts/partials/_code_snippets_home.html.erb +38 -0
- data/lib/nexmo_developer/app/views/layouts/partials/_footer.html.erb +33 -32
- data/lib/nexmo_developer/app/views/layouts/partials/_header.html.erb +90 -31
- data/lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb +3 -4
- data/lib/nexmo_developer/app/webpacker/javascript/components/concatenation/character_counter.js +5 -3
- data/lib/nexmo_developer/app/webpacker/javascript/components/search/Search.vue +80 -19
- data/lib/nexmo_developer/app/webpacker/javascript/sidenav/index.js +0 -13
- data/lib/nexmo_developer/app/webpacker/javascript/topnav/index.js +33 -0
- data/lib/nexmo_developer/app/webpacker/javascript/volta_tabbed_examples/index.js +3 -1
- data/lib/nexmo_developer/app/webpacker/packs/application.js +15 -3
- data/lib/nexmo_developer/app/webpacker/stylesheets/application.scss +4 -0
- data/lib/nexmo_developer/app/webpacker/stylesheets/custom/_core.scss +0 -2
- data/lib/nexmo_developer/app/webpacker/stylesheets/custom/_landing.scss +500 -0
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_footer.scss +45 -23
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_header.scss +161 -138
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss +2 -5
- data/lib/nexmo_developer/app/webpacker/stylesheets/objects/_navigation.scss +0 -2
- data/lib/nexmo_developer/public/vonage_developer_logo.svg +26 -0
- data/lib/nexmo_developer/version.rb +1 -1
- data/package.json +32 -31
- data/station.gemspec +10 -10
- data/yarn.lock +1328 -1181
- metadata +61 -56
- data/lib/nexmo_developer/app/presenters/topnav.rb +0 -23
- data/lib/nexmo_developer/app/presenters/topnav_item.rb +0 -19
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.125
|
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-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.7.
|
61
|
+
version: 2.7.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.7.
|
68
|
+
version: 2.7.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: nexmo_markdown_renderer
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -352,7 +352,7 @@ dependencies:
|
|
352
352
|
requirements:
|
353
353
|
- - ">="
|
354
354
|
- !ruby/object:Gem::Version
|
355
|
-
version: '
|
355
|
+
version: '5.3'
|
356
356
|
- - "<"
|
357
357
|
- !ruby/object:Gem::Version
|
358
358
|
version: '6.0'
|
@@ -362,7 +362,7 @@ dependencies:
|
|
362
362
|
requirements:
|
363
363
|
- - ">="
|
364
364
|
- !ruby/object:Gem::Version
|
365
|
-
version: '
|
365
|
+
version: '5.3'
|
366
366
|
- - "<"
|
367
367
|
- !ruby/object:Gem::Version
|
368
368
|
version: '6.0'
|
@@ -442,14 +442,14 @@ dependencies:
|
|
442
442
|
requirements:
|
443
443
|
- - '='
|
444
444
|
- !ruby/object:Gem::Version
|
445
|
-
version: 3.0.
|
445
|
+
version: 3.0.1
|
446
446
|
type: :runtime
|
447
447
|
prerelease: false
|
448
448
|
version_requirements: !ruby/object:Gem::Requirement
|
449
449
|
requirements:
|
450
450
|
- - '='
|
451
451
|
- !ruby/object:Gem::Version
|
452
|
-
version: 3.0.
|
452
|
+
version: 3.0.1
|
453
453
|
- !ruby/object:Gem::Dependency
|
454
454
|
name: lograge
|
455
455
|
requirement: !ruby/object:Gem::Requirement
|
@@ -484,14 +484,14 @@ dependencies:
|
|
484
484
|
requirements:
|
485
485
|
- - '='
|
486
486
|
- !ruby/object:Gem::Version
|
487
|
-
version: 1.11.
|
487
|
+
version: 1.11.7
|
488
488
|
type: :runtime
|
489
489
|
prerelease: false
|
490
490
|
version_requirements: !ruby/object:Gem::Requirement
|
491
491
|
requirements:
|
492
492
|
- - '='
|
493
493
|
- !ruby/object:Gem::Version
|
494
|
-
version: 1.11.
|
494
|
+
version: 1.11.7
|
495
495
|
- !ruby/object:Gem::Dependency
|
496
496
|
name: ruby-progressbar
|
497
497
|
requirement: !ruby/object:Gem::Requirement
|
@@ -540,14 +540,14 @@ dependencies:
|
|
540
540
|
requirements:
|
541
541
|
- - '='
|
542
542
|
- !ruby/object:Gem::Version
|
543
|
-
version: 2.
|
543
|
+
version: 2.4.0
|
544
544
|
type: :runtime
|
545
545
|
prerelease: false
|
546
546
|
version_requirements: !ruby/object:Gem::Requirement
|
547
547
|
requirements:
|
548
548
|
- - '='
|
549
549
|
- !ruby/object:Gem::Version
|
550
|
-
version: 2.
|
550
|
+
version: 2.4.0
|
551
551
|
- !ruby/object:Gem::Dependency
|
552
552
|
name: titleize
|
553
553
|
requirement: !ruby/object:Gem::Requirement
|
@@ -568,28 +568,28 @@ dependencies:
|
|
568
568
|
requirements:
|
569
569
|
- - '='
|
570
570
|
- !ruby/object:Gem::Version
|
571
|
-
version:
|
571
|
+
version: 4.0.0
|
572
572
|
type: :runtime
|
573
573
|
prerelease: false
|
574
574
|
version_requirements: !ruby/object:Gem::Requirement
|
575
575
|
requirements:
|
576
576
|
- - '='
|
577
577
|
- !ruby/object:Gem::Version
|
578
|
-
version:
|
578
|
+
version: 4.0.0
|
579
579
|
- !ruby/object:Gem::Dependency
|
580
580
|
name: country_select
|
581
581
|
requirement: !ruby/object:Gem::Requirement
|
582
582
|
requirements:
|
583
583
|
- - '='
|
584
584
|
- !ruby/object:Gem::Version
|
585
|
-
version:
|
585
|
+
version: 6.0.0
|
586
586
|
type: :runtime
|
587
587
|
prerelease: false
|
588
588
|
version_requirements: !ruby/object:Gem::Requirement
|
589
589
|
requirements:
|
590
590
|
- - '='
|
591
591
|
- !ruby/object:Gem::Version
|
592
|
-
version:
|
592
|
+
version: 6.0.0
|
593
593
|
- !ruby/object:Gem::Dependency
|
594
594
|
name: smartling
|
595
595
|
requirement: !ruby/object:Gem::Requirement
|
@@ -610,28 +610,28 @@ dependencies:
|
|
610
610
|
requirements:
|
611
611
|
- - '='
|
612
612
|
- !ruby/object:Gem::Version
|
613
|
-
version: 7.
|
613
|
+
version: 7.2.0
|
614
614
|
type: :runtime
|
615
615
|
prerelease: false
|
616
616
|
version_requirements: !ruby/object:Gem::Requirement
|
617
617
|
requirements:
|
618
618
|
- - '='
|
619
619
|
- !ruby/object:Gem::Version
|
620
|
-
version: 7.
|
620
|
+
version: 7.2.0
|
621
621
|
- !ruby/object:Gem::Dependency
|
622
622
|
name: redis
|
623
623
|
requirement: !ruby/object:Gem::Requirement
|
624
624
|
requirements:
|
625
625
|
- - '='
|
626
626
|
- !ruby/object:Gem::Version
|
627
|
-
version: 4.
|
627
|
+
version: 4.3.1
|
628
628
|
type: :runtime
|
629
629
|
prerelease: false
|
630
630
|
version_requirements: !ruby/object:Gem::Requirement
|
631
631
|
requirements:
|
632
632
|
- - '='
|
633
633
|
- !ruby/object:Gem::Version
|
634
|
-
version: 4.
|
634
|
+
version: 4.3.1
|
635
635
|
- !ruby/object:Gem::Dependency
|
636
636
|
name: sassc-rails
|
637
637
|
requirement: !ruby/object:Gem::Requirement
|
@@ -680,14 +680,14 @@ dependencies:
|
|
680
680
|
requirements:
|
681
681
|
- - "~>"
|
682
682
|
- !ruby/object:Gem::Version
|
683
|
-
version: 1.
|
683
|
+
version: 1.16.0
|
684
684
|
type: :development
|
685
685
|
prerelease: false
|
686
686
|
version_requirements: !ruby/object:Gem::Requirement
|
687
687
|
requirements:
|
688
688
|
- - "~>"
|
689
689
|
- !ruby/object:Gem::Version
|
690
|
-
version: 1.
|
690
|
+
version: 1.16.0
|
691
691
|
- !ruby/object:Gem::Dependency
|
692
692
|
name: rubocop-rails
|
693
693
|
requirement: !ruby/object:Gem::Requirement
|
@@ -717,11 +717,11 @@ files:
|
|
717
717
|
- "./lib/nexmo_developer/public/android-chrome-512x512.png"
|
718
718
|
- "./lib/nexmo_developer/public/apple-touch-icon-precomposed.png"
|
719
719
|
- "./lib/nexmo_developer/public/apple-touch-icon.png"
|
720
|
-
- "./lib/nexmo_developer/public/assets/.sprockets-manifest-
|
720
|
+
- "./lib/nexmo_developer/public/assets/.sprockets-manifest-391878eca0f5c42c3d77970895b8a354.json"
|
721
|
+
- "./lib/nexmo_developer/public/assets/application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css"
|
722
|
+
- "./lib/nexmo_developer/public/assets/application-6e9186f7602070c57b5c60de9b45ad12f1fccdcf83e08ea28c809d7a5a42a232.css.gz"
|
721
723
|
- "./lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js"
|
722
724
|
- "./lib/nexmo_developer/public/assets/application-aa88b3c7bd34ec529f43849541752fda7c9c202aa9fff905be578ef88d103b46.js.gz"
|
723
|
-
- "./lib/nexmo_developer/public/assets/application-f940d308cf06d7b6e09ec4ebd9263213ccd2cc54faf3c09dfc92f3af40e6f369.css"
|
724
|
-
- "./lib/nexmo_developer/public/assets/application-f940d308cf06d7b6e09ec4ebd9263213ccd2cc54faf3c09dfc92f3af40e6f369.css.gz"
|
725
725
|
- "./lib/nexmo_developer/public/assets/archives/app-store-badges.zip"
|
726
726
|
- "./lib/nexmo_developer/public/assets/fonts/icomoon.eot"
|
727
727
|
- "./lib/nexmo_developer/public/assets/fonts/icomoon.json"
|
@@ -828,21 +828,22 @@ files:
|
|
828
828
|
- "./lib/nexmo_developer/public/packs/css/active_admin/print-69353421.chunk.css"
|
829
829
|
- "./lib/nexmo_developer/public/packs/css/active_admin/print-69353421.chunk.css.br"
|
830
830
|
- "./lib/nexmo_developer/public/packs/css/active_admin/print-69353421.chunk.css.gz"
|
831
|
-
- "./lib/nexmo_developer/public/packs/css/application-
|
832
|
-
- "./lib/nexmo_developer/public/packs/css/application-
|
833
|
-
- "./lib/nexmo_developer/public/packs/css/application-
|
834
|
-
- "./lib/nexmo_developer/public/packs/js/active_admin-
|
835
|
-
- "./lib/nexmo_developer/public/packs/js/active_admin-
|
836
|
-
- "./lib/nexmo_developer/public/packs/js/active_admin-
|
837
|
-
- "./lib/nexmo_developer/public/packs/js/active_admin-
|
838
|
-
- "./lib/nexmo_developer/public/packs/js/active_admin
|
839
|
-
- "./lib/nexmo_developer/public/packs/js/active_admin/print-
|
840
|
-
- "./lib/nexmo_developer/public/packs/js/
|
841
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
842
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
843
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
844
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
845
|
-
- "./lib/nexmo_developer/public/packs/js/application-
|
831
|
+
- "./lib/nexmo_developer/public/packs/css/application-5c427c70.chunk.css"
|
832
|
+
- "./lib/nexmo_developer/public/packs/css/application-5c427c70.chunk.css.br"
|
833
|
+
- "./lib/nexmo_developer/public/packs/css/application-5c427c70.chunk.css.gz"
|
834
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin-5ac319e79e6d7e96d632.chunk.js"
|
835
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin-5ac319e79e6d7e96d632.chunk.js.br"
|
836
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin-5ac319e79e6d7e96d632.chunk.js.map"
|
837
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin-5ac319e79e6d7e96d632.chunk.js.map.br"
|
838
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin-5ac319e79e6d7e96d632.chunk.js.map.gz"
|
839
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin/print-536ad0b66b2d812add5f.chunk.js"
|
840
|
+
- "./lib/nexmo_developer/public/packs/js/active_admin/print-536ad0b66b2d812add5f.chunk.js.map"
|
841
|
+
- "./lib/nexmo_developer/public/packs/js/application-136ffac7c190563f0ff4.chunk.js"
|
842
|
+
- "./lib/nexmo_developer/public/packs/js/application-136ffac7c190563f0ff4.chunk.js.br"
|
843
|
+
- "./lib/nexmo_developer/public/packs/js/application-136ffac7c190563f0ff4.chunk.js.gz"
|
844
|
+
- "./lib/nexmo_developer/public/packs/js/application-136ffac7c190563f0ff4.chunk.js.map"
|
845
|
+
- "./lib/nexmo_developer/public/packs/js/application-136ffac7c190563f0ff4.chunk.js.map.br"
|
846
|
+
- "./lib/nexmo_developer/public/packs/js/application-136ffac7c190563f0ff4.chunk.js.map.gz"
|
846
847
|
- "./lib/nexmo_developer/public/packs/js/runtime~active_admin-c8b7b734110087921398.js"
|
847
848
|
- "./lib/nexmo_developer/public/packs/js/runtime~active_admin-c8b7b734110087921398.js.br"
|
848
849
|
- "./lib/nexmo_developer/public/packs/js/runtime~active_admin-c8b7b734110087921398.js.gz"
|
@@ -861,13 +862,13 @@ files:
|
|
861
862
|
- "./lib/nexmo_developer/public/packs/js/runtime~application-756e66304b1aef93a721.js.map"
|
862
863
|
- "./lib/nexmo_developer/public/packs/js/runtime~application-756e66304b1aef93a721.js.map.br"
|
863
864
|
- "./lib/nexmo_developer/public/packs/js/runtime~application-756e66304b1aef93a721.js.map.gz"
|
864
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
865
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
866
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
867
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
868
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
869
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
870
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-
|
865
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js"
|
866
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js.LICENSE.txt"
|
867
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js.br"
|
868
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js.gz"
|
869
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js.map"
|
870
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js.map.br"
|
871
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin-94b54b8348201f9df77c.chunk.js.map.gz"
|
871
872
|
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin~application-cc1d769f74b85a43da5c.chunk.js"
|
872
873
|
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin~application-cc1d769f74b85a43da5c.chunk.js.LICENSE.txt"
|
873
874
|
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin~application-cc1d769f74b85a43da5c.chunk.js.br"
|
@@ -875,13 +876,13 @@ files:
|
|
875
876
|
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin~application-cc1d769f74b85a43da5c.chunk.js.map"
|
876
877
|
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin~application-cc1d769f74b85a43da5c.chunk.js.map.br"
|
877
878
|
- "./lib/nexmo_developer/public/packs/js/vendors~active_admin~application-cc1d769f74b85a43da5c.chunk.js.map.gz"
|
878
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
879
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
880
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
881
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
882
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
883
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
884
|
-
- "./lib/nexmo_developer/public/packs/js/vendors~application-
|
879
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js"
|
880
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.LICENSE.txt"
|
881
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.br"
|
882
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.gz"
|
883
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.map"
|
884
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.map.br"
|
885
|
+
- "./lib/nexmo_developer/public/packs/js/vendors~application-186c82017c7148640a3d.chunk.js.map.gz"
|
885
886
|
- "./lib/nexmo_developer/public/packs/manifest.json"
|
886
887
|
- "./lib/nexmo_developer/public/packs/manifest.json.br"
|
887
888
|
- "./lib/nexmo_developer/public/packs/manifest.json.gz"
|
@@ -1080,6 +1081,7 @@ files:
|
|
1080
1081
|
- "./lib/nexmo_developer/public/safari-pinned-tab.svg"
|
1081
1082
|
- "./lib/nexmo_developer/public/symbol/volta-brand-icons.svg"
|
1082
1083
|
- "./lib/nexmo_developer/public/symbol/volta-icons.svg"
|
1084
|
+
- "./lib/nexmo_developer/public/vonage_developer_logo.svg"
|
1083
1085
|
- ".buildpacks"
|
1084
1086
|
- ".editorconfig"
|
1085
1087
|
- ".env.example"
|
@@ -1186,6 +1188,7 @@ files:
|
|
1186
1188
|
- lib/nexmo_developer/app/models/user.rb
|
1187
1189
|
- lib/nexmo_developer/app/presenters/card.rb
|
1188
1190
|
- lib/nexmo_developer/app/presenters/career.rb
|
1191
|
+
- lib/nexmo_developer/app/presenters/code_snippets_home_presenter.rb
|
1189
1192
|
- lib/nexmo_developer/app/presenters/feedback_presenter.rb
|
1190
1193
|
- lib/nexmo_developer/app/presenters/footer.rb
|
1191
1194
|
- lib/nexmo_developer/app/presenters/head.rb
|
@@ -1201,8 +1204,6 @@ files:
|
|
1201
1204
|
- lib/nexmo_developer/app/presenters/sidenav_resolver.rb
|
1202
1205
|
- lib/nexmo_developer/app/presenters/sidenav_subitem.rb
|
1203
1206
|
- lib/nexmo_developer/app/presenters/title_normalizer.rb
|
1204
|
-
- lib/nexmo_developer/app/presenters/topnav.rb
|
1205
|
-
- lib/nexmo_developer/app/presenters/topnav_item.rb
|
1206
1207
|
- lib/nexmo_developer/app/presenters/tutorial_list_item.rb
|
1207
1208
|
- lib/nexmo_developer/app/services/diff.rb
|
1208
1209
|
- lib/nexmo_developer/app/services/email_validator.rb
|
@@ -1280,6 +1281,7 @@ files:
|
|
1280
1281
|
- lib/nexmo_developer/app/views/layouts/open-api.html.erb
|
1281
1282
|
- lib/nexmo_developer/app/views/layouts/page-full.html.erb
|
1282
1283
|
- lib/nexmo_developer/app/views/layouts/page.html.erb
|
1284
|
+
- lib/nexmo_developer/app/views/layouts/partials/_code_snippets_home.html.erb
|
1283
1285
|
- lib/nexmo_developer/app/views/layouts/partials/_feedback.html.erb
|
1284
1286
|
- lib/nexmo_developer/app/views/layouts/partials/_footer.html.erb
|
1285
1287
|
- lib/nexmo_developer/app/views/layouts/partials/_head.html.erb
|
@@ -1407,6 +1409,7 @@ files:
|
|
1407
1409
|
- lib/nexmo_developer/app/webpacker/javascript/notices/index.js
|
1408
1410
|
- lib/nexmo_developer/app/webpacker/javascript/scroll/index.js
|
1409
1411
|
- lib/nexmo_developer/app/webpacker/javascript/sidenav/index.js
|
1412
|
+
- lib/nexmo_developer/app/webpacker/javascript/topnav/index.js
|
1410
1413
|
- lib/nexmo_developer/app/webpacker/javascript/volta/tooltip.min.js
|
1411
1414
|
- lib/nexmo_developer/app/webpacker/javascript/volta/volta.js
|
1412
1415
|
- lib/nexmo_developer/app/webpacker/javascript/volta_tabbed_examples/index.js
|
@@ -1418,6 +1421,7 @@ files:
|
|
1418
1421
|
- lib/nexmo_developer/app/webpacker/stylesheets/active_admin.scss
|
1419
1422
|
- lib/nexmo_developer/app/webpacker/stylesheets/application.scss
|
1420
1423
|
- lib/nexmo_developer/app/webpacker/stylesheets/custom/_core.scss
|
1424
|
+
- lib/nexmo_developer/app/webpacker/stylesheets/custom/_landing.scss
|
1421
1425
|
- lib/nexmo_developer/app/webpacker/stylesheets/custom/_mixins.scss
|
1422
1426
|
- lib/nexmo_developer/app/webpacker/stylesheets/custom/_syntax.scss
|
1423
1427
|
- lib/nexmo_developer/app/webpacker/stylesheets/custom/_typography.scss
|
@@ -1706,6 +1710,7 @@ files:
|
|
1706
1710
|
- lib/nexmo_developer/public/safari-pinned-tab.svg
|
1707
1711
|
- lib/nexmo_developer/public/symbol/volta-brand-icons.svg
|
1708
1712
|
- lib/nexmo_developer/public/symbol/volta-icons.svg
|
1713
|
+
- lib/nexmo_developer/public/vonage_developer_logo.svg
|
1709
1714
|
- lib/nexmo_developer/vendor/assets/javascripts/.keep
|
1710
1715
|
- lib/nexmo_developer/vendor/assets/stylesheets/.keep
|
1711
1716
|
- lib/nexmo_developer/version.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class Topnav
|
2
|
-
CONFIG = "#{Rails.configuration.docs_base_path}/config/top_navigation.yml".freeze
|
3
|
-
|
4
|
-
def initialize(navigation)
|
5
|
-
@navigation = navigation
|
6
|
-
|
7
|
-
after_initialize!
|
8
|
-
end
|
9
|
-
|
10
|
-
def items
|
11
|
-
@items ||= begin
|
12
|
-
YAML.safe_load(File.open(CONFIG)).map do |name, url|
|
13
|
-
TopnavItem.new(name, url, @navigation)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
private
|
19
|
-
|
20
|
-
def after_initialize!
|
21
|
-
raise 'You must provide a config/top_navigation.yml file in your documentation path.' unless File.exist?(CONFIG)
|
22
|
-
end
|
23
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
class TopnavItem
|
2
|
-
attr_reader :url
|
3
|
-
|
4
|
-
def initialize(name, url, navigation)
|
5
|
-
@name = name
|
6
|
-
@url = url
|
7
|
-
@navigation = navigation.to_s
|
8
|
-
end
|
9
|
-
|
10
|
-
def title
|
11
|
-
@title ||= I18n.t("layouts.partials.header.#{@name.downcase}")
|
12
|
-
end
|
13
|
-
|
14
|
-
def css_classes
|
15
|
-
classes = ['Vlt-tabs__link']
|
16
|
-
classes << 'Vlt-tabs__link_active' if @navigation == @name.downcase
|
17
|
-
classes.join(' ')
|
18
|
-
end
|
19
|
-
end
|