diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/discord.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/discord.form.tsx index b17f4ec9..8281a4b9 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/discord.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/discord.form.tsx @@ -1,30 +1,38 @@ -import {UseFormReturn} from "react-hook-form"; -import {FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form"; -import {Input} from "@/components/ui/input"; -import {Separator} from "@/components/ui/separator"; - +import { UseFormReturn } from "react-hook-form"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Separator } from "@/components/ui/separator"; +import { PasswordInput } from "@/components/ui/password-input"; type NotifierDiscordFormProps = { - form: UseFormReturn -} + form: UseFormReturn; +}; -export const NotifierDiscordForm = ({form}: NotifierDiscordFormProps) => { - return ( - <> - - ( - - Discord Webhook URL - - - - - - )} - /> - - ) -} +export const NotifierDiscordForm = ({ form }: NotifierDiscordFormProps) => { + return ( + <> + + ( + + Discord Webhook URL + + + + + + )} + /> + + ); +}; diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/gotify.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/gotify.form.tsx index 19c3f069..81108577 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/gotify.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/gotify.form.tsx @@ -1,43 +1,49 @@ -import {UseFormReturn} from "react-hook-form"; -import {FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form"; -import {Input} from "@/components/ui/input"; -import {Separator} from "@/components/ui/separator"; - +import type { UseFormReturn } from "react-hook-form"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Input } from "@/components/ui/input"; +import { Separator } from "@/components/ui/separator"; +import { PasswordInput } from "@/components/ui/password-input"; type NotifierGotifyFormProps = { - form: UseFormReturn -} + form: UseFormReturn; +}; -export const NotifierGotifyForm = ({form}: NotifierGotifyFormProps) => { - return ( - <> - - ( - - Gotify Server URL - - - - - - )} - /> - ( - - Application Token - - - - - - )} - /> - - ) -} +export const NotifierGotifyForm = ({ form }: NotifierGotifyFormProps) => { + return ( + <> + + ( + + Gotify Server URL + + + + + + )} + /> + ( + + Application Token + + + + + + )} + /> + + ); +}; diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/ntfy.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/ntfy.form.tsx index 3dc3e1d1..3d588a7f 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/ntfy.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/ntfy.form.tsx @@ -49,7 +49,7 @@ export const NotifierNtfyForm = ({form}: NotifierNtfyFormProps) => { Access Token (Optional) - +

Only required for protected topics or self-hosted instances with auth.

diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/slack.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/slack.form.tsx index 124ea1ca..5da65e9d 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/slack.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/slack.form.tsx @@ -1,31 +1,38 @@ - -import {UseFormReturn} from "react-hook-form"; -import {FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form"; -import {Input} from "@/components/ui/input"; -import {Separator} from "@/components/ui/separator"; - +import { UseFormReturn } from "react-hook-form"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Separator } from "@/components/ui/separator"; +import { PasswordInput } from "@/components/ui/password-input"; type NotifierSmtpFormProps = { - form: UseFormReturn -} + form: UseFormReturn; +}; -export const NotifierSlackForm = ({form}: NotifierSmtpFormProps) => { - return( - <> - - ( - - Slack Webhook URL - - - - - - )} - /> - - ) -} \ No newline at end of file +export const NotifierSlackForm = ({ form }: NotifierSmtpFormProps) => { + return ( + <> + + ( + + Slack Webhook URL + + + + + + )} + /> + + ); +}; diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/telegram.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/telegram.form.tsx index 2468d3e4..7e9e06f0 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/telegram.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/telegram.form.tsx @@ -1,64 +1,84 @@ -import {UseFormReturn} from "react-hook-form"; -import {FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form"; -import {Input} from "@/components/ui/input"; -import {Separator} from "@/components/ui/separator"; - +import { UseFormReturn } from "react-hook-form"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Input } from "@/components/ui/input"; +import { Separator } from "@/components/ui/separator"; +import { PasswordInput } from "@/components/ui/password-input"; type NotifierTelegramFormProps = { - form: UseFormReturn -} + form: UseFormReturn; +}; -export const NotifierTelegramForm = ({form}: NotifierTelegramFormProps) => { - return ( - <> - - ( - - Telegram Bot Token - - - - - - )} - /> - ( - - Telegram Chat ID - - - -

- You must start the conversation with the bot first (/start).
- For groups, add the bot to the group.
- You can use @userinfobot to find your ID. -

- -
- )} - /> - ( - - Telegram Topic ID - - - -

- Unique identifier for the target message thread (topic) of the forum; for forum supergroups only -

- -
- )} - /> - - ) -} +export const NotifierTelegramForm = ({ form }: NotifierTelegramFormProps) => { + return ( + <> + + ( + + Telegram Bot Token + + + + + + )} + /> + ( + + Telegram Chat ID + + + +

+ You must start the conversation with the bot first ( + /start).
+ For groups, add the bot to the group.
+ You can use{" "} + + @userinfobot + {" "} + to find your ID. +

+ +
+ )} + /> + ( + + Telegram Topic ID + + + +

+ Unique identifier for the target message thread (topic) of the + forum; for forum supergroups only +

+ +
+ )} + /> + + ); +}; diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/webhook.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/webhook.form.tsx index 2b718f42..5b1239b0 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/webhook.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/notifications/forms/webhook.form.tsx @@ -1,65 +1,72 @@ -import {UseFormReturn} from "react-hook-form"; -import {FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form"; -import {Input} from "@/components/ui/input"; -import {Separator} from "@/components/ui/separator"; - +import { UseFormReturn } from "react-hook-form"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Input } from "@/components/ui/input"; +import { Separator } from "@/components/ui/separator"; +import { PasswordInput } from "@/components/ui/password-input"; type NotifierWebhookFormProps = { - form: UseFormReturn -} + form: UseFormReturn; +}; -export const NotifierWebhookForm = ({form}: NotifierWebhookFormProps) => { - return ( - <> - - ( - - Webhook URL - - - - - - )} - /> -
-
- ( - - Header Name (Optional) - - - - - - )} - /> -
-
- ( - - Secret Value (Optional) - - - - - - )} - /> -
-
-

