add tooltip for vyper repo clone button. update docs url

pull/4383/head^2
Joseph Izang 1 year ago committed by Aniket
parent e4b935b91e
commit cbcb2f0a40
  1. 19
      apps/vyper/src/app/app.tsx
  2. 6
      apps/vyper/src/profile.json

@ -13,6 +13,7 @@ import ToggleButton from 'react-bootstrap/ToggleButton'
import Button from 'react-bootstrap/Button'
import './app.css'
import { CustomTooltip } from '@remix-ui/helper'
interface AppState {
status: 'idle' | 'inProgress'
@ -71,20 +72,16 @@ const App: React.FC = () => {
return (
<main id="vyper-plugin">
<header>
<div className="title">
<img src={'assets/logo.svg'} alt="Vyper logo" />
<h4>yper Compiler</h4>
</div>
<a rel="noopener noreferrer" href="https://github.com/ethereum/remix-project/tree/master/apps/vyper" target="_blank">
<i className="fab fa-github"></i>
</a>
</header>
<section>
<div className="px-3 w-100">
<Button data-id="add-repository" className="w-100 text-dark bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}>
<CustomTooltip
placement="top"
tooltipText="Clone vyper examples. Switch to the Vyper workspace to see the examples."
>
<Button data-id="add-repository" className="w-100 text-dark bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}>
Clone Vyper examples repository
</Button>
</Button>
</CustomTooltip>
</div>
<ToggleButtonGroup name="remote" onChange={setEnvironment} type="radio" value={state.environment}>
<ToggleButton data-id="remote-compiler" variant="secondary" name="remote" value="remote">

@ -1,9 +1,9 @@
{
"name": "vyper",
"displayName": "Vyper",
"displayName": "Vyper Plugin",
"methods": ["getCompilationResult", "compile"],
"url": "https://ipfs-cluster.ethdevops.io/ipfs/QmbmPzUg7ghTKcF2eo64zm1k1LKdibYfqYmiqXkHKXks8r",
"documentation": "https://github.com/GrandSchtroumpf/vyper-remix",
"documentation": "https://remix-ide.readthedocs.io/en/latest/plugin_list.html",
"description": "Compile vyper contracts",
"kind": "compiler",
"icon": "data:image/svg+xml;base64,PHN2ZyBpZD0iRmxhdF9Mb2dvIiBkYXRhLW5hbWU9IkZsYXQgTG9nbyIgeG1sbn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DMuNCA1MTIgMCIgc3R5bGU9ImZpbGw6I2IyYjJiMiIvPjwvc3ZnPg==",
@ -11,4 +11,4 @@
"repo": "https://github.com/ethereum/remix-project/tree/master/apps/vyper",
"maintainedBy": "Remix",
"authorContact": "remix@ethereum.org"
}
}

Loading…
Cancel
Save