From a09210cf0c3e3ba617d003105bed356b4c5aecb1 Mon Sep 17 00:00:00 2001 From: pldespaigne <5858657+pldespaigne@users.noreply.github.com> Date: Sat, 27 Jul 2019 16:58:00 +0200 Subject: [PATCH 1/4] add the debug plugin Hello ! I made this PR to add my debug plugin, it will help plugin devs debugging their plugins, and remix devs testing the plugin-api ! Also sources are available [here](https://github.com/pldespaigne/remix-debug-plugin) if you want to have a look. --- src/remixAppManager.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/remixAppManager.js b/src/remixAppManager.js index fcfd47db79..705f3becef 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -179,6 +179,17 @@ export class RemixAppManager extends PluginEngine { icon: 'https://image.flaticon.com/icons/svg/1570/1570493.svg', location: 'sidePanel' } + const debugPlugin = { + name: 'debugPlugin', + displayName: 'Debug Tools for Remix plugins', + description: 'Easily test and debug your plugins !', + methods: ['sayHello', 'sayMyName', 'sayOurNames'], // test calls with 0, 1, and 2 args + events: [], + version: '0.1.0-alpha', + url: 'https://remix-debug-a.surge.sh', + icon: 'https://remix-debug-a.surge.sh/icon.png', + location: 'sidePanel' + } return [ new IframePlugin(pipeline), new IframePlugin(vyper), From a365fd05d6c8ca0e2416770ce1fd9e1f49cc1cba Mon Sep 17 00:00:00 2001 From: pldespaigne <5858657+pldespaigne@users.noreply.github.com> Date: Sat, 27 Jul 2019 17:02:57 +0200 Subject: [PATCH 2/4] add debugPlugin to the returned array --- src/remixAppManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remixAppManager.js b/src/remixAppManager.js index 705f3becef..44f7f78b28 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -198,7 +198,8 @@ export class RemixAppManager extends PluginEngine { new IframePlugin(mythx), new IframePlugin(provable), new IframePlugin(threeBox), - new IframePlugin(remixWorkshop) + new IframePlugin(remixWorkshop), + new IframePlugin(debugPlugin), ] } } From 38ce7de4ae5eca18aea7b658fbb6c13ef24d5bcb Mon Sep 17 00:00:00 2001 From: pldespaigne <5858657+pldespaigne@users.noreply.github.com> Date: Sat, 27 Jul 2019 17:08:18 +0200 Subject: [PATCH 3/4] fix ci linter error --- src/remixAppManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remixAppManager.js b/src/remixAppManager.js index 44f7f78b28..f2d3fea825 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -199,7 +199,7 @@ export class RemixAppManager extends PluginEngine { new IframePlugin(provable), new IframePlugin(threeBox), new IframePlugin(remixWorkshop), - new IframePlugin(debugPlugin), + new IframePlugin(debugPlugin) ] } } From 89475d7a0656a01390f33dd9e9c721ed0fdbfa6f Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Tue, 6 Aug 2019 16:26:29 +0200 Subject: [PATCH 4/4] removed space for npm test --- src/remixAppManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remixAppManager.js b/src/remixAppManager.js index 7c27473cec..2cede17580 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -189,7 +189,7 @@ export class RemixAppManager extends PluginEngine { url: 'https://remix-debug-a.surge.sh', icon: 'https://remix-debug-a.surge.sh/icon.png', location: 'sidePanel' - } + } const libraTools = { name: 'libratools', displayName: 'Libra and Move Tools',