web-core-tcm 0.0.23 → 0.0.24

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 (126) hide show
  1. package/package.json +41 -21
  2. package/.editorconfig +0 -7
  3. package/.github/workflows/test.yml +0 -29
  4. package/.prettierrc.json +0 -5
  5. package/.vscode/extensions.json +0 -15
  6. package/.vscode/settings.json +0 -9
  7. package/eslint.config.js +0 -83
  8. package/index.html +0 -24
  9. package/postcss.config.js +0 -29
  10. package/public/favicon.ico +0 -0
  11. package/public/icons/favicon-128x128.png +0 -0
  12. package/public/icons/favicon-16x16.png +0 -0
  13. package/public/icons/favicon-32x32.png +0 -0
  14. package/public/icons/favicon-96x96.png +0 -0
  15. package/quasar.config.ts +0 -220
  16. package/src/App.vue +0 -7
  17. package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
  18. package/src/api/algorithm/index.ts +0 -50
  19. package/src/api/algorithm/inquiriesAlgorithm.ts +0 -19
  20. package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
  21. package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
  22. package/src/api/algorithm/pulsationsAlgorithm.ts +0 -9
  23. package/src/api/authorization/alova/apiDefinitions.ts +0 -23
  24. package/src/api/authorization/alova/createApis.ts +0 -99
  25. package/src/api/authorization/alova/globals.d.ts +0 -373
  26. package/src/api/authorization/alova/implement/authorization.ts +0 -12
  27. package/src/api/authorization/alova/implement/index.ts +0 -1
  28. package/src/api/authorization/alova/index.ts +0 -23
  29. package/src/api/authorization/authorization.ts +0 -16
  30. package/src/api/authorization/index.ts +0 -2
  31. package/src/api/check/alova/apiDefinitions.ts +0 -30
  32. package/src/api/check/alova/createApis.ts +0 -99
  33. package/src/api/check/alova/globals.d.ts +0 -1248
  34. package/src/api/check/alova/implement/check.ts +0 -119
  35. package/src/api/check/alova/implement/index.ts +0 -1
  36. package/src/api/check/alova/index.ts +0 -23
  37. package/src/api/check/check.ts +0 -164
  38. package/src/api/check/index.ts +0 -2
  39. package/src/api/config/alova/index.ts +0 -72
  40. package/src/api/config/index.ts +0 -130
  41. package/src/api/device/device.js +0 -58
  42. package/src/api/doctor/alova/apiDefinitions.ts +0 -28
  43. package/src/api/doctor/alova/createApis.ts +0 -99
  44. package/src/api/doctor/alova/globals.d.ts +0 -550
  45. package/src/api/doctor/alova/implement/doctor.ts +0 -37
  46. package/src/api/doctor/alova/implement/index.ts +0 -1
  47. package/src/api/doctor/alova/index.ts +0 -23
  48. package/src/api/doctor/doctor.ts +0 -53
  49. package/src/api/doctor/index.ts +0 -2
  50. package/src/api/index.ts +0 -15
  51. package/src/api/metric/implement/index.ts +0 -1
  52. package/src/api/metric/implement/metric.ts +0 -98
  53. package/src/api/metric/index.ts +0 -2
  54. package/src/api/metric/metric.ts +0 -114
  55. package/src/api/oauth/alova/apiDefinitions.ts +0 -26
  56. package/src/api/oauth/alova/createApis.ts +0 -99
  57. package/src/api/oauth/alova/globals.d.ts +0 -451
  58. package/src/api/oauth/alova/implement/index.ts +0 -1
  59. package/src/api/oauth/alova/implement/oauth.ts +0 -19
  60. package/src/api/oauth/alova/index.ts +0 -22
  61. package/src/api/oauth/index.ts +0 -2
  62. package/src/api/oauth/oauth.ts +0 -15
  63. package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
  64. package/src/api/outpatient/alova/createApis.ts +0 -99
  65. package/src/api/outpatient/alova/globals.d.ts +0 -676
  66. package/src/api/outpatient/alova/implement/index.ts +0 -1
  67. package/src/api/outpatient/alova/implement/outpatient.ts +0 -66
  68. package/src/api/outpatient/alova/index.ts +0 -23
  69. package/src/api/outpatient/index.ts +0 -2
  70. package/src/api/outpatient/outpatient.ts +0 -62
  71. package/src/api/patient/alova/apiDefinitions.ts +0 -41
  72. package/src/api/patient/alova/createApis.ts +0 -99
  73. package/src/api/patient/alova/globals.d.ts +0 -1677
  74. package/src/api/patient/alova/implement/index.ts +0 -2
  75. package/src/api/patient/alova/implement/meta.ts +0 -488
  76. package/src/api/patient/alova/implement/patient.ts +0 -77
  77. package/src/api/patient/alova/index.ts +0 -24
  78. package/src/api/patient/core.ts +0 -131
  79. package/src/api/patient/index.ts +0 -4
  80. package/src/api/patient/meta.ts +0 -466
  81. package/src/api/patient/patient.ts +0 -98
  82. package/src/api/prescription/alova/apiDefinitions.ts +0 -29
  83. package/src/api/prescription/alova/createApis.ts +0 -99
  84. package/src/api/prescription/alova/globals.d.ts +0 -959
  85. package/src/api/prescription/alova/implement/herbal.ts +0 -48
  86. package/src/api/prescription/alova/implement/index.ts +0 -2
  87. package/src/api/prescription/alova/implement/prescription.ts +0 -45
  88. package/src/api/prescription/alova/index.ts +0 -23
  89. package/src/api/prescription/herbal.ts +0 -44
  90. package/src/api/prescription/index.ts +0 -3
  91. package/src/api/prescription/prescription.ts +0 -68
  92. package/src/api/scientist/alova/apiDefinitions.ts +0 -27
  93. package/src/api/scientist/alova/createApis.ts +0 -99
  94. package/src/api/scientist/alova/globals.d.ts +0 -438
  95. package/src/api/scientist/alova/implement/index.ts +0 -1
  96. package/src/api/scientist/alova/implement/scientist.ts +0 -29
  97. package/src/api/scientist/alova/index.ts +0 -23
  98. package/src/api/scientist/index.ts +0 -2
  99. package/src/api/scientist/scientist.ts +0 -49
  100. package/src/assets/quasar-logo-vertical.svg +0 -15
  101. package/src/boot/.gitkeep +0 -0
  102. package/src/components/ExampleComponent.vue +0 -37
  103. package/src/components/models.ts +0 -8
  104. package/src/css/app.scss +0 -1
  105. package/src/css/quasar.variables.scss +0 -25
  106. package/src/env.d.ts +0 -7
  107. package/src/index.ts +0 -4
  108. package/src/layouts/UserLayout.vue +0 -106
  109. package/src/pages/LoginPage.vue +0 -32
  110. package/src/proto/Images.proto +0 -7
  111. package/src/proto/WaveMap.proto +0 -10
  112. package/src/proto/index.ts +0 -2
  113. package/src/proto/types/Images_pb.ts +0 -48
  114. package/src/proto/types/WaveMap_pb.ts +0 -59
  115. package/src/router/index.ts +0 -37
  116. package/src/router/routes.ts +0 -14
  117. package/src/util/RichTextUtil.ts +0 -5
  118. package/src/util/datetime.ts +0 -43
  119. package/src/util/export.ts +0 -46
  120. package/src/util/helper.ts +0 -159
  121. package/src/util/image.ts +0 -28
  122. package/src/util/number.ts +0 -146
  123. package/src/util/s256.js +0 -30
  124. package/src/util/secret.ts +0 -60
  125. package/src/util/string.ts +0 -121
  126. package/tsconfig.json +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-core-tcm",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Core",
