askbot-dragon 1.7.37-beta → 1.7.38-beta
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
CHANGED
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
})
|
|
89
89
|
},
|
|
90
90
|
getParseInfo(){
|
|
91
|
-
let url = '/knowledge-api/correction/knowledge-parse-info/' +
|
|
91
|
+
let url = '/knowledge-api/correction/knowledge-parse-info/' + this.knowledgeId;
|
|
92
92
|
this.$http.get(url).then(res => {
|
|
93
93
|
console.log('getParseInfo',res)
|
|
94
94
|
if (res.data.code == 0 && res.data.data){
|
|
@@ -130,6 +130,17 @@ export default {
|
|
|
130
130
|
if (dom){
|
|
131
131
|
dom.scrollIntoView({ behavior: 'smooth' });
|
|
132
132
|
}
|
|
133
|
+
for (let i=0;i<this.splitParagraph[this.currentPage].original_paragraph.length;i++){
|
|
134
|
+
const id = this.splitParagraph[this.currentPage].original_paragraph[i].paragraph_id;
|
|
135
|
+
const dom = document.getElementById(id);
|
|
136
|
+
if (dom){
|
|
137
|
+
dom.scrollIntoView({ behavior: 'smooth' });
|
|
138
|
+
dom.classList.add('animation')
|
|
139
|
+
setTimeout(() => {
|
|
140
|
+
dom.classList.remove('animation')
|
|
141
|
+
}, 4000)
|
|
142
|
+
}
|
|
143
|
+
}
|
|
133
144
|
}
|
|
134
145
|
}
|
|
135
146
|
}
|
|
@@ -282,4 +293,30 @@ export default {
|
|
|
282
293
|
}
|
|
283
294
|
}
|
|
284
295
|
}
|
|
296
|
+
.animation {
|
|
297
|
+
animation-name: highlight;
|
|
298
|
+
animation-duration: 4s;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@keyframes highlight {
|
|
302
|
+
0% {
|
|
303
|
+
background: rgba(255, 136, 0, 0.3);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
25% {
|
|
307
|
+
background: rgba(255, 136, 0, 0.6);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
50% {
|
|
311
|
+
background: rgba(255, 136, 0, 0.3);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
75% {
|
|
315
|
+
background: rgba(255, 136, 0, 0.6);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
100% {
|
|
319
|
+
background: rgba(255, 136, 0, 0.3);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
285
322
|
</style>
|
|
@@ -506,7 +506,7 @@ export default {
|
|
|
506
506
|
return 'HTML'
|
|
507
507
|
} else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg' || fileType === '.PNG' || fileType === '.JPG' || fileType === '.JPEG') {
|
|
508
508
|
return 'IMAGE'
|
|
509
|
-
} else if (fileType === '.docx'){
|
|
509
|
+
} else if (fileType === '.docx' || fileType === '.doc'){
|
|
510
510
|
return 'DOC'
|
|
511
511
|
} else if (fileType === '.ppt' || fileType === '.pptx'){
|
|
512
512
|
return 'PPT'
|