diff --git a/.github/workflows/publish-action.yml b/.github/workflows/publish-action.yml index 8177b58ed2..9cf0674850 100644 --- a/.github/workflows/publish-action.yml +++ b/.github/workflows/publish-action.yml @@ -17,7 +17,7 @@ jobs: - run: pwd - run: yarn run downloadsolc_assets - run: yarn run build:production - - run: echo "action_state=$('./apps/remix-ide/ci/publishIpfs' ${{ secrets.IPFS_PROJECT_ID }} ${{ secrets.IPFS_PROJECT_SECRET }})" >> $GITHUB_ENV + - run: echo "action_state=$('./apps/remix-ide/ci/publishIpfs' ${{ secrets.IPFS_PROJET_ID }} ${{ secrets.IPFS_PROJECT_SECRET }})" >> $GITHUB_ENV - uses: mshick/add-pr-comment@v1 with: message: | diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index 7adcf9d1fe..e7ae4763df 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/apps/remix-ide/src/app/files/fileManager.ts @@ -219,7 +219,6 @@ class FileManager extends Plugin { * @returns {string} content of the file */ async readFile(path) { - try { path = this.normalize(path) path = this.limitPluginScope(path) @@ -227,7 +226,6 @@ class FileManager extends Plugin { await this._handleIsFile(path, `Cannot read file ${path}`) return this.getFileContent(path) } catch (e) { - console.trace(e) throw new Error(e) } } diff --git a/apps/remix-ide/src/app/files/fileSystem.ts b/apps/remix-ide/src/app/files/fileSystem.ts index 033a1679e0..80b7663680 100644 --- a/apps/remix-ide/src/app/files/fileSystem.ts +++ b/apps/remix-ide/src/app/files/fileSystem.ts @@ -19,10 +19,9 @@ export class fileSystem { checkWorkspaces = async () => { try { await this.fs.stat('.workspaces') - console.log('Workspaces found in', this.name) this.hasWorkSpaces = true } catch (e) { - console.log('No workspaces found in', this.name) + } } @@ -50,7 +49,6 @@ export class fileSystems { return true } catch (e) { console.log(fs.name + ' not available...') - console.log(e) return false } } diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index 80ebef6131..23a53846f7 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -103,8 +103,7 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA } compile (fileName) { - if(this.currentRequest.from !== 'contextualListener') - this.call('notification', 'toast', compileToastMsg(this.currentRequest.from, fileName)) + this.call('notification', 'toast', compileToastMsg(this.currentRequest.from, fileName)) super.compile(fileName) } diff --git a/apps/remix-ide/src/assets/js/editor/darkTheme.js b/apps/remix-ide/src/assets/js/editor/darkTheme.js new file mode 100644 index 0000000000..f4059f60f7 --- /dev/null +++ b/apps/remix-ide/src/assets/js/editor/darkTheme.js @@ -0,0 +1,181 @@ +/* eslint-disable */ +ace.define("ace/theme/remixDark",["require","exports","module","ace/lib/dom"], function(acequire, exports, module) { + + exports.isDark = true; + exports.cssClass = "ace-remixDark"; + exports.cssText = ".ace-remixDark .ace_gutter {\ + background: #2a2c3f;\ + color: #8789a1;\ + border-right: 1px solid #282828;\ + }\ + .ace-remixDark .ace_gutter-cell.ace_warning {\ + background-image: none;\ + background: #FC0;\ + border-left: none;\ + padding-left: 0;\ + color: #000;\ + }\ + .ace-remixDark .ace_gutter-cell.ace_error {\ + background-position: -6px center;\ + background-image: none;\ + background: #F10;\ + border-left: none;\ + padding-left: 0;\ + color: #000;\ + }\ + .ace-remixDark .ace_print-margin {\ + border-left: 1px solid #555;\ + right: 0;\ + background: #1D1D1D;\ + }\ + .ace-remixDark {\ + background-color: #222336;\ + color: #d5d5e9;\ + }\ + .ace-remixDark .ace_cursor {\ + border-left: 2px solid #FFFFFF;\ + }\ + .ace-remixDark .ace_cursor.ace_overwrite {\ + border-left: 0px;\ + border-bottom: 1px solid #FFFFFF;\ + }\ + .ace-remixDark .ace_marker-layer .ace_selection {\ + background: #494836;\ + }\ + .ace-remixDark .ace_marker-layer .ace_step {\ + background: rgb(198, 219, 174);\ + }\ + .ace-remixDark .ace_marker-layer .ace_bracket {\ + margin: -1px 0 0 -1px;\ + border: 1px solid #FCE94F;\ + }\ + .ace-remixDark .ace_marker-layer .ace_active-line {\ + background: #262843;\ + }\ + .ace-remixDark .ace_gutter-active-line {\ + background-color: #363950;\ + }\ + .ace-remixDark .ace_invisible {\ + color: #404040;\ + }\ + .ace-remixDark .ace_rparen {\ + color: #d4d7ed;\ + }\ + .ace-remixDark .ace_lparen {\ + color: #d4d7ed;\ + }\ + .ace-remixDark .ace_keyword {\ + color:#ffa76d;\ + }\ + .ace-remixDark .ace_keyword.ace_operator {\ + color:#eceeff;\ + }\ + .ace-remixDark .ace_constant {\ + color:#1EDAFB;\ + }\ + .ace-remixDark .ace_constant.ace_language {\ + color:#FDC251;\ + }\ + .ace-remixDark .ace_constant.ace_library {\ + color:#8DFF0A;\ + }\ + .ace-remixDark .ace_constant.ace_numeric {\ + color:#eceeff;\ + }\ + .ace-remixDark .ace_invalid {\ + color:#FFFFFF;\ + background-color:#990000;\ + }\ + .ace-remixDark .ace_invalid.ace_deprecated {\ + color:#FFFFFF;\ + background-color:#990000;\ + }\ + .ace-remixDark .ace_support {\ + color: #999;\ + }\ + .ace-remixDark .ace_support.ace_function {\ + color:#3fe2a7;\ + }\ + .ace-remixDark .ace_function {\ + color:#3fe2a7;\ + }\ + .ace-remixDark .ace_string {\ + color:#eceeff;\ + }\ + .ace-remixDark .ace_comment {\ + color:#a7a7a7;\ + font-style:italic;\ + padding-bottom: 0px;\ + }\ + .ace-remixDark .ace_type {\ + color:#75ceef;\ + }\ + .ace-remixDark .ace_visibility {\ + color:#f7d777;\ + }\ + .ace-remixDark .ace_identifier {\ + color:#bec1dd;\ + }\ + .ace-remixDark .ace_modifier {\ + color:#efff2f;\ + }\ + .ace-remixDark .ace-boolean {\ + color:#ff86ac;\ + }\ + .ace-remixDark .ace_statemutability {\ + color:#FFCC00;\ + }\ + .ace-remixDark .ace_variable {\ + color:#e0bb83;\ + }\ + .ace-remixDark .ace_meta.ace_tag {\ + color:#BE53E6;\ + }\ + .ace-remixDark .ace_entity.ace_other.ace_attribute-name {\ + color:#4aa8fd;\ + }\ + .ace-remixDark .ace_markup.ace_underline {\ + text-decoration: underline;\ + }\ + .ace-remixDark .ace_fold-widget {\ + text-align: center;\ + }\ + .ace-remixDark .ace_fold-widget:hover {\ + color: #777;\ + }\ + .ace-remixDark .ace_fold-widget.ace_start,\ + .ace-remixDark .ace_fold-widget.ace_end,\ + .ace-remixDark .ace_fold-widget.ace_closed{\ + background: none;\ + border: none;\ + box-shadow: none;\ + }\ + .ace-remixDark .ace_fold-widget.ace_start:after {\ + content: '▾'\ + }\ + .ace-remixDark .ace_fold-widget.ace_end:after {\ + content: '▴'\ + }\ + .ace-remixDark .ace_fold-widget.ace_closed:after {\ + content: '‣'\ + }\ + .ace-remixDark .ace_indent-guide {\ + border-right:1px dotted #333;\ + margin-right:-1px;\ + }\ + .ace-remixDark .ace_fold { \ + background: #222; \ + border-radius: 3px; \ + color: #7AF; \ + border: none; \ + }\ + .ace-remixDark .ace_fold:hover {\ + background: #CCC; \ + color: #000;\ + }\ + "; + + var dom = acequire("../lib/dom"); + dom.importCssString(exports.cssText, exports.cssClass); + + }); \ No newline at end of file