⚡️⚡️⚡️ 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
improvements + updated README
daniel31x13557494747d19
diff --git a/README.md b/README.mdindex 3070130d..620aac45 100644--- a/README.md+++ b/README.md@@ -11,7 +11,7 @@<div align='center'>-[Website](https://linkwarden.app) | [Getting Started](https://docs.linkwarden.app) | [Features](https://github.com/linkwarden/linkwarden#features) | [Roadmap](https://github.com/orgs/linkwarden/projects/1) | [Screenshots](https://github.com/linkwarden/linkwarden#screenshots) | [Support ❤](https://github.com/linkwarden/linkwarden#support-)+[Website](https://linkwarden.app) | [Getting Started](https://docs.linkwarden.app) | [Features](https://github.com/linkwarden/linkwarden#features) | [Roadmap](https://github.com/orgs/linkwarden/projects/1) | [Support ❤](https://github.com/linkwarden/linkwarden#support-)</div>@@ -21,7 +21,21 @@Additionally, Linkwarden is designed with collaboration in mind, sharing links with the public and/or allowing multiple users to work together seamlessly.-<img src="./assets/showcase_image.png" />+<img src="./assets/dashboard.png" />++<div align="center">+<img src="./assets/view_links.png" width="32%" />++<img src="./assets/view_collections.png" width="32%" />++<img src="./assets/team_management.png" width="32%" />++<img src="./assets/preserve_links.png" width="32%" />++<img src="./assets/public_page.png" width="32%" />++<img src="./assets/light_mode.png" width="32%" />+</div>> [!TIP]> Our official [Cloud](https://linkwarden.app/#pricing) offering provides the simplest way to begin using Linkwarden and it's the preferred choice for many due to its time-saving benefits. <br> Your subscription supports our hosting infrastructure and ongoing development. <br> Alternatively, if you prefer [self-hosting](https://docs.linkwarden.app/self-hosting/installation) Linkwarden, no problem! You'll still have access to all the premium features.@@ -31,7 +45,7 @@ Additionally, Linkwarden is designed with collaboration in mind, sharing links wLinkwarden has been completely rebuilt and redesigned from ground up, so pretty much the only thing it has in common with its predecessor is the idea behind it - bookmark management.**What happened to the old version?**-We highly recommend that you don't use the old version because it is no longer maintained and has far fewer features. However, if you still want to check it out, we've forked the old version from the current repository into [this repo](https://github.com/linkwarden/linkwarden-old).+We've forked the old version from the current repository into [this repo](https://github.com/linkwarden/linkwarden-old).</details>@@ -50,6 +64,7 @@ We highly recommend that you don't use the old version because it is no longer m- 🧩 Browser extension, managed by the community. [Star it here!](https://github.com/linkwarden/browser-extension)- ⬇️ Import your bookmarks from other browsers.- ⚡️ Powerful API.+- ✅ And many more changes!## Suggestions@@ -79,16 +94,6 @@ If you want to contribute, Thanks! Start by checking our [public roadmap](https:If you found a security vulnerability, please do **not** create a public issue, instead send an email to [[email protected]](mailto:[email protected]) stating the vulnerability. Thanks!-## Screenshots--<div align="center">-<img src="./assets/collections.png" height="150" />--<img src="./assets/collaborators.png" height="150" />--<img src="./assets/link_details.png" height="150" />-</div>-## Support ❤Other than using our official [Cloud](https://linkwarden.app/#pricing) offering, any [donations](https://opencollective.com/linkwarden) are highly appreciated as well!diff --git a/assets/collaborators.png b/assets/collaborators.pngdeleted file mode 100644index 0c527e36..00000000Binary files a/assets/collaborators.png and /dev/null differdiff --git a/assets/collections.png b/assets/collections.pngdeleted file mode 100644index e7abe9a6..00000000Binary files a/assets/collections.png and /dev/null differdiff --git a/assets/dashboard.png b/assets/dashboard.pngnew file mode 100644index 00000000..b799e829Binary files /dev/null and b/assets/dashboard.png differdiff --git a/assets/light_mode.png b/assets/light_mode.pngnew file mode 100644index 00000000..f5bac36dBinary files /dev/null and b/assets/light_mode.png differdiff --git a/assets/link_details.png b/assets/link_details.pngdeleted file mode 100644index 418ed569..00000000Binary files a/assets/link_details.png and /dev/null differdiff --git a/assets/preserve_links.png b/assets/preserve_links.pngnew file mode 100644index 00000000..efcb64dfBinary files /dev/null and b/assets/preserve_links.png differdiff --git a/assets/public_page.png b/assets/public_page.pngnew file mode 100644index 00000000..a311b45dBinary files /dev/null and b/assets/public_page.png differdiff --git a/assets/team_management.png b/assets/team_management.pngnew file mode 100644index 00000000..d25d1925Binary files /dev/null and b/assets/team_management.png differdiff --git a/assets/view_collections.png b/assets/view_collections.pngnew file mode 100644index 00000000..86700d38Binary files /dev/null and b/assets/view_collections.png differdiff --git a/assets/view_links.png b/assets/view_links.pngnew file mode 100644index 00000000..3c459ee0Binary files /dev/null and b/assets/view_links.png differdiff --git a/components/LinkSidebar.tsx b/components/LinkSidebar.tsxindex 63ddb0a5..460ba742 100644--- a/components/LinkSidebar.tsx+++ b/components/LinkSidebar.tsx@@ -42,7 +42,7 @@ export default function LinkSidebar({ className, onClick }: Props) {useEffect(() => {if (link)- setLinkCollection(collections.find((e) => e.id === link?.collection.id));+ setLinkCollection(collections.find((e) => e.id === link?.collection?.id));}, [link]);return (diff --git a/components/Navbar.tsx b/components/Navbar.tsxindex 57af6841..4b34d209 100644--- a/components/Navbar.tsx+++ b/components/Navbar.tsx@@ -93,7 +93,7 @@ export default function Navbar() {/><pid="profile-dropdown"- className="font-bold text-black dark:text-white leading-3 hidden sm:block select-none truncate max-w-[8rem] py-1"+ className="text-black dark:text-white leading-3 hidden sm:block select-none truncate max-w-[8rem] py-1">{account.name}</p>diff --git a/layouts/LinkLayout.tsx b/layouts/LinkLayout.tsxindex 398acda2..d45a1117 100644--- a/layouts/LinkLayout.tsx+++ b/layouts/LinkLayout.tsx@@ -70,7 +70,7 @@ export default function LinkLayout({ children }: Props) {useEffect(() => {if (link)- setLinkCollection(collections.find((e) => e.id === link?.collection.id));+ setLinkCollection(collections.find((e) => e.id === link?.collection?.id));}, [link, collections]);return (diff --git a/lib/api/controllers/public/users/getPublicUser.ts b/lib/api/controllers/public/users/getPublicUser.tsindex fff10a5b..8e178874 100644--- a/lib/api/controllers/public/users/getPublicUser.ts+++ b/lib/api/controllers/public/users/getPublicUser.ts@@ -31,13 +31,16 @@ export default async function getPublicUser(if (user?.isPrivate) {if (requestingId) {- const requestingUsername = (- await prisma.user.findUnique({ where: { id: requestingId } })- )?.username;+ const requestingUser = await prisma.user.findUnique({+ where: { id: requestingId },+ });if (- !requestingUsername ||- !whitelistedUsernames.includes(requestingUsername?.toLowerCase())+ requestingUser?.id !== requestingId &&+ (!requestingUser?.username ||+ !whitelistedUsernames.includes(+ requestingUser.username?.toLowerCase()+ ))) {return {response: "User not found or profile is private.",diff --git a/prisma/migrations/20231120184333_set_blurred_favicon_to_false_as_default/migration.sql b/prisma/migrations/20231120184333_set_blurred_favicon_to_false_as_default/migration.sqlnew file mode 100644index 00000000..0ab9036d--- /dev/null+++ b/prisma/migrations/20231120184333_set_blurred_favicon_to_false_as_default/migration.sql@@ -0,0 +1,2 @@+-- AlterTable+ALTER TABLE "User" ALTER COLUMN "blurredFavicons" SET DEFAULT false;diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex 5f4dd236..70ef7641 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -46,7 +46,7 @@ model User {archiveAsWaybackMachine Boolean @default(false)isPrivate Boolean @default(false)displayLinkIcons Boolean @default(true)- blurredFavicons Boolean @default(true)+ blurredFavicons Boolean @default(false)createdAt DateTime @default(now())updatedAt DateTime @updatedAt @default(now())}