- 移除大量无实际效果的冗余配置项 - 新增维护模式拦截逻辑,支持管理员豁免 - 重构登录失败次数限制,从配置动态读取阈值 - 新增站点Logo支持与配置管理 - 优化用户管理页面数据拉取逻辑 - 新增端口批量创建范围模式功能 - 更新依赖包版本与缓存策略
63 lines
1.9 KiB
JSON
63 lines
1.9 KiB
JSON
{
|
|
"name": "idc-backend",
|
|
"version": "2.0.0",
|
|
"description": "IDC设备管理系统后端",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"dev": "nodemon server.js",
|
|
"create-indexes": "node create_indexes.js",
|
|
"check-indexes": "node create_indexes.js check",
|
|
"drop-indexes": "node create_indexes.js drop",
|
|
"lint": "eslint . --ext js --report-unused-disable-directives --max-warnings 0",
|
|
"lint:fix": "eslint . --ext js --fix",
|
|
"format": "prettier --write \"**/*.js\"",
|
|
"format:check": "prettier --check \"**/*.js\"",
|
|
"test": "jest --runInBand",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"test:operation-logs": "jest tests/operationLog.model.test.js tests/operationLogger.test.js tests/operationLogs.api.test.js --runInBand"
|
|
},
|
|
"dependencies": {
|
|
"all": "^0.0.0",
|
|
"axios": "^1.13.6",
|
|
"basic-ftp": "^5.0.3",
|
|
"bcryptjs": "^3.0.3",
|
|
"cors": "^2.8.5",
|
|
"csv-parser": "^3.2.0",
|
|
"csv-writer": "^1.6.0",
|
|
"dayjs": "^1.11.19",
|
|
"dotenv": "^17.2.3",
|
|
"express": "^4.18.2",
|
|
"express-fileupload": "^1.5.2",
|
|
"iconv-lite": "^0.6.3",
|
|
"joi": "^18.0.2",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"multer": "^2.1.1",
|
|
"mysql2": "^3.19.1",
|
|
"node-cron": "^4.2.1",
|
|
"sequelize": "^6.37.8",
|
|
"smb2": "^0.2.2",
|
|
"sqlite3": "^5.1.7",
|
|
"ssh2-sftp-client": "^9.1.0",
|
|
"swagger-jsdoc": "^6.2.8",
|
|
"swagger-ui-express": "^5.0.1",
|
|
"three": "^0.182.0",
|
|
"webdav": "^5.3.1",
|
|
"winston": "^3.19.0",
|
|
"winston-daily-rotate-file": "^5.0.0",
|
|
"xlsx": "^0.18.5"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^9.39.2",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.5.0",
|
|
"jest": "^29.7.0",
|
|
"nodemon": "^3.1.14",
|
|
"prettier": "^3.8.1",
|
|
"supertest": "^7.1.4"
|
|
}
|
|
}
|