nodebb-plugin-dbsearch 6.5.1 → 7.0.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-dbsearch",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "A Plugin that lets users search posts and topics",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"eslint-config-nodebb": "^2.0.2"
|
|
28
28
|
},
|
|
29
29
|
"nbbpm": {
|
|
30
|
-
"compatibility": "^4.
|
|
30
|
+
"compatibility": "^4.14.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/public/admin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
define('admin/plugins/dbsearch', [
|
|
4
|
-
'alerts', 'admin/settings',
|
|
5
|
-
], function (alerts, settings) {
|
|
4
|
+
'alerts', 'admin/settings', 'modals',
|
|
5
|
+
], function (alerts, settings, modals) {
|
|
6
6
|
const dbsearch = {};
|
|
7
7
|
let intervalId = 0;
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ define('admin/plugins/dbsearch', [
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
$('#reindex').on('click', function () {
|
|
35
|
-
|
|
35
|
+
modals.confirm('Are you sure you want to reindex all content? This might take a while depending on the amount of content. During the operation the forum might slow down.', function (confirm) {
|
|
36
36
|
if (!confirm) {
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
@@ -50,7 +50,7 @@ define('admin/plugins/dbsearch', [
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
$('#clear-index').on('click', function () {
|
|
53
|
-
|
|
53
|
+
modals.confirm('Are you sure you want to clear all indices? This might take a while depending on the amount of content. During the operation the forum might slow down.', function (confirm) {
|
|
54
54
|
if (!confirm) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
|
|
58
58
|
<div class="mb-3">
|
|
59
59
|
<label class="form-label">Topic Limit</label>
|
|
60
|
-
<input id="topicLimit" type="
|
|
60
|
+
<input id="topicLimit" type="number" class="form-control" placeholder="Number of topics to return" value="{topicLimit}">
|
|
61
61
|
</div>
|
|
62
62
|
<div class="mb-3">
|
|
63
63
|
<label class="form-label">Post Limit</label>
|
|
64
|
-
<input id="postLimit" type="
|
|
64
|
+
<input id="postLimit" type="number" class="form-control" placeholder="Number of posts to return" value="{postLimit}">
|
|
65
65
|
</div>
|
|
66
66
|
|
|
67
67
|
<!-- IF mongoBackend -->
|