5
5
  "productName": "Core",
6
6
  "author": "wywywywywywywywywy <qa123456_0714@qq.com>",
@@ -11,21 +11,18 @@
11
11
  "test": "echo \"No test specified\" && exit 0",
12
12
  "dev": "quasar dev",
13
13
  "build": "quasar build",
14
- "postinstall": "quasar prepare"
14
+ "postinstall": "quasar prepare",
15
+ "lint:fix": "eslint --fix"
15
16
  },
16
17
  "dependencies": {
17
- "@quasar/extras": "^1.16.4",
18
- "quasar": "^2.16.0",
19
- "vue": "^3.5.22",
20
- "vue-router": "^4.0.12",
21
- "@bufbuild/protobuf": "^2.9.0",
22
- "@bufbuild/protoc-gen-es": "^2.9.0",
23
18
  "@alova/adapter-axios": "^1.2.6",
24
19
  "@alova/mock": "^1.5.1",
25
20
  "@alova/scene-vue": "^1.6.2",
21
+ "@bufbuild/protobuf": "^2.9.0",
22
+ "@bufbuild/protoc-gen-es": "^2.9.0",
23
+ "@quasar/extras": "^1.16.4",
26
24
  "@vueuse/core": "^11.0.3",
27
25
  "alova": "^3.3.4",
28
- "pinyin": "^4.0.0",
29
26
  "builder-pattern": "^2.2.0",
30
27
  "compressorjs": "^1.2.1",
31
28
  "dotenv-cli": "^7.4.2",
@@ -33,33 +30,56 @@
33
30
  "ftdi-d2xx": "^1.3.1",
34
31
  "jwt-decode": "^4.0.0",
35
32
  "papaparse": "^5.5.3",
36
- "punycode": "^2.3.1"
33
+ "pinyin": "^4.0.0",
34
+ "punycode": "^2.3.1",
35
+ "quasar": "^2.16.0",
36
+ "vite-plugin-dts": "^4.5.4",
37
+ "vue": "^3.5.22",
38
+ "vue-router": "^4.0.12"
37
39
  },
