mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on the README.md
This commit is contained in:
@@ -22,7 +22,6 @@ import {toast} from "sonner";
|
||||
import {useRouter} from "next/navigation";
|
||||
import {StatusBadge} from "@/components/wrappers/common/status-badge";
|
||||
import {Backup, DatabaseWith} from "@/db/schema/07_database";
|
||||
import {formatFrenchDate} from "@/utils/date-formatting";
|
||||
import {TooltipCustom} from "@/components/wrappers/common/tooltip-custom";
|
||||
import {Setting} from "@/db/schema/01_setting";
|
||||
import {SafeActionResult} from "next-safe-action";
|
||||
@@ -31,6 +30,7 @@ import {ServerActionResult} from "@/types/action-type";
|
||||
import {cn} from "@/lib/utils";
|
||||
import {Tooltip, TooltipContent, TooltipProvider, TooltipTrigger} from "@/components/ui/tooltip";
|
||||
import {MemberWithUser} from "@/db/schema/03_organization";
|
||||
import {formatLocalizedDate} from "@/utils/date-formatting";
|
||||
|
||||
|
||||
export function backupColumns(
|
||||
@@ -52,7 +52,7 @@ export function backupColumns(
|
||||
</TooltipTrigger>
|
||||
{row.original.deletedAt != null && (
|
||||
<TooltipContent>
|
||||
<p>{formatFrenchDate(row.original.deletedAt)}</p>
|
||||
<p>{formatLocalizedDate(row.original.deletedAt)}</p>
|
||||
</TooltipContent>
|
||||
)}
|
||||
</Tooltip>
|
||||
@@ -68,7 +68,7 @@ export function backupColumns(
|
||||
accessorKey: "createdAt",
|
||||
header: "Created At",
|
||||
cell: ({row}) => {
|
||||
return formatFrenchDate(row.getValue("createdAt"))
|
||||
return formatLocalizedDate(row.getValue("createdAt"))
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -13,11 +13,10 @@ import { Button } from "@/components/ui/button";
|
||||
import {MoreHorizontal, Trash2} from "lucide-react";
|
||||
import { ReloadIcon } from "@radix-ui/react-icons";
|
||||
import { StatusBadge } from "@/components/wrappers/common/status-badge";
|
||||
import {Backup, Restoration} from "@/db/schema/07_database";
|
||||
import {formatFrenchDate} from "@/utils/date-formatting";
|
||||
import {Restoration} from "@/db/schema/07_database";
|
||||
import {formatLocalizedDate} from "@/utils/date-formatting";
|
||||
import {useMutation} from "@tanstack/react-query";
|
||||
import {
|
||||
deleteBackupAction,
|
||||
deleteRestoreAction,
|
||||
rerunRestorationAction
|
||||
} from "@/features/dashboard/restore/restore.action";
|
||||
@@ -40,7 +39,7 @@ export function restoreColumns(
|
||||
accessorKey: "createdAt",
|
||||
header: "Created At",
|
||||
cell: ({ row }) => {
|
||||
return formatFrenchDate(row.getValue("createdAt"))
|
||||
return formatLocalizedDate(row.getValue("createdAt"))
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -5,6 +5,8 @@ import {ModeToggle} from "@/features/theme/ModeToggle";
|
||||
import {currentUser} from "@/lib/auth/current-user";
|
||||
import {LoggedInButton} from "@/components/wrappers/dashboard/common/logged-in/logged-in-button";
|
||||
import {BreadCrumbsWrapper} from "@/components/wrappers/common/bread-crumbs/bread-crumbs";
|
||||
import GitHubStarsButtonCustom from "@/components/wrappers/common/github/github-button";
|
||||
// import GitHubStarsButtonCustom from "@/components/wrappers/common/github-button";
|
||||
|
||||
export const Header = async () => {
|
||||
const user = await currentUser();
|
||||
@@ -19,6 +21,7 @@ export const Header = async () => {
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
<GitHubStarsButtonCustom/>
|
||||
<ModeToggle/>
|
||||
<LoggedInButton/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user