Refactor frontend workspaces and centralize API contracts
Organize domain APIs and types under common/apis, shared components under named folders, and private workspace logic alongside each page. Use Bearer sessions, explicit response envelopes, session-aware routing and streams, and configurable login captcha presentation for the deployed backend contract. Preserve news, economic calendar, crawler, market, chat, Skills, settings, and demo trading workflows with responsive layouts and explicit configuration saves. Validate with frontend lint, type checking, 22 test groups, production builds, and deployed desktop/mobile page checks.
This commit is contained in:
1 parent
77b33e5e77
commit
bc480fb806
102 files changed
+4716
-1707
No files matched your search
+3
-2
@@ -9,6 +9,7 @@ import { defineConfig } from "vite"
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
"@@": resolve(import.meta.dirname, "src/common"),
|
||||
"@": resolve(import.meta.dirname, "src")
|
||||
}
|
||||
},
|
||||
@@ -32,11 +33,11 @@ export default defineConfig({
|
||||
UnoCSS(),
|
||||
AutoImport({
|
||||
imports: ["vue", "vue-router", "pinia"],
|
||||
dts: "types/auto-imports.d.ts",
|
||||
dts: "types/auto/auto-imports.d.ts",
|
||||
resolvers: [ElementPlusResolver()]
|
||||
}),
|
||||
Components({
|
||||
dts: "types/components.d.ts",
|
||||
dts: "types/auto/components.d.ts",
|
||||
resolvers: [ElementPlusResolver()]
|
||||
})
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user