-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
explorer: Look-up transaction in mempool
Resolves #2877
- Loading branch information
1 parent
da006b5
commit bbd32aa
Showing
13 changed files
with
175 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.dusk-banner { | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
padding: 1em 1.25em; | ||
border-radius: 12px; | ||
font-size: 0.875em; | ||
border-style: solid; | ||
border-width: 1px; | ||
line-height: 1.5; | ||
} | ||
|
||
.dusk-banner .dusk-banner--info { | ||
border-color: var(--banner-info-color); | ||
} | ||
|
||
.dusk-banner .dusk-banner--warning { | ||
border-color: var(--banner-warning-color); | ||
} | ||
|
||
.dusk-banner .dusk-banner--error { | ||
border-color: var(--banner-error-color); | ||
} | ||
|
||
.dusk-banner .dusk-banner__title { | ||
font-weight: 500; | ||
font-size: 1.1em; | ||
display: block; | ||
} | ||
|
||
.dusk-banner .dusk-banner__icon { | ||
margin-right: var(--default-gap); | ||
flex-shrink: 0; | ||
} | ||
|
||
.dusk-banner .dusk-banner__icon--info { | ||
fill: var(--banner-info-color); | ||
} | ||
|
||
.dusk-banner .dusk-banner__icon--warning { | ||
fill: var(--banner-warning-color); | ||
} | ||
|
||
.dusk-banner .dusk-banner__icon--error { | ||
fill: var(--banner-error-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<script> | ||
import { makeClassName } from "$lib/dusk/string"; | ||
import { Icon } from "$lib/dusk/components"; | ||
import { | ||
mdiAlertCircleOutline, | ||
mdiAlertDecagramOutline, | ||
mdiAlertOutline, | ||
} from "@mdi/js"; | ||
import "./Banner.css"; | ||
/** @type {string} */ | ||
export let title; | ||
/** @type {String | Undefined} */ | ||
export let className = undefined; | ||
/** @type {BannerVariant} */ | ||
export let variant = "info"; | ||
function getBannerIconPath() { | ||
switch (variant) { | ||
case "warning": | ||
return mdiAlertOutline; | ||
case "error": | ||
return mdiAlertDecagramOutline; | ||
default: | ||
return mdiAlertCircleOutline; | ||
} | ||
} | ||
$: classes = makeClassName([ | ||
"dusk-banner", | ||
`dusk-banner--${variant}`, | ||
className, | ||
]); | ||
</script> | ||
|
||
<div {...$$restProps} class={classes}> | ||
<Icon | ||
path={getBannerIconPath()} | ||
size="large" | ||
className="dusk-banner__icon dusk-banner__icon--{variant}" | ||
/> | ||
<div> | ||
<strong class="dusk-banner__title">{title}</strong> | ||
<slot> | ||
<p>No banner content provided.</p> | ||
</slot> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters