diff --git a/src/app/admin/(dashboard)/_client/charts.tsx b/src/app/admin/(dashboard)/_client/charts.tsx index bd26810..7e636b1 100644 --- a/src/app/admin/(dashboard)/_client/charts.tsx +++ b/src/app/admin/(dashboard)/_client/charts.tsx @@ -4,23 +4,21 @@ import DashboardChart from './chart' import Image from 'next/image' import soon from '../_assets/coming-soon.svg' import DatePicker from '@/components/date-picker' -import {Card, CardHeader, CardTitle, CardContent} from '@/components/ui/card' +import {Card, CardContent} from '@/components/ui/card' import {Form, FormField} from '@/components/ui/form' import {Input} from '@/components/ui/input' import {zodResolver} from '@hookform/resolvers/zod' import {useForm} from 'react-hook-form' import zod from 'zod' import {merge} from '@/lib/utils' -import mask from '../_assets/Mask group.webp' import {Button} from '@/components/ui/button' -import {useStatus} from '@/lib/states' import {useState} from 'react' -import {useSearchParams} from 'next/navigation' -import {log} from 'console' import {listAccount} from '@/actions/dashboard' -import {ExtraReq, ExtraResp} from '@/lib/api' +import {ExtraResp} from '@/lib/api' import {toast} from 'sonner' import {addDays, format} from 'date-fns' +import {Label} from '@/components/ui/label' + export default function Charts() { const dateStr = '2025-03-05' const dateStrA = '2024-03-05' @@ -80,65 +78,51 @@ export default function Charts() { ) return ( - + - {/* {`Mask */} 动态 IP 套餐 静态 IP 套餐 - - className={merge(`grid grid-cols-3 gap-4 items-start`)} - handler={handler} - form={form} - > - 套餐编号} - className={`grid grid-cols-[70px_1fr] grid-rows-[auto_auto] `} - classNames={{ - message: `col-start-2`, - }} - > - {({field}) => ( - - )} - -
- 时间范围筛选} - className={`grid grid-cols-[100px_1fr] `} - classNames={{ - message: `col-start-2`, - }} - > + className={merge(`flex items-end gap-4 flex-wrap`)} handler={handler} form={form} > +
+ 套餐编号} > {({field}) => ( - + )} - - - - {({field}) => ( - - )} - - +
+
+ +
+ + {({field}) => ( + + )} + + - + + {({field}) => ( + + )} + + +
diff --git a/src/app/admin/(dashboard)/_client/userCenter.tsx b/src/app/admin/(dashboard)/_client/userCenter.tsx index 6db93c6..2003ccb 100644 --- a/src/app/admin/(dashboard)/_client/userCenter.tsx +++ b/src/app/admin/(dashboard)/_client/userCenter.tsx @@ -1,5 +1,5 @@ import Image from 'next/image' -import {Card, CardContent, CardHeader, CardTitle} from '@/components/ui/card' +import {Card, CardContent} from '@/components/ui/card' import {getProfile} from '@/actions/auth' import {format} from 'date-fns' import {CheckCircleIcon, CircleAlertIcon} from 'lucide-react' @@ -23,21 +23,21 @@ async function UserCenter() { const profile = resp.data return ( - - + +

{profile.phone}

{`最后登录:${format(profile.last_login, 'yyyy-MM-dd HH:mm')}`}

{profile.id_token ? ( <> -
+
已实名
diff --git a/src/app/admin/(dashboard)/page.tsx b/src/app/admin/(dashboard)/page.tsx index 3b9eb21..4181cbe 100644 --- a/src/app/admin/(dashboard)/page.tsx +++ b/src/app/admin/(dashboard)/page.tsx @@ -30,16 +30,17 @@ export default async function DashboardPage(props: DashboardPageProps) { return ( {/* banner */} -
- banner image +
+ banner image
-

代理IP资源,先测后买

-

短效/长效/固定IP代理,一站式服务

+

代理IP资源,先测后买

+

短效/长效/固定IP代理,一站式服务

@@ -54,15 +55,19 @@ export default async function DashboardPage(props: DashboardPageProps) { )} {/* 图表 */} - +
{/* 信息 */} - +
+ +
{/* 通知 */} - {initData && ( - - )} +
+ {initData && ( + + )} +
) @@ -75,14 +80,12 @@ type DashboardChartProps = { } function Pins(props: DashboardChartProps) { return ( - <> - +
{/* 短效 */} - + - Mask group - {' '} + Mask group 短效动态套餐 @@ -91,52 +94,49 @@ function Pins(props: DashboardChartProps) {

包时

当日可提取数量 - {props.short_term ? props.short_term : '1'} + {props.short_term ? props.short_term : '1'}

-

包量

+

包量

剩余可提取数量 - {props.short_term_monthly} + {props.short_term_monthly}

{/* 长效 */} - + - Mask group - {' '} + Mask group 长效动态套餐 - {/* {`coming -

敬请期待

*/}
-

包时

+

包时

- 当日可提取数量 - {props.long_term} + 当日可提取数量 + {props.long_term}

-

包量

+

包量

- 剩余可提取数量 - {props.long_term_monthly} + 剩余可提取数量 + {props.long_term_monthly}

{/* 固定 */} - + 固定IP套餐 @@ -145,7 +145,8 @@ function Pins(props: DashboardChartProps) {

敬请期待

- + +
) } @@ -158,17 +159,17 @@ type Props = { } function Announcements(props: Props) { return ( - +
公告 - 查看更多 + 查看更多
{!props.list.length ? ( -
+
coming soon

暂无公告