docs: update design-system font to Geist + fix create-app.sh Gitea auth

- design-system.md: Inter → Geist
- create-app.sh: GITEA_TOKEN fallback → git credential store

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
posimai 2026-04-10 08:13:04 +09:00
parent 7cf305fdc0
commit e3e6ebca7d
2 changed files with 16 additions and 14 deletions

View File

@ -60,20 +60,22 @@ echo " Git 初期化完了"
echo ""
echo "Step 3: Gitea にリポジトリを作成..."
# Gitea の認証情報(~/.netrc または環境変数から取得)
GITEA_TOKEN="${GITEA_TOKEN:-}"
if [ -n "$GITEA_TOKEN" ]; then
GITEA_AUTH="-H \"Authorization: token $GITEA_TOKEN\""
curl -s -X POST "http://100.76.7.3:3000/api/v1/user/repos" \
# git credential store から認証情報を取得
GITEA_PASS=$(git credential fill <<< $'protocol=http\nhost=100.76.7.3:3000' | grep password | cut -d= -f2)
if [ -z "$GITEA_PASS" ]; then
echo "[ERROR] Gitea credential が取得できませんでした。git credential store を確認してください。"
exit 1
fi
GITEA_RESP=$(curl -s -X POST "http://100.76.7.3:3000/api/v1/user/repos" \
-H "Content-Type: application/json" \
-H "Authorization: token $GITEA_TOKEN" \
-d "{\"name\":\"$APP_ID\",\"private\":false,\"auto_init\":false}" \
> /dev/null
echo " Gitea リポジトリ作成完了API"
-u "mai:$GITEA_PASS" \
-d "{\"name\":\"$APP_ID\",\"private\":false,\"auto_init\":false}")
if echo "$GITEA_RESP" | grep -q '"full_name"'; then
echo " Gitea リポジトリ作成完了"
elif echo "$GITEA_RESP" | grep -q 'same name already exists'; then
echo " Gitea リポジトリは既存。push のみ実行します。"
else
echo " [WARN] GITEA_TOKEN 未設定。Gitea リポジトリは手動で作成してください:"
echo " → http://100.76.7.3:3000 で $APP_ID リポジトリを作成後、Enter を押してください"
read -r
echo " [WARN] Gitea 応答: $GITEA_RESP"
fi
# --- Step 4: GitHub にリポジトリ作成 ---

View File

@ -35,7 +35,7 @@
```
## デザイン・実装ルール
- **フォント**: Inter300/400/500/600
- **フォント**: Geist300/400/500/600— Google Fonts CDN から配信
- **アイコン**: Lucidestroke 1.5〜2.0、`@0.344.0` 固定)
- **トランジション**: `0.12s〜0.3s` の範囲、標準イージング `cubic-bezier(0.2, 0.9, 0.2, 1)`
- **空状態 (Empty State)**: 必ずアイコン + 説明テキストを実装する(空コンテナ禁止)