|
|
|
@ -56,10 +56,17 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
action: 'connectToLocalFileSystem', |
|
|
|
|
title: 'Import files with https', |
|
|
|
|
title: 'Connect to local filesystem with remixd', |
|
|
|
|
icon: 'fa-solid fa-desktop', |
|
|
|
|
placement: 'top', |
|
|
|
|
platforms: [appPlatformTypes.web] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
action: 'initializeWorkspaceAsGitRepo', |
|
|
|
|
title: 'Initialize workspace as a git repository', |
|
|
|
|
icon: 'fa-brands fa-git-alt', |
|
|
|
|
placement: 'top', |
|
|
|
|
platforms: [appPlatformTypes.web] |
|
|
|
|
} |
|
|
|
|
].filter( |
|
|
|
|
(item) => |
|
|
|
@ -143,6 +150,29 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => { |
|
|
|
|
</label> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
) |
|
|
|
|
} else if (action === 'initializeWorkspaceAsGitRepo') { |
|
|
|
|
return ( |
|
|
|
|
<CustomTooltip |
|
|
|
|
placement={placement as Placement} |
|
|
|
|
tooltipId="uploadFolderTooltip" |
|
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
|
tooltipText={<FormattedMessage id={`filePanel.${action}`} defaultMessage={title} />} |
|
|
|
|
key={`index-${action}-${placement}-${icon}`} |
|
|
|
|
> |
|
|
|
|
<label |
|
|
|
|
id={action} |
|
|
|
|
style={{ fontSize: '1.1rem', cursor: 'pointer' }} |
|
|
|
|
data-id={'fileExplorerUploadFolder' + action} |
|
|
|
|
className={icon + ' mx-1 remixui_menuItem'} |
|
|
|
|
key={`index-${action}-${placement}-${icon}`} |
|
|
|
|
onClick={() => { |
|
|
|
|
_paq.push(['trackEvent', 'fileExplorer', 'fileAction', action]) |
|
|
|
|
props.handleGitInit() |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
</label> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
) |
|
|
|
|
} else { |
|
|
|
|
return ( |
|
|
|
|
<CustomTooltip |
|
|
|
|