mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +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
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							3f4f8aface
						
					
				
				
					commit
					5fa5e999f8
				
			| @@ -15,6 +15,7 @@ var Plugins = module.exports; | ||||
| require('./install')(Plugins); | ||||
| require('./load')(Plugins); | ||||
| require('./hooks')(Plugins); | ||||
| require('./usage')(Plugins); | ||||
| Plugins.data = require('./data'); | ||||
|  | ||||
| Plugins.getPluginPaths = Plugins.data.getPluginPaths; | ||||
| @@ -33,6 +34,7 @@ Plugins.libraryPaths = []; | ||||
| Plugins.versionWarning = []; | ||||
| Plugins.soundpacks = []; | ||||
| Plugins.languageData = {}; | ||||
| Plugins.loadedPlugins = []; | ||||
|  | ||||
| Plugins.initialized = false; | ||||
|  | ||||
| @@ -105,6 +107,7 @@ Plugins.reload = function (callback) { | ||||
| 	Plugins.clientScripts.length = 0; | ||||
| 	Plugins.acpScripts.length = 0; | ||||
| 	Plugins.libraryPaths.length = 0; | ||||
| 	Plugins.loadedPlugins.length = 0; | ||||
|  | ||||
| 	async.waterfall([ | ||||
| 		Plugins.getPluginPaths, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user