|
|
@ -80,6 +80,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { |
|
|
|
|
|
|
|
|
|
|
|
const remiAudioEl = useRef(null) |
|
|
|
const remiAudioEl = useRef(null) |
|
|
|
const inputValue = useRef(null) |
|
|
|
const inputValue = useRef(null) |
|
|
|
|
|
|
|
const rightPanel = useRef(null) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
plugin.call('theme', 'currentTheme').then((theme) => { |
|
|
|
plugin.call('theme', 'currentTheme').then((theme) => { |
|
|
@ -97,7 +98,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { |
|
|
|
window.addEventListener('click', (event) => { |
|
|
|
window.addEventListener('click', (event) => { |
|
|
|
const target = event.target as Element |
|
|
|
const target = event.target as Element |
|
|
|
const id = target.id |
|
|
|
const id = target.id |
|
|
|
if (id !== 'remixIDEHomeTwitterbtn' && id !== 'remixIDEHomeMediumbtn') { |
|
|
|
if (id !== 'remixIDEHomeTwitterbtn' && id !== 'remixIDEHomeMediumbtn' && !rightPanel.current.contains(event.target)) { |
|
|
|
// todo check event.target
|
|
|
|
// todo check event.target
|
|
|
|
setState(prevState => { return { ...prevState, showMediaPanel: 'none' } }) |
|
|
|
setState(prevState => { return { ...prevState, showMediaPanel: 'none' } }) |
|
|
|
} |
|
|
|
} |
|
|
@ -266,7 +267,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<p className="mb-1"> |
|
|
|
<p className="mb-1"> |
|
|
|
<i className="mr-2 far fa-file-alt"></i> |
|
|
|
<i className="mr-2 far fa-file-alt"></i> |
|
|
|
<label className="ml-1 remixui_home_labelIt remixui_home_bigLabelSize} remixui_home_text" htmlFor="openFileInput"> |
|
|
|
<label className="ml-1 remixui_home_labelIt remixui_home_bigLabelSize remixui_home_text" htmlFor="openFileInput"> |
|
|
|
Open Files |
|
|
|
Open Files |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<input title="open file" type="file" id="openFileInput" onChange={(event) => { |
|
|
|
<input title="open file" type="file" id="openFileInput" onChange={(event) => { |
|
|
@ -334,9 +335,14 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { |
|
|
|
}} |
|
|
|
}} |
|
|
|
></button> |
|
|
|
></button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="mr-3 d-flex bg-light remixui_home_panels" style={ { visibility: state.showMediaPanel === 'none' ? 'hidden' : 'visible' } } id="remixIDEMediaPanels"> |
|
|
|
<div |
|
|
|
|
|
|
|
className="mr-3 d-flex bg-light remixui_home_panels" |
|
|
|
|
|
|
|
style={ { visibility: state.showMediaPanel === 'none' ? 'hidden' : 'visible' } } |
|
|
|
|
|
|
|
id="remixIDEMediaPanels" |
|
|
|
|
|
|
|
ref={rightPanel} |
|
|
|
|
|
|
|
> |
|
|
|
<div id="remixIDE_MediumBlock" className="p-2 mx-1 mt-3 mb-0 remixui_home_remixHomeMedia" style={ { maxHeight: maxHeight } }> |
|
|
|
<div id="remixIDE_MediumBlock" className="p-2 mx-1 mt-3 mb-0 remixui_home_remixHomeMedia" style={ { maxHeight: maxHeight } }> |
|
|
|
<div id="medium-widget" className="px-3 remixui_home_media" hidden={state.showMediaPanel !== 'medium'} style={ { maxHeight: elHeight } }> |
|
|
|
<div id="medium-widget" className="px-3 remixui_home_media" hidden={state.showMediaPanel !== 'medium'} style={ { maxHeight: '10000px' } }> |
|
|
|
<div |
|
|
|
<div |
|
|
|
id="retainable-rss-embed" |
|
|
|
id="retainable-rss-embed" |
|
|
|
data-rss="https://medium.com/feed/remix-ide" |
|
|
|
data-rss="https://medium.com/feed/remix-ide" |
|
|
@ -353,7 +359,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => { |
|
|
|
<div id="remixIDE_TwitterBlock" className="p-2 mx-1 mt-3 mb-0 remixui_home_remixHomeMedia" hidden={state.showMediaPanel !== 'twitter'} style={ { maxHeight: maxHeight, marginRight: '28px' } } > |
|
|
|
<div id="remixIDE_TwitterBlock" className="p-2 mx-1 mt-3 mb-0 remixui_home_remixHomeMedia" hidden={state.showMediaPanel !== 'twitter'} style={ { maxHeight: maxHeight, marginRight: '28px' } } > |
|
|
|
<div className="remixui_home_media" style={ { minHeight: elHeight } } > |
|
|
|
<div className="remixui_home_media" style={ { minHeight: elHeight } } > |
|
|
|
<a className="twitter-timeline" |
|
|
|
<a className="twitter-timeline" |
|
|
|
data-width="330" |
|
|
|
data-width="375" |
|
|
|
data-theme={ state.themeQuality.name } |
|
|
|
data-theme={ state.themeQuality.name } |
|
|
|
data-chrome="nofooter noheader transparent" |
|
|
|
data-chrome="nofooter noheader transparent" |
|
|
|
data-tweet-limit="18" |
|
|
|
data-tweet-limit="18" |
|
|
|