Skip to content

Commit

Permalink
♻️ refactor(deps): Update
Browse files Browse the repository at this point in the history
  • Loading branch information
web-ppanel committed Dec 13, 2024
1 parent 37d408f commit 19837a1
Show file tree
Hide file tree
Showing 23 changed files with 2,751 additions and 2,338 deletions.
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/announcement/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/coupon/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/document/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/order/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/server/group-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/server/node-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/subscribe/group-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/subscribe/subscribe-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/ticket/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/app/dashboard/user/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
30 changes: 15 additions & 15 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions apps/user/app/(main)/(user)/document/document-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { cn } from '@shadcn/ui/lib/utils';
import { useQuery } from '@tanstack/react-query';
import { AnimatePresence, motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import { useEffect, useId, useRef, useState } from 'react';
import { RefObject, useEffect, useId, useRef, useState } from 'react';

export function DocumentButton({ items }: { items: API.Document[] }) {
const t = useTranslations('document');
Expand Down Expand Up @@ -46,7 +46,7 @@ export function DocumentButton({ items }: { items: API.Document[] }) {
return () => window.removeEventListener('keydown', onKeyDown);
}, [active]);

useOutsideClick(ref, () => setActive(null));
useOutsideClick(ref as RefObject<HTMLDivElement>, () => setActive(null));

return (
<>
Expand Down
4 changes: 2 additions & 2 deletions apps/user/app/(main)/(user)/document/tutorial-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { cn } from '@shadcn/ui/lib/utils';
import { useQuery } from '@tanstack/react-query';
import { AnimatePresence, motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import { useEffect, useId, useRef, useState } from 'react';
import { RefObject, useEffect, useId, useRef, useState } from 'react';

interface Item {
path: string;
Expand Down Expand Up @@ -48,7 +48,7 @@ export function TutorialButton({ items }: { items: Item[] }) {
return () => window.removeEventListener('keydown', onKeyDown);
}, [active]);

useOutsideClick(ref, () => setActive(null));
useOutsideClick(ref as RefObject<HTMLDivElement>, () => setActive(null));

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion apps/user/app/(main)/(user)/ticket/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function Page() {
}, 66);
}, [ticket?.follow?.length]);

const ref = useRef<ProListActions>();
const ref = useRef<ProListActions>(null);
const [create, setCreate] = useState<Partial<API.CreateUserTicketRequest & { open: boolean }>>();

return (
Expand Down
40 changes: 20 additions & 20 deletions apps/user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,40 @@
"start": "next start"
},
"dependencies": {
"@iconify/react": "^5.0.2",
"@iconify/react": "^5.1.0",
"@repo/ui": "workspace:*",
"@shadcn/ui": "workspace:*",
"@stripe/react-stripe-js": "^3.0.0",
"@stripe/stripe-js": "^5.2.0",
"@tanstack/react-query": "^5.61.3",
"@tanstack/react-query-next-experimental": "^5.61.3",
"ahooks": "^3.8.1",
"axios": "^1.7.8",
"@stripe/react-stripe-js": "^3.1.0",
"@stripe/stripe-js": "^5.3.0",
"@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",
"framer-motion": "^11.11.17",
"lucide-react": "^0.461.0",
"mathjs": "^14.0.0",
"next": "^15.0.3",
"next-intl": "^3.25.3",
"framer-motion": "^11.14.4",
"lucide-react": "^0.468.0",
"mathjs": "^14.0.1",
"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",
"qrcode.react": "^4.1.0",
"qrcode.react": "^4.2.0",
"radash": "^12.1.0",
"react": "rc",
"react": "^19.0.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "rc",
"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/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.3.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"@repo/typescript-config": "workspace:*",
"@umijs/openapi": "^1.13.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"lint-staged": "^15.2.11",
"semantic-release": "^24.2.0",
"semantic-release-config-gitmoji": "^1.5.3",
"turbo": "^2.3.2",
"turbo": "^2.3.3",
"typescript": "^5.7.2"
},
"packageManager": "[email protected]",
Expand All @@ -55,7 +55,7 @@
},
"pnpm": {
"overrides": {
"react-is": "rc"
"react-is": "19.0.0"
}
}
}
16 changes: 8 additions & 8 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"./react-internal": "./react-internal.js"
},
"devDependencies": {
"@next/eslint-plugin-next": "^15.0.3",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"eslint": "^9.15.0",
"@next/eslint-plugin-next": "^15.1.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-turbo": "^2.3.2",
"globals": "^15.12.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-turbo": "^2.3.3",
"globals": "^15.13.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
"typescript-eslint": "^8.18.0"
}
}
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"prettier": "^3.4.0",
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-packagejson": "^2.5.6",
"prettier-plugin-sh": "^0.14.0",
Expand Down
Loading

0 comments on commit 19837a1

Please sign in to comment.