Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions examples/farm-normal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"clean": "farm clean"
},
"dependencies": {
"antd": "^5.19.2",
"antd": "^6.0.0",
"react": "18",
"react-dom": "18"
},
"devDependencies": {
"@farmfe/cli": "^1.0.2",
"@farmfe/core": "^1.3.0",
"@farmfe/plugin-react": "^1.2.0",
"@farmfe/cli": "^1.0.5",
"@farmfe/core": "^1.7.11",
"@farmfe/plugin-react": "^1.2.6",
"@types/react": "18",
"@types/react-dom": "18",
"core-js": "^3.36.1",
"react-refresh": "^0.14.0"
"core-js": "^3.47.0",
"react-refresh": "^0.18.0"
}
}
16 changes: 8 additions & 8 deletions examples/rsbuild-normal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"preview": "rsbuild preview"
},
"dependencies": {
"antd": "^5.19.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"antd": "^6.0.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@rsbuild/core": "1.0.1-beta.1",
"@rsbuild/plugin-react": "1.0.1-beta.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.2"
"@rsbuild/core": "^1.6.9",
"@rsbuild/plugin-react": "^1.4.2",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"typescript": "^5.9.3"
}
}
4 changes: 2 additions & 2 deletions examples/umi-normal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"start": "npm run dev"
},
"dependencies": {
"antd": "^5.19.2",
"umi": "^4.3.6"
"antd": "^6.0.0",
"umi": "^4.6.0"
},
"devDependencies": {
"@types/react": "^18.3.3",
Expand Down
20 changes: 10 additions & 10 deletions examples/vite-normal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"preview": "vite preview"
},
"dependencies": {
"antd": "^5.19.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"antd": "^6.0.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "^5.2.2",
"vite": "^5.3.1"
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/eslint-plugin": "^8.48.0",
"@typescript-eslint/parser": "^8.48.0",
"@vitejs/plugin-react": "^5.1.1",
"typescript": "^5.9.3",
"vite": "^7.2.4"
}
}
40 changes: 20 additions & 20 deletions examples/vite-practice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@8.15.8",
"packageManager": "pnpm@10.23.0",
"scripts": {
"start": "npm run dev",
"dev": "vite",
Expand All @@ -15,32 +15,32 @@
"dependencies": {
"@ant-design/colors": "latest",
"@ant-design/icons": "latest",
"ahooks": "^3",
"antd": "^5",
"ahooks": "^3.9.6",
"antd": "^6.0.0",
"antd-style": "latest",
"dayjs": "latest",
"lodash-es": "latest",
"normalize.css": "latest",
"nprogress": "latest",
"react": "^18",
"react-dom": "^18",
"react-router-dom": "^6"
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router-dom": "^6.30.2"
},
"devDependencies": {
"@antfu/eslint-config": "^2.17.0",
"@eslint-react/eslint-plugin": "^1.5.11",
"@types/node": "^20.12.11",
"@antfu/eslint-config": "^6.2.0",
"@eslint-react/eslint-plugin": "^2.3.7",
"@types/node": "^20.19.25",
"@types/nprogress": "^0.2.3",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^9.2.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite-plugin-pages": "^0.32.1"
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/eslint-plugin": "^8.48.0",
"@typescript-eslint/parser": "^8.48.0",
"@vitejs/plugin-react": "^5.1.1",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"typescript": "^5.9.3",
"vite": "^7.2.4",
"vite-plugin-pages": "^0.33.1"
}
}
2 changes: 1 addition & 1 deletion examples/vite-practice/src/Nprogress.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import nprogress from 'nprogress'
import * as React from 'react'

function Nprogress() {
React.useLayoutEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-practice/src/Privader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import { App } from 'antd'
import { ThemeProvider, createGlobalStyle } from 'antd-style'
import { createGlobalStyle, ThemeProvider } from 'antd-style'
import * as React from 'react'

const GlobalStyle = createGlobalStyle`
html, body {
Expand Down
10 changes: 5 additions & 5 deletions examples/vite-practice/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Skeleton } from 'antd'
import React, { Suspense } from 'react'
import ReactDOM from 'react-dom/client'
import 'normalize.css'
import 'antd/dist/reset.css'
import { Skeleton } from 'antd'
import { BrowserRouter as Router, useRoutes } from 'react-router-dom'
import routes from '~react-pages'
import NProgress from './Nprogress'

import Provider from './Privader'
import NProgress from './Nprogress'
import routes from '~react-pages'
import 'normalize.css'
import 'antd/dist/reset.css'

// eslint-disable-next-line react-refresh/only-export-components
function App() {
Expand Down
6 changes: 3 additions & 3 deletions examples/vite-practice/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useState } from 'react'
import { AntDesignOutlined, GithubFilled, PlusOutlined } from '@ant-design/icons'
import { Button, Divider, Flex, Space, Statistic, Tooltip, Typography } from 'antd'
import { createStyles } from 'antd-style'
import { AntDesignOutlined, GithubFilled, PlusOutlined } from '@ant-design/icons'
import Version from '@/shared/Version'
import { useState } from 'react'
import Brands from '@/shared/Brands'
import Version from '@/shared/Version'

const useStyle = createStyles(
({ token }) => ({
Expand Down
6 changes: 3 additions & 3 deletions examples/vite-practice/src/shared/Brands.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { VersionProps } from '@/shared/Version'
import { PlusOutlined } from '@ant-design/icons'
import { Flex, Tooltip } from 'antd'
import { createStyles } from 'antd-style'
import { PlusOutlined } from '@ant-design/icons'
import reactSVG from '@/assets/react.svg'
import antSVG from '@/assets/antd.svg'
import type { VersionProps } from '@/shared/Version'
import reactSVG from '@/assets/react.svg'
import Version from '@/shared/Version'

const useStyle = createStyles(
Expand Down
4 changes: 2 additions & 2 deletions examples/vite-practice/src/shared/Version.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { version as reactVersion } from 'react'
import { ConfigProvider, Typography, version as antdVersion, theme, version } from 'antd'
import { version as antdVersion, ConfigProvider, theme, Typography, version } from 'antd'
import { useAntdToken } from 'antd-style'
import React, { version as reactVersion } from 'react'

export interface VersionProps {
type?: 'antd' | 'react'
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-practice/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import process from 'node:process'
import { URL, fileURLToPath } from 'node:url'
import { fileURLToPath, URL } from 'node:url'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import Pages from 'vite-plugin-pages'
Expand Down