简体   繁体   English

GWT-Bootstrap与GwtBootstrap3

[英]GWT-Bootstrap vs. GwtBootstrap3

As far as I can tell there are two librarys for Twitter Bootstrap integration in GWT. 据我所知,GWT中有两个用于Twitter Bootstrap集成的库。 There is GWT-Bootstrap and GwtBootstrap3 . GWT-BootstrapGwtBootstrap3 I have just started a project built on GWT-Bootstrap, since I did not realize that there is another GWT Bootstrap integration out there. 我刚刚开始建立一个基于GWT-Bootstrap的项目,因为我没有意识到还有另一个GWT Bootstrap集成。

Both project look pretty active on GitHub, althought GWT-Bootstrap does have more members. 这两个项目在GitHub上都非常活跃,但GWT-Bootstrap确实有更多的成员。 I understand that GWT-Bootstrap is based on Bootstrap version 2. On the other hand GwtBootstrap3 wrapps Bootstrap version 3 and seems to have some more widgets avaliable. 据我所知,GWT-Bootstrap基于Bootstrap版本2.另一方面,GwtBootstrap3包含Bootstrap版本3,似乎有更多的小部件可用。 Since the GWT-Bootstrap project is still avtive, I assume they will move to version 3 as well, sooner or later. 由于GWT-Bootstrap项目仍然是avtive,我认为他们迟早会转移到版本3。

So what is the difference between the two projects? 那两个项目有什么区别? Does someone have experience with both of them? 有人有经验吗? Which would you choose? 你会选哪个? Is GwtBootstrap3 worth to swicht an already running project? GwtBootstrap3值得开始一个已经运行的项目吗?

I'm the author of GwtBootstrap3 . 我是GwtBootstrap3的作者。 Before I started to work on GwtBootstrap3 I've been using GWT-Bootstrap, fixed some bugs and added some features. 在我开始使用GwtBootstrap3之前,我一直在使用GWT-Bootstrap,修复了一些错误并添加了一些功能。 When Bootstrap 3 was released I decided to create a new project from scratch because lots has changed between Bootstrap 2 and 3. Some components were removed while new ones were added, CSS classes have changed etc. Also BS3's primary focus was "mobile first". 当Bootstrap 3发布时,我决定从头开始创建一个新项目,因为在Bootstrap 2和3之间有很多变化。一些组件被删除而新的组件被添加,CSS类已经改变等。此外,BS3的主要焦点是“移动优先”。 Regarding GWT-Bootstrap this means lots of refactoring. 关于GWT-Bootstrap,这意味着很多重构。 A GWT-Bootstrap version based on BS3 would definitively not be backwards-compatible. 基于BS3的GWT-Bootstrap版本肯定不会向后兼容。 I'm not sure how far GWT-Bootstrap's migration is, see issue #448 . 我不确定GWT-Bootstrap的迁移到底有多远,请参阅问题#448

While not all features have yet been implemented in GwtBootstrap3 and some issues need to be sorted out, I would say that GwtBootstrap3 is ready for use in new projects. 虽然并非所有功能都已在GwtBootstrap3中实现,并且需要解决一些问题,但我会说GwtBootstrap3已准备好用于项目。 Some real life projects were already implemented using GwtBootstrap3. 一些现实生活中的项目已经使用GwtBootstrap3实现。 A migration from GWT-Bootstrap might be possible but since we didn't intend to be GWT-Bootstrap compatible refactoring is certainly required. 从GWT-Bootstrap迁移可能是可能的,但由于我们不打算将GWT-Bootstrap兼容,因此肯定需要重构。

When designing GwtBootstrap3 we took great care to outsource any third party components into an extra module . 在设计GwtBootstrap3时,我们非常谨慎地将任何第三方组件外包到一个额外的模块中 In this module you'll find useful widgets that are not part of the core BS3 distribution. 在本单元中,您将找到不属于核心BS3发行版的有用小部件。 Unfortunately GWT-Bootstrap mixes core and third party components into one library which imho makes it unnecessarily complex and hard to maintain. 不幸的是GWT-引导混合核心和第三方组件集成到一个库, 恕我直言,使得它过于复杂和难以维护。

If you're happy with BS2 then you should stick with GWT-Bootstrap. 如果你对BS2感到满意,那么你应该坚持使用GWT-Bootstrap。
If you want to use BS3 your only options seems to be GwtBootstrap3 at the moment. 如果你想使用BS3,你现在唯一的选择似乎是GwtBootstrap3。

One thing also to note is that Bootstrap has dropped support for v2.3.3 which is what GWT-Bootstrap uses. 还有一点需要注意的是,Bootstrap已经放弃了对v2.3.3的支持,这是GWT-Bootstrap使用的。

With GwtBootstrap3, it is on the current v3.1.1 version and has almost every element supported (still some work needed for a few: https://github.com/gwtbootstrap3/gwtbootstrap3/wiki/Supported-Features ) 使用GwtBootstrap3,它在当前的v3.1.1版本上并且几乎支持所有元素(仍然需要一些工作: https//github.com/gwtbootstrap3/gwtbootstrap3/wiki/Supported-Features

GwtBootstrap3 is also written to mimic the HTML structure of Bootstrap very well while written in UiBinder code. GwtBootstrap3也是为了在UiBinder代码中编写时很好地模仿Bootstrap的HTML结构。 This makes it very simple to follow and debug if you are used to writing HTML. 如果您习惯于编写HTML,这使得跟踪和调试变得非常简单。

A few colleagues have successfully converted from GWT-Bootstrap to GwtBootstrap3 without a hitch. 一些同事已经成功地从GWT-Bootstrap转换为GwtBootstrap3。 The main differences will be the Grid System and Forms/Input Groups. 主要区别在于网格系统和表单/输入组。 Since Bootstrap v3.0+ has added a lot of features: http://getbootstrap.com/getting-started/#migration . 由于Bootstrap v3.0 +增加了许多功能: http//getbootstrap.com/getting-started/#migration

If you need any help or support while using GwtBootstrap3, feel free to drop a question at our Google Group or if you find an issue with the library you can create an issue on the github repo. 如果您在使用GwtBootstrap3时需要任何帮助或支持,请随时向我们的Google小组发送问题,或者如果您发现库存在问题,可以在github repo上创建问题。

Thanks, Joshua Godi 谢谢,Joshua Godi

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM