refactor: reorganize project structure and improve code quality

- Move CI/CD configs to config/ci/ directory
- Reorganize scripts into categorized directories (deployment, monitoring, testing, utils)
- Consolidate documentation into docs/ directory with proper structure
- Update linting and testing configurations
- Remove obsolete test reports and performance summaries
- Add new documentation for code quality tools and contact form security
- Improve project organization and maintainability
- Fix lint-staged config to only lint JS/TS files
- Disable react/react-in-jsx-scope rule for Next.js compatibility
- Ignore scripts and test config directories in ESLint
This commit is contained in:
张翔
2026-03-24 13:38:58 +08:00
parent c06ac08510
commit 498bb3a3c8
62 changed files with 5473 additions and 6498 deletions
-258
View File
@@ -1,258 +0,0 @@
{
"root_group": {
"name": "",
"path": "",
"id": "d41d8cd98f00b204e9800998ecf8427e",
"groups": [],
"checks": [
{
"path": "::status is 200",
"id": "6210a8cd14cd70477eba5c5e4cb3fb5f",
"passes": 1155,
"fails": 0,
"name": "status is 200"
},
{
"fails": 46,
"name": "response time < 500ms",
"path": "::response time < 500ms",
"id": "3e02485a995423a591645f4eee6c60eb",
"passes": 1109
}
]
},
"options": {
"summaryTrendStats": [
"avg",
"min",
"med",
"max",
"p(90)",
"p(95)"
],
"summaryTimeUnit": "",
"noColor": false
},
"state": {
"isStdErrTTY": true,
"testRunDurationMs": 63507.2,
"isStdOutTTY": true
},
"metrics": {
"http_req_duration{expected_response:true}": {
"type": "trend",
"contains": "time",
"values": {
"avg": 141.6202233766235,
"min": 21.278,
"med": 67.652,
"max": 2222.657,
"p(90)": 195.88160000000002,
"p(95)": 318.91259999999994
}
},
"response_time": {
"type": "trend",
"contains": "default",
"values": {
"med": 67.652,
"max": 2222.657,
"p(90)": 195.88160000000002,
"p(95)": 318.91259999999994,
"avg": 141.6202233766235,
"min": 21.278
}
},
"data_received": {
"contains": "data",
"values": {
"count": 152785415,
"rate": 2405796.7443061573
},
"type": "counter"
},
"iterations": {
"type": "counter",
"contains": "default",
"values": {
"count": 1155,
"rate": 18.18691423964527
}
},
"vus_max": {
"contains": "default",
"values": {
"value": 50,
"min": 50,
"max": 50
},
"type": "gauge"
},
"http_req_failed": {
"type": "rate",
"contains": "default",
"values": {
"rate": 0,
"passes": 0,
"fails": 1155
},
"thresholds": {
"rate<0.01": {
"ok": true
}
}
},
"http_req_duration": {
"type": "trend",
"contains": "time",
"values": {
"avg": 141.6202233766235,
"min": 21.278,
"med": 67.652,
"max": 2222.657,
"p(90)": 195.88160000000002,
"p(95)": 318.91259999999994
},
"thresholds": {
"p(99)<1000": {
"ok": false
},
"p(95)<500": {
"ok": true
}
}
},
"http_req_tls_handshaking": {
"type": "trend",
"contains": "time",
"values": {
"avg": 0,
"min": 0,
"med": 0,
"max": 0,
"p(90)": 0,
"p(95)": 0
}
},
"vus": {
"contains": "default",
"values": {
"value": 6,
"min": 6,
"max": 50
},
"type": "gauge"
},
"iteration_duration": {
"type": "trend",
"contains": "time",
"values": {
"med": 2705.034875,
"max": 5450.101458,
"p(90)": 3841.2212584,
"p(95)": 3981.1372037,
"avg": 2662.014878148052,
"min": 1042.699
}
},
"http_req_connecting": {
"type": "trend",
"contains": "time",
"values": {
"p(95)": 0,
"avg": 0.04534025974025974,
"min": 0,
"med": 0,
"max": 1.77,
"p(90)": 0
}
},
"data_sent": {
"type": "counter",
"contains": "data",
"values": {
"rate": 1369.3880378917668,
"count": 86966
}
},
"http_req_waiting": {
"type": "trend",
"contains": "time",
"values": {
"p(95)": 303.6629999999999,
"avg": 134.31635584415588,
"min": 19.557,
"med": 63.993,
"max": 2218.016,
"p(90)": 177.4042
}
},
"errors": {
"values": {
"rate": 0.03982683982683983,
"passes": 46,
"fails": 1109
},
"thresholds": {
"rate<0.01": {
"ok": false
}
},
"type": "rate",
"contains": "default"
},
"http_reqs": {
"type": "counter",
"contains": "default",
"values": {
"count": 1155,
"rate": 18.18691423964527
}
},
"http_req_blocked": {
"type": "trend",
"contains": "time",
"values": {
"avg": 0.07189783549783539,
"min": 0.001,
"med": 0.003,
"max": 3.342,
"p(90)": 0.006,
"p(95)": 0.012
}
},
"http_req_receiving": {
"type": "trend",
"contains": "time",
"values": {
"med": 2.475,
"max": 236.203,
"p(90)": 18.7712,
"p(95)": 29.56339999999998,
"avg": 7.287375757575758,
"min": 1.19
}
},
"http_req_sending": {
"type": "trend",
"contains": "time",
"values": {
"max": 0.619,
"p(90)": 0.018,
"p(95)": 0.025,
"avg": 0.016491774891774825,
"min": 0.003,
"med": 0.01
}
},
"checks": {
"type": "rate",
"contains": "default",
"values": {
"rate": 0.9800865800865801,
"passes": 2264,
"fails": 46
}
}
}
}