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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Brick – UI Components for Modern Web Apps

214 点作者 dkannan将近 12 年前

27 条评论

jwilliams将近 12 年前
Interesting, although I think the &quot;beta&quot; is quite literal. Seems to lack a bit of polish.<p>The one I was most interested in was the Date Picker, but locks up Chrome (28) and Safari (6) on my machine. <a href="http://mozilla.github.io/brick/component/datepicker/demo/index.html" rel="nofollow">http:&#x2F;&#x2F;mozilla.github.io&#x2F;brick&#x2F;component&#x2F;datepicker&#x2F;demo&#x2F;ind...</a>
评论 #6224536 未加载
评论 #6223562 未加载
评论 #6224264 未加载
评论 #6223451 未加载
评论 #6223669 未加载
评论 #6223867 未加载
评论 #6223586 未加载
评论 #6223783 未加载
评论 #6226000 未加载
评论 #6225327 未加载
casual_slacker将近 12 年前
Looks like these are built on Polymer. (<a href="http://www.polymer-project.org/" rel="nofollow">http:&#x2F;&#x2F;www.polymer-project.org&#x2F;</a>).
评论 #6224560 未加载
评论 #6223833 未加载
评论 #6224873 未加载
bpatrianakos将近 12 年前
This is cool and certainly useful but I have concerns. Forgetting for a moment that this is a shim and imagining that all browsers support this natively, isn&#x27;t this sort of thing outside the intended purpose of html. Html should describe content not styling and this sort of thing seems ripe for abuse. I thought XML was the markup language for describing custom data. Adding the ability to create your own DOM elements for the purpose of using them as hooks for interactivity and styling seems like something that should be avoided in HTML.<p>Am I being a too much of a purist or overlooking something here?
评论 #6224694 未加载
评论 #6224648 未加载
评论 #6224495 未加载
评论 #6224490 未加载
OlavHN将近 12 年前
These are UI elements built on top of (a shim for) the coming standard Web Components.<p>For another Web Components shim check out polymer-project.org along with a small, opinionated framework leveraging Web Components. Especially look at the awesome Sandbox application allowing you to compose web components :)
rubyn00bie将近 12 年前
I think it&#x27;s fucking awesome and it works like a boss in FF 24 (beta) on OS X. I&#x27;m very excited about this project only because standard UI elements are so irritating to make (after having done it hundreds of times) and the alternative libraries (in my opinion) all do too much and too little at the same time.<p>For everyone complaining about Chrome, I would like to say this is &quot;beta&quot; and &quot;ahahahahaha.&quot;<p>Not to be malicious though! I just have a really shit experience on the web with a lot developers only targeting Chrome&#x2F;Webkit. Like ScalaTour for instance-- a wretched experience if you&#x27;re &#x2F;not&#x2F; using Chrome (read unusable).<p>It&#x27;s nice to see it go the other way for once! ;-)
itry将近 12 年前
Calendar looks broken in FF and Chrome here. All I see is:<p><pre><code> 21 21 21 21 21 21 21 21 21 21 21 </code></pre> According to Browsershots it looks like this on many browsers:<p><a href="http://browsershots.org/http://mozilla.github.io/brick/component/calendar/demo/index.html" rel="nofollow">http:&#x2F;&#x2F;browsershots.org&#x2F;http:&#x2F;&#x2F;mozilla.github.io&#x2F;brick&#x2F;compo...</a><p>Same with the datepicker.<p>Some other stuff also looks broken.<p>I would much prefer one piece of javascript per component. So if I liked one, I could use it and improve it. Im not so much inclined to use a library of tons of stuff I dont use.
评论 #6227167 未加载
nrivadeneira将近 12 年前
First thing I thought of when I read the name was Designmodo&#x27;s UI kit &quot;The Bricks&quot; - <a href="http://designmodo.com/the-bricks-addons/" rel="nofollow">http:&#x2F;&#x2F;designmodo.com&#x2F;the-bricks-addons&#x2F;</a><p>When it comes to search, their kit might eclipse yours...at least for the time being.
nilsbunger将近 12 年前
These are a big step forward compared to today&#x27;s tangle of plugins! Much smoother and nicer to code.<p>On IE10 this library has no animations. Is it possible to polyfill your way to decent support with animations at least on IE10?<p>(I hate IE but a lot of our customers use it)
csuwldcat将近 12 年前
The folks working on the components are going to be incorporating all this feedback and reporting going forward. Everyone is encouraged to file bugs with the repo here: <a href="https://github.com/mozilla/brick/issues" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;brick&#x2F;issues</a><p>Just an FYI - Mozilla will be employing this highly technical problem resolution strategy to ensure a high level of quality prior to official release: <a href="http://www.youtube.com/watch?v=yo3uxqwTxk0" rel="nofollow">http:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=yo3uxqwTxk0</a>
SchizoDuckie将近 12 年前
The first example (flip widget) already does exactly nothing on Android.
评论 #6223678 未加载
评论 #6223549 未加载
potch将近 12 年前
We&#x27;ve pushed a stopgap fix to the calendar code to stop it from hanging while we investigate&#x2F;repro the issue.
rafaelferreira将近 12 年前
At first glance, the intent seems quite similar to Google&#x27;s Polymer project. Hopefully they will interoperate.
drudru11将近 12 年前
With this and Polymer, I think the whole idea of software components might actually happen. I cannot wait for this to happen. Having this stuff would be great!<p>Thanks to the people behind HTML5 for kicking off the innovation.<p>Thanks to the team that put this together at Mozilla. I went to the demo page and things <i>just worked</i>.
thousande将近 12 年前
Ah! It continues Web Components are the most exciting thing on the Web at the moment. I can not wait until this is fully supported in the browser.<p>There is a lot of great JS frameworks out there that projects DOM etc., but I always fall back to markup as the best way to build a browser based app
cliveowen将近 12 年前
The date picker actually froze Chrome and slowed everything to a crawl. Way to go Mozilla.
评论 #6223531 未加载
ldoubleuz将近 12 年前
For those of you reporting crashes in calendar&#x2F;datepicker, can you please indicate what region you are in (UK, etc)? The issue is most likely caused by non-American date formats, and we are working on a fix.
ebbv将近 12 年前
While I understand the desire for custom HTML elements I&#x27;m also certain they are going to result in monstrosities.<p>It&#x27;s not the tool&#x27;s fault, in the end. But it is opening up a basket of horrors.
utopkara将近 12 年前
Excellent! Didn&#x27;t know about web components. Are there any big blockers that would prevent libraries like jQuery Mobile moving into this?
phpnode将近 12 年前
yeesh, I respect Mozilla for their true open-source-everything-all-the-time philosophy but this is an example where I think it backfires - it&#x27;s too early! Even if these really are awesome components it&#x27;s really hard to see past the lack of polish. People are fickle and you only get one chance to make a first impression, it&#x27;s important that these things look good
评论 #6223868 未加载
评论 #6224601 未加载
评论 #6223936 未加载
dlsym将近 12 年前
The Datepicker Demo bricked my Chrome :-&#x2F;
madoublet将近 12 年前
Unless I am missing it, I think the killer feature for a library like this would be baked-in gesture support.
kclay将近 12 年前
While this is great it doesn&#x27;t work in Android Webview or &quot;Browser&quot;, in chrome its just fine.
Kiro将近 12 年前
Doesn&#x27;t work on my phone (Samsung Galaxy S3, Android Stock Browser).
评论 #6224231 未加载
varunkumar将近 12 年前
What are the building blocks of Brick?? Does it use X-Tags?
评论 #6226772 未加载
aswanson将近 12 年前
Doesnt render well on Opera mobile.
评论 #6226351 未加载
detay将近 12 年前
calendar crashes on Chrome 28.0.1500.95
pfisch将近 12 年前
So does this work on ios or not?