web-core-tcm 0.0.25 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +134 -0
  2. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +70 -0
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +14 -0
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +6 -0
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +10 -0
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +136 -0
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +7 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +164 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +6 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +75 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +8 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +35 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +42 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +17 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +156 -0
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +349 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +39 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +72 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +551 -0
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +159 -0
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +58 -0
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +350 -0
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +25 -0
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +145 -0
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +110 -0
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +107 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +24 -0
  28. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +556 -0
  29. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +36 -0
  30. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +26 -0
  31. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +55 -0
  32. package/dist/node_modules/alova/dist/alova.esm.js +414 -0
  33. package/dist/node_modules/alova/dist/clienthook/index.esm.js +89 -0
  34. package/dist/node_modules/builder-pattern/dist/index.js +22 -0
  35. package/dist/node_modules/jwt-decode/build/esm/index.js +52 -0
  36. package/dist/node_modules/pinyin/lib/esm/pinyin.js +242260 -0
  37. package/dist/node_modules/punycode/punycode.es6.js +139 -0
  38. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
  39. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +4 -0
  40. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +4 -0
  41. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +16 -0
  42. package/dist/src/api/algorithm/index.d.ts +10 -0
  43. package/dist/src/api/algorithm/index.js +62 -0
  44. package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +13 -0
  45. package/dist/src/api/algorithm/inquiriesAlgorithm.js +9 -0
  46. package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +2 -0
  47. package/dist/src/api/algorithm/inspectionsAlgorithm.js +10 -0
  48. package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +2 -0
  49. package/dist/src/api/algorithm/lisemsAlgorithm.js +15 -0
  50. package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +4 -0
  51. package/dist/src/api/algorithm/pulsationsAlgorithm.js +8 -0
  52. package/dist/src/api/authorization/alova/apiDefinitions.d.ts +21 -0
  53. package/dist/src/api/authorization/alova/apiDefinitions.js +9 -0
  54. package/dist/src/api/authorization/alova/createApis.d.ts +10 -0
  55. package/dist/src/api/authorization/alova/createApis.js +51 -0
  56. package/dist/src/api/authorization/alova/implement/authorization.d.ts +4 -0
  57. package/dist/src/api/authorization/alova/implement/authorization.js +15 -0
  58. package/dist/src/api/authorization/alova/index.d.ts +5 -0
  59. package/dist/src/api/authorization/alova/index.js +18 -0
  60. package/dist/src/api/authorization/authorization.d.ts +8 -0
  61. package/dist/src/api/authorization/authorization.js +16 -0
  62. package/dist/src/api/authorization/index.js +9 -0
  63. package/dist/src/api/check/alova/apiDefinitions.d.ts +28 -0
  64. package/dist/src/api/check/alova/apiDefinitions.js +16 -0
  65. package/dist/src/api/check/alova/createApis.d.ts +10 -0
  66. package/dist/src/api/check/alova/createApis.js +51 -0
  67. package/dist/src/api/check/alova/implement/check.d.ts +27 -0
  68. package/dist/src/api/check/alova/implement/check.js +119 -0
  69. package/dist/src/api/check/alova/index.d.ts +5 -0
  70. package/dist/src/api/check/alova/index.js +21 -0
  71. package/dist/src/api/check/check.d.ts +54 -0
  72. package/dist/src/api/check/check.js +131 -0
  73. package/dist/src/api/check/index.js +11 -0
  74. package/dist/src/api/config/alova/index.d.ts +5 -0
  75. package/dist/src/api/config/alova/index.js +55 -0
  76. package/dist/src/api/config/index.d.ts +23 -0
  77. package/dist/src/api/config/index.js +106 -0
  78. package/dist/src/api/device/device.d.ts +5 -0
  79. package/dist/src/api/device/device.js +46 -0
  80. package/dist/src/api/doctor/alova/apiDefinitions.d.ts +26 -0
  81. package/dist/src/api/doctor/alova/apiDefinitions.js +14 -0
  82. package/dist/src/api/doctor/alova/createApis.d.ts +10 -0
  83. package/dist/src/api/doctor/alova/createApis.js +51 -0
  84. package/dist/src/api/doctor/alova/implement/doctor.d.ts +7 -0
  85. package/dist/src/api/doctor/alova/implement/doctor.js +42 -0
  86. package/dist/src/api/doctor/alova/index.d.ts +5 -0
  87. package/dist/src/api/doctor/alova/index.js +20 -0
  88. package/dist/src/api/doctor/doctor.d.ts +22 -0
  89. package/dist/src/api/doctor/doctor.js +29 -0
  90. package/dist/src/api/doctor/index.js +9 -0
  91. package/dist/src/api/metric/implement/metric.d.ts +24 -0
  92. package/dist/src/api/metric/implement/metric.js +80 -0
  93. package/dist/src/api/metric/index.js +6 -0
  94. package/dist/src/api/metric/metric.d.ts +28 -0
  95. package/dist/src/api/metric/metric.js +75 -0
  96. package/dist/src/api/oauth/alova/apiDefinitions.d.ts +24 -0
  97. package/dist/src/api/oauth/alova/apiDefinitions.js +12 -0
  98. package/dist/src/api/oauth/alova/createApis.d.ts +10 -0
  99. package/dist/src/api/oauth/alova/createApis.js +51 -0
  100. package/dist/src/api/oauth/alova/implement/oauth.d.ts +4 -0
  101. package/dist/src/api/oauth/alova/implement/oauth.js +15 -0
  102. package/dist/src/api/oauth/alova/index.d.ts +5 -0
  103. package/dist/src/api/oauth/alova/index.js +17 -0
  104. package/dist/src/api/oauth/index.js +9 -0
  105. package/dist/src/api/oauth/oauth.d.ts +7 -0
  106. package/dist/src/api/oauth/oauth.js +16 -0
  107. package/dist/src/api/outpatient/alova/apiDefinitions.d.ts +25 -0
  108. package/dist/src/api/outpatient/alova/apiDefinitions.js +13 -0
  109. package/dist/src/api/outpatient/alova/createApis.d.ts +10 -0
  110. package/dist/src/api/outpatient/alova/createApis.js +51 -0
  111. package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +10 -0
  112. package/dist/src/api/outpatient/alova/implement/outpatient.js +71 -0
  113. package/dist/src/api/outpatient/alova/index.d.ts +5 -0
  114. package/dist/src/api/outpatient/alova/index.js +21 -0
  115. package/dist/src/api/outpatient/index.js +11 -0
  116. package/dist/src/api/outpatient/outpatient.d.ts +39 -0
  117. package/dist/src/api/outpatient/outpatient.js +45 -0
  118. package/dist/src/api/patient/alova/apiDefinitions.d.ts +39 -0
  119. package/dist/src/api/patient/alova/apiDefinitions.js +27 -0
  120. package/dist/src/api/patient/alova/createApis.d.ts +10 -0
  121. package/dist/src/api/patient/alova/createApis.js +51 -0
  122. package/dist/src/api/patient/alova/implement/meta.d.ts +113 -0
  123. package/dist/src/api/patient/alova/implement/meta.js +404 -0
  124. package/dist/src/api/patient/alova/implement/patient.d.ts +22 -0
  125. package/dist/src/api/patient/alova/implement/patient.js +72 -0
  126. package/dist/src/api/patient/alova/index.d.ts +5 -0
  127. package/dist/src/api/patient/alova/index.js +22 -0
  128. package/dist/src/api/patient/core.d.ts +50 -0
  129. package/dist/src/api/patient/core.js +109 -0
  130. package/dist/src/api/patient/index.js +46 -0
  131. package/dist/src/api/patient/meta.d.ts +238 -0
  132. package/dist/src/api/patient/meta.js +454 -0
  133. package/dist/src/api/patient/patient.d.ts +43 -0
  134. package/dist/src/api/patient/patient.js +42 -0
  135. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +27 -0
  136. package/dist/src/api/prescription/alova/apiDefinitions.js +15 -0
  137. package/dist/src/api/prescription/alova/createApis.d.ts +10 -0
  138. package/dist/src/api/prescription/alova/createApis.js +51 -0
  139. package/dist/src/api/prescription/alova/implement/herbal.d.ts +15 -0
  140. package/dist/src/api/prescription/alova/implement/herbal.js +54 -0
  141. package/dist/src/api/prescription/alova/implement/prescription.d.ts +15 -0
  142. package/dist/src/api/prescription/alova/implement/prescription.js +49 -0
  143. package/dist/src/api/prescription/alova/index.d.ts +5 -0
  144. package/dist/src/api/prescription/alova/index.js +20 -0
  145. package/dist/src/api/prescription/herbal.d.ts +19 -0
  146. package/dist/src/api/prescription/herbal.js +34 -0
  147. package/dist/src/api/prescription/index.js +13 -0
  148. package/dist/src/api/prescription/prescription.d.ts +26 -0
  149. package/dist/src/api/prescription/prescription.js +49 -0
  150. package/dist/src/api/scientist/alova/apiDefinitions.d.ts +25 -0
  151. package/dist/src/api/scientist/alova/apiDefinitions.js +13 -0
  152. package/dist/src/api/scientist/alova/createApis.d.ts +10 -0
  153. package/dist/src/api/scientist/alova/createApis.js +51 -0
  154. package/dist/src/api/scientist/alova/implement/scientist.d.ts +6 -0
  155. package/dist/src/api/scientist/alova/implement/scientist.js +35 -0
  156. package/dist/src/api/scientist/alova/index.d.ts +6 -0
  157. package/dist/src/api/scientist/alova/index.js +21 -0
  158. package/dist/src/api/scientist/index.js +9 -0
  159. package/dist/src/api/scientist/scientist.d.ts +20 -0
  160. package/dist/src/api/scientist/scientist.js +37 -0
  161. package/dist/src/components/models.d.ts +7 -0
  162. package/dist/src/index.js +36 -0
  163. package/dist/src/pages/LoginPage.vue.d.ts +2 -0
  164. package/dist/src/proto/types/Images_pb.d.ts +34 -0
  165. package/dist/src/proto/types/Images_pb.js +10 -0
  166. package/dist/src/proto/types/WaveMap_pb.d.ts +48 -0
  167. package/dist/src/proto/types/WaveMap_pb.js +10 -0
  168. package/dist/src/router/index.d.ts +2 -0
  169. package/dist/src/router/routes.d.ts +3 -0
  170. package/dist/src/util/RichTextUtil.d.ts +1 -0
  171. package/dist/src/util/RichTextUtil.js +6 -0
  172. package/dist/src/util/datetime.d.ts +5 -0
  173. package/dist/src/util/export.d.ts +4 -0
  174. package/dist/src/util/helper.d.ts +65 -0
  175. package/dist/src/util/helper.js +46 -0
  176. package/dist/src/util/image.d.ts +2 -0
  177. package/dist/src/util/image.js +17 -0
  178. package/dist/src/util/number.d.ts +12 -0
  179. package/dist/src/util/s256.d.ts +2 -0
  180. package/dist/src/util/secret.d.ts +10 -0
  181. package/dist/src/util/string.d.ts +21 -0
  182. package/dist/src/util/string.js +10 -0
  183. package/package.json +5 -2
  184. package/.editorconfig +0 -7
  185. package/.github/workflows/test.yml +0 -29
  186. package/.prettierrc.json +0 -5
  187. package/.vscode/extensions.json +0 -15
  188. package/.vscode/settings.json +0 -9
  189. package/eslint.config.js +0 -83
  190. package/index.html +0 -24
  191. package/postcss.config.js +0 -29
  192. package/quasar.config.ts +0 -233
  193. package/src/App.vue +0 -7
  194. package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
  195. package/src/api/algorithm/index.ts +0 -50
  196. package/src/api/algorithm/inquiriesAlgorithm.ts +0 -16
  197. package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
  198. package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
  199. package/src/api/algorithm/pulsationsAlgorithm.ts +0 -8
  200. package/src/api/authorization/alova/apiDefinitions.ts +0 -23
  201. package/src/api/authorization/alova/createApis.ts +0 -114
  202. package/src/api/authorization/alova/globals.d.ts +0 -394
  203. package/src/api/authorization/alova/implement/authorization.ts +0 -14
  204. package/src/api/authorization/alova/index.ts +0 -22
  205. package/src/api/authorization/authorization.ts +0 -16
  206. package/src/api/check/alova/apiDefinitions.ts +0 -30
  207. package/src/api/check/alova/createApis.ts +0 -114
  208. package/src/api/check/alova/globals.d.ts +0 -1257
  209. package/src/api/check/alova/implement/check.ts +0 -165
  210. package/src/api/check/alova/index.ts +0 -22
  211. package/src/api/check/check.ts +0 -217
  212. package/src/api/config/alova/index.ts +0 -71
  213. package/src/api/config/index.ts +0 -132
  214. package/src/api/device/device.js +0 -58
  215. package/src/api/doctor/alova/apiDefinitions.ts +0 -28
  216. package/src/api/doctor/alova/createApis.ts +0 -114
  217. package/src/api/doctor/alova/globals.d.ts +0 -559
  218. package/src/api/doctor/alova/implement/doctor.ts +0 -51
  219. package/src/api/doctor/alova/index.ts +0 -23
  220. package/src/api/doctor/doctor.ts +0 -53
  221. package/src/api/metric/implement/metric.ts +0 -108
  222. package/src/api/metric/metric.ts +0 -114
  223. package/src/api/oauth/alova/apiDefinitions.ts +0 -26
  224. package/src/api/oauth/alova/createApis.ts +0 -114
  225. package/src/api/oauth/alova/globals.d.ts +0 -460
  226. package/src/api/oauth/alova/implement/oauth.ts +0 -24
  227. package/src/api/oauth/alova/index.ts +0 -21
  228. package/src/api/oauth/oauth.ts +0 -19
  229. package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
  230. package/src/api/outpatient/alova/createApis.ts +0 -114
  231. package/src/api/outpatient/alova/globals.d.ts +0 -685
  232. package/src/api/outpatient/alova/implement/outpatient.ts +0 -91
  233. package/src/api/outpatient/alova/index.ts +0 -22
  234. package/src/api/outpatient/outpatient.ts +0 -67
  235. package/src/api/patient/alova/apiDefinitions.ts +0 -41
  236. package/src/api/patient/alova/createApis.ts +0 -114
  237. package/src/api/patient/alova/globals.d.ts +0 -1690
  238. package/src/api/patient/alova/implement/meta.ts +0 -517
  239. package/src/api/patient/alova/implement/patient.ts +0 -99
  240. package/src/api/patient/alova/index.ts +0 -22
  241. package/src/api/patient/core.ts +0 -133
  242. package/src/api/patient/meta.ts +0 -570
  243. package/src/api/patient/patient.ts +0 -98
  244. package/src/api/prescription/alova/apiDefinitions.ts +0 -29
  245. package/src/api/prescription/alova/createApis.ts +0 -114
  246. package/src/api/prescription/alova/globals.d.ts +0 -968
  247. package/src/api/prescription/alova/implement/herbal.ts +0 -68
  248. package/src/api/prescription/alova/implement/prescription.ts +0 -62
  249. package/src/api/prescription/alova/index.ts +0 -22
  250. package/src/api/prescription/herbal.ts +0 -51
  251. package/src/api/prescription/prescription.ts +0 -76
  252. package/src/api/scientist/alova/apiDefinitions.ts +0 -27
  253. package/src/api/scientist/alova/createApis.ts +0 -114
  254. package/src/api/scientist/alova/globals.d.ts +0 -447
  255. package/src/api/scientist/alova/implement/scientist.ts +0 -40
  256. package/src/api/scientist/alova/index.ts +0 -24
  257. package/src/api/scientist/scientist.ts +0 -49
  258. package/src/assets/quasar-logo-vertical.svg +0 -15
  259. package/src/boot/.gitkeep +0 -0
  260. package/src/components/ExampleComponent.vue +0 -37
  261. package/src/components/models.ts +0 -8
  262. package/src/css/app.scss +0 -1
  263. package/src/css/quasar.variables.scss +0 -25
  264. package/src/env.d.ts +0 -7
  265. package/src/layouts/UserLayout.vue +0 -108
  266. package/src/pages/LoginPage.vue +0 -29
  267. package/src/proto/Images.proto +0 -7
  268. package/src/proto/WaveMap.proto +0 -10
  269. package/src/proto/types/Images_pb.ts +0 -48
  270. package/src/proto/types/WaveMap_pb.ts +0 -59
  271. package/src/router/index.ts +0 -37
  272. package/src/router/routes.ts +0 -14
  273. package/src/util/RichTextUtil.ts +0 -5
  274. package/src/util/datetime.ts +0 -43
  275. package/src/util/export.ts +0 -46
  276. package/src/util/helper.ts +0 -159
  277. package/src/util/image.ts +0 -28
  278. package/src/util/number.ts +0 -146
  279. package/src/util/s256.js +0 -27
  280. package/src/util/secret.ts +0 -60
  281. package/src/util/string.ts +0 -121
  282. package/tsconfig.json +0 -7
  283. /package/{public → dist}/favicon.ico +0 -0
  284. /package/{public → dist}/icons/favicon-128x128.png +0 -0
  285. /package/{public → dist}/icons/favicon-16x16.png +0 -0
  286. /package/{public → dist}/icons/favicon-32x32.png +0 -0
  287. /package/{public → dist}/icons/favicon-96x96.png +0 -0
  288. /package/{src/api/authorization/alova/implement/index.ts → dist/src/api/authorization/alova/implement/index.d.ts} +0 -0
  289. /package/{src/api/authorization/index.ts → dist/src/api/authorization/index.d.ts} +0 -0
  290. /package/{src/api/check/alova/implement/index.ts → dist/src/api/check/alova/implement/index.d.ts} +0 -0
  291. /package/{src/api/check/index.ts → dist/src/api/check/index.d.ts} +0 -0
  292. /package/{src/api/doctor/alova/implement/index.ts → dist/src/api/doctor/alova/implement/index.d.ts} +0 -0
  293. /package/{src/api/doctor/index.ts → dist/src/api/doctor/index.d.ts} +0 -0
  294. /package/{src/api/index.ts → dist/src/api/index.d.ts} +0 -0
  295. /package/{src/api/metric/implement/index.ts → dist/src/api/metric/implement/index.d.ts} +0 -0
  296. /package/{src/api/metric/index.ts → dist/src/api/metric/index.d.ts} +0 -0
  297. /package/{src/api/oauth/alova/implement/index.ts → dist/src/api/oauth/alova/implement/index.d.ts} +0 -0
  298. /package/{src/api/oauth/index.ts → dist/src/api/oauth/index.d.ts} +0 -0
  299. /package/{src/api/outpatient/alova/implement/index.ts → dist/src/api/outpatient/alova/implement/index.d.ts} +0 -0
  300. /package/{src/api/outpatient/index.ts → dist/src/api/outpatient/index.d.ts} +0 -0
  301. /package/{src/api/patient/alova/implement/index.ts → dist/src/api/patient/alova/implement/index.d.ts} +0 -0
  302. /package/{src/api/patient/index.ts → dist/src/api/patient/index.d.ts} +0 -0
  303. /package/{src/api/prescription/alova/implement/index.ts → dist/src/api/prescription/alova/implement/index.d.ts} +0 -0
  304. /package/{src/api/prescription/index.ts → dist/src/api/prescription/index.d.ts} +0 -0
  305. /package/{src/api/scientist/alova/implement/index.ts → dist/src/api/scientist/alova/implement/index.d.ts} +0 -0
  306. /package/{src/api/scientist/index.ts → dist/src/api/scientist/index.d.ts} +0 -0
  307. /package/{src/index.ts → dist/src/index.d.ts} +0 -0
  308. /package/{src/proto/index.ts → dist/src/proto/index.d.ts} +0 -0
