feat: add configuration management system

This commit is contained in:
张翔
2026-03-06 12:05:51 +08:00
parent 66c868de03
commit c7686bf1a3
4 changed files with 173 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
export const formData = {
valid: {
name: '测试用户',
email: 'test@example.com',
phone: '13800138000',
message: '这是一条测试消息'
},
invalid: {
email: 'invalid-email',
phone: '123',
empty: ''
}
};
export const performanceThresholds = {
loadTime: 3000,
domContentLoaded: 2000,
firstContentfulPaint: 1500,
largestContentfulPaint: 2500,
cumulativeLayoutShift: 0.1,
firstInputDelay: 100
};
export const accessibilityThresholds = {
score: 80,
maxViolations: 5
};
export const seoThresholds = {
score: 80,
minTitleLength: 10,
maxTitleLength: 60,
minDescriptionLength: 50,
maxDescriptionLength: 160
};