♻️ refactor(deps): Update

This commit is contained in:
web@ppanel
2024-12-13 23:42:23 +07:00
parent 37d408f6bd
commit 19837a1032
23 changed files with 2746 additions and 2333 deletions
@@ -21,7 +21,7 @@ import NoticeForm from './notice-form';
export default function Page() {
const t = useTranslations('announcement');
const [loading, setLoading] = useState(false);
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.Announcement, { enable: boolean; search: string }>
+1 -1
View File
@@ -34,7 +34,7 @@ export default function Page() {
return data.data?.list as API.SubscribeGroup[];
},
});
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.Coupon, { group_id: number; query: string }>
action={ref}
+1 -1
View File
@@ -21,7 +21,7 @@ export default function Page() {
const t = useTranslations('document');
const [loading, setLoading] = useState(false);
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.Document, { tag: string; search: string }>
action={ref}
+1 -1
View File
@@ -28,7 +28,7 @@ export default function Page() {
{ value: 5, label: t('status.5'), className: 'bg-green-500' },
];
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
const { data: subscribeList } = useQuery({
queryKey: ['getSubscribeList', 'all'],
@@ -19,7 +19,7 @@ import GroupForm from './group-form';
export default function GroupTable() {
const t = useTranslations('server');
const [loading, setLoading] = useState(false);
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.ServerGroup, any>
@@ -36,7 +36,7 @@ export default function NodeTable() {
},
});
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.Server, { groupId: number; search: string }>
@@ -19,7 +19,7 @@ import GroupForm from './group-form';
const GroupTable = () => {
const t = useTranslations('subscribe');
const [loading, setLoading] = useState(false);
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.SubscribeGroup, any>
@@ -33,7 +33,7 @@ export default function SubscribeTable() {
return data.data?.list as API.SubscribeGroup[];
},
});
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.Subscribe, { group_id: number; query: string }>
action={ref}
+1 -1
View File
@@ -61,7 +61,7 @@ export default function Page() {
}, 66);
}, [ticket?.follow?.length]);
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<>
<ProTable<API.Ticket, { status: number }>
+1 -1
View File
@@ -15,7 +15,7 @@ import UserForm from './user-form';
export default function Page() {
const t = useTranslations('user');
const [loading, setLoading] = useState(false);
const ref = useRef<ProTableActions>();
const ref = useRef<ProTableActions>(null);
return (
<ProTable<API.User, any>
+15 -15
View File
@@ -10,34 +10,34 @@
"start": "next start"
},
"dependencies": {
"@iconify/react": "^5.0.2",
"@iconify/react": "^5.1.0",
"@repo/ui": "workspace:*",
"@shadcn/ui": "workspace:*",
"@tanstack/react-query": "^5.61.3",
"@tanstack/react-query-next-experimental": "^5.61.3",
"ahooks": "^3.8.1",
"axios": "^1.7.8",
"@tanstack/react-query": "^5.62.7",
"@tanstack/react-query-next-experimental": "^5.62.7",
"ahooks": "^3.8.4",
"axios": "^1.7.9",
"crypto-js": "^4.2.0",
"mathjs": "^14.0.0",
"mathjs": "^14.0.1",
"nanoid": "^5.0.9",
"next": "^15.0.3",
"next-intl": "^3.25.3",
"next": "^15.1.0",
"next-intl": "^3.26.1",
"next-runtime-env": "^3.2.2",
"next-themes": "^0.4.3",
"next-themes": "^0.4.4",
"nextjs-toploader": "^3.7.15",
"radash": "^12.1.0",
"react": "rc",
"react-dom": "rc",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-turnstile": "^1.1.4",
"universal-cookie": "^7.2.2",
"zustand": "^5.0.1"
"zustand": "^5.0.2"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.7.2"
}
}