From 67621094fd86da8544beff3696515ee758eb01c9 Mon Sep 17 00:00:00 2001 From: lianahus Date: Thu, 13 Jan 2022 18:55:07 +0100 Subject: [PATCH] dragbar z-index fixed, removed Optimism, added Cairo --- apps/remix-ide/src/assets/img/cairoLogo.webp | Bin 0 -> 6606 bytes apps/remix-ide/src/remixAppManager.js | 10 ---- .../src/lib/compiler-artefacts.ts | 5 -- .../remix-app/components/dragbar/dragbar.css | 4 +- .../src/lib/components/pluginButton.tsx | 25 +++++---- .../home-tab/src/lib/remix-ui-home-tab.css | 45 ++++++++-------- .../home-tab/src/lib/remix-ui-home-tab.tsx | 48 +++++++++--------- .../panel/src/lib/dragbar/dragbar.css | 2 +- .../remix-ui/run-tab/src/lib/actions/index.ts | 2 - 9 files changed, 66 insertions(+), 75 deletions(-) create mode 100644 apps/remix-ide/src/assets/img/cairoLogo.webp diff --git a/apps/remix-ide/src/assets/img/cairoLogo.webp b/apps/remix-ide/src/assets/img/cairoLogo.webp new file mode 100644 index 0000000000000000000000000000000000000000..b7210dfa3610f89fd4701b1bad2cf9a99b0f41e7 GIT binary patch literal 6606 zcmV;<88PNkNk&G-82|uRMM6+kP&iDv82|t;1Hyn1{|6+5|L4_+2}s<-9suCWlxEM} zaUf|Rc7mNaoU`W?Tg*=xPMP0ywlfyk!}yeKcDo+d=Du016bo~KEtuG?93p+(z0V&a z+`aGb_dM_WUqt^W066VgHLQE&n3%Zr+jb|ONWON{X0zGsh=_KZ&1SoKE%`*^?rrNA z$Bc>W9#+*8jO9u#`+xAo)}+*QRC#*p;jLeM&_ArAv16^%W8(5(FXyA?^DZSUpU}OI z)o8H>N5sS@=b~WkX$f)BVcv#_fBVrZkL97j3sd4_A_5Hzuhx^dUQUvJ68OrZW;#}l$)}Ob zDY12Qsq&LfBCVC<69aW7b9j6%61*T`u!nxs;Ijuv_WO(L=|Y}^6BVR=aztIF#Ko|7|>?OCy<^a0c0G-UmqXp;`m@+7kV_-ouNx6*++pff&*bLQx$ zs1w>ITiDj-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/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index d87b6ee1a9..d3cc735b3f 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -145,16 +145,6 @@ export class RemixAppManager extends PluginManager { pattern: [], sticky: true }) - await this.call('filePanel', 'registerContextMenuItem', { - id: 'optimism-compiler', - name: 'compileCustomAction', - label: 'Compile with Optimism', - type: [], - extension: ['.sol'], - path: [], - pattern: [], - sticky: true - }) } } diff --git a/libs/remix-core-plugin/src/lib/compiler-artefacts.ts b/libs/remix-core-plugin/src/lib/compiler-artefacts.ts index 715bd2e9c4..1198a012db 100644 --- a/libs/remix-core-plugin/src/lib/compiler-artefacts.ts +++ b/libs/remix-core-plugin/src/lib/compiler-artefacts.ts @@ -48,11 +48,6 @@ export class CompilerArtefacts extends Plugin { saveCompilationPerFileResult(file, source, languageVersion, data) }) - this.on('optimism-compiler', 'compilationFinished', (file, source, languageVersion, data) => { - this.compilersArtefacts.__last = new CompilerAbstract(languageVersion, data, source) - saveCompilationPerFileResult(file, source, languageVersion, data) - }) - this.on('solidityUnitTesting', 'compilationFinished', (file, source, languageVersion, data) => { this.compilersArtefacts.__last = new CompilerAbstract(languageVersion, data, source) saveCompilationPerFileResult(file, source, languageVersion, data) diff --git a/libs/remix-ui/app/src/lib/remix-app/components/dragbar/dragbar.css b/libs/remix-ui/app/src/lib/remix-app/components/dragbar/dragbar.css index 1330c1179c..44aa0598c1 100644 --- a/libs/remix-ui/app/src/lib/remix-app/components/dragbar/dragbar.css +++ b/libs/remix-ui/app/src/lib/remix-app/components/dragbar/dragbar.css @@ -7,7 +7,7 @@ left: 0px; top: 0px; width: 0.3em; - z-index: 9999; + z-index: 1000; } .overlay { @@ -17,7 +17,7 @@ width: 100vw; height: 100vh; display: block; - z-index: 9998; + z-index: 1000; } .dragbar:hover, diff --git a/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx b/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx index 468afc8756..06f108afe8 100644 --- a/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/pluginButton.tsx @@ -6,21 +6,26 @@ interface PluginButtonProps { imgPath: string, envID: string, envText: string, - callback: any + callback: any, + l2?: boolean } -function PluginButton ({ imgPath, envID, envText, callback }: PluginButtonProps) { +function PluginButton ({ imgPath, envID, envText, callback, l2 }: PluginButtonProps) { const themeFilter = useContext(ThemeContext) return ( - +
+ + { l2 && } + +
) } diff --git a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css index 6644f4988e..b6bba39140 100644 --- a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css +++ b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.css @@ -1,82 +1,85 @@ -.remixui_text { +.remixui_home_text { cursor: pointer; font-weight: normal; max-width: 300px; } -.remixui_text:hover { +.remixui_home_text:hover { cursor: pointer; text-decoration: underline; } -.remixui_homeContainer { +.remixui_home_homeContainer { overflow-y: hidden; overflow-y: auto; flex-grow: 3; } -.remixui_hpLogoContainer { +.remixui_home_hpLogoContainer { margin: 30px; padding-right: 90px; } -.remixui_mediaBadge { +.remixui_home_mediaBadge { font-size: 2em; height: 2em; width: 2em; } -.remixui_mediaBadge:focus { +.remixui_home_mediaBadge:focus { outline: none; } -.remixui_image { +.remixui_home_image { height: 1em; width: 1em; text-align: center; } -.remixui_logoImg { +.remixui_home_logoImg { height: 10em; } -.remixui_rightPanel { +.remixui_home_rightPanel { right: 0; position: absolute; z-index: 3; } -.remixui_remixHomeMedia { +.remixui_home_remixHomeMedia { overflow-y: auto; overflow-x: hidden; } -.remixui_panels { +.remixui_home_panels { box-shadow: 0px 0px 13px -7px; } -.remixui_labelIt { +.remixui_home_labelIt { margin-bottom: 0; } -.remixui_bigLabelSize { +.remixui_home_bigLabelSize { font-size: 13px; } -.remixui_seeAll { +.remixui_home_seeAll { margin-top: 7px; white-space: nowrap; } -.remixui_importFrom p { +.remixui_home_importFrom p { margin-right: 10px; } -.remixui_logoContainer img{ +.remixui_home_logoContainer img{ height: 150px; opacity: 0.7; } -.remixui_envLogo { +.remixui_home_envLogo { height: 16px; } -.remixui_cursorStyle { +.remixui_home_cursorStyle { cursor: pointer; } -.remixui_envButton { +.remixui_home_envButton { width: 120px; height: 70px; } -.remixui_media { +.remixui_home_media { overflow: hidden; max-width: 400px; transition: .5s ease-out; z-index: 1000; } -.remixui_migrationBtn { +.remixui_home_migrationBtn { width: 100px; } +.remixui_home_l2Label { + bottom: 10px; +} \ No newline at end of file diff --git a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx index c130d35a64..c29df17662 100644 --- a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx +++ b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx @@ -150,10 +150,10 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { plugin.verticalIcons.select('solidity') _paq.push(['trackEvent', 'pluginManager', 'userActivate', 'solidity']) } - const startOptimism = async () => { - await plugin.appManager.activatePlugin('optimism-compiler') - plugin.verticalIcons.select('optimism-compiler') - _paq.push(['trackEvent', 'pluginManager', 'userActivate', 'optimism-compiler']) + const startCairo = async () => { + await plugin.appManager.activatePlugin('cairo_compiler') + plugin.verticalIcons.select('cairo_compiler') + _paq.push(['trackEvent', 'pluginManager', 'userActivate', 'cairo_compiler']) } const startSolhint = async () => { await plugin.appManager.activatePlugin(['solidity', 'solhint']) @@ -232,7 +232,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
- playRemi() } alt=""> + playRemi() } alt="">
-
+

Featured Plugins

startSolidity()} /> - startOptimism()} /> + startCairo()} /> startSolhint()} /> startLearnEth()} /> startSourceVerify()} /> @@ -261,11 +261,11 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {

File

- createNewFile()}>New File + createNewFile()}>New File

- + Open Files { event.stopPropagation() @@ -275,7 +275,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {

- connectToLocalhost()}>Connect to Localhost + connectToLocalhost()}>Connect to Localhost

@@ -289,28 +289,28 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {

Resources

- Documentation + Documentation

- Gitter channel + Gitter channel

- - Featuring website + + Featuring website

- - switchToPreviousVersion()}>Old experience + + switchToPreviousVersion()}>Old experience

-