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.
- package/package.json +1 -1
- package/web/index.html +17 -9
package/package.json
CHANGED
package/web/index.html
CHANGED
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
</div>
|
|
787
787
|
|
|
788
788
|
<div class="footer">
|
|
789
|
-
<p>ClawAid v1.
|
|
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
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
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
|
}
|