This commit is contained in:
abearxiong 2024-10-21 23:11:45 +08:00
parent ff90ca3851
commit d4fa0d212c
5 changed files with 286 additions and 253 deletions

1
.npmrc
View File

@ -1,2 +1,3 @@
@abearxiong:registry=https://npm.pkg.github.com
@build:registry=https://npm.xiongxiao.me
@kevisual:registry=https://npm.xiongxiao.me

View File

@ -1,47 +1,50 @@
{
"name": "vite-react",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview"
"deploy": "rsync -avz --delete dist/ light:~/apps/ai/dist",
"preview": "vite preview",
"pub": "npm run build && npm run deploy"
},
"dependencies": {
"@ant-design/icons": "^5.5.1",
"@kevisual/query": "^0.0.6",
"antd": "^5.21.2",
"@kevisual/query": "0.0.7-alpha.1",
"antd": "^5.21.4",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"immer": "^10.1.1",
"lodash-es": "^4.17.21",
"nanoid": "^5.0.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^6.26.2",
"react-router-dom": "^6.26.2",
"react-toastify": "^10.0.5",
"zustand": "^4.5.5"
"react-router": "^6.27.0",
"react-router-dom": "^6.27.0",
"react-toastify": "^10.0.6",
"zustand": "^5.0.0"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@eslint/js": "^9.13.0",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^22.7.4",
"@types/node": "^22.7.7",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.11.1",
"eslint": "^9.13.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.10.0",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.13",
"eslint-plugin-react-refresh": "^0.4.13",
"globals": "^15.11.0",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.14",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"vite": "^5.4.8"
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0",
"vite": "^5.4.9"
}
}

466
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -2,10 +2,13 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
@ -13,12 +16,21 @@
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": "./",
"types": [],
"paths": {
"@/*": [
"src/*"
]
},
/* Linting */
"strict": true,
"noImplicitAny": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true
},
"include": ["src"]
"include": [
"src",
]
}

View File

@ -10,6 +10,7 @@ export default defineConfig({
plugins: [react()],
css: {
postcss: {
// @ts-ignore
plugins: [nesting, tailwindcss, autoprefixer],
},
},
@ -31,7 +32,7 @@ export default defineConfig({
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
'/api/router': {
target: 'ws://localhost:3003',
target: 'ws://localhost:3000',
changeOrigin: true,
ws: true,
rewriteWsOrigin: true,