forked from wangziqi/gongxue-base
Server: - Add DingTalk attendance import service with SSE progress streaming - Add IntegrationConfig entity & module for multi-tenant DingTalk setup - Add ExpenseType entity & ExpenseTypesModule - Add SeedModule for DB initialization - Add UserDingMapping entity for DingTalk user linkage - Attendance service: import flow with dedup & student auto-mapping - Rooms service: time-range overlap queries - Sync controller/service: DingTalk integration wiring - Permission guard: refactor to pure re-export - Campus scope middleware: tenant-aware filtering Admin UI: - Attendance page: import UI with progress & result summary - All pages: tableStyle/tablePagination standardization - Login page: responsive styling - Sensitive data: useViewSensitive hook for masked viewing - Vite config: path aliases, build optimization - Test infra: vitest config, test utilities Docs: PRD DingTalk batch 1 & 2 design docs
31 lines
668 B
TypeScript
31 lines
668 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3002,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: [
|
|
'dayjs',
|
|
'dayjs/locale/zh-cn',
|
|
'dayjs/plugin/customParseFormat',
|
|
'dayjs/plugin/advancedFormat',
|
|
'dayjs/plugin/weekday',
|
|
'dayjs/plugin/localeData',
|
|
'dayjs/plugin/weekOfYear',
|
|
'dayjs/plugin/weekYear',
|
|
'dayjs/plugin/updateLocale',
|
|
'antd/es/locale/zh_CN',
|
|
],
|
|
},
|
|
});
|