hexo-component-inferno 2.0.4 → 3.1.0

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.
Files changed (64) hide show
  1. package/lib/hexo/filter/locals.js +2 -2
  2. package/lib/hexo/helper/cdn.test.js +7 -7
  3. package/lib/schema/comment/giscus.json +105 -0
  4. package/lib/schema/schema/comment/giscus.json +105 -0
  5. package/lib/view/comment/changyan.js +14 -16
  6. package/lib/view/comment/disqus.js +14 -16
  7. package/lib/view/comment/disqusjs.js +14 -16
  8. package/lib/view/comment/facebook.js +14 -16
  9. package/lib/view/comment/giscus.js +198 -0
  10. package/lib/view/comment/gitalk.js +14 -16
  11. package/lib/view/comment/gitment.js +14 -16
  12. package/lib/view/comment/isso.js +14 -16
  13. package/lib/view/comment/livere.js +14 -16
  14. package/lib/view/comment/twikoo.js +15 -17
  15. package/lib/view/comment/utterances.js +15 -17
  16. package/lib/view/comment/valine.js +14 -16
  17. package/lib/view/comment/waline.js +14 -16
  18. package/lib/view/common/article_media.js +14 -16
  19. package/lib/view/donate/afdian.js +14 -16
  20. package/lib/view/donate/alipay.js +14 -16
  21. package/lib/view/donate/buymeacoffee.js +14 -16
  22. package/lib/view/donate/patreon.js +14 -16
  23. package/lib/view/donate/paypal.js +14 -16
  24. package/lib/view/donate/wechat.js +14 -16
  25. package/lib/view/misc/article_licensing.js +14 -16
  26. package/lib/view/misc/meta.js +15 -17
  27. package/lib/view/misc/open_graph.js +14 -16
  28. package/lib/view/misc/paginator.js +14 -16
  29. package/lib/view/misc/structured_data.js +14 -16
  30. package/lib/view/misc/web_app.js +19 -21
  31. package/lib/view/plugin/baidu_analytics.js +14 -16
  32. package/lib/view/plugin/bing_webmaster.js +14 -16
  33. package/lib/view/plugin/busuanzi.js +14 -16
  34. package/lib/view/plugin/cnzz.js +14 -16
  35. package/lib/view/plugin/cookie_consent.js +14 -16
  36. package/lib/view/plugin/gallery.js +14 -16
  37. package/lib/view/plugin/google_analytics.js +14 -16
  38. package/lib/view/plugin/hotjar.js +14 -16
  39. package/lib/view/plugin/katex.js +14 -16
  40. package/lib/view/plugin/mathjax.js +14 -16
  41. package/lib/view/plugin/outdated_browser.js +14 -16
  42. package/lib/view/plugin/progressbar.js +14 -16
  43. package/lib/view/plugin/statcounter.js +14 -16
  44. package/lib/view/plugin/twitter_conversion_tracking.js +14 -16
  45. package/lib/view/search/algolia.js +14 -16
  46. package/lib/view/search/baidu.js +14 -16
  47. package/lib/view/search/google_cse.js +14 -16
  48. package/lib/view/search/insight.js +14 -16
  49. package/lib/view/share/addthis.js +14 -16
  50. package/lib/view/share/addtoany.js +14 -16
  51. package/lib/view/share/bdshare.js +14 -16
  52. package/lib/view/share/sharejs.js +14 -16
  53. package/lib/view/share/sharethis.js +14 -16
  54. package/lib/view/widget/adsense.js +14 -16
  55. package/lib/view/widget/archives.js +15 -17
  56. package/lib/view/widget/categories.js +14 -16
  57. package/lib/view/widget/followit.js +14 -16
  58. package/lib/view/widget/links.js +14 -16
  59. package/lib/view/widget/recent_posts.js +14 -16
  60. package/lib/view/widget/subscribe_email.js +14 -16
  61. package/lib/view/widget/tags.js +14 -16
  62. package/lib/view/widget/toc.js +17 -19
  63. package/lib/view/widget/toc.test.js +2 -2
  64. package/package.json +30 -28
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ var _inferno = require("inferno");
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
15
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
18
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
19
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
20
+ /**
21
+ * Giscus comment JSX component.
22
+ * @module view/comment/giscus
23
+ */
24
+ var _require = require('inferno'),
25
+ Component = _require.Component;
26
+ var _require2 = require('../../util/cache'),
27
+ cacheComponent = _require2.cacheComponent;
28
+
29
+ /**
30
+ * Giscus comment JSX component.
31
+ *
32
+ * @see https://giscus.app/
33
+ * @example
34
+ * <Giscus
35
+ * repo="usr/repo"
36
+ * repoId="X_xxxxxxxxxx"
37
+ * category="******"
38
+ * categoryId="XXX_xxxxxxxxxxxxxxxx"
39
+ * mapping="******"
40
+ * strict={0}
41
+ * reactionsEnabled={0}
42
+ * emitMetadata={0}
43
+ * inputPosition="******"
44
+ * theme="******"
45
+ * lang="******"
46
+ * lazy="******" />
47
+ */
48
+ var Giscus = /*#__PURE__*/function (_Component) {
49
+ function Giscus() {
50
+ _classCallCheck(this, Giscus);
51
+ return _callSuper(this, Giscus, arguments);
52
+ }
53
+ _inherits(Giscus, _Component);
54
+ return _createClass(Giscus, [{
55
+ key: "render",
56
+ value: function render() {
57
+ var _this$props = this.props,
58
+ repo = _this$props.repo,
59
+ repoId = _this$props.repoId,
60
+ category = _this$props.category,
61
+ categoryId = _this$props.categoryId,
62
+ mapping = _this$props.mapping,
63
+ term = _this$props.term,
64
+ strict = _this$props.strict,
65
+ reactionsEnabled = _this$props.reactionsEnabled,
66
+ emitMetadata = _this$props.emitMetadata,
67
+ inputPosition = _this$props.inputPosition,
68
+ theme = _this$props.theme,
69
+ customThemeCss = _this$props.customThemeCss,
70
+ lang = _this$props.lang,
71
+ lazy = _this$props.lazy;
72
+ if (!repo || !repoId || !categoryId) {
73
+ return (0, _inferno.createVNode)(1, "div", "notification is-danger", [(0, _inferno.createTextVNode)("You forgot to set the "), (0, _inferno.createVNode)(1, "code", null, "repo", 16), (0, _inferno.createTextVNode)(", "), (0, _inferno.createVNode)(1, "code", null, "repoId", 16), (0, _inferno.createTextVNode)(", or "), (0, _inferno.createVNode)(1, "code", null, "categoryId", 16), (0, _inferno.createTextVNode)(' '), (0, _inferno.createTextVNode)("for Giscus. Please set it in "), (0, _inferno.createVNode)(1, "code", null, "_config.yml", 16), (0, _inferno.createTextVNode)(".")], 0);
74
+ }
75
+ if ((mapping === 'specific' || mapping === 'number') && !term) {
76
+ return (0, _inferno.createVNode)(1, "div", "notification is-danger", [(0, _inferno.createTextVNode)("You set "), (0, _inferno.createVNode)(1, "code", null, "mapping", 16), (0, _inferno.createTextVNode)(" to "), (0, _inferno.createVNode)(1, "code", null, "specific", 16), (0, _inferno.createTextVNode)(" or "), (0, _inferno.createVNode)(1, "code", null, "number", 16), (0, _inferno.createTextVNode)(", but did not set "), (0, _inferno.createVNode)(1, "code", null, "term", 16), (0, _inferno.createTextVNode)(" for Giscus. Please set "), (0, _inferno.createVNode)(1, "code", null, "term", 16), (0, _inferno.createTextVNode)(" in "), (0, _inferno.createVNode)(1, "code", null, "_config.yml", 16), (0, _inferno.createTextVNode)(".")], 4);
77
+ }
78
+ var config = {
79
+ repo: repo
80
+ };
81
+ if (category) {
82
+ config['data-category'] = category;
83
+ } else {
84
+ config['data-category'] = 'Announcements';
85
+ }
86
+ if (mapping) {
87
+ config['data-mapping'] = mapping;
88
+ } else {
89
+ config['data-mapping'] = 'pathname';
90
+ }
91
+ if (strict) {
92
+ config['data-strict'] = 1;
93
+ } else {
94
+ config['data-strict'] = 0;
95
+ }
96
+ if (reactionsEnabled) {
97
+ config['data-reactions-enabled'] = 1;
98
+ } else {
99
+ config['data-reactions-enabled'] = 0;
100
+ }
101
+ if (emitMetadata) {
102
+ config['data-emit-metadata'] = 1;
103
+ } else {
104
+ config['data-emit-metadata'] = 0;
105
+ }
106
+ if (inputPosition) {
107
+ config['data-input-position'] = inputPosition;
108
+ } else {
109
+ config['data-input-position'] = 'top';
110
+ }
111
+ if (theme) {
112
+ if (theme === 'custom') {
113
+ if (customThemeCss) {
114
+ config['data-theme'] = customThemeCss;
115
+ } else {
116
+ return (0, _inferno.createVNode)(1, "div", "notification is-danger", [(0, _inferno.createTextVNode)("You set "), (0, _inferno.createVNode)(1, "code", null, "theme", 16), (0, _inferno.createTextVNode)(" to "), (0, _inferno.createVNode)(1, "code", null, "custom", 16), (0, _inferno.createTextVNode)(", but did not apply a"), (0, _inferno.createTextVNode)(' '), (0, _inferno.createVNode)(1, "code", null, "customThemeCss", 16), (0, _inferno.createTextVNode)(" for Giscus. Please set it in "), (0, _inferno.createVNode)(1, "code", null, "_config.yml", 16), (0, _inferno.createTextVNode)(".")], 0);
117
+ }
118
+ } else {
119
+ config['data-theme'] = theme;
120
+ }
121
+ } else {
122
+ config['data-theme'] = 'noborder_light';
123
+ }
124
+ if (lang) {
125
+ config['data-lang'] = lang;
126
+ } else {
127
+ config['data-lang'] = 'en';
128
+ }
129
+ if (lazy) {
130
+ config['data-loading'] = 'lazy';
131
+ }
132
+ return (0, _inferno.normalizeProps)((0, _inferno.createVNode)(1, "script", null, null, 1, _objectSpread(_objectSpread({
133
+ "src": "https://giscus.app/client.js"
134
+ }, config), {}, {
135
+ "crossorigin": "anonymous",
136
+ "async": true
137
+ })));
138
+ }
139
+ }]);
140
+ }(Component);
141
+ /**
142
+ * Cacheable Giscus comment JSX component.
143
+ * <p>
144
+ * This class is supposed to be used in combination with the <code>locals</code> hexo filter
145
+ * ({@link module:hexo/filter/locals}).
146
+ *
147
+ * @see module:util/cache.cacheComponent
148
+ * @example
149
+ * <Giscus.Cacheable
150
+ * comment={{
151
+ * repo: "usr/repo"
152
+ * repoId: "X_xxxxxxxxxx"
153
+ * category: "******"
154
+ * categoryId: "XXX_xxxxxxxxxxxxxxxx"
155
+ * mapping: "******"
156
+ * strict: {false}
157
+ * reactionsEnabled: {false}
158
+ * emitMetadata: {false}
159
+ * inputPosition: "******"
160
+ * theme: "******"
161
+ * lang: "******"
162
+ * lazy: "******"
163
+ * }} />
164
+ */
165
+ Giscus.Cacheable = cacheComponent(Giscus, 'comment.giscus', function (props) {
166
+ var _props$comment = props.comment,
167
+ repo = _props$comment.repo,
168
+ repoId = _props$comment.repoId,
169
+ category = _props$comment.category,
170
+ categoryId = _props$comment.categoryId,
171
+ mapping = _props$comment.mapping,
172
+ term = _props$comment.term,
173
+ strict = _props$comment.strict,
174
+ reactionsEnabled = _props$comment.reactionsEnabled,
175
+ emitMetadata = _props$comment.emitMetadata,
176
+ inputPosition = _props$comment.inputPosition,
177
+ theme = _props$comment.theme,
178
+ customThemeCss = _props$comment.customThemeCss,
179
+ lang = _props$comment.lang,
180
+ lazy = _props$comment.lazy;
181
+ return {
182
+ repo: repo,
183
+ repoId: repoId,
184
+ category: category,
185
+ categoryId: categoryId,
186
+ mapping: mapping,
187
+ term: term,
188
+ strict: strict,
189
+ reactionsEnabled: reactionsEnabled,
190
+ emitMetadata: emitMetadata,
191
+ inputPosition: inputPosition,
192
+ theme: theme,
193
+ customThemeCss: customThemeCss,
194
+ lang: lang,
195
+ lazy: lazy
196
+ };
197
+ });
198
+ module.exports = Giscus;
@@ -2,18 +2,18 @@
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  var _inferno = require("inferno");
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  /**
18
18
  * Gitalk comment JSX component.
19
19
  * @module view/comment/gitalk
@@ -48,13 +48,12 @@ var _require2 = require('../../util/cache'),
48
48
  * cssUrl="/path/to/gitalk.css" />
49
49
  */
