Bug fixes

-- Fixed inconsistent casing and word separation
-- added link to token page on transaction details page
This commit is contained in:
sairaj mote 2023-03-09 02:26:39 +05:30
parent cc142f8297
commit f0cd041d05
2 changed files with 22 additions and 4 deletions

11
floscout.svg Normal file
View File

@ -0,0 +1,11 @@
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3_34)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M50.5679 101.136C78.4958 101.136 101.136 78.4958 101.136 50.5679C101.136 47.0696 100.781 43.6543 100.104 40.3561C104.75 47.3575 107.457 55.7578 107.457 64.7901C107.457 89.227 87.6468 109.037 63.2099 109.037C52.318 109.037 42.3453 105.102 34.6362 98.575C39.6451 100.236 45.0015 101.136 50.5679 101.136ZM34.6362 98.575C14.5144 91.9008 0 72.9293 0 50.5679C0 22.64 22.64 0 50.5679 0C74.9975 0 95.381 17.3234 100.104 40.3561C92.1803 28.4153 78.6144 20.5432 63.2099 20.5432C38.773 20.5432 18.963 40.3532 18.963 64.7901C18.963 78.3351 25.0492 90.4586 34.6362 98.575Z" fill="#4F56FF"/>
<circle cx="113.333" cy="113.333" r="14.6667" fill="#4F56FF"/>
</g>
<defs>
<clipPath id="clip0_3_34">
<rect width="128" height="128" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 934 B

View File

@ -11,6 +11,7 @@
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/uhtml@3.0.1/es.js"></script>
<script src="components.min.js"></script>
<link rel="shortcut icon" href="floscout.svg" type="image/x-icon">
</head>
<body data-theme="light" class="hidden">
@ -672,11 +673,17 @@
if (type == 'smartContractPays' || type == ' smartContractPays') {
name = ''
}
// split camel case to words
type = type.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
return str.toUpperCase();
});
return html`
<div id="transaction_page" class="page">
<div class='head'>
<h5 class="label">${type}</h5>
<h2 class="token uppercase">${name}</h2>
<h2 class="token uppercase">
<a href=${`#/token/${name}`} style="text-decoration:none;">${name}</a>
</h2>
<h5 class="label">Transaction ID</h5>
<sm-copy value=${hash} clip-text></sm-copy>
</div>
@ -734,10 +741,10 @@
return html`
<div id="token_page" class="page">
<div class="card">
<h2>${token}</h2>
<h2 class="uppercase">${token}</h2>
<h5 class="label">Supply</h5>
<h4>${formatAmount(supply, token.toLowerCase() === 'rupee' ? 'inr' : 'usd')}</h4>
<h5 class="label">Address</h5>
<h5 class="label">Incorporation address</h5>
<h4 class="wrap-around">${incAddress}</h4>
</div>
<sm-chips data-target="token_views" onchange="changeView(event)">
@ -858,7 +865,7 @@
<svg class="icon" viewBox="0 0 64 64"> <title>transfer</title> <polyline points="17.04 35.97 14.57 33.5 40.15 7.9 32.75 0.5 55.52 0.5 55.52 23.28 48.12 15.87 23.86 40.14 15.88 48.13 8.48 40.72 8.48 63.5 31.25 63.5 23.85 56.1 49.43 30.5 46.96 28.03"/> </svg>
<div class="contract-type">
<h5 class="label">Token transfer</h5>
<a href=${`#/token/${token}`} class="">${token}</a>
<a href=${`#/token/${token}`} class="uppercase">${token}</a>
</div>
<div class="contract-info">
<div class="flex flex-direction-column">