Sen descrición

sw f97f5a374f fix: 修复注册表单状态清理Bug,防止二次注册时使用旧数据 hai 6 días
.build 82889ffd15 test: improve logout e2e tests with Page Objects and data-testid hai 1 semana
.clinerules f6110aade8 docs: update git commit and push workflow in .clinerules/workflows/git-commit-and-push.md hai 1 semana
.github da3d85aebf chore: add GitHub bug report issue template in .github/ISSUE_TEMPLATE/bug_report.yml hai 6 días
.husky 6570b72e8e test:husky,lint-staged hai 4 meses
config 673f9a5324 refactor: 重构 worklistToExam 数据准备逻辑并修复导航按钮进入检查的 bug hai 1 semana
cypress 6cfc225854 feat: 实现年龄和出生日期双向联动功能 close #75 hai 1 semana
docs f97f5a374f fix: 修复注册表单状态清理Bug,防止二次注册时使用旧数据 hai 6 días
mocks fc8b581784 docs: add DR.md interface description document, supplement handler documentation and add login-related handlers hai 1 mes
public fc87d13683 修改配置,支持MSW在浏览器环境下运行;修改注册页面过滤器区域的UI,使正常显示患者类型;修改API,修改为正确的URL path,使能够请求到患者类型 hai 4 meses
py 5cea414245 测试代码,用于模拟访问dcm服务器,看是否能得到dcm文件 hai 2 meses
requirements dd4a1c6c2c 添加初版本的user journey文件 hai 1 mes
src f97f5a374f fix: 修复注册表单状态清理Bug,防止二次注册时使用旧数据 hai 6 días
types 3967ed3a51 在开发环境下,使用变量USE_MSW控制是否使用MSW,不使用MSW的话会直接和后端交互 hai 4 meses
.editorconfig 6b4f365861 initialize project hai 4 meses
.env.development 3967ed3a51 在开发环境下,使用变量USE_MSW控制是否使用MSW,不使用MSW的话会直接和后端交互 hai 4 meses
.env.production 6b4f365861 initialize project hai 4 meses
.env.test 6b4f365861 initialize project hai 4 meses
.eslintignore a80f79e8fa feat: add system exit functionality with cross-platform support hai 2 semanas
.gitattributes b03c03997f 使用eslint及其插件规范化代码 hai 4 meses
.gitignore abfca58fba chore: update .gitignore to ignore some pkg packaging files hai 4 semanas
.lintstagedrc.json 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes hai 1 mes
.prettierrc b03c03997f 使用eslint及其插件规范化代码 hai 4 meses
README.md 3f03848dea feat: add platform detection and ARM64 file copy for Taro build in .build/h5_for_production.js hai 2 semanas
babel.config.js 6b4f365861 initialize project hai 4 meses
cypress.config.ts 2eeb0f3eed chore(e2e): modify cypress e2e tests to no longer depend on web server for hosting h5 static resources hai 3 semanas
electron-builder.json a80f79e8fa feat: add system exit functionality with cross-platform support hai 2 semanas
eslint.config.mjs a80f79e8fa feat: add system exit functionality with cross-platform support hai 2 semanas
main.js 82889ffd15 test: improve logout e2e tests with Page Objects and data-testid hai 1 semana
package-lock.json 965c5e8b8d build(packaging): add pkg and other scripts for executable packaging of static resources and server hai 1 mes
package.json ace5f1e135 docs: update README.md with build instructions and add production build artifact hai 2 semanas
postcss.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 hai 4 meses
preload.js 82889ffd15 test: improve logout e2e tests with Page Objects and data-testid hai 1 semana
project.config.json 6b4f365861 initialize project hai 4 meses
tailwind.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 hai 4 meses
tsconfig.json 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern hai 1 mes
webpack.config.cypress.js 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern hai 1 mes

README.md

src文件夹说明

/API 定义和后端交互的API

内部按模块分组,按模块建文件夹,比如API/patient 表示和patient模块相关的API

构建说明

在linux arm64下执行h5类型构建

依次执行以下命令:

  • npm i
  • npm run h5_for_production

构建Windows平台的Electron应用程序分发包

  • npm i
  • npm run pack:win

构建linux平台的Electron应用程序分发包[arm64]

  • npm i

  • npm run pack:linux

构建H5 production

  • npm i
  • npm run h5_for_production

构建android平台的应用包[Hybrid]

  • npm i
  • npm run h5_for_production
  • npm run build:android

环境要求:

  • 已经安装了android studio,包括cmd-tools
  • 连网。因为在执行 npm run build:android 命令时会从网拉取android项目模板

从模拟器启动打包后的apk:

  • 启动虚拟设备。使用android studio或者通过命令行创建与启动设备
  • 命令 “ adb devices ”查看设备是否已经创建
  • 执行安装命令:

    adb install -r -t .build\dros\platforms\android\app\build\outputs\apk\debug\app-debug.apk
    
  • 执行启动命令

    adb shell am start -n zskk.dros/.MainActivity
    

注意

  1. gradle和java jvm版本匹配
  2. Cordova 和 build-tools版本匹配

相关工具的推荐版本:

  • gradle 9.0
  • jvm 17+
  • build-tools;35.0.0
  • Cordova Android 14.0.1

pkg打包

命令:

npm run pkg

开发环境

启动 MSW(本地模拟接口)

修改.env.development中变量USE_MSW的值为true,然后执行npm run dev:h5命令

测试

e2e

启动

构建用于e2e的静态资源文件

  • node .build/h5_for_local_e2e.js

然后执行测试命令:

  • npx cypress open --e2e

最后人工选择要执行的用例