50
50
  var Gitalk = /*#__PURE__*/function (_Component) {
51
- _inherits(Gitalk, _Component);
52
- var _super = _createSuper(Gitalk);
53
51
  function Gitalk() {
54
52
  _classCallCheck(this, Gitalk);
55
- return _super.apply(this, arguments);
53
+ return _callSuper(this, Gitalk, arguments);
56
54
  }
57
- _createClass(Gitalk, [{
55
+ _inherits(Gitalk, _Component);
56
+ return _createClass(Gitalk, [{
58
57
  key: "render",
59
58
  value: function render() {
60
59
  var _this$props = this.props,
@@ -96,7 +95,6 @@ var Gitalk = /*#__PURE__*/function (_Component) {
96
95
  })], 4);
97
96
  }
98
97
  }]);
99
- return Gitalk;
100
98
  }(Component);
101
99
  /**
102
100
  * Cacheable Gitalk comment JSX component.
@@ -2,18 +2,18 @@
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  var _inferno = require("inferno");
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  /**
18
18
  * Gitment comment JSX component.
19
19
  * @module view/comment/gitment
@@ -41,13 +41,12 @@ var _require2 = require('../../util/cache'),
41
41
  * maxCommentHeight={250} />
42
42
  */
43
43
  var Gitment = /*#__PURE__*/function (_Component) {
44
- _inherits(Gitment, _Component);
45
- var _super = _createSuper(Gitment);
46
44
  function Gitment() {
47
45
  _classCallCheck(this, Gitment);
48
- return _super.apply(this, arguments);
46
+ return _callSuper(this, Gitment, arguments);
49
47
  }
50
- _createClass(Gitment, [{
48
+ _inherits(Gitment, _Component);
49
+ return _createClass(Gitment, [{
51
50
  key: "render",
52
51
  value: function render() {
53
52
  var _this$props = this.props,
@@ -78,7 +77,6 @@ var Gitment = /*#__PURE__*/function (_Component) {
78
77
  })], 4);
79
78
  }
80
79
  }]);
81
- return Gitment;
82
80
  }(Component);
