Skip to content

Commit

Permalink
change ipfs gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
aletheiadata committed Aug 12, 2022
1 parent 24973d1 commit 38555ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/_start/partials/components/MiniSearchService/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const MiniSearchService: React.FC<Props> = ({
setCid(cid);
// console.log(`loading CID: ${cid}`);

Papa.parse(`https://${cid}.ipfs.dweb.link/`, {
Papa.parse(`https://nftstorage.link/ipfs/${cid}`, {
download: true,
encoding: "UTF8", // encoding UTF8 as standard
header: true,
Expand Down
18 changes: 3 additions & 15 deletions src/_start/partials/layout/sidebar-partials/SidebarGeneral.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,7 @@ export const SidebarGeneral: React.FC<Props> = ({

{props.alexandrias[0].type === "xlsx" && (
<a
href={`http://view.officeapps.live.com/op/view.aspx?src=${
props.alexandrias[0].file.length > 0
? props.alexandrias[0].file[0].url
: `https://${props.alexandrias[0]?.cid}.ipfs.dweb.link/`
}`}
href={`http://view.officeapps.live.com/op/view.aspx?src=${`https://nftstorage.link/ipfs/${props.alexandrias[0]?.cid}`}`}
target={"_blank"}
className=" fw-bolder text-hover-primary fs-6"
rel="noreferrer"
Expand Down Expand Up @@ -443,11 +439,7 @@ export const SidebarGeneral: React.FC<Props> = ({

{props.alexandrias[0].type === "pdf" && (
<a
href={`${
props.alexandrias[0].file.length > 0
? props.alexandrias[0].file[0].url
: `https://${props.alexandrias[0]?.cid}.ipfs.dweb.link/`
}`}
href={`https://nftstorage.link/ipfs/${props.alexandrias[0]?.cid}`}
target={"_blank"}
className=" fw-bolder text-hover-primary fs-6"
rel="noreferrer"
Expand Down Expand Up @@ -475,11 +467,7 @@ export const SidebarGeneral: React.FC<Props> = ({
)}

<a
href={
props.alexandrias[0].file.length > 0
? props.alexandrias[0].file[0].url
: `https://${props.alexandrias[0]?.cid}.ipfs.dweb.link/`
}
href={`https://nftstorage.link/ipfs/${props.alexandrias[0]?.cid}`}
target={"_blank"}
rel="noreferrer"
className=" fw-bolder text-hover-primary fs-6"
Expand Down

0 comments on commit 38555ad

Please sign in to comment.