Migrate project from typing_practiceweb

This commit is contained in:
2026-05-14 16:04:14 +08:00
parent dbc5425706
commit 0e87d5546d
225 changed files with 92811 additions and 0 deletions

38
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,38 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Frontend",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3001",
"webRoot": "${workspaceFolder}/src",
"preLaunchTask": "Start Frontend", // 添加这行
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*"
}
},
{
"name": "Debug Backend",
"type": "node",
"request": "launch", // 改为 launch
"runtimeExecutable": "nodemon",
"program": "${workspaceFolder}/server/server.ts",
"restart": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 5858,
"cwd": "${workspaceFolder}",
"skipFiles": [
"<node_internals>/**"
],
"outFiles": ["${workspaceFolder}/server/**/*.js"]
}
],
"compounds": [
{
"name": "Debug Full Stack",
"configurations": ["Debug Frontend", "Debug Backend"]
}
]
}

65
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,65 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "tsc: build - tsconfig.json",
"type": "shell",
"command": "tsc",
"args": ["-p", "tsconfig.json"],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
{
"owner": "typescript",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^(.+?)\\((\\d+),(\\d+)\\): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
}
],
"detail": "Generated task by TypeScript."
},
{
"label": "Start Frontend",
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": "^$"
},
"background": {
"activeOnStart": true,
"beginsPattern": "Starting the development server",
"endsPattern": "Compiled successfully|Failed to compile"
}
}
},
{
"label": "Start Backend",
"type": "npm",
"script": "dev",
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": "^$"
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Server is running"
}
}
}
]
}