aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/dashboard')
-rw-r--r--apps/web/app/dashboard/admin/page.tsx2
-rw-r--r--apps/web/app/dashboard/bookmarks/layout.tsx2
-rw-r--r--apps/web/app/dashboard/layout.tsx2
-rw-r--r--apps/web/app/dashboard/lists/[listId]/page.tsx6
-rw-r--r--apps/web/app/dashboard/lists/page.tsx2
-rw-r--r--apps/web/app/dashboard/preview/[bookmarkId]/page.tsx2
-rw-r--r--apps/web/app/dashboard/search/page.tsx5
-rw-r--r--apps/web/app/dashboard/settings/page.tsx1
-rw-r--r--apps/web/app/dashboard/tags/[tagName]/page.tsx7
-rw-r--r--apps/web/app/dashboard/tags/page.tsx9
10 files changed, 21 insertions, 17 deletions
diff --git a/apps/web/app/dashboard/admin/page.tsx b/apps/web/app/dashboard/admin/page.tsx
index 6babdd79..7b4c3cdd 100644
--- a/apps/web/app/dashboard/admin/page.tsx
+++ b/apps/web/app/dashboard/admin/page.tsx
@@ -1,5 +1,6 @@
"use client";
+import { useRouter } from "next/navigation";
import { ActionButton } from "@/components/ui/action-button";
import LoadingSpinner from "@/components/ui/spinner";
import {
@@ -15,7 +16,6 @@ import { api } from "@/lib/trpc";
import { keepPreviousData } from "@tanstack/react-query";
import { Trash } from "lucide-react";
import { useSession } from "next-auth/react";
-import { useRouter } from "next/navigation";
function ActionsSection() {
const { mutate: recrawlLinks, isPending: isRecrawlPending } =
diff --git a/apps/web/app/dashboard/bookmarks/layout.tsx b/apps/web/app/dashboard/bookmarks/layout.tsx
index 71ee143b..ca99a87b 100644
--- a/apps/web/app/dashboard/bookmarks/layout.tsx
+++ b/apps/web/app/dashboard/bookmarks/layout.tsx
@@ -1,6 +1,6 @@
+import type { Metadata } from "next";
import React from "react";
import TopNav from "@/components/dashboard/bookmarks/TopNav";
-import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Hoarder - Bookmarks",
diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx
index 31d592fb..dc3af9c7 100644
--- a/apps/web/app/dashboard/layout.tsx
+++ b/apps/web/app/dashboard/layout.tsx
@@ -1,6 +1,6 @@
-import { Separator } from "@/components/ui/separator";
import MobileSidebar from "@/components/dashboard/sidebar/ModileSidebar";
import Sidebar from "@/components/dashboard/sidebar/Sidebar";
+import { Separator } from "@/components/ui/separator";
export default async function Dashboard({
children,
diff --git a/apps/web/app/dashboard/lists/[listId]/page.tsx b/apps/web/app/dashboard/lists/[listId]/page.tsx
index 006fd3ad..4e35c377 100644
--- a/apps/web/app/dashboard/lists/[listId]/page.tsx
+++ b/apps/web/app/dashboard/lists/[listId]/page.tsx
@@ -1,9 +1,9 @@
+import { notFound, redirect } from "next/navigation";
+import DeleteListButton from "@/components/dashboard/lists/DeleteListButton";
+import ListView from "@/components/dashboard/lists/ListView";
import { api } from "@/server/api/client";
import { getServerAuthSession } from "@/server/auth";
import { TRPCError } from "@trpc/server";
-import { notFound, redirect } from "next/navigation";
-import ListView from "@/components/dashboard/lists/ListView";
-import DeleteListButton from "@/components/dashboard/lists/DeleteListButton";
export default async function ListPage({
params,
diff --git a/apps/web/app/dashboard/lists/page.tsx b/apps/web/app/dashboard/lists/page.tsx
index 88eeda47..a8c53eb6 100644
--- a/apps/web/app/dashboard/lists/page.tsx
+++ b/apps/web/app/dashboard/lists/page.tsx
@@ -1,5 +1,5 @@
-import { api } from "@/server/api/client";
import AllListsView from "@/components/dashboard/lists/AllListsView";
+import { api } from "@/server/api/client";
export default async function ListsPage() {
const lists = await api.lists.list();
diff --git a/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx b/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx
index 707d2b69..5f10b56e 100644
--- a/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx
+++ b/apps/web/app/dashboard/preview/[bookmarkId]/page.tsx
@@ -1,5 +1,5 @@
-import { api } from "@/server/api/client";
import BookmarkPreview from "@/components/dashboard/bookmarks/BookmarkPreview";
+import { api } from "@/server/api/client";
export default async function BookmarkPreviewPage({
params,
diff --git a/apps/web/app/dashboard/search/page.tsx b/apps/web/app/dashboard/search/page.tsx
index 602f6aa0..38099c18 100644
--- a/apps/web/app/dashboard/search/page.tsx
+++ b/apps/web/app/dashboard/search/page.tsx
@@ -1,11 +1,12 @@
"use client";
-import BookmarksGrid from "@/components/dashboard/bookmarks/BookmarksGrid";
-import Loading from "../bookmarks/loading";
import { Suspense, useRef } from "react";
+import BookmarksGrid from "@/components/dashboard/bookmarks/BookmarksGrid";
import { SearchInput } from "@/components/dashboard/search/SearchInput";
import { useBookmarkSearch } from "@/lib/hooks/bookmark-search";
+import Loading from "../bookmarks/loading";
+
function SearchComp() {
const { data, isPending, isPlaceholderData } = useBookmarkSearch();
diff --git a/apps/web/app/dashboard/settings/page.tsx b/apps/web/app/dashboard/settings/page.tsx
index 38091e6c..3d54d2d7 100644
--- a/apps/web/app/dashboard/settings/page.tsx
+++ b/apps/web/app/dashboard/settings/page.tsx
@@ -1,4 +1,5 @@
import ApiKeySettings from "@/components/dashboard/settings/ApiKeySettings";
+
export default async function Settings() {
return (
<div className="m-4 flex flex-col space-y-2 rounded-md border bg-white p-4">
diff --git a/apps/web/app/dashboard/tags/[tagName]/page.tsx b/apps/web/app/dashboard/tags/[tagName]/page.tsx
index c978b86a..51b3cb0b 100644
--- a/apps/web/app/dashboard/tags/[tagName]/page.tsx
+++ b/apps/web/app/dashboard/tags/[tagName]/page.tsx
@@ -1,11 +1,12 @@
-import { getServerAuthSession } from "@/server/auth";
-import { db } from "@hoarder/db";
import { notFound, redirect } from "next/navigation";
import BookmarksGrid from "@/components/dashboard/bookmarks/BookmarksGrid";
import { api } from "@/server/api/client";
-import { bookmarkTags, tagsOnBookmarks } from "@hoarder/db/schema";
+import { getServerAuthSession } from "@/server/auth";
import { and, eq } from "drizzle-orm";
+import { db } from "@hoarder/db";
+import { bookmarkTags, tagsOnBookmarks } from "@hoarder/db/schema";
+
export default async function TagPage({
params,
}: {
diff --git a/apps/web/app/dashboard/tags/page.tsx b/apps/web/app/dashboard/tags/page.tsx
index 44c164e1..08acd968 100644
--- a/apps/web/app/dashboard/tags/page.tsx
+++ b/apps/web/app/dashboard/tags/page.tsx
@@ -1,15 +1,16 @@
+import Link from "next/link";
+import { redirect } from "next/navigation";
import { Separator } from "@/components/ui/separator";
import { getServerAuthSession } from "@/server/auth";
+import { count, eq } from "drizzle-orm";
+
import { db } from "@hoarder/db";
import { bookmarkTags, tagsOnBookmarks } from "@hoarder/db/schema";
-import { count, eq } from "drizzle-orm";
-import Link from "next/link";
-import { redirect } from "next/navigation";
function TagPill({ name, count }: { name: string; count: number }) {
return (
<Link
- className="text-foreground hover:bg-foreground hover:text-background flex gap-2 rounded-md border border-gray-200 bg-white px-2 py-1"
+ className="flex gap-2 rounded-md border border-gray-200 bg-white px-2 py-1 text-foreground hover:bg-foreground hover:text-background"
href={`/dashboard/tags/${name}`}
>
{name} <Separator orientation="vertical" /> {count}