From dba62d70284744ce0f8367ba2963d0d36a03c1f6 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Tue, 7 Nov 2023 17:55:11 -0500 Subject: [PATCH 1/2] updated README --- README.md | 11 ++++++----- lib/api/migration/migrateToV2.js | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index cf74430..7a1d894 100644 --- a/README.md +++ b/README.md @@ -37,22 +37,23 @@ We highly recommend that you don't use the old version because it is no longer m ## Features -- 📸 Auto capture a screenshot and a PDF of each link. +- 📸 Auto capture a screenshot, PDF, and readable view of each webpage. - 🏛️ Send your webpage to Wayback Machine ([archive.org](https://archive.org)) for a snapshot. (Optional) - 📂 Organize links by collection, name, description and multiple tags. - 👥 Collaborate on gathering links in a collection. - 🔐 Customize the permissions of each member. - 🌐 Share your collected links with the world. - 📌 Pin your favorite links to dashboard. -- 🔍 Search, filter and sort by link details. -- 📱 Responsive design and supports most browsers. +- 🔍 Full text search, filter and sort for easy retrieval. +- 📱 Responsive design and supports most modern browsers. - 🌓 Dark/Light mode support. -- 🧩 Browser extension, managed by the community [check it out!](https://github.com/linkwarden/browser-extension) +- 🧩 Browser extension, managed by the community. [Star it here!](https://github.com/linkwarden/browser-extension) - ⬇️ Import your bookmarks from other browsers. +- ⚡️ Powerful API. ## Suggestions -We usually go after the [popular suggestions](https://github.com/linkwarden/linkwarden/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc). Feel free to open a [new issue](https://github.com/linkwarden/linkwarden/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.md&title=) to suggest one - others might be interested too! :) +We _usually_ go after the [popular suggestions](https://github.com/linkwarden/linkwarden/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc). Feel free to open a [new issue](https://github.com/linkwarden/linkwarden/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.md&title=) to suggest one - others might be interested too! :) ## Roadmap diff --git a/lib/api/migration/migrateToV2.js b/lib/api/migration/migrateToV2.js index 0b34118..01e0ea9 100644 --- a/lib/api/migration/migrateToV2.js +++ b/lib/api/migration/migrateToV2.js @@ -71,9 +71,9 @@ async function migrateToV2() { where: { id: user.id }, data: { image: path }, }); - console.log(`Updated avatar for avatar ${user.id}`); + console.log(`${user.id}`); } else { - console.log(`No avatar found for avatar ${user.id}`); + console.log(`${user.id}`); } } @@ -90,9 +90,9 @@ async function migrateToV2() { where: { id: link.id }, data: { pdfPath: path }, }); - console.log(`Updated capture for pdf ${link.id}`); + console.log(`${link.id}`); } else { - console.log(`No capture found for pdf ${link.id}`); + console.log(`${link.id}`); } } @@ -107,9 +107,9 @@ async function migrateToV2() { where: { id: link.id }, data: { screenshotPath: path }, }); - console.log(`Updated capture for screenshot ${link.id}`); + console.log(`${link.id}`); } else { - console.log(`No capture found for screenshot ${link.id}`); + console.log(`${link.id}`); } } From fbc1d4b1134e28d980781414d1145547bc33de82 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Tue, 7 Nov 2023 18:21:27 -0500 Subject: [PATCH 2/2] hardcoded import size limit to 10mb to pass build error --- .env.sample | 1 - pages/api/v1/migration/index.ts | 2 +- types/enviornment.d.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index 1277ade..384929e 100644 --- a/.env.sample +++ b/.env.sample @@ -8,7 +8,6 @@ PAGINATION_TAKE_COUNT= STORAGE_FOLDER= AUTOSCROLL_TIMEOUT= NEXT_PUBLIC_DISABLE_REGISTRATION= -IMPORT_SIZE_LIMIT= RE_ARCHIVE_LIMIT= # AWS S3 Settings diff --git a/pages/api/v1/migration/index.ts b/pages/api/v1/migration/index.ts index e950563..bfba453 100644 --- a/pages/api/v1/migration/index.ts +++ b/pages/api/v1/migration/index.ts @@ -8,7 +8,7 @@ import verifyUser from "@/lib/api/verifyUser"; export const config = { api: { bodyParser: { - sizeLimit: `${process.env.IMPORT_SIZE_LIMIT || "5"}mb`, + sizeLimit: "10mb", }, }, }; diff --git a/types/enviornment.d.ts b/types/enviornment.d.ts index b8da6f2..df4b4ff 100644 --- a/types/enviornment.d.ts +++ b/types/enviornment.d.ts @@ -8,7 +8,6 @@ declare global { PAGINATION_TAKE_COUNT?: string; STORAGE_FOLDER?: string; AUTOSCROLL_TIMEOUT?: string; - IMPORT_SIZE_LIMIT?: string; RE_ARCHIVE_LIMIT?: string; SPACES_KEY?: string;