Merge branch 'react-plugin-manager' of https://github.com/ethereum/remix-project into react-plugin-manager

pull/1344/head
joseph izang 3 years ago
commit f9eb845986
  1. 2
      apps/debugger/tsconfig.json
  2. 2
      apps/remix-ide-e2e/tsconfig.json
  3. 4
      apps/remix-ide/src/blockchain/blockchain.js
  4. 2
      apps/remix-ide/tsconfig.json
  5. 2
      libs/remix-analyzer/tsconfig.json
  6. 2
      libs/remix-astwalker/tsconfig.json
  7. 2
      libs/remix-core-plugin/tsconfig.json
  8. 2
      libs/remix-debug/tsconfig.json
  9. 2
      libs/remix-lib/tsconfig.json
  10. 2
      libs/remix-simulator/tsconfig.json
  11. 2
      libs/remix-solidity/tsconfig.json
  12. 2
      libs/remix-tests/tsconfig.json
  13. 35
      libs/remix-ui/README.md
  14. 2
      libs/remix-ui/checkbox/tsconfig.json
  15. 2
      libs/remix-ui/clipboard/tsconfig.json
  16. 2
      libs/remix-ui/debugger-ui/tsconfig.json
  17. 2
      libs/remix-ui/file-explorer/tsconfig.json
  18. 2
      libs/remix-ui/modal-dialog/tsconfig.json
  19. 2
      libs/remix-ui/publish-to-storage/tsconfig.json
  20. 2
      libs/remix-ui/renderer/tsconfig.json
  21. 2
      libs/remix-ui/settings/tsconfig.json
  22. 2
      libs/remix-ui/solidity-compiler/tsconfig.json
  23. 2
      libs/remix-ui/static-analyser/tsconfig.json
  24. 2
      libs/remix-ui/toaster/tsconfig.json
  25. 2
      libs/remix-ui/tree-view/tsconfig.json
  26. 2
      libs/remix-ui/utils/tsconfig.json
  27. 2
      libs/remix-ui/workspace/tsconfig.json
  28. 2
      libs/remix-url-resolver/tsconfig.json
  29. 2
      libs/remixd/tsconfig.json
  30. 3
      nx.json
  31. 48
      tsconfig.base.json
  32. 6
      tsconfig.json

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node", "nightwatch"], "types": ["node", "nightwatch"],
"esModuleInterop": true "esModuleInterop": true

@ -501,7 +501,7 @@ class Blockchain extends Plugin {
if (isVM) { if (isVM) {
const hhlogs = await this.web3().eth.getHHLogsForTx(txResult.transactionHash) const hhlogs = await this.web3().eth.getHHLogsForTx(txResult.transactionHash)
if (hhlogs && hhlogs.length) { if (hhlogs && hhlogs.length) {
let finalLogs = 'console.log:\n' let finalLogs = '<b>console.log:</b>\n'
for (const log of hhlogs) { for (const log of hhlogs) {
let formattedLog let formattedLog
// Hardhat implements the same formatting options that can be found in Node.js' console.log, // Hardhat implements the same formatting options that can be found in Node.js' console.log,
@ -513,7 +513,7 @@ class Blockchain extends Plugin {
} else { } else {
formattedLog = log.join(' ') formattedLog = log.join(' ')
} }
finalLogs = finalLogs + formattedLog + '\n' finalLogs = finalLogs + '&emsp;' + formattedLog + '\n'
} }
this.call('terminal', 'log', { type: 'info', value: finalLogs }) this.call('terminal', 'log', { type: 'info', value: finalLogs })
} }

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node"], "types": ["node"],
"module": "commonjs", "module": "commonjs",

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node"], "types": ["node"],
"module": "commonjs", "module": "commonjs",

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node", "tape"], "types": ["node", "tape"],
"esModuleInterop": true "esModuleInterop": true

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node", "tape"], "types": ["node", "tape"],
"esModuleInterop": true "esModuleInterop": true

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node", "mocha"], "types": ["node", "mocha"],
"esModuleInterop": true "esModuleInterop": true

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node"] "types": ["node"]
}, },

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node", "jest"], "types": ["node", "jest"],
"module": "commonjs", "module": "commonjs",

