From cb1fc0c8a41890d078696a84a37be001e266020c Mon Sep 17 00:00:00 2001 From: GussevPM Date: Mon, 5 May 2025 15:27:45 +0200 Subject: [PATCH 01/22] Init --- components/LeftSidebar.vue | 2 +- components/OgImage/RollupImage.vue | 3 +-- services/config.js | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/LeftSidebar.vue b/components/LeftSidebar.vue index 97af62c4..4b6f398b 100644 --- a/components/LeftSidebar.vue +++ b/components/LeftSidebar.vue @@ -95,7 +95,7 @@ const mainLinks = reactive([ name: "Ecosystem", path: "/stats?tab=ecosystem", queryParam: {tab: "ecosystem"}, - show: true, + show: false, // show: isMainnet(), }, ], diff --git a/components/OgImage/RollupImage.vue b/components/OgImage/RollupImage.vue index b21934d2..853e8026 100644 --- a/components/OgImage/RollupImage.vue +++ b/components/OgImage/RollupImage.vue @@ -18,8 +18,7 @@ const bgStyles = computed(() => { return { style: { position: "absolute", - top: "0", - left: "0", + inset: "0", filter: "grayscale(1)", opacity: "0.05", }, diff --git a/services/config.js b/services/config.js index d67df3e3..f88cf290 100644 --- a/services/config.js +++ b/services/config.js @@ -42,7 +42,7 @@ export const useServerURL = () => { return Server.API.dev default: - return Server.API.mainnet + return Server.API.arabica } } @@ -69,7 +69,7 @@ export const useSocketURL = () => { return Server.WSS.dev default: - return Server.WSS.mainnet + return Server.WSS.arabica } } From 961badfc5d123259dbf154e086de30af674a6fd3 Mon Sep 17 00:00:00 2001 From: GussevPM Date: Mon, 5 May 2025 15:43:07 +0200 Subject: [PATCH 02/22] Tx preview --- pages/tx/[hash].vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pages/tx/[hash].vue b/pages/tx/[hash].vue index c984f360..bfa68573 100644 --- a/pages/tx/[hash].vue +++ b/pages/tx/[hash].vue @@ -28,13 +28,16 @@ defineOgImage({ component: "TxImage", cacheKey: `${tx.value?.hash}`, }) +console.log('useRequestURL()', useRequestURL()); + useHead({ title: `Transaction ${tx.value?.hash.toUpperCase().slice(0, 4)} ••• ${tx.value?.hash.toUpperCase().slice(-4)} - Celestia Explorer`, link: [ { rel: "canonical", - href: `https://celenium.io${route.path}`, + // href: `https://celenium.io${route.path}`, + href: `${useRequestURL().origin}${useRequestURL().pathname}`, }, ], meta: [ @@ -58,11 +61,13 @@ useHead({ }, { property: "og:url", - content: `https://celenium.io${route.path}`, + content: `${useRequestURL().origin}${useRequestURL().pathname}`, + // content: `https://celenium.io${route.path}`, }, { property: "og:image", - content: `https://celenium.io${route.path}__og_image__/og.png`, + content: `${useRequestURL().origin}${useRequestURL().pathname}__og_image__/og.png`, + // content: `https://celenium.io${route.path}__og_image__/og.png`, }, { name: "twitter:title", From ce7cf58ac68d414707d6ea68b8548083fd270a6b Mon Sep 17 00:00:00 2001 From: GussevPM Date: Mon, 5 May 2025 16:03:51 +0200 Subject: [PATCH 03/22] Change config --- components/OgImage/TxImage.vue | 2 ++ services/config.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/OgImage/TxImage.vue b/components/OgImage/TxImage.vue index 9cd63416..e32778c6 100644 --- a/components/OgImage/TxImage.vue +++ b/components/OgImage/TxImage.vue @@ -19,6 +19,8 @@ const bgStyles = computed(() => { style: { position: "absolute", top: "0", + right: "0", + bottom: "0", left: "0", filter: "grayscale(1)", opacity: "0.05", diff --git a/services/config.js b/services/config.js index f88cf290..d67df3e3 100644 --- a/services/config.js +++ b/services/config.js @@ -42,7 +42,7 @@ export const useServerURL = () => { return Server.API.dev default: - return Server.API.arabica + return Server.API.mainnet } } @@ -69,7 +69,7 @@ export const useSocketURL = () => { return Server.WSS.dev default: - return Server.WSS.arabica + return Server.WSS.mainnet } } From bb8f9fb50096f6bde806ef48522dc7645ff149b7 Mon Sep 17 00:00:00 2001 From: GussevPM Date: Mon, 5 May 2025 16:14:40 +0200 Subject: [PATCH 04/22] Fix --- components/OgImage/TxImage.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/OgImage/TxImage.vue b/components/OgImage/TxImage.vue index e32778c6..d82cb845 100644 --- a/components/OgImage/TxImage.vue +++ b/components/OgImage/TxImage.vue @@ -17,11 +17,11 @@ const props = defineProps({ const bgStyles = computed(() => { return { style: { - position: "absolute", - top: "0", - right: "0", - bottom: "0", - left: "0", + // position: "absolute", + // top: "0", + // right: "0", + // bottom: "0", + // left: "0", filter: "grayscale(1)", opacity: "0.05", }, @@ -32,8 +32,8 @@ const messages = computed(() => [...new Set(props.tx.message_types)])