⚡️⚡️⚡️ 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
format
Isaac06d8cf3cb8ef
diff --git a/apps/web/components/CollectionListing.tsx b/apps/web/components/CollectionListing.tsxindex 81480758..befb3b66 100644--- a/apps/web/components/CollectionListing.tsx+++ b/apps/web/components/CollectionListing.tsx@@ -297,10 +297,11 @@ const renderItem = (return (<div ref={provided.innerRef} {...provided.draggableProps} className="mb-1"><div- className={`${currentPath === `/collections/${collection.id}`+ className={`${+ currentPath === `/collections/${collection.id}`? "bg-primary/20 is-active": "hover:bg-neutral/20"- } duration-100 flex gap-1 items-center pr-2 pl-1 rounded-md`}+ } duration-100 flex gap-1 items-center pr-2 pl-1 rounded-md`}>{Dropdown(item as ExtendedTreeItem, onExpand, onCollapse)}diff --git a/apps/web/components/DashboardLayoutDropdown.tsx b/apps/web/components/DashboardLayoutDropdown.tsxindex aeb75605..7e0d8fee 100644--- a/apps/web/components/DashboardLayoutDropdown.tsx+++ b/apps/web/components/DashboardLayoutDropdown.tsx@@ -314,8 +314,9 @@ function DraggableListItem({onChange={() => onCheckboxChange(section)}/><label- htmlFor={`section-${section.type}-${section.collectionId || "default"- }`}+ htmlFor={`section-${section.type}-${+ section.collectionId || "default"+ }`}className="text-sm select-none">{section.name}@@ -323,8 +324,9 @@ function DraggableListItem({</div><i- className={`bi-grip-vertical text-neutral ${section.enabled ? "cursor-grab" : "opacity-50"- }`}+ className={`bi-grip-vertical text-neutral ${+ section.enabled ? "cursor-grab" : "opacity-50"+ }`}/></li>);diff --git a/apps/web/lib/api/controllers/dashboard/updateDashboardLayout.ts b/apps/web/lib/api/controllers/dashboard/updateDashboardLayout.tsindex 8f811fcd..9346d9c2 100644--- a/apps/web/lib/api/controllers/dashboard/updateDashboardLayout.ts+++ b/apps/web/lib/api/controllers/dashboard/updateDashboardLayout.ts@@ -14,8 +14,9 @@ export default async function updateDashboardLayout(if (!dataValidation.success) {console.log(dataValidation.error.issues[0].message);return {- response: `Error: ${dataValidation.error.issues[0].message- } [${dataValidation.error.issues[0].path.join(", ")}]`,+ response: `Error: ${+ dataValidation.error.issues[0].message+ } [${dataValidation.error.issues[0].path.join(", ")}]`,status: 400,};}@@ -160,4 +161,4 @@ export default async function updateDashboardLayout(status: 200,response: data,};-}\ No newline at end of file+}diff --git a/apps/web/lib/api/controllers/users/userId/updateUserById.ts b/apps/web/lib/api/controllers/users/userId/updateUserById.tsindex ccca68eb..3582ac84 100644--- a/apps/web/lib/api/controllers/users/userId/updateUserById.ts+++ b/apps/web/lib/api/controllers/users/userId/updateUserById.ts@@ -17,8 +17,9 @@ export default async function updateUserById(if (!dataValidation.success) {return {- response: `Error: ${dataValidation.error.issues[0].message- } [${dataValidation.error.issues[0].path.join(", ")}]`,+ response: `Error: ${+ dataValidation.error.issues[0].message+ } [${dataValidation.error.issues[0].path.join(", ")}]`,status: 400,};}@@ -30,18 +31,18 @@ export default async function updateUserById(id: { not: userId },OR: emailEnabled? [- {- username: data.username.toLowerCase(),- },- {- email: data.email?.toLowerCase(),- },- ]+ {+ username: data.username.toLowerCase(),+ },+ {+ email: data.email?.toLowerCase(),+ },+ ]: [- {- username: data.username.toLowerCase(),- },- ],+ {+ username: data.username.toLowerCase(),+ },+ ],},});diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsxindex f6de3268..5f1b8907 100644--- a/apps/web/pages/dashboard.tsx+++ b/apps/web/pages/dashboard.tsx@@ -57,7 +57,7 @@ export default function Dashboard() {user.referredBy === null &&// if user is using Linkwarden for more than 3 daysnew Date().getTime() - new Date(user.createdAt).getTime() >- 3 * 24 * 60 * 60 * 1000+ 3 * 24 * 60 * 60 * 1000) {setTimeout(() => {setShowsSurveyModal(true);@@ -340,7 +340,7 @@ export default function Dashboard() {/></div>) : links?.filter((link: any) => link.collection.id === collection.id)- .length > 0 ? (+ .length > 0 ? (<div className="w-full"><Linkslinks={links