diff --git a/README.md b/README.md index c3f0bc2..e8651d4 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,18 @@

Linkwarden

+

Bookmark Preservation for Individuals and Teams

Discord -Twitter - -GitHub commits since latest release +Twitter
-[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-) +[« LAUNCH DEMO »](https://demo.linkwarden.app) + +[Cloud](https://cloud.linkwarden.app) · [Website](https://linkwarden.app) · [Features](https://github.com/linkwarden/linkwarden#features)
@@ -24,7 +25,7 @@ The objective is to organize useful webpages and articles you find across the we Additionally, Linkwarden is designed with collaboration in mind, sharing links with the public and/or allowing multiple users to work together seamlessly. > [!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.
Your subscription supports our hosting infrastructure and ongoing development.
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.
Your subscription supports our hosting infrastructure and ongoing development.
Alternatively, if you prefer self-hosting Linkwarden, you can do so by following our [Installation documentation](https://docs.linkwarden.app/self-hosting/installation). @@ -71,10 +72,14 @@ We've forked the old version from the current repository into [this repo](https: - ⬇️ Import and export your bookmarks. - 🔐 SSO integration. (Enterprise and Self-hosted users only) - 📦 Installable Progressive Web App (PWA). +- 🍏 iOS and MacOS Apps, maintained by [JGeek00](https://github.com/JGeek00). - 🍎 iOS Shortcut to save links to Linkwarden. - 🔑 API keys. - ✅ Bulk actions. -- ✨ And so many more features! +- 👥 User administration. +- 🌐 Support for Other Languages (i18n). +- 📁 Image and PDF Uploads. +- ✨ And many more features. (Literally!) ## Like what we're doing? Give us a Star ⭐ @@ -98,7 +103,7 @@ We _usually_ go after the [popular suggestions](https://github.com/linkwarden/li Make sure to check out our [public roadmap](https://github.com/orgs/linkwarden/projects/1). -## Docs +## Documentation For information on how to get started or to set up your own instance, please visit the [documentation](https://docs.linkwarden.app). @@ -110,7 +115,7 @@ 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! -## Support ❤ +## Support <3 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/components/CollectionCard.tsx b/components/CollectionCard.tsx index 208a7d5..abcdfa4 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -8,12 +8,12 @@ import ProfilePhoto from "./ProfilePhoto"; import usePermissions from "@/hooks/usePermissions"; import useLocalSettingsStore from "@/store/localSettings"; import getPublicUserData from "@/lib/client/getPublicUserData"; -import useAccountStore from "@/store/account"; import EditCollectionModal from "./ModalContent/EditCollectionModal"; import EditCollectionSharingModal from "./ModalContent/EditCollectionSharingModal"; import DeleteCollectionModal from "./ModalContent/DeleteCollectionModal"; import { dropdownTriggerer } from "@/lib/client/utils"; import { useTranslation } from "next-i18next"; +import { useUser } from "@/hooks/store/user"; export default function CollectionCard({ collection, @@ -22,7 +22,7 @@ export default function CollectionCard({ }) { const { t } = useTranslation(); const { settings } = useLocalSettingsStore(); - const { account } = useAccountStore(); + const { data: user = {} } = useUser(); const formattedDate = new Date(collection.createdAt as string).toLocaleString( "en-US", @@ -41,18 +41,18 @@ export default function CollectionCard({ useEffect(() => { const fetchOwner = async () => { - if (collection && collection.ownerId !== account.id) { + if (collection && collection.ownerId !== user.id) { const owner = await getPublicUserData(collection.ownerId as number); setCollectionOwner(owner); - } else if (collection && collection.ownerId === account.id) { + } else if (collection && collection.ownerId === user.id) { setCollectionOwner({ - id: account.id as number, - name: account.name, - username: account.username, - image: account.image, - archiveAsScreenshot: account.archiveAsScreenshot, - archiveAsMonolith: account.archiveAsMonolith, - archiveAsPDF: account.archiveAsPDF, + id: user.id as number, + name: user.name, + username: user.username as string, + image: user.image as string, + archiveAsScreenshot: user.archiveAsScreenshot as boolean, + archiveAsMonolith: user.archiveAsMonolith as boolean, + archiveAsPDF: user.archiveAsPDF as boolean, }); } }; @@ -76,7 +76,7 @@ export default function CollectionCard({ > -