move gist publush to the workspace menu item

pull/4550/head
yann300 9 months ago
parent d9c484806c
commit d6aa344e68
  1. 3
      apps/remix-ide/src/app/tabs/locales/en/filePanel.json
  2. 14
      libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx
  3. 12
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx
  4. 1
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -62,7 +62,8 @@
"filePanel.compileForNahmii": "Compile for Nahmii",
"filePanel.createNewFile": "Create new file",
"filePanel.createNewFolder": "Create new folder",
"filePanel.publishToGist": "Publish workspace to GitHub gist",
"filePanel.publishToGist": "Publish to Gist",
"filePanel.workspace.publishToGist": "Publish workspace to GitHub gist",
"filePanel.uploadFile": "Upload files",
"filePanel.uploadFolder": "Upload folder",
"filePanel.updateGist": "Publish workspace to GitHub gist",

@ -26,20 +26,6 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
placement: 'top',
platforms:[appPlatformTypes.web, appPlatformTypes.desktop]
},
{
action: 'publishToGist',
title: 'Publish current workspace to GitHub gist',
icon: 'fab fa-github',
placement: 'top',
platforms:[appPlatformTypes.web]
},
{
action: 'updateGist',
title: 'Update the cdddurrent gist',
icon: 'fab fa-github',
placement: 'bottom-start',
platforms:[appPlatformTypes.web]
},
{
action: 'uploadFile',
title: 'Upload files into current workspace',

@ -9,6 +9,7 @@ export interface HamburgerMenuProps {
downloadCurrentWorkspace: () => void
deleteCurrentWorkspace: () => void
deleteAllWorkspaces: () => void
pushChangesToGist: () => void
cloneGitRepository: () => void
downloadWorkspaces: () => void
restoreBackup: () => void
@ -88,6 +89,17 @@ export function HamburgerMenu(props: HamburgerMenuProps) {
platforms={[appPlatformTypes.web]}
></HamburgerMenuItem>
<Dropdown.Divider className="border mb-0 mt-0 remixui_menuhr" style={{pointerEvents: 'none'}} />
<HamburgerMenuItem
kind="publishToGist"
fa="fab fa-github"
hideOption={hideWorkspaceOptions || hideLocalhostOptions}
actionOnClick={() => {
props.pushChangesToGist()
props.hideIconsMenu(!showIconsMenu)
}}
platforms={[appPlatformTypes.web]}
></HamburgerMenuItem>
<Dropdown.Divider className="border mb-0 mt-0 remixui_menuhr" style={{pointerEvents: 'none'}} />
<HamburgerMenuItem
kind="deleteAll"
fa="far fa-trash-alt"

@ -957,6 +957,7 @@ export function Workspace() {
downloadCurrentWorkspace={downloadCurrentWorkspace}
deleteCurrentWorkspace={deleteCurrentWorkspace}
deleteAllWorkspaces={deleteAllWorkspaces}
pushChangesToGist={pushChangesToGist}
cloneGitRepository={cloneGitRepository}
downloadWorkspaces={downloadWorkspaces}
restoreBackup={restoreBackup}

Loading…
Cancel
Save