chore: run bun format to automatically format the frontend code
This commit is contained in:
+1
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { api } from '@/lib/api'
|
||||
|
||||
import type { SetupFormValues, SetupResponse } from './types'
|
||||
|
||||
export async function getSetupStatus(): Promise<SetupResponse> {
|
||||
|
||||
@@ -16,9 +16,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import type { UseFormReturn } from 'react-hook-form'
|
||||
import { ShieldCheck } from 'lucide-react'
|
||||
import type { UseFormReturn } from 'react-hook-form'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
import { PasswordInput } from '@/components/password-input'
|
||||
import { Alert, AlertDescription } from '@/components/ui/alert'
|
||||
import {
|
||||
FormControl,
|
||||
@@ -28,7 +30,7 @@ import {
|
||||
FormMessage,
|
||||
} from '@/components/ui/form'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { PasswordInput } from '@/components/password-input'
|
||||
|
||||
import type { SetupFormValues } from '../types'
|
||||
|
||||
interface AdminStepProps {
|
||||
|
||||
@@ -18,8 +18,10 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { CheckCircle2 } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { Separator } from '@/components/ui/separator'
|
||||
|
||||
import { StatusBadge } from '@/components/status-badge'
|
||||
import { Separator } from '@/components/ui/separator'
|
||||
|
||||
import type { SetupFormValues, SetupStatus } from '../types'
|
||||
|
||||
interface CompleteStepProps {
|
||||
|
||||
@@ -18,8 +18,10 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { Database, HardDrive, Server } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
|
||||
|
||||
import { StatusBadge } from '@/components/status-badge'
|
||||
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
|
||||
|
||||
import type { SetupStatus } from '../types'
|
||||
|
||||
interface DatabaseStepProps {
|
||||
|
||||
@@ -18,6 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { CheckCircle2, Loader2 } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
|
||||
interface StepNavigationProps {
|
||||
|
||||
@@ -16,11 +16,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { Building2, Home, Presentation } from 'lucide-react'
|
||||
import type { ComponentType } from 'react'
|
||||
import type { UseFormReturn } from 'react-hook-form'
|
||||
import { Building2, Home, Presentation } from 'lucide-react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
import {
|
||||
FormControl,
|
||||
FormField,
|
||||
@@ -30,6 +30,8 @@ import {
|
||||
} from '@/components/ui/form'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
import type { SetupFormValues, SetupUsageMode } from '../types'
|
||||
|
||||
interface UsageModeStepProps {
|
||||
|
||||
+9
-7
@@ -16,14 +16,16 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
|
||||
import { useNavigate } from '@tanstack/react-router'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { toast } from 'sonner'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { useSystemConfig } from '@/hooks/use-system-config'
|
||||
|
||||
import { ErrorState } from '@/components/error-state'
|
||||
import { LanguageSwitcher } from '@/components/language-switcher'
|
||||
import { LoadingState } from '@/components/loading-state'
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
@@ -34,9 +36,9 @@ import {
|
||||
} from '@/components/ui/card'
|
||||
import { Form } from '@/components/ui/form'
|
||||
import { Skeleton } from '@/components/ui/skeleton'
|
||||
import { ErrorState } from '@/components/error-state'
|
||||
import { LanguageSwitcher } from '@/components/language-switcher'
|
||||
import { LoadingState } from '@/components/loading-state'
|
||||
import { useSystemConfig } from '@/hooks/use-system-config'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
import { buildSetupPayload, getSetupStatus, submitSetup } from './api'
|
||||
import { AdminStep } from './components/admin-step'
|
||||
import { CompleteStep } from './components/complete-step'
|
||||
|
||||
Reference in New Issue
Block a user