项目
在 GitHub 查看
insin/react-hn
关于
由 React 驱动的 Hacker News 客户端
网站与应用开发可以做什么
- Supports display of all item types: stories, jobs, polls and comments
- Basic user profiles
- Collapsible comment threads, with child counts
- "Realtime" updates (free via Firebase!)
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- -6
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文react-hn
A React & react-router-powered implementation of Hacker News using its Firebase API.
Live version: https://insin.github.io/react-hn
Features
- Supports display of all item types: stories, jobs, polls and comments
- Basic user profiles
- Collapsible comment threads, with child counts
- "Realtime" updates (free via Firebase!)
- Last visit details for stories are cached in
localStorage - New comments are highlighted:
- Comments since your last visit to an item
- New comments which load while you're reading an item
- New comments in collapsed threads
- Automatic or manual collapsing of comment threads which don't contain any new comments
- Manual highlighting of the X most recent comments to catch up on threads you were reading elsewhere
- Stories with new comments are marked on list pages
- Stories can be marked as read to remove highighting from new comments
- "comments" sections driven by the Changed Items API
- Story listing pages are cached in
sessionStoragefor quick back button usage and pagination in the same session - Configurable settings:
- auto collapse - automatically collapse comment threads without new comments on page load
- show reply links - show "reply" links to Hacker News
- show dead - show items flagged as dead
- show deleted - show comments flagged as deleted in threads
- Delayed comment detection - so tense! Who will it be? What will they say?
Building
Install dependencies:
npm install
npm scripts
npm start- start development servernpm run build- build into thedist/directorynpm run lint- lintsrc/npm run lint:fix- lintsrc/and auto-fix issues where possible
MIT Licensed
探索相关项目
加载中…
