|
|
@ -244,40 +244,33 @@ function HomeTabFile({ plugin }: HomeTabFileProps) { |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<div className="d-flex flex-column"> |
|
|
|
<div className="d-flex flex-column"> |
|
|
|
<div className="d-flex flex-row"> |
|
|
|
<div className="d-flex flex-row"> |
|
|
|
|
|
|
|
<CustomTooltip |
|
|
|
|
|
|
|
placement={'top'} |
|
|
|
|
|
|
|
tooltipId="overlay-tooltip" |
|
|
|
|
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
|
|
|
|
tooltipText={<FormattedMessage id='home.startCodingPlayground' />} |
|
|
|
|
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
|
|
|
|
> |
|
|
|
<button className="btn btn-primary text-nowrap p-2 mr-2 border my-1" data-id="homeTabStartCoding" style={{ width: 'fit-content' }} onClick={() => startCoding()}> |
|
|
|
<button className="btn btn-primary text-nowrap p-2 mr-2 border my-1" data-id="homeTabStartCoding" style={{ width: 'fit-content' }} onClick={() => startCoding()}> |
|
|
|
<FormattedMessage id="home.startCoding" /> |
|
|
|
<FormattedMessage id="home.startCoding" /> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<label className="btn text-nowrap p-2 mr-2 border my-1" style={{ width: 'fit-content', cursor: 'pointer' }} htmlFor="openFileInput"> |
|
|
|
</CustomTooltip> |
|
|
|
<FormattedMessage id="home.openFile" /> |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
title="open file" |
|
|
|
|
|
|
|
type="file" |
|
|
|
|
|
|
|
id="openFileInput" |
|
|
|
|
|
|
|
onChange={(event) => { |
|
|
|
|
|
|
|
event.stopPropagation() |
|
|
|
|
|
|
|
plugin.verticalIcons.select('filePanel') |
|
|
|
|
|
|
|
uploadFile(event.target) |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
multiple |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<CustomTooltip |
|
|
|
<CustomTooltip |
|
|
|
placement={'top'} |
|
|
|
placement={'top'} |
|
|
|
tooltipId="overlay-tooltip" |
|
|
|
tooltipId="overlay-tooltip" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipText={<FormattedMessage id='home.openFile' />} |
|
|
|
tooltipText={<FormattedMessage id='home.openFileTooltip' />} |
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
> |
|
|
|
> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
<label className="btn p-2 mr-2 border my-1" style={{width: 'fit-content', cursor: 'pointer'}} htmlFor="openFileInput"> |
|
|
|
<label className="btn text-nowrap p-2 mr-2 border my-1" style={{ width: 'fit-content', cursor: 'pointer' }} htmlFor="openFileInput"> |
|
|
|
<FormattedMessage id='home.openFile' /> |
|
|
|
<FormattedMessage id="home.openFile" /> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<input |
|
|
|
<input |
|
|
|
title="open file" |
|
|
|
title="open file" |
|
|
|
type="file" |
|
|
|
type="file" |
|
|
|
id="openFileInput" |
|
|
|
id="openFileInput" |
|
|
|
onChange={ |
|
|
|
onChange={(event) => { |
|
|
|
(event) => { |
|
|
|
|
|
|
|
event.stopPropagation() |
|
|
|
event.stopPropagation() |
|
|
|
plugin.verticalIcons.select('filePanel') |
|
|
|
plugin.verticalIcons.select('filePanel') |
|
|
|
uploadFile(event.target) |
|
|
|
uploadFile(event.target) |
|
|
|