From 2a0bf1e5e472af7c66e6f1fd040a554641e7f1c1 Mon Sep 17 00:00:00 2001 From: drafish Date: Thu, 29 Sep 2022 09:15:41 +0800 Subject: [PATCH] compute panel-header intlId --- apps/remix-ide/src/app/components/plugin-manager-component.js | 1 - apps/remix-ide/src/app/panels/file-panel.js | 1 - apps/remix-ide/src/app/tabs/compile-tab.js | 1 - apps/remix-ide/src/app/tabs/debugger-tab.js | 1 - apps/remix-ide/src/app/tabs/search.tsx | 1 - apps/remix-ide/src/app/tabs/settings-tab.tsx | 1 - apps/remix-ide/src/app/udapp/run-tab.js | 3 +-- libs/remix-ui/panel/src/lib/plugins/panel-header.tsx | 3 +-- 8 files changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/remix-ide/src/app/components/plugin-manager-component.js b/apps/remix-ide/src/app/components/plugin-manager-component.js index d29e3b742c..0013283861 100644 --- a/apps/remix-ide/src/app/components/plugin-manager-component.js +++ b/apps/remix-ide/src/app/components/plugin-manager-component.js @@ -8,7 +8,6 @@ const _paq = window._paq = window._paq || [] const profile = { name: 'pluginManager', displayName: 'Plugin manager', - intlId: 'pluginManager.displayName', methods: [], events: [], icon: 'assets/img/pluginManager.webp', diff --git a/apps/remix-ide/src/app/panels/file-panel.js b/apps/remix-ide/src/app/panels/file-panel.js index fa61921c68..71c637406b 100644 --- a/apps/remix-ide/src/app/panels/file-panel.js +++ b/apps/remix-ide/src/app/panels/file-panel.js @@ -31,7 +31,6 @@ const { SlitherHandle } = require('../files/slither-handle.js') const profile = { name: 'filePanel', displayName: 'File explorer', - intlId: 'filePanel.displayName', methods: ['createNewFile', 'uploadFile', 'getCurrentWorkspace', 'getWorkspaces', 'createWorkspace', 'setWorkspace', 'registerContextMenuItem', 'renameWorkspace', 'deleteWorkspace'], events: ['setWorkspace', 'workspaceRenamed', 'workspaceDeleted', 'workspaceCreated'], icon: 'assets/img/fileManager.webp', diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index 280e6ee626..04e33277e0 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -13,7 +13,6 @@ import { isNative } from '../../remixAppManager' const profile = { name: 'solidity', displayName: 'Solidity compiler', - intlId: 'solidity.displayName', icon: 'assets/img/solidity.webp', description: 'Compile solidity contracts', kind: 'compiler', diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index fde1794fd1..5e62bd93d4 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/src/app/tabs/debugger-tab.js @@ -10,7 +10,6 @@ const css = require('./styles/debugger-tab-styles') const profile = { name: 'debugger', displayName: 'Debugger', - intlId: 'debugger.displayName', methods: ['debug', 'getTrace'], events: [], icon: 'assets/img/debuggerLogo.webp', diff --git a/apps/remix-ide/src/app/tabs/search.tsx b/apps/remix-ide/src/app/tabs/search.tsx index d561b4e38c..6705428a5f 100644 --- a/apps/remix-ide/src/app/tabs/search.tsx +++ b/apps/remix-ide/src/app/tabs/search.tsx @@ -5,7 +5,6 @@ import { SearchTab } from '@remix-ui/search' const profile = { name: 'search', displayName: 'Search in files', - intlId: 'search.displayName', methods: [''], events: [], icon: 'assets/img/search_icon.webp', diff --git a/apps/remix-ide/src/app/tabs/settings-tab.tsx b/apps/remix-ide/src/app/tabs/settings-tab.tsx index 43c439dc03..45e47fc2ac 100644 --- a/apps/remix-ide/src/app/tabs/settings-tab.tsx +++ b/apps/remix-ide/src/app/tabs/settings-tab.tsx @@ -9,7 +9,6 @@ import { PluginViewWrapper } from '@remix-ui/helper' const profile = { name: 'settings', displayName: 'Settings', - intlId: 'settings.displayName', methods: ['get'], events: [], icon: 'assets/img/settings.webp', diff --git a/apps/remix-ide/src/app/udapp/run-tab.js b/apps/remix-ide/src/app/udapp/run-tab.js index a5d403fb4a..bf8cdfa068 100644 --- a/apps/remix-ide/src/app/udapp/run-tab.js +++ b/apps/remix-ide/src/app/udapp/run-tab.js @@ -11,7 +11,6 @@ const _paq = window._paq = window._paq || [] const profile = { name: 'udapp', displayName: 'Deploy & run transactions', - intlId: 'udapp.displayName', icon: 'assets/img/deployAndRun.webp', description: 'Execute, save and replay transactions', kind: 'udapp', @@ -175,7 +174,7 @@ export class RunTab extends ViewPlugin { } } }) - + await this.call('blockchain', 'addProvider', { name: 'Optimism Provider', isInjected: true, diff --git a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx index 0af384986d..835d08f1d4 100644 --- a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx +++ b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx @@ -29,8 +29,7 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
- {/* @ts-ignore */} - +