diff options
| author | MohamedBassem <me@mbassem.com> | 2025-04-12 19:37:18 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-04-12 19:37:40 +0100 |
| commit | 755fc36e912964863d4f46bb32adda6332b419fe (patch) | |
| tree | 3c54e9e6ed7686a119804716ccb6fdd6ad0da3c3 /apps/mobile | |
| parent | 7f569042f153a55189fb28e6ef6ab127b8190afd (diff) | |
| download | karakeep-755fc36e912964863d4f46bb32adda6332b419fe.tar.zst | |
chore: Rename hoarder packages to karakeep
Diffstat (limited to 'apps/mobile')
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/lists.tsx | 4 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx | 4 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx | 6 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx | 4 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx | 4 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/new.tsx | 4 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/lists/new.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/app/sharing.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/components/bookmarks/BookmarkCard.tsx | 8 | ||||
| -rw-r--r-- | apps/mobile/components/bookmarks/BookmarkList.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/components/bookmarks/TagPill.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx | 4 | ||||
| -rw-r--r-- | apps/mobile/globals.css | 2 | ||||
| -rw-r--r-- | apps/mobile/lib/providers.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/lib/trpc.ts | 2 | ||||
| -rw-r--r-- | apps/mobile/lib/upload.ts | 4 | ||||
| -rw-r--r-- | apps/mobile/package.json | 22 | ||||
| -rw-r--r-- | apps/mobile/tailwind.config.ts | 2 |
18 files changed, 40 insertions, 40 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx index 0dae3ea7..218c1de4 100644 --- a/apps/mobile/app/dashboard/(tabs)/lists.tsx +++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx @@ -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 ( diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx index e89d572d..7edbd0b8 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/index.tsx @@ -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(); diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx index 906ebdc7..ebd3a1e2 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx @@ -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 ( diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx index b38261df..9f2149ae 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx @@ -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(); diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx index 1b5c53e5..d464b06b 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx @@ -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"; diff --git a/apps/mobile/app/dashboard/bookmarks/new.tsx b/apps/mobile/app/dashboard/bookmarks/new.tsx index 06a16a40..e821555a 100644 --- a/apps/mobile/app/dashboard/bookmarks/new.tsx +++ b/apps/mobile/app/dashboard/bookmarks/new.tsx @@ -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 = () => { diff --git a/apps/mobile/app/dashboard/lists/new.tsx b/apps/mobile/app/dashboard/lists/new.tsx index 998638aa..2cd690f5 100644 --- a/apps/mobile/app/dashboard/lists/new.tsx +++ b/apps/mobile/app/dashboard/lists/new.tsx @@ -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 = () => { diff --git a/apps/mobile/app/sharing.tsx b/apps/mobile/app/sharing.tsx index 55c2da9d..941b4c83 100644 --- a/apps/mobile/app/sharing.tsx +++ b/apps/mobile/app/sharing.tsx @@ -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" } diff --git a/apps/mobile/components/bookmarks/BookmarkCard.tsx b/apps/mobile/components/bookmarks/BookmarkCard.tsx index 3cbd064e..21ca1635 100644 --- a/apps/mobile/components/bookmarks/BookmarkCard.tsx +++ b/apps/mobile/components/bookmarks/BookmarkCard.tsx @@ -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"; diff --git a/apps/mobile/components/bookmarks/BookmarkList.tsx b/apps/mobile/components/bookmarks/BookmarkList.tsx index 6eabe4d4..7be63ed6 100644 --- a/apps/mobile/components/bookmarks/BookmarkList.tsx +++ b/apps/mobile/components/bookmarks/BookmarkList.tsx @@ -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"; diff --git a/apps/mobile/components/bookmarks/TagPill.tsx b/apps/mobile/components/bookmarks/TagPill.tsx index 04e01730..eb9945e5 100644 --- a/apps/mobile/components/bookmarks/TagPill.tsx +++ b/apps/mobile/components/bookmarks/TagPill.tsx @@ -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 ( diff --git a/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx b/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx index 99bb5ab8..115d44c9 100644 --- a/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx +++ b/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx @@ -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"; diff --git a/apps/mobile/globals.css b/apps/mobile/globals.css index 7d537499..bf0da7e1 100644 --- a/apps/mobile/globals.css +++ b/apps/mobile/globals.css @@ -1 +1 @@ -@import "@hoarder/tailwind-config/globals"; +@import "@karakeep/tailwind-config/globals"; diff --git a/apps/mobile/lib/providers.tsx b/apps/mobile/lib/providers.tsx index 2c648e2b..938b8aeb 100644 --- a/apps/mobile/lib/providers.tsx +++ b/apps/mobile/lib/providers.tsx @@ -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"; diff --git a/apps/mobile/lib/trpc.ts b/apps/mobile/lib/trpc.ts index 9b025df1..e56968b8 100644 --- a/apps/mobile/lib/trpc.ts +++ b/apps/mobile/lib/trpc.ts @@ -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>(); diff --git a/apps/mobile/lib/upload.ts b/apps/mobile/lib/upload.ts index 715119b1..a9157d68 100644 --- a/apps/mobile/lib/upload.ts +++ b/apps/mobile/lib/upload.ts @@ -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"; diff --git a/apps/mobile/package.json b/apps/mobile/package.json index f94294c3..c17d4f26 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -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" } diff --git a/apps/mobile/tailwind.config.ts b/apps/mobile/tailwind.config.ts index 8d6f3785..03712ec4 100644 --- a/apps/mobile/tailwind.config.ts +++ b/apps/mobile/tailwind.config.ts @@ -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, |
