Skip to content

Commit 7fc5325

Browse files
authored
Merge pull request #508 from zirreal/master
small cleanup
2 parents 1aea2d1 + 7c5b2e1 commit 7fc5325

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/components/books/BooksItem.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<template>
22
<li v-if="book && book.options" class="e-books__item">
33
<a
4+
v-if="resolvedOptions.length"
45
class="e-books__img"
5-
:href="resolvedOptions.length && resolvedOptions[0].finalUrl"
6+
:href="resolvedOptions[0].finalUrl"
67
aria-label="check the book"
78
target="_blank"
89
>
@@ -44,7 +45,6 @@ const loading = ref(true);
4445
const resolvedOptions = ref([]);
4546
4647
const TIMEOUT_MS = 15_000;
47-
const MAX_CACHE_AGE = 3 * 24 * 3600 * 1_000;
4848
4949
const fetchGateway = async (url, timeout = TIMEOUT_MS) => {
5050
const controller = new AbortController();
@@ -69,12 +69,6 @@ const resolveLinks = async () => {
6969
const url = props.gateway + opt.link;
7070
const ok = await fetchGateway(url);
7171
const finalUrl = ok ? url : opt.static;
72-
73-
localStorage.setItem(
74-
opt.name,
75-
JSON.stringify({ link: finalUrl, date: new Date().toISOString() })
76-
);
77-
7872
return { ...opt, finalUrl };
7973
})
8074
);

src/components/books/BooksList.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ onMounted(async () => {
203203
try {
204204
await ipfsSmartGateway.checkGateways({ cid: 'QmYd1Mh2VHVyF3WgvFsN3NFkozXscnCVmEV2YG86UKtK3C' });
205205
const picked = ipfsSmartGateway.getPickedGateway();
206-
console.log(picked)
207206
gateway.value = picked || 'https://gw.crust-gateway.xyz/ipfs/';
208207
} catch (e) {
209208
console.error("❌ Gateway fetch failed. Using fallback.", e);

src/pages/xrt.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const twitter = contacts.filter((item) => item.title.toLowerCase() === "x");
126126
<ul class="list-simple">
127127
<li><a href="https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot.rpc.robonomics.network%2F#/explorer" target="_blank" aria-label="find xrt on substrate">Substrate</a></li>
128128
<li><a href="https://robonomics.subscan.io/" target="_blank" aria-label="find xrt on subscan">Subscan</a></li>
129-
<li><a href="https://robonomics.polkassembly.io/" target="_blank" aria-label="find xrt on polkassembly">Nova Wallet</a></li>
129+
<li><a href="https://robonomics.polkassembly.io/" target="_blank" aria-label="find xrt on polkassembly">Polkassembly</a></li>
130130
</ul>
131131
</div>
132132
<div class="oldy">

0 commit comments

Comments
 (0)