betterplace_explorer 0.0.1.pre.alpha25 → 0.0.1.pre.alpha26

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
  SHA1:
3
- metadata.gz: 77283133d69facffe3d9f0ef65c84ffd20d08afc
4
- data.tar.gz: e27ac2595fef7798b038c426ee0e3a1cfadf6f47
3
+ metadata.gz: 3e0fe212090d85cc3e0a04c4ecb6796723a4b0b9
4
+ data.tar.gz: 6b6910892e3dc48c2eaaef50f8fc957544feafc8
5
5
  SHA512:
6
- metadata.gz: d4b73c26f803f672ee6e2e9b51631ec41aeb450175b4295fa6662d9f2d1298c3f0e76e01ce91b3650e5de9af40c25bfb586e661f512b8bfcbb7e497374f04147
7
- data.tar.gz: 0da76109d5304171b3284b7a270f94d13ae158644c937fae5ed85c2f9d8e78df8335e229ef45a4c50c499b8d08f7b0bde59376cf6e9b0cc1d4590e29a8af5177
6
+ metadata.gz: c44f5fe20fa8ecf6bf4c89bd8235545d56f8d1beec8c0042362d99a69024f9b684ebdcd0caa50939da376447313a07046fcdf842343c0035fe1e1784f30c170b
7
+ data.tar.gz: eb184a5c3db1b343b70dc19d0f1c7636f96f4af79206e700e17f36651f8174ddf1454d1721977fd01f29682e6599cc6f70e0006c5e1ba581845da90c9dd1a8c7
@@ -1195,7 +1195,7 @@
1195
1195
  var warning = emptyFunction;
1196
1196
 
