mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
refactor(logs): reorganize into components/types
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ import { getActiveMember, getOrganization } from "@/lib/auth/auth";
|
||||
import { BackupModalProvider } from "@/features/database/components/backup-modal-context";
|
||||
import { DatabaseContent } from "@/features/database/components/database-content";
|
||||
import { getHealthLast12hLogs } from "@/db/services/healthcheck";
|
||||
import { LogsModalProvider } from "@/features/logs/logs-modal-context";
|
||||
import { LogsModalProvider } from "@/features/logs/components/logs-modal-context";
|
||||
|
||||
export default async function RoutePage(
|
||||
props: PageParams<{
|
||||
|
||||
@@ -12,7 +12,7 @@ import {formatBytes, formatDuration} from "@/utils/text";
|
||||
import {DatabaseActionsCell} from "@/features/database/components/backup-actions-cell";
|
||||
import { Badge as BadgeC } from "@/components/ui/badge";
|
||||
import {backupOnly} from "@/features/database/components/database-tabs";
|
||||
import {LogsModalTrigger} from "@/features/logs/logs-modal-trigger";
|
||||
import {LogsModalTrigger} from "@/features/logs/components/logs-modal-trigger";
|
||||
|
||||
export function backupColumns(
|
||||
isAlreadyRestore: boolean,
|
||||
|
||||
@@ -23,7 +23,7 @@ import {BackupButton} from "@/features/database/components/backup-button";
|
||||
import {HealthModal} from "@/features/database/components/health-modal";
|
||||
import {HealthcheckLog} from "@/db/schema/15_healthcheck-log";
|
||||
import {Badge} from "@/components/ui/badge";
|
||||
import {LogsModal} from "@/features/logs/logs-modal";
|
||||
import {LogsModal} from "@/features/logs/components/logs-modal";
|
||||
|
||||
export type DatabaseContentProps = {
|
||||
settings: Setting;
|
||||
|
||||
@@ -24,7 +24,7 @@ import { toast } from "sonner";
|
||||
import { TooltipCustom } from "@/components/common/tooltip-custom";
|
||||
import { MemberWithUser } from "@/db/schema/03_organization";
|
||||
import { ButtonWithConfirm } from "@/components/common/button-with-confirm";
|
||||
import {LogsModalTrigger} from "@/features/logs/logs-modal-trigger";
|
||||
import {LogsModalTrigger} from "@/features/logs/components/logs-modal-trigger";
|
||||
import {formatDuration} from "@/utils/text";
|
||||
|
||||
export function restoreColumns(
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import {FileText} from "lucide-react";
|
||||
import {JobLog} from "@/db/schema/17_job-log";
|
||||
import {Button} from "@/components/ui/button";
|
||||
import {useLogsModal} from "@/features/logs/logs-modal-context";
|
||||
import {useLogsModal} from "@/features/logs/components/logs-modal-context";
|
||||
|
||||
export type LogsModalTriggerProps = {
|
||||
logs: JobLog[]
|
||||
@@ -6,9 +6,9 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog"
|
||||
import { useLogsModal } from "@/features/logs/logs-modal-context"
|
||||
import { useLogsModal } from "@/features/logs/components/logs-modal-context"
|
||||
import { JobLog } from "@/db/schema/17_job-log"
|
||||
import { LogRow } from "@/features/logs/log-row-modal"
|
||||
import { LogRow } from "@/features/logs/components/log-row-modal"
|
||||
|
||||
export const LogsModal = () => {
|
||||
const { open, logs, closeModal } = useLogsModal()
|
||||
Reference in New Issue
Block a user