diff --git a/components/Modal/User/ChangePassword.tsx b/components/Modal/User/ChangePassword.tsx index 0cb2168..55e8c60 100644 --- a/components/Modal/User/ChangePassword.tsx +++ b/components/Modal/User/ChangePassword.tsx @@ -80,16 +80,16 @@ export default function ChangePassword({ value={newPassword} onChange={(e) => setNewPassword1(e.target.value)} type="password" - placeholder="*****************" + placeholder="***********" className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" /> -

Re-enter New Password

+

Confirm New Password

setNewPassword2(e.target.value)} type="password" - placeholder="*****************" + placeholder="***********" className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" /> diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 5263ece..b576344 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -2,7 +2,6 @@ import useCollectionStore from "@/store/collections"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faFolder, - faBox, faHashtag, faChartSimple, faChevronDown, @@ -13,6 +12,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import { Disclosure, Transition } from "@headlessui/react"; +import Image from "next/image"; export default function Sidebar({ className }: { className?: string }) { const [tagDisclosure, setTagDisclosure] = useState(() => { @@ -53,55 +53,50 @@ export default function Sidebar({ className }: { className?: string }) {
-

- Linkwarden -

- -
- -
- -

Dashboard

-
+
+ + +

Dashboard

- -
- -

All Links

-
+ + +

All Links

- -
- -

All Collections

-
+ + +

+ All Collections +

diff --git a/lib/client/addMemberToCollection.ts b/lib/client/addMemberToCollection.ts index bccd2d3..deb7fa0 100644 --- a/lib/client/addMemberToCollection.ts +++ b/lib/client/addMemberToCollection.ts @@ -19,7 +19,7 @@ const addMemberToCollection = async ( // member can't be empty memberUsername.trim() !== "" && // member can't be the owner - memberUsername.trim() !== ownerUsername + memberUsername.trim().toLowerCase() !== ownerUsername.toLowerCase() ) { // Lookup, get data/err, list ... const user = await getPublicUserDataByUsername( @@ -40,7 +40,7 @@ const addMemberToCollection = async ( }); } } else if (checkIfMemberAlreadyExists) toast.error("User already exists."); - else if (memberUsername.trim() === ownerUsername) + else if (memberUsername.trim().toLowerCase() === ownerUsername.toLowerCase()) toast.error("You are already the collection owner."); }; diff --git a/pages/collections/index.tsx b/pages/collections/index.tsx index adbe3bc..6c7c526 100644 --- a/pages/collections/index.tsx +++ b/pages/collections/index.tsx @@ -1,7 +1,7 @@ import useCollectionStore from "@/store/collections"; import { - faBox, faEllipsis, + faFolder, faPlus, faSort, } from "@fortawesome/free-solid-svg-icons"; @@ -36,7 +36,7 @@ export default function Collections() {

diff --git a/pages/login.tsx b/pages/login.tsx index 89a9b85..9ba2bb2 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -73,11 +73,20 @@ export default function Login() { setForm({ ...form, password: e.target.value })} className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" /> + {EmailProvider && ( + + Forgot Password? + + )} +

- {EmailProvider && ( -
-

Forgot your password?

- - Send login link - -
- )} ); } diff --git a/pages/public/collections/[id].tsx b/pages/public/collections/[id].tsx index 2f06612..2f6e32f 100644 --- a/pages/public/collections/[id].tsx +++ b/pages/public/collections/[id].tsx @@ -63,9 +63,9 @@ export default function PublicCollections() { })}
-

+ {/*

List created with Linkwarden. -

+

*/}
) : ( <> diff --git a/pages/register.tsx b/pages/register.tsx index c17db4a..942e19c 100644 --- a/pages/register.tsx +++ b/pages/register.tsx @@ -139,41 +139,50 @@ export default function Register() { ) : undefined} -

Password

+
+
+

+ Password +

- setForm({ ...form, password: e.target.value })} - className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" - /> + setForm({ ...form, password: e.target.value })} + className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" + /> +
-

- Re-enter Password -

+
+

+ Confirm Password +

- - setForm({ ...form, passwordConfirmation: e.target.value }) - } - className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" - /> + + setForm({ ...form, passwordConfirmation: e.target.value }) + } + className="w-full rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" + /> +
+
-
-
-

Already have an account?

- - Login - + +
+

Already have an account?

+ + Login + +
); diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png index e20c59d..1cb2d49 100644 Binary files a/public/android-chrome-192x192.png and b/public/android-chrome-192x192.png differ diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png index 6e77e38..a2045ff 100644 Binary files a/public/android-chrome-512x512.png and b/public/android-chrome-512x512.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png index 962a140..4bd72ca 100644 Binary files a/public/apple-touch-icon.png and b/public/apple-touch-icon.png differ diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png index 5fae853..6236e5c 100644 Binary files a/public/favicon-16x16.png and b/public/favicon-16x16.png differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png index 0fa9a5b..9509579 100644 Binary files a/public/favicon-32x32.png and b/public/favicon-32x32.png differ diff --git a/public/favicon.ico b/public/favicon.ico index 65bcb6d..40c5ef7 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/icon.png b/public/icon.png index e61f111..f55c193 100644 Binary files a/public/icon.png and b/public/icon.png differ diff --git a/public/site.webmanifest b/public/site.webmanifest index fa99de7..45dc8a2 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,19 +1 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file