add 项目运行截图

This commit is contained in:
王鹏
2026-04-10 14:37:23 +08:00
parent a2f5875d1b
commit ef8237d8d1
15 changed files with 2943 additions and 1 deletions

View File

@@ -51,6 +51,89 @@ class Config:
"database": "test",
"user": "root",
"password": "123456"
},
"project_screenshot": {
"project_path": "",
"desktop_path": "C:\\Users\\南音\\Desktop",
"has_front": True,
"bat_folder": "C:\\Users\\南音\\Desktop\\yidaima\\bat",
"show_cmd_window": True,
"code_source_folder": "code",
"code_target_path": "D:\\code",
"scripts": {
"install_server": "run_install_server.bat",
"install_front": "run_install_front.bat",
"install_admin": "run_install_admin.bat",
"run_server": "run_server.bat",
"run_front": "run_front.bat",
"run_admin": "run_admin.bat",
"run_sql": "run_sql.bat"
},
"sql": {
"script_path": "server/db/init.sql"
},
"services": {
"backend": {
"url": "http://localhost:8080",
"health_endpoint": "/actuator/health",
"startup_timeout": 120
},
"front": {
"url": "http://localhost:8082",
"login_url": "http://localhost:8082/#/login",
"startup_timeout": 60
},
"admin": {
"url": "http://localhost:8081",
"login_url": "http://localhost:8081/#/login",
"startup_timeout": 60
}
},
"login": {
"admin": {
"username": "admin",
"password": "admin"
},
"front": {
"username": "2",
"password": "123456"
}
},
"screenshot": {
"output_dir": "./screenshots",
"full_page": True,
"menu_selectors": {
"admin": ".el-menu-item, .el-sub-menu__title",
"front": ".nav-item, .menu-item"
},
"delay": 2000
},
"swiper_images": {
"source_folder": "bg_pic",
"target_subpath": "server/src/main/resources/static/file",
"target_names": ["swiperPicture1.jpg", "swiperPicture2.jpg", "swiperPicture3.jpg"],
"count": 3
},
"login_background": {
"vue_file_subpath": "front/manage_code/src/views/login.vue",
"images": [
"http://img.yidaima.cn/7-dcd4fc1e8d0144aaa064bc282d1af289",
"http://img.yidaima.cn/6-3db67e2e6ff64e018d48282638900a67",
"http://img.yidaima.cn/5-74ee6fe2f0954a8db2574e8f7fbb8ef2",
"http://img.yidaima.cn/4-a926593ba8c444a3984100e99ae322bb",
"http://img.yidaima.cn/3-f91e9a0ed55d45c9aff80a08f554c625",
"http://img.yidaima.cn/2-2bd41cdd57b54b529dc3a139e66233e0",
"http://img.yidaima.cn/1-5a0b7ee2344a46bd987c1cafff19b3ba",
"http://img.yidaima.cn/8-495b9767a2f34197b963a13226d3e1d2",
"http://img.yidaima.cn/10-991483f941914f3d85bf87a4f8748fee",
"http://img.yidaima.cn/11-d274f1d695f7472a8fcd2c8c6238a79e",
"http://img.yidaima.cn/14-0e30653336d849379060ad8c436fe512",
"http://img.yidaima.cn/16-7a58235a2a4040f99e3431c3cac9ea7a",
"http://img.yidaima.cn/17-3406a546b81c412d9e3501cdb0f88b12",
"http://img.yidaima.cn/18-0a2fae1d6634480dabf5471fa86b3623",
"http://img.yidaima.cn/19-107196938e074c92a40b62c60aed18a4"
]
}
}
}
@@ -148,6 +231,10 @@ class Config:
def database_config(self) -> dict:
return self.get("database", {})
@property
def project_screenshot_config(self) -> dict:
return self.get("project_screenshot", {})
# 全局配置实例
_config_instance = None