@@ -0,0 +1,48 @@
1
+ import { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2';
2
+ import { Message } from '@bufbuild/protobuf';
3
+ /**
4
+ * Describes the file WaveMap.proto.
5
+ */
6
+ export declare const file_WaveMap: GenFile;
7
+ /**
8
+ * @generated from message Wave
9
+ */
10
+ export type Wave = Message<'Wave'> & {
11
+ /**
12
+ * 单个数组(对应 number[])
13
+ *
14
+ * @generated from field: repeated double values = 1;
15
+ */
16
+ values: number[];
17
+ };
18
+ /**
19
+ * Describes the message Wave.
20
+ * Use `create(WaveSchema)` to create a new message.
21
+ */
22
+ export declare const WaveSchema: GenMessage<Wave>;
23
+ /**
24
+ * @generated from message WaveMap
25
+ */
26
+ export type WaveMap = Message<'WaveMap'> & {
27
+ /**
28
+ * 对应 origin: {[key: string]: number[]}
29
+ *
30
+ * @generated from field: map<string, Wave> origin = 1;
31
+ */
32
+ origin: {
33
+ [key: string]: Wave;
34
+ };
35
+ /**
36
+ * 对应 smooth: {[key: string]: number[]}
37
+ *
38
+ * @generated from field: map<string, Wave> smooth = 2;
39
+ */
40
+ smooth: {
41
+ [key: string]: Wave;
42
+ };
43
+ };
44
+ /**
45
+ * Describes the message WaveMap.
46
+ * Use `create(WaveMapSchema)` to create a new message.
47
+ */
48
+ export declare const WaveMapSchema: GenMessage<WaveMap>;
@@ -0,0 +1,10 @@
1
+ import { fileDesc as d } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js";
2
+ import { messageDesc as A } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js";
3
+ const o = /* @__PURE__ */ d(
4
+ "Cg1XYXZlTWFwLnByb3RvIhYKBFdhdmUSDgoGdmFsdWVzGAEgAygBIsEBCgdXYXZlTWFwEiQKBm9yaWdpbhgBIAMoCzIULldhdmVNYXAuT3JpZ2luRW50cnkSJAoGc21vb3RoGAIgAygLMhQuV2F2ZU1hcC5TbW9vdGhFbnRyeRo0CgtPcmlnaW5FbnRyeRILCgNrZXkYASABKAkSFAoFdmFsdWUYAiABKAsyBS5XYXZlOgI4ARo0CgtTbW9vdGhFbnRyeRILCgNrZXkYASABKAkSFAoFdmFsdWUYAiABKAsyBS5XYXZlOgI4AWIGcHJvdG8z"
5
+ ), m = /* @__PURE__ */ A(o, 0), F = /* @__PURE__ */ A(o, 1);
6
+ export {
7
+ F as WaveMapSchema,
8
+ m as WaveSchema,
9
+ o as file_WaveMap
10
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('@quasar/app-vite').RouteCallback;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { RouteRecordRaw } from 'vue-router';
2
+ declare const routes: RouteRecordRaw[];
3
+ export default routes;
@@ -0,0 +1 @@
1
+ export declare function extractPlainText(text: string): string;
@@ -0,0 +1,6 @@
1
+ function n(t) {
2
+ return new DOMParser().parseFromString(t, "text/html").body.textContent || "";
3
+ }
4
+ export {
5
+ n as extractPlainText
6
+ };
@@ -0,0 +1,5 @@
1
+ export declare function getStartOfDay(daysAgo?: number): number;
2
+ export declare function getTimestamp(value: string): string;
3
+ export declare function getDateTimeStr(timestamp: string): string;
4
+ export declare function getDateStr(timestamp: string): string;
5
+ export declare function getTimeStr(timestamp: string): string;
@@ -0,0 +1,4 @@
1
+ declare function pulsation2csv(data: {
2
+ [key: string]: number[];
3
+ }): void;
4
+ export { pulsation2csv };
@@ -0,0 +1,65 @@
1
+ /** 平台类型 */
2
+ type Platform = 'electron' | 'web';
3
+ /** 存储操作结果接口 */
4
+ interface StorageResult {
5
+ success: boolean;
6
+ error?: Error;
7
+ }
8
+ /** Token 操作助手对象 */
9
+ export declare const tokenHelper: {
10
+ /** 设置 token */
11
+ set: (val: string) => StorageResult;
12
+ /** 获取 token */
13
+ get: () => string | null;
14
+ /** 移除 token */
15
+ remove: () => StorageResult;
16
+ /** 检查是否存在 token */
17
+ exists: () => boolean;
18
+ };
19
+ /** 通用存储操作助手对象 */
20
+ export declare const storageHelper: {
21
+ /** 设置存储项 */
22
+ setItem: (key: string, val: string) => StorageResult;
23
+ /** 获取存储项 */
24
+ getItem: (key: string) => string | null;
25
+ /** 移除存储项 */
26
+ removeItem: (key: string) => StorageResult;
27
+ /** 清空所有存储 */
28
+ clear: () => StorageResult;
29
+ };
30
+ /** 获取当前平台类型 */
31
+ export declare const getPlatform: () => Platform;
32
+ declare global {
33
+ interface Window {
34
+ electronAPI?: {
35
+ available: () => boolean;
36
+ setStoreItem: (key: string, value: string) => void;
37
+ getStoreItem: (key: string) => string | null;
38
+ removeStoreItem: (key: string) => void;
39
+ };
40
+ }
41
+ }
42
+ declare const _default: {
43
+ tokenHelper: {
44
+ /** 设置 token */
45
+ set: (val: string) => StorageResult;
46
+ /** 获取 token */
47
+ get: () => string | null;
48
+ /** 移除 token */
49
+ remove: () => StorageResult;
50
+ /** 检查是否存在 token */
51
+ exists: () => boolean;
52
+ };
53
+ storageHelper: {
54
+ /** 设置存储项 */
55
+ setItem: (key: string, val: string) => StorageResult;
56
+ /** 获取存储项 */
57
+ getItem: (key: string) => string | null;
58
+ /** 移除存储项 */
59
+ removeItem: (key: string) => StorageResult;
60
+ /** 清空所有存储 */
61
+ clear: () => StorageResult;
62
+ };
63
+ getPlatform: () => Platform;
64
+ };
65
+ export default _default;
@@ -0,0 +1,46 @@
1
+ const c = {
2
+ /** 设置存储项 */
3
+ setItem: (e, r) => {
4
+ try {
5
+ return t() === "electron" ? window.electronAPI.setStoreItem(e, r) : window.localStorage.setItem(e, r), { success: !0 };
6
+ } catch (o) {
7
+ return console.error(`设置存储项 ${e} 失败:`, o), { success: !1, error: o };
8
+ }
9
+ },
10
+ /** 获取存储项 */
11
+ getItem: (e) => {
12
+ try {
13
+ return t() === "electron" ? window.electronAPI.getStoreItem(e) : window.localStorage.getItem(e);
14
+ } catch (r) {
15
+ return console.error(`获取存储项 ${e} 失败:`, r), null;
16
+ }
17
+ },
18
+ /** 移除存储项 */
19
+ removeItem: (e) => {
20
+ try {
21
+ return t() === "electron" ? window.electronAPI.removeStoreItem(e) : window.localStorage.removeItem(e), { success: !0 };
22
+ } catch (r) {
23
+ return console.error(`移除存储项 ${e} 失败:`, r), { success: !1, error: r };
24
+ }
25
+ },
26
+ /** 清空所有存储 */
27
+ clear: () => {
28
+ try {
29
+ return t(), window.localStorage.clear(), { success: !0 };
30
+ } catch (e) {
31
+ return console.error("清空存储失败:", e), { success: !1, error: e };
32
+ }
33
+ }
34
+ }, t = () => {
35
+ if (typeof window < "u" && window.electronAPI?.available)
36
+ try {
37
+ if (window.electronAPI.available())
38
+ return "electron";
39
+ } catch {
40
+ }
41
+ return "web";
42
+ };
43
+ export {
44
+ t as getPlatform,
45
+ c as storageHelper
46
+ };
@@ -0,0 +1,2 @@
1
+ export declare function arrayBufferToImageBase64(bytes: Uint8Array): string;
2
+ export declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
@@ -0,0 +1,17 @@
1
+ function i(r) {
2
+ let t = "";
3
+ const n = r.byteLength;
4
+ for (let e = 0; e < n; e++)
5
+ t += String.fromCharCode(r[e]);
6
+ return "data:image/png;base64," + window.btoa(t);
7
+ }
8
+ function s(r) {
9
+ const t = r.replace(/^data:\w+\/\w+;base64,/, ""), n = window.atob(t), e = n.length, o = new ArrayBuffer(e), f = new Uint8Array(o);
10
+ for (let a = 0; a < e; a++)
11
+ f[a] = n.charCodeAt(a);
12
+ return o;
13
+ }
14
+ export {
15
+ i as arrayBufferToImageBase64,
16
+ s as base64ToArrayBuffer
17
+ };
@@ -0,0 +1,12 @@
1
+ declare function buf2hex(buffer: ArrayBuffer): any;
2
+ declare function hex2int(hex: string): any;
3
+ /**
4
+ * 将数组分割成指定长度的数组
5
+ * @param arr 数组
6
+ * @param size 分割长度
7
+ * @returns 分割后的数组
8
+ */
9
+ declare function chunk(arr: number[], size: number): any[];
10
+ declare function stringToBytes(str: string): ArrayBuffer;
11
+ declare function numberToChinese(num: number | null): string;
12
+ export { buf2hex, hex2int, chunk, stringToBytes, numberToChinese };
@@ -0,0 +1,2 @@
1
+ export function generateRandomString(length: any): string;
2
+ export function generateCodeChallenge(codeVerifier: any): any;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 生成OAuth PKCE所需的code_verifier和code_challenge
3
+ * @param method code_challenge_method,目前只支持S256
4
+ * @returns 包含code_verifier和code_challenge的对象
5
+ */
6
+ export declare function generatePKCECodes(method?: string): Promise<{
7
+ code_verifier: string;
8
+ code_challenge: string;
9
+ code_challenge_method: "S256";
10
+ }>;
@@ -0,0 +1,21 @@
1
+ export declare function getName(name: string): string;
2
+ /**
3
+ * 通用拼音筛选函数
4
+ * @param val 搜索关键词
5
+ * @param options 选项数组
6
+ * @returns 筛选后的选项数组
7
+ */
8
+ export declare function pinyinFilter(val: string, options: string[]): string[];
9
+ /**
10
+ * 通用拼音筛选函数(返回匹配项的索引)
11
+ * @param val 搜索关键词
12
+ * @param options 选项数组
13
+ * @returns 匹配项的索引数组
14
+ */
15
+ export declare function pinyinFilterIndex(val: string, options: string[]): number[];
16
+ export declare function parseIdNumber(idNumber: string): {
17
+ birthDate: string;
18
+ gender: string;
19
+ age: number;
20
+ };
21
+ export declare function isNumber(value: string): boolean;
@@ -0,0 +1,10 @@
1
+ import "../../node_modules/pinyin/lib/esm/pinyin.js";
2
+ function i(t) {
3
+ if (!t)
4
+ return "";
5
+ const r = t.split(" ");
6
+ return r.length === 2 ? `${r[1]}${r[0]}` : t;
7
+ }
8
+ export {
9
+ i as getName
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-core-tcm",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "Core",
5
5
  "productName": "Core",
6
6
  "author": "wywywywywywywywywy <qa123456_0714@qq.com>",
@@ -63,8 +63,11 @@
63
63
  "main": "dist/index.ts",
64
64
  "types": "dist/index.ts",
65
65
  "module": "dist/index.ts",
66
+ "files": [
67
+ "dist"
68
+ ],
66
69
  "exports": {
67
- "./api/algorithm": "./dist/src/api/patient/index.d.ts",
70
+ "./api/algorithm": "./dist/src/api/algorithm/index.d.ts",
68
71
  "./api/authorization": "./dist/api/authorization/index.d.ts",
69
72
  "./api/check": "./dist/src/api/check/index.d.ts",
70
73
  "./api/config": "./dist/src/api/config/index.d.ts",
package/.editorconfig DELETED
@@ -1,7 +0,0 @@
1
- [*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
2
- charset = utf-8
3
- indent_size = 2
4
- indent_style = space
5
- end_of_line = lf
6
- insert_final_newline = true
7
- trim_trailing_whitespace = true
@@ -1,29 +0,0 @@
1
- name: Publish to NPM
2
-
3
- on:
4
- release:
5
- types: [published]
6
- jobs:
7
- publish-npm:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v3
11
- - name: Setup Node.js
12
- uses: actions/setup-node@v3
13
- with:
14
- node-version: '22'
15
- registry-url: 'https://registry.npmjs.org'
16
- - name: Install dependencies
17
- run: npm ci
18
- - name: Update package.json version
19
- run: |
20
- # 从 release tag 获取版本号(移除可能的 'v' 前缀)
21
- VERSION=${TAG_NAME#v}
22
- echo "Setting version to: $VERSION"
23
- npm version $VERSION --no-git-tag-version --allow-same-version
24
- env:
25
- TAG_NAME: ${{ github.event.release.tag_name }}
26
- - name: Publish to npm
27
- run: npm publish
28
- env:
29
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierrc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/prettierrc",
3
- "singleQuote": true,
4
- "printWidth": 100
5
- }
@@ -1,15 +0,0 @@
1
- {
2
- "recommendations": [
3
- "dbaeumer.vscode-eslint",
4
- "esbenp.prettier-vscode",
5
- "editorconfig.editorconfig",
6
- "vue.volar",
7
- "wayou.vscode-todo-highlight"
8
- ],
9
- "unwantedRecommendations": [
10
- "octref.vetur",
11
- "hookyqr.beautify",
12
- "dbaeumer.jshint",
13
- "ms-vscode.vscode-typescript-tslint-plugin"
14
- ]
15
- }
@@ -1,9 +0,0 @@
1
- {
2
- "editor.bracketPairColorization.enabled": true,
3
- "editor.guides.bracketPairs": true,
4
- "editor.formatOnSave": true,
5
- "editor.defaultFormatter": "esbenp.prettier-vscode",
6
- "editor.codeActionsOnSave": ["source.fixAll.eslint"],
7
- "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
8
- "typescript.tsdk": "node_modules/typescript/lib"
9
- }
package/eslint.config.js DELETED
@@ -1,83 +0,0 @@
1
- import js from '@eslint/js';
2
- import globals from 'globals';
3
- import pluginVue from 'eslint-plugin-vue';
4
- import pluginQuasar from '@quasar/app-vite/eslint';
5
- import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
6
- import prettierSkipFormatting from '@vue/eslint-config-prettier/skip-formatting';
7
-
8
- export default defineConfigWithVueTs(
9
- {
10
- /**
11
- * Ignore the following files.
12
- * Please note that pluginQuasar.configs.recommended() already ignores
13
- * the "node_modules" folder for you (and all other Quasar project
14
- * relevant folders and files).
15
- *
16
- * ESLint requires "ignores" key to be the only one in this object
17
- */
18
- // ignores: []
19
- },
20
-
21
- pluginQuasar.configs.recommended(),
22
- js.configs.recommended,
23
-
24
- /**
25
- * https://eslint.vuejs.org
26
- *
27
- * pluginVue.configs.base
28
- * -> Settings and rules to enable correct ESLint parsing.
29
- * pluginVue.configs[ 'flat/essential']
30
- * -> base, plus rules to prevent errors or unintended behavior.
31
- * pluginVue.configs["flat/strongly-recommended"]
32
- * -> Above, plus rules to considerably improve code readability and/or dev experience.
33
- * pluginVue.configs["flat/recommended"]
34
- * -> Above, plus rules to enforce subjective community defaults to ensure consistency.
35
- */
36
- pluginVue.configs['flat/essential'],
37
-
38
- {
39
- files: ['**/*.ts', '**/*.vue'],
40
- rules: {
41
- '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
42
- },
43
- },
44
- // https://github.com/vuejs/eslint-config-typescript
45
- vueTsConfigs.recommendedTypeChecked,
46
-
47
- {
48
- languageOptions: {
49
- ecmaVersion: 'latest',
50
- sourceType: 'module',
51
-
52
- globals: {
53
- ...globals.browser,
54
- ...globals.node, // SSR, Electron, config files
55
- process: 'readonly', // process.env.*
56
- ga: 'readonly', // Google Analytics
57
- cordova: 'readonly',
58
- Capacitor: 'readonly',
59
- chrome: 'readonly', // BEX related
60
- browser: 'readonly', // BEX related
61
- },
62
- },
63
-
64
- // add your custom rules here
65
- rules: {
66
- 'prefer-promise-reject-errors': 'off',
67
-
68
- // allow debugger during development only
69
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
70
- },
71
- },
72
-
73
- {
74
- files: ['src-pwa/custom-service-worker.ts'],
75
- languageOptions: {
76
- globals: {
77
- ...globals.serviceworker,
78
- },
79
- },
80
- },
81
-
82
- prettierSkipFormatting,
83
- );
package/index.html DELETED
@@ -1,24 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title><%= productName %></title>
5
-
6
- <meta charset="utf-8" />
7
- <meta name="description" content="<%= productDescription %>" />
8
- <meta name="format-detection" content="telephone=no" />
9
- <meta name="msapplication-tap-highlight" content="no" />
10
- <meta
11
- name="viewport"
12
- content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>"
13
- />
14
-
15
- <link rel="icon" type="image/png" sizes="128x128" href="icons/favicon-128x128.png" />
16
- <link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png" />
17
- <link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" />
18
- <link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png" />
19
- <link rel="icon" type="image/ico" href="favicon.ico" />
20
- </head>
21
- <body>
22
- <!-- quasar:entry-point -->
23
- </body>
24
- </html>
package/postcss.config.js DELETED
@@ -1,29 +0,0 @@
1
- // https://github.com/michael-ciniawsky/postcss-load-config
2
-
3
- import autoprefixer from 'autoprefixer';
4
- // import rtlcss from 'postcss-rtlcss'
5
-
6
- export default {
7
- plugins: [
8
- // https://github.com/postcss/autoprefixer
9
- autoprefixer({
10
- overrideBrowserslist: [
11
- 'last 4 Chrome versions',
12
- 'last 4 Firefox versions',
13
- 'last 4 Edge versions',
14
- 'last 4 Safari versions',
15
- 'last 4 Android versions',
16
- 'last 4 ChromeAndroid versions',
17
- 'last 4 FirefoxAndroid versions',
18
- 'last 4 iOS versions',
19
- ],
20
- }),
21
-
22
- // https://github.com/elchininet/postcss-rtlcss
23
- // If you want to support RTL css, then
24
- // 1. yarn/pnpm/bun/npm install postcss-rtlcss
25
- // 2. optionally set quasar.config.js > framework > lang to an RTL language
26
- // 3. uncomment the following line (and its import statement above):
27
- // rtlcss()
28
- ],
29
- };