@jx3box/jx3box-common-ui 9.2.5 → 9.2.7
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 +1 -1
- package/service/commit-history.js +3 -3
- package/src/App.vue +4 -4
- package/src/single/PostVersion.vue +12 -10
package/package.json
CHANGED
|
@@ -2,18 +2,18 @@ import { $next } from "@jx3box/jx3box-common/js/https";
|
|
|
2
2
|
|
|
3
3
|
// 获取提交记录
|
|
4
4
|
export function getCommitHistories(id, params) {
|
|
5
|
-
return $next(
|
|
5
|
+
return $next().get(`/api/next2/userdata/commit-history/content-meta/${id}/commit/history`, {
|
|
6
6
|
params,
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
// 通过hash获取提交记录
|
|
11
11
|
export function getCommitByHash(id, hash) {
|
|
12
|
-
return $next(
|
|
12
|
+
return $next().get(`/api/next2/userdata/commit-history/content-meta/${id}/commit/by-hash/${hash}`);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// 提交
|
|
16
16
|
export function commitHistory(id, data) {
|
|
17
17
|
// { domain: "https://dev.next2.jx3box.com" }
|
|
18
|
-
return $next(
|
|
18
|
+
return $next().post(`/api/next2/userdata/commit-history/content-meta/${id}/commit`, data);
|
|
19
19
|
}
|
package/src/App.vue
CHANGED
|
@@ -300,10 +300,10 @@ export default {
|
|
|
300
300
|
};
|
|
301
301
|
},
|
|
302
302
|
created: function () {
|
|
303
|
-
wiki.getById(25594).then((res) => {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
});
|
|
303
|
+
// wiki.getById(25594).then((res) => {
|
|
304
|
+
// res = res.data;
|
|
305
|
+
// this.wikiPost = res.data;
|
|
306
|
+
// });
|
|
307
307
|
|
|
308
308
|
this.loadCommunity();
|
|
309
309
|
},
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
<div class="u-version">
|
|
11
11
|
<span>{{ item.version }}</span> - <span>{{ item.created_at }}</span>
|
|
12
12
|
</div>
|
|
13
|
-
<el-button class="u-compare" size="small" type="text"
|
|
13
|
+
<el-button class="u-compare" size="small" type="text"
|
|
14
|
+
><i class="el-icon-sort u-icon"></i>对比</el-button
|
|
15
|
+
>
|
|
14
16
|
</li>
|
|
15
17
|
</ul>
|
|
16
18
|
<el-pagination small layout="prev, pager, next" :total="total" :current-page.sync="index" hide-on-single-page>
|
|
@@ -38,7 +40,7 @@ export default {
|
|
|
38
40
|
return {
|
|
39
41
|
loading: false,
|
|
40
42
|
index: 1,
|
|
41
|
-
pageSize:
|
|
43
|
+
pageSize: 10, // 取最新的10个版本即可
|
|
42
44
|
total: 0,
|
|
43
45
|
list: [],
|
|
44
46
|
show: true,
|
|
@@ -141,8 +143,8 @@ export default {
|
|
|
141
143
|
font-size: 18px;
|
|
142
144
|
.flex;
|
|
143
145
|
align-items: center;
|
|
144
|
-
gap:5px;
|
|
145
|
-
.u-icon{
|
|
146
|
+
gap: 5px;
|
|
147
|
+
.u-icon {
|
|
146
148
|
font-size: 20px;
|
|
147
149
|
}
|
|
148
150
|
}
|
|
@@ -151,7 +153,7 @@ export default {
|
|
|
151
153
|
padding: 10px;
|
|
152
154
|
margin: 0;
|
|
153
155
|
li {
|
|
154
|
-
padding:0 10px;
|
|
156
|
+
padding: 0 10px;
|
|
155
157
|
.fz(13px, 36px);
|
|
156
158
|
.flex;
|
|
157
159
|
justify-content: space-between;
|
|
@@ -161,19 +163,19 @@ export default {
|
|
|
161
163
|
&:hover {
|
|
162
164
|
background-color: #e6f0fb;
|
|
163
165
|
|
|
164
|
-
.u-compare{
|
|
166
|
+
.u-compare {
|
|
165
167
|
.db;
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
170
|
.pointer;
|
|
169
171
|
}
|
|
170
172
|
|
|
171
|
-
.u-compare{
|
|
173
|
+
.u-compare {
|
|
172
174
|
.none;
|
|
173
175
|
|
|
174
|
-
.u-icon{
|
|
175
|
-
transform
|
|
176
|
-
margin-right:3px;
|
|
176
|
+
.u-icon {
|
|
177
|
+
transform: rotate(90deg);
|
|
178
|
+
margin-right: 3px;
|
|
177
179
|
}
|
|
178
180
|
}
|
|
179
181
|
}
|