Merge pull request #9 from ethereum/remixide-setup

Remixide setup
pull/5/head
David Disu 4 years ago committed by GitHub
commit 86c77f4512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      .circleci/config.yml
  2. 3
      apps/remix-ide/.babelrc
  3. 10
      apps/remix-ide/.circleci/config.yml
  4. 2
      apps/remix-ide/README.md
  5. 2
      apps/remix-ide/ci/browser_tests.sh
  6. 2
      apps/remix-ide/ci/browser_tests_chrome.sh
  7. 2
      apps/remix-ide/ci/browser_tests_firefox.sh
  8. 2
      apps/remix-ide/ci/browser_tests_run_deploy.sh
  9. 2
      apps/remix-ide/ci/makeMockCompiler.js
  10. 2
      apps/remix-ide/docs/locations.md
  11. 2
      apps/remix-ide/src/app.js
  12. 2
      apps/remix-ide/src/app/compiler/compiler-helpers.js
  13. 2
      apps/remix-ide/src/app/tabs/compileTab/compileTab.js
  14. 4
      apps/remix-ide/src/assets/css/font-awesome.min.css
  15. 69
      apps/remix-ide/src/assets/css/pygment_trac.css
  16. BIN
      apps/remix-ide/src/assets/fonts/FontAwesome.otf
  17. BIN
      apps/remix-ide/src/assets/fonts/fontawesome-webfont.eot
  18. 2671
      apps/remix-ide/src/assets/fonts/fontawesome-webfont.svg
  19. BIN
      apps/remix-ide/src/assets/fonts/fontawesome-webfont.ttf
  20. BIN
      apps/remix-ide/src/assets/fonts/fontawesome-webfont.woff
  21. BIN
      apps/remix-ide/src/assets/fonts/fontawesome-webfont.woff2
  22. BIN
      apps/remix-ide/src/assets/img/debuggerLogo.webp
  23. BIN
      apps/remix-ide/src/assets/img/gasStation_50.png
  24. BIN
      apps/remix-ide/src/assets/img/hexagon-remix-greengrey-texture.png
  25. BIN
      apps/remix-ide/src/assets/img/homeStickers.png
  26. BIN
      apps/remix-ide/src/assets/img/moreLogo.webp
  27. BIN
      apps/remix-ide/src/assets/img/mythxLogo.webp
  28. BIN
      apps/remix-ide/src/assets/img/pipelineLogo.webp
  29. BIN
      apps/remix-ide/src/assets/img/sleepingRemiCroped.webp
  30. BIN
      apps/remix-ide/src/assets/img/solidityLogo.webp
  31. BIN
      apps/remix-ide/src/assets/img/sourceVerifyLogo.webp
  32. BIN
      apps/remix-ide/src/assets/img/vyperLogo.webp
  33. BIN
      apps/remix-ide/src/assets/img/workshopLogo.webp
  34. 271121
      apps/remix-ide/src/assets/js/0.7.7/app.js
  35. 8
      apps/remix-ide/src/assets/js/browserfs.min.js
  36. 93
      apps/remix-ide/src/index.html
  37. 2
      apps/remix-ide/src/index.js
  38. 1
      apps/remix-ide/src/main.js
  39. 7
      apps/remix-ide/src/polyfills.js
  40. 92
      apps/remix-ide/src/webpack.index.html
  41. 2
      apps/remix-ide/test-browser/helpers/init.js
  42. 2
      apps/remix-ide/test-browser/tests/defaultLayout.test.js
  43. 2
      apps/remix-ide/test-browser/tests/generalSettings.test.js
  44. 2
      apps/remix-ide/test-browser/tests/pluginManager.test.js
  45. 2
      apps/remix-ide/test-browser/tests/terminal.test.js
  46. 2
      apps/remix-ide/test-browser/tests/workspace.test.js
  47. 2
      apps/remix-ide/test/compiler-test.js
  48. 9
      apps/remix-ide/tsconfig.app.json
  49. 15
      apps/remix-ide/tsconfig.json
  50. 15
      apps/remix-ide/tsconfig.spec.json
  51. 17
      apps/remix-ide/webpack.config.js
  52. 3
      babel.config.js
  53. 9
      jest.config.js
  54. 4
      libs/remix-solidity/src/compiler/compiler-worker.ts
  55. 4
      libs/remix-solidity/src/compiler/compiler.ts
  56. 29
      nx.json
  57. 49497
      package-lock.json
  58. 37
      package.json
  59. 2
      tsconfig.json
  60. 97
      workspace.json

