improvements + updated README

This commit is contained in:
daniel31x13 2023-11-20 15:58:32 -05:00
parent 5968bc6c9c
commit 557494747d
17 changed files with 32 additions and 22 deletions

View File

@ -11,7 +11,7 @@
<div align='center'> <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> </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. 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] > [!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. > 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 w
Linkwarden 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. Linkwarden 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?** **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> </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) - 🧩 Browser extension, managed by the community. [Star it here!](https://github.com/linkwarden/browser-extension)
- ⬇️ Import your bookmarks from other browsers. - ⬇️ Import your bookmarks from other browsers.
- ⚡️ Powerful API. - ⚡️ Powerful API.
- ✅ And many more changes!
## Suggestions ## 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 [security@linkwarden.app](mailto:security@linkwarden.app) stating the vulnerability. Thanks! If you found a security vulnerability, please do **not** create a public issue, instead send an email to [security@linkwarden.app](mailto:security@linkwarden.app) 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 ❤ ## Support ❤
Other than using our official [Cloud](https://linkwarden.app/#pricing) offering, any [donations](https://opencollective.com/linkwarden) are highly appreciated as well! Other than using our official [Cloud](https://linkwarden.app/#pricing) offering, any [donations](https://opencollective.com/linkwarden) are highly appreciated as well!

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 KiB

BIN
assets/dashboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB

BIN
assets/light_mode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 KiB

BIN
assets/preserve_links.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 834 KiB

BIN
assets/public_page.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 KiB

BIN
assets/team_management.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

BIN
assets/view_collections.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

BIN
assets/view_links.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 KiB

View File

@ -42,7 +42,7 @@ export default function LinkSidebar({ className, onClick }: Props) {
useEffect(() => { useEffect(() => {
if (link) if (link)
setLinkCollection(collections.find((e) => e.id === link?.collection.id)); setLinkCollection(collections.find((e) => e.id === link?.collection?.id));
}, [link]); }, [link]);
return ( return (

View File

@ -93,7 +93,7 @@ export default function Navbar() {
/> />
<p <p
id="profile-dropdown" id="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} {account.name}
</p> </p>

View File

@ -70,7 +70,7 @@ export default function LinkLayout({ children }: Props) {
useEffect(() => { useEffect(() => {
if (link) if (link)
setLinkCollection(collections.find((e) => e.id === link?.collection.id)); setLinkCollection(collections.find((e) => e.id === link?.collection?.id));
}, [link, collections]); }, [link, collections]);
return ( return (

View File

@ -31,13 +31,16 @@ export default async function getPublicUser(
if (user?.isPrivate) { if (user?.isPrivate) {
if (requestingId) { if (requestingId) {
const requestingUsername = ( const requestingUser = await prisma.user.findUnique({
await prisma.user.findUnique({ where: { id: requestingId } }) where: { id: requestingId },
)?.username; });
if ( if (
!requestingUsername || requestingUser?.id !== requestingId &&
!whitelistedUsernames.includes(requestingUsername?.toLowerCase()) (!requestingUser?.username ||
!whitelistedUsernames.includes(
requestingUser.username?.toLowerCase()
))
) { ) {
return { return {
response: "User not found or profile is private.", response: "User not found or profile is private.",

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "blurredFavicons" SET DEFAULT false;

View File

@ -46,7 +46,7 @@ model User {
archiveAsWaybackMachine Boolean @default(false) archiveAsWaybackMachine Boolean @default(false)
isPrivate Boolean @default(false) isPrivate Boolean @default(false)
displayLinkIcons Boolean @default(true) displayLinkIcons Boolean @default(true)
blurredFavicons Boolean @default(true) blurredFavicons Boolean @default(false)
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @updatedAt @default(now()) updatedAt DateTime @updatedAt @default(now())
} }