move TemplateType to index

pull/4550/head
yann300 9 months ago
parent c94b2de42e
commit f3051b815a
  1. 2
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  2. 9
      libs/remix-ui/workspace/src/lib/types/index.ts
  3. 2
      libs/remix-ui/workspace/src/lib/utils/constants.ts
  4. 8
      libs/remix-ui/workspace/src/lib/utils/types.ts

@ -2,7 +2,7 @@ import React from 'react'
import { bufferToHex } from '@ethereumjs/util'
import { hash } from '@remix-project/remix-lib'
import { TEMPLATE_METADATA, TEMPLATE_NAMES } from '../utils/constants'
import { TemplateType } from '../utils/types'
import { TemplateType } from '../types'
import IpfsHttpClient from 'ipfs-http-client'
import axios, { AxiosResponse } from 'axios'
import {

@ -56,6 +56,15 @@ export type WorkspaceMetadata = {
isGist: string
}
export type TemplateType = {
type: 'git' | 'plugin'
url?: string
branch?: string
name?: string
endpoint?: string
params?: any[]
}
export interface FilePanelType extends ViewPlugin {
setWorkspace: ({ name, isLocalhost }, setEvent: boolean) => void
createWorkspace: (name: string, workspaceTemplateName: string) => void

@ -1,4 +1,4 @@
import { TemplateType } from './types'
import { TemplateType } from '../types'
export const ROOT_PATH = '/'
export const solTestYml = `
name: Running Solidity Unit Tests

@ -1,8 +0,0 @@
export type TemplateType = {
type: 'git' | 'plugin'
url?: string
branch?: string
name?: string
endpoint?: string
params?: any[]
}
Loading…
Cancel
Save