This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import requests | |
| from dotenv import load_dotenv | |
| import shutil | |
| import re | |
| # 加載 .env 文件中的環境變量 | |
| load_dotenv() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| def add_localization(filepath): | |
| try: | |
| with open(filepath, 'r', encoding='utf-8') as f: | |
| content = f.read() | |
| data = json.loads(content) | |
| except json.JSONDecodeError as e: | |
| print(f"JSON 解碼錯誤:{e}") | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 翻譯必要性判斷 | |
| 你是一個專業的本地化專家,請根據提供的 Swift 代碼片段和原文,判斷該原文是否需要進行翻譯。 | |
| ### 判斷規則 | |
| - **需要翻譯 (YES)**: | |
| - 用戶界面 (UI) 上顯示的文本,例如按鈕文字、標籤、提示信息、錯誤信息、菜單項等。 | |
| - 應用程序內部邏輯中,會直接或間接影響用戶體驗的文本。 | |
| - 任何可能需要向用戶展示的字符串。 | |
| - **不需要翻譯 (NO)**: | |
| - 調試信息 (例如 `print("")` 中的內容)。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 76561197973847617 | |
| 830685888 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 對話規則 | |
| 每次開始對話前, | |
| 請使用 list_files 工具,列出 Docs/cline 下確定如下文檔的位置。 | |
| 請閱讀 | |
| 1. app-directory-guide.md // 項目目錄結構 | |
| 2. data-model-reference.md // 數據庫結構 | |
| 3. view-development-guide.md // 最佳實踐 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| function buildTest() { | |
| clear | |
| cp -rf ./lib/common/config_test.txt ./lib/common/config.dart | |
| EX_FOLDER="app-test" | |
| cat ./lib/common/config.dart | |
| echo "// ===" | |
| buildiOS | |
| buildAndroid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ScrollView.swift | |
| // SyncNext | |
| // | |
| // Created by 黃佁媛 on 2023/9/25. | |
| // | |
| import Foundation | |
| import SwiftUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Required parameters: | |
| # @raycast.schemaVersion 1 | |
| # @raycast.title Simulator Input | |
| # @raycast.mode silent | |
| # Optional parameters: | |
| # @raycast.icon ⌨️ | |
| # @raycast.argument1 { "type": "text", "placeholder": "Placeholder" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 請確保你已經先安裝了 Xcode Command Line Tools | |
| # 檢查參數是否提供新版本號 | |
| if [ -z "$1" ]; then | |
| echo "請提供新版本號作為腳本參數。" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "uuid": "e24b4542-ce5d-4625-b2cb-e40429945328", | |
| "json": [ | |
| { | |
| "type": 1, | |
| "name": "if101[屏蔽国内ip]", | |
| "api": "http://api.if101.tv/v1/vod" | |
| }, | |
| { | |
| "type": 0, |