- If provided, the secret will be sent in the specified header (defaults to X-Webhook-Secret). -

- - ) -} \ No newline at end of file +export const NotifierWebhookForm = ({ form }: NotifierWebhookFormProps) => { + return ( + <> + + ( + + Webhook URL + + + + + + )} + /> +
+
+ ( + + Header Name (Optional) + + + + + + )} + /> +
+
+ ( + + Secret Value (Optional) + + + + + + )} + /> +
+
+

+ If provided, the secret will be sent in the specified header (defaults + to X-Webhook-Secret). +

+ + ); +}; diff --git a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/storages/forms/s3.form.tsx b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/storages/forms/s3.form.tsx index f2f21e3b..b70fc86a 100644 --- a/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/storages/forms/s3.form.tsx +++ b/src/components/wrappers/dashboard/admin/channels/channel/channel-form/providers/storages/forms/s3.form.tsx @@ -1,115 +1,116 @@ -import {UseFormReturn} from "react-hook-form"; -import {FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form"; -import {Input} from "@/components/ui/input"; -import {Separator} from "@/components/ui/separator"; -import {PasswordInput} from "@/components/ui/password-input"; -import {Switch} from "@/components/ui/switch"; - +import { UseFormReturn } from "react-hook-form"; +import { + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Input } from "@/components/ui/input"; +import { Separator } from "@/components/ui/separator"; +import { PasswordInput } from "@/components/ui/password-input"; +import { Switch } from "@/components/ui/switch"; type StorageS3FormProps = { - form: UseFormReturn -} + form: UseFormReturn; +}; -export const StorageS3Form = ({form}: StorageS3FormProps) => { - return ( - <> - - ( - - Endpoint URL - - - - - - )} - /> - ( - - Region - - - - - - )} - /> - ( - - Access Key - - - - - - )} - /> - ( - - Secret Key - - - - - - )} - /> - ( - - Bucket name - - - - - - )} - /> - ( - - Port - - - - - - )} - /> +export const StorageS3Form = ({ form }: StorageS3FormProps) => { + return ( + <> + + ( + + Endpoint URL + + + + + + )} + /> + ( + + Region + + + + + + )} + /> + ( + + Access Key + + + + + + )} + /> + ( + + Secret Key + + + + + + )} + /> + ( + + Bucket name + + + + + + )} + /> + ( + + Port + + + + + + )} + /> - ( - - Use SSL - - - - - - )} - /> - - - ) -} + ( + + Use SSL + + + + + + )} + /> + + ); +};