38
40
  "devDependencies": {
39
41
  "@alova/wormhole": "^1.2.0",
40
42
  "@eslint/js": "^9.14.0",
43
+ "@quasar/app-vite": "^2.1.0",
44
+ "@types/node": "^20.5.9",
45
+ "@vue/eslint-config-prettier": "^10.1.0",
46
+ "@vue/eslint-config-typescript": "^14.4.0",
47
+ "autoprefixer": "^10.4.2",
41
48
  "eslint": "^9.14.0",
42
49
  "eslint-plugin-vue": "^10.4.0",
43
50
  "globals": "^16.4.0",
44
- "vue-tsc": "^3.0.7",
45
- "@vue/eslint-config-typescript": "^14.4.0",
51
+ "prettier": "^3.3.3",
52
+ "tsc-alias": "^1.8.16",
53
+ "typescript": "^5.9.2",
46
54
  "vite-plugin-checker": "^0.11.0",
47
55
  "vue-eslint-parser": "^10.2.0",
48
- "@vue/eslint-config-prettier": "^10.1.0",
49
- "prettier": "^3.3.3",
50
- "@types/node": "^20.5.9",
51
- "@quasar/app-vite": "^2.1.0",
52
- "autoprefixer": "^10.4.2",
53
- "typescript": "^5.9.2"
56
+ "vue-tsc": "^3.0.7"
54
57
  },
55
58
  "engines": {
56
59
  "node": "^28 || ^26 || ^24 || ^22 || ^20",
57
60
  "npm": ">= 6.13.4",
58
61
  "yarn": ">= 1.21.1"
59
62
  },
