⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
minor changes
daniel31x13650fa693bd4a
diff --git a/components/LinkCard.tsx b/components/LinkCard.tsxindex f12fcb51..62a6cfb9 100644--- a/components/LinkCard.tsx+++ b/components/LinkCard.tsx@@ -236,7 +236,7 @@ export default function LinkCard({ link, count, className }: Props) {<div className="flex items-baseline gap-1"><p className="text-sm text-neutral">{count + 1}</p><p className="text-lg truncate w-full pr-8">- {unescapeString(link.name || link.description) || shortendURL}+ {unescapeString(link.name || link.description) || link.url}</p></div>diff --git a/scripts/lib/urlHandler.ts b/scripts/lib/urlHandler.tsindex 6843805e..c9bdd854 100644--- a/scripts/lib/urlHandler.ts+++ b/scripts/lib/urlHandler.ts@@ -43,11 +43,9 @@ export default async function urlHandler(link: LinksAndCollectionAndOwner) {// TODO// const session = await page.context().newCDPSession(page);-// const doc = await session.send("Page.captureSnapshot", {// format: "mhtml",// });-// const saveDocLocally = (doc: any) => {// console.log(doc);// return createFile({@@ -55,7 +53,6 @@ export default async function urlHandler(link: LinksAndCollectionAndOwner) {// filePath: `archives/${targetLink.collectionId}/${link.id}.mhtml`,// });// };-// saveDocLocally(doc.data);// Readabilitydiff --git a/scripts/worker.ts b/scripts/worker.tsindex 025be51d..cba684c8 100644--- a/scripts/worker.ts+++ b/scripts/worker.ts@@ -99,7 +99,7 @@ async function processBatch() {await Promise.allSettled(processingPromises);}-const intervalInMinutes = Number(process.env.ARCHIVE_SCRIPT_INTERVAL) || 10;+const intervalInSeconds = Number(process.env.ARCHIVE_SCRIPT_INTERVAL) || 10;function delay(sec: number) {return new Promise((resolve) => setTimeout(resolve, sec * 1000));@@ -110,10 +110,10 @@ async function init() {while (true) {try {await processBatch();- await delay(intervalInMinutes);+ await delay(intervalInSeconds);} catch (error) {console.error("\x1b[34m%s\x1b[0m", "Error processing links:", error);- await delay(intervalInMinutes);+ await delay(intervalInSeconds);}}}