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 ## 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" "typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@hoarder/shared": "workspace:^0.1.0", "@karakeep/shared": "workspace:^0.1.0",
"@hoarder/shared-react": "workspace:^0.1.0", "@karakeep/shared-react": "workspace:^0.1.0",
"@hoarder/trpc": "workspace:^0.1.0", "@karakeep/trpc": "workspace:^0.1.0",
"@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-select": "^2.0.0", "@radix-ui/react-select": "^2.0.0",
@@ -41,10 +41,10 @@
}, },
"devDependencies": { "devDependencies": {
"@crxjs/vite-plugin": "2.0.0-beta.28", "@crxjs/vite-plugin": "2.0.0-beta.28",
"@hoarder/eslint-config": "workspace:^0.2.0", "@karakeep/eslint-config": "workspace:^0.2.0",
"@hoarder/prettier-config": "workspace:^0.1.0", "@karakeep/prettier-config": "workspace:^0.1.0",
"@hoarder/tailwind-config": "workspace:^0.1.0", "@karakeep/tailwind-config": "workspace:^0.1.0",
"@hoarder/tsconfig": "workspace:^0.1.0", "@karakeep/tsconfig": "workspace:^0.1.0",
"@types/chrome": "^0.0.260", "@types/chrome": "^0.0.260",
"@types/react": "^18.2.55", "@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19", "@types/react-dom": "^18.2.19",
@@ -61,9 +61,9 @@
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
"extends": [ "extends": [
"@hoarder/eslint-config/base", "@karakeep/eslint-config/base",
"@hoarder/eslint-config/react" "@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 { ArrowUpRightFromSquare, Trash } from "lucide-react";
import { Link, useNavigate, useParams } from "react-router-dom"; 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 BookmarkLists from "./components/BookmarkLists";
import { ListsSelector } from "./components/ListsSelector"; import { ListsSelector } from "./components/ListsSelector";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -5,7 +5,7 @@ import { Check, ChevronsUpDown, Plus } from "lucide-react";
import { import {
useAutoRefreshingBookmarkQuery, useAutoRefreshingBookmarkQuery,
useUpdateBookmarkTags, useUpdateBookmarkTags,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { cn } from "../utils/css"; import { cn } from "../utils/css";
import { api } from "../utils/trpc"; 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 usePluginSettings from "./settings";
import { ThemeProvider } from "./ThemeProvider"; import { ThemeProvider } from "./ThemeProvider";

View File

@@ -1,5 +1,5 @@
import { createTRPCReact } from "@trpc/react-query"; 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>(); 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 = { const config = {
darkMode: "media", darkMode: "media",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -26,8 +26,8 @@ import { ClipboardList, Globe, Info, Tag, Trash2 } from "lucide-react-native";
import { import {
useDeleteBookmark, useDeleteBookmark,
useUpdateBookmark, useUpdateBookmark,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
function BottomActions({ bookmark }: { bookmark: ZBookmark }) { function BottomActions({ bookmark }: { bookmark: ZBookmark }) {
const { toast } = useToast(); const { toast } = useToast();

View File

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

View File

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

View File

@@ -10,8 +10,8 @@ import { Check, Plus } from "lucide-react-native";
import { import {
useAutoRefreshingBookmarkQuery, useAutoRefreshingBookmarkQuery,
useUpdateBookmarkTags, useUpdateBookmarkTags,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { api } from "@hoarder/shared-react/trpc"; import { api } from "@karakeep/shared-react/trpc";
const NEW_TAG_ID = "new-tag"; 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 { Input } from "@/components/ui/Input";
import { useToast } from "@/components/ui/Toast"; import { useToast } from "@/components/ui/Toast";
import { useCreateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; import { useCreateBookmark } from "@karakeep/shared-react/hooks/bookmarks";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
const NoteEditorPage = () => { const NoteEditorPage = () => {
const dismiss = () => { const dismiss = () => {

View File

@@ -6,7 +6,7 @@ import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import { Input } from "@/components/ui/Input"; import { Input } from "@/components/ui/Input";
import { useToast } from "@/components/ui/Toast"; 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 NewListPage = () => {
const dismiss = () => { const dismiss = () => {

View File

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

View File

@@ -16,17 +16,17 @@ import { api } from "@/lib/trpc";
import { MenuView } from "@react-native-menu/menu"; import { MenuView } from "@react-native-menu/menu";
import { Ellipsis, Star } from "lucide-react-native"; import { Ellipsis, Star } from "lucide-react-native";
import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import { import {
useDeleteBookmark, useDeleteBookmark,
useUpdateBookmark, useUpdateBookmark,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { import {
getBookmarkLinkImageUrl, getBookmarkLinkImageUrl,
isBookmarkStillLoading, isBookmarkStillLoading,
isBookmarkStillTagging, isBookmarkStillTagging,
} from "@hoarder/shared-react/utils/bookmarkUtils"; } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import { Divider } from "../ui/Divider"; import { Divider } from "../ui/Divider";
import { Skeleton } from "../ui/Skeleton"; 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 Animated, { LinearTransition } from "react-native-reanimated";
import { useScrollToTop } from "@react-navigation/native"; 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"; import BookmarkCard from "./BookmarkCard";

View File

@@ -1,7 +1,7 @@
import { View } from "react-native"; import { View } from "react-native";
import { Link } from "expo-router"; 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 }) { export default function TagPill({ tag }: { tag: ZBookmarkTags }) {
return ( return (

View File

@@ -1,7 +1,7 @@
import { api } from "@/lib/trpc"; import { api } from "@/lib/trpc";
import type { ZGetBookmarksRequest } from "@hoarder/shared/types/bookmarks"; import type { ZGetBookmarksRequest } from "@karakeep/shared/types/bookmarks";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import FullPageError from "../FullPageError"; import FullPageError from "../FullPageError";
import FullPageSpinner from "../ui/FullPageSpinner"; 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 FullPageSpinner from "@/components/ui/FullPageSpinner";
import { ToastProvider } from "@/components/ui/Toast"; 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"; import useAppSettings from "./settings";

View File

@@ -1,5 +1,5 @@
import { createTRPCReact } from "@trpc/react-query"; 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>(); export const api = createTRPCReact<AppRouter>();

View File

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

View File

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

View File

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

View File

@@ -1,12 +1,12 @@
import { createContextFromRequest } from "@/server/api/client"; import { createContextFromRequest } from "@/server/api/client";
import { and, eq } from "drizzle-orm"; import { and, eq } from "drizzle-orm";
import { assets } from "@hoarder/db/schema"; import { assets } from "@karakeep/db/schema";
import { import {
createAssetReadStream, createAssetReadStream,
getAssetSize, getAssetSize,
readAssetMetadata, readAssetMetadata,
} from "@hoarder/shared/assetdb"; } from "@karakeep/shared/assetdb";
export const dynamic = "force-dynamic"; export const dynamic = "force-dynamic";
export async function GET( export async function GET(

View File

@@ -6,15 +6,15 @@ import { pipeline } from "stream/promises";
import { createContextFromRequest } from "@/server/api/client"; import { createContextFromRequest } from "@/server/api/client";
import { TRPCError } from "@trpc/server"; import { TRPCError } from "@trpc/server";
import type { ZUploadResponse } from "@hoarder/shared/types/uploads"; import type { ZUploadResponse } from "@karakeep/shared/types/uploads";
import { assets, AssetTypes } from "@hoarder/db/schema"; import { assets, AssetTypes } from "@karakeep/db/schema";
import { import {
newAssetId, newAssetId,
saveAssetFromFile, saveAssetFromFile,
SUPPORTED_UPLOAD_ASSET_TYPES, SUPPORTED_UPLOAD_ASSET_TYPES,
} from "@hoarder/shared/assetdb"; } from "@karakeep/shared/assetdb";
import serverConfig from "@hoarder/shared/config"; import serverConfig from "@karakeep/shared/config";
import { AuthedContext } from "@hoarder/trpc"; import { AuthedContext } from "@karakeep/trpc";
const MAX_UPLOAD_SIZE_BYTES = serverConfig.maxAssetSizeMb * 1024 * 1024; const MAX_UPLOAD_SIZE_BYTES = serverConfig.maxAssetSizeMb * 1024 * 1024;
@@ -57,7 +57,7 @@ export async function uploadFromPostData(
let tempFilePath: string | undefined; let tempFilePath: string | undefined;
try { try {
tempFilePath = path.join(os.tmpdir(), `hoarder-upload-${Date.now()}`); tempFilePath = path.join(os.tmpdir(), `karakeep-upload-${Date.now()}`);
await pipeline( await pipeline(
webStreamToNode(data.stream()), webStreamToNode(data.stream()),
fs.createWriteStream(tempFilePath), fs.createWriteStream(tempFilePath),

View File

@@ -2,7 +2,7 @@ import { toExportFormat, zExportSchema } from "@/lib/exportBookmarks";
import { api, createContextFromRequest } from "@/server/api/client"; import { api, createContextFromRequest } from "@/server/api/client";
import { z } from "zod"; 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 const dynamic = "force-dynamic";
export async function GET(request: Request) { export async function GET(request: Request) {

View File

@@ -1,7 +1,7 @@
import { createContextFromRequest } from "@/server/api/client"; import { createContextFromRequest } from "@/server/api/client";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; 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) => const handler = (req: Request) =>
fetchRequestHandler({ fetchRequestHandler({

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { buildHandler } from "@/app/api/v1/utils/handler"; 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"; export const dynamic = "force-dynamic";

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { buildHandler } from "@/app/api/v1/utils/handler"; 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"; 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 { buildHandler } from "@/app/api/v1/utils/handler";
import { z } from "zod"; import { z } from "zod";
import { zManipulatedTagSchema } from "@hoarder/shared/types/bookmarks"; import { zManipulatedTagSchema } from "@karakeep/shared/types/bookmarks";
export const dynamic = "force-dynamic"; export const dynamic = "force-dynamic";

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { z } from "zod"; import { z } from "zod";
import { zNewBookmarkRequestSchema } from "@hoarder/shared/types/bookmarks"; import { zNewBookmarkRequestSchema } from "@karakeep/shared/types/bookmarks";
import { buildHandler } from "../utils/handler"; import { buildHandler } from "../utils/handler";
import { adaptPagination, zPagination } from "../utils/pagination"; import { adaptPagination, zPagination } from "../utils/pagination";

View File

@@ -1,10 +1,10 @@
import { createContextFromRequest } from "@/server/api/client"; import { createContextFromRequest } from "@/server/api/client";
import { TRPCError } from "@trpc/server"; import { TRPCError } from "@trpc/server";
import serverConfig from "@hoarder/shared/config"; import serverConfig from "@karakeep/shared/config";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import { createCallerFactory } from "@hoarder/trpc"; import { createCallerFactory } from "@karakeep/trpc";
import { appRouter } from "@hoarder/trpc/routers/_app"; import { appRouter } from "@karakeep/trpc/routers/_app";
import { uploadFromPostData } from "../../../assets/route"; import { uploadFromPostData } from "../../../assets/route";

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { buildHandler } from "@/app/api/v1/utils/handler"; 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"; export const dynamic = "force-dynamic";

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { buildHandler } from "@/app/api/v1/utils/handler"; 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"; import { adaptPagination, zPagination } from "../utils/pagination";

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { buildHandler } from "@/app/api/v1/utils/handler"; 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"; export const dynamic = "force-dynamic";

View File

@@ -1,6 +1,6 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { zNewBookmarkListSchema } from "@hoarder/shared/types/lists"; import { zNewBookmarkListSchema } from "@karakeep/shared/types/lists";
import { buildHandler } from "../utils/handler"; import { buildHandler } from "../utils/handler";

View File

@@ -1,7 +1,7 @@
import { NextRequest } from "next/server"; import { NextRequest } from "next/server";
import { buildHandler } from "@/app/api/v1/utils/handler"; 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"; export const dynamic = "force-dynamic";

View File

@@ -6,7 +6,7 @@ import {
import { TRPCError } from "@trpc/server"; import { TRPCError } from "@trpc/server";
import { z, ZodError } from "zod"; import { z, ZodError } from "zod";
import { Context } from "@hoarder/trpc"; import { Context } from "@karakeep/trpc";
function trpcCodeToHttpCode(code: TRPCError["code"]) { function trpcCodeToHttpCode(code: TRPCError["code"]) {
switch (code) { switch (code) {

View File

@@ -1,7 +1,7 @@
import { z } from "zod"; 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";
import { zCursorV2 } from "@hoarder/shared/types/pagination"; import { zCursorV2 } from "@karakeep/shared/types/pagination";
export const zPagination = z.object({ export const zPagination = z.object({
limit: z.coerce.number().max(MAX_NUM_BOOKMARKS_PER_PAGE).optional(), limit: z.coerce.number().max(MAX_NUM_BOOKMARKS_PER_PAGE).optional(),

View File

@@ -16,7 +16,7 @@ import {
Tag, Tag,
} from "lucide-react"; } from "lucide-react";
import serverConfig from "@hoarder/shared/config"; import serverConfig from "@karakeep/shared/config";
export default async function Dashboard({ export default async function Dashboard({
children, children,

View File

@@ -4,7 +4,7 @@ import ListHeader from "@/components/dashboard/lists/ListHeader";
import { api } from "@/server/api/client"; import { api } from "@/server/api/client";
import { TRPCError } from "@trpc/server"; 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({ export default async function ListPage({
params, params,

View File

@@ -1,7 +1,7 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Inter } from "next/font/google"; import { Inter } from "next/font/google";
import "@hoarder/tailwind-config/globals.css"; import "@karakeep/tailwind-config/globals.css";
import type { Viewport } from "next"; import type { Viewport } from "next";
import React from "react"; import React from "react";
@@ -11,7 +11,7 @@ import { getUserLocalSettings } from "@/lib/userLocalSettings/userLocalSettings"
import { getServerAuthSession } from "@/server/auth"; import { getServerAuthSession } from "@/server/auth";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { clientConfig } from "@hoarder/shared/config"; import { clientConfig } from "@karakeep/shared/config";
const inter = Inter({ const inter = Inter({
subsets: ["latin"], subsets: ["latin"],

View File

@@ -20,12 +20,12 @@ import { api } from "@/lib/trpc";
import { formatBytes } from "@/lib/utils"; import { formatBytes } from "@/lib/utils";
import { ExternalLink, Trash2 } from "lucide-react"; import { ExternalLink, Trash2 } from "lucide-react";
import { useDetachBookmarkAsset } from "@hoarder/shared-react/hooks/assets"; import { useDetachBookmarkAsset } from "@karakeep/shared-react/hooks/assets";
import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils";
import { import {
humanFriendlyNameForAssertType, humanFriendlyNameForAssertType,
isAllowedToDetachAsset, isAllowedToDetachAsset,
} from "@hoarder/trpc/lib/attachments"; } from "@karakeep/trpc/lib/attachments";
export default function AssetsSettingsPage() { export default function AssetsSettingsPage() {
const { t } = useTranslation(); const { t } = useTranslation();

View File

@@ -17,8 +17,8 @@ import { useTranslation } from "react-i18next";
import { import {
useDeleteBookmark, useDeleteBookmark,
useRecrawlBookmark, useRecrawlBookmark,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { api } from "@hoarder/shared-react/trpc"; import { api } from "@karakeep/shared-react/trpc";
export default function BrokenLinksPage() { export default function BrokenLinksPage() {
const { t } = useTranslation(); const { t } = useTranslation();

View File

@@ -33,7 +33,7 @@ import { TRPCClientError } from "@trpc/client";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
import { zAdminCreateUserSchema } from "@hoarder/shared/types/admin"; import { zAdminCreateUserSchema } from "@karakeep/shared/types/admin";
type AdminCreateUserSchema = z.infer<typeof zAdminCreateUserSchema>; type AdminCreateUserSchema = z.infer<typeof zAdminCreateUserSchema>;

View File

@@ -32,7 +32,7 @@ import { TRPCClientError } from "@trpc/client";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
import { changeRoleSchema } from "@hoarder/shared/types/admin"; import { changeRoleSchema } from "@karakeep/shared/types/admin";
type ChangeRoleSchema = z.infer<typeof changeRoleSchema>; type ChangeRoleSchema = z.infer<typeof changeRoleSchema>;

View File

@@ -26,7 +26,7 @@ import { TRPCClientError } from "@trpc/client";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
import { resetPasswordSchema } from "@hoarder/shared/types/admin"; import { resetPasswordSchema } from "@karakeep/shared/types/admin";
interface ResetPasswordDialogProps { interface ResetPasswordDialogProps {
userId: string; userId: string;

View File

@@ -26,9 +26,9 @@ import {
useDeleteBookmark, useDeleteBookmark,
useRecrawlBookmark, useRecrawlBookmark,
useUpdateBookmark, useUpdateBookmark,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { limitConcurrency } from "@hoarder/shared/concurrency"; import { limitConcurrency } from "@karakeep/shared/concurrency";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import BulkManageListsModal from "./bookmarks/BulkManageListsModal"; import BulkManageListsModal from "./bookmarks/BulkManageListsModal";
import BulkTagModal from "./bookmarks/BulkTagModal"; import BulkTagModal from "./bookmarks/BulkTagModal";

View File

@@ -6,8 +6,8 @@ import { cn } from "@/lib/utils";
import { TRPCClientError } from "@trpc/client"; import { TRPCClientError } from "@trpc/client";
import DropZone from "react-dropzone"; import DropZone from "react-dropzone";
import { useCreateBookmarkWithPostHook } from "@hoarder/shared-react/hooks/bookmarks"; import { useCreateBookmarkWithPostHook } from "@karakeep/shared-react/hooks/bookmarks";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import LoadingSpinner from "../ui/spinner"; import LoadingSpinner from "../ui/spinner";
import { toast } from "../ui/use-toast"; import { toast } from "../ui/use-toast";

View File

@@ -5,9 +5,9 @@ import Link from "next/link";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { FileText } from "lucide-react"; import { FileText } from "lucide-react";
import type { ZBookmarkTypeAsset } from "@hoarder/shared/types/bookmarks"; import type { ZBookmarkTypeAsset } from "@karakeep/shared/types/bookmarks";
import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils";
import { getSourceUrl } from "@hoarder/shared-react/utils/bookmarkUtils"; import { getSourceUrl } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard";
import FooterLinkURL from "./FooterLinkURL"; import FooterLinkURL from "./FooterLinkURL";

View File

@@ -3,7 +3,7 @@ import { buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { Maximize2 } from "lucide-react"; 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 BookmarkOptions from "./BookmarkOptions";
import { FavouritedActionIcon } from "./icons"; import { FavouritedActionIcon } from "./icons";

View File

@@ -1,7 +1,7 @@
import { api } from "@/lib/trpc"; import { api } from "@/lib/trpc";
import { isBookmarkStillLoading } from "@hoarder/shared-react/utils/bookmarkUtils"; import { isBookmarkStillLoading } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
import AssetCard from "./AssetCard"; import AssetCard from "./AssetCard";
import LinkCard from "./LinkCard"; import LinkCard from "./LinkCard";

View File

@@ -12,9 +12,9 @@ import dayjs from "dayjs";
import { Check, Image as ImageIcon, NotebookPen } from "lucide-react"; import { Check, Image as ImageIcon, NotebookPen } from "lucide-react";
import { useTheme } from "next-themes"; import { useTheme } from "next-themes";
import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import { isBookmarkStillTagging } from "@hoarder/shared-react/utils/bookmarkUtils"; import { isBookmarkStillTagging } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import BookmarkActionBar from "./BookmarkActionBar"; import BookmarkActionBar from "./BookmarkActionBar";
import TagList from "./TagList"; 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 { MarkdownReadonly } from "@/components/ui/markdown/markdown-readonly";
import { toast } from "@/components/ui/use-toast"; import { toast } from "@/components/ui/use-toast";
import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; import type { ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks";
import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks";
export function BookmarkMarkdownComponent({ export function BookmarkMarkdownComponent({
children: bookmark, children: bookmark,

View File

@@ -26,15 +26,15 @@ import {
import type { import type {
ZBookmark, ZBookmark,
ZBookmarkedLink, ZBookmarkedLink,
} from "@hoarder/shared/types/bookmarks"; } from "@karakeep/shared/types/bookmarks";
import { import {
useRecrawlBookmark, useRecrawlBookmark,
useUpdateBookmark, useUpdateBookmark,
} from "@hoarder/shared-react/hooks//bookmarks"; } from "@karakeep/shared-react/hooks//bookmarks";
import { useRemoveBookmarkFromList } from "@hoarder/shared-react/hooks//lists"; import { useRemoveBookmarkFromList } from "@karakeep/shared-react/hooks//lists";
import { useBookmarkGridContext } from "@hoarder/shared-react/hooks/bookmark-grid-context"; import { useBookmarkGridContext } from "@karakeep/shared-react/hooks/bookmark-grid-context";
import { useBookmarkListContext } from "@hoarder/shared-react/hooks/bookmark-list-context"; import { useBookmarkListContext } from "@karakeep/shared-react/hooks/bookmark-list-context";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import { BookmarkedTextEditor } from "./BookmarkedTextEditor"; import { BookmarkedTextEditor } from "./BookmarkedTextEditor";
import DeleteBookmarkConfirmationDialog from "./DeleteBookmarkConfirmationDialog"; import DeleteBookmarkConfirmationDialog from "./DeleteBookmarkConfirmationDialog";

View File

@@ -1,7 +1,7 @@
import { toast } from "@/components/ui/use-toast"; import { toast } from "@/components/ui/use-toast";
import type { ZBookmark } from "@hoarder/shared/types/bookmarks"; import type { ZBookmark } from "@karakeep/shared/types/bookmarks";
import { useUpdateBookmarkTags } from "@hoarder/shared-react/hooks/bookmarks"; import { useUpdateBookmarkTags } from "@karakeep/shared-react/hooks/bookmarks";
import { TagsEditor } from "./TagsEditor"; import { TagsEditor } from "./TagsEditor";

View File

@@ -6,7 +6,7 @@ import {
DialogTitle, DialogTitle,
} from "@/components/ui/dialog"; } from "@/components/ui/dialog";
import { ZBookmark, ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; import { ZBookmark, ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks";
export function BookmarkedTextEditor({ export function BookmarkedTextEditor({
bookmark, bookmark,

View File

@@ -3,7 +3,7 @@ import { Separator } from "@/components/ui/separator";
import { api } from "@/server/api/client"; import { api } from "@/server/api/client";
import { getServerAuthSession } from "@/server/auth"; 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"; import UpdatableBookmarksGrid from "./UpdatableBookmarksGrid";

View File

@@ -13,7 +13,7 @@ import { useInView } from "react-intersection-observer";
import Masonry from "react-masonry-css"; import Masonry from "react-masonry-css";
import resolveConfig from "tailwindcss/resolveConfig"; 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 BookmarkCard from "./BookmarkCard";
import EditorCard from "./EditorCard"; import EditorCard from "./EditorCard";

View File

@@ -20,8 +20,8 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
import { useAddBookmarkToList } from "@hoarder/shared-react/hooks/lists"; import { useAddBookmarkToList } from "@karakeep/shared-react/hooks/lists";
import { limitConcurrency } from "@hoarder/shared/concurrency"; import { limitConcurrency } from "@karakeep/shared/concurrency";
import { BookmarkListSelector } from "../lists/BookmarkListSelector"; import { BookmarkListSelector } from "../lists/BookmarkListSelector";

View File

@@ -9,10 +9,10 @@ import {
} from "@/components/ui/dialog"; } from "@/components/ui/dialog";
import { toast } from "@/components/ui/use-toast"; import { toast } from "@/components/ui/use-toast";
import { useUpdateBookmarkTags } from "@hoarder/shared-react/hooks/bookmarks"; import { useUpdateBookmarkTags } from "@karakeep/shared-react/hooks/bookmarks";
import { api } from "@hoarder/shared-react/trpc"; import { api } from "@karakeep/shared-react/trpc";
import { limitConcurrency } from "@hoarder/shared/concurrency"; import { limitConcurrency } from "@karakeep/shared/concurrency";
import { ZBookmark } from "@hoarder/shared/types/bookmarks"; import { ZBookmark } from "@karakeep/shared/types/bookmarks";
import { TagsEditor } from "./TagsEditor"; 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 { toast } from "@/components/ui/use-toast";
import { useTranslation } from "@/lib/i18n/client"; import { useTranslation } from "@/lib/i18n/client";
import { useDeleteBookmark } from "@hoarder/shared-react/hooks//bookmarks"; import { useDeleteBookmark } from "@karakeep/shared-react/hooks//bookmarks";
import { ZBookmark } from "@hoarder/shared/types/bookmarks"; import { ZBookmark } from "@karakeep/shared/types/bookmarks";
export default function DeleteBookmarkConfirmationDialog({ export default function DeleteBookmarkConfirmationDialog({
bookmark, bookmark,

View File

@@ -34,13 +34,13 @@ import { format } from "date-fns";
import { CalendarIcon } from "lucide-react"; import { CalendarIcon } from "lucide-react";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks";
import { import {
BookmarkTypes, BookmarkTypes,
ZBookmark, ZBookmark,
ZUpdateBookmarksRequest, ZUpdateBookmarksRequest,
zUpdateBookmarksRequestSchema, zUpdateBookmarksRequestSchema,
} from "@hoarder/shared/types/bookmarks"; } from "@karakeep/shared/types/bookmarks";
import { BookmarkTagsEditor } from "./BookmarkTagsEditor"; import { BookmarkTagsEditor } from "./BookmarkTagsEditor";

View File

@@ -19,8 +19,8 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form"; import { useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
import { useCreateBookmarkWithPostHook } from "@hoarder/shared-react/hooks/bookmarks"; import { useCreateBookmarkWithPostHook } from "@karakeep/shared-react/hooks/bookmarks";
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes } from "@karakeep/shared/types/bookmarks";
import { useUploadAsset } from "../UploadDropzone"; import { useUploadAsset } from "../UploadDropzone";

View File

@@ -3,13 +3,13 @@
import Image from "next/image"; import Image from "next/image";
import Link from "next/link"; import Link from "next/link";
import type { ZBookmarkTypeLink } from "@hoarder/shared/types/bookmarks"; import type { ZBookmarkTypeLink } from "@karakeep/shared/types/bookmarks";
import { import {
getBookmarkLinkImageUrl, getBookmarkLinkImageUrl,
getBookmarkTitle, getBookmarkTitle,
getSourceUrl, getSourceUrl,
isBookmarkStillCrawling, isBookmarkStillCrawling,
} from "@hoarder/shared-react/utils/bookmarkUtils"; } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard";
import FooterLinkURL from "./FooterLinkURL"; import FooterLinkURL from "./FooterLinkURL";

View File

@@ -29,7 +29,7 @@ import {
useAddBookmarkToList, useAddBookmarkToList,
useBookmarkLists, useBookmarkLists,
useRemoveBookmarkFromList, useRemoveBookmarkFromList,
} from "@hoarder/shared-react/hooks/lists"; } from "@karakeep/shared-react/hooks/lists";
import { BookmarkListSelector } from "../lists/BookmarkListSelector"; import { BookmarkListSelector } from "../lists/BookmarkListSelector";
import ArchiveBookmarkButton from "./action-buttons/ArchiveBookmarkButton"; import ArchiveBookmarkButton from "./action-buttons/ArchiveBookmarkButton";

View File

@@ -9,8 +9,8 @@ import { ChevronUp, RefreshCw, Sparkles, Trash2 } from "lucide-react";
import { import {
useSummarizeBookmark, useSummarizeBookmark,
useUpdateBookmark, useUpdateBookmark,
} from "@hoarder/shared-react/hooks/bookmarks"; } from "@karakeep/shared-react/hooks/bookmarks";
import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";
function AISummary({ function AISummary({
bookmarkId, bookmarkId,

View File

@@ -3,7 +3,7 @@ import { badgeVariants } from "@/components/ui/badge";
import { Skeleton } from "@/components/ui/skeleton"; import { Skeleton } from "@/components/ui/skeleton";
import { cn } from "@/lib/utils"; 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({ export default function TagList({
bookmark, bookmark,

View File

@@ -10,7 +10,7 @@ import {
} from "@/components/ui/dialog"; } from "@/components/ui/dialog";
import { useTranslation } from "@/lib/i18n/client"; 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"; import { BookmarkTagsEditor } from "./BookmarkTagsEditor";

View File

@@ -9,7 +9,7 @@ import CreateableSelect from "react-select/creatable";
import type { import type {
ZAttachedByEnum, ZAttachedByEnum,
ZBookmarkTags, ZBookmarkTags,
} from "@hoarder/shared/types/tags"; } from "@karakeep/shared/types/tags";
interface EditableTag { interface EditableTag {
attachedBy: ZAttachedByEnum; attachedBy: ZAttachedByEnum;

View File

@@ -6,9 +6,9 @@ import { BookmarkMarkdownComponent } from "@/components/dashboard/bookmarks/Book
import { bookmarkLayoutSwitch } from "@/lib/userLocalSettings/bookmarksLayout"; import { bookmarkLayoutSwitch } from "@/lib/userLocalSettings/bookmarksLayout";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; import type { ZBookmarkTypeText } from "@karakeep/shared/types/bookmarks";
import { getAssetUrl } from "@hoarder/shared-react/utils/assetUtils"; import { getAssetUrl } from "@karakeep/shared-react/utils/assetUtils";
import { getSourceUrl } from "@hoarder/shared-react/utils/bookmarkUtils"; import { getSourceUrl } from "@karakeep/shared-react/utils/bookmarkUtils";
import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard";
import FooterLinkURL from "./FooterLinkURL"; import FooterLinkURL from "./FooterLinkURL";

View File

@@ -3,7 +3,7 @@
import { useTranslation } from "@/lib/i18n/client"; import { useTranslation } from "@/lib/i18n/client";
import { AlertCircle } from "lucide-react"; 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"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard";

View File

@@ -8,8 +8,8 @@ import { api } from "@/lib/trpc";
import type { import type {
ZGetBookmarksRequest, ZGetBookmarksRequest,
ZGetBookmarksResponse, ZGetBookmarksResponse,
} from "@hoarder/shared/types/bookmarks"; } from "@karakeep/shared/types/bookmarks";
import { BookmarkGridContextProvider } from "@hoarder/shared-react/hooks/bookmark-grid-context"; import { BookmarkGridContextProvider } from "@karakeep/shared-react/hooks/bookmark-grid-context";
import BookmarksGrid from "./BookmarksGrid"; 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 { toast } from "@/components/ui/use-toast";
import { api } from "@/lib/trpc"; import { api } from "@/lib/trpc";
import { useUpdateBookmark } from "@hoarder/shared-react/hooks/bookmarks"; import { useUpdateBookmark } from "@karakeep/shared-react/hooks/bookmarks";
interface ArchiveBookmarkButtonProps interface ArchiveBookmarkButtonProps
extends Omit<ActionButtonProps, "loading" | "disabled"> { extends Omit<ActionButtonProps, "loading" | "disabled"> {

View File

@@ -27,7 +27,7 @@ import { cn } from "@/lib/utils";
import { distance } from "fastest-levenshtein"; import { distance } from "fastest-levenshtein";
import { Check, Combine, X } from "lucide-react"; 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 { interface Suggestion {
mergeIntoId: string; mergeIntoId: string;

View File

@@ -15,7 +15,7 @@ import { useInView } from "react-intersection-observer";
import { import {
ZGetAllHighlightsResponse, ZGetAllHighlightsResponse,
ZHighlight, ZHighlight,
} from "@hoarder/shared/types/highlights"; } from "@karakeep/shared/types/highlights";
import HighlightCard from "./HighlightCard"; import HighlightCard from "./HighlightCard";

View File

@@ -3,8 +3,8 @@ import { toast } from "@/components/ui/use-toast";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { Trash2 } from "lucide-react"; import { Trash2 } from "lucide-react";
import { useDeleteHighlight } from "@hoarder/shared-react/hooks/highlights"; import { useDeleteHighlight } from "@karakeep/shared-react/hooks/highlights";
import { ZHighlight } from "@hoarder/shared/types/highlights"; import { ZHighlight } from "@karakeep/shared/types/highlights";
import { HIGHLIGHT_COLOR_MAP } from "../preview/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 { useTranslation } from "@/lib/i18n/client";
import { MoreHorizontal, Plus } from "lucide-react"; 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 { CollapsibleBookmarkLists } from "./CollapsibleBookmarkLists";
import { ListOptions } from "./ListOptions"; import { ListOptions } from "./ListOptions";

View File

@@ -8,7 +8,7 @@ import {
} from "@/components/ui/select"; } from "@/components/ui/select";
import LoadingSpinner from "@/components/ui/spinner"; 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({ export function BookmarkListSelector({
value, value,

View File

@@ -7,9 +7,9 @@ import { keepPreviousData } from "@tanstack/react-query";
import { import {
augmentBookmarkListsWithInitialData, augmentBookmarkListsWithInitialData,
useBookmarkLists, useBookmarkLists,
} from "@hoarder/shared-react/hooks/lists"; } from "@karakeep/shared-react/hooks/lists";
import { ZBookmarkList } from "@hoarder/shared/types/lists"; import { ZBookmarkList } from "@karakeep/shared/types/lists";
import { ZBookmarkListTreeNode } from "@hoarder/shared/utils/listUtils"; import { ZBookmarkListTreeNode } from "@karakeep/shared/utils/listUtils";
type RenderFunc = (params: { type RenderFunc = (params: {
item: ZBookmarkListTreeNode; item: ZBookmarkListTreeNode;

View File

@@ -3,8 +3,8 @@ import { ActionButton } from "@/components/ui/action-button";
import ActionConfirmingDialog from "@/components/ui/action-confirming-dialog"; import ActionConfirmingDialog from "@/components/ui/action-confirming-dialog";
import { toast } from "@/components/ui/use-toast"; import { toast } from "@/components/ui/use-toast";
import type { ZBookmarkList } from "@hoarder/shared/types/lists"; import type { ZBookmarkList } from "@karakeep/shared/types/lists";
import { useDeleteBookmarkList } from "@hoarder/shared-react/hooks/lists"; import { useDeleteBookmarkList } from "@karakeep/shared-react/hooks/lists";
export default function DeleteListConfirmationDialog({ export default function DeleteListConfirmationDialog({
list, list,

View File

@@ -46,12 +46,12 @@ import { z } from "zod";
import { import {
useCreateBookmarkList, useCreateBookmarkList,
useEditBookmarkList, useEditBookmarkList,
} from "@hoarder/shared-react/hooks/lists"; } from "@karakeep/shared-react/hooks/lists";
import { parseSearchQuery } from "@hoarder/shared/searchQueryParser"; import { parseSearchQuery } from "@karakeep/shared/searchQueryParser";
import { import {
ZBookmarkList, ZBookmarkList,
zNewBookmarkListSchema, zNewBookmarkListSchema,
} from "@hoarder/shared/types/lists"; } from "@karakeep/shared/types/lists";
import QueryExplainerTooltip from "../search/QueryExplainerTooltip"; import QueryExplainerTooltip from "../search/QueryExplainerTooltip";
import { BookmarkListSelector } from "./BookmarkListSelector"; import { BookmarkListSelector } from "./BookmarkListSelector";

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