From 755fc36e912964863d4f46bb32adda6332b419fe Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 12 Apr 2025 19:37:18 +0100 Subject: chore: Rename hoarder packages to karakeep --- apps/web/app/api/assets/[assetId]/route.ts | 4 ++-- apps/web/app/api/assets/route.ts | 12 +++++----- apps/web/app/api/bookmarks/export/route.tsx | 2 +- apps/web/app/api/trpc/[trpc]/route.ts | 2 +- .../api/v1/bookmarks/[bookmarkId]/assets/route.ts | 2 +- .../web/app/api/v1/bookmarks/[bookmarkId]/route.ts | 2 +- .../api/v1/bookmarks/[bookmarkId]/tags/route.ts | 2 +- apps/web/app/api/v1/bookmarks/route.ts | 2 +- apps/web/app/api/v1/bookmarks/singlefile/route.ts | 8 +++---- .../app/api/v1/highlights/[highlightId]/route.ts | 2 +- apps/web/app/api/v1/highlights/route.ts | 2 +- apps/web/app/api/v1/lists/[listId]/route.ts | 2 +- apps/web/app/api/v1/lists/route.ts | 2 +- apps/web/app/api/v1/tags/[tagId]/route.ts | 2 +- apps/web/app/api/v1/utils/handler.ts | 2 +- apps/web/app/api/v1/utils/pagination.ts | 4 ++-- apps/web/app/dashboard/layout.tsx | 2 +- apps/web/app/dashboard/lists/[listId]/page.tsx | 2 +- apps/web/app/layout.tsx | 4 ++-- apps/web/app/settings/assets/page.tsx | 6 ++--- apps/web/app/settings/broken-links/page.tsx | 4 ++-- apps/web/components/admin/AddUserDialog.tsx | 2 +- apps/web/components/admin/ChangeRoleDialog.tsx | 2 +- apps/web/components/admin/ResetPasswordDialog.tsx | 2 +- .../components/dashboard/BulkBookmarksAction.tsx | 6 ++--- apps/web/components/dashboard/UploadDropzone.tsx | 4 ++-- .../components/dashboard/bookmarks/AssetCard.tsx | 6 ++--- .../dashboard/bookmarks/BookmarkActionBar.tsx | 2 +- .../dashboard/bookmarks/BookmarkCard.tsx | 4 ++-- .../bookmarks/BookmarkLayoutAdaptingCard.tsx | 6 ++--- .../bookmarks/BookmarkMarkdownComponent.tsx | 4 ++-- .../dashboard/bookmarks/BookmarkOptions.tsx | 12 +++++----- .../dashboard/bookmarks/BookmarkTagsEditor.tsx | 4 ++-- .../dashboard/bookmarks/BookmarkedTextEditor.tsx | 2 +- .../components/dashboard/bookmarks/Bookmarks.tsx | 2 +- .../dashboard/bookmarks/BookmarksGrid.tsx | 2 +- .../dashboard/bookmarks/BulkManageListsModal.tsx | 4 ++-- .../dashboard/bookmarks/BulkTagModal.tsx | 8 +++---- .../bookmarks/DeleteBookmarkConfirmationDialog.tsx | 4 ++-- .../dashboard/bookmarks/EditBookmarkDialog.tsx | 4 ++-- .../components/dashboard/bookmarks/EditorCard.tsx | 4 ++-- .../components/dashboard/bookmarks/LinkCard.tsx | 4 ++-- .../dashboard/bookmarks/ManageListsModal.tsx | 2 +- .../dashboard/bookmarks/SummarizeBookmarkArea.tsx | 4 ++-- .../web/components/dashboard/bookmarks/TagList.tsx | 2 +- .../components/dashboard/bookmarks/TagModal.tsx | 2 +- .../components/dashboard/bookmarks/TagsEditor.tsx | 2 +- .../components/dashboard/bookmarks/TextCard.tsx | 6 ++--- .../components/dashboard/bookmarks/UnknownCard.tsx | 2 +- .../dashboard/bookmarks/UpdatableBookmarksGrid.tsx | 4 ++-- .../action-buttons/ArchiveBookmarkButton.tsx | 2 +- .../dashboard/cleanups/TagDuplicationDetention.tsx | 2 +- .../dashboard/highlights/AllHighlights.tsx | 2 +- .../dashboard/highlights/HighlightCard.tsx | 4 ++-- .../components/dashboard/lists/AllListsView.tsx | 2 +- .../dashboard/lists/BookmarkListSelector.tsx | 2 +- .../dashboard/lists/CollapsibleBookmarkLists.tsx | 6 ++--- .../lists/DeleteListConfirmationDialog.tsx | 4 ++-- .../components/dashboard/lists/EditListModal.tsx | 6 ++--- apps/web/components/dashboard/lists/ListHeader.tsx | 6 ++--- .../web/components/dashboard/lists/ListOptions.tsx | 2 +- .../web/components/dashboard/preview/ActionBar.tsx | 4 ++-- .../dashboard/preview/AssetContentSection.tsx | 4 ++-- .../components/dashboard/preview/AttachmentBox.tsx | 8 +++---- .../dashboard/preview/BookmarkHtmlHighlighter.tsx | 2 +- .../dashboard/preview/BookmarkPreview.tsx | 4 ++-- .../dashboard/preview/LinkContentSection.tsx | 4 ++-- .../components/dashboard/preview/NoteEditor.tsx | 4 ++-- .../dashboard/preview/TextContentSection.tsx | 6 ++--- .../dashboard/search/QueryExplainerTooltip.tsx | 4 ++-- apps/web/components/dashboard/sidebar/AllLists.tsx | 4 ++-- apps/web/components/dashboard/tags/AllTagsView.tsx | 4 ++-- .../components/dashboard/tags/BulkTagAction.tsx | 4 ++-- .../dashboard/tags/DeleteTagConfirmationDialog.tsx | 2 +- .../components/dashboard/tags/EditableTagName.tsx | 2 +- .../components/dashboard/tags/MergeTagModal.tsx | 2 +- apps/web/components/dashboard/tags/TagPill.tsx | 2 +- apps/web/components/settings/AISettings.tsx | 4 ++-- apps/web/components/settings/ChangePassword.tsx | 2 +- apps/web/components/settings/FeedSettings.tsx | 2 +- apps/web/components/settings/ImportExport.tsx | 8 +++---- apps/web/components/settings/UserOptions.tsx | 2 +- .../components/settings/WebhookEventSelector.tsx | 2 +- apps/web/components/settings/WebhookSettings.tsx | 2 +- apps/web/components/shared/sidebar/Sidebar.tsx | 2 +- .../components/shared/sidebar/SidebarLayout.tsx | 2 +- apps/web/components/signin/CredentialsForm.tsx | 2 +- apps/web/components/signin/SignInForm.tsx | 2 +- apps/web/lib/attachments.tsx | 2 +- apps/web/lib/bulkActions.ts | 2 +- apps/web/lib/clientConfig.tsx | 2 +- apps/web/lib/exportBookmarks.ts | 2 +- apps/web/lib/hooks/bookmark-search.ts | 2 +- apps/web/lib/hooks/upload-file.ts | 2 +- apps/web/lib/i18n/settings.ts | 2 +- apps/web/lib/importBookmarkParser.ts | 2 +- apps/web/lib/providers.tsx | 2 +- apps/web/lib/store/useSortOrderStore.ts | 2 +- apps/web/lib/trpc.tsx | 2 +- apps/web/next.config.mjs | 2 +- apps/web/package.json | 26 +++++++++++----------- apps/web/server/api/client.ts | 8 +++---- apps/web/server/auth.ts | 8 +++---- apps/web/tailwind.config.ts | 2 +- apps/web/tsconfig.json | 2 +- 105 files changed, 190 insertions(+), 190 deletions(-) (limited to 'apps/web') diff --git a/apps/web/app/api/assets/[assetId]/route.ts b/apps/web/app/api/assets/[assetId]/route.ts index 66ec6754..8abb9080 100644 --- a/apps/web/app/api/assets/[assetId]/route.ts +++ b/apps/web/app/api/assets/[assetId]/route.ts @@ -1,12 +1,12 @@ import { createContextFromRequest } from "@/server/api/client"; import { and, eq } from "drizzle-orm"; -import { assets } from "@hoarder/db/schema"; +import { assets } from "@karakeep/db/schema"; import { createAssetReadStream, getAssetSize, readAssetMetadata, -} from "@hoarder/shared/assetdb"; +} from "@karakeep/shared/assetdb"; export const dynamic = "force-dynamic"; export async function GET( diff --git a/apps/web/app/api/assets/route.ts b/apps/web/app/api/assets/route.ts index b3bd9bc0..e2e1e63e 100644 --- a/apps/web/app/api/assets/route.ts +++ b/apps/web/app/api/assets/route.ts @@ -6,15 +6,15 @@ import { pipeline } from "stream/promises"; import { createContextFromRequest } from "@/server/api/client"; import { TRPCError } from "@trpc/server"; -import type { ZUploadResponse } from "@hoarder/shared/types/uploads"; -import { assets, AssetTypes } from "@hoarder/db/schema"; +import type { ZUploadResponse } from "@karakeep/shared/types/uploads"; +import { assets, AssetTypes } from "@karakeep/db/schema"; import { newAssetId, saveAssetFromFile, SUPPORTED_UPLOAD_ASSET_TYPES, -} from "@hoarder/shared/assetdb"; -import serverConfig from "@hoarder/shared/config"; -import { AuthedContext } from "@hoarder/trpc"; +} from "@karakeep/shared/assetdb"; +import serverConfig from "@karakeep/shared/config"; +import { AuthedContext } from "@karakeep/trpc"; const MAX_UPLOAD_SIZE_BYTES = serverConfig.maxAssetSizeMb * 1024 * 1024; @@ -57,7 +57,7 @@ export async function uploadFromPostData( let tempFilePath: string | undefined; try { - tempFilePath = path.join(os.tmpdir(), `hoarder-upload-${Date.now()}`); + tempFilePath = path.join(os.tmpdir(), `karakeep-upload-${Date.now()}`); await pipeline( webStreamToNode(data.stream()), fs.createWriteStream(tempFilePath), diff --git a/apps/web/app/api/bookmarks/export/route.tsx b/apps/web/app/api/bookmarks/export/route.tsx index 7ae46c56..4e04757f 100644 --- a/apps/web/app/api/bookmarks/export/route.tsx +++ b/apps/web/app/api/bookmarks/export/route.tsx @@ -2,7 +2,7 @@ import { toExportFormat, zExportSchema } from "@/lib/exportBookmarks"; import { api, createContextFromRequest } from "@/server/api/client"; import { z } from "zod"; -import { MAX_NUM_BOOKMARKS_PER_PAGE } from "@hoarder/shared/types/bookmarks"; +import { MAX_NUM_BOOKMARKS_PER_PAGE } from "@karakeep/shared/types/bookmarks"; export const dynamic = "force-dynamic"; export async function GET(request: Request) { diff --git a/apps/web/app/api/trpc/[trpc]/route.ts b/apps/web/app/api/trpc/[trpc]/route.ts index 1afcb886..87e262f3 100644 --- a/apps/web/app/api/trpc/[trpc]/route.ts +++ b/apps/web/app/api/trpc/[trpc]/route.ts @@ -1,7 +1,7 @@ import { createContextFromRequest } from "@/server/api/client"; import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; -import { appRouter } from "@hoarder/trpc/routers/_app"; +import { appRouter } from "@karakeep/trpc/routers/_app"; const handler = (req: Request) => fetchRequestHandler({ diff --git a/apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/route.ts b/apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/route.ts index 156876b6..6c7c70d7 100644 --- a/apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/route.ts +++ b/apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; -import { zAssetSchema } from "@hoarder/shared/types/bookmarks"; +import { zAssetSchema } from "@karakeep/shared/types/bookmarks"; export const dynamic = "force-dynamic"; diff --git a/apps/web/app/api/v1/bookmarks/[bookmarkId]/route.ts b/apps/web/app/api/v1/bookmarks/[bookmarkId]/route.ts index 8fe4d9fe..db78f17c 100644 --- a/apps/web/app/api/v1/bookmarks/[bookmarkId]/route.ts +++ b/apps/web/app/api/v1/bookmarks/[bookmarkId]/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; -import { zUpdateBookmarksRequestSchema } from "@hoarder/shared/types/bookmarks"; +import { zUpdateBookmarksRequestSchema } from "@karakeep/shared/types/bookmarks"; export const dynamic = "force-dynamic"; diff --git a/apps/web/app/api/v1/bookmarks/[bookmarkId]/tags/route.ts b/apps/web/app/api/v1/bookmarks/[bookmarkId]/tags/route.ts index df464618..00c28afa 100644 --- a/apps/web/app/api/v1/bookmarks/[bookmarkId]/tags/route.ts +++ b/apps/web/app/api/v1/bookmarks/[bookmarkId]/tags/route.ts @@ -2,7 +2,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; import { z } from "zod"; -import { zManipulatedTagSchema } from "@hoarder/shared/types/bookmarks"; +import { zManipulatedTagSchema } from "@karakeep/shared/types/bookmarks"; export const dynamic = "force-dynamic"; diff --git a/apps/web/app/api/v1/bookmarks/route.ts b/apps/web/app/api/v1/bookmarks/route.ts index 1342f070..7b6954c6 100644 --- a/apps/web/app/api/v1/bookmarks/route.ts +++ b/apps/web/app/api/v1/bookmarks/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { z } from "zod"; -import { zNewBookmarkRequestSchema } from "@hoarder/shared/types/bookmarks"; +import { zNewBookmarkRequestSchema } from "@karakeep/shared/types/bookmarks"; import { buildHandler } from "../utils/handler"; import { adaptPagination, zPagination } from "../utils/pagination"; diff --git a/apps/web/app/api/v1/bookmarks/singlefile/route.ts b/apps/web/app/api/v1/bookmarks/singlefile/route.ts index 3f8ac2f7..7c1d7201 100644 --- a/apps/web/app/api/v1/bookmarks/singlefile/route.ts +++ b/apps/web/app/api/v1/bookmarks/singlefile/route.ts @@ -1,10 +1,10 @@ import { createContextFromRequest } from "@/server/api/client"; import { TRPCError } from "@trpc/server"; -import serverConfig from "@hoarder/shared/config"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; -import { createCallerFactory } from "@hoarder/trpc"; -import { appRouter } from "@hoarder/trpc/routers/_app"; +import serverConfig from "@karakeep/shared/config"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; +import { createCallerFactory } from "@karakeep/trpc"; +import { appRouter } from "@karakeep/trpc/routers/_app"; import { uploadFromPostData } from "../../../assets/route"; diff --git a/apps/web/app/api/v1/highlights/[highlightId]/route.ts b/apps/web/app/api/v1/highlights/[highlightId]/route.ts index aa92e7ce..50420427 100644 --- a/apps/web/app/api/v1/highlights/[highlightId]/route.ts +++ b/apps/web/app/api/v1/highlights/[highlightId]/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; -import { zUpdateHighlightSchema } from "@hoarder/shared/types/highlights"; +import { zUpdateHighlightSchema } from "@karakeep/shared/types/highlights"; export const dynamic = "force-dynamic"; diff --git a/apps/web/app/api/v1/highlights/route.ts b/apps/web/app/api/v1/highlights/route.ts index a324d498..e95d84f6 100644 --- a/apps/web/app/api/v1/highlights/route.ts +++ b/apps/web/app/api/v1/highlights/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; -import { zNewHighlightSchema } from "@hoarder/shared/types/highlights"; +import { zNewHighlightSchema } from "@karakeep/shared/types/highlights"; import { adaptPagination, zPagination } from "../utils/pagination"; diff --git a/apps/web/app/api/v1/lists/[listId]/route.ts b/apps/web/app/api/v1/lists/[listId]/route.ts index 3fd0a32d..2cddbfdb 100644 --- a/apps/web/app/api/v1/lists/[listId]/route.ts +++ b/apps/web/app/api/v1/lists/[listId]/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; -import { zEditBookmarkListSchema } from "@hoarder/shared/types/lists"; +import { zEditBookmarkListSchema } from "@karakeep/shared/types/lists"; export const dynamic = "force-dynamic"; diff --git a/apps/web/app/api/v1/lists/route.ts b/apps/web/app/api/v1/lists/route.ts index 724fadf2..5def2506 100644 --- a/apps/web/app/api/v1/lists/route.ts +++ b/apps/web/app/api/v1/lists/route.ts @@ -1,6 +1,6 @@ import { NextRequest } from "next/server"; -import { zNewBookmarkListSchema } from "@hoarder/shared/types/lists"; +import { zNewBookmarkListSchema } from "@karakeep/shared/types/lists"; import { buildHandler } from "../utils/handler"; diff --git a/apps/web/app/api/v1/tags/[tagId]/route.ts b/apps/web/app/api/v1/tags/[tagId]/route.ts index 29b27218..234d952d 100644 --- a/apps/web/app/api/v1/tags/[tagId]/route.ts +++ b/apps/web/app/api/v1/tags/[tagId]/route.ts @@ -1,7 +1,7 @@ import { NextRequest } from "next/server"; import { buildHandler } from "@/app/api/v1/utils/handler"; -import { zUpdateTagRequestSchema } from "@hoarder/shared/types/tags"; +import { zUpdateTagRequestSchema } from "@karakeep/shared/types/tags"; export const dynamic = "force-dynamic"; diff --git a/apps/web/app/api/v1/utils/handler.ts b/apps/web/app/api/v1/utils/handler.ts index 84847d71..9154506d 100644 --- a/apps/web/app/api/v1/utils/handler.ts +++ b/apps/web/app/api/v1/utils/handler.ts @@ -6,7 +6,7 @@ import { import { TRPCError } from "@trpc/server"; import { z, ZodError } from "zod"; -import { Context } from "@hoarder/trpc"; +import { Context } from "@karakeep/trpc"; function trpcCodeToHttpCode(code: TRPCError["code"]) { switch (code) { diff --git a/apps/web/app/api/v1/utils/pagination.ts b/apps/web/app/api/v1/utils/pagination.ts index 1b438217..12a0b950 100644 --- a/apps/web/app/api/v1/utils/pagination.ts +++ b/apps/web/app/api/v1/utils/pagination.ts @@ -1,7 +1,7 @@ import { z } from "zod"; -import { MAX_NUM_BOOKMARKS_PER_PAGE } from "@hoarder/shared/types/bookmarks"; -import { zCursorV2 } from "@hoarder/shared/types/pagination"; +import { MAX_NUM_BOOKMARKS_PER_PAGE } from "@karakeep/shared/types/bookmarks"; +import { zCursorV2 } from "@karakeep/shared/types/pagination"; export const zPagination = z.object({ limit: z.coerce.number().max(MAX_NUM_BOOKMARKS_PER_PAGE).optional(), diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx index 272979f3..45b97653 100644 --- a/apps/web/app/dashboard/layout.tsx +++ b/apps/web/app/dashboard/layout.tsx @@ -16,7 +16,7 @@ import { Tag, } from "lucide-react"; -import serverConfig from "@hoarder/shared/config"; +import serverConfig from "@karakeep/shared/config"; export default async function Dashboard({ children, diff --git a/apps/web/app/dashboard/lists/[listId]/page.tsx b/apps/web/app/dashboard/lists/[listId]/page.tsx index 159730a1..6c0bc36c 100644 --- a/apps/web/app/dashboard/lists/[listId]/page.tsx +++ b/apps/web/app/dashboard/lists/[listId]/page.tsx @@ -4,7 +4,7 @@ import ListHeader from "@/components/dashboard/lists/ListHeader"; import { api } from "@/server/api/client"; import { TRPCError } from "@trpc/server"; -import { BookmarkListContextProvider } from "@hoarder/shared-react/hooks/bookmark-list-context"; +import { BookmarkListContextProvider } from "@karakeep/shared-react/hooks/bookmark-list-context"; export default async function ListPage({ params, diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 3eb017ad..6b75edf3 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; -import "@hoarder/tailwind-config/globals.css"; +import "@karakeep/tailwind-config/globals.css"; import type { Viewport } from "next"; import React from "react"; @@ -11,7 +11,7 @@ import { getUserLocalSettings } from "@/lib/userLocalSettings/userLocalSettings" import { getServerAuthSession } from "@/server/auth"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; -import { clientConfig } from "@hoarder/shared/config"; +import { clientConfig } from "@karakeep/shared/config"; const inter = Inter({ subsets: ["latin"], diff --git a/apps/web/app/settings/assets/page.tsx b/apps/web/app/settings/assets/page.tsx index a6c13525..0b3c2b5b 100644 --- a/apps/web/app/settings/assets/page.tsx +++ b/apps/web/app/settings/assets/page.tsx @@ -20,12 +20,12 @@ import { api } from "@/lib/trpc"; import { formatBytes } from "@/lib/utils"; import { ExternalLink, Trash2 } from "lucide-react"; -import { useDetachBookmarkAsset } from "@hoarder/shared-react/hooks/assets"; -import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; +import { useDetachBookmarkAsset } from "@karakeep/shared-react/hooks/assets"; +import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils"; import { humanFriendlyNameForAssertType, isAllowedToDetachAsset, -} from "@hoarder/trpc/lib/attachments"; +} from "@karakeep/trpc/lib/attachments"; export default function AssetsSettingsPage() { const { t } = useTranslation(); diff --git a/apps/web/app/settings/broken-links/page.tsx b/apps/web/app/settings/broken-links/page.tsx index 0b83dfa9..e2b42d07 100644 --- a/apps/web/app/settings/broken-links/page.tsx +++ b/apps/web/app/settings/broken-links/page.tsx @@ -17,8 +17,8 @@ import { useTranslation } from "react-i18next"; import { useDeleteBookmark, useRecrawlBookmark, -} from "@hoarder/shared-react/hooks/bookmarks"; -import { api } from "@hoarder/shared-react/trpc"; +} from "@karakeep/shared-react/hooks/bookmarks"; +import { api } from "@karakeep/shared-react/trpc"; export default function BrokenLinksPage() { const { t } = useTranslation(); diff --git a/apps/web/components/admin/AddUserDialog.tsx b/apps/web/components/admin/AddUserDialog.tsx index a13c6b88..67c38501 100644 --- a/apps/web/components/admin/AddUserDialog.tsx +++ b/apps/web/components/admin/AddUserDialog.tsx @@ -33,7 +33,7 @@ import { TRPCClientError } from "@trpc/client"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { zAdminCreateUserSchema } from "@hoarder/shared/types/admin"; +import { zAdminCreateUserSchema } from "@karakeep/shared/types/admin"; type AdminCreateUserSchema = z.infer; diff --git a/apps/web/components/admin/ChangeRoleDialog.tsx b/apps/web/components/admin/ChangeRoleDialog.tsx index 26ad5dce..e2552a15 100644 --- a/apps/web/components/admin/ChangeRoleDialog.tsx +++ b/apps/web/components/admin/ChangeRoleDialog.tsx @@ -32,7 +32,7 @@ import { TRPCClientError } from "@trpc/client"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { changeRoleSchema } from "@hoarder/shared/types/admin"; +import { changeRoleSchema } from "@karakeep/shared/types/admin"; type ChangeRoleSchema = z.infer; diff --git a/apps/web/components/admin/ResetPasswordDialog.tsx b/apps/web/components/admin/ResetPasswordDialog.tsx index 32183d1a..cc2a95f5 100644 --- a/apps/web/components/admin/ResetPasswordDialog.tsx +++ b/apps/web/components/admin/ResetPasswordDialog.tsx @@ -26,7 +26,7 @@ import { TRPCClientError } from "@trpc/client"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { resetPasswordSchema } from "@hoarder/shared/types/admin"; +import { resetPasswordSchema } from "@karakeep/shared/types/admin"; interface ResetPasswordDialogProps { userId: string; diff --git a/apps/web/components/dashboard/BulkBookmarksAction.tsx b/apps/web/components/dashboard/BulkBookmarksAction.tsx index 9d5ecdbe..817521ff 100644 --- a/apps/web/components/dashboard/BulkBookmarksAction.tsx +++ b/apps/web/components/dashboard/BulkBookmarksAction.tsx @@ -26,9 +26,9 @@ import { useDeleteBookmark, useRecrawlBookmark, useUpdateBookmark, -} from "@hoarder/shared-react/hooks/bookmarks"; -import { limitConcurrency } from "@hoarder/shared/concurrency"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared-react/hooks/bookmarks"; +import { limitConcurrency } from "@karakeep/shared/concurrency"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import BulkManageListsModal from "./bookmarks/BulkManageListsModal"; import BulkTagModal from "./bookmarks/BulkTagModal"; diff --git a/apps/web/components/dashboard/UploadDropzone.tsx b/apps/web/components/dashboard/UploadDropzone.tsx index 335ac72a..df7bae0a 100644 --- a/apps/web/components/dashboard/UploadDropzone.tsx +++ b/apps/web/components/dashboard/UploadDropzone.tsx @@ -6,8 +6,8 @@ import { cn } from "@/lib/utils"; import { TRPCClientError } from "@trpc/client"; import DropZone from "react-dropzone"; -import { useCreateBookmarkWithPostHook } from "@hoarder/shared-react/hooks/bookmarks"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +import { useCreateBookmarkWithPostHook } from "@karakeep/shared-react/hooks/bookmarks"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import LoadingSpinner from "../ui/spinner"; import { toast } from "../ui/use-toast"; diff --git a/apps/web/components/dashboard/bookmarks/AssetCard.tsx b/apps/web/components/dashboard/bookmarks/AssetCard.tsx index 0cb75b3f..6fc8a723 100644 --- a/apps/web/components/dashboard/bookmarks/AssetCard.tsx +++ b/apps/web/components/dashboard/bookmarks/AssetCard.tsx @@ -5,9 +5,9 @@ import Link from "next/link"; import { cn } from "@/lib/utils"; import { FileText } from "lucide-react"; -import type { ZBookmarkTypeAsset } from "@hoarder/shared/types/bookmarks"; -import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; -import { getSourceUrl } from "@hoarder/shared-react/utils/bookmarkUtils"; +import type { ZBookmarkTypeAsset } from "@karakeep/shared/types/bookmarks"; +import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils"; +import { getSourceUrl } from "@karakeep/shared-react/utils/bookmarkUtils"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; import FooterLinkURL from "./FooterLinkURL"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarkActionBar.tsx b/apps/web/components/dashboard/bookmarks/BookmarkActionBar.tsx index 299f47eb..999653f7 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkActionBar.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkActionBar.tsx @@ -3,7 +3,7 @@ import { buttonVariants } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import { Maximize2 } from "lucide-react"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; import BookmarkOptions from "./BookmarkOptions"; import { FavouritedActionIcon } from "./icons"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx b/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx index 5f8e4e0a..3c92e03e 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkCard.tsx @@ -1,7 +1,7 @@ import { api } from "@/lib/trpc"; -import { isBookmarkStillLoading } from "@hoarder/shared-react/utils/bookmarkUtils"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +import { isBookmarkStillLoading } from "@karakeep/shared-react/utils/bookmarkUtils"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; import AssetCard from "./AssetCard"; import LinkCard from "./LinkCard"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx index a2323987..be061148 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx @@ -12,9 +12,9 @@ import dayjs from "dayjs"; import { Check, Image as ImageIcon, NotebookPen } from "lucide-react"; import { useTheme } from "next-themes"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; -import { isBookmarkStillTagging } from "@hoarder/shared-react/utils/bookmarkUtils"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; +import { isBookmarkStillTagging } from "@karakeep/shared-react/utils/bookmarkUtils"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import BookmarkActionBar from "./BookmarkActionBar"; import TagList from "./TagList"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx b/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx index 9f7f2138..debd5ad9 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkMarkdownComponent.tsx @@ -2,8 +2,8 @@ import MarkdownEditor from "@/components/ui/markdown/markdown-editor"; import { MarkdownReadonly } from "@/components/ui/markdown/markdown-readonly"; import { toast } from "@/components/ui/use-toast"; -import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; -import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; +import type { ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks"; +import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks"; export function BookmarkMarkdownComponent({ children: bookmark, diff --git a/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx b/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx index 039904a0..af746230 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx @@ -26,15 +26,15 @@ import { import type { ZBookmark, ZBookmarkedLink, -} from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared/types/bookmarks"; import { useRecrawlBookmark, useUpdateBookmark, -} from "@hoarder/shared-react/hooks//bookmarks"; -import { useRemoveBookmarkFromList } from "@hoarder/shared-react/hooks//lists"; -import { useBookmarkGridContext } from "@hoarder/shared-react/hooks/bookmark-grid-context"; -import { useBookmarkListContext } from "@hoarder/shared-react/hooks/bookmark-list-context"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared-react/hooks//bookmarks"; +import { useRemoveBookmarkFromList } from "@karakeep/shared-react/hooks//lists"; +import { useBookmarkGridContext } from "@karakeep/shared-react/hooks/bookmark-grid-context"; +import { useBookmarkListContext } from "@karakeep/shared-react/hooks/bookmark-list-context"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import { BookmarkedTextEditor } from "./BookmarkedTextEditor"; import DeleteBookmarkConfirmationDialog from "./DeleteBookmarkConfirmationDialog"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarkTagsEditor.tsx b/apps/web/components/dashboard/bookmarks/BookmarkTagsEditor.tsx index d6d60d22..fa4f40de 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkTagsEditor.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkTagsEditor.tsx @@ -1,7 +1,7 @@ import { toast } from "@/components/ui/use-toast"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; -import { useUpdateBookmarkTags } from "@hoarder/shared-react/hooks/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; +import { useUpdateBookmarkTags } from "@karakeep/shared-react/hooks/bookmarks"; import { TagsEditor } from "./TagsEditor"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarkedTextEditor.tsx b/apps/web/components/dashboard/bookmarks/BookmarkedTextEditor.tsx index b2c27c7e..bb16967a 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkedTextEditor.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkedTextEditor.tsx @@ -6,7 +6,7 @@ import { DialogTitle, } from "@/components/ui/dialog"; -import { ZBookmark, ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; +import { ZBookmark, ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks"; export function BookmarkedTextEditor({ bookmark, diff --git a/apps/web/components/dashboard/bookmarks/Bookmarks.tsx b/apps/web/components/dashboard/bookmarks/Bookmarks.tsx index 3f606346..af2e4990 100644 --- a/apps/web/components/dashboard/bookmarks/Bookmarks.tsx +++ b/apps/web/components/dashboard/bookmarks/Bookmarks.tsx @@ -3,7 +3,7 @@ import { Separator } from "@/components/ui/separator"; import { api } from "@/server/api/client"; import { getServerAuthSession } from "@/server/auth"; -import type { ZGetBookmarksRequest } from "@hoarder/shared/types/bookmarks"; +import type { ZGetBookmarksRequest } from "@karakeep/shared/types/bookmarks"; import UpdatableBookmarksGrid from "./UpdatableBookmarksGrid"; diff --git a/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx b/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx index 8ac90d0a..21bc5fed 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarksGrid.tsx @@ -13,7 +13,7 @@ import { useInView } from "react-intersection-observer"; import Masonry from "react-masonry-css"; import resolveConfig from "tailwindcss/resolveConfig"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; import BookmarkCard from "./BookmarkCard"; import EditorCard from "./EditorCard"; diff --git a/apps/web/components/dashboard/bookmarks/BulkManageListsModal.tsx b/apps/web/components/dashboard/bookmarks/BulkManageListsModal.tsx index 27e5c5e2..15953826 100644 --- a/apps/web/components/dashboard/bookmarks/BulkManageListsModal.tsx +++ b/apps/web/components/dashboard/bookmarks/BulkManageListsModal.tsx @@ -20,8 +20,8 @@ import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { useAddBookmarkToList } from "@hoarder/shared-react/hooks/lists"; -import { limitConcurrency } from "@hoarder/shared/concurrency"; +import { useAddBookmarkToList } from "@karakeep/shared-react/hooks/lists"; +import { limitConcurrency } from "@karakeep/shared/concurrency"; import { BookmarkListSelector } from "../lists/BookmarkListSelector"; diff --git a/apps/web/components/dashboard/bookmarks/BulkTagModal.tsx b/apps/web/components/dashboard/bookmarks/BulkTagModal.tsx index 03af9e11..431f0fcd 100644 --- a/apps/web/components/dashboard/bookmarks/BulkTagModal.tsx +++ b/apps/web/components/dashboard/bookmarks/BulkTagModal.tsx @@ -9,10 +9,10 @@ import { } from "@/components/ui/dialog"; import { toast } from "@/components/ui/use-toast"; -import { useUpdateBookmarkTags } from "@hoarder/shared-react/hooks/bookmarks"; -import { api } from "@hoarder/shared-react/trpc"; -import { limitConcurrency } from "@hoarder/shared/concurrency"; -import { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import { useUpdateBookmarkTags } from "@karakeep/shared-react/hooks/bookmarks"; +import { api } from "@karakeep/shared-react/trpc"; +import { limitConcurrency } from "@karakeep/shared/concurrency"; +import { ZBookmark } from "@karakeep/shared/types/bookmarks"; import { TagsEditor } from "./TagsEditor"; diff --git a/apps/web/components/dashboard/bookmarks/DeleteBookmarkConfirmationDialog.tsx b/apps/web/components/dashboard/bookmarks/DeleteBookmarkConfirmationDialog.tsx index 4a69e3d0..7e680706 100644 --- a/apps/web/components/dashboard/bookmarks/DeleteBookmarkConfirmationDialog.tsx +++ b/apps/web/components/dashboard/bookmarks/DeleteBookmarkConfirmationDialog.tsx @@ -4,8 +4,8 @@ import ActionConfirmingDialog from "@/components/ui/action-confirming-dialog"; import { toast } from "@/components/ui/use-toast"; import { useTranslation } from "@/lib/i18n/client"; -import { useDeleteBookmark } from "@hoarder/shared-react/hooks//bookmarks"; -import { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import { useDeleteBookmark } from "@karakeep/shared-react/hooks//bookmarks"; +import { ZBookmark } from "@karakeep/shared/types/bookmarks"; export default function DeleteBookmarkConfirmationDialog({ bookmark, diff --git a/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx b/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx index 2d47102b..c7745acd 100644 --- a/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx +++ b/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx @@ -34,13 +34,13 @@ import { format } from "date-fns"; import { CalendarIcon } from "lucide-react"; import { useForm } from "react-hook-form"; -import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; +import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks"; import { BookmarkTypes, ZBookmark, ZUpdateBookmarksRequest, zUpdateBookmarksRequestSchema, -} from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared/types/bookmarks"; import { BookmarkTagsEditor } from "./BookmarkTagsEditor"; diff --git a/apps/web/components/dashboard/bookmarks/EditorCard.tsx b/apps/web/components/dashboard/bookmarks/EditorCard.tsx index cb4bfdce..1938fdec 100644 --- a/apps/web/components/dashboard/bookmarks/EditorCard.tsx +++ b/apps/web/components/dashboard/bookmarks/EditorCard.tsx @@ -19,8 +19,8 @@ import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { useCreateBookmarkWithPostHook } from "@hoarder/shared-react/hooks/bookmarks"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +import { useCreateBookmarkWithPostHook } from "@karakeep/shared-react/hooks/bookmarks"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import { useUploadAsset } from "../UploadDropzone"; diff --git a/apps/web/components/dashboard/bookmarks/LinkCard.tsx b/apps/web/components/dashboard/bookmarks/LinkCard.tsx index 34044305..ec224ca6 100644 --- a/apps/web/components/dashboard/bookmarks/LinkCard.tsx +++ b/apps/web/components/dashboard/bookmarks/LinkCard.tsx @@ -3,13 +3,13 @@ import Image from "next/image"; import Link from "next/link"; -import type { ZBookmarkTypeLink } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmarkTypeLink } from "@karakeep/shared/types/bookmarks"; import { getBookmarkLinkImageUrl, getBookmarkTitle, getSourceUrl, isBookmarkStillCrawling, -} from "@hoarder/shared-react/utils/bookmarkUtils"; +} from "@karakeep/shared-react/utils/bookmarkUtils"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; import FooterLinkURL from "./FooterLinkURL"; diff --git a/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx b/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx index dfbd6d45..55ff7ca1 100644 --- a/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx +++ b/apps/web/components/dashboard/bookmarks/ManageListsModal.tsx @@ -29,7 +29,7 @@ import { useAddBookmarkToList, useBookmarkLists, useRemoveBookmarkFromList, -} from "@hoarder/shared-react/hooks/lists"; +} from "@karakeep/shared-react/hooks/lists"; import { BookmarkListSelector } from "../lists/BookmarkListSelector"; import ArchiveBookmarkButton from "./action-buttons/ArchiveBookmarkButton"; diff --git a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx index 21554556..2b0d464e 100644 --- a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx +++ b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx @@ -9,8 +9,8 @@ import { ChevronUp, RefreshCw, Sparkles, Trash2 } from "lucide-react"; import { useSummarizeBookmark, useUpdateBookmark, -} from "@hoarder/shared-react/hooks/bookmarks"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared-react/hooks/bookmarks"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; function AISummary({ bookmarkId, diff --git a/apps/web/components/dashboard/bookmarks/TagList.tsx b/apps/web/components/dashboard/bookmarks/TagList.tsx index ccf3bf09..49a1156c 100644 --- a/apps/web/components/dashboard/bookmarks/TagList.tsx +++ b/apps/web/components/dashboard/bookmarks/TagList.tsx @@ -3,7 +3,7 @@ import { badgeVariants } from "@/components/ui/badge"; import { Skeleton } from "@/components/ui/skeleton"; import { cn } from "@/lib/utils"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; export default function TagList({ bookmark, diff --git a/apps/web/components/dashboard/bookmarks/TagModal.tsx b/apps/web/components/dashboard/bookmarks/TagModal.tsx index 61f462b1..ab17ba71 100644 --- a/apps/web/components/dashboard/bookmarks/TagModal.tsx +++ b/apps/web/components/dashboard/bookmarks/TagModal.tsx @@ -10,7 +10,7 @@ import { } from "@/components/ui/dialog"; import { useTranslation } from "@/lib/i18n/client"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; import { BookmarkTagsEditor } from "./BookmarkTagsEditor"; diff --git a/apps/web/components/dashboard/bookmarks/TagsEditor.tsx b/apps/web/components/dashboard/bookmarks/TagsEditor.tsx index 8db93227..5efdd0dd 100644 --- a/apps/web/components/dashboard/bookmarks/TagsEditor.tsx +++ b/apps/web/components/dashboard/bookmarks/TagsEditor.tsx @@ -9,7 +9,7 @@ import CreateableSelect from "react-select/creatable"; import type { ZAttachedByEnum, ZBookmarkTags, -} from "@hoarder/shared/types/tags"; +} from "@karakeep/shared/types/tags"; interface EditableTag { attachedBy: ZAttachedByEnum; diff --git a/apps/web/components/dashboard/bookmarks/TextCard.tsx b/apps/web/components/dashboard/bookmarks/TextCard.tsx index 9d168910..0233357c 100644 --- a/apps/web/components/dashboard/bookmarks/TextCard.tsx +++ b/apps/web/components/dashboard/bookmarks/TextCard.tsx @@ -6,9 +6,9 @@ import { BookmarkMarkdownComponent } from "@/components/dashboard/bookmarks/Book import { bookmarkLayoutSwitch } from "@/lib/userLocalSettings/bookmarksLayout"; import { cn } from "@/lib/utils"; -import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; -import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; -import { getSourceUrl } from "@hoarder/shared-react/utils/bookmarkUtils"; +import type { ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks"; +import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils"; +import { getSourceUrl } from "@karakeep/shared-react/utils/bookmarkUtils"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; import FooterLinkURL from "./FooterLinkURL"; diff --git a/apps/web/components/dashboard/bookmarks/UnknownCard.tsx b/apps/web/components/dashboard/bookmarks/UnknownCard.tsx index 970b5e30..1d0ea8fb 100644 --- a/apps/web/components/dashboard/bookmarks/UnknownCard.tsx +++ b/apps/web/components/dashboard/bookmarks/UnknownCard.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "@/lib/i18n/client"; import { AlertCircle } from "lucide-react"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; diff --git a/apps/web/components/dashboard/bookmarks/UpdatableBookmarksGrid.tsx b/apps/web/components/dashboard/bookmarks/UpdatableBookmarksGrid.tsx index 292bf0e6..03ea9708 100644 --- a/apps/web/components/dashboard/bookmarks/UpdatableBookmarksGrid.tsx +++ b/apps/web/components/dashboard/bookmarks/UpdatableBookmarksGrid.tsx @@ -8,8 +8,8 @@ import { api } from "@/lib/trpc"; import type { ZGetBookmarksRequest, ZGetBookmarksResponse, -} from "@hoarder/shared/types/bookmarks"; -import { BookmarkGridContextProvider } from "@hoarder/shared-react/hooks/bookmark-grid-context"; +} from "@karakeep/shared/types/bookmarks"; +import { BookmarkGridContextProvider } from "@karakeep/shared-react/hooks/bookmark-grid-context"; import BookmarksGrid from "./BookmarksGrid"; diff --git a/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx b/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx index 671c9bb2..3b8da82f 100644 --- a/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx +++ b/apps/web/components/dashboard/bookmarks/action-buttons/ArchiveBookmarkButton.tsx @@ -3,7 +3,7 @@ import { ActionButton, ActionButtonProps } from "@/components/ui/action-button"; import { toast } from "@/components/ui/use-toast"; import { api } from "@/lib/trpc"; -import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; +import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks"; interface ArchiveBookmarkButtonProps extends Omit { diff --git a/apps/web/components/dashboard/cleanups/TagDuplicationDetention.tsx b/apps/web/components/dashboard/cleanups/TagDuplicationDetention.tsx index c9db3dfa..afc70f24 100644 --- a/apps/web/components/dashboard/cleanups/TagDuplicationDetention.tsx +++ b/apps/web/components/dashboard/cleanups/TagDuplicationDetention.tsx @@ -27,7 +27,7 @@ import { cn } from "@/lib/utils"; import { distance } from "fastest-levenshtein"; import { Check, Combine, X } from "lucide-react"; -import { useMergeTag } from "@hoarder/shared-react/hooks/tags"; +import { useMergeTag } from "@karakeep/shared-react/hooks/tags"; interface Suggestion { mergeIntoId: string; diff --git a/apps/web/components/dashboard/highlights/AllHighlights.tsx b/apps/web/components/dashboard/highlights/AllHighlights.tsx index cbf351de..9f39a471 100644 --- a/apps/web/components/dashboard/highlights/AllHighlights.tsx +++ b/apps/web/components/dashboard/highlights/AllHighlights.tsx @@ -15,7 +15,7 @@ import { useInView } from "react-intersection-observer"; import { ZGetAllHighlightsResponse, ZHighlight, -} from "@hoarder/shared/types/highlights"; +} from "@karakeep/shared/types/highlights"; import HighlightCard from "./HighlightCard"; diff --git a/apps/web/components/dashboard/highlights/HighlightCard.tsx b/apps/web/components/dashboard/highlights/HighlightCard.tsx index 63ff9423..8bb24353 100644 --- a/apps/web/components/dashboard/highlights/HighlightCard.tsx +++ b/apps/web/components/dashboard/highlights/HighlightCard.tsx @@ -3,8 +3,8 @@ import { toast } from "@/components/ui/use-toast"; import { cn } from "@/lib/utils"; import { Trash2 } from "lucide-react"; -import { useDeleteHighlight } from "@hoarder/shared-react/hooks/highlights"; -import { ZHighlight } from "@hoarder/shared/types/highlights"; +import { useDeleteHighlight } from "@karakeep/shared-react/hooks/highlights"; +import { ZHighlight } from "@karakeep/shared/types/highlights"; import { HIGHLIGHT_COLOR_MAP } from "../preview/highlights"; diff --git a/apps/web/components/dashboard/lists/AllListsView.tsx b/apps/web/components/dashboard/lists/AllListsView.tsx index ab6e31d3..6101112d 100644 --- a/apps/web/components/dashboard/lists/AllListsView.tsx +++ b/apps/web/components/dashboard/lists/AllListsView.tsx @@ -7,7 +7,7 @@ import { CollapsibleTriggerChevron } from "@/components/ui/collapsible"; import { useTranslation } from "@/lib/i18n/client"; import { MoreHorizontal, Plus } from "lucide-react"; -import type { ZBookmarkList } from "@hoarder/shared/types/lists"; +import type { ZBookmarkList } from "@karakeep/shared/types/lists"; import { CollapsibleBookmarkLists } from "./CollapsibleBookmarkLists"; import { ListOptions } from "./ListOptions"; diff --git a/apps/web/components/dashboard/lists/BookmarkListSelector.tsx b/apps/web/components/dashboard/lists/BookmarkListSelector.tsx index 144297cf..db37efc0 100644 --- a/apps/web/components/dashboard/lists/BookmarkListSelector.tsx +++ b/apps/web/components/dashboard/lists/BookmarkListSelector.tsx @@ -8,7 +8,7 @@ import { } from "@/components/ui/select"; import LoadingSpinner from "@/components/ui/spinner"; -import { useBookmarkLists } from "@hoarder/shared-react/hooks/lists"; +import { useBookmarkLists } from "@karakeep/shared-react/hooks/lists"; export function BookmarkListSelector({ value, diff --git a/apps/web/components/dashboard/lists/CollapsibleBookmarkLists.tsx b/apps/web/components/dashboard/lists/CollapsibleBookmarkLists.tsx index 522bb1d6..90d4cb3f 100644 --- a/apps/web/components/dashboard/lists/CollapsibleBookmarkLists.tsx +++ b/apps/web/components/dashboard/lists/CollapsibleBookmarkLists.tsx @@ -7,9 +7,9 @@ import { keepPreviousData } from "@tanstack/react-query"; import { augmentBookmarkListsWithInitialData, useBookmarkLists, -} from "@hoarder/shared-react/hooks/lists"; -import { ZBookmarkList } from "@hoarder/shared/types/lists"; -import { ZBookmarkListTreeNode } from "@hoarder/shared/utils/listUtils"; +} from "@karakeep/shared-react/hooks/lists"; +import { ZBookmarkList } from "@karakeep/shared/types/lists"; +import { ZBookmarkListTreeNode } from "@karakeep/shared/utils/listUtils"; type RenderFunc = (params: { item: ZBookmarkListTreeNode; diff --git a/apps/web/components/dashboard/lists/DeleteListConfirmationDialog.tsx b/apps/web/components/dashboard/lists/DeleteListConfirmationDialog.tsx index bf1969bf..7eb25e6d 100644 --- a/apps/web/components/dashboard/lists/DeleteListConfirmationDialog.tsx +++ b/apps/web/components/dashboard/lists/DeleteListConfirmationDialog.tsx @@ -3,8 +3,8 @@ import { ActionButton } from "@/components/ui/action-button"; import ActionConfirmingDialog from "@/components/ui/action-confirming-dialog"; import { toast } from "@/components/ui/use-toast"; -import type { ZBookmarkList } from "@hoarder/shared/types/lists"; -import { useDeleteBookmarkList } from "@hoarder/shared-react/hooks/lists"; +import type { ZBookmarkList } from "@karakeep/shared/types/lists"; +import { useDeleteBookmarkList } from "@karakeep/shared-react/hooks/lists"; export default function DeleteListConfirmationDialog({ list, diff --git a/apps/web/components/dashboard/lists/EditListModal.tsx b/apps/web/components/dashboard/lists/EditListModal.tsx index 44daf72b..1851d416 100644 --- a/apps/web/components/dashboard/lists/EditListModal.tsx +++ b/apps/web/components/dashboard/lists/EditListModal.tsx @@ -46,12 +46,12 @@ import { z } from "zod"; import { useCreateBookmarkList, useEditBookmarkList, -} from "@hoarder/shared-react/hooks/lists"; -import { parseSearchQuery } from "@hoarder/shared/searchQueryParser"; +} from "@karakeep/shared-react/hooks/lists"; +import { parseSearchQuery } from "@karakeep/shared/searchQueryParser"; import { ZBookmarkList, zNewBookmarkListSchema, -} from "@hoarder/shared/types/lists"; +} from "@karakeep/shared/types/lists"; import QueryExplainerTooltip from "../search/QueryExplainerTooltip"; import { BookmarkListSelector } from "./BookmarkListSelector"; diff --git a/apps/web/components/dashboard/lists/ListHeader.tsx b/apps/web/components/dashboard/lists/ListHeader.tsx index b8bfb4ad..af4a3551 100644 --- a/apps/web/components/dashboard/lists/ListHeader.tsx +++ b/apps/web/components/dashboard/lists/ListHeader.tsx @@ -6,9 +6,9 @@ import { Button } from "@/components/ui/button"; import { useTranslation } from "@/lib/i18n/client"; import { MoreHorizontal, SearchIcon } from "lucide-react"; -import { api } from "@hoarder/shared-react/trpc"; -import { parseSearchQuery } from "@hoarder/shared/searchQueryParser"; -import { ZBookmarkList } from "@hoarder/shared/types/lists"; +import { api } from "@karakeep/shared-react/trpc"; +import { parseSearchQuery } from "@karakeep/shared/searchQueryParser"; +import { ZBookmarkList } from "@karakeep/shared/types/lists"; import QueryExplainerTooltip from "../search/QueryExplainerTooltip"; import { ListOptions } from "./ListOptions"; diff --git a/apps/web/components/dashboard/lists/ListOptions.tsx b/apps/web/components/dashboard/lists/ListOptions.tsx index 0e24d6a2..6b900265 100644 --- a/apps/web/components/dashboard/lists/ListOptions.tsx +++ b/apps/web/components/dashboard/lists/ListOptions.tsx @@ -8,7 +8,7 @@ import { import { useTranslation } from "@/lib/i18n/client"; import { Pencil, Plus, Trash2 } from "lucide-react"; -import { ZBookmarkList } from "@hoarder/shared/types/lists"; +import { ZBookmarkList } from "@karakeep/shared/types/lists"; import { EditListModal } from "../lists/EditListModal"; import DeleteListConfirmationDialog from "./DeleteListConfirmationDialog"; diff --git a/apps/web/components/dashboard/preview/ActionBar.tsx b/apps/web/components/dashboard/preview/ActionBar.tsx index 62d9c849..6e4cd5a2 100644 --- a/apps/web/components/dashboard/preview/ActionBar.tsx +++ b/apps/web/components/dashboard/preview/ActionBar.tsx @@ -10,8 +10,8 @@ import { toast } from "@/components/ui/use-toast"; import { useTranslation } from "@/lib/i18n/client"; import { Pencil, Trash2 } from "lucide-react"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; -import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; +import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks"; import DeleteBookmarkConfirmationDialog from "../bookmarks/DeleteBookmarkConfirmationDialog"; import { EditBookmarkDialog } from "../bookmarks/EditBookmarkDialog"; diff --git a/apps/web/components/dashboard/preview/AssetContentSection.tsx b/apps/web/components/dashboard/preview/AssetContentSection.tsx index 8590d2ad..fd299320 100644 --- a/apps/web/components/dashboard/preview/AssetContentSection.tsx +++ b/apps/web/components/dashboard/preview/AssetContentSection.tsx @@ -11,8 +11,8 @@ import { } from "@/components/ui/select"; import { useTranslation } from "@/lib/i18n/client"; -import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; // 20 MB const BIG_FILE_SIZE = 20 * 1024 * 1024; diff --git a/apps/web/components/dashboard/preview/AttachmentBox.tsx b/apps/web/components/dashboard/preview/AttachmentBox.tsx index 19622f8d..15acd799 100644 --- a/apps/web/components/dashboard/preview/AttachmentBox.tsx +++ b/apps/web/components/dashboard/preview/AttachmentBox.tsx @@ -18,14 +18,14 @@ import { useAttachBookmarkAsset, useDetachBookmarkAsset, useReplaceBookmarkAsset, -} from "@hoarder/shared-react/hooks/assets"; -import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared-react/hooks/assets"; +import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; import { humanFriendlyNameForAssertType, isAllowedToAttachAsset, isAllowedToDetachAsset, -} from "@hoarder/trpc/lib/attachments"; +} from "@karakeep/trpc/lib/attachments"; export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) { const { t } = useTranslation(); diff --git a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx b/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx index bed229a6..a3b34f9a 100644 --- a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx +++ b/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx @@ -9,7 +9,7 @@ import { Check, Trash2 } from "lucide-react"; import { SUPPORTED_HIGHLIGHT_COLORS, ZHighlightColor, -} from "@hoarder/shared/types/highlights"; +} from "@karakeep/shared/types/highlights"; import { HIGHLIGHT_COLOR_MAP } from "./highlights"; diff --git a/apps/web/components/dashboard/preview/BookmarkPreview.tsx b/apps/web/components/dashboard/preview/BookmarkPreview.tsx index 07ae0809..df09f687 100644 --- a/apps/web/components/dashboard/preview/BookmarkPreview.tsx +++ b/apps/web/components/dashboard/preview/BookmarkPreview.tsx @@ -22,8 +22,8 @@ import { getSourceUrl, isBookmarkStillCrawling, isBookmarkStillLoading, -} from "@hoarder/shared-react/utils/bookmarkUtils"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared-react/utils/bookmarkUtils"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; import SummarizeBookmarkArea from "../bookmarks/SummarizeBookmarkArea"; import ActionBar from "./ActionBar"; diff --git a/apps/web/components/dashboard/preview/LinkContentSection.tsx b/apps/web/components/dashboard/preview/LinkContentSection.tsx index f1fe3820..f37f110e 100644 --- a/apps/web/components/dashboard/preview/LinkContentSection.tsx +++ b/apps/web/components/dashboard/preview/LinkContentSection.tsx @@ -18,12 +18,12 @@ import { useCreateHighlight, useDeleteHighlight, useUpdateHighlight, -} from "@hoarder/shared-react/hooks/highlights"; +} from "@karakeep/shared-react/hooks/highlights"; import { BookmarkTypes, ZBookmark, ZBookmarkedLink, -} from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared/types/bookmarks"; function FullPageArchiveSection({ link }: { link: ZBookmarkedLink }) { const archiveAssetId = diff --git a/apps/web/components/dashboard/preview/NoteEditor.tsx b/apps/web/components/dashboard/preview/NoteEditor.tsx index 67da40cc..393628b5 100644 --- a/apps/web/components/dashboard/preview/NoteEditor.tsx +++ b/apps/web/components/dashboard/preview/NoteEditor.tsx @@ -2,8 +2,8 @@ import { Textarea } from "@/components/ui/textarea"; import { toast } from "@/components/ui/use-toast"; import { useClientConfig } from "@/lib/clientConfig"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; -import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; +import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks"; export function NoteEditor({ bookmark }: { bookmark: ZBookmark }) { const demoMode = !!useClientConfig().demoMode; diff --git a/apps/web/components/dashboard/preview/TextContentSection.tsx b/apps/web/components/dashboard/preview/TextContentSection.tsx index a58bc717..0c1aae67 100644 --- a/apps/web/components/dashboard/preview/TextContentSection.tsx +++ b/apps/web/components/dashboard/preview/TextContentSection.tsx @@ -2,9 +2,9 @@ import Image from "next/image"; import { BookmarkMarkdownComponent } from "@/components/dashboard/bookmarks/BookmarkMarkdownComponent"; import { ScrollArea } from "@radix-ui/react-scroll-area"; -import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; -import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks"; +import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; export function TextContentSection({ bookmark }: { bookmark: ZBookmark }) { if (bookmark.content.type != BookmarkTypes.TEXT) { diff --git a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx index ee99eb8d..89c15ad5 100644 --- a/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx +++ b/apps/web/components/dashboard/search/QueryExplainerTooltip.tsx @@ -3,8 +3,8 @@ import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table"; import { useTranslation } from "@/lib/i18n/client"; import { match } from "@/lib/utils"; -import { TextAndMatcher } from "@hoarder/shared/searchQueryParser"; -import { Matcher } from "@hoarder/shared/types/search"; +import { TextAndMatcher } from "@karakeep/shared/searchQueryParser"; +import { Matcher } from "@karakeep/shared/types/search"; export default function QueryExplainerTooltip({ parsedSearchQuery, diff --git a/apps/web/components/dashboard/sidebar/AllLists.tsx b/apps/web/components/dashboard/sidebar/AllLists.tsx index f31ced62..823f439f 100644 --- a/apps/web/components/dashboard/sidebar/AllLists.tsx +++ b/apps/web/components/dashboard/sidebar/AllLists.tsx @@ -11,8 +11,8 @@ import { useTranslation } from "@/lib/i18n/client"; import { cn } from "@/lib/utils"; import { MoreHorizontal, Plus } from "lucide-react"; -import type { ZBookmarkList } from "@hoarder/shared/types/lists"; -import { ZBookmarkListTreeNode } from "@hoarder/shared/utils/listUtils"; +import type { ZBookmarkList } from "@karakeep/shared/types/lists"; +import { ZBookmarkListTreeNode } from "@karakeep/shared/utils/listUtils"; import { CollapsibleBookmarkLists } from "../lists/CollapsibleBookmarkLists"; import { EditListModal } from "../lists/EditListModal"; diff --git a/apps/web/components/dashboard/tags/AllTagsView.tsx b/apps/web/components/dashboard/tags/AllTagsView.tsx index d8471cf5..a1af5a56 100644 --- a/apps/web/components/dashboard/tags/AllTagsView.tsx +++ b/apps/web/components/dashboard/tags/AllTagsView.tsx @@ -18,8 +18,8 @@ import { useTranslation } from "@/lib/i18n/client"; import { api } from "@/lib/trpc"; import { ArrowDownAZ, Combine } from "lucide-react"; -import type { ZGetTagResponse, ZTagBasic } from "@hoarder/shared/types/tags"; -import { useDeleteUnusedTags } from "@hoarder/shared-react/hooks/tags"; +import type { ZGetTagResponse, ZTagBasic } from "@karakeep/shared/types/tags"; +import { useDeleteUnusedTags } from "@karakeep/shared-react/hooks/tags"; import BulkTagAction from "./BulkTagAction"; import DeleteTagConfirmationDialog from "./DeleteTagConfirmationDialog"; diff --git a/apps/web/components/dashboard/tags/BulkTagAction.tsx b/apps/web/components/dashboard/tags/BulkTagAction.tsx index c559b9cf..95f7c46d 100644 --- a/apps/web/components/dashboard/tags/BulkTagAction.tsx +++ b/apps/web/components/dashboard/tags/BulkTagAction.tsx @@ -10,8 +10,8 @@ import useBulkTagActionsStore from "@/lib/bulkTagActions"; import { useTranslation } from "@/lib/i18n/client"; import { CheckCheck, Pencil, Trash2, X } from "lucide-react"; -import { useDeleteTag } from "@hoarder/shared-react/hooks/tags"; -import { limitConcurrency } from "@hoarder/shared/concurrency"; +import { useDeleteTag } from "@karakeep/shared-react/hooks/tags"; +import { limitConcurrency } from "@karakeep/shared/concurrency"; const MAX_CONCURRENT_BULK_ACTIONS = 50; diff --git a/apps/web/components/dashboard/tags/DeleteTagConfirmationDialog.tsx b/apps/web/components/dashboard/tags/DeleteTagConfirmationDialog.tsx index 998ac9b8..0a589ee6 100644 --- a/apps/web/components/dashboard/tags/DeleteTagConfirmationDialog.tsx +++ b/apps/web/components/dashboard/tags/DeleteTagConfirmationDialog.tsx @@ -3,7 +3,7 @@ import { ActionButton } from "@/components/ui/action-button"; import ActionConfirmingDialog from "@/components/ui/action-confirming-dialog"; import { toast } from "@/components/ui/use-toast"; -import { useDeleteTag } from "@hoarder/shared-react/hooks/tags"; +import { useDeleteTag } from "@karakeep/shared-react/hooks/tags"; export default function DeleteTagConfirmationDialog({ tag, diff --git a/apps/web/components/dashboard/tags/EditableTagName.tsx b/apps/web/components/dashboard/tags/EditableTagName.tsx index 9c8919b7..7854be32 100644 --- a/apps/web/components/dashboard/tags/EditableTagName.tsx +++ b/apps/web/components/dashboard/tags/EditableTagName.tsx @@ -4,7 +4,7 @@ import { usePathname, useRouter } from "next/navigation"; import { toast } from "@/components/ui/use-toast"; import { cn } from "@/lib/utils"; -import { useUpdateTag } from "@hoarder/shared-react/hooks/tags"; +import { useUpdateTag } from "@karakeep/shared-react/hooks/tags"; import { EditableText } from "../EditableText"; diff --git a/apps/web/components/dashboard/tags/MergeTagModal.tsx b/apps/web/components/dashboard/tags/MergeTagModal.tsx index 266cc5d2..b38c5713 100644 --- a/apps/web/components/dashboard/tags/MergeTagModal.tsx +++ b/apps/web/components/dashboard/tags/MergeTagModal.tsx @@ -23,7 +23,7 @@ import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { useMergeTag } from "@hoarder/shared-react/hooks/tags"; +import { useMergeTag } from "@karakeep/shared-react/hooks/tags"; import { TagSelector } from "./TagSelector"; diff --git a/apps/web/components/dashboard/tags/TagPill.tsx b/apps/web/components/dashboard/tags/TagPill.tsx index ff17f224..c6b08d64 100644 --- a/apps/web/components/dashboard/tags/TagPill.tsx +++ b/apps/web/components/dashboard/tags/TagPill.tsx @@ -7,7 +7,7 @@ import { useDragAndDrop } from "@/lib/drag-and-drop"; import { X } from "lucide-react"; import Draggable from "react-draggable"; -import { useMergeTag } from "@hoarder/shared-react/hooks/tags"; +import { useMergeTag } from "@karakeep/shared-react/hooks/tags"; export function TagPill({ id, diff --git a/apps/web/components/settings/AISettings.tsx b/apps/web/components/settings/AISettings.tsx index 1987f763..6ec71a91 100644 --- a/apps/web/components/settings/AISettings.tsx +++ b/apps/web/components/settings/AISettings.tsx @@ -31,12 +31,12 @@ import { buildImagePrompt, buildSummaryPrompt, buildTextPrompt, -} from "@hoarder/shared/prompts"; +} from "@karakeep/shared/prompts"; import { zNewPromptSchema, ZPrompt, zUpdatePromptSchema, -} from "@hoarder/shared/types/prompts"; +} from "@karakeep/shared/types/prompts"; export function PromptEditor() { const { t } = useTranslation(); diff --git a/apps/web/components/settings/ChangePassword.tsx b/apps/web/components/settings/ChangePassword.tsx index e9f426a6..f8c2b8dd 100644 --- a/apps/web/components/settings/ChangePassword.tsx +++ b/apps/web/components/settings/ChangePassword.tsx @@ -17,7 +17,7 @@ import { api } from "@/lib/trpc"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; -import { zChangePasswordSchema } from "@hoarder/shared/types/users"; +import { zChangePasswordSchema } from "@karakeep/shared/types/users"; export function ChangePassword() { const { t } = useTranslation(); diff --git a/apps/web/components/settings/FeedSettings.tsx b/apps/web/components/settings/FeedSettings.tsx index e3999cb5..f5e72372 100644 --- a/apps/web/components/settings/FeedSettings.tsx +++ b/apps/web/components/settings/FeedSettings.tsx @@ -36,7 +36,7 @@ import { ZFeed, zNewFeedSchema, zUpdateFeedSchema, -} from "@hoarder/shared/types/feeds"; +} from "@karakeep/shared/types/feeds"; import ActionConfirmingDialog from "../ui/action-confirming-dialog"; import { Button, buttonVariants } from "../ui/button"; diff --git a/apps/web/components/settings/ImportExport.tsx b/apps/web/components/settings/ImportExport.tsx index 3d78a7b4..d6086c97 100644 --- a/apps/web/components/settings/ImportExport.tsx +++ b/apps/web/components/settings/ImportExport.tsx @@ -25,13 +25,13 @@ import { Download, Upload } from "lucide-react"; import { useCreateBookmarkWithPostHook, useUpdateBookmarkTags, -} from "@hoarder/shared-react/hooks/bookmarks"; +} from "@karakeep/shared-react/hooks/bookmarks"; import { useAddBookmarkToList, useCreateBookmarkList, -} from "@hoarder/shared-react/hooks/lists"; -import { limitConcurrency } from "@hoarder/shared/concurrency"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +} from "@karakeep/shared-react/hooks/lists"; +import { limitConcurrency } from "@karakeep/shared/concurrency"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import { Card, CardContent } from "../ui/card"; diff --git a/apps/web/components/settings/UserOptions.tsx b/apps/web/components/settings/UserOptions.tsx index 38dc1520..33ffc46a 100644 --- a/apps/web/components/settings/UserOptions.tsx +++ b/apps/web/components/settings/UserOptions.tsx @@ -4,7 +4,7 @@ import { useTranslation } from "@/lib/i18n/client"; import { useInterfaceLang } from "@/lib/userLocalSettings/bookmarksLayout"; import { updateInterfaceLang } from "@/lib/userLocalSettings/userLocalSettings"; -import { langNameMappings } from "@hoarder/shared/langs"; +import { langNameMappings } from "@karakeep/shared/langs"; import { Label } from "../ui/label"; import { diff --git a/apps/web/components/settings/WebhookEventSelector.tsx b/apps/web/components/settings/WebhookEventSelector.tsx index ef357754..6321b8a0 100644 --- a/apps/web/components/settings/WebhookEventSelector.tsx +++ b/apps/web/components/settings/WebhookEventSelector.tsx @@ -17,7 +17,7 @@ import { Check, ChevronsUpDown } from "lucide-react"; import { ZWebhookEvent, zWebhookEventSchema, -} from "@hoarder/shared/types/webhooks"; +} from "@karakeep/shared/types/webhooks"; export function WebhookEventSelector({ value, diff --git a/apps/web/components/settings/WebhookSettings.tsx b/apps/web/components/settings/WebhookSettings.tsx index 4f7f72dc..05ca0615 100644 --- a/apps/web/components/settings/WebhookSettings.tsx +++ b/apps/web/components/settings/WebhookSettings.tsx @@ -24,7 +24,7 @@ import { zNewWebhookSchema, zUpdateWebhookSchema, ZWebhook, -} from "@hoarder/shared/types/webhooks"; +} from "@karakeep/shared/types/webhooks"; import ActionConfirmingDialog from "../ui/action-confirming-dialog"; import { Button } from "../ui/button"; diff --git a/apps/web/components/shared/sidebar/Sidebar.tsx b/apps/web/components/shared/sidebar/Sidebar.tsx index 7ddb5c1e..8bd52e1f 100644 --- a/apps/web/components/shared/sidebar/Sidebar.tsx +++ b/apps/web/components/shared/sidebar/Sidebar.tsx @@ -2,7 +2,7 @@ import Link from "next/link"; import { useTranslation } from "@/lib/i18n/server"; import { TFunction } from "i18next"; -import serverConfig from "@hoarder/shared/config"; +import serverConfig from "@karakeep/shared/config"; import SidebarItem from "./SidebarItem"; import { TSidebarItem } from "./TSidebarItem"; diff --git a/apps/web/components/shared/sidebar/SidebarLayout.tsx b/apps/web/components/shared/sidebar/SidebarLayout.tsx index 2a2a872e..8ea8655e 100644 --- a/apps/web/components/shared/sidebar/SidebarLayout.tsx +++ b/apps/web/components/shared/sidebar/SidebarLayout.tsx @@ -3,7 +3,7 @@ import DemoModeBanner from "@/components/DemoModeBanner"; import { Separator } from "@/components/ui/separator"; import ValidAccountCheck from "@/components/utils/ValidAccountCheck"; -import serverConfig from "@hoarder/shared/config"; +import serverConfig from "@karakeep/shared/config"; export default function SidebarLayout({ children, diff --git a/apps/web/components/signin/CredentialsForm.tsx b/apps/web/components/signin/CredentialsForm.tsx index 6a1bf985..3772db09 100644 --- a/apps/web/components/signin/CredentialsForm.tsx +++ b/apps/web/components/signin/CredentialsForm.tsx @@ -21,7 +21,7 @@ import { signIn } from "next-auth/react"; import { useForm } from "react-hook-form"; import { z } from "zod"; -import { zSignUpSchema } from "@hoarder/shared/types/users"; +import { zSignUpSchema } from "@karakeep/shared/types/users"; const signInSchema = z.object({ email: z.string().email(), diff --git a/apps/web/components/signin/SignInForm.tsx b/apps/web/components/signin/SignInForm.tsx index 5991d2f2..07e921b0 100644 --- a/apps/web/components/signin/SignInForm.tsx +++ b/apps/web/components/signin/SignInForm.tsx @@ -1,6 +1,6 @@ import { getProviders } from "next-auth/react"; -import serverConfig from "@hoarder/shared/config"; +import serverConfig from "@karakeep/shared/config"; import CredentialsForm from "./CredentialsForm"; import SignInProviderButton from "./SignInProviderButton"; diff --git a/apps/web/lib/attachments.tsx b/apps/web/lib/attachments.tsx index 8110d6ce..62848d33 100644 --- a/apps/web/lib/attachments.tsx +++ b/apps/web/lib/attachments.tsx @@ -1,6 +1,6 @@ import { Archive, Camera, Image, Paperclip, Video } from "lucide-react"; -import { ZAssetType } from "@hoarder/shared/types/bookmarks"; +import { ZAssetType } from "@karakeep/shared/types/bookmarks"; export const ASSET_TYPE_TO_ICON: Record = { screenshot: , diff --git a/apps/web/lib/bulkActions.ts b/apps/web/lib/bulkActions.ts index a2ee6a29..34a236c6 100644 --- a/apps/web/lib/bulkActions.ts +++ b/apps/web/lib/bulkActions.ts @@ -1,7 +1,7 @@ // reference article https://refine.dev/blog/zustand-react-state/#build-a-to-do-app-using-zustand import { create } from "zustand"; -import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; +import type { ZBookmark } from "@karakeep/shared/types/bookmarks"; interface BookmarkState { selectedBookmarks: ZBookmark[]; diff --git a/apps/web/lib/clientConfig.tsx b/apps/web/lib/clientConfig.tsx index c5d206e3..ef8e0815 100644 --- a/apps/web/lib/clientConfig.tsx +++ b/apps/web/lib/clientConfig.tsx @@ -1,6 +1,6 @@ import { createContext, useContext } from "react"; -import type { ClientConfig } from "@hoarder/shared/config"; +import type { ClientConfig } from "@karakeep/shared/config"; export const ClientConfigCtx = createContext({ demoMode: undefined, diff --git a/apps/web/lib/exportBookmarks.ts b/apps/web/lib/exportBookmarks.ts index f651b897..45db104f 100644 --- a/apps/web/lib/exportBookmarks.ts +++ b/apps/web/lib/exportBookmarks.ts @@ -1,6 +1,6 @@ import { z } from "zod"; -import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; +import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; export const zExportBookmarkSchema = z.object({ createdAt: z.number(), diff --git a/apps/web/lib/hooks/bookmark-search.ts b/apps/web/lib/hooks/bookmark-search.ts index 5ffec1b0..1bccd280 100644 --- a/apps/web/lib/hooks/bookmark-search.ts +++ b/apps/web/lib/hooks/bookmark-search.ts @@ -4,7 +4,7 @@ import { useSortOrderStore } from "@/lib/store/useSortOrderStore"; import { api } from "@/lib/trpc"; import { keepPreviousData } from "@tanstack/react-query"; -import { parseSearchQuery } from "@hoarder/shared/searchQueryParser"; +import { parseSearchQuery } from "@karakeep/shared/searchQueryParser"; function useSearchQuery() { const searchParams = useSearchParams(); diff --git a/apps/web/lib/hooks/upload-file.ts b/apps/web/lib/hooks/upload-file.ts index 42d1cb42..fc8fd524 100644 --- a/apps/web/lib/hooks/upload-file.ts +++ b/apps/web/lib/hooks/upload-file.ts @@ -5,7 +5,7 @@ import { zUploadErrorSchema, ZUploadResponse, zUploadResponseSchema, -} from "@hoarder/shared/types/uploads"; +} from "@karakeep/shared/types/uploads"; export default function useUpload({ onSuccess, diff --git a/apps/web/lib/i18n/settings.ts b/apps/web/lib/i18n/settings.ts index 5787a55e..422941c6 100644 --- a/apps/web/lib/i18n/settings.ts +++ b/apps/web/lib/i18n/settings.ts @@ -1,4 +1,4 @@ -import { supportedLangs } from "@hoarder/shared/langs"; +import { supportedLangs } from "@karakeep/shared/langs"; export const fallbackLng = "en"; export const languages = supportedLangs; diff --git a/apps/web/lib/importBookmarkParser.ts b/apps/web/lib/importBookmarkParser.ts index 0f0797d2..bea92da1 100644 --- a/apps/web/lib/importBookmarkParser.ts +++ b/apps/web/lib/importBookmarkParser.ts @@ -3,7 +3,7 @@ import * as cheerio from "cheerio"; import { parse } from "csv-parse/sync"; import { z } from "zod"; -import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; +import { BookmarkTypes } from "@karakeep/shared/types/bookmarks"; import { zExportSchema } from "./exportBookmarks"; diff --git a/apps/web/lib/providers.tsx b/apps/web/lib/providers.tsx index e1223382..a3debdb9 100644 --- a/apps/web/lib/providers.tsx +++ b/apps/web/lib/providers.tsx @@ -11,7 +11,7 @@ import { httpBatchLink, loggerLink } from "@trpc/client"; import { SessionProvider } from "next-auth/react"; import superjson from "superjson"; -import type { ClientConfig } from "@hoarder/shared/config"; +import type { ClientConfig } from "@karakeep/shared/config"; import { ClientConfigCtx } from "./clientConfig"; import CustomI18nextProvider from "./i18n/provider"; diff --git a/apps/web/lib/store/useSortOrderStore.ts b/apps/web/lib/store/useSortOrderStore.ts index 217e142e..b943713f 100644 --- a/apps/web/lib/store/useSortOrderStore.ts +++ b/apps/web/lib/store/useSortOrderStore.ts @@ -1,6 +1,6 @@ import { create } from "zustand"; -import { ZSortOrder } from "@hoarder/shared/types/bookmarks"; +import { ZSortOrder } from "@karakeep/shared/types/bookmarks"; interface SortOrderState { sortOrder: ZSortOrder; diff --git a/apps/web/lib/trpc.tsx b/apps/web/lib/trpc.tsx index 99fdd8b5..1478684f 100644 --- a/apps/web/lib/trpc.tsx +++ b/apps/web/lib/trpc.tsx @@ -2,6 +2,6 @@ import { createTRPCReact } from "@trpc/react-query"; -import type { AppRouter } from "@hoarder/trpc/routers/_app"; +import type { AppRouter } from "@karakeep/trpc/routers/_app"; export const api = createTRPCReact(); diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 7384f0b1..3eadbf91 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -50,7 +50,7 @@ const nextConfig = withPWA({ ]; }, - // transpilePackages: ["@hoarder/shared", "@hoarder/db", "@hoarder/trpc"], + // transpilePackages: ["@karakeep/shared", "@karakeep/db", "@karakeep/trpc"], /** We already do linting and typechecking as separate tasks in CI */ eslint: { ignoreDuringBuilds: true }, diff --git a/apps/web/package.json b/apps/web/package.json index 7a54fa2f..db02bbaa 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "name": "@hoarder/web", + "name": "@karakeep/web", "version": "0.1.0", "private": true, "type": "module", @@ -20,11 +20,11 @@ "@auth/drizzle-adapter": "^1.4.2", "@emoji-mart/data": "^1.1.2", "@emoji-mart/react": "^1.1.1", - "@hoarder/db": "workspace:^0.1.0", - "@hoarder/shared": "workspace:^0.1.0", - "@hoarder/shared-react": "workspace:^0.1.0", - "@hoarder/trpc": "workspace:^0.1.0", "@hookform/resolvers": "^3.3.4", + "@karakeep/db": "workspace:^0.1.0", + "@karakeep/shared": "workspace:^0.1.0", + "@karakeep/shared-react": "workspace:^0.1.0", + "@karakeep/trpc": "workspace:^0.1.0", "@lexical/list": "^0.20.2", "@lexical/markdown": "^0.20.2", "@lexical/plain-text": "^0.20.2", @@ -94,10 +94,10 @@ "zustand": "^4.5.1" }, "devDependencies": { - "@hoarder/eslint-config": "workspace:^0.2.0", - "@hoarder/prettier-config": "workspace:^0.1.0", - "@hoarder/tailwind-config": "workspace:^0.1.0", - "@hoarder/tsconfig": "workspace:^0.1.0", + "@karakeep/eslint-config": "workspace:^0.2.0", + "@karakeep/prettier-config": "workspace:^0.1.0", + "@karakeep/tailwind-config": "workspace:^0.1.0", + "@karakeep/tsconfig": "workspace:^0.1.0", "@types/csv-parse": "^1.2.5", "@types/emoji-mart": "^3.0.14", "@types/react": "^18.2.55", @@ -113,10 +113,10 @@ "eslintConfig": { "root": true, "extends": [ - "@hoarder/eslint-config/base", - "@hoarder/eslint-config/nextjs", - "@hoarder/eslint-config/react" + "@karakeep/eslint-config/base", + "@karakeep/eslint-config/nextjs", + "@karakeep/eslint-config/react" ] }, - "prettier": "@hoarder/prettier-config" + "prettier": "@karakeep/prettier-config" } diff --git a/apps/web/server/api/client.ts b/apps/web/server/api/client.ts index 5cf2bbe3..fc223313 100644 --- a/apps/web/server/api/client.ts +++ b/apps/web/server/api/client.ts @@ -2,10 +2,10 @@ import { headers } from "next/headers"; import { getServerAuthSession } from "@/server/auth"; import requestIp from "request-ip"; -import { db } from "@hoarder/db"; -import { Context, createCallerFactory } from "@hoarder/trpc"; -import { authenticateApiKey } from "@hoarder/trpc/auth"; -import { appRouter } from "@hoarder/trpc/routers/_app"; +import { db } from "@karakeep/db"; +import { Context, createCallerFactory } from "@karakeep/trpc"; +import { authenticateApiKey } from "@karakeep/trpc/auth"; +import { appRouter } from "@karakeep/trpc/routers/_app"; export async function createContextFromRequest(req: Request) { // TODO: This is a hack until we offer a proper REST API instead of the trpc based one. diff --git a/apps/web/server/auth.ts b/apps/web/server/auth.ts index 8fa60a75..67621a17 100644 --- a/apps/web/server/auth.ts +++ b/apps/web/server/auth.ts @@ -10,15 +10,15 @@ import CredentialsProvider from "next-auth/providers/credentials"; import { Provider } from "next-auth/providers/index"; import requestIp from "request-ip"; -import { db } from "@hoarder/db"; +import { db } from "@karakeep/db"; import { accounts, sessions, users, verificationTokens, -} from "@hoarder/db/schema"; -import serverConfig from "@hoarder/shared/config"; -import { logAuthenticationError, validatePassword } from "@hoarder/trpc/auth"; +} from "@karakeep/db/schema"; +import serverConfig from "@karakeep/shared/config"; +import { logAuthenticationError, validatePassword } from "@karakeep/trpc/auth"; type UserRole = "admin" | "user"; diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts index 1c042f0e..44bb114c 100644 --- a/apps/web/tailwind.config.ts +++ b/apps/web/tailwind.config.ts @@ -1,6 +1,6 @@ import type { Config } from "tailwindcss"; -import web from "@hoarder/tailwind-config/web"; +import web from "@karakeep/tailwind-config/web"; const config = { content: web.content, diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index f7a25fc6..fb5492e4 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@hoarder/tsconfig/base.json", + "extends": "@karakeep/tsconfig/base.json", "compilerOptions": { "baseUrl": ".", "plugins": [ -- cgit v1.2.3-70-g09d2