Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
ef631ccd
Commit
ef631ccd
authored
Oct 04, 2021
by
Admin
Committed by
Aniket
Oct 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting fix after version update
parent
aac08e4f
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
47 additions
and
37 deletions
+47
-37
.eslintrc
libs/remix-analyzer/.eslintrc
+2
-1
.eslintrc
libs/remix-astwalker/.eslintrc
+2
-1
astWalker.ts
libs/remix-astwalker/src/astWalker.ts
+1
-0
sourceMappings.ts
libs/remix-astwalker/src/sourceMappings.ts
+1
-0
.eslintrc
libs/remix-lib/.eslintrc
+2
-1
.eslintrc
libs/remix-solidity/.eslintrc
+2
-1
.eslintrc
libs/remix-tests/.eslintrc
+2
-1
types.ts
libs/remix-tests/src/types.ts
+1
-2
idebugger-api.ts
libs/remix-ui/debugger-ui/src/lib/idebugger-api.ts
+4
-4
index.ts
libs/remix-ui/debugger-ui/src/types/index.ts
+3
-3
file-explorer.tsx
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
+1
-1
index.ts
libs/remix-ui/file-explorer/src/lib/types/index.ts
+1
-1
remix-ui-modal-dialog.tsx
libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx
+1
-0
index.ts
libs/remix-ui/modal-dialog/src/lib/types/index.ts
+1
-0
ActivePluginCard.tsx
...ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
+1
-1
ActivePluginCardContainer.tsx
...-manager/src/lib/components/ActivePluginCardContainer.tsx
+1
-1
InactivePluginCard.tsx
.../plugin-manager/src/lib/components/InactivePluginCard.tsx
+1
-1
InactivePluginCardContainer.tsx
...anager/src/lib/components/InactivePluginCardContainer.tsx
+1
-1
LocalPluginForm.tsx
...-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
+1
-1
moduleHeading.tsx
...ix-ui/plugin-manager/src/lib/components/moduleHeading.tsx
+1
-1
permissionsSettings.tsx
...plugin-manager/src/lib/components/permissionsSettings.tsx
+1
-1
rootView.tsx
libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
+1
-1
remix-ui-plugin-manager.tsx
...mix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
+1
-1
types.d.ts
libs/remix-ui/plugin-manager/src/types.d.ts
+6
-5
publish-to-storage.tsx
...emix-ui/publish-to-storage/src/lib/publish-to-storage.tsx
+1
-1
solidity-compiler.tsx
.../remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx
+1
-1
index.ts
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
+3
-3
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+1
-1
index.ts
libs/remix-ui/tree-view/src/types/index.ts
+1
-0
remix-ui-workspace.tsx
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
+1
-1
No files found.
libs/remix-analyzer/.eslintrc
View file @
ef631ccd
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-unused-vars": "off",
"no-unused-vars": "off",
"dot-notation": "off"
"dot-notation": "off",
"no-use-before-define": "off"
},
},
"ignorePatterns": ["!**/*"]
"ignorePatterns": ["!**/*"]
}
}
libs/remix-astwalker/.eslintrc
View file @
ef631ccd
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
"rules": {
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
"no-unused-vars": "off"
"no-unused-vars": "off",
"no-use-before-define": "off"
},
},
"ignorePatterns": ["!**/*"]
"ignorePatterns": ["!**/*"]
}
}
libs/remix-astwalker/src/astWalker.ts
View file @
ef631ccd
...
@@ -39,6 +39,7 @@ export function isYulAstNode (node: Record<string, unknown>): boolean {
...
@@ -39,6 +39,7 @@ export function isYulAstNode (node: Record<string, unknown>): boolean {
* in each case, if the event emits false it does not descend into children.
* in each case, if the event emits false it does not descend into children.
* If no event for the current type, children are visited.
* If no event for the current type, children are visited.
*/
*/
// eslint-disable-next-line no-redeclare
export
class
AstWalker
extends
EventEmitter
{
export
class
AstWalker
extends
EventEmitter
{
manageCallback
(
manageCallback
(
node
:
AstNode
,
node
:
AstNode
,
...
...
libs/remix-astwalker/src/sourceMappings.ts
View file @
ef631ccd
...
@@ -58,6 +58,7 @@ export function sourceLocationFromSrc (src: string): Location {
...
@@ -58,6 +58,7 @@ export function sourceLocationFromSrc (src: string): Location {
* Routines for retrieving solc AST object(s) using some criteria, usually
* Routines for retrieving solc AST object(s) using some criteria, usually
* includng "src' information.
* includng "src' information.
*/
*/
// eslint-disable-next-line no-redeclare
export
class
SourceMappings
{
export
class
SourceMappings
{
readonly
source
:
string
;
readonly
source
:
string
;
readonly
lineBreaks
:
Array
<
number
>
;
readonly
lineBreaks
:
Array
<
number
>
;
...
...
libs/remix-lib/.eslintrc
View file @
ef631ccd
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
"rules": {
"rules": {
"standard/no-callback-literal": "off",
"standard/no-callback-literal": "off",
"no-unused-vars": "off",
"no-unused-vars": "off",
"dot-notation": "off"
"dot-notation": "off",
"no-use-before-define": "off"
},
},
"env": {
"env": {
"browser": true,
"browser": true,
...
...
libs/remix-solidity/.eslintrc
View file @
ef631ccd
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
"extends": "../../.eslintrc",
"extends": "../../.eslintrc",
"rules": {
"rules": {
"dot-notation": "off",
"dot-notation": "off",
"no-unused-vars": "off"
"no-unused-vars": "off",
"no-use-before-define": "off"
},
},
"env": {
"env": {
"browser": true,
"browser": true,
...
...
libs/remix-tests/.eslintrc
View file @
ef631ccd
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
"extends": "../../.eslintrc",
"extends": "../../.eslintrc",
"rules": {
"rules": {
"dot-notation": "off",
"dot-notation": "off",
"no-unused-vars": "off"
"no-unused-vars": "off",
"no-use-before-define": "off"
},
},
"env": {
"env": {
"browser": true,
"browser": true,
...
...
libs/remix-tests/src/types.ts
View file @
ef631ccd
...
@@ -58,13 +58,12 @@ export interface CompilerConfiguration {
...
@@ -58,13 +58,12 @@ export interface CompilerConfiguration {
usingWorker
?:
boolean
,
usingWorker
?:
boolean
,
runs
:
number
runs
:
number
}
}
export
interface
CompilationErrors
{
export
interface
CompilationErrors
{
name
:
string
,
name
:
string
,
errors
:
Array
<
Error
>
,
errors
:
Array
<
Error
>
,
message
:
string
message
:
string
}
}
// eslint-disable-next-line no-redeclare
export
class
CompilationErrors
extends
Error
{
export
class
CompilationErrors
extends
Error
{
constructor
(
errors
:
Array
<
any
>
)
{
constructor
(
errors
:
Array
<
any
>
)
{
const
mapError
=
errors
.
map
((
e
)
=>
{
return
e
.
formattedMessage
||
e
.
message
})
const
mapError
=
errors
.
map
((
e
)
=>
{
return
e
.
formattedMessage
||
e
.
message
})
...
...
libs/remix-ui/debugger-ui/src/lib/idebugger-api.ts
View file @
ef631ccd
import
type
{
CompilationResult
,
CompilationSource
}
from
'@remix-project/remix-solidity-ts'
// eslint-disable-line
import
type
{
CompilationResult
,
CompilationSource
}
from
'@remix-project/remix-solidity-ts'
// eslint-disable-line
export
interface
DebuggerUIProps
{
debuggerAPI
:
IDebuggerApi
}
export
interface
LineColumnLocation
{
export
interface
LineColumnLocation
{
start
:
{
start
:
{
line
:
number
,
column
:
number
line
:
number
,
column
:
number
...
@@ -68,3 +64,7 @@ export interface IDebuggerApi {
...
@@ -68,3 +64,7 @@ export interface IDebuggerApi {
web3
:
()
=>
any
// returns an instance of web3.js
web3
:
()
=>
any
// returns an instance of web3.js
showMessage
(
title
:
string
,
message
:
string
):
void
showMessage
(
title
:
string
,
message
:
string
):
void
}
}
export
interface
DebuggerUIProps
{
debuggerAPI
:
IDebuggerApi
}
libs/remix-ui/debugger-ui/src/types/index.ts
View file @
ef631ccd
/* eslint-disable no-undef */
export
interface
ExtractData
{
export
interface
ExtractData
{
children
?:
Array
<
{
key
:
number
|
string
,
value
:
ExtractData
}
>
children
?:
Array
<
{
key
:
number
|
string
,
value
:
ExtractData
}
>
self
?:
string
|
number
,
self
?:
string
|
number
,
...
@@ -13,7 +15,7 @@ export interface ExtractData {
...
@@ -13,7 +15,7 @@ export interface ExtractData {
}
}
export
type
ExtractFunc
=
(
json
:
any
,
parent
?:
any
)
=>
ExtractData
export
type
ExtractFunc
=
(
json
:
any
,
parent
?:
any
)
=>
ExtractData
export
type
FormatSelfFunc
=
(
key
:
string
|
number
,
data
:
ExtractData
)
=>
JSX
.
Element
export
interface
DropdownPanelProps
{
export
interface
DropdownPanelProps
{
dropdownName
:
string
,
dropdownName
:
string
,
dropdownMessage
?:
string
,
dropdownMessage
?:
string
,
...
@@ -32,5 +34,3 @@ export interface DropdownPanelProps {
...
@@ -32,5 +34,3 @@ export interface DropdownPanelProps {
headStyle
?:
React
.
CSSProperties
,
headStyle
?:
React
.
CSSProperties
,
hexHighlight
?:
boolean
// highlight non zero value of hex value
hexHighlight
?:
boolean
// highlight non zero value of hex value
}
}
export
type
FormatSelfFunc
=
(
key
:
string
|
number
,
data
:
ExtractData
)
=>
JSX
.
Element
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
View file @
ef631ccd
...
@@ -636,7 +636,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
...
@@ -636,7 +636,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
return
{
...
prevState
,
focusModal
:
{
...
state
.
focusModal
,
hide
:
true
}
}
return
{
...
prevState
,
focusModal
:
{
...
state
.
focusModal
,
hide
:
true
}
}
})
})
}
}
// eslint-disable-next-line no-undef
const
modal
=
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
{
const
modal
=
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
{
setState
(
prevState
=>
{
setState
(
prevState
=>
{
return
{
return
{
...
...
libs/remix-ui/file-explorer/src/lib/types/index.ts
View file @
ef631ccd
import
{
customAction
}
from
'@remixproject/plugin-api/lib/file-system/file-panel'
import
{
customAction
}
from
'@remixproject/plugin-api/lib/file-system/file-panel'
export
type
MenuItems
=
action
[]
// eslint-disable-line no-use-before-define
/* eslint-disable-next-line */
/* eslint-disable-next-line */
export
interface
FileExplorerProps
{
export
interface
FileExplorerProps
{
...
@@ -34,7 +35,6 @@ export interface FileExplorerMenuProps {
...
@@ -34,7 +35,6 @@ export interface FileExplorerMenuProps {
export
type
action
=
{
name
:
string
,
type
:
string
[],
path
:
string
[],
extension
:
string
[],
pattern
:
string
[],
id
:
string
,
multiselect
:
boolean
,
label
:
string
}
export
type
action
=
{
name
:
string
,
type
:
string
[],
path
:
string
[],
extension
:
string
[],
pattern
:
string
[],
id
:
string
,
multiselect
:
boolean
,
label
:
string
}
export
type
MenuItems
=
action
[]
export
interface
FileExplorerContextMenuProps
{
export
interface
FileExplorerContextMenuProps
{
actions
:
action
[],
actions
:
action
[],
createNewFile
:
(
folder
?:
string
)
=>
void
,
createNewFile
:
(
folder
?:
string
)
=>
void
,
...
...
libs/remix-ui/modal-dialog/src/lib/remix-ui-modal-dialog.tsx
View file @
ef631ccd
...
@@ -4,6 +4,7 @@ import { ModalDialogProps } from './types' // eslint-disable-line
...
@@ -4,6 +4,7 @@ import { ModalDialogProps } from './types' // eslint-disable-line
import
'./remix-ui-modal-dialog.css'
import
'./remix-ui-modal-dialog.css'
declare
global
{
declare
global
{
// eslint-disable-next-line no-unused-vars
interface
Window
{
testmode
:
boolean
;
}
interface
Window
{
testmode
:
boolean
;
}
}
}
...
...
libs/remix-ui/modal-dialog/src/lib/types/index.ts
View file @
ef631ccd
/* eslint-disable no-undef */
export
interface
ModalDialogProps
{
export
interface
ModalDialogProps
{
id
?:
string
id
?:
string
title
?:
string
,
title
?:
string
,
...
...
libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
View file @
ef631ccd
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars
, no-use-before-define
import
React
from
'react'
import
React
from
'react'
import
'../remix-ui-plugin-manager.css'
import
'../remix-ui-plugin-manager.css'
interface
PluginCardProps
{
interface
PluginCardProps
{
...
...
libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCardContainer.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
React
from
'react'
import
React
from
'react'
// eslint-disable-line no-use-before-define
import
{
PluginManagerComponent
}
from
'../../types'
import
{
PluginManagerComponent
}
from
'../../types'
import
ActivePluginCard
from
'./ActivePluginCard'
import
ActivePluginCard
from
'./ActivePluginCard'
import
ModuleHeading
from
'./moduleHeading'
import
ModuleHeading
from
'./moduleHeading'
...
...
libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCard.tsx
View file @
ef631ccd
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars
,no-use-before-define
import
React
from
'react'
import
React
from
'react'
import
'../remix-ui-plugin-manager.css'
import
'../remix-ui-plugin-manager.css'
interface
PluginCardProps
{
interface
PluginCardProps
{
...
...
libs/remix-ui/plugin-manager/src/lib/components/InactivePluginCardContainer.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
React
from
'react'
import
React
from
'react'
// eslint-disable-line no-use-before-define
import
{
PluginManagerComponent
,
PluginManagerProfile
}
from
'../../types'
import
{
PluginManagerComponent
,
PluginManagerProfile
}
from
'../../types'
import
InactivePluginCard
from
'./InactivePluginCard'
import
InactivePluginCard
from
'./InactivePluginCard'
import
ModuleHeading
from
'./moduleHeading'
import
ModuleHeading
from
'./moduleHeading'
...
...
libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
React
,
{
useEffect
,
useReducer
,
useState
}
from
'react'
import
React
,
{
useEffect
,
useReducer
,
useState
}
from
'react'
// eslint-disable-line no-use-before-define
import
{
ModalDialog
}
from
'@remix-ui/modal-dialog'
import
{
ModalDialog
}
from
'@remix-ui/modal-dialog'
import
{
Toaster
}
from
'@remix-ui/toaster'
import
{
Toaster
}
from
'@remix-ui/toaster'
import
{
IframePlugin
,
WebsocketPlugin
}
from
'@remixproject/engine-web'
import
{
IframePlugin
,
WebsocketPlugin
}
from
'@remixproject/engine-web'
...
...
libs/remix-ui/plugin-manager/src/lib/components/moduleHeading.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars
,no-use-before-define
*/
import
React
from
'react'
import
React
from
'react'
interface
ModuleHeadingProps
{
interface
ModuleHeadingProps
{
...
...
libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
React
,
{
Fragment
,
useState
}
from
'react'
import
React
,
{
Fragment
,
useState
}
from
'react'
// eslint-disable-line no-use-before-define
/* eslint-disable-line */
/* eslint-disable-line */
import
{
ModalDialog
}
from
'@remix-ui/modal-dialog'
import
{
ModalDialog
}
from
'@remix-ui/modal-dialog'
import
useLocalStorage
from
'../custom-hooks/useLocalStorage'
import
useLocalStorage
from
'../custom-hooks/useLocalStorage'
...
...
libs/remix-ui/plugin-manager/src/lib/components/rootView.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
React
,
{
Fragment
,
ReactNode
,
useEffect
,
useState
}
from
'react'
import
React
,
{
Fragment
,
ReactNode
,
useEffect
,
useState
}
from
'react'
// eslint-disable-line no-use-before-define
import
{
PluginManagerComponent
,
PluginManagerSettings
}
from
'../../types'
import
{
PluginManagerComponent
,
PluginManagerSettings
}
from
'../../types'
import
PermisssionsSettings
from
'./permissionsSettings'
import
PermisssionsSettings
from
'./permissionsSettings'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
...
...
libs/remix-ui/plugin-manager/src/lib/remix-ui-plugin-manager.tsx
View file @
ef631ccd
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
{
Profile
}
from
'@remixproject/plugin-utils'
import
React
,
{
useState
}
from
'react'
import
React
,
{
useState
}
from
'react'
// eslint-disable-line no-use-before-define
import
{
RemixUiPluginManagerProps
}
from
'../types'
import
{
RemixUiPluginManagerProps
}
from
'../types'
import
ActivePluginCardContainer
from
'./components/ActivePluginCardContainer'
import
ActivePluginCardContainer
from
'./components/ActivePluginCardContainer'
import
InactivePluginCardContainer
from
'./components/InactivePluginCardContainer'
import
InactivePluginCardContainer
from
'./components/InactivePluginCardContainer'
...
...
libs/remix-ui/plugin-manager/src/types.d.ts
View file @
ef631ccd
...
@@ -32,7 +32,7 @@ export class RemixAppManager extends PluginManager {
...
@@ -32,7 +32,7 @@ export class RemixAppManager extends PluginManager {
constructor
()
constructor
()
event
:
EventEmitter
event
:
EventEmitter
pluginsDirectory
:
string
pluginsDirectory
:
string
pluginLoader
:
PluginLoader
pluginLoader
:
PluginLoader
// eslint-disable-line no-use-before-define
permissionHandler
:
PermissionHandler
permissionHandler
:
PermissionHandler
getAll
():
import
(
'@remixproject/plugin-utils'
).
Profile
<
any
>
[]
getAll
():
import
(
'@remixproject/plugin-utils'
).
Profile
<
any
>
[]
getIds
():
string
[]
getIds
():
string
[]
...
@@ -70,11 +70,11 @@ export class PluginManagerComponent extends ViewPlugin extends Plugin implements
...
@@ -70,11 +70,11 @@ export class PluginManagerComponent extends ViewPlugin extends Plugin implements
constructor
(
appManager
:
RemixAppManager
,
engine
:
Engine
)
constructor
(
appManager
:
RemixAppManager
,
engine
:
Engine
)
appManager
:
RemixAppManager
appManager
:
RemixAppManager
pluginSettings
:
PluginManagerSettings
pluginSettings
:
PluginManagerSettings
app
:
PluginApi
<
any
>
app
:
PluginApi
<
any
>
// eslint-disable-line no-undef
engine
:
Engine
engine
:
Engine
htmlElement
:
HTMLDivElement
htmlElement
:
HTMLDivElement
views
:
{
root
:
null
,
items
:
{}
}
views
:
{
root
:
null
,
items
:
{}
}
localPlugin
:
LocalPlugin
localPlugin
:
LocalPlugin
// eslint-disable-line no-use-before-define
pluginNames
:
string
[]
pluginNames
:
string
[]
inactivePlugins
:
Profile
[]
inactivePlugins
:
Profile
[]
activePlugins
:
Profile
[]
activePlugins
:
Profile
[]
...
@@ -133,7 +133,7 @@ declare class LocalPlugin {
...
@@ -133,7 +133,7 @@ declare class LocalPlugin {
}
}
export
interface
PluginManagerContextProviderProps
{
export
interface
PluginManagerContextProviderProps
{
children
:
React
.
ReactNode
children
:
React
.
ReactNode
// eslint-disable-line no-undef
pluginComponent
:
PluginManagerComponent
pluginComponent
:
PluginManagerComponent
}
}
...
@@ -153,7 +153,7 @@ declare class PluginLoader {
...
@@ -153,7 +153,7 @@ declare class PluginLoader {
set
(
plugin
:
any
,
actives
:
any
):
void
set
(
plugin
:
any
,
actives
:
any
):
void
get
():
any
get
():
any
}
}
// eslint-disable-next-line no-redeclare
export
type
PluginManagerSettings
=
{
export
type
PluginManagerSettings
=
{
openDialog
:
()
=>
void
openDialog
:
()
=>
void
onValidation
:
()
=>
void
onValidation
:
()
=>
void
...
@@ -197,6 +197,7 @@ export type PluginManagerProfile = Profile & {
...
@@ -197,6 +197,7 @@ export type PluginManagerProfile = Profile & {
type
:
'iframe'
|
'ws'
type
:
'iframe'
|
'ws'
hash
:
string
hash
:
string
}
}
// eslint-disable-next-line no-redeclare
export
type
LocalPlugin
=
{
export
type
LocalPlugin
=
{
create
:
()
=>
Profile
create
:
()
=>
Profile
updateName
:
(
target
:
string
)
=>
void
updateName
:
(
target
:
string
)
=>
void
...
...
libs/remix-ui/publish-to-storage/src/lib/publish-to-storage.tsx
View file @
ef631ccd
...
@@ -79,7 +79,7 @@ export const PublishToStorage = (props: RemixUiPublishToStorageProps) => {
...
@@ -79,7 +79,7 @@ export const PublishToStorage = (props: RemixUiPublishToStorageProps) => {
resetStorage
()
resetStorage
()
}
}
const
modal
=
async
(
title
:
string
,
message
:
string
|
JSX
.
Element
)
=>
{
const
modal
=
async
(
title
:
string
,
message
:
string
|
JSX
.
Element
)
=>
{
// eslint-disable-line no-undef
await
setState
(
prevState
=>
{
await
setState
(
prevState
=>
{
return
{
return
{
...
prevState
,
...
prevState
,
...
...
libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx
View file @
ef631ccd
...
@@ -73,7 +73,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
...
@@ -73,7 +73,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
setCurrentVersion
(
value
)
setCurrentVersion
(
value
)
api
.
setCompilerParameters
({
version
:
value
})
api
.
setCompilerParameters
({
version
:
value
})
}
}
// eslint-disable-next-line no-undef
const
modal
=
async
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
{
const
modal
=
async
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
{
await
setState
(
prevState
=>
{
await
setState
(
prevState
=>
{
return
{
return
{
...
...
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
View file @
ef631ccd
...
@@ -10,8 +10,8 @@ export interface CompilerContainerProps {
...
@@ -10,8 +10,8 @@ export interface CompilerContainerProps {
api
:
ICompilerApi
,
api
:
ICompilerApi
,
compileTabLogic
:
CompileTabLogic
,
compileTabLogic
:
CompileTabLogic
,
isHardhatProject
:
boolean
,
isHardhatProject
:
boolean
,
tooltip
:
(
message
:
string
|
JSX
.
Element
)
=>
void
,
tooltip
:
(
message
:
string
|
JSX
.
Element
)
=>
void
,
// eslint-disable-line no-undef
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
// eslint-disable-line no-undef
compiledFileName
:
string
,
compiledFileName
:
string
,
updateCurrentVersion
:
any
,
updateCurrentVersion
:
any
,
configurationSettings
:
ConfigurationSettings
configurationSettings
:
ConfigurationSettings
...
@@ -21,6 +21,6 @@ export interface ContractSelectionProps {
...
@@ -21,6 +21,6 @@ export interface ContractSelectionProps {
contractMap
:
{
contractMap
:
{
file
:
string
file
:
string
}
|
Record
<
string
,
any
>
,
}
|
Record
<
string
,
any
>
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
// eslint-disable-line no-undef
contractsDetails
:
Record
<
string
,
any
>
contractsDetails
:
Record
<
string
,
any
>
}
}
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
ef631ccd
import
React
,
{
useEffect
,
useState
,
useReducer
}
from
'react'
import
React
,
{
useEffect
,
useState
,
useReducer
}
from
'react'
// eslint-disable-line
import
Button
from
'./Button/StaticAnalyserButton'
// eslint-disable-line
import
Button
from
'./Button/StaticAnalyserButton'
// eslint-disable-line
import
{
util
}
from
'@remix-project/remix-lib'
import
{
util
}
from
'@remix-project/remix-lib'
import
_
from
'lodash'
import
_
from
'lodash'
...
...
libs/remix-ui/tree-view/src/types/index.ts
View file @
ef631ccd
/* eslint-disable no-undef */
export
interface
TreeViewProps
{
export
interface
TreeViewProps
{
children
?:
React
.
ReactNode
,
children
?:
React
.
ReactNode
,
id
?:
string
id
?:
string
...
...
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
View file @
ef631ccd
...
@@ -292,7 +292,7 @@ export const Workspace = (props: WorkspaceProps) => {
...
@@ -292,7 +292,7 @@ export const Workspace = (props: WorkspaceProps) => {
return
{
...
prevState
,
modal
:
{
...
state
.
modal
,
hide
:
true
,
message
:
null
}
}
return
{
...
prevState
,
modal
:
{
...
state
.
modal
,
hide
:
true
,
message
:
null
}
}
})
})
}
}
// eslint-disable-next-line no-undef
const
modal
=
async
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
:
string
,
cancelFn
:
()
=>
void
)
=>
{
const
modal
=
async
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
:
string
,
cancelFn
:
()
=>
void
)
=>
{
await
setState
(
prevState
=>
{
await
setState
(
prevState
=>
{
return
{
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment