nodebb-plugin-undelete-users
Advanced tools
Comparing version 0.0.1 to 1.0.1
@@ -50,3 +50,3 @@ 'use strict'; | ||
}); | ||
await hideDuplicateUids(eventData); | ||
hideDuplicateUids(eventData); | ||
await hideExistingUids(eventData); | ||
@@ -53,0 +53,0 @@ await addContentCounts(eventData); |
@@ -19,4 +19,4 @@ 'use strict'; | ||
plugin.init = async (params) => { | ||
const { router, middleware } = params; | ||
routeHelpers.setupAdminPageRoute(router, `/admin/plugins/${PLUGIN_ID}`, middleware, [], controllers.renderAdminPage); | ||
const { router } = params; | ||
routeHelpers.setupAdminPageRoute(router, `/admin/plugins/${PLUGIN_ID}`, controllers.renderAdminPage); | ||
}; | ||
@@ -23,0 +23,0 @@ |
{ | ||
"name": "nodebb-plugin-undelete-users", | ||
"version": "0.0.1", | ||
"version": "1.0.1", | ||
"description": "A NodeBB plugin to re-associate deleted users with their content that are not removed.", | ||
@@ -39,3 +39,3 @@ "main": "library.js", | ||
"nbbpm": { | ||
"compatibility": "^1.15.0" | ||
"compatibility": "^3.0.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -10,12 +10,6 @@ { | ||
], | ||
"staticDirs": { | ||
"static": "./static" | ||
"modules": { | ||
"../admin/plugins/undelete-users.js": "static/lib/admin.js" | ||
}, | ||
"less": [ | ||
"static/style.less" | ||
], | ||
"acpScripts": [ | ||
"static/lib/admin.js" | ||
], | ||
"templates": "static/templates" | ||
} |
@@ -5,3 +5,5 @@ 'use strict'; | ||
define('admin/plugins/undelete-users', ['api', 'bootbox'], function (api, bootbox) { | ||
define('admin/plugins/undelete-users', [ | ||
'api', 'bootbox', 'alerts' | ||
], function (api, bootbox, alerts) { | ||
const ACP = {}; | ||
@@ -34,4 +36,4 @@ const PLUGIN_ID = 'undelete-users'; | ||
}); | ||
app.alertSuccess('User restored. To make changes effective, you may need to restart your NodeBB instance.'); | ||
}).catch(app.alertError); | ||
alerts.success('User restored. To make changes effective, you may need to restart your NodeBB instance.'); | ||
}).catch(alerts.error); | ||
}); | ||
@@ -58,3 +60,3 @@ } | ||
} catch (err) { | ||
app.alertError(err); | ||
alerts.error(err); | ||
} | ||
@@ -61,0 +63,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
19569
16
389