verce-vue-test 0.0.48 → 0.0.49

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 (69) hide show
  1. package/package.json +1 -1
  2. package/mini2.0/.editorconfig +0 -8
  3. package/mini2.0/.env.development +0 -3
  4. package/mini2.0/.env.production +0 -3
  5. package/mini2.0/.env.test +0 -3
  6. package/mini2.0/.gitattributes +0 -1
  7. package/mini2.0/.oxlintrc.json +0 -10
  8. package/mini2.0/.prettierrc.json +0 -6
  9. package/mini2.0/.vscode/extensions.json +0 -9
  10. package/mini2.0/README.md +0 -179
  11. package/mini2.0/auto-imports.d.ts +0 -629
  12. package/mini2.0/components.d.ts +0 -21
  13. package/mini2.0/design-qa.md +0 -36
  14. package/mini2.0/docs/MX_API.md +0 -244
  15. package/mini2.0/docs/REQUEST.md +0 -217
  16. package/mini2.0/docs/jsapi.js +0 -515
  17. package/mini2.0/docs/package-json-guide.md +0 -132
  18. package/mini2.0/env.d.ts +0 -15
  19. package/mini2.0/eslint.config.ts +0 -26
  20. package/mini2.0/index.html +0 -16
  21. package/mini2.0/package-lock.json +0 -6473
  22. package/mini2.0/package.json +0 -66
  23. package/mini2.0/plugins/bump-version.ts +0 -61
  24. package/mini2.0/postcss.config.ts +0 -15
  25. package/mini2.0/public/favicon.ico +0 -0
  26. package/mini2.0/public/images/12a73787-86a9-4891-a65f-66104746f6a8.png +0 -0
  27. package/mini2.0/public/images/5798d7aa-ba8b-4605-8079-58b35495ac55.png +0 -0
  28. package/mini2.0/public/images/73fef1e4-0fd0-4a1a-9b8b-a70a5b6acbbc.png +0 -0
  29. package/mini2.0/public/images/bc685b4c-0cca-4a79-924c-a8ee10e6f8eb.png +0 -0
  30. package/mini2.0/public/images/c3dbbd9d-be56-490e-b9f4-6ee17ebefffc.png +0 -0
  31. package/mini2.0/public/images/ea745a10-42aa-4f44-8d7f-3ab02cc0adcd.png +0 -0
  32. package/mini2.0/public/images/f5876785-b927-4347-ba19-999114240649.png +0 -0
  33. package/mini2.0/public/images/img.png +0 -0
  34. package/mini2.0/src/App.vue +0 -59
  35. package/mini2.0/src/api/health.ts +0 -13
  36. package/mini2.0/src/api/rmb-position.ts +0 -287
  37. package/mini2.0/src/api/user.ts +0 -54
  38. package/mini2.0/src/auto-imports.d.ts +0 -639
  39. package/mini2.0/src/components.d.ts +0 -30
  40. package/mini2.0/src/config/config.properties +0 -3
  41. package/mini2.0/src/config/env.ts +0 -6
  42. package/mini2.0/src/config/plugin.properties.pro +0 -6
  43. package/mini2.0/src/config/plugin.properties.test +0 -6
  44. package/mini2.0/src/core/mxApi/index.ts +0 -344
  45. package/mini2.0/src/core/request/index.ts +0 -135
  46. package/mini2.0/src/main.ts +0 -39
  47. package/mini2.0/src/router/index.ts +0 -77
  48. package/mini2.0/src/stores/app.ts +0 -24
  49. package/mini2.0/src/stores/counter.ts +0 -12
  50. package/mini2.0/src/stores/user.ts +0 -85
  51. package/mini2.0/src/types/api.d.ts +0 -14
  52. package/mini2.0/src/types/nprogress.d.ts +0 -8
  53. package/mini2.0/src/utils/auth-token.ts +0 -197
  54. package/mini2.0/src/utils/query.ts +0 -27
  55. package/mini2.0/src/utils/request.ts +0 -233
  56. package/mini2.0/src/views/clearing-detail/index.vue +0 -49
  57. package/mini2.0/src/views/foreign-position/index.vue +0 -49
  58. package/mini2.0/src/views/home/index.vue +0 -213
  59. package/mini2.0/src/views/login/index.vue +0 -202
  60. package/mini2.0/src/views/mine/index.vue +0 -143
  61. package/mini2.0/src/views/net-debit/index.vue +0 -49
  62. package/mini2.0/src/views/pbc-position/index.vue +0 -49
  63. package/mini2.0/src/views/position-estimate/index.vue +0 -49
  64. package/mini2.0/src/views/rmb-position/index.vue +0 -1042
  65. package/mini2.0/src/views/warning/index.vue +0 -49
  66. package/mini2.0/tsconfig.app.json +0 -18
  67. package/mini2.0/tsconfig.json +0 -11
  68. package/mini2.0/tsconfig.node.json +0 -28
  69. package/mini2.0/vite.config.ts +0 -98
