saveSampleCodeWorkspace()} className="far fa-exclamation-triangle text-warning ml-2 align-self-center" aria-hidden="true">
}
+
+ {selectedWorkspace && selectedWorkspace.isGist && selectedWorkspace.isGist} direction="bottom" icon="far fa-copy">
+
+
+ }
+
@@ -1077,11 +1078,10 @@ export function Workspace() {
)}
{!(global.fs.browser.isRequestingWorkspace || global.fs.browser.isRequestingCloning) && global.fs.mode === 'browser' && currentWorkspace !== NO_WORKSPACE && (
-
void
createWorkspace: (name: string, workspaceTemplateName: string) => void
@@ -155,10 +173,10 @@ export interface FileExplorerContextMenuProps {
renamePath: (path: string, type: string) => void
downloadPath: (path: string) => void
hideContextMenu: () => void
- publishToGist?: (path?: string, type?: string) => void
- pushChangesToGist?: (path?: string, type?: string) => void
- publishFolderToGist?: (path?: string, type?: string) => void
- publishFileToGist?: (path?: string, type?: string) => void
+ publishToGist?: (path?: string) => void
+ pushChangesToGist?: (path?: string) => void
+ publishFolderToGist?: (path?: string) => void
+ publishFileToGist?: (path?: string) => void
runScript?: (path: string) => void
emit?: (cmd: customAction) => void
pageX: number
@@ -319,4 +337,4 @@ export interface Action {
export type Actions = {[A in keyof ActionPayloadTypes]: Action}[keyof ActionPayloadTypes]
-export type WorkspaceElement = 'folder' | 'gist' | 'file' | 'workspace'
+export type WorkspaceElement = 'folder' | 'file' | 'workspace'
diff --git a/libs/remix-ui/workspace/src/lib/utils/constants.ts b/libs/remix-ui/workspace/src/lib/utils/constants.ts
index e5a4b21523..823bcabdc3 100644
--- a/libs/remix-ui/workspace/src/lib/utils/constants.ts
+++ b/libs/remix-ui/workspace/src/lib/utils/constants.ts
@@ -1,4 +1,4 @@
-import { TemplateType } from './types'
+import { TemplateType } from '../types'
export const ROOT_PATH = '/'
export const solTestYml = `
name: Running Solidity Unit Tests
diff --git a/libs/remix-ui/workspace/src/lib/utils/index.ts b/libs/remix-ui/workspace/src/lib/utils/index.ts
index 7af6507785..d29b524163 100644
--- a/libs/remix-ui/workspace/src/lib/utils/index.ts
+++ b/libs/remix-ui/workspace/src/lib/utils/index.ts
@@ -1,18 +1,18 @@
import { appPlatformTypes } from '@remix-ui/app'
import { FileType } from '@remix-ui/file-decorators'
-import { WorkspaceProps, MenuItems } from '../types'
+import { MenuItems } from '../types'
export const contextMenuActions: MenuItems = [{
id: 'newFile',
name: 'New File',
- type: ['folder', 'gist', 'workspace'],
+ type: ['folder', 'workspace'],
multiselect: false,
label: '',
group: 0
}, {
id: 'newFolder',
name: 'New Folder',
- type: ['folder', 'gist', 'workspace'],
+ type: ['folder', 'workspace'],
multiselect: false,
label: '',
group: 0
@@ -26,7 +26,7 @@ export const contextMenuActions: MenuItems = [{
}, {
id: 'delete',
name: 'Delete',
- type: ['file', 'folder', 'gist'],
+ type: ['file', 'folder'],
multiselect: false,
label: '',
group: 0
@@ -80,14 +80,6 @@ export const contextMenuActions: MenuItems = [{
multiselect: false,
label: '',
group: 3
-}, {
- id: 'pushChangesToGist',
- name: 'Push changes to gist',
- type: ['gist'],
- multiselect: false,
- label: '',
- group: 4,
- platform: appPlatformTypes.web
}, {
id: 'publishFolderToGist',
name: 'Publish folder to gist',
@@ -107,21 +99,12 @@ export const contextMenuActions: MenuItems = [{
}, {
id: 'uploadFile',
name: 'Load a Local File',
- type: ['folder', 'gist', 'workspace'],
+ type: ['folder', 'workspace'],
multiselect: false,
label: 'Load a Local File',
group: 4,
platform: appPlatformTypes.web
-}, {
- id: 'publishToGist',
- name: 'Push changes to gist',
- type: ['folder', 'gist'],
- multiselect: false,
- label: 'Publish all to Gist',
- group: 4,
- platform: appPlatformTypes.web
-},
-{
+},{
id: 'publishWorkspace',
name: 'Publish Workspace to Gist',
type: ['workspace'],
diff --git a/libs/remix-ui/workspace/src/lib/utils/types.ts b/libs/remix-ui/workspace/src/lib/utils/types.ts
deleted file mode 100644
index 750001bca5..0000000000
--- a/libs/remix-ui/workspace/src/lib/utils/types.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export type TemplateType = {
- type: 'git' | 'plugin'
- url?: string
- branch?: string
- name?: string
- endpoint?: string
- params?: any[]
- }
\ No newline at end of file