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 = { const profile = {
name: 'pluginManager', name: 'pluginManager',
displayName: 'Plugin manager', displayName: 'Plugin manager',
intlId: 'pluginManager.displayName',
methods: [], methods: [],
events: [], events: [],
icon: 'assets/img/pluginManager.webp', icon: 'assets/img/pluginManager.webp',

@ -31,7 +31,6 @@ const { SlitherHandle } = require('../files/slither-handle.js')
const profile = { const profile = {
name: 'filePanel', name: 'filePanel',
displayName: 'File explorer', displayName: 'File explorer',
intlId: 'filePanel.displayName',
methods: ['createNewFile', 'uploadFile', 'getCurrentWorkspace', 'getWorkspaces', 'createWorkspace', 'setWorkspace', 'registerContextMenuItem', 'renameWorkspace', 'deleteWorkspace'], methods: ['createNewFile', 'uploadFile', 'getCurrentWorkspace', 'getWorkspaces', 'createWorkspace', 'setWorkspace', 'registerContextMenuItem', 'renameWorkspace', 'deleteWorkspace'],
events: ['setWorkspace', 'workspaceRenamed', 'workspaceDeleted', 'workspaceCreated'], events: ['setWorkspace', 'workspaceRenamed', 'workspaceDeleted', 'workspaceCreated'],
icon: 'assets/img/fileManager.webp', icon: 'assets/img/fileManager.webp',

@ -13,7 +13,6 @@ import { isNative } from '../../remixAppManager'
const profile = { const profile = {
name: 'solidity', name: 'solidity',
displayName: 'Solidity compiler', displayName: 'Solidity compiler',
intlId: 'solidity.displayName',
icon: 'assets/img/solidity.webp', icon: 'assets/img/solidity.webp',
description: 'Compile solidity contracts', description: 'Compile solidity contracts',
kind: 'compiler', kind: 'compiler',

@ -10,7 +10,6 @@ const css = require('./styles/debugger-tab-styles')
const profile = { const profile = {
name: 'debugger', name: 'debugger',
displayName: 'Debugger', displayName: 'Debugger',
intlId: 'debugger.displayName',
methods: ['debug', 'getTrace'], methods: ['debug', 'getTrace'],
events: [], events: [],
icon: 'assets/img/debuggerLogo.webp', icon: 'assets/img/debuggerLogo.webp',

@ -5,7 +5,6 @@ import { SearchTab } from '@remix-ui/search'
const profile = { const profile = {
name: 'search', name: 'search',
displayName: 'Search in files', displayName: 'Search in files',
intlId: 'search.displayName',
methods: [''], methods: [''],
events: [], events: [],
icon: 'assets/img/search_icon.webp', icon: 'assets/img/search_icon.webp',

@ -9,7 +9,6 @@ import { PluginViewWrapper } from '@remix-ui/helper'
const profile = { const profile = {
name: 'settings', name: 'settings',
displayName: 'Settings', displayName: 'Settings',
intlId: 'settings.displayName',
methods: ['get'], methods: ['get'],
events: [], events: [],
icon: 'assets/img/settings.webp', icon: 'assets/img/settings.webp',

@ -11,7 +11,6 @@ const _paq = window._paq = window._paq || []
const profile = { const profile = {
name: 'udapp', name: 'udapp',
displayName: 'Deploy & run transactions', displayName: 'Deploy & run transactions',
intlId: 'udapp.displayName',
icon: 'assets/img/deployAndRun.webp', icon: 'assets/img/deployAndRun.webp',
description: 'Execute, save and replay transactions', description: 'Execute, save and replay transactions',
kind: 'udapp', kind: 'udapp',
@ -175,7 +174,7 @@ export class RunTab extends ViewPlugin {
} }
} }
}) })
await this.call('blockchain', 'addProvider', { await this.call('blockchain', 'addProvider', {
name: 'Optimism Provider', name: 'Optimism Provider',
isInjected: true, isInjected: true,

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

Loading…
Cancel
Save