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/ArtalkLite.es.js
CHANGED
|
@@ -113,7 +113,7 @@ const zhCN = {
|
|
|
113
113
|
noComment: "\u300C\u6B64\u65F6\u65E0\u58F0\u80DC\u6709\u58F0\u300D",
|
|
114
114
|
send: "\u53D1\u9001\u8BC4\u8BBA",
|
|
115
115
|
nick: "\u6635\u79F0",
|
|
116
|
-
email: "\u90AE\
|
|
116
|
+
email: "\u90AE\u7BB1",
|
|
117
117
|
link: "\u7F51\u5740",
|
|
118
118
|
emoticon: "\u8868\u60C5",
|
|
119
119
|
preview: "\u9884\u89C8",
|
|
@@ -1035,7 +1035,7 @@ function showNotify(wrapElem, msg, type) {
|
|
|
1035
1035
|
window.clearTimeout(timeoutFn);
|
|
1036
1036
|
});
|
|
1037
1037
|
}
|
|
1038
|
-
function playFadeAnim(elem, after, type
|
|
1038
|
+
function playFadeAnim(elem, after, type) {
|
|
1039
1039
|
elem.classList.add(`atk-fade-${type}`);
|
|
1040
1040
|
const onAnimEnded = () => {
|
|
1041
1041
|
elem.classList.remove(`atk-fade-${type}`);
|
|
@@ -2643,7 +2643,7 @@ class EmoticonsPlug extends EditorPlug {
|
|
|
2643
2643
|
this.openGrp(0);
|
|
2644
2644
|
}
|
|
2645
2645
|
openGrp(index) {
|
|
2646
|
-
var _a;
|
|
2646
|
+
var _a, _b, _c;
|
|
2647
2647
|
Array.from(this.$grpWrap.children).forEach((item) => {
|
|
2648
2648
|
const el = item;
|
|
2649
2649
|
if (el.getAttribute("data-index") !== String(index)) {
|
|
@@ -2652,8 +2652,8 @@ class EmoticonsPlug extends EditorPlug {
|
|
|
2652
2652
|
el.style.display = "";
|
|
2653
2653
|
}
|
|
2654
2654
|
});
|
|
2655
|
-
this.$grpSwitcher.querySelectorAll("span.active").forEach((item) => item.classList.remove("active"));
|
|
2656
|
-
(
|
|
2655
|
+
(_a = this.$grpSwitcher) == null ? void 0 : _a.querySelectorAll("span.active").forEach((item) => item.classList.remove("active"));
|
|
2656
|
+
(_c = (_b = this.$grpSwitcher) == null ? void 0 : _b.querySelector(`span[data-index="${index}"]`)) == null ? void 0 : _c.classList.add("active");
|
|
2657
2657
|
this.changeListHeight();
|
|
2658
2658
|
}
|
|
2659
2659
|
changeListHeight() {
|
|
@@ -4365,7 +4365,7 @@ class ListLite extends Component {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
this.data = data;
|
|
4367
4367
|
const feMinVersion = ((_a = data.api_version) == null ? void 0 : _a.fe_min_version) || "0.0.0";
|
|
4368
|
-
if (this.ctx.conf.versionCheck && this.versionCheck("frontend", feMinVersion, "2.3.
|
|
4368
|
+
if (this.ctx.conf.versionCheck && this.versionCheck("frontend", feMinVersion, "2.3.3"))
|
|
4369
4369
|
return;
|
|
4370
4370
|
if (this.ctx.conf.versionCheck && this.versionCheck("backend", backendMinVersion, (_b = data.api_version) == null ? void 0 : _b.version))
|
|
4371
4371
|
return;
|
|
@@ -4648,7 +4648,7 @@ class List extends ListLite {
|
|
|
4648
4648
|
if (this.ctx.conf.listSort) {
|
|
4649
4649
|
this.initDropdown();
|
|
4650
4650
|
}
|
|
4651
|
-
this.$el.querySelector(".atk-copyright").innerHTML = `Powered By <a href="https://artalk.js.org" target="_blank" title="Artalk v${"2.3.
|
|
4651
|
+
this.$el.querySelector(".atk-copyright").innerHTML = `Powered By <a href="https://artalk.js.org" target="_blank" title="Artalk v${"2.3.3"}">Artalk</a>`;
|
|
4652
4652
|
}
|
|
4653
4653
|
initListActionBtn() {
|
|
4654
4654
|
this.$openSidebarBtn = this.$el.querySelector('[data-action="open-sidebar"]');
|