nodebb-plugin-dbsearch 6.4.0 → 6.4.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/README.md +10 -10
- package/index.js +4 -4
- package/lib/dbsearch.js +1 -1
- package/package.json +4 -5
- package/public/admin.js +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# NodeBB Plugin DB Search
|
|
2
|
-
|
|
3
|
-
A Plugin that lets users search posts and topics
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
npm install nodebb-plugin-dbsearch
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
# NodeBB Plugin DB Search
|
|
2
|
+
|
|
3
|
+
A Plugin that lets users search posts and topics
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
npm install nodebb-plugin-dbsearch
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = require('./lib/dbsearch');
|
|
4
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = require('./lib/dbsearch');
|
|
4
|
+
|
package/lib/dbsearch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-dbsearch",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.1",
|
|
4
4
|
"description": "A Plugin that lets users search posts and topics",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -19,13 +19,12 @@
|
|
|
19
19
|
"author": "Baris Usakli <baris@designcreateplay.com>",
|
|
20
20
|
"license": "BSD-2-Clause",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"lodash": "4.17.
|
|
22
|
+
"lodash": "4.17.23",
|
|
23
23
|
"redisearch": "^2.0.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"eslint": "^
|
|
27
|
-
"eslint-config-nodebb": "^
|
|
28
|
-
"eslint-plugin-import": "^2.31.0"
|
|
26
|
+
"eslint": "^10.0.3",
|
|
27
|
+
"eslint-config-nodebb": "^2.0.1"
|
|
29
28
|
},
|
|
30
29
|
"nbbpm": {
|
|
31
30
|
"compatibility": "^4.9.0"
|
package/public/admin.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
define('admin/plugins/dbsearch', [
|
|
4
4
|
'alerts', 'admin/settings',
|
|
5
5
|
], function (alerts, settings) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const dbsearch = {};
|
|
7
|
+
let intervalId = 0;
|
|
8
8
|
|
|
9
9
|
$(window).on('action:ajaxify.end', function (ev, data) {
|
|
10
10
|
if (data.url === 'admin/plugins/dbsearch' && ajaxify.data.working) {
|
|
@@ -66,7 +66,7 @@ define('admin/plugins/dbsearch', [
|
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
$('#changeLanguage').on('click', function () {
|
|
69
|
-
|
|
69
|
+
const lang = $('#indexLanguage').val();
|
|
70
70
|
alerts.success('Changing index language to "' + lang + '".');
|
|
71
71
|
socket.emit('admin.plugins.dbsearch.changeLanguage', lang, function (err) {
|
|
72
72
|
if (err) {
|
|
@@ -106,7 +106,7 @@ define('admin/plugins/dbsearch', [
|
|
|
106
106
|
$('.post-progress').css('width', progress.postsPercent + '%').text(progress.postsPercent + '%');
|
|
107
107
|
$('.message-progress').css('width', progress.messagesPercent + '%').text(progress.messagesPercent + '%');
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
const working = parseInt(progress.working, 10);
|
|
110
110
|
if (!working) {
|
|
111
111
|
clearInterval(intervalId);
|
|
112
112
|
$('#reindex').removeAttr('disabled');
|