@ -0,0 +1,35 @@
# remix-ui
This library was generated with [Nx](https://nx.dev).
## Pre-requisite
- Install **NxConsole** vscose extension
## Steps To Generate React App
- Open **NxConsole** extension
- Click generate option
- Select **@nrwl/react - application**
- Enter the name of the application
- Set **e2eTestRunner** to **none**. (This is because we run e2e tests with nightwatch)
- Set **unitTestRunner** to **none**.
- Click the run button in the top right corner of the generate page.
- Your react application should be created in **{root}/apps** directory.
## Steps To Generate React Lib
- Open **NxConsole** extension
- Click generate option
- Select **@nrwl/react - library**
- Enter the name of the library
- Set **directory** to **remix-ui**
- Set **importPath** to **@remix-ui/{library-name}**
- Set **unitTestRunner** to **none**.
- Click the run button in the top right corner of the generate page.
- Your react library should be created on **{root}/libs/remix-ui** directory.
## Steps To Generate React Component
- Open **NxConsole** extension
- Click generate option
- Select **@nrwl/react - component**
- Enter the name of the component
- Select the name of the project/library that uses the component. (e.g TreeView library)
- Set component directory if needed.
- Click the run button in the top right corner of the generate page.
- Your react component should be created with the project/library name specified.

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../../tsconfig.json", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"jsx": "react", "jsx": "react",
"allowJs": true, "allowJs": true,

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"types": ["node", "mocha"], "types": ["node", "mocha"],
"module": "commonjs", "module": "commonjs",

@ -1,5 +1,5 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.base.json",
"files": [], "files": [],
"include": [], "include": [],
"references": [ "references": [

@ -6,8 +6,9 @@
"dependencies": "*", "dependencies": "*",
"devDependencies": "*" "devDependencies": "*"
}, },
"tsconfig.json": "*", "tsconfig.base.json": "*",
"tslint.json": "*", "tslint.json": "*",
".eslintrc": "*",
"nx.json": "*" "nx.json": "*"
}, },
"tasksRunnerOptions": { "tasksRunnerOptions": {

@ -0,0 +1,48 @@
{
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "commonjs",
"typeRoots": ["node_modules/@types"],
"lib": ["es2017", "es2019", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@remix-project/remix-analyzer": ["dist/libs/remix-analyzer/index.js"],
"@remix-project/remix-astwalker": ["dist/libs/remix-astwalker/index.js"],
"@remix-project/remix-debug": ["dist/libs/remix-debug/src/index.js"],
"@remix-project/remix-lib": ["dist/libs/remix-lib/src/index.js"],
"@remix-project/remix-simulator": ["dist/libs/remix-simulator/src/index.js"],
"@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"],
"@remix-project/remix-tests": ["dist/libs/remix-tests/src/index.js"],
"@remix-project/remix-url-resolver": ["dist/libs/remix-url-resolver/index.js"],
"@remixproject/debugger-plugin": ["apps/debugger/src/index.ts"],
"@remix-project/remixd": ["dist/libs/remixd/index.js"],
"@remix-ui/tree-view": ["libs/remix-ui/tree-view/src/index.ts"],
"@remix-ui/debugger-ui": ["libs/remix-ui/debugger-ui/src/index.ts"],
"@remix-ui/utils": ["libs/remix-ui/utils/src/index.ts"],
"@remix-ui/clipboard": ["libs/remix-ui/clipboard/src/index.ts"],
"@remix-project/remix-solidity-ts": ["libs/remix-solidity/src/index.ts"],
"@remix-ui/modal-dialog": ["libs/remix-ui/modal-dialog/src/index.ts"],
"@remix-ui/toaster": ["libs/remix-ui/toaster/src/index.ts"],
"@remix-ui/file-explorer": ["libs/remix-ui/file-explorer/src/index.ts"],
"@remix-ui/workspace": ["libs/remix-ui/workspace/src/index.ts"],
"@remix-ui/static-analyser": ["libs/remix-ui/static-analyser/src/index.ts"],
"@remix-ui/checkbox": ["libs/remix-ui/checkbox/src/index.ts"],
"@remix-ui/settings": ["libs/remix-ui/settings/src/index.ts"],
"@remix-project/core-plugin": ["libs/remix-core-plugin/src/index.ts"],
"@remix-ui/solidity-compiler": ["libs/remix-ui/solidity-compiler/src/index.ts"],
"@remix-ui/publish-to-storage": ["libs/remix-ui/publish-to-storage/src/index.ts"],
"@remix-ui/renderer": ["libs/remix-ui/renderer/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]
}

@ -10,8 +10,7 @@
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es2015",
"module": "commonjs", "module": "commonjs",
"typeRoots": ["node_modules/@types"], "lib": ["es2017", "dom"],
"lib": ["es2017", "es2019", "dom"],
"skipLibCheck": true, "skipLibCheck": true,
"skipDefaultLibCheck": true, "skipDefaultLibCheck": true,
"baseUrl": ".", "baseUrl": ".",
@ -43,7 +42,8 @@
"@remix-ui/solidity-compiler": ["libs/remix-ui/solidity-compiler/src/index.ts"], "@remix-ui/solidity-compiler": ["libs/remix-ui/solidity-compiler/src/index.ts"],
"@remix-ui/publish-to-storage": ["libs/remix-ui/publish-to-storage/src/index.ts"], "@remix-ui/publish-to-storage": ["libs/remix-ui/publish-to-storage/src/index.ts"],
"@remix-ui/renderer": ["libs/remix-ui/renderer/src/index.ts"] "@remix-ui/renderer": ["libs/remix-ui/renderer/src/index.ts"]
} },
"allowSyntheticDefaultImports": true
}, },
"exclude": ["node_modules", "tmp"] "exclude": ["node_modules", "tmp"]
} }

Loading…
Cancel
Save