83
81
  /**
84
82
  * Cacheable Gitment comment JSX component.
@@ -2,18 +2,18 @@
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  var _inferno = require("inferno");
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  /**
18
18
  * Isso comment JSX component.
19
19
  * @module view/comment/isso
@@ -31,13 +31,12 @@ var _require2 = require('../../util/cache'),
31
31
  * <Isso url="/path/to/isso/server" />
32
32
  */
33
33
  var Isso = /*#__PURE__*/function (_Component) {
34
- _inherits(Isso, _Component);
35
- var _super = _createSuper(Isso);
36
34
  function Isso() {
37
35
  _classCallCheck(this, Isso);
38
- return _super.apply(this, arguments);
36
+ return _callSuper(this, Isso, arguments);
39
37
  }
40
- _createClass(Isso, [{
38
+ _inherits(Isso, _Component);
39
+ return _createClass(Isso, [{
41
40
  key: "render",
42
41
  value: function render() {
43
42
  var url = this.props.url;
@@ -52,7 +51,6 @@ var Isso = /*#__PURE__*/function (_Component) {
52
51
  })], 4);
53
52
  }
54
53
  }]);
55
- return Isso;
56
54
  }(Component);
57
55
  /**
58
56
  * Cacheable Isso comment JSX component.
@@ -2,18 +2,18 @@
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  var _inferno = require("inferno");
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  /**
18
18
  * LiveRe comment JSX component.
19
19
  * @module view/comment/livere
@@ -31,13 +31,12 @@ var _require2 = require('../../util/cache'),
31
31
  * <LiveRe uid="******" />
32
32
  */
