-1 || String(props.value).indexOf('\\n') > -1)
+ (String(props.value).indexOf('\n') > -1 ||
+ String(props.value).indexOf('\\n') > -1)
) {
return true;
}
@@ -20,38 +21,44 @@ function isMD() {
}
function isAddress() {
- return isBech32Address(props.value) && String(props.value).indexOf('valoper1') === -1
+ return (
+ isBech32Address(props.value) &&
+ String(props.value).indexOf('valoper1') === -1
+ );
}
const text = computed(() => {
- if(!props.value) return ""
- const v = String(props.value)
- switch(true) {
- case v.length === 28 && v.endsWith("="): {
- return format.validator(v) || v
+ if (!props.value) return '';
+ const v = String(props.value);
+ switch (true) {
+ case v.length === 28 && v.endsWith('='): {
+ return format.validator(v) || v;
}
// 2023-06-12T03:09:38.253756368Z
- case v.search(/^[1-9]\d{3}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}[.\d]*Z$/g) > -1: {
- return new Date(v).toLocaleString(navigator.language)
+ case v.search(/^[1-9]\d{3}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}[.\d]*Z$/g) >
+ -1: {
+ return new Date(v).toLocaleString(navigator.language);
}
case toHexOutput.value:
- return toHex(fromBase64(v)).toUpperCase()
+ return toHex(fromBase64(v)).toUpperCase();
}
- return v
-})
+ return v;
+});
-const names = ref([] as {name?: string | null, provider?: string}[])
+const names = ref([] as { name?: string | null; provider?: string }[]);
onMounted(() => {
- if(isAddress()) nameMatcha.lookupAll(props.value).then(re => {
- names.value = Object.keys(re).map(key => ({name: re[key], provider: key})).filter( x => x.name)
- })
-})
-const toHexOutput = ref(false)
+ if (isAddress())
+ nameMatcha.lookupAll(props.value).then((re) => {
+ names.value = Object.keys(re)
+ .map((key) => ({ name: re[key], provider: key }))
+ .filter((x) => x.name);
+ });
+});
+const toHexOutput = ref(false);
const isConvertable = computed(() => {
- return String(props.value).endsWith('=') && props.value.length !== 28
-})
-
+ return String(props.value).endsWith('=') && props.value.length !== 28;
+});
{
class="md-editor-recover"
>
- {{ text }}
-
-
+ {{
+ text
+ }}
+
+
-
- {{ text }}
-
-
+ {{ text }}
+
+
-
+
\ No newline at end of file
+
diff --git a/src/components/dynamic/TxsElement.vue b/src/components/dynamic/TxsElement.vue
index 5b86b2141c..d90acd04c1 100644
--- a/src/components/dynamic/TxsElement.vue
+++ b/src/components/dynamic/TxsElement.vue
@@ -21,7 +21,6 @@ const chain = useBlockchain();
- Txs
Hash |
diff --git a/src/layouts/components/ChainProfile.vue b/src/layouts/components/ChainProfile.vue
index 3f7a281c82..caecee9166 100644
--- a/src/layouts/components/ChainProfile.vue
+++ b/src/layouts/components/ChainProfile.vue
@@ -15,9 +15,12 @@ function changeEndpoint(item: Endpoint) {
|