changes as per call with Liana

pull/4930/head
Joseph Izang 8 months ago committed by Aniket
parent 999bc5d174
commit 8eac696b21
  1. 2
      apps/remix-ide/src/app/tabs/locales/en/home.json
  2. 2
      libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx
  3. 10
      libs/remix-ui/statusbar/src/css/statusbar.css
  4. 2
      libs/remix-ui/statusbar/src/lib/components/scamAlertStatus.tsx
  5. 14
      libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx
  6. 8
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -68,6 +68,6 @@
"home.seeAllTutorials": "See all tutorials", "home.seeAllTutorials": "See all tutorials",
"home.maintainedByRemix": "Maintained by Remix", "home.maintainedByRemix": "Maintained by Remix",
"home.gitCloneTooltip": "Clone a github repo to a new workspace", "home.gitCloneTooltip": "Clone a github repo to a new workspace",
"home.gistTooltip": "Import a gist to a workspace" "home.gistTooltip": "Import gist to a workspace"
} }

@ -314,7 +314,7 @@ contract HelloWorld {
<CustomTooltip placement={'top'} tooltipId="overlay-tooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="home.gistTooltip" />} tooltipTextClasses="border bg-light text-dark p-1 pr-3" <CustomTooltip placement={'top'} tooltipId="overlay-tooltip" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="home.gistTooltip" />} tooltipTextClasses="border bg-light text-dark p-1 pr-3"
> >
<button className="btn text-nowrap p-2 mr-2 border my-1" data-id="landingPageImportFromGistButton" onClick={() => importFromGist()}> <button className="btn text-nowrap p-2 mr-2 border my-1" data-id="landingPageImportFromGistButton" onClick={() => importFromGist()}>
Gist Open Gist Repo
</button> </button>
</CustomTooltip> </CustomTooltip>
</div> </div>

@ -8,6 +8,16 @@ remixui_statusbar:hover {
cursor: pointer; cursor: pointer;
} }
.remixui_statusbar_scamAlert
.remixui_statusbar_scamAlert:hover {
cursor: pointer;
}
.remixui_statusbar_aistatus
.remixui_statusbar_aistatus:hover {
cursor: pointer;
}
/** /**
* approximately same height with vscode statusbar * approximately same height with vscode statusbar
**/ **/

@ -15,7 +15,7 @@ export default function ScamAlertStatus ({ refs, getReferenceProps }: ScamAlertS
<CustomTooltip <CustomTooltip
tooltipText={"Scam Alerts"} tooltipText={"Scam Alerts"}
> >
<div className="mr-2 d-flex align-items-center justify-content-center" id="hTScamAlertSection" ref={refs.setReference} {...getReferenceProps()}> <div className="mr-2 d-flex align-items-center justify-content-center remixui_statusbar_scamAlert" id="hTScamAlertSection" ref={refs.setReference} {...getReferenceProps()}>
<span className="pr-2 far fa-exclamation-triangle text-white"></span> <span className="pr-2 far fa-exclamation-triangle text-white"></span>
<span className="text-white font-semibold small"> <span className="text-white font-semibold small">
<FormattedMessage id="home.scamAlert" /> <FormattedMessage id="home.scamAlert" />

@ -39,6 +39,20 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
icon: 'far fa-folder-upload', icon: 'far fa-folder-upload',
placement: 'top', placement: 'top',
platforms:[appPlatformTypes.web] platforms:[appPlatformTypes.web]
},
{
action: 'importFromIpfs',
title: 'Import files from ipfs',
icon: 'far fa-folder-arrow-down',
placement: 'top',
platforms: [appPlatformTypes.web, appPlatformTypes.desktop]
},
{
action: 'importFromHttps',
title: 'Import files with https',
icon: 'far fa-cloud-arrow-down',
placement: 'top',
platforms: [appPlatformTypes.web, appPlatformTypes.desktop]
} }
].filter( ].filter(
(item) => (item) =>

@ -240,6 +240,14 @@ export function Workspace() {
}) })
} }
const importFromIpfs = () => {
}
const importFromHttps = () => {
}
const cloneGitRepository = () => { const cloneGitRepository = () => {
global.modal( global.modal(
intl.formatMessage({ id: 'filePanel.workspace.clone' }), intl.formatMessage({ id: 'filePanel.workspace.clone' }),

Loading…
Cancel
Save