⚡️⚡️⚡️ 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
WIP
daniel31x13179063801222
diff --git a/apps/web/components/DashboardItem.tsx b/apps/web/components/DashboardItem.tsxindex 646404ef..3d818996 100644--- a/apps/web/components/DashboardItem.tsx+++ b/apps/web/components/DashboardItem.tsx@@ -8,8 +8,8 @@ export default function dashboardItem({icon: string;}) {return (- <div className="flex items-center justify-between w-full rounded-xl border border-neutral-content p-2 bg-gradient-to-tr from-neutral-content/70 to-50% to-base-200">- <div className="w-12 aspect-square flex justify-center items-center bg-primary/20 rounded-xl select-none">+ <div className="flex items-center justify-between w-full rounded-xl border border-neutral-content p-3 bg-gradient-to-tr from-neutral-content/70 to-50% to-base-200">+ <div className="w-14 aspect-square flex justify-center items-center bg-primary/20 rounded-xl select-none"><i className={`${icon} text-primary text-3xl drop-shadow`}></i></div><div className="ml-4 flex flex-col justify-center">diff --git a/apps/web/components/DashboardLayoutDropdown.tsx b/apps/web/components/DashboardLayoutDropdown.tsxindex 36e81ebe..577ce4e6 100644--- a/apps/web/components/DashboardLayoutDropdown.tsx+++ b/apps/web/components/DashboardLayoutDropdown.tsx@@ -187,8 +187,9 @@ export default function DashboardLayoutDropdown() {return (<DropdownMenu modal><DropdownMenuTrigger asChild>- <Button variant="ghost" size="icon">+ <Button variant="ghost" size="sm" className="h-8"><i className="bi-sliders2-vertical text-neutral" />+ {t("edit_layout")}</Button></DropdownMenuTrigger>@@ -319,7 +320,7 @@ function DraggableListItem({setDragOverPosition(null);}}className={`- py-1 px-2 flex items-center justify-between+ py-1 px-1 flex items-center justify-between${section.enabled ? "cursor-grab active:cursor-grabbing" : ""}${draggedId === sectionId ? "opacity-70" : ""}${indicatorClass}diff --git a/apps/web/components/DashboardLinks.tsx b/apps/web/components/DashboardLinks.tsxindex d9201413..ee3966a0 100644--- a/apps/web/components/DashboardLinks.tsx+++ b/apps/web/components/DashboardLinks.tsx@@ -37,7 +37,7 @@ export function DashboardLinks({isLoading?: boolean;}) {return (- <div className={`flex gap-5 pb-5 overflow-x-auto hide-scrollbar w-full`}>+ <div className={`flex gap-5 overflow-x-auto hide-scrollbar w-full`}>{links?.map((e, i) => {return <Card key={i} link={e} />;})}diff --git a/apps/web/components/NoLinksFound.tsx b/apps/web/components/NoLinksFound.tsxindex 3888b6b0..fcea6d35 100644--- a/apps/web/components/NoLinksFound.tsx+++ b/apps/web/components/NoLinksFound.tsx@@ -24,7 +24,7 @@ export default function NoLinksFound({ text }: Props) {<path d="M7.009 12.139a7.632 7.632 0 0 1-1.804-1.352A7.568 7.568 0 0 1 3.794 8.86c-1.102.992-1.965 5.054-1.839 5.18.125.126 3.936-.896 5.054-1.902Z" /></svg><p className="text-center text-xl sm:text-xl">- {text || t("no_links_in_collection")}+ {text || t("no_link_in_collection")}</p><p className="text-center text-sm sm:text-base">{t("start_journey")}</p><div className="text-center w-full mt-4">diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsxindex c7f61ac7..7ac0bdd7 100644--- a/apps/web/pages/dashboard.tsx+++ b/apps/web/pages/dashboard.tsx@@ -125,7 +125,7 @@ export default function Dashboard() {};const renderStatsSection = () => (- <div className="flex gap-3 w-fit">+ <div className="xl:flex flex flex-col sm:grid grid-cols-2 gap-4 xl:flex-row xl:justify-evenly xl:w-full"><DashboardItemname={numberOfLinks === 1 ? t("link") : t("links")}value={numberOfLinks}@@ -288,7 +288,7 @@ export default function Dashboard() {<div className="flex flex-col gap-2 justify-center h-full border border-solid border-neutral-content w-full mx-auto p-10 rounded-xl bg-base-200 bg-gradient-to-tr from-neutral-content/70 to-50% to-base-200"><i className="bi-folder mx-auto text-6xl text-primary"></i><p className="text-center text-xl">- {t("no_links_in_collection")}+ {t("no_link_in_collection")}</p></div>)}@@ -316,12 +316,11 @@ export default function Dashboard() {<MainLayout><div style={{ flex: "1 1 auto" }} className="p-5 flex flex-col gap-4"><div className="flex items-center justify-between">- <PageHeader- icon={"bi-house "}- title={t("dashboard")}- description={t("dashboard_desc")}- />- <div className="flex items-center gap-3">+ <div className="flex items-center gap-2">+ <i className="bi-house-fill text-primary" />+ <p className="font-thin">{t("dashboard")}</p>+ </div>+ <div className="flex items-center gap-2"><DashboardLayoutDropdown /><ViewDropdownviewMode={viewMode}@@ -330,12 +329,14 @@ export default function Dashboard() {/></div></div>-{orderedSections?.map((section) => (<div key={`${section.type}-${section.collectionId || "default"}`}>{renderSection(section)}</div>))}+ {/* <div className="mx-auto w-fit">+ <DashboardLayoutDropdown />+ </div> */}</div>{showSurveyModal && (diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.jsonindex 5b2a4dff..8cc28407 100644--- a/apps/web/public/locales/en/common.json+++ b/apps/web/public/locales/en/common.json@@ -478,7 +478,7 @@"display_on_dashboard": "Display on Dashboard","dashboard_stats": "Dashboard Stats","no_results_found": "No results found.",- "no_links_in_collection": "No Links in this Collection.",+ "no_link_in_collection": "No Link in this Collection.","theme": "Theme","font_family": "Font Family","font_size": "Font Size",@@ -486,5 +486,6 @@"line_width": "Line Width","notes_highlights": "Notes & Highlights","no_notes_highlights": "No notes or highlights found for this link.",- "save": "Save"+ "save": "Save",+ "edit_layout": "Edit Layout"}