Răsfoiți Sursa

šŸ”§ chore(client): é‡ęž„å®¢ęˆ·ē«Æē›®å½•ē»“ęž„

- 将admin-shadcnē›®å½•é‡å‘½åäøŗadmin并曓新相关导兄路径
- 将home-shadcnē›®å½•é‡å‘½åäøŗhome并曓新相关导兄路径
- č°ƒę•“å…„å£ę–‡ä»¶äø­ēš„č·Æå¾„å¼•ē”Øä»„åŒ¹é…ę–°ēš„ē›®å½•ē»“ęž„
- ę›“ę–°ē»„ä»¶ć€é”µé¢å’Œč·Æē”±ę–‡ä»¶äø­ēš„å†…éƒØåÆ¼å…„č·Æå¾„
yourname 3 luni Ʈn urmă
părinte
comite
d49d0e5d84

+ 1 - 1
src/client/admin-shadcn/components/AvatarSelector.tsx → src/client/admin/components/AvatarSelector.tsx

@@ -5,7 +5,7 @@ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, D
 import { Card, CardContent } from '@/client/components/ui/card';
 import { toast } from 'sonner';
 import { fileClient } from '@/client/api';
-import MinioUploader from '@/client/admin-shadcn/components/MinioUploader';
+import MinioUploader from '@/client/admin/components/MinioUploader';
 import { Check, Upload, Eye, X } from 'lucide-react';
 import { Avatar, AvatarFallback, AvatarImage } from '@/client/components/ui/avatar';
 import { cn } from '@/client/lib/utils';

+ 0 - 0
src/client/admin-shadcn/components/DataTablePagination.tsx → src/client/admin/components/DataTablePagination.tsx


+ 0 - 0
src/client/admin-shadcn/components/ErrorPage.tsx → src/client/admin/components/ErrorPage.tsx


+ 1 - 1
src/client/admin-shadcn/components/FileSelector.tsx → src/client/admin/components/FileSelector.tsx

@@ -5,7 +5,7 @@ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, D
 import { Card, CardContent } from '@/client/components/ui/card';
 import { toast } from 'sonner';
 import { fileClient } from '@/client/api';
-import MinioUploader from '@/client/admin-shadcn/components/MinioUploader';
+import MinioUploader from '@/client/admin/components/MinioUploader';
 import { Check, Upload, Eye, X, File as FileIcon, Image as ImageIcon } from 'lucide-react';
 import { cn } from '@/client/lib/utils';
 import type { InferResponseType } from 'hono/client';

+ 0 - 0
src/client/admin-shadcn/components/MinioUploader.tsx → src/client/admin/components/MinioUploader.tsx


+ 0 - 0
src/client/admin-shadcn/components/NotFoundPage.tsx → src/client/admin/components/NotFoundPage.tsx


+ 0 - 0
src/client/admin-shadcn/components/ProtectedRoute.tsx → src/client/admin/components/ProtectedRoute.tsx


+ 0 - 0
src/client/admin-shadcn/hooks/AuthProvider.tsx → src/client/admin/hooks/AuthProvider.tsx


+ 0 - 0
src/client/admin-shadcn/index.tsx → src/client/admin/index.tsx


+ 0 - 0
src/client/admin-shadcn/layouts/MainLayout.tsx → src/client/admin/layouts/MainLayout.tsx


+ 0 - 0
src/client/admin-shadcn/menu.tsx → src/client/admin/menu.tsx


+ 0 - 0
src/client/admin-shadcn/pages/Dashboard.tsx → src/client/admin/pages/Dashboard.tsx


+ 1 - 1
src/client/admin-shadcn/pages/Files.tsx → src/client/admin/pages/Files.tsx

@@ -15,7 +15,7 @@ import { Eye, Download, Edit, Trash2, Search, FileText, Upload } from 'lucide-re
 import { fileClient } from '@/client/api';
 import type { InferResponseType, InferRequestType } from 'hono/client';
 import dayjs from 'dayjs';
-import MinioUploader from '@/client/admin-shadcn/components/MinioUploader';
+import MinioUploader from '@/client/admin/components/MinioUploader';
 import { UpdateFileDto } from '@/server/modules/files/file.schema';
 import * as z from 'zod';
 

+ 0 - 0
src/client/admin-shadcn/pages/Login.tsx → src/client/admin/pages/Login.tsx


+ 2 - 2
src/client/admin-shadcn/pages/Users.tsx → src/client/admin/pages/Users.tsx

@@ -11,8 +11,8 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@
 import { Badge } from '@/client/components/ui/badge';
 import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/client/components/ui/dialog';
 import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/client/components/ui/form';
-import { DataTablePagination } from '@/client/admin-shadcn/components/DataTablePagination';
-import AvatarSelector from '@/client/admin-shadcn/components/AvatarSelector';
+import { DataTablePagination } from '@/client/admin/components/DataTablePagination';
+import AvatarSelector from '@/client/admin/components/AvatarSelector';
 import { useForm } from 'react-hook-form';
 import { zodResolver } from '@hookform/resolvers/zod';
 import { toast } from 'sonner';

