clawaid 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/index.html +17 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawaid",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "AI-powered diagnostic and repair tool for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/web/index.html CHANGED
@@ -786,7 +786,7 @@
786
786
  </div>
787
787
 
788
788
  <div class="footer">
789
- <p>ClawAid v1.0.0 · <a href="https://github.com/jjj5666/clawaid" target="_blank">GitHub</a></p>
789
+ <p>ClawAid v1.1.0 · <a href="https://clawaid.app" target="_blank">clawaid.app</a></p>
790
790
  </div>
791
791
 
792
792
  </div>
@@ -1210,14 +1210,22 @@
1210
1210
  }
1211
1211
 
1212
1212
  function showPaywall(data) {
1213
- const isChinese = Boolean(data.isChinese);
1214
- const price = data.price || (isChinese ? '¥9.9' : '$1.99');
1215
- const credits = data.credits || 0;
1216
-
1217
- $('paywall-price').textContent = price;
1218
- $('paywall-credits').textContent = credits > 0
1219
- ? `Includes ${credits} credits`
1220
- : 'Credits for more scans';
1213
+ // data.price may be an object { price, currency, isChinese, credits } or a string
1214
+ let priceStr, isChinese, credits;
1215
+ if (data.price && typeof data.price === 'object') {
1216
+ priceStr = data.price.price || (data.price.currency === 'CNY' ? '¥9.9' : '$1.99');
1217
+ isChinese = data.price.isChinese;
1218
+ credits = data.price.credits || data.credits || 5;
1219
+ } else {
1220
+ priceStr = data.price || (data.isChinese ? '¥9.9' : '$1.99');
1221
+ isChinese = Boolean(data.isChinese);
1222
+ credits = data.credits || 5;
1223
+ }
1224
+
1225
+ $('paywall-price').textContent = priceStr;
1226
+ $('paywall-credits').textContent = isChinese
1227
+ ? `包含 ${credits} 次修复`
1228
+ : `Includes ${credits} fix credits`;
1221
1229
 
1222
1230
  showOnly('paywall');
1223
1231
  }