@aiyiran/myclaw 1.1.181 → 1.1.182
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.
|
@@ -817,7 +817,7 @@
|
|
|
817
817
|
// CSP img-src 限制后续在服务端统一放行,此处不做 blob 绕行
|
|
818
818
|
var img = document.createElement('img');
|
|
819
819
|
img.src = isRemote()
|
|
820
|
-
? previewUrl
|
|
820
|
+
? previewUrl
|
|
821
821
|
: MYCLAW_API_BASE + '/api/file?path=' + encodeURIComponent(getWorkspaceId() + '/' + asset.path) + '&t=' + Date.now();
|
|
822
822
|
img.alt = asset.name || asset.path;
|
|
823
823
|
img.style.cssText = [
|
|
@@ -1177,7 +1177,7 @@
|
|
|
1177
1177
|
video.controls = true;
|
|
1178
1178
|
video.style.cssText = 'flex:1;width:100%;max-height:100%;background:#000;outline:none;';
|
|
1179
1179
|
video.src = isRemote()
|
|
1180
|
-
? previewUrl
|
|
1180
|
+
? previewUrl
|
|
1181
1181
|
: MYCLAW_API_BASE + '/api/file?path=' + encodeURIComponent(getWorkspaceId() + '/' + asset.path);
|
|
1182
1182
|
box.appendChild(video);
|
|
1183
1183
|
overlay.appendChild(box);
|
|
@@ -2896,7 +2896,7 @@
|
|
|
2896
2896
|
|
|
2897
2897
|
rightHeader.appendChild(infoSpan);
|
|
2898
2898
|
rightHeader.appendChild(openNewBtn);
|
|
2899
|
-
previewIframe.src = TEMPLATE_CDN_BASE + '/' + encodeURIComponent(tpl['文件夹名']) + '/' + (tpl['version'] || 'v1') + '/__student-view__.html
|
|
2899
|
+
previewIframe.src = TEMPLATE_CDN_BASE + '/' + encodeURIComponent(tpl['文件夹名']) + '/' + (tpl['version'] || 'v1') + '/__student-view__.html';
|
|
2900
2900
|
}
|
|
2901
2901
|
|
|
2902
2902
|
row.onclick = setActive;
|