説明なし

ddx abfca58fba chore: update .gitignore to ignore some pkg packaging files 4 週間 前
.build 2ab923eb50 print GH_TOKEN to check the token 1 ヶ月 前
.github 7fd17bc603 chore(build-electron-arm): improve linux electron arm build script to be compatible with ci and local environments 1 ヶ月 前
.husky 6570b72e8e test:husky,lint-staged 4 ヶ月 前
config cf26c94df9 chore(dev-env): configure mqtt information for development environment 1 ヶ月 前
cypress 1b1ec34165 style: format some parts of the code 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 32291a0fc9 chore(electron-packaging): disable signing for electron packaging on windows and include log-related js files and log-path configurations 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 abfca58fba chore: update .gitignore to ignore some pkg packaging files 4 週間 前
.lintstagedrc.json 65912a40af test(e2e): add login success flow with Cypress and data-testid attributes 1 ヶ月 前
.prettierrc b03c03997f 使用eslint及其插件规范化代码 4 ヶ月 前
README.md 82b64a4406 docs: update readme.md with instructions for pkg packaging 4 週間 前
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 32291a0fc9 chore(electron-packaging): disable signing for electron packaging on windows and include log-related js files and log-path configurations 1 ヶ月 前
eslint.config.mjs b692ef48cd 应用TypeScript 风格规则 4 ヶ月 前
main.js 32291a0fc9 chore(electron-packaging): disable signing for electron packaging on windows and include log-related js files and log-path configurations 1 ヶ月 前
package-lock.json 965c5e8b8d build(packaging): add pkg and other scripts for executable packaging of static resources and server 1 ヶ月 前
package.json 48b9021757 ci():linux packing always publish to github release 1 ヶ月 前
pkg.json 965c5e8b8d build(packaging): add pkg and other scripts for executable packaging of static resources and server 1 ヶ月 前
postcss.config.js 1adc21ae9e 初步布局:基于屏幕显示相应区域,基于屏幕调整区域大小 4 ヶ月 前
project.config.json 6b4f365861 initialize project 4 ヶ月 前
server.js 1fbec7a122 feat(logging): implement logging functionality compatible with pkg, electron and browser environments 1 ヶ月 前
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

pkg打包

命令:

npm run pkg

开发环境

启动 MSW(本地模拟接口)

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

测试

e2e

启动

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

  • npm run dev:h5

然后执行测试命令:

  • npm run e2e