@ -7,7 +7,7 @@ jobs:
remix-ide-chrome:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -24,7 +24,15 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm run lint && npm run test && npm run make-mock-compiler
- run: npm run lint
- run:
name: Download Compatible JAVA Version for Selenium
command: |
java -version
sudo apt-get purge --auto-remove java-common
sudo apt-get update
sudo apt-get install openjdk-8-jdk
java -version
- run:
name: Download Selenium
command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js
@ -41,7 +49,7 @@ jobs:
remix-ide-firefox:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -58,7 +66,7 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm run lint && npm run test && npm run make-mock-compiler
- run: npm run lint
- run:
name: Download Selenium
command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js
@ -81,7 +89,7 @@ jobs:
remix-ide-run-deploy:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -97,7 +105,7 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm run lint && npm run test && npm run make-mock-compiler
- run: npm run lint
- run:
name: Download Selenium
command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js
@ -113,7 +121,7 @@ jobs:
deploy-remix-live:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -129,7 +137,7 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm run lint && npm run test && npm run make-mock-compiler
- run: npm run lint
- run:
name: Deploy
command: |
@ -142,7 +150,7 @@ jobs:
deploy-remix-alpha:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -158,7 +166,7 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm run lint && npm run test && npm run make-mock-compiler
- run: npm run lint
- run:
name: Deploy
command: |

@ -1,3 +0,0 @@
{
"presets": ["@babel/preset-env"]
}

@ -7,7 +7,7 @@ jobs:
remix-ide-chrome:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -41,7 +41,7 @@ jobs:
remix-ide-firefox:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -81,7 +81,7 @@ jobs:
remix-ide-run-deploy:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -113,7 +113,7 @@ jobs:
deploy-remix-live:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
@ -142,7 +142,7 @@ jobs:
deploy-remix-alpha:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images

@ -47,7 +47,7 @@ npm start
## DEVELOPING:
Run `npm start` and open `http://127.0.0.1:8080` in your browser.
Run `npm start` and open `http://127.0.0.1:4200` in your browser.
Then open your `text editor` and start developing.
The browser will automatically refresh when files are saved.

@ -7,7 +7,7 @@ setupRemixd () {
cd apps/remix-ide/contracts
echo 'sharing folder: '
echo $PWD
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:8080 &
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:4200 &
cd ../../..
}

@ -7,7 +7,7 @@ setupRemixd () {
cd apps/remix-ide/contracts
echo 'sharing folder: '
echo $PWD
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:8080 &
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:4200 &
cd ../../..
}

@ -7,7 +7,7 @@ setupRemixd () {
cd apps/remix-ide/contracts
echo 'sharing folder: '
echo $PWD
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:8080 &
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:4200 &
cd ../../..
}

@ -7,7 +7,7 @@ setupRemixd () {
cd apps/remix-ide/contracts
echo 'sharing folder: '
echo $PWD
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:8080 &
../../../node_modules/.bin/remixd -s $PWD --remix-ide http://127.0.0.1:4200 &
cd ../../..
}

@ -2,7 +2,7 @@
var fs = require('fs')
var compiler = require('solc')
var compilerInput = require('remix-solidity').CompilerInput
var compilerInput = require('@remix-project/remix-solidity').CompilerInput
var defaultVersion = 'v0.6.6+commit.6c089d02'
const path = require('path')

