modify files
This commit is contained in:
BIN
AIGrammar.xcworkspace/xcuserdata/oscar.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
BIN
AIGrammar.xcworkspace/xcuserdata/oscar.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
Binary file not shown.
10
AIGrammar/Info.plist
Normal file
10
AIGrammar/Info.plist
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>UIBackgroundModes</key>
|
||||||
|
<array>
|
||||||
|
<string>remote-notification</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@ -379,7 +379,7 @@ struct TranslateCardView: View {
|
|||||||
logger.info("Synthesis succ.")
|
logger.info("Synthesis succ.")
|
||||||
}, onFailure: { error in
|
}, onFailure: { error in
|
||||||
isSynthesizing = false
|
isSynthesizing = false
|
||||||
logger.info("Synthesis error: \(error)")
|
logger.error("Synthesis error: \(error)")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
46
commit.sh
Executable file
46
commit.sh
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 确保脚本有执行权限(只需执行一次)
|
||||||
|
# chmod +x git_commit.sh
|
||||||
|
|
||||||
|
# 检查是否在 Git 仓库内
|
||||||
|
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
||||||
|
echo "❌ 当前目录不是 Git 仓库,请先执行 git init"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 获取 commit message
|
||||||
|
commit_msg="$1"
|
||||||
|
|
||||||
|
# 如果没有提供 commit message,提示用户输入
|
||||||
|
if [ -z "$commit_msg" ]; then
|
||||||
|
commit_msg="modify files"
|
||||||
|
#read -p "请输入 commit message: " commit_msg
|
||||||
|
#if [ -z "$commit_msg" ]; then
|
||||||
|
# echo "❌ 提交信息不能为空!"
|
||||||
|
# exit 1
|
||||||
|
#fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 添加所有更改
|
||||||
|
git add .
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "❌ git add 失败!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 提交更改
|
||||||
|
git commit -m "$commit_msg"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "❌ git commit 失败!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 推送到远程仓库
|
||||||
|
git push -u origin master
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "❌ git push 失败!请检查远程仓库设置。"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "✅ 代码提交成功!"
|
||||||
Reference in New Issue
Block a user