From 8b589cd5afbfb7bf5ed64f90b3571e79c433a31f Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 19 Jan 2021 02:49:54 +0100 Subject: [PATCH] context-menu --- apps/remix-ide/src/app/panels/file-panel.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/panels/file-panel.js b/apps/remix-ide/src/app/panels/file-panel.js index 91f33673dd..51ae8734a5 100644 --- a/apps/remix-ide/src/app/panels/file-panel.js +++ b/apps/remix-ide/src/app/panels/file-panel.js @@ -34,7 +34,7 @@ var canUpload = window.File || window.FileReader || window.FileList || window.Bl const profile = { name: 'fileExplorers', displayName: 'File explorers', - methods: [], + methods: ['registerContextMenuItem'], events: [], icon: 'assets/img/fileManager.webp', description: ' - ', @@ -102,6 +102,15 @@ module.exports = class Filepanel extends ViewPlugin { return this.el } + /** + * + * @param { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] } + */ + registerContextMenuItem (action, callback) { + if (!action.name || !callback) return + + } + renderComponent () { ReactDOM.render(