@@ -1,49 +0,0 @@
1
- <script setup lang="ts"></script>
2
-
3
- <template>
4
- <main class="page">
5
- <header class="page-header">
6
- <button class="back-btn" type="button" @click="$router.back()">←</button>
7
- <h1>预警信息</h1>
8
- </header>
9
- <section class="page-body">
10
- <p class="placeholder">页面建设中…</p>
11
- </section>
12
- </main>
13
- </template>
14
-
15
- <style scoped>
16
- .page {
17
- max-width: 750px;
18
- min-height: 100vh;
19
- margin: 0 auto;
20
- padding: 0 11px;
21
- background: #f7f8fa;
22
- }
23
- .page-header {
24
- display: flex;
25
- align-items: center;
26
- gap: 8px;
27
- height: 48px;
28
- }
29
- .back-btn {
30
- border: 0;
31
- background: transparent;
32
- font-size: 20px;
33
- cursor: pointer;
34
- }
35
- .page-header h1 {
36
- margin: 0;
37
- font-size: 17px;
38
- font-weight: 700;
39
- }
40
- .page-body {
41
- padding: 24px 0;
42
- }
43
- .placeholder {
44
- text-align: center;
45
- color: #969799;
46
- font-size: 14px;
47
- padding-top: 120px;
48
- }
49
- </style>
@@ -1,18 +0,0 @@
1
- {
2
- "extends": "@vue/tsconfig/tsconfig.dom.json",
3
- "include": ["env.d.ts", "auto-imports.d.ts", "components.d.ts", "src/**/*", "src/**/*.vue"],
4
- "exclude": ["src/**/__tests__/*"],
5
- "compilerOptions": {
6
- // Extra safety for array and object lookups, but may have false positives.
7
- "noUncheckedIndexedAccess": true,
8
-
9
- // Path mapping for cleaner imports.
10
- "paths": {
11
- "@/*": ["./src/*"]
12
- },
13
-
14
- // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
15
- // Specified here to keep it out of the root directory.
16
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
17
- }
18
- }
@@ -1,11 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.node.json"
6
- },
7
- {
8
- "path": "./tsconfig.app.json"
9
- }
10
- ]
11
- }
@@ -1,28 +0,0 @@
1
- // TSConfig for modules that run in Node.js environment via either transpilation or type-stripping.
2
- {
3
- "extends": "@tsconfig/node24/tsconfig.json",
4
- "include": [
5
- "vite.config.*",
6
- "plugins/*.ts",
7
- "vitest.config.*",
8
- "cypress.config.*",
9
- "playwright.config.*",
10
- "eslint.config.*"
11
- ],
12
- "compilerOptions": {
13
- // Most tools use transpilation instead of Node.js's native type-stripping.
14
- // Bundler mode provides a smoother developer experience.
15
- "module": "preserve",
16
- "moduleResolution": "bundler",
17
-
18
- // Include Node.js types and avoid accidentally including other `@types/*` packages.
19
- "types": ["node"],
20
-
21
- // Disable emitting output during `vue-tsc --build`, which is used for type-checking only.
22
- "noEmit": true,
23
-
24
- // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
25
- // Specified here to keep it out of the root directory.
26
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo"
27
- }
28
- }
@@ -1,98 +0,0 @@
1
- import { fileURLToPath, URL } from 'node:url'
2
- import { readFileSync } from 'node:fs'
3
-
4
- import { defineConfig, loadEnv } from 'vite'
5
- import vue from '@vitejs/plugin-vue'
6
- import vueDevTools from 'vite-plugin-vue-devtools'
7
- import AutoImport from 'unplugin-auto-import/vite'
8
- import Components from 'unplugin-vue-components/vite'
9
- import { VantResolver } from 'unplugin-vue-components/resolvers'
10
- import { bumpVersion } from './plugins/bump-version'
11
-
12
- // https://vite.dev/config/
13
- export default defineConfig(({ command, mode }) => {
14
- const env = loadEnv(mode, process.cwd(), '')
15
- const apiBaseUrl = env.VITE_API_BASE_URL || '/api'
16
- const appVersion = getAppVersion(mode, command)
17
-
18
- return {
19
- base: './',
20
- define: {
21
- __APP_VERSION__: JSON.stringify(appVersion),
22
- },
23
- plugins: [
24
- vue(),
25
- vueDevTools(),
26
-
27
- // 自动导入 Vue / Vue Router / Pinia / VueUse / Vant 的 API,省去手动 import
28
- AutoImport({
29
- imports: [
30
- 'vue',
31
- 'vue-router',
32
- 'pinia',
33
- '@vueuse/core',
34
- { vant: ['showToast', 'showDialog', 'showConfirmDialog', 'showLoadingToast', 'closeToast'] },
35
- ],
36
- dts: 'src/auto-imports.d.ts',
37
- vueTemplate: true,
38
- }),
39
-
40
- // 自动导入组件(Vant 按需加载)
41
- Components({
42
- resolvers: [VantResolver()],
43
- dts: 'src/components.d.ts',
44
- }),
45
-
46
- // 打包时自增版本号,并将 plugin.properties 输出到 dist/
47
- bumpVersion(mode),
48
- ],
49
-
50
- server: {
51
- host: '0.0.0.0',
52
- port: 8080,
53
- strictPort: true,
54
- open: true,
55
-
56
- proxy: {
57
- '/oms': {
58
- target: 'http://10.56.183.104:8090',
59
- changeOrigin: true,
60
- },
61
- },
62
- },
63
-
64
- resolve: {
65
- alias: {
66
- '@': fileURLToPath(new URL('./src', import.meta.url)),
67
- },
68
- },
69
-
70
- build: {
71
- outDir: 'dist/www',
72
- },
73
- }
74
- })
75
-
76
- function getAppVersion(mode: string, command: 'build' | 'serve') {
77
- const suffix = mode === 'production' ? 'pro' : 'test'
78
- const content = readFileSync(`src/config/plugin.properties.${suffix}`, 'utf-8')
79
-
80
- if (command === 'build') {
81
- const versionCode = content.match(/version_code=(\d+)/)?.[1]
82
-
83
- if (versionCode) {
84
- return toVersionName(Number(versionCode) + 1)
85
- }
86
- }
87
-
88
- return content.match(/version_name=([^;\n]+)/)?.[1] || '0.0.0'
89
- }
90
-
91
- function toVersionName(versionCode: number) {
92
- const major = Math.floor(versionCode / 10000)
93
- const minor = Math.floor((versionCode / 1000) % 10)
94
- const patch = Math.floor((versionCode / 100) % 10)
95
- const hotfix = String(versionCode % 100).padStart(2, '0')
96
-
97
- return `${major}.${minor}.${patch}.${hotfix}`
98
- }