+ 2 - 2
src/client/admin-shadcn/pages/Vocabulary.tsx → src/client/admin/pages/Vocabulary.tsx

@@ -11,7 +11,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@
 import { Badge } from '@/client/components/ui/badge';
 import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/client/components/ui/dialog';
 import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/client/components/ui/form';
-import { DataTablePagination } from '@/client/admin-shadcn/components/DataTablePagination';
+import { DataTablePagination } from '@/client/admin/components/DataTablePagination';
 import { useForm } from 'react-hook-form';
 import { zodResolver } from '@hookform/resolvers/zod';
 import { toast } from 'sonner';
@@ -19,7 +19,7 @@ import { Skeleton } from '@/client/components/ui/skeleton';
 import { Switch } from '@/client/components/ui/switch';
 import { DisabledStatus } from '@/share/types';
 import { CreateVocabularyDto, UpdateVocabularyDto } from '@/server/modules/vocabulary/vocabulary.schema';
-import FileSelector from '@/client/admin-shadcn/components/FileSelector';
+import FileSelector from '@/client/admin/components/FileSelector';
 
 // 使用RPCę–¹å¼ęå–ē±»åž‹
 type CreateVocabularyRequest = InferRequestType<typeof vocabularyClient.$post>['json'];

+ 0 - 0
src/client/admin-shadcn/routes.tsx → src/client/admin/routes.tsx


+ 0 - 0
src/client/home-shadcn/components/ErrorPage.tsx → src/client/home/components/ErrorPage.tsx


+ 0 - 0
src/client/home-shadcn/components/NotFoundPage.tsx → src/client/home/components/NotFoundPage.tsx


+ 0 - 0
src/client/home-shadcn/components/ProtectedRoute.tsx → src/client/home/components/ProtectedRoute.tsx


+ 0 - 0
src/client/home-shadcn/hooks/AuthProvider.tsx → src/client/home/hooks/AuthProvider.tsx


+ 0 - 0
src/client/home-shadcn/index.tsx → src/client/home/index.tsx


+ 0 - 0
src/client/home-shadcn/layouts/MainLayout.tsx → src/client/home/layouts/MainLayout.tsx


+ 1 - 1
src/client/home-shadcn/pages/HomePage.tsx → src/client/home/pages/HomePage.tsx

@@ -1,5 +1,5 @@
 import React from 'react';
-import { useAuth } from '@/client/home-shadcn/hooks/AuthProvider';
+import { useAuth } from '@/client/home/hooks/AuthProvider';
 import { useNavigate } from 'react-router-dom';
 
 const HomePage: React.FC = () => {

+ 1 - 1
src/client/home-shadcn/pages/LoginPage.tsx → src/client/home/pages/LoginPage.tsx

@@ -3,7 +3,7 @@ import { useForm } from 'react-hook-form';
 import { zodResolver } from '@hookform/resolvers/zod';
 import { z } from 'zod';
 import { Link, useNavigate } from 'react-router-dom';
-import { useAuth } from '@/client/home-shadcn/hooks/AuthProvider';
+import { useAuth } from '@/client/home/hooks/AuthProvider';
 import { toast } from 'sonner';
 
 import { Button } from '@/client/components/ui/button';

+ 1 - 1
src/client/home-shadcn/pages/MemberPage.tsx → src/client/home/pages/MemberPage.tsx

@@ -1,6 +1,6 @@
 import React from 'react';
 import { useNavigate } from 'react-router-dom';
-import { useAuth } from '@/client/home-shadcn/hooks/AuthProvider';
+import { useAuth } from '@/client/home/hooks/AuthProvider';
 import { Button } from '@/client/components/ui/button';
 import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/client/components/ui/card';
 import { Avatar, AvatarFallback, AvatarImage } from '@/client/components/ui/avatar';

+ 1 - 1
src/client/home-shadcn/pages/RegisterPage.tsx → src/client/home/pages/RegisterPage.tsx

@@ -3,7 +3,7 @@ import { useForm } from 'react-hook-form';
 import { zodResolver } from '@hookform/resolvers/zod';
 import { z } from 'zod';
 import { Link, useNavigate } from 'react-router-dom';
-import { useAuth } from '@/client/home-shadcn/hooks/AuthProvider';
+import { useAuth } from '@/client/home/hooks/AuthProvider';
 import { toast } from 'sonner';
 import { authClient } from '@/client/api';
 

+ 0 - 0
src/client/home-shadcn/routes.tsx → src/client/home/routes.tsx


+ 2 - 2
src/client/index.tsx

@@ -1,6 +1,6 @@
 // å¦‚ęžœå½“å‰ę˜ÆåœØ /big äø‹
 if (window.location.pathname.startsWith('/admin')) {
-  import('./admin-shadcn/index')
+  import('./admin/index')
 } else {
-  import('./home-shadcn/index')
+  import('./home/index')
 }