/
StorageInfoActions.razor
44 lines (41 loc) · 1.7 KB
/
StorageInfoActions.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@using VEDriversLite.NFT
<Card Margin="Margin.Is4.FromBottom">
<CardBody>
<CardTitle Size="5">IPFS Storage Info</CardTitle>
<CardText Margin="Margin.Is2.FromTop">
Image IPFS Storage info:
</CardText>
<Row Margin="Margin.Is2.FromTop">
<Column>
<CopyButton TextToCopy="@IPFSLink" ButtonText="Copy Link" />
</Column>
<Column>
<CopyButton TextToCopy="@(VEDriversLite.StorageDriver.Helpers.IPFSHelpers.GetHashFromIPFSLink(IPFSLink))" ButtonText="Copy Hash" />
</Column>
</Row>
<Row Margin="Margin.Is2.FromTop">
<Column>
<Button Color="Color.Light" Type="ButtonType.Link" To="@IPFSLink" Target="Target.Blank" Block>Open Image Link</Button>
</Column>
</Row>
<CardText Margin="Margin.Is2.FromTop">
Blockchain Storage transaction info:
</CardText>
<Row Margin="Margin.Is2.FromTop">
<Column>
<CopyButton TextToCopy="@($"{Utxo}:{UtxoIndex}")" ButtonText="Copy Tx Hash" />
</Column>
<Column>
<Button Color="Color.Light" Type="ButtonType.Link" To="@($"https://explorer.nebl.io/tx/{Utxo}")" Target="Target.Blank" Block>To Explorer</Button>
</Column>
</Row>
</CardBody>
</Card>
@code {
[Parameter]
public string IPFSLink { get; set; } = string.Empty;
[Parameter]
public string Utxo { get; set; } = string.Empty;
[Parameter]
public int UtxoIndex { get; set; } = 0;
}