diff --git a/.env.sample b/.env.sample index 8e0d4a53..ea08bfa9 100644 --- a/.env.sample +++ b/.env.sample @@ -1,18 +1,19 @@ NEXTAUTH_SECRET=very_sensitive_secret DATABASE_URL=postgresql://user:password@localhost:5432/linkwarden NEXTAUTH_URL=http://localhost:3000 -PAGINATION_TAKE_COUNT=20 -# Don't define this if you're defining the "AWS S3 Settings" below -STORAGE_FOLDER=data +# Additional Optional Settings -# AWS S3 Settings (Optional) +PAGINATION_TAKE_COUNT= +STORAGE_FOLDER= + +# AWS S3 Settings SPACES_KEY= SPACES_SECRET= SPACES_ENDPOINT= SPACES_REGION= -# SMTP Settings (Optional) +# SMTP Settings NEXT_PUBLIC_EMAIL_PROVIDER= EMAIL_FROM= EMAIL_SERVER= diff --git a/components/Checkbox.tsx b/components/Checkbox.tsx index b9a7321c..2e95895d 100644 --- a/components/Checkbox.tsx +++ b/components/Checkbox.tsx @@ -12,7 +12,7 @@ type Props = { export default function Checkbox({ label, state, className, onClick }: Props) { return ( diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index cdd82536..9805f9c1 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -49,32 +49,32 @@ export default function CollectionCard({ collection, className }: Props) { href={`/collections/${collection.id}`} className="flex flex-col gap-2 justify-between min-h-[12rem] h-full select-none p-5" > -

+

{collection.name}

-
+
{collection.members .sort((a, b) => (a.userId as number) - (b.userId as number)) .map((e, i) => { return ( ); }) .slice(0, 4)} {collection.members.length - 4 > 0 ? ( -
+
+{collection.members.length - 4}
) : null}
-
- +
+ {collection._count && collection._count.links}
diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index 4f286c93..873966ff 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -142,8 +142,8 @@ export default function LinkCard({ link, count, className }: Props) {
-

{count + 1}.

-

+

{count + 1}.

+

{link.name}

diff --git a/components/Modal/Collection/CollectionInfo.tsx b/components/Modal/Collection/CollectionInfo.tsx index 3e88c2d1..94c711a7 100644 --- a/components/Modal/Collection/CollectionInfo.tsx +++ b/components/Modal/Collection/CollectionInfo.tsx @@ -60,7 +60,7 @@ export default function CollectionInfo({
-

+

Name

@@ -72,11 +72,11 @@ export default function CollectionInfo({ } type="text" placeholder="e.g. Example Collection" - className="w-full rounded-md p-3 border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" + className="w-full rounded-md p-3 border-sky-100 border-solid border outline-none focus:border-sky-700 duration-100" />
-

Icon Color

+

Icon Color

setCollection({ ...collection, color: "#0ea5e9" }) } @@ -101,9 +101,9 @@ export default function CollectionInfo({
-

Description

+

Description