fix(typo): fixed typo on replace classname

This commit is contained in:
Jhon
2025-07-13 13:58:25 -03:00
parent 89f71fe889
commit 79c29fa92d
34 changed files with 43 additions and 43 deletions
@@ -124,7 +124,7 @@ export const HandlePorts = ({
<Button>{children}</Button> <Button>{children}</Button>
)} )}
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-lg"> <DialogContent className="sm:max-w-lg">
<DialogHeader> <DialogHeader>
<DialogTitle>Ports</DialogTitle> <DialogTitle>Ports</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -114,7 +114,7 @@ export const HandleSecurity = ({
<Button>{children}</Button> <Button>{children}</Button>
)} )}
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-lg"> <DialogContent className="sm:max-w-lg">
<DialogHeader> <DialogHeader>
<DialogTitle>Security</DialogTitle> <DialogTitle>Security</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -122,7 +122,7 @@ export const UpdateTraefikConfig = ({ applicationId }: Props) => {
<DialogTrigger asChild> <DialogTrigger asChild>
<Button isLoading={isLoading}>Modify</Button> <Button isLoading={isLoading}>Modify</Button>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-4xl"> <DialogContent className="sm:max-w-4xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Update traefik config</DialogTitle> <DialogTitle>Update traefik config</DialogTitle>
<DialogDescription>Update the traefik config</DialogDescription> <DialogDescription>Update the traefik config</DialogDescription>
@@ -151,7 +151,7 @@ export const AddVolumes = ({
<DialogTrigger className="" asChild> <DialogTrigger className="" asChild>
<Button>{children}</Button> <Button>{children}</Button>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-3xl"> <DialogContent className="sm:max-w-3xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Volumes / Mounts</DialogTitle> <DialogTitle>Volumes / Mounts</DialogTitle>
</DialogHeader> </DialogHeader>
@@ -186,7 +186,7 @@ export const UpdateVolume = ({
<PenBoxIcon className="size-3.5 text-primary group-hover:text-blue-500" /> <PenBoxIcon className="size-3.5 text-primary group-hover:text-blue-500" />
</Button> </Button>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-3xl"> <DialogContent className="sm:max-w-3xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Update</DialogTitle> <DialogTitle>Update</DialogTitle>
<DialogDescription>Update the mount</DialogDescription> <DialogDescription>Update the mount</DialogDescription>
@@ -91,7 +91,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
return ( return (
<div <div
key={schedule.scheduleId} key={schedule.scheduleId}
classname="flex items-center justify-between rounded-lg border p-3 transition-colors bg-muted/50" className="flex items-center justify-between rounded-lg border p-3 transition-colors bg-muted/50"
> >
<div className="flex items-start gap-3"> <div className="flex items-start gap-3">
<div className="flex h-9 w-9 items-center justify-center rounded-full bg-primary/5"> <div className="flex h-9 w-9 items-center justify-center rounded-full bg-primary/5">
@@ -113,7 +113,7 @@ export const ShowVolumeBackups = ({
return ( return (
<div <div
key={volumeBackup.volumeBackupId} key={volumeBackup.volumeBackupId}
classname="flex items-center justify-between rounded-lg border p-3 transition-colors bg-muted/50" className="flex items-center justify-between rounded-lg border p-3 transition-colors bg-muted/50"
> >
<div className="flex items-start gap-3"> <div className="flex items-start gap-3">
<div className="flex h-9 w-9 items-center justify-center rounded-full bg-primary/5"> <div className="flex h-9 w-9 items-center justify-center rounded-full bg-primary/5">
@@ -40,7 +40,7 @@ export const ShowDockerModalLogs = ({
{children} {children}
</DropdownMenuItem> </DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-7xl"> <DialogContent className="sm:max-w-7xl">
<DialogHeader> <DialogHeader>
<DialogTitle>View Logs</DialogTitle> <DialogTitle>View Logs</DialogTitle>
<DialogDescription>View the logs for {containerId}</DialogDescription> <DialogDescription>View the logs for {containerId}</DialogDescription>
@@ -40,7 +40,7 @@ export const ShowDockerModalStackLogs = ({
{children} {children}
</DropdownMenuItem> </DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-7xl"> <DialogContent className="sm:max-w-7xl">
<DialogHeader> <DialogHeader>
<DialogTitle>View Logs</DialogTitle> <DialogTitle>View Logs</DialogTitle>
<DialogDescription>View the logs for {containerId}</DialogDescription> <DialogDescription>View the logs for {containerId}</DialogDescription>
@@ -60,7 +60,7 @@ export const DockerTerminalModal = ({
</DropdownMenuItem> </DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DialogContent <DialogContent
classname="sm:max-w-7xl" className="sm:max-w-7xl"
onEscapeKeyDown={(event) => event.preventDefault()} onEscapeKeyDown={(event) => event.preventDefault()}
> >
<DialogHeader> <DialogHeader>
@@ -123,7 +123,7 @@ export const ContainerPaidMonitoring = ({ appName, baseUrl, token }: Props) => {
? queryError.message ? queryError.message
: "Failed to fetch metrics, Please check your monitoring Instance is Configured correctly."} : "Failed to fetch metrics, Please check your monitoring Instance is Configured correctly."}
</p> </p>
<p classname="text-sm text-muted-foreground">URL: {baseUrl}</p> <p className="text-sm text-muted-foreground">URL: {baseUrl}</p>
</div> </div>
</div> </div>
); );
@@ -143,7 +143,7 @@ export const ShowPaidMonitoring = ({
? queryError.message ? queryError.message
: "Failed to fetch metrics, Please check your monitoring Instance is Configured correctly."} : "Failed to fetch metrics, Please check your monitoring Instance is Configured correctly."}
</p> </p>
<p classname="text-sm text-muted-foreground">URL: {BASE_URL}</p> <p className="text-sm text-muted-foreground">URL: {BASE_URL}</p>
</div> </div>
</div> </div>
); );
@@ -155,7 +155,7 @@ export function AddOrganization({ organizationId }: Props) {
control={form.control} control={form.control}
name="logo" name="logo"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="gap-4"> <FormItem className="gap-4">
<FormLabel className="text-right">Logo URL</FormLabel> <FormLabel className="text-right">Logo URL</FormLabel>
<FormControl> <FormControl>
<Input <Input
@@ -119,7 +119,7 @@ export const AddApplication = ({ projectId, projectName }: Props) => {
<span>Application</span> <span>Application</span>
</DropdownMenuItem> </DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-lg"> <DialogContent className="sm:max-w-lg">
<DialogHeader> <DialogHeader>
<DialogTitle>Create</DialogTitle> <DialogTitle>Create</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -124,7 +124,7 @@ export const AddCompose = ({ projectId, projectName }: Props) => {
<span>Compose</span> <span>Compose</span>
</DropdownMenuItem> </DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-xl"> <DialogContent className="sm:max-w-xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Create Compose</DialogTitle> <DialogTitle>Create Compose</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -259,7 +259,7 @@ export const StepTwo = ({ templateInfo, setTemplateInfo }: StepProps) => {
<AccordionItem value="description"> <AccordionItem value="description">
<AccordionTrigger>Description</AccordionTrigger> <AccordionTrigger>Description</AccordionTrigger>
<AccordionContent> <AccordionContent>
<ScrollArea classname="w-full rounded-md border p-4"> <ScrollArea className="w-full rounded-md border p-4">
<ReactMarkdown className="text-muted-foreground text-sm"> <ReactMarkdown className="text-muted-foreground text-sm">
{selectedVariant?.description} {selectedVariant?.description}
</ReactMarkdown> </ReactMarkdown>
@@ -289,7 +289,7 @@ export const StepTwo = ({ templateInfo, setTemplateInfo }: StepProps) => {
<AccordionItem value="env-variables"> <AccordionItem value="env-variables">
<AccordionTrigger>Environment Variables</AccordionTrigger> <AccordionTrigger>Environment Variables</AccordionTrigger>
<AccordionContent> <AccordionContent>
<ScrollArea classname="w-full rounded-md border"> <ScrollArea className="w-full rounded-md border">
<div className="p-4 space-y-4"> <div className="p-4 space-y-4">
{selectedVariant?.envVariables.map((env, index) => ( {selectedVariant?.envVariables.map((env, index) => (
<div <div
@@ -364,7 +364,7 @@ export const StepTwo = ({ templateInfo, setTemplateInfo }: StepProps) => {
<AccordionItem value="domains"> <AccordionItem value="domains">
<AccordionTrigger>Domains</AccordionTrigger> <AccordionTrigger>Domains</AccordionTrigger>
<AccordionContent> <AccordionContent>
<ScrollArea classname="w-full rounded-md border"> <ScrollArea className="w-full rounded-md border">
<div className="p-4 space-y-4"> <div className="p-4 space-y-4">
{selectedVariant?.domains.map((domain, index) => ( {selectedVariant?.domains.map((domain, index) => (
<div <div
@@ -47,7 +47,7 @@ export const columns: ColumnDef<LogEntry>[] = [
cell: ({ row }) => { cell: ({ row }) => {
const log = row.original; const log = row.original;
return ( return (
<div classname="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<div className="flex items-center flex-row gap-3 "> <div className="flex items-center flex-row gap-3 ">
{log.RequestMethod}{" "} {log.RequestMethod}{" "}
<div className="inline-flex items-center gap-2 bg-muted px-1.5 py-1 rounded-lg"> <div className="inline-flex items-center gap-2 bg-muted px-1.5 py-1 rounded-lg">
@@ -86,7 +86,7 @@ export const columns: ColumnDef<LogEntry>[] = [
cell: ({ row }) => { cell: ({ row }) => {
const log = row.original; const log = row.original;
return ( return (
<div classname="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<div className="flex flex-row gap-3 w-full"> <div className="flex flex-row gap-3 w-full">
{format(new Date(log.StartUTC), "yyyy-MM-dd HH:mm:ss")} {format(new Date(log.StartUTC), "yyyy-MM-dd HH:mm:ss")}
</div> </div>
@@ -171,7 +171,7 @@ export const ShowBilling = () => {
)} )}
{isAnnual ? ( {isAnnual ? (
<div className="flex flex-row gap-2 items-center"> <div className="flex flex-row gap-2 items-center">
<p classname="text-2xl font-semibold tracking-tight text-primary "> <p className="text-2xl font-semibold tracking-tight text-primary ">
${" "} ${" "}
{calculatePrice( {calculatePrice(
serverQuantity, serverQuantity,
@@ -180,7 +180,7 @@ export const ShowBilling = () => {
USD USD
</p> </p>
| |
<p classname="text-base font-semibold tracking-tight text-muted-foreground"> <p className="text-base font-semibold tracking-tight text-muted-foreground">
${" "} ${" "}
{( {(
calculatePrice(serverQuantity, isAnnual) / 12 calculatePrice(serverQuantity, isAnnual) / 12
@@ -189,7 +189,7 @@ export const ShowBilling = () => {
</p> </p>
</div> </div>
) : ( ) : (
<p classname="text-2xl font-semibold tracking-tight text-primary "> <p className="text-2xl font-semibold tracking-tight text-primary ">
${" "} ${" "}
{calculatePrice(serverQuantity, isAnnual).toFixed( {calculatePrice(serverQuantity, isAnnual).toFixed(
2, 2,
@@ -106,7 +106,7 @@ export const AddCertificate = () => {
Add Certificate Add Certificate
</Button> </Button>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-2xl"> <DialogContent className="sm:max-w-2xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Add New Certificate</DialogTitle> <DialogTitle>Add New Certificate</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -27,7 +27,7 @@ export const AddNode = ({ serverId }: Props) => {
Add Node Add Node
</Button> </Button>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-4xl"> <DialogContent className="sm:max-w-4xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Add Node</DialogTitle> <DialogTitle>Add Node</DialogTitle>
<DialogDescription className="flex flex-col gap-2"> <DialogDescription className="flex flex-col gap-2">
@@ -204,7 +204,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
</Button> </Button>
)} )}
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-2xl"> <DialogContent className="sm:max-w-2xl">
<DialogHeader> <DialogHeader>
<DialogTitle> <DialogTitle>
{destinationId ? "Update" : "Add"} Destination {destinationId ? "Update" : "Add"} Destination
@@ -907,7 +907,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="appBuildError" name="appBuildError"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>App Build Error</FormLabel> <FormLabel>App Build Error</FormLabel>
<FormDescription> <FormDescription>
@@ -928,7 +928,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="databaseBackup" name="databaseBackup"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Database Backup</FormLabel> <FormLabel>Database Backup</FormLabel>
<FormDescription> <FormDescription>
@@ -949,7 +949,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="dockerCleanup" name="dockerCleanup"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Docker Cleanup</FormLabel> <FormLabel>Docker Cleanup</FormLabel>
<FormDescription> <FormDescription>
@@ -972,7 +972,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="dokployRestart" name="dokployRestart"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Dokploy Restart</FormLabel> <FormLabel>Dokploy Restart</FormLabel>
<FormDescription> <FormDescription>
@@ -995,7 +995,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="serverThreshold" name="serverThreshold"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Server Threshold</FormLabel> <FormLabel>Server Threshold</FormLabel>
<FormDescription> <FormDescription>
@@ -152,7 +152,7 @@ export const SetupServer = ({ serverId }: Props) => {
Copy Public Key ({server?.sshKey?.name}) Copy Public Key ({server?.sshKey?.name})
<button <button
type="button" type="button"
classname="right-2 top-8" className="right-2 top-8"
onClick={() => { onClick={() => {
copy( copy(
server?.sshKey?.publicKey || "Generate a SSH Key", server?.sshKey?.publicKey || "Generate a SSH Key",
@@ -122,7 +122,7 @@ export const CreateSSHKey = () => {
Copy Public Key Copy Public Key
<button <button
type="button" type="button"
classname="right-2 top-8" className="right-2 top-8"
onClick={() => { onClick={() => {
copy( copy(
cloudSSHKey?.publicKey || "Generate a SSH Key", cloudSSHKey?.publicKey || "Generate a SSH Key",
@@ -289,7 +289,7 @@ export const WelcomeSuscription = () => {
<div className="flex flex-col gap-6"> <div className="flex flex-col gap-6">
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<h2 className="text-lg font-semibold">You're All Set!</h2> <h2 className="text-lg font-semibold">You're All Set!</h2>
<p classname="text-muted-foreground"> <p className="text-muted-foreground">
Did you know you can deploy any number of applications Did you know you can deploy any number of applications
that your server can handle? that your server can handle?
</p> </p>
@@ -152,7 +152,7 @@ export const HandleSSHKeys = ({ sshKeyId }: Props) => {
</Button> </Button>
)} )}
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-2xl"> <DialogContent className="sm:max-w-2xl">
<DialogHeader> <DialogHeader>
<DialogTitle>SSH Key</DialogTitle> <DialogTitle>SSH Key</DialogTitle>
<DialogDescription className="space-y-4"> <DialogDescription className="space-y-4">
@@ -108,7 +108,7 @@ export const AddInvitation = () => {
<PlusIcon className="h-4 w-4" /> Add Invitation <PlusIcon className="h-4 w-4" /> Add Invitation
</Button> </Button>
</DialogTrigger> </DialogTrigger>
<DialogContent classname="sm:max-w-2xl"> <DialogContent className="sm:max-w-2xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Add Invitation</DialogTitle> <DialogTitle>Add Invitation</DialogTitle>
<DialogDescription>Invite a new user</DialogDescription> <DialogDescription>Invite a new user</DialogDescription>
@@ -140,7 +140,7 @@ export const AddUserPermissions = ({ userId }: Props) => {
control={form.control} control={form.control}
name="canCreateProjects" name="canCreateProjects"
render={({ field }) => ( render={({ field }) => (
<FormItem classname="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Create Projects</FormLabel> <FormLabel>Create Projects</FormLabel>
<FormDescription> <FormDescription>
@@ -78,7 +78,7 @@ export const EditTraefikEnv = ({ children, serverId }: Props) => {
return ( return (
<Dialog> <Dialog>
<DialogTrigger asChild>{children}</DialogTrigger> <DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent classname="sm:max-w-4xl"> <DialogContent className="sm:max-w-4xl">
<DialogHeader> <DialogHeader>
<DialogTitle>Update Traefik Environment</DialogTitle> <DialogTitle>Update Traefik Environment</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -77,7 +77,7 @@ const LocalServerConfig = ({ onSave }: Props) => {
<div className="flex flex-row items-center gap-2 justify-between w-full"> <div className="flex flex-row items-center gap-2 justify-between w-full">
<div className="flex flex-row gap-2 items-center"> <div className="flex flex-row gap-2 items-center">
<Settings className="h-4 w-4" /> <Settings className="h-4 w-4" />
<span classname="dark:hover:text-white"> <span className="dark:hover:text-white">
{t("settings.terminal.connectionSettings")} {t("settings.terminal.connectionSettings")}
</span> </span>
</div> </div>
@@ -53,7 +53,7 @@ export const TerminalModal = ({ children, serverId }: Props) => {
</DropdownMenuItem> </DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DialogContent <DialogContent
classname="sm:max-w-7xl" className="sm:max-w-7xl"
onEscapeKeyDown={(event) => event.preventDefault()} onEscapeKeyDown={(event) => event.preventDefault()}
> >
<DialogHeader className="flex flex-col gap-1"> <DialogHeader className="flex flex-col gap-1">
+1 -1
View File
@@ -246,7 +246,7 @@ const Leaf = React.forwardRef<
aria-hidden="true" aria-hidden="true"
/> />
)} )}
<p classname="text-sm whitespace-normal font-mono text-left"> <p className="text-sm whitespace-normal font-mono text-left">
{item.name} {item.name}
</p> </p>
</button> </button>
@@ -958,7 +958,7 @@ const Project = (
</div> </div>
) : ( ) : (
<div className="flex w-full flex-col gap-4"> <div className="flex w-full flex-col gap-4">
<div classname="gap-5 pb-10 grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3"> <div className="gap-5 pb-10 grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">
{filteredServices?.map((service) => ( {filteredServices?.map((service) => (
<Card <Card
key={service.id} key={service.id}
+1 -1
View File
@@ -131,7 +131,7 @@ const Register = ({ isCloud }: Props) => {
</CardDescription> </CardDescription>
<div className="mx-auto w-full max-w-lg bg-transparent"> <div className="mx-auto w-full max-w-lg bg-transparent">
{isError && ( {isError && (
<div classname="my-2 flex flex-row items-center gap-2 rounded-lg bg-red-50 p-2 dark:bg-red-950"> <div className="my-2 flex flex-row items-center gap-2 rounded-lg bg-red-50 p-2 dark:bg-red-950">
<AlertTriangle className="text-red-600 dark:text-red-400" /> <AlertTriangle className="text-red-600 dark:text-red-400" />
<span className="text-sm text-red-600 dark:text-red-400"> <span className="text-sm text-red-600 dark:text-red-400">
{error} {error}