Skip to content

Commit

Permalink
adjust app.config
Browse files Browse the repository at this point in the history
bjesus committed Oct 6, 2024
1 parent 77e4021 commit f8b5124
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 6 additions & 8 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
export default defineAppConfig({
title: "TeaTime",
icon: "🫖",
ipfsGateways: [
{
value: "ipfs.io",
ipfsGateways: {
"ipfs.io": {
name: "IPFS.io",
description: "IPFS official gateway",
info: "https://docs.ipfs.tech/concepts/ipfs-gateway/",
url: "https://ipfs.io/{CID}?filename={filename}",
url: "https://ipfs.io/ipfs/${cid}?filename=${filename}",
},
{
value: "localhost",
localhost: {
name: "Local IPFS Gateway",
description: "Local IPFS gateway",
info: "https://docs.ipfs.tech/install/ipfs-desktop/",
url: "http://{CID}.ipfs.localhost:8080/?filename={filename}",
url: "http://${cid}.ipfs.localhost:8080/?filename=${filename}",
},
],
},
});
6 changes: 2 additions & 4 deletions app.vue
Original file line number Diff line number Diff line change
@@ -294,15 +294,13 @@ const handleClick = async (result) => {
if (!previousHistory.find((x) => x.id === result.id)) {
localStorage.setItem("history", JSON.stringify(updatedHistory));
}
console.log("Selected result:", result.Title, result.id);
console.log("Selected result:", result.title, result.id);
isLoading.value = true;
error.value = null;
bookFile.value = null;
downloadProgress.value = 0;
const filename = sanitize(
`${result.Author} - ${result.Title}.${result.Extension}`,
);
const filename = sanitize(`${result.author} - ${result.title}.${result.ext}`);
directLink.value = false;
bookURL.value = getBookURL(result, filename);

0 comments on commit f8b5124

Please sign in to comment.