- 新增 CenterModal 组件,支持标题、关闭按钮、背景图片等功能 - 添加键盘 ESC 键关闭模态框和页面滚动锁定功能 - 创建桌面端登录、注册和用户信息三个业务模态框 - 集成 lottie-web 动画库并创建 LottiePlayer 组件 - 在样式文件中添加模态框相关的 CSS 类和输入框样式 - 更新桌面入口文件集成登录和用户信息模态框 - 调整桌面控制组件间距和样式配置
30 lines
759 B
TypeScript
30 lines
759 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
import babel from '@rolldown/plugin-babel'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { tanstackRouter } from '@tanstack/router-plugin/vite'
|
|
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
port: 9999,
|
|
host: '0.0.0.0',
|
|
allowedHosts: ['darlena-nonexpiring-cathie.ngrok-free.dev'],
|
|
},
|
|
plugins: [
|
|
tanstackRouter({
|
|
target: 'react',
|
|
autoCodeSplitting: true,
|
|
}),
|
|
tailwindcss(),
|
|
react(),
|
|
babel({ presets: [reactCompilerPreset()] }),
|
|
],
|
|
})
|