seperated declared and undeclared logs

pull/4980/head
shubhiscoding 5 months ago committed by yann300
parent 52fa497c48
commit 5b5021581f
  1. 3
      apps/remix-ide/src/app/tabs/locales/en/terminal.json
  2. 3
      apps/remix-ide/src/app/tabs/locales/es/terminal.json
  3. 3
      apps/remix-ide/src/app/tabs/locales/fr/terminal.json
  4. 3
      apps/remix-ide/src/app/tabs/locales/it/terminal.json
  5. 3
      apps/remix-ide/src/app/tabs/locales/ko/terminal.json
  6. 3
      apps/remix-ide/src/app/tabs/locales/ru/terminal.json
  7. 3
      apps/remix-ide/src/app/tabs/locales/zh/terminal.json
  8. 14
      libs/remix-ui/terminal/src/lib/components/Table.tsx
  9. 5
      package.json

@ -40,5 +40,6 @@
"terminal.input": "input",
"terminal.decodedInput": "decoded input",
"terminal.decodedOutput": "decoded output",
"terminal.logs": "logs"
"terminal.undeclaredlogs": "undeclared logs",
"terminal.declaredlogs": "declared logs"
}

@ -39,5 +39,6 @@
"terminal.input": "entrada",
"terminal.decodedInput": "entrada descodificada",
"terminal.decodedOutput": "salida descodificada",
"terminal.logs": "registros"
"terminal.undeclaredlogs": "registros no declarados",
"terminal.declaredlogs": "registros declarados"
}

@ -39,5 +39,6 @@
"terminal.input": "entrée",
"terminal.decodedInput": "entrée décodée",
"terminal.decodedOutput": "sortie décodée",
"terminal.logs": "logs"
"terminal.undeclaredlogs": "logs non déclarés",
"terminal.declaredlogs": "logs déclarés"
}

@ -39,5 +39,6 @@
"terminal.input": "input",
"terminal.decodedInput": "input decodificato",
"terminal.decodedOutput": "output decodificato",
"terminal.logs": "Log"
"terminal.undeclaredlogs": "log non dichiarati",
"terminal.declaredlogs": "log dichiarati"
}

@ -39,5 +39,6 @@
"terminal.input": "입력",
"terminal.decodedInput": "디코드된 입력",
"terminal.decodedOutput": "디코드된 출력",
"terminal.logs": "로그"
"terminal.undeclaredlogs": "선언되지 않은 로그",
"terminal.declaredlogs": "선언된 로그"
}

@ -39,5 +39,6 @@
"terminal.input": "ввод",
"terminal.decodedInput": "декодированный ввод",
"terminal.decodedOutput": "декодированный вывод",
"terminal.logs": "журналы"
"terminal.undeclaredlogs": "необъявленные журналы",
"terminal.declaredlogs": "объявленные журналы"
}

@ -39,5 +39,6 @@
"terminal.input": "输入",
"terminal.decodedInput": "解码输入",
"terminal.decodedOutput": "解码输出",
"terminal.logs": "日志"
"terminal.undeclaredlogs": "未声明的日志",
"terminal.declaredlogs": "已声明的日志"
}

@ -183,11 +183,21 @@ const showTable = (opts, showTableHash) => {
{opts.logs ? (
<tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>
<FormattedMessage id="terminal.logs" />
<FormattedMessage id="terminal.declaredlogs" />
</td>
<td className="remix_ui_terminal_td" data-id={`txLoggerTableHash${opts.hash}`} data-shared={`pair_${opts.hash}`}>
{JSON.stringify(opts.logs.raw, null, 2)?( <pre>{JSON.stringify(opts.logs.raw || '0', null, 2)}</pre>):(JSON.stringify(stringified, null, '\t'))}
{JSON.stringify(stringified, null, '\t')}
<CopyToClipboard content={JSON.stringify(stringified, null, '\t')} />
</td>
</tr>
) : null}
{opts.logs ? (
<tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>
<FormattedMessage id="terminal.undeclaredlogs" />
</td>
<td className="remix_ui_terminal_td" data-id={`txLoggerTableHash${opts.hash}`} data-shared={`pair_${opts.hash}`}>
<pre>{JSON.stringify(opts.logs.raw || '0', null, 2)}</pre>
<CopyToClipboard content={JSON.stringify(opts.logs.raw || '0', null, 2)} />
</td>
</tr>

@ -98,10 +98,10 @@
"@ethereumjs/util": "9.0.3",
"@ethereumjs/vm": "8.0.0",
"@ethersphere/bee-js": "^3.2.0",
"@floating-ui/react": "^0.26.15",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@floating-ui/react": "^0.26.15",
"@gradio/client": "^0.10.1",
"@isomorphic-git/lightning-fs": "^4.4.1",
"@metamask/eth-sig-util": "^7.0.2",
@ -211,6 +211,7 @@
"tree-kill": "^1.2.2",
"ts-loader": "^9.2.6",
"tslib": "^2.3.0",
"util": "^0.12.5",
"web3": "^4.1.0",
"winston": "^3.3.3",
"ws": "^7.3.0",
@ -317,7 +318,7 @@
"eslint-plugin-react": "7.31.8",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-standard": "4.0.1",
"events": "^3.0.0",
"events": "^3.3.0",
"execr": "^1.0.1",
"exorcist": "^0.4.0",
"exports-loader": "^1.1.0",

Loading…
Cancel
Save