feat(react19-migration): 阶段1 - 项目基础设施重建
- T1.1: 卸载 Vue 依赖,安装 React 19 + Ant Design 5 + Zustand 5 + AntV 全家桶 - T1.2: Vite 配置迁移 (plugin-vue → plugin-react, manualChunks 更新) - T1.3: TypeScript 配置迁移 (jsx: preserve → react-jsx, 移除 .vue) - T1.4: ESLint 配置迁移 (Vue 规则 → React/Hooks/Refresh 规则) - T1.5: 入口文件迁移 (main.ts → main.tsx, App.vue → App.tsx, div#app → div#root) 验证: npm run dev 成功启动空白 React 应用
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
SECRET="NovalonManageSystemSecretKey2026"
|
||||
METHOD=$1
|
||||
URL=$2
|
||||
BODY=$3
|
||||
|
||||
TIMESTAMP=$(python3 -c "import time; print(int(time.time() * 1000))")
|
||||
NONCE="${TIMESTAMP}-$(head /dev/urandom | LC_ALL=C tr -dc 'a-z0-9' | head -c 13)"
|
||||
|
||||
PATH_PART=$(echo "$URL" | sed -E 's|^https?://[^/]+||' | sed 's|\?.*||')
|
||||
QUERY_PART=$(echo "$URL" | sed -E 's|^https?://[^/]+||' | sed -n 's|.*\?||p')
|
||||
|
||||
STRING_TO_SIGN="${METHOD}
|
||||
${PATH_PART}
|
||||
${QUERY_PART}
|
||||
${BODY}
|
||||
${TIMESTAMP}
|
||||
${NONCE}"
|
||||
|
||||
SIGNATURE=$(echo -n "$STRING_TO_SIGN" | openssl dgst -sha256 -hmac "$SECRET" -binary | base64)
|
||||
|
||||
echo "X-Signature: $SIGNATURE"
|
||||
echo "X-Timestamp: $TIMESTAMP"
|
||||
echo "X-Nonce: $NONCE"
|
||||
Reference in New Issue
Block a user