Skip to content

Commit b9cb6c1

Browse files
committed
chore: 重命名项目为 "tica-math"
- 更新相关配置文件以反映新名称,包括 package.json、package-lock.json、start-server.js 和 vite.config.ts 中的基础路径设置。
1 parent 088841e commit b9cb6c1

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "math-game",
2+
"name": "tica-math",
33
"version": "1.0.0",
44
"description": "Tica侦探事务所:数字谜案 - 一款为8-10岁儿童设计的数学学习游戏",
55
"main": "dist/main.js",

start-server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const server = http.createServer((req, res) => {
1515
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE');
1616
res.setHeader('Access-Control-Allow-Headers', 'Content-Type');
1717

18-
// 处理路径 - 支持 /math-game/ 基础路径
18+
// 处理路径 - 支持 /tica-math/ 基础路径
1919
let requestPath = req.url;
2020

21-
// 移除 /math-game/ 前缀(如果存在)
22-
if (requestPath.startsWith('/math-game/')) {
23-
requestPath = requestPath.substring('/math-game'.length);
21+
// 移除 /tica-math/ 前缀(如果存在)
22+
if (requestPath.startsWith('/tica-math/')) {
23+
requestPath = requestPath.substring('/tica-math'.length);
2424
}
2525

2626
// 处理根路径

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import path from 'path'
77
export default defineConfig({
88
root: 'src',
99
publicDir: 'assets',
10-
base: process.env.NODE_ENV === 'production' ? '/math-game/' : '/', // GitHub Pages路径
10+
base: process.env.NODE_ENV === 'production' ? '/tica-math/' : '/', // GitHub Pages路径
1111
build: {
1212
outDir: '../dist',
1313
emptyOutDir: true,

0 commit comments

Comments
 (0)