1197
1197
  if (false) {
1198
- warning = function warning(condition, format) {
1198
+ warning = function (condition, format) {
1199
1199
  for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1200
1200
  args[_key - 2] = arguments[_key];
1201
1201
  }
@@ -1242,7 +1242,6 @@
1242
1242
  * LICENSE file in the root directory of this source tree. An additional grant
1243
1243
  * of patent rights can be found in the PATENTS file in the same directory.
1244
1244
  *
1245
- *
1246
1245
  */
1247
1246
 
1248
1247
  function makeEmptyFunction(arg) {
@@ -1256,7 +1255,7 @@
1256
1255
  * primarily useful idiomatically for overridable function endpoints which
1257
1256
  * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
1258
1257
  */
1259
- var emptyFunction = function emptyFunction() {};
1258
+ function emptyFunction() {}
1260
1259
 
1261
1260
  emptyFunction.thatReturns = makeEmptyFunction;
1262
1261
  emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
@@ -2140,11 +2139,11 @@
2140
2139
  * because of Facebook's testing infrastructure.
2141
2140
  */
2142
2141
  if (performance.now) {
2143
- performanceNow = function performanceNow() {
2142
+ performanceNow = function () {
2144
2143
  return performance.now();
2145
2144
  };
2146
2145
  } else {
2147
- performanceNow = function performanceNow() {
2146
+ performanceNow = function () {
2148
2147
  return Date.now();
2149
2148
  };
2150
2149
  }
@@ -2995,7 +2994,7 @@
2995
2994
  * @param {object} obj
2996
2995
  * @return {object}
2997
2996
  */
2998
- var keyMirror = function keyMirror(obj) {
2997
+ var keyMirror = function (obj) {
2999
2998
  var ret = {};
3000
2999
  var key;
3001
3000
  !(obj instanceof Object && !Array.isArray(obj)) ? false ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;
@@ -3065,7 +3064,7 @@
3065
3064
  * 'xa12' in that case. Resolve keys you want to use once at startup time, then
3066
3065
  * reuse those resolutions.
3067
3066
  */
3068
- var keyOf = function keyOf(oneKeyObj) {
3067
+ var keyOf = function (oneKeyObj) {
3069
3068
  var key;
3070
3069
  for (key in oneKeyObj) {
3071
3070
  if (!oneKeyObj.hasOwnProperty(key)) {
@@ -11529,7 +11528,6 @@
11529
11528
  * LICENSE file in the root directory of this source tree. An additional grant
11530
11529
  * of patent rights can be found in the PATENTS file in the same directory.
11531
11530
  *
11532
- *
11533
11531
  * @typechecks static-only
11534
11532
  */
11535
11533
 
@@ -11537,6 +11535,9 @@
11537
11535
 
11538
11536
  /**
11539
11537
  * Memoizes the return value of a function that accepts one string argument.
11538
+ *
11539
+ * @param {function} callback
11540
+ * @return {function}
11540
11541
  */
11541
11542
 
11542
11543
  function memoizeStringOnly(callback) {
@@ -16761,18 +16762,18 @@
16761
16762
  * @param {function} callback Callback function.
16762
16763
  * @return {object} Object with a `remove` method.
16763
16764
  */
16764
- listen: function listen(target, eventType, callback) {
16765
+ listen: function (target, eventType, callback) {
16765
16766
  if (target.addEventListener) {
16766
16767
  target.addEventListener(eventType, callback, false);
16767
16768
  return {
16768
- remove: function remove() {
16769
+ remove: function () {
16769
16770
  target.removeEventListener(eventType, callback, false);
16770
16771
  }
16771
16772
  };
16772
16773
  } else if (target.attachEvent) {
16773
16774
  target.attachEvent('on' + eventType, callback);
16774
16775
  return {
16775
- remove: function remove() {
16776
+ remove: function () {
16776
16777
  target.detachEvent('on' + eventType, callback);
16777
16778
  }
16778
16779
  };
@@ -16787,11 +16788,11 @@
16787
16788
  * @param {function} callback Callback function.
16788
16789
  * @return {object} Object with a `remove` method.
16789
16790
  */
16790
- capture: function capture(target, eventType, callback) {
16791
+ capture: function (target, eventType, callback) {
16791
16792
  if (target.addEventListener) {
16792
16793
  target.addEventListener(eventType, callback, true);
16793
16794
  return {
16794
- remove: function remove() {
16795
+ remove: function () {
16795
16796
  target.removeEventListener(eventType, callback, true);
16796
16797
  }
16797
16798
  };
@@ -16805,7 +16806,7 @@
16805
16806
  }
16806
16807
  },
16807
16808
 
16808
- registerDefault: function registerDefault() {}
16809
+ registerDefault: function () {}
16809
16810
  };
16810
16811
 
16811
16812
  module.exports = EventListener;
@@ -17500,7 +17501,7 @@
17500
17501
  * LICENSE file in the root directory of this source tree. An additional grant
17501
17502
  * of patent rights can be found in the PATENTS file in the same directory.
17502
17503
  *
17503
- *
17504
+ * @typechecks
17504
17505
  */
17505
17506
 
17506
17507
  var isTextNode = __webpack_require__(140);
@@ -17509,6 +17510,10 @@
17509
17510
 
17510
17511
  /**
17511
17512
  * Checks if a given DOM node contains or is another DOM node.
17513
+ *
17514
+ * @param {?DOMNode} outerNode Outer DOM node.
17515
+ * @param {?DOMNode} innerNode Inner DOM node.
17516
+ * @return {boolean} True if `outerNode` contains or is `innerNode`.
17512
17517
  */
17513
17518
  function containsNode(outerNode, innerNode) {
17514
17519
  if (!outerNode || !innerNode) {
@@ -17519,7 +17524,7 @@
17519
17524
  return false;
17520
17525
  } else if (isTextNode(innerNode)) {
17521
17526
  return containsNode(outerNode, innerNode.parentNode);
17522
- } else if ('contains' in outerNode) {
17527
+ } else if (outerNode.contains) {
17523
17528
  return outerNode.contains(innerNode);
17524
17529
  } else if (outerNode.compareDocumentPosition) {
17525
17530
  return !!(outerNode.compareDocumentPosition(innerNode) & 16);
@@ -20243,37 +20248,34 @@
20243
20248
 
20244
20249
  render: function () {
20245
20250
  function render() {
20246
- if (this.props.totalPages && this.props.totalPages > 1) {
20247
- return _react2['default'].createElement(
20248
- 'nav',
20249
- { className: 'bpe--pagination' },
20250
- _react2['default'].createElement(
20251
- 'span',
20252
- { className: 'bpe--pagination--current-page' },
20253
- this.indexOfFirstRecord(),
20254
- ' - ',
20255
- this.indexOfLastRecord(),
20256
- ' von ',
20257
- this.props.totalEntries,
20258
- ' Ehrenämtern'
20259
- ),
20260
- _react2['default'].createElement(
20261
- 'ul',
20262
- { className: 'bpe--pagination--pager' },
20263
- _react2['default'].createElement(_PaginationPrevButton2['default'], {
20264
- currentPage: this.props.currentPage,
20265
- handleClick: this.previousPage
20266
- }),
20267
- _react2['default'].createElement(_PaginationNextButton2['default'], {
20268
- currentPage: this.props.currentPage,
20269
- handleClick: this.nextPage,
20270
- totalPages: this.props.totalPages
20271
- })
20272
- )
20273
- );
20274
- } else {
20275
- return null;
20251
+ if (this.props.totalEntries > 1) {
20252
+ var text = this.indexOfFirstRecord() + ' - ' + this.indexOfLastRecord() + ' von ' + this.props.totalEntries + ' Ehrenämtern';
20253
+ } else if (this.props.totalEntries == 1) {
20254
+ var text = '1 Ehrenamt gefunden';
20276
20255
  }
20256
+
20257
+ return _react2['default'].createElement(
20258
+ 'nav',
20259
+ { className: 'bpe--pagination' },
20260
+ _react2['default'].createElement(
20261
+ 'span',
20262
+ { className: 'bpe--pagination--current-page' },
20263
+ text
20264
+ ),
20265
+ _react2['default'].createElement(
20266
+ 'ul',
20267
+ { className: 'bpe--pagination--pager' },
20268
+ _react2['default'].createElement(_PaginationPrevButton2['default'], {
20269
+ currentPage: this.props.currentPage,
20270
+ handleClick: this.previousPage
20271
+ }),
20272
+ _react2['default'].createElement(_PaginationNextButton2['default'], {
20273
+ currentPage: this.props.currentPage,
20274
+ handleClick: this.nextPage,
20275
+ totalPages: this.props.totalPages
20276
+ })
20277
+ )
20278
+ );
20277
20279
  }
20278
20280
 
20279
20281
  return render;
@@ -35865,31 +35867,6 @@
35865
35867
  // shim for using process in browser
35866
35868
 
35867
35869
  var process = module.exports = {};
35868
-
35869
- // cached from whatever global is present so that test runners that stub it
35870
- // don't break things. But we need to wrap it in a try catch in case it is
35871
- // wrapped in strict mode code which doesn't define any globals. It's inside a
35872
- // function because try/catches deoptimize in certain engines.
35873
-
35874
- var cachedSetTimeout;
35875
- var cachedClearTimeout;
35876
-
35877
- (function () {
35878
- try {
35879
- cachedSetTimeout = setTimeout;
35880
- } catch (e) {
35881
- cachedSetTimeout = function () {
35882
- throw new Error('setTimeout is not defined');
35883
- }
35884
- }
35885
- try {
35886
- cachedClearTimeout = clearTimeout;
35887
- } catch (e) {
35888
- cachedClearTimeout = function () {
35889
- throw new Error('clearTimeout is not defined');
35890
- }
35891
- }
35892
- } ())
35893
35870
  var queue = [];
35894
35871
  var draining = false;
35895
35872
  var currentQueue;
@@ -35914,7 +35891,7 @@
35914
35891
  if (draining) {
35915
35892
  return;
35916
35893
  }
35917
- var timeout = cachedSetTimeout(cleanUpNextTick);
35894
+ var timeout = setTimeout(cleanUpNextTick);
35918
35895
  draining = true;
35919
35896
 
35920
35897
  var len = queue.length;
@@ -35931,7 +35908,7 @@
35931
35908
  }
35932
35909
  currentQueue = null;
35933
35910
  draining = false;
35934
- cachedClearTimeout(timeout);
35911
+ clearTimeout(timeout);
35935
35912
  }
35936
35913
 
35937
35914
  process.nextTick = function (fun) {
@@ -35943,7 +35920,7 @@
35943
35920
  }
35944
35921
  queue.push(new Item(fun, args));
35945
35922
  if (queue.length === 1 && !draining) {
35946
- cachedSetTimeout(drainQueue, 0);
35923
+ setTimeout(drainQueue, 0);
35947
35924
  }
35948
35925
  };
35949
35926
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betterplace_explorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.alpha25
4
+ version: 0.0.1.pre.alpha26
5
5
  platform: ruby
6
6
  authors:
7
7
  - betterplace developers