add hightlights from a json file

pull/4372/head
aniket-engg 10 months ago committed by Aniket
parent f27ceed008
commit 01c52908ca
  1. 19
      libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx
  2. 10
      releaseDetails.json
  3. 1
      tsconfig.json

@ -4,6 +4,7 @@ import {FormattedMessage} from 'react-intl'
import {ThemeContext, themes} from '../themeContext' import {ThemeContext, themes} from '../themeContext'
import Carousel from 'react-multi-carousel' import Carousel from 'react-multi-carousel'
import 'react-multi-carousel/lib/styles.css' import 'react-multi-carousel/lib/styles.css'
const releaseDetails = require('./../../../../../../releaseDetails.json')
const _paq = (window._paq = window._paq || []) // eslint-disable-line const _paq = (window._paq = window._paq || []) // eslint-disable-line
@ -73,28 +74,26 @@ function HomeTabFeatured() {
</div> </div>
</div> </div>
<div className="mr-1 pr-1 d-flex"> <div className="mr-1 pr-1 d-flex">
<a href="https://medium.com/remix-ide/remix-release-v0-38-0-dccd551b6f1e" target="__blank"> <a href={releaseDetails.moreLink} target="__blank">
<img src={'assets/img/remi_drums_whatsnew.webp'} style={{flex: '1', height: '170px', maxWidth: '170px'}} alt=""></img> <img src={'assets/img/remi_drums_whatsnew.webp'} style={{flex: '1', height: '170px', maxWidth: '170px'}} alt=""></img>
</a> </a>
<div className="h6 w-50 p-2 pl-4 align-self-center" style={{flex: '1'}}> <div className="h6 w-50 p-2 pl-4 align-self-center" style={{flex: '1'}}>
<h5> <h5>{releaseDetails.version} {releaseDetails.title}</h5>
<FormattedMessage id="homeReleaseDetails.title" />
</h5>
<div style={{fontSize: '0.8rem'}} className="mb-3"> <div style={{fontSize: '0.8rem'}} className="mb-3">
<ul> <ul>
<li style={{padding: '0.15rem'}}><FormattedMessage id="homeReleaseDetails.highlight1" /></li> { releaseDetails.highlight1 ? <li style={{padding: '0.15rem'}}>{releaseDetails.highlight1}</li> : '' }
<li style={{padding: '0.15rem'}}><FormattedMessage id="homeReleaseDetails.highlight2" /></li> { releaseDetails.highlight2 ? <li style={{padding: '0.15rem'}}>{releaseDetails.highlight2}</li> : '' }
<li style={{padding: '0.15rem'}}><FormattedMessage id="homeReleaseDetails.highlight3" /></li> { releaseDetails.highlight3 ? <li style={{padding: '0.15rem'}}>{releaseDetails.highlight3}</li> : '' }
<li style={{padding: '0.15rem'}}><FormattedMessage id="homeReleaseDetails.highlight4" /></li> { releaseDetails.highlight4 ? <li style={{padding: '0.15rem'}}>{releaseDetails.highlight4}</li> : '' }
</ul> </ul>
</div> </div>
<a <a
className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3" className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3"
onClick={() => _paq.push(['trackEvent', 'hometab', 'featuredSection', 'seeFullChangelog'])} onClick={() => _paq.push(['trackEvent', 'hometab', 'featuredSection', 'seeFullChangelog'])}
target="__blank" target="__blank"
href="https://medium.com/remix-ide/remix-release-v0-38-0-dccd551b6f1e" href={releaseDetails.moreLink}
> >
<FormattedMessage id="homeReleaseDetails.more" /> {releaseDetails.more}
</a> </a>
</div> </div>
</div> </div>

@ -0,0 +1,10 @@
{
"version": "v0.38.0",
"title": "RELEASE HIGHLIGHTS",
"highlight1": "Alpha release for Solidity co-pilot",
"highlight2": "Define Solidity remappings in remappings.txt file",
"highlight3": "Run free function for any selected environment",
"highlight4": "New Circom ZKP templates: Hash Checker & Rate Limiting Nullifier",
"more": "Read More",
"moreLink": "https://medium.com/remix-ide/remix-release-v0-38-0-dccd551b6f1e"
}

@ -8,6 +8,7 @@
"declaration": false, "declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"resolveJsonModule": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"importHelpers": true, "importHelpers": true,
"target": "ES2015", "target": "ES2015",

Loading…
Cancel
Save