mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
Plugin metrics (#7626)
* feat: add enable/disable checkbox for plugin usage * feat: submit plugin data to packages.nodebb.org only submit in production mode submit once every 24 hours dont submit for plugins that have "private": true in plugin.json enabled on new installs disabled on existing installs * fix: hash not working after first send fix statusCode * fix: remove url * feat: show compatibilty * feat: add install question for submit plugin usage
This commit is contained in:
committed by
GitHub
parent
3f4f8aface
commit
5fa5e999f8
@@ -150,6 +150,16 @@ define('admin/extend/plugins', ['jqueryui', 'translator', 'benchpress'], functio
|
||||
});
|
||||
});
|
||||
|
||||
$('#plugin-submit-usage').on('click', function () {
|
||||
socket.emit('admin.config.setMultiple', {
|
||||
submitPluginUsage: $(this).prop('checked') ? '1' : '0',
|
||||
}, function (err) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#plugin-order').on('click', function () {
|
||||
$('#order-active-plugins-modal').modal('show');
|
||||
socket.emit('admin.plugins.getActive', function (err, activePlugins) {
|
||||
|
||||
Reference in New Issue
Block a user