Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

code formatter + add maskable icon

daniel31x136d7d364853e2
diff --git a/lib/api/archiveHandler.ts b/lib/api/archiveHandler.ts
index b1107971..343157d6 100644
--- a/lib/api/archiveHandler.ts
+++ b/lib/api/archiveHandler.ts
@@ -120,7 +120,10 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
const content = await page.content();
// Singlefile
- if (user.archiveAsSinglefile && !link.singlefile?.startsWith("archive")) {
+ if (
+ user.archiveAsSinglefile &&
+ !link.singlefile?.startsWith("archive")
+ ) {
let command = process.env.SINGLEFILE_ARCHIVE_COMMAND;
let httpApi = process.env.SINGLEFILE_ARCHIVE_HTTP_API;
if (command) {
@@ -135,28 +138,42 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
filePath: `archives/${targetLink.collectionId}/${link.id}.html`,
});
} catch (err) {
- console.error("Error running SINGLEFILE_ARCHIVE_COMMAND:", err);
+ console.error(
+ "Error running SINGLEFILE_ARCHIVE_COMMAND:",
+ err
+ );
}
} else {
- console.error("Invalid SINGLEFILE_ARCHIVE_COMMAND. Missing {{URL}}");
+ console.error(
+ "Invalid SINGLEFILE_ARCHIVE_COMMAND. Missing {{URL}}"
+ );
}
} else if (httpApi) {
try {
- let html = await axios.post(httpApi, { url: link.url }, {
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- },
- httpAgent: new Agent({ keepAlive: false }),
- });
+ let html = await axios.post(
+ httpApi,
+ { url: link.url },
+ {
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded",
+ },
+ httpAgent: new Agent({ keepAlive: false }),
+ }
+ );
await createFile({
data: html.data,
filePath: `archives/${targetLink.collectionId}/${link.id}.html`,
});
} catch (err) {
- console.error("Error fetching Singlefile using SINGLEFILE_ARCHIVE_HTTP_API:", err);
+ console.error(
+ "Error fetching Singlefile using SINGLEFILE_ARCHIVE_HTTP_API:",
+ err
+ );
}
} else {
- console.error("No SINGLEFILE_ARCHIVE_COMMAND or SINGLEFILE_ARCHIVE_HTTP_API defined.");
+ console.error(
+ "No SINGLEFILE_ARCHIVE_COMMAND or SINGLEFILE_ARCHIVE_HTTP_API defined."
+ );
}
}
diff --git a/public/logo_maskable.png b/public/logo_maskable.png
index 307583a8..bfc2c96f 100644
Binary files a/public/logo_maskable.png and b/public/logo_maskable.png differ