fixed thumbn.s

pull/5304/head
lianahus 3 months ago committed by yann300
parent b002143f93
commit bdb157d412
  1. 7
      apps/remix-ide/src/app/plugins/remixGuide.tsx
  2. 8
      apps/remix-ide/src/app/plugins/remixGuideData.json
  3. 2
      apps/remix-ide/src/remixAppManager.js
  4. 8
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -7,6 +7,7 @@ import { RemixUIGridView } from '@remix-ui/remix-ui-grid-view'
import { RemixUIGridSection } from '@remix-ui/remix-ui-grid-section' import { RemixUIGridSection } from '@remix-ui/remix-ui-grid-section'
import { RemixUIGridCell } from '@remix-ui/remix-ui-grid-cell' import { RemixUIGridCell } from '@remix-ui/remix-ui-grid-cell'
import * as Data from './remixGuideData.json' import * as Data from './remixGuideData.json'
import './remixGuide.css'
//@ts-ignore //@ts-ignore
const _paq = (window._paq = window._paq || []) const _paq = (window._paq = window._paq || [])
@ -123,6 +124,7 @@ export class RemixGuidePlugin extends ViewPlugin {
plugin={this} plugin={this}
title={cell.title} title={cell.title}
tagList={cell.tagList} tagList={cell.tagList}
classList='RGCellStyle'
expandViewEl={ expandViewEl={
cell.expandViewElement cell.expandViewElement
} }
@ -134,10 +136,9 @@ export class RemixGuidePlugin extends ViewPlugin {
this.renderComponent() this.renderComponent()
}} }}
logo={cell.expandViewElement.logo} logo={cell.expandViewElement.logo}
logoURL={"https://www.youtube.com/@" + cell.authorURL}
> >
<a href={"https://www.youtube.com/@" + cell.authorURL} target="__blank"> <img src={"//img.youtube.com/vi/" + cell.expandViewElement.videoID + "/0.jpg"} style={{ height: '100px', width: 'fit-content' }}></img>
<img src={"//img.youtube.com/vi/" + this.videoID + "/0.jpg"} style={{ height: '70px', width: '70px' }}></img>
</a>
</RemixUIGridCell> </RemixUIGridCell>
})} })}
</RemixUIGridSection> </RemixUIGridSection>

@ -5,7 +5,7 @@
"sections": [ "sections": [
{ {
"title": "Remix Basics", "title": "Remix Basics",
"hScrollable": "true", "hScrollable": "false",
"cells": [ "cells": [
{ {
"title": "Intro to Remix", "title": "Intro to Remix",
@ -73,7 +73,7 @@
}, },
{ {
"title": "Solidity Basics", "title": "Solidity Basics",
"hScrollable": "true", "hScrollable": "false",
"cells": [ "cells": [
{ {
"title": "Hello World", "title": "Hello World",
@ -140,7 +140,7 @@
}, },
{ {
"title": "Remix Techniques", "title": "Remix Techniques",
"hScrollable": "true", "hScrollable": "false",
"cells": [ "cells": [
{ {
"title": "Proxy Contracts", "title": "Proxy Contracts",
@ -209,7 +209,7 @@
}, },
{ {
"title": "Low Level Solidity Videos", "title": "Low Level Solidity Videos",
"hScrollable": "true", "hScrollable": "false",
"cells": [ "cells": [
{ {
"title": "EVM Storage", "title": "EVM Storage",

@ -83,7 +83,7 @@ let requiredModules = [
'dgit', 'dgit',
'pinnedPanel', 'pinnedPanel',
'pluginStateLogger', 'pluginStateLogger',
'remixGuide', //'remixGuide',
'environmentExplorer', 'environmentExplorer',
'templateSelection', 'templateSelection',
'matomo', 'matomo',

@ -17,6 +17,7 @@ interface RemixUIGridCellProps {
pinStateCallback?: any pinStateCallback?: any
logo?: string logo?: string
logos?: string[] logos?: string[]
logoURL?: string
title: string title: string
hideTitle?: boolean hideTitle?: boolean
tagList?: string[] // max 8, others will be ignored tagList?: string[] // max 8, others will be ignored
@ -77,7 +78,12 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
<div className={ `${pinned ? "" : "border-dark "}` + "d-flex mx-0 p-2 bg-light border border-secondary remixui_grid_cell_container " + props.classList || ''} data-id={"remixUIGS" + props.title}> <div className={ `${pinned ? "" : "border-dark "}` + "d-flex mx-0 p-2 bg-light border border-secondary remixui_grid_cell_container " + props.classList || ''} data-id={"remixUIGS" + props.title}>
<div className="d-flex remixui_grid_cell w-100 flex-column"> <div className="d-flex remixui_grid_cell w-100 flex-column">
{ !props.hideTitle && <div className='d-flex flex-row pb-1 mb-1 align-items-end' style={{ minWidth: '8rem', height: '1rem' }}> { !props.hideTitle && <div className='d-flex flex-row pb-1 mb-1 align-items-end' style={{ minWidth: '8rem', height: '1rem' }}>
{ props.logo && <img className='remixui_grid_view_logo mr-1' src={props.logo} style={{ width: '1rem', height: '1rem' }}/> } { props.logo && props.logoURL !== '' ?
<a href={props.logoURL} target="__blank">
<img className='remixui_grid_view_logo mr-1' src={props.logo} style={{ width: '1rem', height: '1rem' }}/>
</a> :
<img className='remixui_grid_view_logo mr-1' src={props.logo} style={{ width: '1rem', height: '1rem' }}/>
}
{ props.logos && props.logos.map((logo) => <img className='remixui_grid_view_logo mr-1' src={logo} style={{ width: '1rem', height: '1rem' }}/>)} { props.logos && props.logos.map((logo) => <img className='remixui_grid_view_logo mr-1' src={logo} style={{ width: '1rem', height: '1rem' }}/>)}
{ props.title && { props.title &&
<CustomTooltip <CustomTooltip

Loading…
Cancel
Save