artalk 2.3.1 → 2.3.2
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 +5 -5
- package/dist/Artalk.iife.js +1 -1
- package/dist/Artalk.js +1 -1
- package/dist/ArtalkLite.es.js +5 -5
- package/dist/ArtalkLite.iife.js +1 -1
- package/dist/ArtalkLite.js +1 -1
- package/package.json +1 -1
- package/src/editor/plugs/upload-plug.ts +1 -1
- package/src/lib/ui.ts +3 -2
- package/types/artalk-config.d.ts +1 -1
package/dist/ArtalkLite.es.js
CHANGED
|
@@ -966,7 +966,7 @@ function mergeDeep(target, source) {
|
|
|
966
966
|
return target;
|
|
967
967
|
}
|
|
968
968
|
function showLoading(parentElem, conf) {
|
|
969
|
-
let $loading = parentElem.querySelector(".atk-loading");
|
|
969
|
+
let $loading = parentElem.querySelector(":scope > .atk-loading");
|
|
970
970
|
if (!$loading) {
|
|
971
971
|
$loading = createElement(`<div class="atk-loading atk-fade-in" style="display: none;">
|
|
972
972
|
<div class="atk-loading-spinner">
|
|
@@ -987,7 +987,7 @@ function showLoading(parentElem, conf) {
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
function hideLoading(parentElem) {
|
|
990
|
-
const $loading = parentElem.querySelector(".atk-loading");
|
|
990
|
+
const $loading = parentElem.querySelector(":scope > .atk-loading");
|
|
991
991
|
if ($loading)
|
|
992
992
|
$loading.style.display = "none";
|
|
993
993
|
}
|
|
@@ -2749,7 +2749,7 @@ class UploadPlug extends EditorPlug {
|
|
|
2749
2749
|
if (!this.ctx.conf.imgUploader) {
|
|
2750
2750
|
resp = yield this.ctx.getApi().imgUpload(file);
|
|
2751
2751
|
} else {
|
|
2752
|
-
resp = yield this.ctx.conf.imgUploader(file);
|
|
2752
|
+
resp = { img_url: yield this.ctx.conf.imgUploader(file) };
|
|
2753
2753
|
}
|
|
2754
2754
|
} catch (err) {
|
|
2755
2755
|
console.error(err);
|
|
@@ -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.2"))
|
|
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.2"}">Artalk</a>`;
|
|
4652
4652
|
}
|
|
4653
4653
|
initListActionBtn() {
|
|
4654
4654
|
this.$openSidebarBtn = this.$el.querySelector('[data-action="open-sidebar"]');
|