chore: Rename hoarder packages to karakeep

This commit is contained in:
MohamedBassem
2025-04-12 19:37:18 +01:00
parent 7f569042f1
commit 755fc36e91
230 changed files with 659 additions and 649 deletions

View File

@@ -2,4 +2,4 @@
## Reporting a Vulnerability
Please report security issues to `security@hoarder.app`
Please report security issues to `security@karakeep.app`

View File

@@ -14,9 +14,9 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@hoarder/shared": "workspace:^0.1.0",
"@hoarder/shared-react": "workspace:^0.1.0",
"@hoarder/trpc": "workspace:^0.1.0",
"@karakeep/shared": "workspace:^0.1.0",
"@karakeep/shared-react": "workspace:^0.1.0",
"@karakeep/trpc": "workspace:^0.1.0",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-select": "^2.0.0",
@@ -41,10 +41,10 @@
},
"devDependencies": {
"@crxjs/vite-plugin": "2.0.0-beta.28",
"@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/chrome": "^0.0.260",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
@@ -61,9 +61,9 @@
"eslintConfig": {
"root": true,
"extends": [
"@hoarder/eslint-config/base",
"@hoarder/eslint-config/react"
"@karakeep/eslint-config/base",
"@karakeep/eslint-config/react"
]
},
"prettier": "@hoarder/prettier-config"
"prettier": "@karakeep/prettier-config"
}

View File

@@ -2,7 +2,7 @@ import { useState } from "react";
import { ArrowUpRightFromSquare, Trash } from "lucide-react";
import { Link, useNavigate, useParams } from "react-router-dom";
import { useDeleteBookmark } from "@hoarder/shared-react/hooks/bookmarks";
import { useDeleteBookmark } from "@karakeep/shared-react/hooks/bookmarks";
import BookmarkLists from "./components/BookmarkLists";
import { ListsSelector } from "./components/ListsSelector";

View File

@@ -5,7 +5,7 @@ import {
BookmarkTypes,
ZNewBookmarkRequest,
zNewBookmarkRequestSchema,
} from "@hoarder/shared/types/bookmarks";
} from "@karakeep/shared/types/bookmarks";
import { NEW_BOOKMARK_REQUEST_KEY_NAME } from "./background/protocol";
import Spinner from "./Spinner";

View File

@@ -1,7 +1,7 @@
import {
BookmarkTypes,
ZNewBookmarkRequest,
} from "@hoarder/shared/types/bookmarks.ts";
} from "@karakeep/shared/types/bookmarks.ts";
import {
getPluginSettings,

View File

@@ -3,7 +3,7 @@ import { X } from "lucide-react";
import {
useBookmarkLists,
useRemoveBookmarkFromList,
} from "@hoarder/shared-react/hooks/lists";
} from "@karakeep/shared-react/hooks/lists";
import { api } from "../utils/trpc";
import { Button } from "./ui/button";

View File

@@ -6,7 +6,7 @@ import {
useAddBookmarkToList,
useBookmarkLists,
useRemoveBookmarkFromList,
} from "@hoarder/shared-react/hooks/lists";
} from "@karakeep/shared-react/hooks/lists";
import { cn } from "../utils/css";
import { api } from "../utils/trpc";

View File

@@ -1,5 +1,5 @@
import { useAutoRefreshingBookmarkQuery } from "@hoarder/shared-react/hooks/bookmarks";
import { isBookmarkStillTagging } from "@hoarder/shared-react/utils/bookmarkUtils";
import { useAutoRefreshingBookmarkQuery } from "@karakeep/shared-react/hooks/bookmarks";
import { isBookmarkStillTagging } from "@karakeep/shared-react/utils/bookmarkUtils";
import { Badge } from "./ui/badge";

View File

@@ -5,7 +5,7 @@ import { Check, ChevronsUpDown, Plus } from "lucide-react";
import {
useAutoRefreshingBookmarkQuery,
useUpdateBookmarkTags,
} from "@hoarder/shared-react/hooks/bookmarks";
} from "@karakeep/shared-react/hooks/bookmarks";
import { cn } from "../utils/css";
import { api } from "../utils/trpc";

View File

@@ -1 +1 @@
@import "@hoarder/tailwind-config/globals.css";
@import "@karakeep/tailwind-config/globals.css";

View File

@@ -1,4 +1,4 @@
import { TRPCProvider } from "@hoarder/shared-react/providers/trpc-provider";
import { TRPCProvider } from "@karakeep/shared-react/providers/trpc-provider";
import usePluginSettings from "./settings";
import { ThemeProvider } from "./ThemeProvider";

