-
Notifications
You must be signed in to change notification settings - Fork 16
feat: prop tokenId #595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: prop tokenId #595
Changes from all commits
1c58e4e
46547a4
8fa5487
3a01eb2
76d0bfc
ea30d50
6348b48
7dc3553
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1126,6 +1126,36 @@ donationRate = 10 | |
| ``` | ||
| <!-- tabs:end --> | ||
|
|
||
| ## token-id | ||
|
|
||
| > **「tokenId」 参数用于定义在按钮或小组件中使用的 eToken。** | ||
|
|
||
| ?> tokenId 参数是可选的。它接受一个包含 token ID 的字符串。默认值为 null。 | ||
|
|
||
|
|
||
| **Example:** | ||
| <!-- tabs:start --> | ||
|
|
||
| #### **HTML** | ||
|
|
||
| ```html | ||
| token-id="c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4" | ||
| ``` | ||
|
|
||
| #### **JavaScript** | ||
|
|
||
| ```javascript | ||
| tokenId: "c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4" | ||
| ``` | ||
|
|
||
| #### **React** | ||
|
|
||
| ```react | ||
| tokenId = "c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4" | ||
| ``` | ||
| <!-- tabs:end --> | ||
|
|
||
|
Comment on lines
1129
to
1157
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's check the actual file and look at the specific lines
cat -n docs/zh-cn/README.md | sed -n '1129,1157p'Repository: PayButton/paybutton Length of output: 761 🏁 Script executed: # Also check if markdownlint is available and what it reports for this section
which markdownlint && markdownlint docs/zh-cn/README.md | grep -E "1129|1130|1131|1132|1133|1134|1135|1136|1137|1138|1139|1140|1141|1142|1143|1144|1145|1146|1147|1148|1149|1150|1151|1152|1153|1154|1155|1156|1157" || echo "markdownlint not available"Repository: PayButton/paybutton Length of output: 150 🏁 Script executed: # Alternative: Check if there are linting tools in the repo
find . -name ".markdownlintrc*" -o -name "markdownlint*" -o -name ".lintrc*" | head -20Repository: PayButton/paybutton Length of output: 45 Fix markdown linting violations: spaces in tab heading emphasis markers and heading level increment. The section contains formatting issues in the tab headings:
🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
| # 贡献 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1122,6 +1122,37 @@ donationRate = 10 | |
| ``` | ||
| <!-- tabs:end --> | ||
|
|
||
| ## token-id | ||
|
|
||
| > **「tokenId」 參數用於定義在按鈕或小工具中使用的 eToken。** | ||
|
|
||
| ?> tokenId 參數為選填。它接受一個包含 token ID 的字串。預設值為 null。 | ||
|
|
||
|
|
||
| **Example:** | ||
| <!-- tabs:start --> | ||
|
|
||
| #### **HTML** | ||
|
|
||
| ```html | ||
| token-id="c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4" | ||
| ``` | ||
|
|
||
| #### **JavaScript** | ||
|
|
||
| ```javascript | ||
| tokenId: "c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4" | ||
| ``` | ||
|
|
||
| #### **React** | ||
|
|
||
| ```react | ||
| tokenId = "c67bf5c2b6d91cfb46a5c1772582eff80d88686887be10aa63b0945479cf4ed4" | ||
| ``` | ||
| <!-- tabs:end --> | ||
|
|
||
|
Comment on lines
1125
to
1153
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# First, check if markdownlint is available, if not install it
if ! command -v markdownlint &> /dev/null; then
npm install -g markdownlint-cli 2>/dev/null || pip install markdownlint-md 2>/dev/null || echo "Installing markdownlint..."
fi
# Check markdown files exist
echo "=== Checking files ==="
ls -la docs/zh-tw/README.md docs/zh-cn/README.md 2>&1 | head -20
# Get line counts for context
echo -e "\n=== File line counts ==="
wc -l docs/zh-tw/README.md docs/zh-cn/README.md
# Extract the token-id section from zh-tw file (lines 1125-1153)
echo -e "\n=== zh-tw token-id section (lines 1125-1153) ==="
sed -n '1125,1153p' docs/zh-tw/README.md | cat -n
# Extract the same section from zh-cn for comparison
echo -e "\n=== zh-cn token-id section (approx same location) ==="
sed -n '1125,1153p' docs/zh-cn/README.md | cat -nRepository: PayButton/paybutton Length of output: 149 🏁 Script executed: #!/bin/bash
# Try to run markdownlint on the specific files if available
if command -v markdownlint &> /dev/null; then
echo "=== Markdown linting results for zh-tw ==="
markdownlint docs/zh-tw/README.md 2>&1 | grep -A 10 "token-id" || markdownlint docs/zh-tw/README.md 2>&1 | grep -A 10 "1131\|1137\|1143" || markdownlint docs/zh-tw/README.md 2>&1 | head -50
fi
# Check for markdownlint configuration files
echo -e "\n=== Looking for markdownlint config ==="
find . -maxdepth 3 -name ".markdownlint*" -o -name "markdownlint*" | head -10Repository: PayButton/paybutton Length of output: 103 🏁 Script executed: #!/bin/bash
# Read specific lines from zh-tw README
echo "=== Lines 1125-1153 from docs/zh-tw/README.md ==="
sed -n '1125,1153p' docs/zh-tw/README.md
echo -e "\n=== Checking line 1131 specifically ==="
sed -n '1131p' docs/zh-tw/README.md | cat -A
echo -e "\n=== Lines around emphasis markers (1131, 1137, 1143) ==="
sed -n '1130,1145p' docs/zh-tw/README.md | cat -nRepository: PayButton/paybutton Length of output: 1078 🏁 Script executed: #!/bin/bash
# Compare with zh-cn version
echo "=== Lines 1125-1153 from docs/zh-cn/README.md ==="
sed -n '1125,1153p' docs/zh-cn/README.md
echo -e "\n=== Check line 1131 in zh-cn ==="
sed -n '1131p' docs/zh-cn/README.md | cat -A
echo -e "\n=== Lines around emphasis markers in zh-cn (1131, 1137, 1143) ==="
sed -n '1130,1145p' docs/zh-cn/README.md | cat -nRepository: PayButton/paybutton Length of output: 1248 Fix markdown linting violations in the token-id section. The file contains markdown linting violations:
These match the same violations present in the Simplified Chinese version. 🧰 Tools🪛 Gitleaks (8.30.0)[high] 1138-1138: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 1144-1144: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 1150-1150: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) 🪛 markdownlint-cli2 (0.18.1)1135-1135: Heading levels should only increment by one level at a time (MD001, heading-increment) 1135-1135: Spaces inside emphasis markers (MD037, no-space-in-emphasis) 1135-1135: Spaces inside emphasis markers (MD037, no-space-in-emphasis) 1141-1141: Spaces inside emphasis markers (MD037, no-space-in-emphasis) 1141-1141: Spaces inside emphasis markers (MD037, no-space-in-emphasis) 1147-1147: Spaces inside emphasis markers (MD037, no-space-in-emphasis) 1147-1147: Spaces inside emphasis markers (MD037, no-space-in-emphasis) 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
|
|
||
| # 貢獻 | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.