hexo-component-inferno 3.0.0 → 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.
- package/lib/schema/comment/giscus.json +105 -0
- package/lib/schema/schema/comment/giscus.json +105 -0
- package/lib/view/comment/changyan.js +11 -12
- package/lib/view/comment/disqus.js +11 -12
- package/lib/view/comment/disqusjs.js +11 -12
- package/lib/view/comment/facebook.js +11 -12
- package/lib/view/comment/giscus.js +198 -0
- package/lib/view/comment/gitalk.js +11 -12
- package/lib/view/comment/gitment.js +11 -12
- package/lib/view/comment/isso.js +11 -12
- package/lib/view/comment/livere.js +11 -12
- package/lib/view/comment/twikoo.js +11 -12
- package/lib/view/comment/utterances.js +12 -13
- package/lib/view/comment/valine.js +11 -12
- package/lib/view/comment/waline.js +11 -12
- package/lib/view/common/article_media.js +11 -12
- package/lib/view/donate/afdian.js +11 -12
- package/lib/view/donate/alipay.js +11 -12
- package/lib/view/donate/buymeacoffee.js +11 -12
- package/lib/view/donate/patreon.js +11 -12
- package/lib/view/donate/paypal.js +11 -12
- package/lib/view/donate/wechat.js +11 -12
- package/lib/view/misc/article_licensing.js +11 -12
- package/lib/view/misc/meta.js +12 -13
- package/lib/view/misc/open_graph.js +11 -12
- package/lib/view/misc/paginator.js +11 -12
- package/lib/view/misc/structured_data.js +11 -12
- package/lib/view/misc/web_app.js +16 -17
- package/lib/view/plugin/baidu_analytics.js +11 -12
- package/lib/view/plugin/bing_webmaster.js +11 -12
- package/lib/view/plugin/busuanzi.js +11 -12
- package/lib/view/plugin/cnzz.js +11 -12
- package/lib/view/plugin/cookie_consent.js +11 -12
- package/lib/view/plugin/gallery.js +11 -12
- package/lib/view/plugin/google_analytics.js +11 -12
- package/lib/view/plugin/hotjar.js +11 -12
- package/lib/view/plugin/katex.js +11 -12
- package/lib/view/plugin/mathjax.js +11 -12
- package/lib/view/plugin/outdated_browser.js +11 -12
- package/lib/view/plugin/progressbar.js +11 -12
- package/lib/view/plugin/statcounter.js +11 -12
- package/lib/view/plugin/twitter_conversion_tracking.js +11 -12
- package/lib/view/search/algolia.js +11 -12
- package/lib/view/search/baidu.js +11 -12
- package/lib/view/search/google_cse.js +11 -12
- package/lib/view/search/insight.js +11 -12
- package/lib/view/share/addthis.js +11 -12
- package/lib/view/share/addtoany.js +11 -12
- package/lib/view/share/bdshare.js +11 -12
- package/lib/view/share/sharejs.js +11 -12
- package/lib/view/share/sharethis.js +11 -12
- package/lib/view/widget/adsense.js +11 -12
- package/lib/view/widget/archives.js +11 -12
- package/lib/view/widget/categories.js +11 -12
- package/lib/view/widget/followit.js +11 -12
- package/lib/view/widget/links.js +11 -12
- package/lib/view/widget/recent_posts.js +11 -12
- package/lib/view/widget/subscribe_email.js +11 -12
- package/lib/view/widget/tags.js +11 -12
- package/lib/view/widget/toc.js +14 -15
- package/lib/view/widget/toc.test.js +2 -2
- package/package.json +3 -2
|
@@ -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(
|
|
6
|
-
function _defineProperties(
|
|
7
|
-
function _createClass(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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
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(
|
|
12
|
-
function _assertThisInitialized(
|
|
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
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(
|
|
15
|
-
function _inherits(
|
|
16
|
-
function _setPrototypeOf(
|
|
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,12 +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
51
|
function Gitalk() {
|
|
53
52
|
_classCallCheck(this, Gitalk);
|
|
54
53
|
return _callSuper(this, Gitalk, arguments);
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
_inherits(Gitalk, _Component);
|
|
56
|
+
return _createClass(Gitalk, [{
|
|
57
57
|
key: "render",
|
|
58
58
|
value: function render() {
|
|
59
59
|
var _this$props = this.props,
|
|
@@ -95,7 +95,6 @@ var Gitalk = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
})], 4);
|
|
96
96
|
}
|
|
97
97
|
}]);
|
|
98
|
-
return Gitalk;
|
|
99
98
|
}(Component);
|
|
100
99
|
/**
|
|
101
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(
|
|
6
|
-
function _defineProperties(
|
|
7
|
-
function _createClass(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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
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(
|
|
12
|
-
function _assertThisInitialized(
|
|
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
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(
|
|
15
|
-
function _inherits(
|
|
16
|
-
function _setPrototypeOf(
|
|
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,12 +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
44
|
function Gitment() {
|
|
46
45
|
_classCallCheck(this, Gitment);
|
|
47
46
|
return _callSuper(this, Gitment, arguments);
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
_inherits(Gitment, _Component);
|
|
49
|
+
return _createClass(Gitment, [{
|
|
50
50
|
key: "render",
|
|
51
51
|
value: function render() {
|
|
52
52
|
var _this$props = this.props,
|
|
@@ -77,7 +77,6 @@ var Gitment = /*#__PURE__*/function (_Component) {
|
|
|
77
77
|
})], 4);
|
|
78
78
|
}
|
|
79
79
|
}]);
|
|
80
|
-
return Gitment;
|
|
81
80
|
}(Component);
|
|
82
81
|
/**
|
|
83
82
|
* Cacheable Gitment comment JSX component.
|
package/lib/view/comment/isso.js
CHANGED
|
@@ -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(
|
|
6
|
-
function _defineProperties(
|
|
7
|
-
function _createClass(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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
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(
|
|
12
|
-
function _assertThisInitialized(
|
|
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
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(
|
|
15
|
-
function _inherits(
|
|
16
|
-
function _setPrototypeOf(
|
|
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,12 +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
34
|
function Isso() {
|
|
36
35
|
_classCallCheck(this, Isso);
|
|
37
36
|
return _callSuper(this, Isso, arguments);
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
_inherits(Isso, _Component);
|
|
39
|
+
return _createClass(Isso, [{
|
|
40
40
|
key: "render",
|
|
41
41
|
value: function render() {
|
|
42
42
|
var url = this.props.url;
|
|
@@ -51,7 +51,6 @@ var Isso = /*#__PURE__*/function (_Component) {
|
|
|
51
51
|
})], 4);
|
|
52
52
|
}
|
|
53
53
|
}]);
|
|
54
|
-
return Isso;
|
|
55
54
|
}(Component);
|
|
56
55
|
/**
|
|
57
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(
|
|
6
|
-
function _defineProperties(
|
|
7
|
-
function _createClass(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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
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(
|
|
12
|
-
function _assertThisInitialized(
|
|
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
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(
|
|
15
|
-
function _inherits(
|
|
16
|
-
function _setPrototypeOf(
|
|
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,12 +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
34
|
function LiveRe() {
|
|
36
35
|
_classCallCheck(this, LiveRe);
|
|
37
36
|
return _callSuper(this, LiveRe, arguments);
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
_inherits(LiveRe, _Component);
|
|
39
|
+
return _createClass(LiveRe, [{
|
|
40
40
|
key: "render",
|
|
41
41
|
value: function render() {
|
|
42
42
|
var uid = this.props.uid;
|
|
@@ -55,7 +55,6 @@ var LiveRe = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}]);
|
|
58
|
-
return LiveRe;
|
|
59
58
|
}(Component);
|
|
60
59
|
/**
|
|
61
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(
|
|
6
|
-
function _defineProperties(
|
|
7
|
-
function _createClass(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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
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(
|
|
12
|
-
function _assertThisInitialized(
|
|
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
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(
|
|
15
|
-
function _inherits(
|
|
16
|
-
function _setPrototypeOf(
|
|
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,12 +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
39
|
function Twikoo() {
|
|
41
40
|
_classCallCheck(this, Twikoo);
|
|
42
41
|
return _callSuper(this, Twikoo, arguments);
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
_inherits(Twikoo, _Component);
|
|
44
|
+
return _createClass(Twikoo, [{
|
|
45
45
|
key: "render",
|
|
46
46
|
value: function render() {
|
|
47
47
|
var _this$props = this.props,
|
|
@@ -61,7 +61,6 @@ var Twikoo = /*#__PURE__*/function (_Component) {
|
|
|
61
61
|
})], 4);
|
|
62
62
|
}
|
|
63
63
|
}]);
|
|
64
|
-
return Twikoo;
|
|
65
64
|
}(Component);
|
|
66
65
|
/**
|
|
67
66
|
* Cacheable Twikoo comment JSX component.
|
|
@@ -4,19 +4,19 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
var _inferno = require("inferno");
|
|
5
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
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(
|
|
8
|
-
function _classCallCheck(
|
|
9
|
-
function _defineProperties(
|
|
10
|
-
function _createClass(
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
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
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
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(
|
|
15
|
-
function _assertThisInitialized(
|
|
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
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(
|
|
18
|
-
function _inherits(
|
|
19
|
-
function _setPrototypeOf(
|
|
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
20
|
/**
|
|
21
21
|
* Utterances comment JSX component.
|
|
22
22
|
* @module view/comment/utterances
|
|
@@ -39,12 +39,12 @@ var _require2 = require('../../util/cache'),
|
|
|
39
39
|
* theme="******" />
|
|
40
40
|
*/
|
|
41
41
|
var Utterances = /*#__PURE__*/function (_Component) {
|
|
42
|
-
_inherits(Utterances, _Component);
|
|
43
42
|
function Utterances() {
|
|
44
43
|
_classCallCheck(this, Utterances);
|
|
45
44
|
return _callSuper(this, Utterances, arguments);
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
_inherits(Utterances, _Component);
|
|
47
|
+
return _createClass(Utterances, [{
|
|
48
48
|
key: "render",
|
|
49
49
|
value: function render() {
|
|
50
50
|
var _this$props = this.props,
|
|
@@ -78,7 +78,6 @@ var Utterances = /*#__PURE__*/function (_Component) {
|
|
|
78
78
|
})));
|
|
79
79
|
}
|
|
80
80
|
}]);
|
|
81
|
-
return Utterances;
|
|
82
81
|
}(Component);
|
|
83
82
|
/**
|
|
84
83
|
* Cacheable Utterances comment JSX component.
|