暫無描述

sw fdb43ee274 build(win): modify electron packaging target to portable on Windows platform to generate directly runnable exe 1 月之前
.build 065db47969 build: create linux arm packaging script to simplify linux arm packaging process 1 月之前
.github 02a5f8e9f4 chore: add GitHub issue feature template 1 月之前
.husky 6570b72e8e test:husky,lint-staged 4 月之前
config c5c3896d10 config(webpack,mqtt): update mqtt server IP in configuration 1 月之前
cypress f071b8792a test(exam,patient): add test code for read state to enable test environment access to examination;add data-testid attributes to navigation area buttons for testing 1 月之前
mocks fc8b581784 docs: add DR.md interface description document, supplement handler documentation and add login-related handlers 1 月之前
public fc87d13683 修改配置,支持MSW在浏览器环境下运行;修改注册页面过滤器区域的UI,使正常显示患者类型;修改API,修改为正确的URL path,使能够请求到患者类型 4 月之前
py 5cea414245 测试代码,用于模拟访问dcm服务器,看是否能得到dcm文件 2 月之前
requirements dd4a1c6c2c 添加初版本的user journey文件 1 月之前
src 092f5df550 feat(processing): display corresponding dcm image when switching body positions in single grid mode on image processing page 1 月之前
types 3967ed3a51 在开发环境下,使用变量USE_MSW控制是否使用MSW,不使用MSW的话会直接和后端交互 4 月之前
.editorconfig 6b4f365861 initialize project 4 月之前
.env.development 3967ed3a51 在开发环境下,使用变量USE_MSW控制是否使用MSW,不使用MSW的话会直接和后端交互 4 月之前
.env.production 6b4f365861 initialize project 4 月之前
.env.test 6b4f365861 initialize project 4 月之前
.eslintignore 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 月之前
.gitattributes b03c03997f 使用eslint及其插件规范化代码 4 月之前
.gitignore 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 月之前
.lintstagedrc.json 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 月之前
.prettierrc b03c03997f 使用eslint及其插件规范化代码 4 月之前
README.md 02f362802c docs: update README.md with e2e test ,append pre start instructions ,namely start app firstly 1 月之前
babel.config.js 6b4f365861 initialize project 4 月之前
cypress.config.ts f071b8792a test(exam,patient): add test code for read state to enable test environment access to examination;add data-testid attributes to navigation area buttons for testing 1 月之前
electron-builder.json fdb43ee274 build(win): modify electron packaging target to portable on Windows platform to generate directly runnable exe 1 月之前
eslint.config.mjs b692ef48cd 应用TypeScript 风格规则 4 月之前
main.js f2d928bf02 feat(electron): make window borderless, launch maximized and compatible with macOS, Windows and Linux via main.js 1 月之前
package-lock.json f89ffcae3f feat(patient->register): set default value of today for birthday datepicker on registration page 1 月之前
package.json 065db47969 build: create linux arm packaging script to simplify linux arm packaging process 1 月之前
postcss.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 4 月之前
project.config.json 6b4f365861 initialize project 4 月之前
tailwind.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 4 月之前
tsconfig.json 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 月之前
webpack.config.cypress.js 4fb797489e refactor(e2e): restructure test code using Page Object Model (POM) pattern 1 月之前

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