feat: add configuration management system
This commit is contained in:
@@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user