From d0d84e61ed2fd44d0960daa94e436a633c557c46 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Sat, 21 Dec 2024 16:27:01 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E6=9B=B4=E6=96=B0=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=E5=8F=8A=E7=99=BB=E5=BD=95UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +- src/assets/core.scss | 2 +- src/assets/index.scss | 20 +- src/components/icons/index.tsx | 444 ++------------------- src/components/icons/logo.tsx | 32 +- src/components/icons/user-avatar.tsx | 1 - src/pages/user/components/form-login.tsx | 23 +- src/pages/user/index.tsx | 3 +- src/pages/user/style.module.scss | 8 +- src/routes/layout/auth-guard.tsx | 3 +- src/routes/layout/dashboard-layout.tsx | 32 +- src/routes/layout/dashboard-navigation.tsx | 37 +- src/routes/routes.tsx | 11 +- tailwind.config.js | 3 +- yarn.lock | 171 +++++--- 15 files changed, 251 insertions(+), 543 deletions(-) diff --git a/package.json b/package.json index b49cea6..244ede7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ai-live", "private": true, - "version": "1.0.2", + "version": "newui-0.0.1", "type": "module", "description": "数字人直播间", "scripts": { @@ -20,7 +20,7 @@ "@dnd-kit/modifiers": "^7.0.0", "@dnd-kit/sortable": "^8.0.0", "ahooks": "^3.8.1", - "antd": "^5.22.1", + "antd": "^5.22.5", "axios": "^1.7.7", "clsx": "^2.1.1", "dayjs": "^1.11.11", diff --git a/src/assets/core.scss b/src/assets/core.scss index 1263292..ceec141 100644 --- a/src/assets/core.scss +++ b/src/assets/core.scss @@ -12,7 +12,7 @@ --brand-color: #43ABFF; --navigation-width: 100vw; --navigation-active-color: #ffe0e0; - --app-header-header: 90px; + --app-header-header: 70px; --container-width: 1440px; } diff --git a/src/assets/index.scss b/src/assets/index.scss index e0a4c3d..9d7b6c9 100644 --- a/src/assets/index.scss +++ b/src/assets/index.scss @@ -25,12 +25,16 @@ body { .navigation-container { //width: var(--navigation-width); background-color: #fff; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + //box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); .nav-item { padding: 0px 20px; - &.active{ - @apply text-blue-500; + color: rgb(90, 90, 90); + font-size: 20px; + + &.active { + color: rgb(19, 19, 19); + font-weight: bold; } } } @@ -39,7 +43,8 @@ body { @apply w-full navigation-container flex justify-between items-center p-basic fixed top-0 inset-x-0 z-10; height: var(--app-header-header); } -.app-content{ + +.app-content { padding-top: var(--app-header-header); } @@ -53,22 +58,21 @@ body { .container { max-width: 90%; - width: var(--container-width,1200px); + width: var(--container-width, 1200px); margin: 0 auto; } -.article-action-icon{ +.article-action-icon { @apply cursor-pointer text-gray-500 hover:text-blue-500 block; } -img{ +img { max-width: 100%; } @media screen and (max-width: 2000px) { :root { line-height: 1.2; - --app-header-header: 70px; } .logo-container { height: 36px; diff --git a/src/components/icons/index.tsx b/src/components/icons/index.tsx index d917c2f..66a2c34 100644 --- a/src/components/icons/index.tsx +++ b/src/components/icons/index.tsx @@ -1,407 +1,25 @@ import React from "react"; -type IconProps = { style?: React.CSSProperties } -export const IconRise = ({style}: IconProps) => { - return ( - - - - ) +type IconProps = { style?: React.CSSProperties; className?: string; } -} -export const IconDown = ({style}: IconProps) => { - return ( - - - - ) - -} -export const IconChecked = ({style}: IconProps) => { - return ( - - - - ) -} -export const IconCheckedFill = ({style}: IconProps) => { - return ( - - - - ) -} - - -export const IconLoading = ({size, color}: { size?: string | number, color?: string; }) => ( - - - - - - - ) - -export const IconQRCode = ({style}: { style?: React.CSSProperties }) => ( - - - - -) - -export const IconQuery = ({style}: { style?: React.CSSProperties }) => ( - +export const IconNavigationArrow = ({style, className}: IconProps) => ( + + - - - - - - - - - - - - - - - - -) -export const IconAiChat = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - + + ) -export const IconAiIndex = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) - -export const IconFileSearch = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - - -) - -export const IconProfile = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) -export const IconInteraction = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) - -export const IconFire = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) - -export const IconAISearch = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) - -export const IconAIQuestion = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) - -export const IconSummary = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) - -export const IconAIPPT = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) -export const IconArticleReview = ({style}: { style?: React.CSSProperties }) => ( - - - - - - - - - - -) -export const IconDataManagement = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - - - - - - - - - - - -) - -export const IconIdCard = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - - - - - - - - - - -) - -export const IconKnowledge = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - - - - - - - - - - -) - -export const IconAudio = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - - - - -) -export const IconSend = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - - - - -) -export const IconSync = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - - - - - - - - - - -) - -export const IconCopy = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconShare = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconDownload = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconDelete = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconAddText = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ( - ( + ) -export const IconAdd = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconPlay = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconLive = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + ) -export const IconEdit = ({style,className}: { style?: React.CSSProperties;className?:string; }) => ( - ( + { return ( - + + d="M28.9241 2.04763C29.2793 1.00838 30.7152 0.976901 31.1363 1.95321L31.1719 2.04823L31.6512 3.44974C31.761 3.77115 31.9385 4.06528 32.1716 4.31227C32.4048 4.55927 32.6882 4.75339 33.0028 4.88154L33.1316 4.92964L34.5332 5.40829C35.5724 5.76342 35.6039 7.19937 34.6282 7.62042L34.5332 7.65605L33.1316 8.1353C32.8101 8.24506 32.5159 8.42251 32.2688 8.65567C32.0217 8.88884 31.8275 9.1723 31.6993 9.48693L31.6512 9.6152L31.1725 11.0173C30.8174 12.0566 29.3814 12.088 28.961 11.1123L28.9241 11.0173L28.4455 9.61579C28.3357 9.29427 28.1583 9.00003 27.9251 8.75292C27.6919 8.50582 27.4085 8.31161 27.0939 8.1834L26.9656 8.1353L25.5641 7.65665C24.5242 7.30152 24.4928 5.86556 25.4691 5.44511L25.5641 5.40829L26.9656 4.92964C27.287 4.81981 27.5811 4.64233 27.8281 4.40916C28.0751 4.176 28.2692 3.89257 28.3974 3.57801L28.4455 3.44974L28.9241 2.04763ZM34.7992 1.07303e-07C34.9103 -1.40135e-07 35.0192 0.0311648 35.1135 0.089953C35.2077 0.148741 35.2836 0.232795 35.3325 0.332562L35.361 0.402044L35.5689 1.01135L36.1787 1.2192C36.2901 1.25702 36.3877 1.32705 36.4592 1.42041C36.5307 1.51376 36.5729 1.62624 36.5804 1.74359C36.5879 1.86094 36.5604 1.97787 36.5013 2.07957C36.4423 2.18128 36.3544 2.26317 36.2488 2.31487L36.1787 2.34337L35.5694 2.55123L35.3616 3.16112C35.3237 3.27243 35.2536 3.36998 35.1602 3.44142C35.0668 3.51286 34.9543 3.55496 34.837 3.56241C34.7197 3.56985 34.6027 3.54229 34.5011 3.48322C34.3994 3.42415 34.3176 3.33623 34.2659 3.2306L34.2374 3.16112L34.0296 2.55182L33.4197 2.34397C33.3083 2.30614 33.2107 2.23611 33.1392 2.14276C33.0677 2.0494 33.0256 1.93693 33.0181 1.81958C33.0105 1.70223 33.038 1.58529 33.0971 1.48359C33.1561 1.38189 33.244 1.3 33.3496 1.2483L33.4197 1.21979L34.029 1.01194L34.2368 0.402044C34.2769 0.284712 34.3526 0.182855 34.4535 0.110754C34.5543 0.0386538 34.6752 -7.43997e-05 34.7992 1.07303e-07Z" + fill="#9C34FE"/> + d="M18.481 20.1202C19.2177 19.3857 19.8018 18.5128 20.2 17.5517C20.5981 16.5906 20.8023 15.5604 20.8009 14.5201C20.8009 10.1463 17.2548 6.6001 12.8809 6.6001C8.50712 6.6001 4.96094 10.1463 4.96094 14.5201C4.96094 16.7073 5.84732 18.6873 7.28084 20.1202" + stroke="black" strokeWidth="2" strokeLinecap="round"/> + + + ) } -export const LogoText = ({style}: { style?: React.CSSProperties, theme?: 'origin' | 'color' }) => { +export const LogoText = ({style, className}: { style?: React.CSSProperties, className?: string }) => { const {appName} = useConfig() return ( -
- - - - - {appName} +
+ + {appName}
) } diff --git a/src/components/icons/user-avatar.tsx b/src/components/icons/user-avatar.tsx index 8737308..9ea2f66 100644 --- a/src/components/icons/user-avatar.tsx +++ b/src/components/icons/user-avatar.tsx @@ -4,7 +4,6 @@ import React from "react"; export const UserAvatar = ({className, style}: { style?: React.CSSProperties; className?: string }) => { return ( - {/* */} () const {sending, countdown, sendCode} = useSmsCode() const onFinish: FormProps['onFinish'] = (values) => { + if(disabled || loading) return if (!values.username || !/^1\d{10}$/.test(values.username)) { setError('账号或密码错误') return @@ -37,7 +38,7 @@ export default function FormLogin() { }; return (
-
欢迎登录
+
欢迎登录
name="basic" style={{maxWidth: 600}} @@ -51,21 +52,17 @@ export default function FormLogin() { autoComplete="off" > name="username"> -
- +
-
- +
0 || sending || !phone ? 'text-gray-400 cursor-not-allowed' : 'text-blue-500 cursor-pointer'}`)} + className={clsx(`text-nowrap mr-1 text-sm ${countdown > 0 || sending || !phone ? 'text-gray-400 cursor-not-allowed' : 'text-blue-500 cursor-pointer'}`)} onClick={() => sendCode(phone)}> {sending ? '发送中...' : (countdown > 0 ? `${Math.ceil(countdown / 1000)} s` : '获取验证码')} @@ -73,10 +70,10 @@ export default function FormLogin() { - + -
{error}
-
+ diff --git a/src/pages/user/index.tsx b/src/pages/user/index.tsx index f30bd9d..b01be06 100644 --- a/src/pages/user/index.tsx +++ b/src/pages/user/index.tsx @@ -2,7 +2,6 @@ import {useNavigate, useSearchParams} from "react-router-dom"; import {useEffect} from "react"; import useAuth from "@/hooks/useAuth.ts"; -import MainBgImage from './components/bg.png' import styles from './style.module.scss' import FormLogin from "./components/form-login.tsx"; @@ -18,7 +17,7 @@ export default function UserIndex(){ return (
{/*

数字人直播间

*/} - + {/**/}
diff --git a/src/pages/user/style.module.scss b/src/pages/user/style.module.scss index e7cb26b..86151fc 100644 --- a/src/pages/user/style.module.scss +++ b/src/pages/user/style.module.scss @@ -1,8 +1,7 @@ .main { @apply py-10; - background-image: url(components/main-bg.jpg); - background-size: 100% 100%; - height: 100vh; + background-color: rgb(244, 247, 252); + height: calc(100vh - var(--app-header-header)); min-height: 500px; align-items: center; display: flex; @@ -24,4 +23,7 @@ padding: 30px 40px; //position: relative; //width: 400px; +} +.loginBox{ + @apply border border-gray-50 bg-gray-50 rounded-3xl mt-2 flex items-center pr-3 pl-1 focus-within:border-gray-300; // focus-within:shadow } \ No newline at end of file diff --git a/src/routes/layout/auth-guard.tsx b/src/routes/layout/auth-guard.tsx index 9d0108d..7e53893 100644 --- a/src/routes/layout/auth-guard.tsx +++ b/src/routes/layout/auth-guard.tsx @@ -13,7 +13,8 @@ const AuthGuard = ({ children }:BasicComponentProps) => { const location = useLocation(); useEffect(() => { - if (isInitialized && !isLoggedIn) { + if (isInitialized && !isLoggedIn && location.pathname !== '/user') { + console.log(location) navigate(`/user?from=${location.pathname}`, { state: { from: location.pathname diff --git a/src/routes/layout/dashboard-layout.tsx b/src/routes/layout/dashboard-layout.tsx index d305f01..ab216ee 100644 --- a/src/routes/layout/dashboard-layout.tsx +++ b/src/routes/layout/dashboard-layout.tsx @@ -15,28 +15,36 @@ import {hidePhone} from "@/util/strings.ts"; type LayoutProps = { children: React.ReactNode } + const NavigationUserContainer = () => { - const {logout,user} = useAuth() + const {logout, user} = useAuth() const navigate = useNavigate() const items: MenuProps['items'] = [ { key: 'profile', - label: '个人中心', + label:
{ + navigate('/history') + }}>视频库
, }, { key: 'logout', - label:
{ - logout().then(()=>navigate('/user')) + label:
{ + logout().then(() => navigate('/user')) }}>退出
, }, ]; + const UserButton = () => (
+ + {user ? {hidePhone(user.nickname)} : ( + 登录 + )} +
) + return (
- -
- - {hidePhone(user?.nickname)} -
-
+ {user ? +
+
: }
) } export const BaseLayout: React.FC = ({children}) => { @@ -44,10 +52,10 @@ export const BaseLayout: React.FC = ({children}) => {
- +
+
-
diff --git a/src/routes/layout/dashboard-navigation.tsx b/src/routes/layout/dashboard-navigation.tsx index adfba02..2c0ff03 100644 --- a/src/routes/layout/dashboard-navigation.tsx +++ b/src/routes/layout/dashboard-navigation.tsx @@ -1,47 +1,52 @@ - import {clsx} from "clsx"; import {NavLink} from "react-router-dom"; +import {IconNavigationArrow} from "@/components/icons"; +import useAuth from "@/hooks/useAuth.ts"; const NavItems = [ { key: 'news', name: '新闻素材', icon: 'news', - path:'/' + path: '/' }, { key: 'video', name: '新闻编辑', icon: 'e', - path:'/edit' + path: '/edit' }, { key: 'create', name: '视频生成', icon: 'ai', - path:'/create' - }, - { - key: 'library', - name: '视频库', - icon: '+', - path:'/library' + path: '/create' }, + // { + // key: 'library', + // name: '视频库', + // icon: '+', + // path:'/library' + // }, { key: 'live', name: '数字人直播间', icon: 'v', - path:'/live' + path: '/live' } ] export function DashboardNavigation() { + const {user} = useAuth() return (
- {NavItems.map((it, idx) => ( - - {it.name} - - ))} + {NavItems.map((it, idx) => (
+ {user ? + {it.name} + :
+ {it.name} +
} + {idx !== NavItems.length - 1 && } +
))}
); } \ No newline at end of file diff --git a/src/routes/routes.tsx b/src/routes/routes.tsx index 314dfd3..f22c697 100644 --- a/src/routes/routes.tsx +++ b/src/routes/routes.tsx @@ -13,10 +13,7 @@ const NewsIndex = React.lazy(() => import("@/pages/news")) const NewsEdit = React.lazy(() => import("@/pages/news/edit.tsx")) const routes: RouteObject[] = [ - { - path: '/user', - element: , - }, + { path: '/', element: , @@ -26,6 +23,10 @@ const routes: RouteObject[] = [ path: '', element: }, + { + path: 'user', + element: , + }, { path: 'edit', element: @@ -35,7 +36,7 @@ const routes: RouteObject[] = [ element: }, { - path: 'library', + path: 'history', element: }, { diff --git a/tailwind.config.js b/tailwind.config.js index 4955aaf..7820d5d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,8 @@ const themeConfig = { colors:{ 'primary':'#7356f6', - 'primary-bg': '#f6f6f6', + 'primary-blue':'rgb(64, 150, 255)', + 'primary-bg': 'rgb(244, 247, 252)', 'active': '#FFE0E0', 'primary-red':'#F5222D', 'primary-red-70':'rgba(245,34,45,0.7)', diff --git a/yarn.lock b/yarn.lock index 2f0e50c..7f1a1c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,10 +22,10 @@ dependencies: "@ctrl/tinycolor" "^3.6.1" -"@ant-design/cssinjs-utils@^1.1.1": - version "1.1.1" - resolved "https://registry.npmmirror.com/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.1.tgz#57abb43671023f937348bd33442862c60ac8e8b2" - integrity sha512-2HAiyGGGnM0es40SxdszeQAU5iWp41wBIInq+ONTCKjlSKOrzQfnw4JDtB8IBmqE6tQaEKwmzTP2LGdt5DSwYQ== +"@ant-design/cssinjs-utils@^1.1.3": + version "1.1.3" + resolved "https://registry.npmmirror.com/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.3.tgz#5dd79126057920a6992d57b38dd84e2c0b707977" + integrity sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg== dependencies: "@ant-design/cssinjs" "^1.21.0" "@babel/runtime" "^7.23.2" @@ -56,10 +56,10 @@ resolved "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz#ed2be7fb4d82ac7e1d45a54a5b06d6cecf8be6f6" integrity sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA== -"@ant-design/icons@^5.5.1": - version "5.5.1" - resolved "https://registry.npmmirror.com/@ant-design/icons/-/icons-5.5.1.tgz#4ff57b2a0d3bafae3d990c2781fd857ead36c935" - integrity sha512-0UrM02MA2iDIgvLatWrj6YTCYe0F/cwXvVE0E2SqGrL7PZireQwgEKTKBisWpZyal5eXZLvuM98kju6YtYne8w== +"@ant-design/icons@^5.5.2": + version "5.5.2" + resolved "https://registry.npmmirror.com/@ant-design/icons/-/icons-5.5.2.tgz#c4567943cc2b7c6dbe9cae68c06ffa35f755dc0d" + integrity sha512-xc53rjVBl9v2BqFxUjZGti/RfdDeA8/6KYglmInM2PNqSXc/WfuGDTifJI/ZsokJK0aeKvOIbXc9y2g8ILAhEA== dependencies: "@ant-design/colors" "^7.0.0" "@ant-design/icons-svg" "^4.4.0" @@ -687,7 +687,7 @@ classnames "^2.3.2" rc-util "^5.24.4" -"@rc-component/trigger@^2.0.0", "@rc-component/trigger@^2.1.1", "@rc-component/trigger@^2.2.5": +"@rc-component/trigger@^2.0.0", "@rc-component/trigger@^2.1.1": version "2.2.5" resolved "https://registry.npmmirror.com/@rc-component/trigger/-/trigger-2.2.5.tgz#5ebe383e563e667b3fa24b6b32afedbab378a92e" integrity sha512-F1EJ4KjFpGAHAjuKvOyZB/6IZDkVx0bHl0M4fQM5wXcmm7lgTgVSSnR3bXwdmS6jOJGHOqfDxIJW3WUvwMIXhQ== @@ -699,6 +699,18 @@ rc-resize-observer "^1.3.1" rc-util "^5.38.0" +"@rc-component/trigger@^2.2.6": + version "2.2.6" + resolved "https://registry.npmmirror.com/@rc-component/trigger/-/trigger-2.2.6.tgz#bfe6602313b3fadd659687746511f813299d5ea4" + integrity sha512-/9zuTnWwhQ3S3WT1T8BubuFTT46kvnXgaERR9f4BTKyn61/wpf/BvbImzYBubzJibU707FxwbKszLlHjcLiv1Q== + dependencies: + "@babel/runtime" "^7.23.2" + "@rc-component/portal" "^1.1.0" + classnames "^2.3.2" + rc-motion "^2.0.0" + rc-resize-observer "^1.3.1" + rc-util "^5.44.0" + "@remix-run/router@1.21.0": version "1.21.0" resolved "https://registry.npmmirror.com/@remix-run/router/-/router-1.21.0.tgz#c65ae4262bdcfe415dbd4f64ec87676e4a56e2b5" @@ -1028,15 +1040,15 @@ ansi-styles@^6.1.0: resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== -antd@^5.22.1: - version "5.22.1" - resolved "https://registry.npmmirror.com/antd/-/antd-5.22.1.tgz#726c9d4465a1f59079ef60896418fcdbb07a796c" - integrity sha512-itq8AZwe3IfawZH6SMM5XdbTz1xXGTTqA7sNN0qpEdxcoTpD5nRsCBAMIy+PhwcWFobgFc6ZlF8d7f8eicn0SQ== +antd@^5.22.5: + version "5.22.5" + resolved "https://registry.npmmirror.com/antd/-/antd-5.22.5.tgz#e959381faca86c984cc853a0ab5cb3f140178336" + integrity sha512-+0UP8w+ULVv2OIzCDVz7j6I0UfH6mMLHSWO6qzpBc+9psOoVQLRbyAE21XnZM/eGrt2MNsEDL5fmlhXL/V8JyQ== dependencies: "@ant-design/colors" "^7.1.0" "@ant-design/cssinjs" "^1.21.1" - "@ant-design/cssinjs-utils" "^1.1.1" - "@ant-design/icons" "^5.5.1" + "@ant-design/cssinjs-utils" "^1.1.3" + "@ant-design/icons" "^5.5.2" "@ant-design/react-slick" "~1.1.2" "@babel/runtime" "^7.25.7" "@ctrl/tinycolor" "^3.6.1" @@ -1044,7 +1056,7 @@ antd@^5.22.1: "@rc-component/mutate-observer" "^1.1.0" "@rc-component/qrcode" "~1.0.0" "@rc-component/tour" "~1.15.1" - "@rc-component/trigger" "^2.2.5" + "@rc-component/trigger" "^2.2.6" classnames "^2.5.1" copy-to-clipboard "^3.3.3" dayjs "^1.11.11" @@ -1053,33 +1065,33 @@ antd@^5.22.1: rc-collapse "~3.9.0" rc-dialog "~9.6.0" rc-drawer "~7.2.0" - rc-dropdown "~4.2.0" - rc-field-form "~2.5.0" + rc-dropdown "~4.2.1" + rc-field-form "~2.7.0" rc-image "~7.11.0" - rc-input "~1.6.3" + rc-input "~1.6.4" rc-input-number "~9.3.0" rc-mentions "~2.17.0" rc-menu "~9.16.0" - rc-motion "^2.9.3" + rc-motion "^2.9.4" rc-notification "~5.6.2" - rc-pagination "~4.3.0" - rc-picker "~4.8.0" + rc-pagination "~5.0.0" + rc-picker "~4.8.3" rc-progress "~4.0.0" rc-rate "~2.13.0" - rc-resize-observer "^1.4.0" + rc-resize-observer "^1.4.1" rc-segmented "~2.5.0" - rc-select "~14.16.3" + rc-select "~14.16.4" rc-slider "~11.1.7" rc-steps "~6.0.1" rc-switch "~4.1.0" - rc-table "~7.48.1" + rc-table "~7.49.0" rc-tabs "~15.4.0" rc-textarea "~1.8.2" rc-tooltip "~6.2.1" rc-tree "~5.10.1" - rc-tree-select "~5.24.4" + rc-tree-select "~5.24.5" rc-upload "~4.8.1" - rc-util "^5.43.0" + rc-util "^5.44.2" scroll-into-view-if-needed "^3.1.0" throttle-debounce "^5.0.2" @@ -2533,10 +2545,20 @@ rc-dropdown@~4.2.0: classnames "^2.2.6" rc-util "^5.17.0" -rc-field-form@~2.5.0: - version "2.5.1" - resolved "https://registry.npmmirror.com/rc-field-form/-/rc-field-form-2.5.1.tgz#30f3c529f86aec6af27589052df9c66cec94ceb4" - integrity sha512-33hunXwynQJyeae7LS3hMGTXNeRBjiPyPYgB0824EbmLHiXC1EBGyUwRh6xjLRy9c+en5WARYN0gJz5+JAqwig== +rc-dropdown@~4.2.1: + version "4.2.1" + resolved "https://registry.npmmirror.com/rc-dropdown/-/rc-dropdown-4.2.1.tgz#44729eb2a4272e0353d31ac060da21e606accb1c" + integrity sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA== + dependencies: + "@babel/runtime" "^7.18.3" + "@rc-component/trigger" "^2.0.0" + classnames "^2.2.6" + rc-util "^5.44.1" + +rc-field-form@~2.7.0: + version "2.7.0" + resolved "https://registry.npmmirror.com/rc-field-form/-/rc-field-form-2.7.0.tgz#22413e793f35bfc1f35b0ec462774d7277f5a399" + integrity sha512-hgKsCay2taxzVnBPZl+1n4ZondsV78G++XVsMIJCAoioMjlMQR9YwAp7JZDIECzIu2Z66R+f4SFIRrO2DjDNAA== dependencies: "@babel/runtime" "^7.18.0" "@rc-component/async-validator" "^5.0.3" @@ -2565,7 +2587,7 @@ rc-input-number@~9.3.0: rc-input "~1.6.0" rc-util "^5.40.1" -rc-input@~1.6.0, rc-input@~1.6.3: +rc-input@~1.6.0: version "1.6.3" resolved "https://registry.npmmirror.com/rc-input/-/rc-input-1.6.3.tgz#f1708fc3d5e68f95cb20faeb3eed1df8543cd444" integrity sha512-wI4NzuqBS8vvKr8cljsvnTUqItMfG1QbJoxovCgL+DX4eVUcHIjVwharwevIxyy7H/jbLryh+K7ysnJr23aWIA== @@ -2574,6 +2596,15 @@ rc-input@~1.6.0, rc-input@~1.6.3: classnames "^2.2.1" rc-util "^5.18.1" +rc-input@~1.6.4: + version "1.6.4" + resolved "https://registry.npmmirror.com/rc-input/-/rc-input-1.6.4.tgz#08d91460f6b75b3fa5294154e89775784c233129" + integrity sha512-lBZhfRD4NSAUW0zOKLUeI6GJuXkxeZYi0hr8VcJgJpyTNOvHw1ysrKWAHcEOAAHj7guxgmWYSi6xWrEdfrSAsA== + dependencies: + "@babel/runtime" "^7.11.1" + classnames "^2.2.1" + rc-util "^5.18.1" + rc-mentions@~2.17.0: version "2.17.0" resolved "https://registry.npmmirror.com/rc-mentions/-/rc-mentions-2.17.0.tgz#d16dd5c8e4db87862c1007f7195b0aea9247cdcd" @@ -2599,7 +2630,7 @@ rc-menu@~9.16.0: rc-overflow "^1.3.1" rc-util "^5.27.0" -rc-motion@^2.0.0, rc-motion@^2.0.1, rc-motion@^2.3.0, rc-motion@^2.3.4, rc-motion@^2.4.3, rc-motion@^2.4.4, rc-motion@^2.6.1, rc-motion@^2.6.2, rc-motion@^2.9.0, rc-motion@^2.9.3: +rc-motion@^2.0.0, rc-motion@^2.0.1, rc-motion@^2.3.0, rc-motion@^2.3.4, rc-motion@^2.4.3, rc-motion@^2.4.4, rc-motion@^2.6.1, rc-motion@^2.6.2, rc-motion@^2.9.0: version "2.9.3" resolved "https://registry.npmmirror.com/rc-motion/-/rc-motion-2.9.3.tgz#b1bdaf816f1ccb3e4b3b0c531c3037a59286379e" integrity sha512-rkW47ABVkic7WEB0EKJqzySpvDqwl60/tdkY7hWP7dYnh5pm0SzJpo54oW3TDUGXV5wfxXFmMkxrzRRbotQ0+w== @@ -2608,6 +2639,15 @@ rc-motion@^2.0.0, rc-motion@^2.0.1, rc-motion@^2.3.0, rc-motion@^2.3.4, rc-motio classnames "^2.2.1" rc-util "^5.43.0" +rc-motion@^2.9.4: + version "2.9.5" + resolved "https://registry.npmmirror.com/rc-motion/-/rc-motion-2.9.5.tgz#12c6ead4fd355f94f00de9bb4f15df576d677e0c" + integrity sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA== + dependencies: + "@babel/runtime" "^7.11.1" + classnames "^2.2.1" + rc-util "^5.44.0" + rc-notification@~5.6.2: version "5.6.2" resolved "https://registry.npmmirror.com/rc-notification/-/rc-notification-5.6.2.tgz#8525b32d49dd96ec974acae61d1d1eabde61463a" @@ -2628,19 +2668,19 @@ rc-overflow@^1.3.1, rc-overflow@^1.3.2: rc-resize-observer "^1.0.0" rc-util "^5.37.0" -rc-pagination@~4.3.0: - version "4.3.0" - resolved "https://registry.npmmirror.com/rc-pagination/-/rc-pagination-4.3.0.tgz#c6022f820aa3a45fd734ae33a2915d39597dce1d" - integrity sha512-UubEWA0ShnroQ1tDa291Fzw6kj0iOeF26IsUObxYTpimgj4/qPCWVFl18RLZE+0Up1IZg0IK4pMn6nB3mjvB7g== +rc-pagination@~5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/rc-pagination/-/rc-pagination-5.0.0.tgz#7633e1f0ff372ad78c03e86bcef78b660374d196" + integrity sha512-QjrPvbAQwps93iluvFM62AEYglGYhWW2q/nliQqmvkTi4PXP4HHoh00iC1Sa5LLVmtWQHmG73fBi2x6H6vFHRg== dependencies: "@babel/runtime" "^7.10.1" classnames "^2.3.2" rc-util "^5.38.0" -rc-picker@~4.8.0: - version "4.8.1" - resolved "https://registry.npmmirror.com/rc-picker/-/rc-picker-4.8.1.tgz#105cfae323bf1db5e9f9e6fdc773ff3250e837de" - integrity sha512-lj9hXXMSkbjFUIhfQh8XH698ybxnoBOfq7pdM1FvfSyDwdFhdQa7dvsIYwo6Uz7Zp1wVkfw5rOJO3MpdWzoHsg== +rc-picker@~4.8.3: + version "4.8.3" + resolved "https://registry.npmmirror.com/rc-picker/-/rc-picker-4.8.3.tgz#06cffd5a2201fc8d274e12f7ee32ea8ba6f3f60f" + integrity sha512-hJ45qoEs4mfxXPAJdp1n3sKwADul874Cd0/HwnsEOE60H+tgiJUGgbOD62As3EG/rFVNS5AWRfBCDJJfmRqOVQ== dependencies: "@babel/runtime" "^7.24.7" "@rc-component/trigger" "^2.0.0" @@ -2677,6 +2717,16 @@ rc-resize-observer@^1.0.0, rc-resize-observer@^1.1.0, rc-resize-observer@^1.3.1, rc-util "^5.38.0" resize-observer-polyfill "^1.5.1" +rc-resize-observer@^1.4.1: + version "1.4.3" + resolved "https://registry.npmmirror.com/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz#4fd41fa561ba51362b5155a07c35d7c89a1ea569" + integrity sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ== + dependencies: + "@babel/runtime" "^7.20.7" + classnames "^2.2.1" + rc-util "^5.44.1" + resize-observer-polyfill "^1.5.1" + rc-segmented@~2.5.0: version "2.5.0" resolved "https://registry.npmmirror.com/rc-segmented/-/rc-segmented-2.5.0.tgz#3b5423adf57459345c77c39c7581fde786a16c11" @@ -2687,7 +2737,7 @@ rc-segmented@~2.5.0: rc-motion "^2.4.4" rc-util "^5.17.0" -rc-select@~14.16.2, rc-select@~14.16.3: +rc-select@~14.16.2: version "14.16.3" resolved "https://registry.npmmirror.com/rc-select/-/rc-select-14.16.3.tgz#cd5395ef724d693a8f782ddd7bcc6253c31c65a9" integrity sha512-51+j6s3fJJJXB7E+B6W1hM4Tjzv1B/Decooz9ilgegDBt3ZAth1b/xMwYCTrT5BbG2e53XACQsyDib2+3Ro1fg== @@ -2700,6 +2750,19 @@ rc-select@~14.16.2, rc-select@~14.16.3: rc-util "^5.16.1" rc-virtual-list "^3.5.2" +rc-select@~14.16.4: + version "14.16.4" + resolved "https://registry.npmmirror.com/rc-select/-/rc-select-14.16.4.tgz#a98840c4cfb96e263c750e59334ea0a2862e04fc" + integrity sha512-jP6qf7+vjnxGvPpfPWbGYfFlSl3h8L2XcD4O7g2GYXmEeBC0mw+nPD7i++OOE8v3YGqP8xtYjRKAWCMLfjgxlw== + dependencies: + "@babel/runtime" "^7.10.1" + "@rc-component/trigger" "^2.1.1" + classnames "2.x" + rc-motion "^2.0.1" + rc-overflow "^1.3.1" + rc-util "^5.16.1" + rc-virtual-list "^3.5.2" + rc-slider@~11.1.7: version "11.1.7" resolved "https://registry.npmmirror.com/rc-slider/-/rc-slider-11.1.7.tgz#3de333b1ec84d53a7bda2f816bb4779423628f09" @@ -2727,10 +2790,10 @@ rc-switch@~4.1.0: classnames "^2.2.1" rc-util "^5.30.0" -rc-table@~7.48.1: - version "7.48.1" - resolved "https://registry.npmmirror.com/rc-table/-/rc-table-7.48.1.tgz#16ee3d82fa17284628d7883933b5d481238ea013" - integrity sha512-Z4mDKjWg+xz/Ezdw6ivWcbqRpaJ0QfCORRoRrlrw65KSGZLK8OcTdacH22/fyGb8L4It/0/9qcMm8VrVAk/WBw== +rc-table@~7.49.0: + version "7.49.0" + resolved "https://registry.npmmirror.com/rc-table/-/rc-table-7.49.0.tgz#f5a4880d9527d2c9e42f5f721b5423e7a1ca475b" + integrity sha512-/FoPLX94muAQOxVpi1jhnpKjOIqUbT81eELQPAzSXOke4ky4oCWYUXOcVpL31ZCO90xScwVSXRd7coqtgtB1Ng== dependencies: "@babel/runtime" "^7.10.1" "@rc-component/context" "^1.4.0" @@ -2772,10 +2835,10 @@ rc-tooltip@~6.2.1: "@rc-component/trigger" "^2.0.0" classnames "^2.3.1" -rc-tree-select@~5.24.4: - version "5.24.4" - resolved "https://registry.npmmirror.com/rc-tree-select/-/rc-tree-select-5.24.4.tgz#6789b8761daf53a8b91b75e9e6c4f720a7e8cc92" - integrity sha512-MzljkSkk7weKOcE853UtYlXB6uyUEzcEQhhpaCwE6jQPbmBUgGiRURuKWpYUnM/dXrwTTlCK969M6Pgjj35MLA== +rc-tree-select@~5.24.5: + version "5.24.5" + resolved "https://registry.npmmirror.com/rc-tree-select/-/rc-tree-select-5.24.5.tgz#a1bf85c7d5e4979880cfb0748bb6bab937ed3483" + integrity sha512-PnyR8LZJWaiEFw0SHRqo4MNQWyyZsyMs8eNmo68uXZWjxc7QqeWcjPPoONN0rc90c3HZqGF9z+Roz+GLzY5GXA== dependencies: "@babel/runtime" "^7.25.7" classnames "2.x" @@ -2811,6 +2874,14 @@ rc-util@^5.0.1, rc-util@^5.16.1, rc-util@^5.17.0, rc-util@^5.18.1, rc-util@^5.2. "@babel/runtime" "^7.18.3" react-is "^18.2.0" +rc-util@^5.44.0, rc-util@^5.44.1, rc-util@^5.44.2: + version "5.44.2" + resolved "https://registry.npmmirror.com/rc-util/-/rc-util-5.44.2.tgz#6bc5db0e96ebdb515eb5977a7371887e5413a6f8" + integrity sha512-uGSk3hpPBLa3/0QAcKhCjgl4SFnhQCJDLvvpoLdbR6KgDuXrujG+dQaUeUvBJr2ZWak1O/9n+cYbJiWmmk95EQ== + dependencies: + "@babel/runtime" "^7.18.3" + react-is "^18.2.0" + rc-virtual-list@^3.14.2, rc-virtual-list@^3.5.1, rc-virtual-list@^3.5.2: version "3.15.0" resolved "https://registry.npmmirror.com/rc-virtual-list/-/rc-virtual-list-3.15.0.tgz#45c5b1ef1363287214e0a3c17af29ee0c3764764"