compute panel-header intlId

pull/2581/head
drafish 2 years ago
parent 618d8f7f1c
commit 2a0bf1e5e4
  1. 1
      apps/remix-ide/src/app/components/plugin-manager-component.js
  2. 1
      apps/remix-ide/src/app/panels/file-panel.js
  3. 1
      apps/remix-ide/src/app/tabs/compile-tab.js
  4. 1
      apps/remix-ide/src/app/tabs/debugger-tab.js
  5. 1
      apps/remix-ide/src/app/tabs/search.tsx
  6. 1
      apps/remix-ide/src/app/tabs/settings-tab.tsx
  7. 3
      apps/remix-ide/src/app/udapp/run-tab.js
  8. 3
      libs/remix-ui/panel/src/lib/plugins/panel-header.tsx

@ -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',

@ -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',

@ -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',

@ -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',

@ -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',

@ -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',

@ -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,

@ -29,8 +29,7 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
<header className='d-flex flex-column'>
<div className="swapitHeader px-3 pt-2 pb-0 d-flex flex-row">
<h6 className="mb-3" data-id='sidePanelSwapitTitle'>
{/* @ts-ignore */}
<FormattedMessage id={plugin?.profile.intlId || 'defaultId'} defaultMessage={plugin?.profile.displayName || plugin?.profile.name} />
<FormattedMessage id={plugin?.profile.name + '.displayName'} defaultMessage={plugin?.profile.displayName || plugin?.profile.name} />
</h6>
<div className="d-flex flex-row">
<div className="d-flex flex-row">

Loading…
Cancel
Save