33
33
  var LiveRe = /*#__PURE__*/function (_Component) {
34
- _inherits(LiveRe, _Component);
35
- var _super = _createSuper(LiveRe);
36
34
  function LiveRe() {
37
35
  _classCallCheck(this, LiveRe);
38
- return _super.apply(this, arguments);
36
+ return _callSuper(this, LiveRe, arguments);
39
37
  }
40
- _createClass(LiveRe, [{
38
+ _inherits(LiveRe, _Component);
39
+ return _createClass(LiveRe, [{
41
40
  key: "render",
42
41
  value: function render() {
43
42
  var uid = this.props.uid;
@@ -56,7 +55,6 @@ var LiveRe = /*#__PURE__*/function (_Component) {
56
55
  });
57
56
  }
58
57
  }]);
59
- return LiveRe;
60
58
  }(Component);
61
59
  /**
62
60
  * Cacheable LiveRe comment JSX component.
@@ -2,18 +2,18 @@
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  var _inferno = require("inferno");
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
14
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  /**
18
18
  * Twikoo comment JSX component.
19
19
  * @module view/comment/twikoo
@@ -36,13 +36,12 @@ var _require2 = require('../../util/cache'),
36
36
  * jsUrl="/path/to/Twikoo.js" />
37
37
  */
38
38
  var Twikoo = /*#__PURE__*/function (_Component) {
39
- _inherits(Twikoo, _Component);
40
- var _super = _createSuper(Twikoo);
41
39
  function Twikoo() {
42
40
  _classCallCheck(this, Twikoo);
43
- return _super.apply(this, arguments);
41
+ return _callSuper(this, Twikoo, arguments);
44
42
  }
45
- _createClass(Twikoo, [{
43
+ _inherits(Twikoo, _Component);
44
+ return _createClass(Twikoo, [{
46
45
  key: "render",
47
46
  value: function render() {
48
47
  var _this$props = this.props,
@@ -62,7 +61,6 @@ var Twikoo = /*#__PURE__*/function (_Component) {
62
61
  })], 4);
63
62
  }
64
63
  }]);
65
- return Twikoo;
66
64
  }(Component);
67
65
  /**
68
66
  * Cacheable Twikoo comment JSX component.
@@ -88,7 +86,7 @@ Twikoo.Cacheable = cacheComponent(Twikoo, 'comment.twikoo', function (props) {
88
86
  envId: comment.env_id,
89
87
  region: comment.region,
90
88
  lang: comment.lang || page.lang || page.language || config.language || 'zh-CN',
91
- jsUrl: helper.cdn('twikoo', '1.6.6', 'dist/twikoo.all.min.js')
89
+ jsUrl: helper.cdn('twikoo', '1.6.30', 'dist/twikoo.all.min.js')
92
90
  };
93
91
  });
94
92
  module.exports = Twikoo;