mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-12 23:01:07 +00:00
save user ID with url to ensure that same website can be saved by users
This commit is contained in:
parent
9220d5f243
commit
efe6c946cb
3 changed files with 10 additions and 21 deletions
|
|
@ -30,7 +30,7 @@ export async function POST(request: Request, store: CloudflareVectorizeStore) {
|
|||
},
|
||||
],
|
||||
{
|
||||
ids: [`${body.url}`],
|
||||
ids: [`${body.url}-${body.user}`],
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -295,8 +295,7 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) {
|
|||
)}
|
||||
>
|
||||
<h1 className="text-rgray-11 mt-auto w-full text-center text-3xl font-bold tracking-tight md:mt-0">
|
||||
Never forget anything. You are now{" "}
|
||||
<span className="text-[#C9AC3E]">Smort</span>er.
|
||||
Ask your second brain
|
||||
</h1>
|
||||
|
||||
<Textarea2
|
||||
|
|
|
|||
|
|
@ -77,24 +77,16 @@ export default function Sidebar({
|
|||
<>
|
||||
<div className="relative hidden h-screen max-h-screen w-max flex-col items-center text-sm font-light md:flex">
|
||||
<div className="bg-rgray-3 border-r-rgray-6 relative z-[50] flex h-full w-full flex-col items-center justify-center border-r px-2 py-5 ">
|
||||
<MenuItem
|
||||
item={{
|
||||
label: "Smort",
|
||||
icon: (
|
||||
<Image
|
||||
className="rounded-md"
|
||||
src="/icons/logo_without_bg.png"
|
||||
alt="Smort logo"
|
||||
width={50}
|
||||
height={50}
|
||||
/>
|
||||
),
|
||||
labelDisplay: <WordMark />,
|
||||
}}
|
||||
selectedItem={selectedItem}
|
||||
setSelectedItem={setSelectedItem}
|
||||
<Image
|
||||
className="mb-4 rounded-md"
|
||||
src="/icons/logo_bw_without_bg.png"
|
||||
alt="Smort logo"
|
||||
width={50}
|
||||
height={50}
|
||||
/>
|
||||
|
||||
<div className="bg-rgray-6 mb-8 h-[1px] w-full" />
|
||||
|
||||
<MenuItem
|
||||
item={{
|
||||
label: "Memories",
|
||||
|
|
@ -104,9 +96,7 @@ export default function Sidebar({
|
|||
selectedItem={selectedItem}
|
||||
setSelectedItem={setSelectedItem}
|
||||
/>
|
||||
|
||||
<div className="mt-auto" />
|
||||
|
||||
<MenuItem
|
||||
item={{
|
||||
label: "Trash",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue