mirror of
https://github.com/mfts/papermark.git
synced 2025-12-20 01:03:24 +08:00
chore: cleanup
This commit is contained in:
@@ -5,10 +5,10 @@ import * as React from "react";
|
||||
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
||||
import { type VariantProps, cva } from "class-variance-authority";
|
||||
|
||||
import X from "@/components/shared/icons/x";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
import X from "@/components/shared/icons/x";
|
||||
|
||||
const Sheet = SheetPrimitive.Root;
|
||||
|
||||
const SheetTrigger = SheetPrimitive.Trigger;
|
||||
@@ -26,7 +26,7 @@ const SheetOverlay = React.forwardRef<
|
||||
>(({ className, ...props }, ref) => (
|
||||
<SheetPrimitive.Overlay
|
||||
className={cn(
|
||||
"fixed inset-0 z-50 bg-[rgba(182,192,205,0.7)] dark:bg-[rgba(30,30,30,0.7)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
||||
"fixed inset-0 z-50 bg-[rgba(182,192,205,0.7)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 dark:bg-[rgba(30,30,30,0.7)]",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
|
||||
import { fileIcon } from "@/lib/utils/get-file-icon";
|
||||
|
||||
import { DocumentVersion } from "../DataroomViewer";
|
||||
import { DocumentVersion } from "../viewer/dataroom-viewer";
|
||||
|
||||
type DRDocument = {
|
||||
dataroomDocumentId: string;
|
||||
|
||||
@@ -50,7 +50,7 @@ mkdir -p "prisma/migrations/${migration_name}" || {
|
||||
# Generate migration
|
||||
npx prisma migrate diff \
|
||||
--from-migrations prisma/migrations \
|
||||
--to-schema-datamodel prisma/schema.prisma \
|
||||
--to-schema-datasource prisma/schema \
|
||||
--shadow-database-url "postgresql://${USER}@localhost:5432/papermark-shadow-db" \
|
||||
--script > "prisma/migrations/${migration_name}/migration.sql" || {
|
||||
echo "Failed to generate migration"
|
||||
|
||||
Reference in New Issue
Block a user