TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A React.js yearly calendar component

94 点作者 GiovanniFrigo超过 9 年前

10 条评论

fphilipe超过 9 年前
That&#x27;s an interesting way of showing a calendar. Is this common practice? I&#x27;ve never seen this before. I think the only yearly calendar I&#x27;ve seen more often lately is the one used on the GitHub profiles (here&#x27;s a d3 one: <a href="http:&#x2F;&#x2F;bl.ocks.org&#x2F;mbostock&#x2F;4063318" rel="nofollow">http:&#x2F;&#x2F;bl.ocks.org&#x2F;mbostock&#x2F;4063318</a>).
评论 #10574631 未加载
评论 #10574509 未加载
评论 #10574641 未加载
exizt88超过 9 年前
100 ms delay on every click (measured in Chrome&#x27;s Profiles tab). I&#x27;m on a 2013 MBP. Seems a bit too much for making a number bold.
评论 #10574844 未加载
eterm超过 9 年前
I&#x27;d like to see an option to move the start of the week (first column and bolded column) to Monday (for those of us who prefer w&#x2F;c monday).<p>I&#x27;ll have a go myself when I get home, if I&#x27;m successful I&#x27;ll submit a pull request.
评论 #10575831 未加载
hueking超过 9 年前
Sorry for asking this here, but I&#x27;m trying wrap my head around React. With the fact that we want to isolate styles for each component, how do we go about theming the components later on?
评论 #10575294 未加载
评论 #10575743 未加载
PointerReaper超过 9 年前
You might consider some people won&#x27;t be able to use this calendar as-is; it isn&#x27;t accessible. Consider <a href="http:&#x2F;&#x2F;www.456bereastreet.com&#x2F;archive&#x2F;201302&#x2F;making_elements_keyboard_focusable_and_clickable&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.456bereastreet.com&#x2F;archive&#x2F;201302&#x2F;making_elements...</a> and perhaps change the spans to native HTML elements with visual and keyboard focus. Thanks for sharing!
评论 #10586718 未加载
CharlesMerriam2超过 9 年前
I&#x27;m confused.<p>1. This is a fork from Hanse Kristian, who doesn&#x27;t appear to work for your company. That is, it doesn&#x27;t look like BelkaLab did anything but change package.json to name itself as the author.<p>2. It&#x27;s a bit confusing why you put the generated demo.js file as part of the repository and have npm (.npmignore) ignore the src files. Is there something special about this demo.js file instead of it being browserify output?
CharlieTrip超过 9 年前
Thanks. Really useful and you save me a lot of time! If I found some problem I&#x27;ll contact you ;)
评论 #10574855 未加载
dominotw超过 9 年前
Nice work!!.<p>Side comment: I was expecting some sort of a &#x27;marketplace&#x27; to emerge for react components. I am surprised by so few reusable react components.
评论 #10577016 未加载
HipstaJules超过 9 年前
Wow, very useful. I&#x27;m going to use it for sure.
评论 #10574665 未加载
klkvsk超过 9 年前
Is that really worth showing to HN? I mean, I dont want to be rude -- your code is ok, no problem here -- but it&#x27;s not even a library, it is just a widget in 200 LOC, that renders a single table. What&#x27;s the achievement here?
评论 #10574971 未加载
评论 #10574968 未加载
评论 #10575000 未加载
评论 #10575045 未加载