View File

@@ -1,5 +1,5 @@
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<AppRouter>();

View File

@@ -1,4 +1,4 @@
import web from "@hoarder/tailwind-config/web";
import web from "@karakeep/tailwind-config/web";
const config = {
darkMode: "media",

View File

@@ -1,24 +1,25 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@hoarderapp/cli",
"version": "0.20.0",
"description": "Command Line Interface (CLI) for Hoarder",
"name": "@karakeep/cli",
"version": "0.23.0",
"description": "Command Line Interface (CLI) for Karakeep",
"license": "GNU Affero General Public License version 3",
"keywords": [
"hoarder",
"karakeep",
"cli"
],
"exports": "./dist/index.mjs",
"bin": {
"hoarder": "dist/index.mjs"
"karakeep": "dist/index.mjs"
},
"devDependencies": {
"@commander-js/extra-typings": "^12.0.1",
"@hoarder/eslint-config": "workspace:^0.2.0",
"@hoarder/prettier-config": "workspace:^0.1.0",
"@hoarder/shared": "workspace:^0.1.0",
"@hoarder/trpc": "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/shared": "workspace:^0.1.0",
"@karakeep/trpc": "workspace:^0.1.0",
"@karakeep/tsconfig": "workspace:^0.1.0",
"@trpc/client": "11.0.0",
"@trpc/server": "11.0.0",
"@tsconfig/node22": "^22.0.0",
@@ -40,14 +41,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/hoarder-app/hoarder.git",
"url": "git+https://github.com/karakeep-app/karakeep.git",
"directory": "apps/cli"
},
"eslintConfig": {
"root": true,
"extends": [
"@hoarder/eslint-config/base"
"@karakeep/eslint-config/base"
]
},
"prettier": "@hoarder/prettier-config"
"prettier": "@karakeep/prettier-config"
}

View File

@@ -9,11 +9,11 @@ import {
import { getAPIClient } from "@/lib/trpc";
import { Command } from "@commander-js/extra-typings";
import type { ZBookmark } from "@hoarder/shared/types/bookmarks";
import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import {
BookmarkTypes,
MAX_NUM_BOOKMARKS_PER_PAGE,
} from "@hoarder/shared/types/bookmarks";
} from "@karakeep/shared/types/bookmarks";
export const bookmarkCmd = new Command()
.name("bookmarks")

View File

@@ -9,7 +9,7 @@ import { getAPIClient } from "@/lib/trpc";
import { Command } from "@commander-js/extra-typings";
import { getBorderCharacters, table } from "table";
import { listsToTree } from "@hoarder/shared/utils/listUtils";
import { listsToTree } from "@karakeep/shared/utils/listUtils";
export const listsCmd = new Command()
.name("lists")

View File

@@ -7,12 +7,12 @@ import { setGlobalOptions } from "@/lib/globals";
import { Command, Option } from "@commander-js/extra-typings";
const program = new Command()
.name("hoarder")
.description("A CLI interface to interact with the hoarder api")
.name("karakeep")
.description("A CLI interface to interact with the karakeep api")
.addOption(
new Option("--api-key <key>", "the API key to interact with the API")
.makeOptionMandatory(true)
.env("HOARDER_API_KEY"),
.env("KARAKEEP_API_KEY"),
)
.addOption(
new Option(
@@ -20,7 +20,7 @@ const program = new Command()
"the address of the server to connect to",
)
.makeOptionMandatory(true)
.env("HOARDER_SERVER_ADDR"),
.env("KARAKEEP_SERVER_ADDR"),
)
.addOption(new Option("--json", "to output the result as JSON"))
.version(

View File

@@ -2,7 +2,7 @@ import { getGlobalOptions } from "@/lib/globals";
import { createTRPCClient, httpBatchLink } from "@trpc/client";
import superjson from "superjson";
import type { AppRouter } from "@hoarder/trpc/routers/_app";
import type { AppRouter } from "@karakeep/trpc/routers/_app";
export function getAPIClient() {
const globals = getGlobalOptions();

View File

@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@hoarder/tsconfig/node.json",
"extends": "@karakeep/tsconfig/node.json",
"include": ["src", "vite.config.mts"],
"exclude": ["node_modules", "dist"],
"compilerOptions": {

View File

@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@hoarder/landing",
"name": "@karakeep/landing",
"version": "0.1.0",
"private": true,
"type": "module",
@@ -28,10 +28,10 @@
"tailwindcss-animate": "^1.0.7"
},
"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",
"@tailwindcss/typography": "^0.5.10",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
@@ -45,9 +45,9 @@
"eslintConfig": {
"root": true,
"extends": [
"@hoarder/eslint-config/base",
"@hoarder/eslint-config/react"
"@karakeep/eslint-config/base",
"@karakeep/eslint-config/react"
]
},
"prettier": "@hoarder/prettier-config"
"prettier": "@karakeep/prettier-config"
}

View File

@@ -1,7 +1,7 @@
import Homepage from "@/src/Homepage";
import Privacy from "@/src/Privacy";
import "@hoarder/tailwind-config/globals.css";
import "@karakeep/tailwind-config/globals.css";
export default function App() {
// Poor man router

View File

@@ -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,

View File

@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@hoarder/tsconfig/base.json",
"extends": "@karakeep/tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {

View File

@@ -11,8 +11,8 @@ import { api } from "@/lib/trpc";
import { condProps } from "@/lib/utils";
import { ChevronRight, Plus } from "lucide-react-native";
import { useBookmarkLists } from "@hoarder/shared-react/hooks/lists";
import { ZBookmarkListTreeNode } from "@hoarder/shared/utils/listUtils";
import { useBookmarkLists } from "@karakeep/shared-react/hooks/lists";
import { ZBookmarkListTreeNode } from "@karakeep/shared/utils/listUtils";
function HeaderRight({ openNewListModal }: { openNewListModal: () => void }) {
return (

View File

@@ -26,8 +26,8 @@ import { ClipboardList, Globe, Info, Tag, Trash2 } from "lucide-react-native";
import {
useDeleteBookmark,
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 BottomActions({ bookmark }: { bookmark: ZBookmark }) {
const { toast } = useToast();

View File

@@ -21,9 +21,9 @@ import { ChevronRight } from "lucide-react-native";
import {
useAutoRefreshingBookmarkQuery,
useUpdateBookmark,
} from "@hoarder/shared-react/hooks/bookmarks";
import { isBookmarkStillTagging } from "@hoarder/shared-react/utils/bookmarkUtils";
import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks";
} from "@karakeep/shared-react/hooks/bookmarks";
import { isBookmarkStillTagging } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
function TagList({ bookmark }: { bookmark: ZBookmark }) {
return (

View File

@@ -9,8 +9,8 @@ import {
useAddBookmarkToList,
useBookmarkLists,
useRemoveBookmarkFromList,
} from "@hoarder/shared-react/hooks/lists";
import { api } from "@hoarder/shared-react/trpc";
} from "@karakeep/shared-react/hooks/lists";
import { api } from "@karakeep/shared-react/trpc";
const ListPickerPage = () => {
const { slug: bookmarkId } = useLocalSearchParams();

View File

@@ -10,8 +10,8 @@ import { Check, Plus } from "lucide-react-native";
import {
useAutoRefreshingBookmarkQuery,
useUpdateBookmarkTags,
} 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";
const NEW_TAG_ID = "new-tag";

View File

@@ -6,8 +6,8 @@ import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import { Input } from "@/components/ui/Input";
import { useToast } from "@/components/ui/Toast";
import { useCreateBookmark } from "@hoarder/shared-react/hooks/bookmarks";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks";
import { useCreateBookmark } from "@karakeep/shared-react/hooks/bookmarks";
import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
const NoteEditorPage = () => {
const dismiss = () => {

View File

@@ -6,7 +6,7 @@ import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import { Input } from "@/components/ui/Input";
import { useToast } from "@/components/ui/Toast";
import { useCreateBookmarkList } from "@hoarder/shared-react/hooks/lists";
import { useCreateBookmarkList } from "@karakeep/shared-react/hooks/lists";
const NewListPage = () => {
const dismiss = () => {

View File

@@ -8,7 +8,7 @@ import { api } from "@/lib/trpc";
import { useUploadAsset } from "@/lib/upload";
import { z } from "zod";
import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks";
import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
type Mode =
| { type: "idle" }

View File

@@ -16,17 +16,17 @@ import { api } from "@/lib/trpc";
import { MenuView } from "@react-native-menu/menu";
import { Ellipsis, Star } from "lucide-react-native";
import type { ZBookmark } from "@hoarder/shared/types/bookmarks";
import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import {
useDeleteBookmark,
useUpdateBookmark,
} from "@hoarder/shared-react/hooks/bookmarks";
} from "@karakeep/shared-react/hooks/bookmarks";
import {
getBookmarkLinkImageUrl,
isBookmarkStillLoading,
isBookmarkStillTagging,
} from "@hoarder/shared-react/utils/bookmarkUtils";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks";
} from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import { Divider } from "../ui/Divider";
import { Skeleton } from "../ui/Skeleton";

View File

@@ -3,7 +3,7 @@ import { ActivityIndicator, Keyboard, Text, View } from "react-native";
import Animated, { LinearTransition } from "react-native-reanimated";
import { useScrollToTop } from "@react-navigation/native";
import type { ZBookmark } from "@hoarder/shared/types/bookmarks";
import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import BookmarkCard from "./BookmarkCard";

View File

@@ -1,7 +1,7 @@
import { View } from "react-native";
import { Link } from "expo-router";
import { ZBookmarkTags } from "@hoarder/shared/types/tags";
import { ZBookmarkTags } from "@karakeep/shared/types/tags";
export default function TagPill({ tag }: { tag: ZBookmarkTags }) {
return (

View File

@@ -1,7 +1,7 @@
import { api } from "@/lib/trpc";
import type { ZGetBookmarksRequest } from "@hoarder/shared/types/bookmarks";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks";
import type { ZGetBookmarksRequest } from "@karakeep/shared/types/bookmarks";
import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import FullPageError from "../FullPageError";
import FullPageSpinner from "../ui/FullPageSpinner";

View File

@@ -1 +1 @@
@import "@hoarder/tailwind-config/globals";
@import "@karakeep/tailwind-config/globals";

View File

@@ -2,7 +2,7 @@ import { useEffect } from "react";
import FullPageSpinner from "@/components/ui/FullPageSpinner";
import { ToastProvider } from "@/components/ui/Toast";
import { TRPCProvider } from "@hoarder/shared-react/providers/trpc-provider";
import { TRPCProvider } from "@karakeep/shared-react/providers/trpc-provider";
import useAppSettings from "./settings";

View File

@@ -1,5 +1,5 @@
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<AppRouter>();

View File

@@ -1,11 +1,11 @@
import ReactNativeBlobUtil from "react-native-blob-util";
import { useMutation } from "@tanstack/react-query";
import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks";
import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
import {
zUploadErrorSchema,
zUploadResponseSchema,
} from "@hoarder/shared/types/uploads";
} from "@karakeep/shared/types/uploads";
import type { Settings } from "./settings";
import { api } from "./trpc";

View File

@@ -1,5 +1,5 @@
{
"name": "@hoarder/mobile",
"name": "@karakeep/mobile",
"version": "1.0.0",
"main": "index.ts",
"scripts": {
@@ -15,9 +15,9 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@hoarder/shared": "workspace:^0.1.0",
"@hoarder/shared-react": "workspace:^0.1.0",
"@hoarder/trpc": "workspace:^0.1.0",
"@karakeep/shared": "workspace:^0.1.0",
"@karakeep/shared-react": "workspace:^0.1.0",
"@karakeep/trpc": "workspace:^0.1.0",
"@react-native-menu/menu": "^1.1.6",
"@tanstack/react-query": "^5.67.1",
"class-variance-authority": "^0.7.0",
@@ -60,10 +60,10 @@
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@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/react": "^18.2.55",
"ajv": "latest",
"eslint": "^8.57.0",
@@ -76,8 +76,8 @@
"eslintConfig": {
"root": true,
"extends": [
"@hoarder/eslint-config/base",
"@hoarder/eslint-config/react"
"@karakeep/eslint-config/base",
"@karakeep/eslint-config/react"
],
"ignorePatterns": [
"expo-plugins/**",
@@ -86,5 +86,5 @@
"plugins/**"
]
},
"prettier": "@hoarder/prettier-config"
"prettier": "@karakeep/prettier-config"
}

View File

@@ -1,6 +1,6 @@
import type { Config } from "tailwindcss";
import base from "@hoarder/tailwind-config/native";
import base from "@karakeep/tailwind-config/native";
const config = {
content: base.content,

View File

@@ -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(

View File

@@ -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),

View File

@@ -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) {

View File

@@ -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({

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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) {

View File

@@ -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(),

View File

@@ -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,

View File

@@ -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,

View File

@@ -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"],

View File

@@ -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();

View File

@@ -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();

View File

@@ -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<typeof zAdminCreateUserSchema>;

View File

@@ -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<typeof changeRoleSchema>;

View File

@@ -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;

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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,

View File

@@ -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";

View File

@@ -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;

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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<ActionButtonProps, "loading" | "disabled"> {

View File

@@ -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;

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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;

View File

@@ -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,

View File

@@ -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";

Some files were not shown because too many files have changed in this diff Show More