@ -5,6 +5,6 @@ So if you've found the documentation to Remix but don't know where to find Remix
- An online version is available at [https://remix.ethereum.org](https://remix.ethereum.org). This version is stable and is updated at almost every release.
- An alpha online version is available at [https://remix-alpha.ethereum.org](https://remix-alpha.ethereum.org). This is not a stable version.
- npm `remix-ide` package `npm install remix-ide -g`. `remix-ide` create a new instance of `Remix IDE` available at [http://127.0.0.1:8080](http://127.0.0.1:8080) and make the current folder available to Remix IDE by automatically starting `remixd`.
- npm `remix-ide` package `npm install remix-ide -g`. `remix-ide` create a new instance of `Remix IDE` available at [http://127.0.0.1:4200](http://127.0.0.1:4200) and make the current folder available to Remix IDE by automatically starting `remixd`.
see [Connection to `remixd`](https://remix-ide.readthedocs.io/en/latest/remixd.html) for more information about sharing local file with `Remix IDE`.
- Github release: [https://github.com/ethereum/remix-ide/releases](https://github.com/ethereum/remix-ide/releases) . The source code is packaged at every release but still need to be built using `npm run build`.

@ -225,7 +225,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
toolTip('You are using an `https` connection. Please switch to `http` if you are using Remix against an `http Web3 provider` or allow Mixed Content in your browser.')
}
const hosts = ['127.0.0.1:8080', '192.168.0.101:8080', 'localhost:8080']
const hosts = ['127.0.0.1:4200', '192.168.0.101:4200', 'localhost:4200']
// workaround for Electron support
if (!isElectron() && !hosts.includes(window.location.host)) {
// Oops! Accidentally trigger refresh or bookmark.

@ -1,6 +1,6 @@
'use strict'
import { canUseWorker } from './compiler-utils'
import { Compiler } from 'remix-solidity'
import { Compiler } from '@remix-project/remix-solidity'
import CompilerAbstract from './compiler-abstract'
export const compile = async (compilationTargets, settings) => {

@ -1,7 +1,7 @@
const async = require('async')
const EventEmitter = require('events')
var remixTests = require('remix-tests')
var Compiler = require('remix-solidity').Compiler
var Compiler = require('@remix-project/remix-solidity').Compiler
var CompilerImport = require('../../compiler/compiler-imports')
// TODO: move this to the UI

File diff suppressed because one or more lines are too long

@ -0,0 +1,69 @@
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.type-csharp .highlight .k { color: #0000FF }
.type-csharp .highlight .kt { color: #0000FF }
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
.type-csharp .highlight .nc { color: #2B91AF }
.type-csharp .highlight .nn { color: #000000 }
.type-csharp .highlight .s { color: #A31515 }
.type-csharp .highlight .sc { color: #A31515 }

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,93 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--
The MIT License (MIT)
Copyright (c) 2014, 2015, the individual contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Remix - Ethereum IDE</title>
<link rel="stylesheet" href="assets/css/pygment_trac.css">
<link rel="icon" type="x-icon" href="icon.png">
<script src="assets/js/browserfs.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
<script>
function urlParams () {
var qs = window.location.hash.substr(1)
if (window.location.search.length > 0) {
// use legacy query params instead of hash
window.location.hash = window.location.search.substr(1)
window.location.search = ''
}
var params = {}
var parts = qs.split('&')
for (var x in parts) {
var keyValue = parts[x].split('=')
if (keyValue[0] !== '') {
params[keyValue[0]] = keyValue[1]
}
}
return params
}
const defaultVersion = '0.8.0'
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion
let assets = {
'0.8.0': ['https://use.fontawesome.com/releases/v5.8.1/css/all.css', 'assets/css/pygment_trac.css'],
'0.7.7': ['assets/css/font-awesome.min.css', 'assets/css/pygment_trac.css']
}
let versions = {
'0.7.7': 'assets/js/0.7.7/app.js', // commit 7b5c7ae3de935e0ccc32eadfd83bf7349478491e
'0.8.0': 'main.js'
}
for (let k in assets[versionToLoad]) {
let app = document.createElement('link')
app.setAttribute('rel', 'stylesheet')
app.setAttribute('href', assets[versionToLoad][k])
if (assets[versionToLoad][k] === 'https://use.fontawesome.com/releases/v5.8.1/css/all.css') {
app.setAttribute('integrity', 'sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf')
app.setAttribute('crossorigin', 'anonymous')
}
document.head.appendChild(app)
}
window.onload = () => {
BrowserFS.install(window)
BrowserFS.configure({
fs: "LocalStorage"
}, function(e) {
if (e) console.log(e)
let app = document.createElement('script')
app.setAttribute('src', versions[versionToLoad])
document.body.appendChild(app)
window.remixFileSystem = require('fs')
})
}
</script>
<script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="styles.js" type="module"></script><script src="vendor.js" type="module"></script>
</body>
</html>

@ -1,6 +1,6 @@
'use strict'
require('@babel/polyfill')
// require('@babel/polyfill')
var App = require('./app.js')
var app = new App({})

@ -0,0 +1 @@
import './index'

@ -0,0 +1,7 @@
/**
* Polyfill stable language features. These imports will be optimized by `@babel/preset-env`.
*
* See: https://github.com/zloirock/core-js#babel
*/
import 'core-js/stable';
import 'regenerator-runtime/runtime';

@ -0,0 +1,92 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--
The MIT License (MIT)
Copyright (c) 2014, 2015, the individual contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Remix - Ethereum IDE</title>
<link rel="stylesheet" href="assets/css/pygment_trac.css">
<link rel="icon" type="x-icon" href="icon.png">
<script src="assets/js/browserfs.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
<script>
function urlParams () {
var qs = window.location.hash.substr(1)
if (window.location.search.length > 0) {
// use legacy query params instead of hash
window.location.hash = window.location.search.substr(1)
window.location.search = ''
}
var params = {}
var parts = qs.split('&')
for (var x in parts) {
var keyValue = parts[x].split('=')
if (keyValue[0] !== '') {
params[keyValue[0]] = keyValue[1]
}
}
return params
}
const defaultVersion = '0.8.0'
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion
let assets = {
'0.8.0': ['https://use.fontawesome.com/releases/v5.8.1/css/all.css', 'assets/css/pygment_trac.css'],
'0.7.7': ['assets/css/font-awesome.min.css', 'assets/css/pygment_trac.css']
}
let versions = {
'0.7.7': 'assets/js/0.7.7/app.js', // commit 7b5c7ae3de935e0ccc32eadfd83bf7349478491e
'0.8.0': 'main.js'
}
for (let k in assets[versionToLoad]) {
let app = document.createElement('link')
app.setAttribute('rel', 'stylesheet')
app.setAttribute('href', assets[versionToLoad][k])
if (assets[versionToLoad][k] === 'https://use.fontawesome.com/releases/v5.8.1/css/all.css') {
app.setAttribute('integrity', 'sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf')
app.setAttribute('crossorigin', 'anonymous')
}
document.head.appendChild(app)
}
window.onload = () => {
BrowserFS.install(window)
BrowserFS.configure({
fs: "LocalStorage"
}, function(e) {
if (e) console.log(e)
let app = document.createElement('script')
app.setAttribute('src', versions[versionToLoad])
document.body.appendChild(app)
window.remixFileSystem = require('fs')
})
}
</script>
</body>
</html>

@ -2,7 +2,7 @@ require('dotenv').config()
module.exports = function (browser, callback, url, preloadPlugins = true) {
browser
.url(url || 'http://127.0.0.1:8080')
.url(url || 'http://127.0.0.1:4200')
.pause(5000)
.switchBrowserTab(0)
.injectScript('test-browser/helpers/applytestmode.js', function () {

@ -4,7 +4,7 @@ const sauce = require('./sauce')
module.exports = {
before: function (browser, done) {
init(browser, done, 'http://127.0.0.1:8080', false)
init(browser, done, 'http://127.0.0.1:4200', false)
},
'Loads Icon\'s Panel': function (browser) {
browser.waitForElementVisible('div[data-id="remixIdeIconPanel"]', 10000)

@ -4,7 +4,7 @@ const sauce = require('./sauce')
module.exports = {
before: function (browser, done) {
init(browser, done, 'http://127.0.0.1:8080', false)
init(browser, done, 'http://127.0.0.1:4200', false)
},
'Should display settings menu': function (browser) {

@ -9,7 +9,7 @@ const testData = {
module.exports = {
before: function (browser, done) {
init(browser, done, 'http://127.0.0.1:8080', false)
init(browser, done, 'http://127.0.0.1:4200', false)
},
'Should Load Plugin Manager': function (browser) {

@ -4,7 +4,7 @@ var sauce = require('./sauce')
module.exports = {
before: function (browser, done) {
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp', false)
init(browser, done, 'http://127.0.0.1:4200?plugins=solidity,udapp', false)
},
'Should execution a simple console command': function (browser) {

@ -4,7 +4,7 @@ const sauce = require('./sauce')
module.exports = {
before: function (browser, done) {
init(browser, done, 'http://127.0.0.1:8080?plugins=solidity,udapp', false)
init(browser, done, 'http://127.0.0.1:4200?plugins=solidity,udapp', false)
},
'CheckSolidityActivatedAndUDapp': function (browser) {
browser

@ -2,7 +2,7 @@
var test = require('tape')
var Compiler = require('remix-solidity').Compiler
var Compiler = require('@remix-project/remix-solidity').Compiler
test('compiler.compile smoke', function (t) {
t.plan(1)

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx"],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}

@ -0,0 +1,15 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"types": ["node", "jest"]
},
"files": [
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
"../../node_modules/@nrwl/react/typings/image.d.ts"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}

@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.spec.js",
"**/*.spec.jsx",
"**/*.d.ts"
]
}

@ -0,0 +1,17 @@
const nxWebpack = require('@nrwl/react/plugins/webpack')
module.exports = config => {
const nxWebpackConfig = nxWebpack(config)
return {
...nxWebpackConfig,
node: {
fs: 'empty',
tls: 'empty',
readline: 'empty',
net: 'empty',
module: 'empty',
child_process: 'empty'
}
}
}

@ -0,0 +1,3 @@
module.exports = {
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}

@ -0,0 +1,9 @@
module.exports = {
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest'
},
resolver: '@nrwl/jest/plugins/resolver',
moduleFileExtensions: ['ts', 'js', 'html'],
coverageReporters: ['html']
};

@ -1,13 +1,13 @@
'use strict'
import solc from 'solc/wrapper'
import * as solc from 'solc/wrapper'
import { CompilerInput, MessageToWorker } from './types'
let compileJSON: ((input: CompilerInput) => string) | null = (input) => { return '' }
const missingInputs: string[] = []
// 'DedicatedWorkerGlobalScope' object (the Worker global scope) is accessible through the self keyword
// 'dom' and 'webworker' library files can't be included together https://github.com/microsoft/TypeScript/issues/20595
export default (self): void => { // eslint-disable-line @typescript-eslint/explicit-module-boundary-types
export default function (self) { // eslint-disable-line @typescript-eslint/explicit-module-boundary-types
self.addEventListener('message', (e) => {
const data: MessageToWorker = e.data
switch (data.cmd) {

@ -1,7 +1,7 @@
'use strict'
import { update } from 'solc/abi'
import webworkify from 'webworkify'
import * as webworkify from 'webworkify-webpack'
import compilerInput from './compiler-input'
import { EventManager } from '@remix-project/remix-lib'
import { default as txHelper } from './txHelper';
@ -211,7 +211,7 @@ export class Compiler {
*/
loadWorker (url: string): void {
this.state.worker = webworkify(require('./compiler-worker.js').default)
this.state.worker = webworkify(require.resolve('./compiler-worker'))
const jobs: Record<'sources', SourceWithTarget> [] = []
this.state.worker.addEventListener('message', (msg: Record <'data', MessageFromWorker>) => {

@ -24,42 +24,27 @@
},
"remix-astwalker": {
"tags": [],
"implicitDependencies": [
"remix-lib"
]
"implicitDependencies": ["remix-lib"]
},
"remix-analyzer": {
"tags": [],
"implicitDependencies": [
"remix-astwalker",
"remix-lib"
]
"implicitDependencies": ["remix-astwalker", "remix-lib"]
},
"remix-debug": {
"tags": [],
"implicitDependencies": [
"remix-lib"
]
"implicitDependencies": ["remix-lib"]
},
"remix-simulator": {
"tags": [],
"implicitDependencies": [
"remix-lib"
]
"implicitDependencies": ["remix-lib"]
},
"remix-solidity": {
"tags": [],
"implicitDependencies": [
"remix-lib"
]
"implicitDependencies": ["remix-lib"]
},
"remix-tests": {
"tags": [],
"implicitDependencies": [
"remix-lib",
"remix-simulator",
"remix-solidity"
]
"implicitDependencies": ["remix-lib", "remix-simulator", "remix-solidity"]
},
"remix-url-resolver": {
"tags": []
@ -67,7 +52,7 @@
"remix-ide": {
"tags": [],
"implicitDependencies": [
"remix-analyzer",
"remix-analyzer",
"remix-debug",
"remix-lib",
"remix-simulator",

49497
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -86,7 +86,7 @@
"nightwatch_local_runAndDeploy": "nightwatch ./apps/remix-ide/test-browser/tests/runAndDeploy.js --config apps/remix-ide/nightwatch.js --env chrome-runAndDeploy ",
"onchange": "onchange apps/remix-ide/build/app.js -- npm-run-all lint",
"prepublish": "mkdirp build; npm-run-all -ls downloadsolc_root build",
"remixd": "remixd -s ./apps/remix-ide/contracts --remix-ide http://127.0.0.1:8080",
"remixd": "remixd -s ./apps/remix-ide/contracts --remix-ide http://127.0.0.1:4200",
"selenium": "selenium-standalone start",
"selenium-install": "selenium-standalone install",
"sourcemap": "exorcist --root ../ apps/remix-ide/build/app.js.map > apps/remix-ide/build/app.js",
@ -145,22 +145,32 @@
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-transform-modules-amd": "^7.10.4",
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.10.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-es2015": "latest",
"@babel/preset-env": "^7.10.4",
"@babel/preset-es2015": "^7.0.0-beta.53",
"@babel/preset-es2017": "latest",
"@babel/preset-stage-0": "^7.0.0",
"@babel/register": "^7.4.4",
"@fortawesome/fontawesome-free": "^5.8.1",
"@nrwl/cypress": "9.2.4",
"@nrwl/eslint-plugin-nx": "^9.4.4",
"@nrwl/jest": "9.4.5",
"@nrwl/linter": "^9.3.0",
"@nrwl/node": "^9.4.5",
"@nrwl/react": "9.2.4",
"@nrwl/web": "9.2.4",
"@nrwl/workspace": "9.2.4",
"@resolver-engine/imports": "^0.3.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@types/node": "~8.9.4",
"@types/react": "16.9.17",
"@types/react-dom": "16.9.4",
"@types/react-router-dom": "5.1.3",
"@typescript-eslint/eslint-plugin": "^3.3.0",
"@typescript-eslint/parser": "^3.3.0",
"ace-mode-move": "0.0.1",
@ -168,9 +178,13 @@
"ace-mode-zokrates": "^1.0.0",
"async": "^2.1.2",
"babel-eslint": "^10.0.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-fast-async": "^6.1.2",
"babel-plugin-module-resolver": "^4.0.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-yo-yoify": "^2.0.0",
"babel-preset-env": "^1.7.0",
"babel-preset-typescript": "^7.0.0-alpha.19",
"babelify": "^10.0.0",
"brace": "^0.8.0",
"browserify": "^16.2.3",
@ -179,6 +193,7 @@
"copy-text-to-clipboard": "^1.0.4",
"csjs-inject": "^1.0.1",
"csslint": "^1.0.2",
"cypress": "^4.1.0",
"deep-equal": "^1.0.1",
"dotenv": "^8.2.0",
"eslint": "6.8.0",
@ -188,6 +203,7 @@
"events": "^3.0.0",
"execr": "^1.0.1",
"exorcist": "^0.4.0",
"exports-loader": "^1.1.0",
"fast-async": "^7.0.6",
"fast-levenshtein": "^2.0.6",
"ganache-cli": "^6.8.1",
@ -195,6 +211,7 @@
"ipfs-mini": "^1.1.5",
"is-electron": "^2.2.0",
"javascript-serialize": "^1.6.1",
"jest": "25.2.3",
"jquery": "^3.3.1",
"js-base64": "^2.1.9",
"js-beautify": "1.6.14",
@ -210,7 +227,14 @@
"nyc": "^13.3.0",
"onchange": "^3.2.1",
"prettier": "1.19.1",
"remix-analyzer": "0.5.2",
"remix-astwalker": "0.0.24",
"remix-debug": "0.4.4",
"remix-lib": "0.4.29",
"remix-simulator": "0.1.9-beta.5",
"remix-solidity": "0.3.30",
"remix-tabs": "1.0.48",
"remix-tests": "0.1.33",
"remixd": "0.1.8-alpha.16",
"request": "^2.83.0",
"rimraf": "^2.6.1",
@ -220,6 +244,7 @@
"swarmgw": "^0.3.1",
"tap-spec": "^5.0.0",
"tape": "^4.13.3",
"ts-jest": "25.2.1",
"ts-node": "~7.0.0",
"tslint": "~6.0.0",
"typescript": "~3.8.3",
@ -228,7 +253,9 @@
"watchify": "^3.9.0",
"web3": "1.2.4",
"webworkify": "^1.2.1",
"yo-yo": "^1.2.2",
"yo-yoify": "^3.7.3"
"worker-loader": "^2.0.0",
"yo-yo": "github:ioedeveloper/yo-yo",
"yo-yoify": "^3.7.3",
"webworkify-webpack": "^2.1.5"
}
}

@ -21,7 +21,7 @@
"@remix-project/remix-debug": ["libs/remix-debug/index.js"],
"@remix-project/remix-lib": ["libs/remix-lib/index.js"],
"@remix-project/remix-simulator": ["libs/remix-simulator/index.js"],
"@remix-project/remix-solidity": ["libs/remix-solidity/src/index.ts"],
"@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"],
"@remix-project/remix-tests": ["libs/remix-tests/src/index.ts"],
"@remix-project/remix-url-resolver": ["libs/remix-url-resolver/src/index.ts"]
}

@ -8,33 +8,56 @@
"schematics": {},
"architect": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"builder": "@nrwl/web:build",
"options": {
"commands": [
{
"command": "browserify apps/remix-ide/src/index.js -o apps/remix-ide/build/app.js --exclude solc"
}
]
}
},
"start": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "npm-run-all -lpr serve watch onchange remixd"
}
]
"outputPath": "dist/apps/remix-ide",
"index": "apps/remix-ide/src/webpack.index.html",
"main": "apps/remix-ide/src/main.js",
"polyfills": "apps/remix-ide/src/polyfills.js",
"tsConfig": "apps/remix-ide/tsconfig.app.json",
"assets": [
"apps/remix-ide/src/assets",
"apps/remix-ide/src/index.html"
],
"styles": [],
"scripts": [],
"webpackConfig": "apps/remix-ide/webpack.config.js",
"maxWorkers": 6
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "apps/remix-ide/src/environments/environment.js",
"with": "apps/remix-ide/src/environments/environment.prod.js"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@nrwl/workspace:run-commands",
"builder": "@nrwl/web:dev-server",
"options": {
"commands": [
{
"command": "npx http-server ./apps/remix-ide"
}
]
"buildTarget": "remix-ide:build"
},
"configurations": {
"production": {
"buildTarget": "remix-ide:build:production"
}
}
},
"lint": {
@ -49,7 +72,8 @@
"apps/remix-ide/build/**/*.js",
"apps/remix-ide/src/app/editor/mode-solidity.js",
"apps/remix-ide/soljson.js",
"apps/remix-ide/assets/js/**/*.js"
"apps/remix-ide/assets/js/**/*.js",
"apps/remix-ide/src/assets/js/**/*.js"
]
}
},
@ -62,9 +86,7 @@
}
]
}
}
}
},
"remix-analyzer": {
@ -78,9 +100,7 @@
"options": {
"linter": "eslint",
"config": "libs/remix-analyzer/.eslintrc",
"tsConfig": [
"libs/remix-analyzer/tsconfig.lib.json"
],
"tsConfig": ["libs/remix-analyzer/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "libs/remix-analyzer/test/**/*"]
}
},
@ -118,9 +138,7 @@
"options": {
"linter": "eslint",
"config": "libs/remix-astwalker/.eslintrc",
"tsConfig": [
"libs/remix-astwalker/tsconfig.lib.json"
],
"tsConfig": ["libs/remix-astwalker/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "libs/remix-astwalker/tests/**/*"]
}
},
@ -198,9 +216,7 @@
"options": {
"linter": "eslint",
"config": "libs/remix-lib/.eslintrc",
"files": [
"libs/remix-lib/**/*.js"
],
"files": ["libs/remix-lib/**/*.js"],
"exclude": ["**/node_modules/**", "libs/remix-lib/test/**/*"]
}
},
@ -389,7 +405,7 @@
}
},
"cli": {
"defaultCollection": "@nrwl/workspace"
"defaultCollection": "@nrwl/react"
},
"schematics": {
"@nrwl/workspace": {
@ -404,12 +420,15 @@
},
"@nrwl/react": {
"application": {
"linter": "eslint"
"style": "css",
"linter": "eslint",
"babel": true
},
"library": {
"linter": "eslint"
"component": {
"style": "css"
},
"storybook-configuration": {
"library": {
"style": "css",
"linter": "eslint"
}
},

Loading…
Cancel
Save