pageflow-progress-navigation-bar 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MzY2MWZiY2RkZjFlODgwMDI4ZGNkNzRkNzBiZjYzMzY4ZmRjYjg5Zg==
5
- data.tar.gz: !binary |-
6
- ZmVkOGY0ZjQwNzYyMTgyMGEyY2E2NDBmZmFjZDBmMjhlMDI1NmEyZQ==
2
+ SHA1:
3
+ metadata.gz: 80610bc20007bcc35f9ed886be7094fa633481f2
4
+ data.tar.gz: 3a0cd81da1e019605426480fccea45a2382594a9
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDE4YmIxOGRjNGE0NGMxNzc3NzczZjFmOTgxNDAwZTg3ODIwNWYyODEyNTJk
10
- N2IyNmIzNDQxMTAxYjM4NWE1Njc0MjgxOGNhNjI5MDg1NjliOGRmN2E2YjMy
11
- ZWRjZjQ0MmUzM2JhYzYyZmViNGRkMzJlYmM0MTdmMTA1MDdkMmU=
12
- data.tar.gz: !binary |-
13
- MDg0MDQyNTVmZGRmNjI0ZWQ0ZGI2ZmU5ZDhlOTU0NDAxZmNjZDA1MTExZGQ0
14
- ZTNkMzk5MmIyMjdjYmQ5OWIyZWM4YmRlMTM5M2UxMDc2YjJiZTFiMjVkMzU4
15
- YjA4ODQ5N2U1MzAyNjYzM2MwOTUyOTU4ZGY5MGRlMTY3MjQ0ZmY=
6
+ metadata.gz: e057b25d3762ceebf476cad147158041f3829efdb88d9d1394310e82ac1ace5f3200dd3466871414fe47c1b3f6825a1f6b916ca6a53d34ba199304cb53f38209
7
+ data.tar.gz: 7866f04a7dfa3539302c205d0efe895f57de9e6eb0adb173a7cb6fb77f5ce2f3dc8b02190fca3f9341436470c056ff66a9daa7fb9f86b7e3188ff191c639f05f
data/CHANGELOG.md CHANGED
@@ -1,10 +1,23 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Changes on `master`
4
-
5
- [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/v0.3.0...master)
6
-
7
- None so far.
3
+ ### Version 0.4.0
4
+
5
+ 2016-06-09
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/v0.3.0...v0.4.0)
8
+
9
+ - Decouple from overview widget
10
+ ([#13](https://github.com/codevise/pageflow-progress-navigation-bar/pull/13))
11
+ - Display mobile navigation on narrow desktop browsers
12
+ ([#11](https://github.com/codevise/pageflow-progress-navigation-bar/pull/11))
13
+ - Animate storylines
14
+ ([#10](https://github.com/codevise/pageflow-progress-navigation-bar/pull/10))
15
+ - Add pageflow-public-i18n gem to gemspec
16
+ ([#9](https://github.com/codevise/pageflow-progress-navigation-bar/pull/9))
17
+ - Remove display magic
18
+ ([#7](https://github.com/codevise/pageflow-progress-navigation-bar/pull/7))
19
+ - Extract publicly visible i18n strings from locale
20
+ ([#5](https://github.com/codevise/pageflow-progress-navigation-bar/pull/5))
8
21
 
9
22
  ### Version 0.3.0
10
23
 
data/Rakefile CHANGED
@@ -5,3 +5,6 @@ rescue LoadError
5
5
  end
6
6
 
7
7
  Bundler::GemHelper.install_tasks
8
+
9
+ require 'semmy'
10
+ Semmy::Tasks.install
@@ -14,40 +14,6 @@
14
14
  $('.navigation_bar_bottom', this.element)
15
15
  .append($('.navigation_bar_top > li', this.element).slice(hasHomeButton ? 4 : 3));
16
16
 
17
-
18
- /* open menu magic */
19
- var checkingForMouseDelta = false,
20
- lastPosition,
21
- openBarTimeout,
22
- closeBarTimeout,
23
- measuringDistance = 600,
24
- recentPosition;
25
-
26
- $('body').on('mousemove', function(e) {
27
- recentPosition = e.pageX;
28
- var measuredDistance = that.element.offset().left - e.pageX;
29
- if(measuredDistance < measuringDistance && !checkingForMouseDelta && measuredDistance > 0) {
30
- checkingForMouseDelta = true;
31
- lastPosition = e.pageX;
32
-
33
- closeBarTimeout = setTimeout(function() {
34
- that.element.removeClass('hover');
35
- checkingForMouseDelta = false;
36
- }, 2000);
37
-
38
- openBarTimeout = setTimeout(function() {
39
- if(recentPosition - lastPosition > 100 * (measuredDistance / measuringDistance) + 10) {
40
- that.element.addClass('hover');
41
-
42
- }
43
- else {
44
- checkingForMouseDelta = false;
45
- clearTimeout(closeBarTimeout);
46
- }
47
- },50);
48
- }
49
- });
50
-
51
17
  pageflow.slides.on('slideshowchangepage', function() {
52
18
  that.element.addClass('show_on_mobile');
53
19
  setTimeout(function() {
@@ -55,12 +21,8 @@
55
21
  }, 1000);
56
22
  });
57
23
 
58
-
59
-
60
- that.element.on('mouseenter', function() { that.element.addClass('hover'); clearTimeout(closeBarTimeout);});
61
- that.element.on('mousemove', function() { clearTimeout(closeBarTimeout); });
62
- that.element.on('mouseleave', function() { that.element.removeClass('hover'); checkingForMouseDelta = false; });
63
-
24
+ that.element.on('mouseenter', function() { that.element.addClass('hover'); });
25
+ that.element.on('mouseleave', function() { that.element.removeClass('hover'); });
64
26
 
65
27
  /* keyboard / skiplinks */
66
28
 
@@ -72,13 +34,6 @@
72
34
  that.element.addClass('focus');
73
35
  });
74
36
 
75
- /*that.element.on('mousemove', function() {
76
- clearTimeout(closeBarTimeout);
77
- closeBarTimeout = setTimeout(function() {
78
- that.element.removeClass('hover');
79
- }, 500);
80
- });*/
81
-
82
37
  /* Volume */
83
38
  that.element.find('.navigation_volume_box').volumeSlider({
84
39
  orientation: 'v'
@@ -136,11 +91,6 @@
136
91
  pageLinks.off('mouseup touchend', goToPage);
137
92
  }
138
93
 
139
- function closeOverview() {
140
- $('.overview').removeClass("active");
141
- $('.navigation_index', that.element).removeClass("active");
142
- }
143
-
144
94
  function hideOverlay() {
145
95
  $(overlays).addClass('hidden').removeClass('visible');
146
96
  }
@@ -150,8 +100,6 @@
150
100
  return;
151
101
  }
152
102
  hideOverlay();
153
- closeOverview();
154
- $('.page .content, .scroll_indicator').removeClass('hidden');
155
103
  pageflow.slides.goToById(this.getAttribute("data-link"));
156
104
  e.preventDefault();
157
105
  }
@@ -176,18 +124,17 @@
176
124
  var pageDotsMaxHeight = 20,
177
125
  pageDotsMinHeight = 1,
178
126
  maxBarHeight = $('#outer_wrapper').height() ? $('#outer_wrapper').height() : $('main').height(),
179
- wantedHeight = maxBarHeight / pageLinks.length,
127
+ wantedHeight = maxBarHeight / pageLinks.filter(':not(.filtered)').length,
180
128
  appliedHeight = pageDotsMinHeight;
181
129
 
182
-
183
- if(wantedHeight <= pageDotsMaxHeight && wantedHeight > pageDotsMinHeight) {
130
+ if (wantedHeight <= pageDotsMaxHeight && wantedHeight > pageDotsMinHeight) {
184
131
  appliedHeight = wantedHeight;
185
132
  }
186
133
  else if(wantedHeight > pageDotsMinHeight) {
187
134
  appliedHeight = pageDotsMaxHeight;
188
135
  }
189
136
 
190
- $('.navigation_dots > li').css('height', appliedHeight + 'px');
137
+ $('.navigation_dots > li').css('height', Math.floor(appliedHeight) + 'px');
191
138
  };
192
139
 
193
140
  resizeDots();
@@ -217,7 +164,9 @@
217
164
 
218
165
  $('ul.navigation_dots', that.element).pageNavigationList({
219
166
  scroller: scroller,
220
- scrollToActive: true
167
+ scrollToActive: true,
168
+ animationDuration: 400,
169
+ onFilterChange: resizeDots
221
170
  });
222
171
 
223
172
  });
@@ -2,20 +2,26 @@ body .widget_progress_navigation_bar_present .navigation_mobile {
2
2
  .menu.index {
3
3
  right: 20px;
4
4
  }
5
+
5
6
  &.active .menu.index {
6
7
  right: 200px;
7
8
  }
9
+
10
+ .parent_page {
11
+ right: 70px;
12
+ }
13
+
14
+ &.active .parent_page {
15
+ right: 250px;
16
+ }
8
17
  }
9
18
 
10
19
  .navigation_mobile, .navigation_mobile > * {
11
20
  body.has_mobile_platform .widget_progress_navigation_bar_present & {
12
21
  display: block;
13
22
  }
14
-
15
- body.has_no_mobile_platform .widget_progress_navigation_bar_present & {
16
- display: none;
17
- }
18
23
  }
24
+
19
25
  .js .widget_progress_navigation_bar_present .page .close_button {
20
26
  @include desktop {
21
27
  right: 125px;
@@ -16,6 +16,7 @@ $nav-active-chapter: #6D772E;
16
16
  $progressbar-mobile-width: 14px;
17
17
 
18
18
  @import "cross_dependant_styles";
19
+ @import "./progress_navigation_bar/animations";
19
20
 
20
21
  @mixin pageflow-progress-navigation-bar-small-height {
21
22
  @media screen and (max-height: 870px) {
@@ -23,6 +24,16 @@ $progressbar-mobile-width: 14px;
23
24
  }
24
25
  }
25
26
 
27
+ @mixin pageflow-progress-mobile-variant {
28
+ .has_mobile_platform & {
29
+ @content;
30
+ }
31
+
32
+ @include phone {
33
+ @content;
34
+ }
35
+ }
36
+
26
37
  @mixin pageflow-progress-navigation-bar-transparent-background {
27
38
  &:after {
28
39
  height: 100%;
@@ -83,7 +94,7 @@ $progressbar-mobile-width: 14px;
83
94
  }
84
95
  }
85
96
 
86
- .has_mobile_platform & {
97
+ @include pageflow-progress-mobile-variant {
87
98
  width: $progressbar-mobile-width;
88
99
  @include transition(opacity 0.4s ease 0.5s);
89
100
  opacity: 0;
@@ -95,6 +106,7 @@ $progressbar-mobile-width: 14px;
95
106
  opacity: 1;
96
107
  @include transition(opacity 0.4s ease);
97
108
  }
109
+
98
110
  position: absolute;
99
111
  right: 0;
100
112
  top: 0;
@@ -114,7 +126,7 @@ $progressbar-mobile-width: 14px;
114
126
  top: 35px;
115
127
  background-position: left top;
116
128
 
117
- .has_mobile_platform & {
129
+ @include pageflow-progress-mobile-variant {
118
130
  display: none;
119
131
  }
120
132
 
@@ -201,14 +213,14 @@ $progressbar-mobile-width: 14px;
201
213
  overflow: visible;
202
214
  width: 122px;
203
215
 
204
- .has_mobile_platform & {
216
+ @include pageflow-progress-mobile-variant {
205
217
  width: 14px;
206
218
  }
207
219
 
208
220
  .navigation_button_area {
209
221
  width: 87px;
210
222
 
211
- .has_mobile_platform & {
223
+ @include pageflow-progress-mobile-variant {
212
224
  display: none;
213
225
  }
214
226
 
@@ -468,31 +480,27 @@ $progressbar-mobile-width: 14px;
468
480
  bottom: 0;
469
481
  right: 0;
470
482
  width: 30px;
471
- .has_mobile_platform & {
472
- width: $progressbar-mobile-width;
473
- }
474
483
  max-height: 100%;
475
484
  overflow: hidden;
476
485
  position: absolute;
477
-
478
486
  @include pageflow-progress-navigation-bar-transparent-background;
479
487
 
480
-
488
+ @include pageflow-progress-mobile-variant {
489
+ width: $progressbar-mobile-width;
490
+ }
481
491
 
482
492
  ul {
483
493
  position: absolute;
484
494
  right: 8px;
485
495
  width: 14px;
496
+ top: 50%;
497
+ max-height: 100%;
498
+ @include transform(translate(0, -50%) !important);
486
499
 
487
- .has_mobile_platform & {
500
+ @include pageflow-progress-mobile-variant {
488
501
  right: 3px;
489
502
  width: 8px;
490
-
491
-
492
503
  }
493
- top: 50%;
494
- max-height: 100%;
495
- @include transform(translate(0, -50%) !important);
496
504
 
497
505
  li {
498
506
  position: relative;
@@ -501,6 +509,51 @@ $progressbar-mobile-width: 14px;
501
509
  &:last-child {
502
510
  margin-bottom: 0;
503
511
  }
512
+
513
+ &.filtered {
514
+ display: none;
515
+ }
516
+
517
+ &.animate_in {
518
+ &.moving_forwards {
519
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-bottom 0.4s ease-out);
520
+ }
521
+
522
+ &.moving_backwards {
523
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-top 0.4s ease-out);
524
+ }
525
+
526
+ &.moving_down {
527
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-right 0.4s ease-out);
528
+ }
529
+
530
+ &.moving_up {
531
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-left 0.4s ease-out);
532
+ }
533
+ }
534
+
535
+ &.animate_out {
536
+ &.moving_forwards {
537
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-top 0.4s ease-in);
538
+ opacity: 0;
539
+ }
540
+
541
+ &.moving_backwards {
542
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-bottom 0.4s ease-in);
543
+ opacity: 0;
544
+ }
545
+
546
+ &.moving_down {
547
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-left 0.4s ease-in);
548
+ @include transform(translate3d(-50px, 0, 0));
549
+ }
550
+
551
+ &.moving_up {
552
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-right 0.4s ease-in);
553
+ @include transform(translate3d(50px, 0, 0));
554
+ }
555
+ }
556
+
504
557
  }
505
558
 
506
559
  a {
@@ -0,0 +1,82 @@
1
+ $pageflow-progress-navigation-bar-v-translation: 100px;
2
+ $pageflow-progress-navigation-bar-h-translation: 50px;
3
+
4
+ @include keyframes(pageflow-progress-navigation-bar-slide-in-from-top) {
5
+ 0% {
6
+ @include transform(translate3d(0, -$pageflow-progress-navigation-bar-v-translation, 0));
7
+ opacity: 0;
8
+ }
9
+ 100% {
10
+ @include transform(translate3d(0, 0, 0));
11
+ opacity: 1;
12
+ }
13
+ }
14
+
15
+ @include keyframes(pageflow-progress-navigation-bar-slide-in-from-bottom) {
16
+ 0% {
17
+ @include transform(translate3d(0, $pageflow-progress-navigation-bar-v-translation, 0));
18
+ opacity: 0;
19
+ }
20
+ 100% {
21
+ @include transform(translate3d(0, 0, 0));
22
+ opacity: 1;
23
+ }
24
+ }
25
+
26
+ @include keyframes(pageflow-progress-navigation-bar-slide-out-to-top) {
27
+ 0% {
28
+ @include transform(translate3d(0, 0, 0));
29
+ opacity: 1;
30
+ }
31
+ 100% {
32
+ @include transform(translate3d(0, -$pageflow-progress-navigation-bar-v-translation, 0));
33
+ opacity: 0;
34
+ }
35
+ }
36
+
37
+ @include keyframes(pageflow-progress-navigation-bar-slide-out-to-bottom) {
38
+ 0% {
39
+ @include transform(translate3d(0, 0, 0));
40
+ opacity: 1;
41
+ }
42
+ 100% {
43
+ @include transform(translate3d(0, $pageflow-progress-navigation-bar-v-translation, 0));
44
+ opacity: 0;
45
+ }
46
+ }
47
+
48
+ @include keyframes(pageflow-progress-navigation-bar-slide-in-from-right) {
49
+ 0% {
50
+ @include transform(translate3d($pageflow-progress-navigation-bar-h-translation, 0, 0));
51
+ }
52
+ 100% {
53
+ @include transform(translate3d(0, 0, 0));
54
+ }
55
+ }
56
+
57
+ @include keyframes(pageflow-progress-navigation-bar-slide-in-from-left) {
58
+ 0% {
59
+ @include transform(translate3d(-$pageflow-progress-navigation-bar-h-translation, 0, 0));
60
+ }
61
+ 100% {
62
+ @include transform(translate3d(0, 0, 0));
63
+ }
64
+ }
65
+
66
+ @include keyframes(pageflow-progress-navigation-bar-slide-out-to-right) {
67
+ 0% {
68
+ @include transform(translate3d(0, 0, 0));
69
+ }
70
+ 100% {
71
+ @include transform(translate3d($pageflow-progress-navigation-bar-h-translation, 0, 0));
72
+ }
73
+ }
74
+
75
+ @include keyframes(pageflow-progress-navigation-bar-slide-out-to-left) {
76
+ 0% {
77
+ @include transform(translate3d(0, 0, 0));
78
+ }
79
+ 100% {
80
+ @include transform(translate3d(-$pageflow-progress-navigation-bar-h-translation, 0, 0));
81
+ }
82
+ }
@@ -1,37 +1,37 @@
1
1
  <ul class="navigation_bar_buttons">
2
2
  <li class="menu_li">
3
- <a id="navigation" class="navigation_bullet navigation_main" tabindex="2" title="<%= t('.display_header') %>" data-active-title="<%= t('.hide_header') %>">
3
+ <a id="navigation" class="navigation_bullet navigation_main" tabindex="2" title="<%= t('pageflow.public.open_navigation') %>" data-active-title="<%= t('pageflow.public.close_navigation') %>">
4
4
  <span class="button"></span>
5
- <span class="navi_hint"><%= t('.header') %></span>
5
+ <span class="navi_hint"><%= t('pageflow.public.navigation') %></span>
6
6
  </a>
7
7
  </li>
8
8
  <%= render('pageflow/progress_navigation_bar/widget/home_button', home_button: entry.home_button) %>
9
9
  <li>
10
- <a class="navigation_bullet navigation_top" <%= "href=##{entry.pages.first.perma_id} data-link=#{entry.pages.first.id}" unless entry.pages.nil? || entry.pages.first.nil? %> tabindex="2" title="<%= t('.first_page_title') %>">
10
+ <a class="navigation_bullet navigation_top" <%= "href=##{entry.pages.first.perma_id} data-link=#{entry.pages.first.id}" unless entry.pages.nil? || entry.pages.first.nil? %> tabindex="2" title="<%= t('pageflow.public.goto_first_page') %>">
11
11
  <span class="button"></span>
12
- <span class="navi_hint"><%= t('.first_page') %></span>
12
+ <span class="navi_hint"><%= t('pageflow.public.first_page') %></span>
13
13
  </a>
14
14
  </li>
15
15
  <li class="navigation_overview_item">
16
- <a class="navigation_bullet navigation_index" tabindex="2" title="<%= t('.display_overview') %>" data-active-title="<%= t('.hide_overview') %>">
16
+ <a class="navigation_bullet navigation_index" tabindex="2" title="<%= t('pageflow.public.open_overview') %>" data-active-title="<%= t('pageflow.public.close_overview') %>">
17
17
  <span class="button"></span>
18
- <span class="navi_hint"><%= t('.overview') %></span>
18
+ <span class="navi_hint"><%= t('pageflow.public.overview') %></span>
19
19
  </a>
20
20
  </li>
21
21
  <li class="fullscreen">
22
- <a class="navigation_bullet navigation_fullscreen" tabindex="2" title="<%= t('.enter_fullscreen') %>" data-active-title="<%= t('.leave_fullscreen') %>">
22
+ <a class="navigation_bullet navigation_fullscreen" tabindex="2" title="<%= t('pageflow.public.enter_fullscreen') %>" data-active-title="<%= t('pageflow.public.leave_fullscreen') %>">
23
23
  <span class="button"></span>
24
- <span class="navi_hint"><%= t('.fullscreen') %></span>
24
+ <span class="navi_hint"><%= t('pageflow.public.fullscreen') %></span>
25
25
  </a>
26
26
  </li>
27
27
  <li class="hide_text">
28
- <a class="navigation_bullet navigation_hide_text" tabindex="2" title="<%= t('.hide_text') %>" data-active-title="<%= t('.show_text') %>">
28
+ <a class="navigation_bullet navigation_hide_text" tabindex="2" title="<%= t('pageflow.public.hide_text') %>" data-active-title="<%= t('pageflow.public.show_text') %>">
29
29
  <span class="button"></span>
30
- <span class="navi_hint"><%= t('.hide_text') %></span>
30
+ <span class="navi_hint"><%= t('pageflow.public.hide_text') %></span>
31
31
  </a>
32
32
  </li>
33
33
  <li class="navigation_menu mute">
34
- <div class="navigation_volume_box" title="<%= t('.volume') %>">
34
+ <div class="navigation_volume_box" title="<%= t('pageflow.public.volume') %>">
35
35
  <div class="volume-control" style="display: block;">
36
36
  <div class="volume-slider">
37
37
  <div class="volume-level" style="width: 100%;"><span class="volume-control-text"></span></div>
@@ -43,37 +43,37 @@
43
43
  <li class="navigation_menu share" tabindex="2">
44
44
  <div class="navigation_menu_box navigation_share_box">
45
45
  <%= link_to "http://www.facebook.com/sharer/sharer.php?s=100&p%5Burl%5D=#{ERB::Util.url_encode(pretty_entry_url(entry))}&p%5Btitle%5D=#{ERB::Util.url_encode(entry.title)}", :target => "_blank", :tabindex => "2", :class => "share facebook", :data => { :"share-page" => "http://www.facebook.com/sharer/sharer.php?s=100&p%5Burl%5D=#{ERB::Util.url_encode(pretty_entry_url(entry))}%3Fpage%3DpermaId" } do %>
46
- <span class="hint"><%= t('pageflow.widgets.share_menu.share_with_facebook') %></span>
46
+ <span class="hint"><%= t('pageflow.public.share_on_facebook') %></span>
47
47
  <span class="share_facebook button"></span>
48
48
  <p>facebook</p>
49
49
  <% end %>
50
50
  <%= link_to "http://twitter.com/home?status=#{ERB::Util.url_encode(pretty_entry_url(entry))}", :target => "_blank", :tabindex => "2", :class => "share twitter", :data => { :"share-page" => "http://twitter.com/home?status=#{ERB::Util.url_encode(pretty_entry_url(entry))}%3Fpage%3DpermaId" } do %>
51
- <span class="hint"><%= t('pageflow.widgets.share_menu.share_with_twitter') %></span>
51
+ <span class="hint"><%= t('pageflow.public.share_on_twitter') %></span>
52
52
  <span class="share_twitter button"></span>
53
53
  <p>twitter</p>
54
54
  <% end %>
55
55
  <%= link_to "https://plus.google.com/share?url=#{ERB::Util.url_encode(pretty_entry_url(entry))}", :target => "_blank", :tabindex => "2", :class => "share google", :data => { :"share-page" => "https://plus.google.com/share?url=#{ERB::Util.url_encode(pretty_entry_url(entry))}%3Fpage%3DpermaId" } do %>
56
- <span class="hint"><%= t('pageflow.widgets.share_menu.share_with_google') %></span>
56
+ <span class="hint"><%= t('pageflow.public.share_on_google') %></span>
57
57
  <span class="share_google button"></span>
58
58
  <p>google</p>
59
59
  <% end %>
60
60
  <div class="sub_share">
61
- <a tabindex="2" target="_blank"><%= t('pageflow.widgets.share_menu.entry') %></a>
62
- <a tabindex="2" target="_blank"><%= t('pageflow.widgets.share_menu.current_page') %></a>
61
+ <a tabindex="2" target="_blank"><%= t('pageflow.public.share_this_entry') %></a>
62
+ <a tabindex="2" target="_blank"><%= t('pageflow.public.share_this_page') %></a>
63
63
  </div>
64
64
  </div>
65
- <a title="<%= t('.share') %>">
65
+ <a title="<%= t('pageflow.public.share') %>">
66
66
  <span class="navigation_bg navigation_share button"></span>
67
- <span class="navi_hint"><%= t('.share') %></span>
67
+ <span class="navi_hint"><%= t('pageflow.public.share') %></span>
68
68
  </a>
69
69
  </li>
70
70
  <li class="navigation_menu" tabindex="2">
71
71
  <div class="navigation_menu_box navigation_credits_box">
72
72
  <%= render 'pageflow/entries/navigation/credits_box_content', :entry => entry %>
73
73
  </div>
74
- <a class="navigation_credits_button" title="<%= t('.imprint') %>">
74
+ <a class="navigation_credits_button" title="<%= t('pageflow.public.imprint') %>">
75
75
  <span class="navigation_bg navigation_credits button"></span>
76
- <span class="navi_hint"><%= t('.imprint') %></span>
76
+ <span class="navi_hint"><%= t('pageflow.public.imprint') %></span>
77
77
  </a>
78
78
  </li>
79
79
  </ul>
@@ -1,8 +1,8 @@
1
1
  <% if home_button.enabled? %>
2
2
  <li>
3
- <%= link_to(home_button.url, class: "navigation_bullet navigation_home", tabindex: "2", title: t('.home_title')) do %>
3
+ <%= link_to(home_button.url, class: "navigation_bullet navigation_home", tabindex: "2", title: t('pageflow.public.show_home')) do %>
4
4
  <span class="button"></span>
5
- <span class="navi_hint"><%= t('.home') %></span>
5
+ <span class="navi_hint"><%= t('pageflow.public.home') %></span>
6
6
  <% end %>
7
7
  </li>
8
8
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <div class="navigation_site_detail progress_navigation">
5
5
  <% if chapters_count > 1 %>
6
6
  <h2>
7
- <span class="chapter_number"><%= "#{I18n.t('pageflow.progress_navigation_bar.chapter')} #{page.chapter.position + 1}" %></span>
7
+ <span class="chapter_number"><%= "#{I18n.t('pageflow.public.chapter')} #{page.chapter.position + 1}" %></span>
8
8
  <span class="chapter_title"><%= page.chapter.title %></span>
9
9
  </h2>
10
10
  <hr />
@@ -1,26 +1,4 @@
1
1
  de:
2
2
  pageflow:
3
3
  progress_navigation_bar:
4
- chapter: Kapitel
5
- widget:
6
- bar_top:
7
- display_header: Dachnavigation anzeigen
8
- display_overview: Übersicht anzeigen
9
- enter_fullscreen: Vollbilddarstellung
10
- first_page: Erste Seite
11
- first_page_title: Zur ersten Seite
12
- fullscreen: Vollbild
13
- header: Navigation
14
- hide_header: Dachnavigation schließen
15
- hide_overview: Übersicht schließen
16
- hide_text: Text ausblenden
17
- imprint: Impressum
18
- leave_fullscreen: Vollbilddarstellung verlassen
19
- overview: Übersicht
20
- share: Teilen
21
- show_text: Text wieder einblenden
22
- volume: Lautstärke
23
- home_button:
24
- home: Startseite
25
- home_title: Zur Homepage
26
4
  widget_type_name: Navigationsleiste mit Fortschrittsbalken
@@ -1,26 +1,4 @@
1
1
  en:
2
2
  pageflow:
3
3
  progress_navigation_bar:
4
- chapter: Chapter
5
- widget:
6
- bar_top:
7
- display_header: Display header
8
- display_overview: Display overview
9
- enter_fullscreen: Enter fullscreen mode
10
- first_page: First page
11
- first_page_title: Go to first page
12
- fullscreen: Fullscreen
13
- header: Navigation
14
- hide_header: Close navigation
15
- hide_overview: Hide overview
16
- hide_text: Hide text
17
- imprint: Imprint
18
- leave_fullscreen: Leave fullscreen mode
19
- overview: Overview
20
- share: Share
21
- show_text: Show text
22
- volume: Volume
23
- home_button:
24
- home: Home
25
- home_title: Go to homepage
26
4
  widget_type_name: Progress navigation bar
@@ -1,3 +1,5 @@
1
+ require 'pageflow-public-i18n'
2
+
1
3
  module Pageflow
2
4
  module ProgressNavigationBar
3
5
  class Engine < Rails::Engine
@@ -0,0 +1,5 @@
1
+ module Pageflow
2
+ module ProgressNavigationBar
3
+ VERSION = '0.4.0'.freeze
4
+ end
5
+ end
@@ -1,8 +1,11 @@
1
1
  # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pageflow/progress_navigation_bar/version'
2
5
 
3
6
  Gem::Specification.new do |spec|
4
7
  spec.name = 'pageflow-progress-navigation-bar'
5
- spec.version = '0.3.0'
8
+ spec.version = Pageflow::ProgressNavigationBar::VERSION
6
9
  spec.authors = ['Codevise Solutions Ltd.']
7
10
  spec.email = ['info@codevise.de']
8
11
  spec.summary = 'Pageflow navigation widget.'
@@ -13,8 +16,12 @@ Gem::Specification.new do |spec|
13
16
  spec.test_files = spec.files.grep(%r{^spec/})
14
17
  spec.require_paths = ['lib']
15
18
 
16
- spec.add_runtime_dependency 'pageflow', '~> 0.9'
19
+ spec.add_runtime_dependency 'pageflow', '~> 0.10'
20
+ spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
17
21
 
18
22
  spec.add_development_dependency 'bundler'
19
23
  spec.add_development_dependency 'rake'
24
+
25
+ # Semantic versioning rake tasks
26
+ spec.add_development_dependency 'semmy', '~> 0.2'
20
27
  end
metadata CHANGED
@@ -1,57 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-progress-navigation-bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-23 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '0.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: '0.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pageflow-public-i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ! '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ! '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ! '>='
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ! '>='
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: semmy
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.2'
55
83
  description:
56
84
  email:
57
85
  - info@codevise.de
@@ -59,8 +87,8 @@ executables: []
59
87
  extensions: []
60
88
  extra_rdoc_files: []
61
89
  files:
62
- - .gitignore
63
- - .jshintrc
90
+ - ".gitignore"
91
+ - ".jshintrc"
64
92
  - CHANGELOG.md
65
93
  - Gemfile
66
94
  - README.md
@@ -71,6 +99,7 @@ files:
71
99
  - app/assets/javascript/pageflow/progress_navigation_bar/widget.js
72
100
  - app/assets/stylesheets/pageflow/cross_dependant_styles.css.scss
73
101
  - app/assets/stylesheets/pageflow/progress_navigation_bar.css.scss
102
+ - app/assets/stylesheets/pageflow/progress_navigation_bar/animations.scss
74
103
  - app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default.css.scss
75
104
  - app/views/pageflow/progress_navigation_bar/_widget.html.erb
76
105
  - app/views/pageflow/progress_navigation_bar/widget/_bar_top.html.erb
@@ -81,6 +110,7 @@ files:
81
110
  - config/locales/en.yml
82
111
  - lib/pageflow-progress-navigation-bar.rb
83
112
  - lib/pageflow/progress_navigation_bar/engine.rb
113
+ - lib/pageflow/progress_navigation_bar/version.rb
84
114
  - lib/pageflow/progress_navigation_bar/widget_type.rb
85
115
  - pageflow-progress-navigation-bar.gemspec
86
116
  homepage: https://github.com/codevise/pageflow-progress-navigation-bar
@@ -93,17 +123,17 @@ require_paths:
93
123
  - lib
94
124
  required_ruby_version: !ruby/object:Gem::Requirement
95
125
  requirements:
96
- - - ! '>='
126
+ - - ">="
97
127
  - !ruby/object:Gem::Version
98
128
  version: '0'
99
129
  required_rubygems_version: !ruby/object:Gem::Requirement
100
130
  requirements:
101
- - - ! '>='
131
+ - - ">="
102
132
  - !ruby/object:Gem::Version
103
133
  version: '0'
104
134
  requirements: []
105
135
  rubyforge_project:
106
- rubygems_version: 2.4.2
136
+ rubygems_version: 2.2.5
107
137
  signing_key:
108
138
  specification_version: 4
109
139
  summary: Pageflow navigation widget.