60
- "main": "src/index.ts",
61
- "types": "src/index.ts",
62
- "module": "src/index.ts",
63
+ "main": "dist/index.ts",
64
+ "types": "dist/index.ts",
65
+ "module": "dist/index.ts",
66
+ "files": [
67
+ "dist"
68
+ ],
69
+ "exports": {
70
+ "./api/algorithm": "./dist/src/api/patient/index.d.ts",
71
+ "./api/authorization": "./dist/api/authorization/index.d.ts",
72
+ "./api/check": "./dist/src/api/check/index.d.ts",
73
+ "./api/config": "./dist/src/api/config/index.d.ts",
74
+ "./api/device": "./dist/src/api/device/index.d.ts",
75
+ "./api/doctor": "./dist/src/api/doctor/index.d.ts",
76
+ "./api/metric": "./dist/src/api/metric/index.d.ts",
77
+ "./api/oauth": "./dist/src/api/oauth/index.d.ts",
78
+ "./api/outpatient": "./dist/src/api/outpatient/index.d.ts",
79
+ "./api/patient": "./dist/src/api/patient/index.d.ts",
80
+ "./api/prescription": "./dist/src/api/prescription/index.d.ts",
81
+ "./api/scientist": "./dist/src/api/scientist/index.d.ts"
82
+ },
63
83
  "repository": {
64
84
  "type": "git",
65
85
  "url": "git+https://github.com/NUC-TCM/web.core.tcm.git"
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
- };
Binary file
Binary file
Binary file
Binary file
Binary file
package/quasar.config.ts DELETED
@@ -1,220 +0,0 @@
1
- // Configuration for your app
2
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file
3
-
4
- import { defineConfig } from '#q-app/wrappers';
5
-
6
- export default defineConfig((/* ctx */) => {
7
- return {
8
- // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
9
- // preFetch: true,
10
-
11
- // app boot file (/src/boot)
12
- // --> boot files are part of "main.js"
13
- // https://v2.quasar.dev/quasar-cli-vite/boot-files
14
- boot: [],
15
-
16
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
17
- css: ['app.scss'],
18
-
19
- // https://github.com/quasarframework/quasar/tree/dev/extras
20
- extras: [
21
- // 'ionicons-v4',
22
- // 'mdi-v7',
23
- // 'fontawesome-v6',
24
- // 'eva-icons',
25
- // 'themify',
26
- // 'line-awesome',
27
- // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
28
-
29
- 'roboto-font', // optional, you are not bound to it
30
- 'material-icons', // optional, you are not bound to it
31
- ],
32
-
33
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#build
34
- build: {
35
- target: {
36
- browser: ['es2022', 'firefox115', 'chrome115', 'safari14'],
37
- node: 'node20',
38
- },
39
-
40
- typescript: {
41
- strict: true,
42
- vueShim: true,
43
- extendTsConfig (tsConfig) {
44
- tsConfig.compilerOptions!.paths['@core'] = [...tsConfig.compilerOptions!.paths['src']]
45
- tsConfig.compilerOptions!.paths['@core/*'] = [...tsConfig.compilerOptions!.paths['src/*']]
46
- delete tsConfig.compilerOptions!.paths['src'];
47
- delete tsConfig.compilerOptions!.paths['src/*'];
48
- }
49
- },
50
-
51
- vueRouterMode: 'hash', // available values: 'hash', 'history'
52
- // vueRouterBase,
53
- // vueDevtools,
54
- // vueOptionsAPI: false,
55
-
56
- // rebuildCache: true, // rebuilds Vite/linter/etc cache on startup
57
-
58
- // publicPath: '/',
59
- // analyze: true,
60
- // env: {},
61
- // rawDefine: {}
62
- // ignorePublicFolder: true,
63
- // minify: false,
64
- // polyfillModulePreload: true,
65
- // distDir
66
- // viteVuePluginOptions: {},
67
-
68
- vitePlugins: [
69
- [
70
- 'vite-plugin-checker',
71
- {
72
- vueTsc: true,
73
- eslint: {
74
- lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{ts,js,mjs,cjs,vue}"',
75
- useFlatConfig: true,
76
- },
77
- },
78
- { server: false },
79
- ],
80
- ],
81
- },
82
-
83
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#devserver
84
- devServer: {
85
- // https: true,
86
- open: true, // opens browser window automatically
87
- },
88
-
89
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#framework
90
- framework: {
91
- config: {},
92
-
93
- // iconSet: 'material-icons', // Quasar icon set
94
- // lang: 'en-US', // Quasar language pack
95
-
96
- // For special cases outside of where the auto-import strategy can have an impact
97
- // (like functional components as one of the examples),
98
- // you can manually specify Quasar components/directives to be available everywhere:
99
- //
100
- // components: [],
101
- // directives: [],
102
-
103
- // Quasar plugins
104
- plugins: [],
105
- },
106
-
107
- // animations: 'all', // --- includes all animations
108
- // https://v2.quasar.dev/options/animations
109
- animations: [],
110
-
111
- // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#sourcefiles
112
- // sourceFiles: {
113
- // rootComponent: '@core/App.vue',
114
- // router: '@core/router/index',
115
- // store: '@core/store/index',
116
- // pwaRegisterServiceWorker: 'src-pwa/register-service-worker',
117
- // pwaServiceWorker: 'src-pwa/custom-service-worker',
118
- // pwaManifestFile: 'src-pwa/manifest.json',
119
- // electronMain: 'src-electron/electron-main',
120
- // electronPreload: 'src-electron/electron-preload'
121
- // bexManifestFile: 'src-bex/manifest.json
122
- // },
123
-
124
- // https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr
125
- ssr: {
126
- prodPort: 3000, // The default port that the production server should use
127
- // (gets superseded if process.env.PORT is specified at runtime)
128
-
129
- middlewares: [
130
- 'render', // keep this as last one
131
- ],
132
-
133
- // extendPackageJson (json) {},
134
- // extendSSRWebserverConf (esbuildConf) {},
135
-
136
- // manualStoreSerialization: true,
137
- // manualStoreSsrContextInjection: true,
138
- // manualStoreHydration: true,
139
- // manualPostHydrationTrigger: true,
140
-
141
- pwa: false,
142
- // pwaOfflineHtmlFilename: 'offline.html', // do NOT use index.html as name!
143
-
144
- // pwaExtendGenerateSWOptions (cfg) {},
145
- // pwaExtendInjectManifestOptions (cfg) {}
146
- },
147
-
148
- // https://v2.quasar.dev/quasar-cli-vite/developing-pwa/configuring-pwa
149
- pwa: {
150
- workboxMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
151
- // swFilename: 'sw.js',
152
- // manifestFilename: 'manifest.json',
153
- // extendManifestJson (json) {},
154
- // useCredentialsForManifestTag: true,
155
- // injectPwaMetaTags: false,
156
- // extendPWACustomSWConf (esbuildConf) {},
157
- // extendGenerateSWOptions (cfg) {},
158
- // extendInjectManifestOptions (cfg) {}
159
- },
160
-
161
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-cordova-apps/configuring-cordova
162
- cordova: {
163
- // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
164
- },
165
-
166
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-capacitor-apps/configuring-capacitor
167
- capacitor: {
168
- hideSplashscreen: true,
169
- },
170
-
171
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron
172
- electron: {
173
- // extendElectronMainConf (esbuildConf) {},
174
- // extendElectronPreloadConf (esbuildConf) {},
175
-
176
- // extendPackageJson (json) {},
177
-
178
- // Electron preload scripts (if any) from /src-electron, WITHOUT file extension
179
- preloadScripts: ['electron-preload'],
180
-
181
- // specify the debugging port to use for the Electron app when running in development mode
182
- inspectPort: 5858,
183
-
184
- bundler: 'packager', // 'packager' or 'builder'
185
-
186
- packager: {
187
- // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
188
- // OS X / Mac App Store
189
- // appBundleId: '',
190
- // appCategoryType: '',
191
- // osxSign: '',
192
- // protocol: 'myapp://path',
193
- // Windows only
194
- // win32metadata: { ... }
195
- },
196
-
197
- builder: {
198
- // https://www.electron.build/configuration/configuration
199
-
200
- appId: 'web-core-tcm',
201
- },
202
- },
203
-
204
- // Full list of options: https://v2.quasar.dev/quasar-cli-vite/developing-browser-extensions/configuring-bex
205
- bex: {
206
- // extendBexScriptsConf (esbuildConf) {},
207
- // extendBexManifestJson (json) {},
208
-
209
- /**
210
- * The list of extra scripts (js/ts) not in your bex manifest that you want to
211
- * compile and use in your browser extension. Maybe dynamic use them?
212
- *
213
- * Each entry in the list should be a relative filename to /src-bex/
214
- *
215
- * @example [ 'my-script.ts', 'sub-folder/my-other-script.js' ]
216
- */
217
- extraScripts: [],
218
- },
219
- };
220
- });
package/src/App.vue DELETED
@@ -1,7 +0,0 @@
1
- <template>
2
- <router-view />
3
- </template>
4
-
5
- <script setup lang="ts">
6
- //
7
- </script>
@@ -1,20 +0,0 @@
1
- // src/api/comprehensiveAlgorithm.ts
2
- import { comprehensiveAlgorithmService } from '@core/api/algorithm';
3
-
4
- export const comprehensiveQwenAlgorithm = (data: object) =>
5
- comprehensiveAlgorithmService.Post<Response>('/千问大模型分析', data, {
6
- timeout: 30000,
7
- });
8
-
9
- export const comprehensiveDeepSeekV3Algorithm = (data: object) =>
10
- comprehensiveAlgorithmService.Post<Response>('/DeepSeekV3大模型分析', data, {
11
- timeout: 30000,
12
- });
13
- export const comprehensiveDeepSeekR1Algorithm = (data: object) =>
14
- comprehensiveAlgorithmService.Post<Response>('/DeepSeekR1大模型分析', data, {
15
- timeout: 300000,
16
- });
17
- export const doctorSceneTextAnalysis = (data: object) =>
18
- comprehensiveAlgorithmService.Post<Response>('/医生场景文本', data, {
19
- timeout: 300000,
20
- });
@@ -1,50 +0,0 @@
1
- import { createAlova } from 'alova';
2
- import adapterFetch from 'alova/fetch';
3
- import { responded } from '@core/api/config/alova';
4
- import { getServiceEndpoint, ServiceType } from '@core/api/config';
5
-
6
- export const inspectionAlgorithmService = createAlova({
7
- baseURL: getServiceEndpoint(ServiceType.InspectionsAlgorithm),
8
- timeout: 30000,
9
- cacheFor: null,
10
- requestAdapter: adapterFetch(),
11
- responded: responded
12
- });
13
-
14
- export const inquiriesAlgorithmService = createAlova({
15
- baseURL: getServiceEndpoint(ServiceType.InquiriesAlgorithm),
16
- timeout: 30000,
17
- cacheFor: null,
18
- requestAdapter: adapterFetch(),
19
- responded: responded
20
- });
21
-
22
- export const lisemsAlgorithmService = createAlova({
23
- baseURL: getServiceEndpoint(ServiceType.LisemsAlgorithm),
24
- timeout: 30000,
25
- cacheFor: null,
26
- requestAdapter: adapterFetch(),
27
- responded: responded
28
- });
29
-
30
- export const pulsationsAlgorithmService = createAlova({
31
- baseURL: getServiceEndpoint(ServiceType.PulsationsAlgorithm),
32
- timeout: 30000,
33
- cacheFor: null,
34
- requestAdapter: adapterFetch(),
35
- responded: responded
36
- });
37
-
38
- export const comprehensiveAlgorithmService = createAlova({
39
- baseURL: getServiceEndpoint(ServiceType.ComprehensiveAlgorithm),
40
- timeout: 30000,
41
- cacheFor: null,
42
- requestAdapter: adapterFetch(),
43
- responded: responded
44
- });
45
-
46
- export * from './comprehensiveAlgorithm';
47
- export * from './inquiriesAlgorithm';
48
- export * from './inspectionsAlgorithm';
49
- export * from './lisemsAlgorithm';
50
- export * from './pulsationsAlgorithm';
@@ -1,19 +0,0 @@
1
- import { inquiriesAlgorithmService } from '@core/api/algorithm';
2
-
3
- export const complaintsRecognition = (symptomDescription: string) =>
4
- inquiriesAlgorithmService.Post<string[]>(
5
- '/主诉/识别',
6
- { symptomDescription },
7
- );
8
-
9
- export const complaintsDialog = (body: object) =>
10
- inquiriesAlgorithmService.Post<{ reply: string; positive_symptom: string[] }>('/主诉/对话', body);
11
-
12
- export const complaintsView = (params: string) =>
13
- inquiriesAlgorithmService.Post<{ symptoms: string[] }>('/主诉/视图', {params});
14
-
15
- export const complaintsSearch = (data: string) =>
16
- inquiriesAlgorithmService.Post<string[]>('/主诉/搜索', {data});
17
-
18
- export const complaintsChoose = (body: object) =>
19
- inquiriesAlgorithmService.Post<{ status: string; data: [] }>('/主诉/选择', body);
@@ -1,11 +0,0 @@
1
- import { inspectionAlgorithmService } from '@core/api/algorithm';
2
-
3
- export const tongueAnalyze = (images: FormData) =>
4
- inspectionAlgorithmService.Post<JSON>('/舌象', images, {
5
- timeout: 30000,
6
- });
7
-
8
- export const faceAnalyze = (images: FormData) =>
9
- inspectionAlgorithmService.Post<JSON>('/面象', images, {
10
- timeout: 30000,
11
- });