artalk 2.3.2 → 2.3.3
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/dist/Artalk.es.js +7 -7
- package/dist/Artalk.iife.js +1 -1
- package/dist/Artalk.js +1 -1
- package/dist/ArtalkLite.es.js +7 -7
- package/dist/ArtalkLite.iife.js +1 -1
- package/dist/ArtalkLite.js +1 -1
- package/package.json +1 -1
- package/src/editor/plugs/emoticons-plug.ts +2 -2
- package/src/i18n/zh-CN.ts +1 -1
package/dist/Artalk.es.js
CHANGED
|
@@ -112,7 +112,7 @@ const zhCN = {
|
|
|
112
112
|
noComment: "\u300C\u6B64\u65F6\u65E0\u58F0\u80DC\u6709\u58F0\u300D",
|
|
113
113
|
send: "\u53D1\u9001\u8BC4\u8BBA",
|
|
114
114
|
nick: "\u6635\u79F0",
|
|
115
|
-
email: "\u90AE\
|
|
115
|
+
email: "\u90AE\u7BB1",
|
|
116
116
|
link: "\u7F51\u5740",
|
|
117
117
|
emoticon: "\u8868\u60C5",
|
|
118
118
|
preview: "\u9884\u89C8",
|
|
@@ -3008,7 +3008,7 @@ function showNotify(wrapElem, msg, type) {
|
|
|
3008
3008
|
window.clearTimeout(timeoutFn);
|
|
3009
3009
|
});
|
|
3010
3010
|
}
|
|
3011
|
-
function playFadeAnim(elem, after, type
|
|
3011
|
+
function playFadeAnim(elem, after, type) {
|
|
3012
3012
|
elem.classList.add(`atk-fade-${type}`);
|
|
3013
3013
|
const onAnimEnded = () => {
|
|
3014
3014
|
elem.classList.remove(`atk-fade-${type}`);
|
|
@@ -4611,7 +4611,7 @@ class EmoticonsPlug extends EditorPlug {
|
|
|
4611
4611
|
this.openGrp(0);
|
|
4612
4612
|
}
|
|
4613
4613
|
openGrp(index) {
|
|
4614
|
-
var _a;
|
|
4614
|
+
var _a, _b, _c;
|
|
4615
4615
|
Array.from(this.$grpWrap.children).forEach((item) => {
|
|
4616
4616
|
const el = item;
|
|
4617
4617
|
if (el.getAttribute("data-index") !== String(index)) {
|
|
@@ -4620,8 +4620,8 @@ class EmoticonsPlug extends EditorPlug {
|
|
|
4620
4620
|
el.style.display = "";
|
|
4621
4621
|
}
|
|
4622
4622
|
});
|
|
4623
|
-
this.$grpSwitcher.querySelectorAll("span.active").forEach((item) => item.classList.remove("active"));
|
|
4624
|
-
(
|
|
4623
|
+
(_a = this.$grpSwitcher) == null ? void 0 : _a.querySelectorAll("span.active").forEach((item) => item.classList.remove("active"));
|
|
4624
|
+
(_c = (_b = this.$grpSwitcher) == null ? void 0 : _b.querySelector(`span[data-index="${index}"]`)) == null ? void 0 : _c.classList.add("active");
|
|
4625
4625
|
this.changeListHeight();
|
|
4626
4626
|
}
|
|
4627
4627
|
changeListHeight() {
|
|
@@ -6333,7 +6333,7 @@ class ListLite extends Component {
|
|
|
6333
6333
|
}
|
|
6334
6334
|
this.data = data;
|
|
6335
6335
|
const feMinVersion = ((_a = data.api_version) == null ? void 0 : _a.fe_min_version) || "0.0.0";
|
|
6336
|
-
if (this.ctx.conf.versionCheck && this.versionCheck("frontend", feMinVersion, "2.3.
|
|
6336
|
+
if (this.ctx.conf.versionCheck && this.versionCheck("frontend", feMinVersion, "2.3.3"))
|
|
6337
6337
|
return;
|
|
6338
6338
|
if (this.ctx.conf.versionCheck && this.versionCheck("backend", backendMinVersion, (_b = data.api_version) == null ? void 0 : _b.version))
|
|
6339
6339
|
return;
|
|
@@ -6616,7 +6616,7 @@ class List extends ListLite {
|
|
|
6616
6616
|
if (this.ctx.conf.listSort) {
|
|
6617
6617
|
this.initDropdown();
|
|
6618
6618
|
}
|
|
6619
|
-
this.$el.querySelector(".atk-copyright").innerHTML = `Powered By <a href="https://artalk.js.org" target="_blank" title="Artalk v${"2.3.
|
|
6619
|
+
this.$el.querySelector(".atk-copyright").innerHTML = `Powered By <a href="https://artalk.js.org" target="_blank" title="Artalk v${"2.3.3"}">Artalk</a>`;
|
|
6620
6620
|
}
|
|
6621
6621
|
initListActionBtn() {
|
|
6622
6622
|
this.$openSidebarBtn = this.$el.querySelector('[data-action="open-sidebar"]');
|