mybb / mybb2

The repository for the MyBB 2 forum software. Not to be used on live boards.
https://www.mybb.com
BSD 3-Clause "New" or "Revised" License
111 stars 45 forks source link

Use Vue.js (or other framework) for front-end? #245

Open pklebba opened 8 years ago

pklebba commented 8 years ago

Hi!

As Laravel 5.3 are coming, it gives us better support of JavaScript frameworks. Laravel recommends Vue.js

So, maybe is a good time to use it in MyBB 2.0? I'm a very big fan of that solutions, it gives us optimized requests (Servers just loves it), faster and easier solutions than pure jQuery methods and more.

euantorano commented 8 years ago

Hi,

The JS is going to be rewritten (and using modern ES6 standards), but we've not yet settled on a framework. I've looked at Vue and it has some nice features, but is still quite young as a framework which could cause some problems should it stop being actively developed during 2.0's lifetime.

coniurare commented 7 years ago

Vue is used by Alibaba [0], Baidu, Tencent and Xiaomi. I wouldn't be surprised if they would jump in if the development should come to a halt.

[0] http://alibaba.github.io/weex/#subscriptionWeex

euantorano commented 7 years ago

Thanks @coniurare, that's good to know. At the minute, I'm rewriting some of our core JS classes (Spinner, cookie handling, etc.) to use TypeScript. I'll look at Vue further and see if I can wrap my head around it.

036 commented 7 years ago

I'd strongly suggest using Vue or Angular they're both extremely strong frameworks with lots of documentation and a good development team behind them.

QWp6t commented 7 years ago

Vue.js ships with Laravel 5.3+. It's not going anywhere anytime soon.

euantorano commented 7 years ago

@QWp6t I'm aware of that, I still need to look into it, as I said 2 comments above :wink:

1e4 commented 6 years ago

Did this ever make any progress?

euantorano commented 6 years ago

There still hasn’t been any consensus. Currently the focus is on 1.10 to try and bridge the gap between new and old (or current in this case). There have been some discussions about possibly heading down the route of a SPA, but there are a couple of hurdles that would need to be jumped over such as allowing views to be easily edited in the ACP without incurring the penalty of parsing performance at run time.

On 4 Dec 2017, at 16:34, Ian notifications@github.com wrote:

Did this ever make any progress?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

1e4 commented 6 years ago

Ok cool, well I guess I could add an opinion on the topic then?

I would advise against Vue for the frontend, it adds a lot of work for both you guys, the core team and the developers. Yes it's great, however by adding a JS framework such as Vue to MyBB you will cut out quite a lot of devs I reckon. Take Flarum for example, brilliant idea, but then they shoved a whole bunch of JS and made developing incredibly time consuming.

MyBB is a PHP forum software, please keep it that way. jQuery, Ajax etc sure. But please don't add a huge framework like Vue/React/Knockout.