Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-28 Thread Marco Mansilla
Thanks Massimo, so far it working fine. JS code is a lot more cleaner and no need for node which is nice. We just need native support from browsers and clients to update to latest versions. Marco. El mié., 28 de mar. de 2018 13:47, Massimo Di Pierro < massimo.dipie...@gmail.com> escribió: > Goo

[web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-28 Thread Massimo Di Pierro
Good work. This helps me a lot. On Friday, 23 March 2018 14:07:26 UTC-5, marco mansilla wrote: > > Just in case anyone is interested I have uploaded a simple test app with > VueJS as modules in the browser. > > Did it to test and see how it works, as a demo someone could find it > useful, more i

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Marco Mansilla
Perfect, Chrome support is set by default, I guess Firefox will do the same un the next versión, currently 59.1 still needs manual activation for this feature. El sáb., 24 de mar. de 2018 18:43, Gualter Portella escribió: > Thanks, Marco. > > It was just a browser support issue with firefox. >

[web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Gualter Portella
Thanks, Marco. It was just a browser support issue with firefox. Em sexta-feira, 23 de março de 2018 16:07:26 UTC-3, marco mansilla escreveu: > > Just in case anyone is interested I have uploaded a simple test app with > VueJS as modules in the browser. > > Did it to test and see how it works,

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Marco Mansilla
Oh, and check browsers support, Firefox needs the extra step mentioned in the readme file. El sáb., 24 de mar. de 2018 12:37, Gualter Portella escribió: > Thank you for the initiative! I am looking forward to learning vue.js and > using it together with web2py. One minor problem is that I am not

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Marco Mansilla
Hace you checked the browsers developer console? You have todo edit/create files inside yava/dev/src and run grunt uglify or just grunt since the default task is watch and minify to static/vue. Marco. PS. Later this afternoon will upload a new branch with no grunt nor minification. El sáb., 24

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-24 Thread Gualter Portella
Thank you for the initiative! I am looking forward to learning vue.js and using it together with web2py. One minor problem is that I am not still getting the message Into the index page correctly. It only comes in the form of ${message}. What I might be doing wrong? Cheers -- Resources: - http

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-23 Thread Marco Mansilla
In addition to improve learning and testing will create minified and unminified branches El sáb., 24 de mar. de 2018 02:17, Marco Mansilla escribió: > Yeah, you're right, but this structure is intended since I use a deploy > script that would clean dev, errors, sessions and other data > > El vie

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-23 Thread Marco Mansilla
Yeah, you're right, but this structure is intended since I use a deploy script that would clean dev, errors, sessions and other data El vie., 23 de mar. de 2018 22:31, 黄祥 escribió: > yeah, already checked that too, just a suggestion, perhaps better to leave > the vue code (under static/vue/*.min

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-23 Thread 黄祥
yeah, already checked that too, just a suggestion, perhaps better to leave the vue code (under static/vue/*.min.js) unminified, it's make other learn the vue code that integrate with web2py more clearly best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-23 Thread Marco Mansilla
You're welcome. Notice the main Vue instance is called only once inside Index.html and components are imported inside the instance and not called un the browser. I hace a few custom init scripts and that's why ommited some steps, but it should work fine as you did. Regards. Marco. El vie., 23 d

[web2py] Re: ECMAScript Modules Vue and Web2py - simple test

2018-03-23 Thread 黄祥
cool, thx for sharing *installation and running step :* *terminal_0* cd path/web2py/applications git clone https://github.com/marcomansilla/yava cd yava/dev npm install ./node_modules/.bin/grunt *terminal_1* python path/web2py/web2py.py --nogui --no-banner -a a -i 0.0.0.0 -p 8000 *terminal_2* op