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
f74b3d22
Commit
f74b3d22
authored
Dec 17, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename component
parent
9c7cf28a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
debugger-ui.tsx
libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx
+2
-2
index.ts
libs/remix-ui/toaster/src/index.ts
+1
-1
toaster.css
libs/remix-ui/toaster/src/lib/toaster.css
+0
-0
toaster.tsx
libs/remix-ui/toaster/src/lib/toaster.tsx
+9
-9
No files found.
libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx
View file @
f74b3d22
...
@@ -5,7 +5,7 @@ import VmDebugger from './vm-debugger/vm-debugger'
...
@@ -5,7 +5,7 @@ import VmDebugger from './vm-debugger/vm-debugger'
import
VmDebuggerHead
from
'./vm-debugger/vm-debugger-head'
import
VmDebuggerHead
from
'./vm-debugger/vm-debugger-head'
import
{
TransactionDebugger
as
Debugger
}
from
'@remix-project/remix-debug'
import
{
TransactionDebugger
as
Debugger
}
from
'@remix-project/remix-debug'
import
{
DebuggerUIProps
}
from
'./DebuggerAPI'
import
{
DebuggerUIProps
}
from
'./DebuggerAPI'
import
{
RemixUi
Toaster
}
from
'@remix-ui/toaster'
import
{
Toaster
}
from
'@remix-ui/toaster'
/* eslint-disable-next-line */
/* eslint-disable-next-line */
import
'./debugger-ui.css'
import
'./debugger-ui.css'
...
@@ -209,7 +209,7 @@ const vmDebugger = {
...
@@ -209,7 +209,7 @@ const vmDebugger = {
}
}
return
(
return
(
<
div
>
<
div
>
<
RemixUi
Toaster
message=
{
state
.
toastMessage
}
/>
<
Toaster
message=
{
state
.
toastMessage
}
/>
<
div
className=
"px-2"
>
<
div
className=
"px-2"
>
<
div
className=
"mt-3"
>
<
div
className=
"mt-3"
>
<
p
className=
"mt-2 debuggerLabel"
>
Debugger Configuration
</
p
>
<
p
className=
"mt-2 debuggerLabel"
>
Debugger Configuration
</
p
>
...
...
libs/remix-ui/toaster/src/index.ts
View file @
f74b3d22
export
*
from
'./lib/
remix-ui-
toaster'
;
export
*
from
'./lib/toaster'
;
libs/remix-ui/toaster/src/lib/
remix-ui-
toaster.css
→
libs/remix-ui/toaster/src/lib/toaster.css
View file @
f74b3d22
File moved
libs/remix-ui/toaster/src/lib/
remix-ui-
toaster.tsx
→
libs/remix-ui/toaster/src/lib/toaster.tsx
View file @
f74b3d22
import
React
,
{
useEffect
,
useState
}
from
'react'
import
React
,
{
useEffect
,
useState
}
from
'react'
import
'./
remix-ui-
toaster.css'
;
import
'./toaster.css'
;
/* eslint-disable-next-line */
/* eslint-disable-next-line */
export
interface
RemixUi
ToasterProps
{
export
interface
ToasterProps
{
message
:
any
message
:
any
opts
?:
RemixUi
ToasterOptions
opts
?:
ToasterOptions
}
}
export
interface
RemixUi
ToasterOptions
{
export
interface
ToasterOptions
{
time
:
number
time
:
number
}
}
export
const
RemixUiToaster
=
(
props
:
RemixUi
ToasterProps
)
=>
{
export
const
Toaster
=
(
props
:
ToasterProps
)
=>
{
const
[
state
,
setState
]
=
useState
({
const
[
state
,
setState
]
=
useState
({
timeOutId
:
null
,
timeOutId
:
null
,
message
:
''
,
message
:
''
,
...
@@ -51,7 +51,7 @@ export const RemixUiToaster = (props: RemixUiToasterProps) => {
...
@@ -51,7 +51,7 @@ export const RemixUiToaster = (props: RemixUiToasterProps) => {
}
}
function
showFullMessage
()
{
function
showFullMessage
()
{
alert
(
state
.
message
)
//
alert(state.message)
}
}
function
closeTheToaster
()
{
function
closeTheToaster
()
{
...
@@ -60,7 +60,7 @@ export const RemixUiToaster = (props: RemixUiToasterProps) => {
...
@@ -60,7 +60,7 @@ export const RemixUiToaster = (props: RemixUiToasterProps) => {
// out()
// out()
const
animate
=
state
.
timeOutId
?
(
state
.
hiding
?
'remixui_animateBottom'
:
'remixui_animateTop'
)
:
''
const
animate
=
state
.
timeOutId
?
(
state
.
hiding
?
'remixui_animateBottom'
:
'remixui_animateTop'
)
:
''
const
hide
=
state
.
timeOutId
//
const hide = state.timeOutId
const
className
=
`remixui_tooltip alert alert-info p-2
${
animate
}
`
const
className
=
`remixui_tooltip alert alert-info p-2
${
animate
}
`
return
(
return
(
<
div
data
-
shared=
"tooltipPopup"
className=
{
className
}
onMouseEnter=
{
()
=>
{
}
}
onMouseLeave=
{
()
=>
{
}
}
>
<
div
data
-
shared=
"tooltipPopup"
className=
{
className
}
onMouseEnter=
{
()
=>
{
}
}
onMouseLeave=
{
()
=>
{
}
}
>
...
@@ -77,9 +77,9 @@ export const RemixUiToaster = (props: RemixUiToasterProps) => {
...
@@ -77,9 +77,9 @@ export const RemixUiToaster = (props: RemixUiToasterProps) => {
// animation(this.tooltip, css.animateBottom.className)
// animation(this.tooltip, css.animateBottom.className)
};
};
export
default
RemixUi
Toaster
;
export
default
Toaster
;
const
defaultOptions
=
(
opts
)
:
RemixUi
ToasterOptions
=>
{
const
defaultOptions
=
(
opts
)
:
ToasterOptions
=>
{
opts
=
opts
||
{}
opts
=
opts
||
{}
return
{
return
{
time
:
opts
.
time
||
7000
time
:
opts
.
time
||
7000
...
...
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