@aiyiran/myclaw 1.1.77 → 1.1.78

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.
@@ -1055,13 +1055,9 @@
1055
1055
  + '&path=' + encodeURIComponent(filePath);
1056
1056
 
1057
1057
  if (['html', 'htm'].indexOf(ext) !== -1) {
1058
- // HTML → iframe srcdoc
1058
+ // HTML → iframe src (CDN)
1059
1059
  previewIframe.style.display = 'block';
1060
- previewIframe.srcdoc = '<body style="font:13px monospace;padding:20px;color:#888">加载中…</body>';
1061
- fetch(apiUrl)
1062
- .then(function (r) { return r.ok ? r.text() : Promise.reject('HTTP ' + r.status); })
1063
- .then(function (text) { previewIframe.srcdoc = text; })
1064
- .catch(function (e) { previewIframe.srcdoc = '<body style="font:13px monospace;padding:20px;color:#c00">加载失败: ' + e + '</body>'; });
1060
+ previewIframe.src = buildPreviewUrl(null, versionDir + '/' + filePath);
1065
1061
 
1066
1062
  } else if (['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg', 'bmp', 'ico'].indexOf(ext) !== -1) {
1067
1063
  // 图片 → <img> src 直接指向 API URL(浏览器可直接加载二进制)
package/index.js CHANGED
@@ -1505,7 +1505,7 @@ const MACHINE_CONFIG = [
1505
1505
  { name: 'Mo靖宇', claw: 'claw4', desc: 'Mo靖宇 的机器' },
1506
1506
  { name: '高兴', claw: 'claw5', desc: '高兴 的机器' },
1507
1507
  { name: '伊伊', claw: 'claw6', desc: '伊伊 的机器' },
1508
- { name: 'Thomas', claw: 'claw7', desc: 'Thomas 的机器' },
1508
+ { name: '梓浩', claw: 'claw7', desc: '梓浩 的机器' },
1509
1509
  { name: 'Eric', claw: 'claw8', desc: 'Eric 的机器' },
1510
1510
  { name: 'Mia', claw: 'claw9', desc: 'Mia 的机器' },
1511
1511
  { name: '雨熙', claw: 'claw10', desc: '雨熙 的机器' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {