Nenhuma descrição

ddx 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás
.build cab1a856ce fix(build): 优化build-android.js脚本,在创建Cordova项目时指定package ID和生成的APK文件名。 1 mês atrás
.husky 6570b72e8e test:husky,lint-staged 4 meses atrás
config c5c3896d10 config(webpack,mqtt): update mqtt server IP in configuration 1 mês atrás
cypress 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás
mocks 95bf718507 正确拉取身体部位信息并显示在注册页面的过滤区域 4 meses atrás
public fc87d13683 修改配置,支持MSW在浏览器环境下运行;修改注册页面过滤器区域的UI,使正常显示患者类型;修改API,修改为正确的URL path,使能够请求到患者类型 4 meses atrás
py 5cea414245 测试代码,用于模拟访问dcm服务器,看是否能得到dcm文件 2 meses atrás
requirements dd4a1c6c2c 添加初版本的user journey文件 1 mês atrás
src 96e00e61f9 style(image processing): theme background for left/right aside and remove header 1 mês atrás
types 3967ed3a51 在开发环境下,使用变量USE_MSW控制是否使用MSW,不使用MSW的话会直接和后端交互 4 meses atrás
.editorconfig 6b4f365861 initialize project 4 meses atrás
.env.development 3967ed3a51 在开发环境下,使用变量USE_MSW控制是否使用MSW,不使用MSW的话会直接和后端交互 4 meses atrás
.env.production 6b4f365861 initialize project 4 meses atrás
.env.test 6b4f365861 initialize project 4 meses atrás
.eslintignore 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 mês atrás
.gitattributes b03c03997f 使用eslint及其插件规范化代码 4 meses atrás
.gitignore 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 mês atrás
.lintstagedrc.json 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 mês atrás
.prettierrc b03c03997f 使用eslint及其插件规范化代码 4 meses atrás
README.md 02f362802c docs: update README.md with e2e test ,append pre start instructions ,namely start app firstly 1 mês atrás
babel.config.js 6b4f365861 initialize project 4 meses atrás
cypress.config.ts 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás
electron-builder.json 464bb1fc6c 添加和electron打包相关的配置 2 meses atrás
eslint.config.mjs b692ef48cd 应用TypeScript 风格规则 4 meses atrás
main.js 05c77c03b9 修改项目配置,为electron打包做准备 2 meses atrás
package-lock.json 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás
package.json 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás
postcss.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 4 meses atrás
project.config.json 6b4f365861 initialize project 4 meses atrás
tailwind.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 4 meses atrás
tsconfig.json 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás
webpack.config.cypress.js 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 mês atrás

README.md

src文件夹说明

/API 定义和后端交互的API

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

构建说明

在linux arm64下执行h5类型构建

依次执行以下命令:

  • npm i
  • npm run prebuild:arm:linux
  • npm run build:h5

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

  • npm i
  • npm run build:h5
  • npm run build:electron:win

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

  • npm i

  • npm run build:h5

  • npm run prebuild:arm:linux

  • npm run build:electron:linux

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

  • npm i
  • npm run build:h5
  • 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

开发环境

启动 MSW(本地模拟接口)

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

测试

e2e

启动

在执行启动命令之前,需要先启动应用的 H5 端开发模式

  • npm run dev:h5

然后执行测试命令:

  • npm run e2e