- static normalizePluginName (name: string) {
- return name.replace(/^peertube-((theme)|(plugin))-/, '')
+ static listInstalled () {
+ const query = {
+ where: {
+ uninstalled: false
+ }
+ }
+
+ return PluginModel.findAll(query)
+ }
+
+ static normalizePluginName (npmName: string) {
+ return npmName.replace(/^peertube-((theme)|(plugin))-/, '')