chore: remove dead code and tune frontend chunks

This commit is contained in:
2026-07-23 09:23:54 +08:00
parent 43ca5a6e36
commit 9f99600a8d
11 changed files with 17 additions and 61 deletions

View File

@@ -1,16 +0,0 @@
import { describe, expect, it } from 'vitest';
import { CLASSROOM_VISIBLE_FIELDS } from './classroom-fields';
describe('classroom visible fields', () => {
it('excludes obsolete course and supervisor metadata', () => {
expect(CLASSROOM_VISIBLE_FIELDS).toEqual([
'name',
'building',
'floor',
'roomType',
'capacity',
'status',
'notes',
]);
});
});

View File

@@ -1,9 +0,0 @@
export const CLASSROOM_VISIBLE_FIELDS = [
'name',
'building',
'floor',
'roomType',
'capacity',
'status',
'notes',
] as const;

View File

@@ -18,13 +18,13 @@ export default defineConfig({
name: 'echarts',
test: /node_modules[\\/](echarts|zrender)[\\/]/,
priority: 20,
maxSize: 300_000,
maxSize: 600_000,
},
{
name: 'antd',
test: /node_modules[\\/](@ant-design|antd|rc-[^\\/]+)[\\/]/,
priority: 10,
maxSize: 300_000,
maxSize: 600_000,
},
],
},