@jx3box/jx3box-common-ui 5.8.8 → 5.9.1
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/package.json +3 -3
- package/src/App.vue +6 -5
- package/src/interact/boxcoin_records.vue +2 -1
- package/src/single/Thx.vue +1 -1
- package/src/wiki/WikiComments.vue +16 -10
- package/src/wiki/WikiRevisions.vue +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.1",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.7.0",
|
|
34
|
-
"@jx3box/jx3box-common": "^7.2
|
|
34
|
+
"@jx3box/jx3box-common": "^7.3.2",
|
|
35
35
|
"@jx3box/jx3box-data": "^1.9.9",
|
|
36
|
-
"@jx3box/jx3box-editor": "^1.2
|
|
36
|
+
"@jx3box/jx3box-editor": "^1.3.2",
|
|
37
37
|
"axios": "^0.26.1",
|
|
38
38
|
"dayjs": "^1.11.0",
|
|
39
39
|
"element-ui": "^2.13.2",
|
package/src/App.vue
CHANGED
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
</WikiPanel>
|
|
85
85
|
<hr />
|
|
86
86
|
|
|
87
|
-
<WikiRevisions type="achievement" source-id="
|
|
87
|
+
<WikiRevisions type="achievement" source-id="2996"/>
|
|
88
88
|
<hr />
|
|
89
89
|
|
|
90
|
-
<WikiComments type="achievement" source-id="
|
|
90
|
+
<WikiComments type="achievement" source-id="2996"/>
|
|
91
91
|
<hr
|
|
92
92
|
/></el-tab-pane>
|
|
93
93
|
</el-tabs>
|
|
@@ -155,7 +155,7 @@ import WikiComments from "./wiki/WikiComments.vue";
|
|
|
155
155
|
|
|
156
156
|
import axios from "axios";
|
|
157
157
|
import { __server } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
158
|
-
import {
|
|
158
|
+
import { wiki } from "@jx3box/jx3box-common/js/wiki";
|
|
159
159
|
|
|
160
160
|
export default {
|
|
161
161
|
name: "App",
|
|
@@ -227,9 +227,10 @@ export default {
|
|
|
227
227
|
};
|
|
228
228
|
},
|
|
229
229
|
created: function() {
|
|
230
|
-
|
|
230
|
+
wiki.getById(25594)
|
|
231
|
+
.then((res) => {
|
|
231
232
|
res = res.data;
|
|
232
|
-
|
|
233
|
+
this.wikiPost = res.data;
|
|
233
234
|
});
|
|
234
235
|
},
|
|
235
236
|
methods: {
|
|
@@ -68,7 +68,7 @@ import { showAvatar, authorLink } from "@jx3box/jx3box-common/js/utils";
|
|
|
68
68
|
import { showTime } from "@jx3box/jx3box-common/js/moment";
|
|
69
69
|
export default {
|
|
70
70
|
name: "BoxcoinRecords",
|
|
71
|
-
props: ["postType", "postId", "cacheRecord",'mode'],
|
|
71
|
+
props: ["postType", "postId", "cacheRecord",'postClient','mode'],
|
|
72
72
|
components: {},
|
|
73
73
|
data: function () {
|
|
74
74
|
return {
|
|
@@ -89,6 +89,7 @@ export default {
|
|
|
89
89
|
return {
|
|
90
90
|
pageSize: this.per,
|
|
91
91
|
pageIndex: this.page,
|
|
92
|
+
client : this.postClient,
|
|
92
93
|
};
|
|
93
94
|
},
|
|
94
95
|
},
|
package/src/single/Thx.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<Share :postId="postId" :postType="postType" :client="client" />
|
|
9
9
|
</div>
|
|
10
10
|
<div class="w-thx-records">
|
|
11
|
-
<boxcoin-records :postId="postId" :postType="postType" :cacheRecord="cacheRecord" :mode="mode"/>
|
|
11
|
+
<boxcoin-records :postId="postId" :postType="postType" :postClient="client" :cacheRecord="cacheRecord" :mode="mode"/>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="w-thx-copyright">
|
|
14
14
|
© 所有原创作品,著作权归作者所有,所有未经授权的非署名转载或抄袭将有权追究法律责任,所有法律事务由专聘律师代理。<br>
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
<script>
|
|
45
45
|
import WikiPanel from "./WikiPanel";
|
|
46
46
|
import Comment from "./WikiComment.vue";
|
|
47
|
-
import {
|
|
47
|
+
import { wikiComment } from "@jx3box/jx3box-common/js/wiki";
|
|
48
|
+
import qs from "qs";
|
|
48
49
|
import User from "@jx3box/jx3box-common/js/user";
|
|
49
50
|
|
|
50
51
|
export default {
|
|
@@ -67,7 +68,9 @@ export default {
|
|
|
67
68
|
methods: {
|
|
68
69
|
get_comments() {
|
|
69
70
|
if (!this.type || !this.sourceId) return;
|
|
70
|
-
WikiComment.list(this.type, this.sourceId, this.client)
|
|
71
|
+
// WikiComment.list(this.type, this.sourceId, this.client)
|
|
72
|
+
wikiComment.list({ type: this.type, id: this.sourceId }, { client: this.client })
|
|
73
|
+
.then(
|
|
71
74
|
(res) => {
|
|
72
75
|
res = res.data;
|
|
73
76
|
if (res.code === 200) {
|
|
@@ -113,14 +116,17 @@ export default {
|
|
|
113
116
|
});
|
|
114
117
|
return;
|
|
115
118
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
const data = {
|
|
120
|
+
comment: {
|
|
121
|
+
type: this.type,
|
|
122
|
+
source_id: this.sourceId,
|
|
123
|
+
parent_id: parent_id,
|
|
124
|
+
user_nickname: form.user_nickname || User.getInfo().name,
|
|
125
|
+
content: form.content,
|
|
126
|
+
},
|
|
127
|
+
client: this.client
|
|
128
|
+
}
|
|
129
|
+
wikiComment.post({ data }, {})
|
|
124
130
|
.then(
|
|
125
131
|
(res) => {
|
|
126
132
|
res = res.data;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
42
|
import WikiPanel from "./WikiPanel";
|
|
43
|
-
import {
|
|
43
|
+
import { wiki } from "@jx3box/jx3box-common/js/wiki";
|
|
44
44
|
import { getLink, authorLink, ts2str } from "@jx3box/jx3box-common/js/utils";
|
|
45
45
|
import { __Root, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
46
46
|
|
|
@@ -90,7 +90,8 @@ export default {
|
|
|
90
90
|
immediate: true,
|
|
91
91
|
handler() {
|
|
92
92
|
if (this.sourceId) {
|
|
93
|
-
|
|
93
|
+
wiki.versions({ type: this.type, id: this.sourceId }, { client: this.client })
|
|
94
|
+
.then(
|
|
94
95
|
(res) => {
|
|
95
96
|
res = res.data;
|
|
96
97
|
this.versions = res.code === 200 ? res.data.versions : false;
|