Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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ó: > 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 info in the readme file. >> >> https://github.com/marcomansilla/yava >> >> Opinions are always welcome and appreciated. >> >> -- >> -BEGIN GEEK CODE BLOCK- >> version 3.1 >> GCS/GTW/| d? s+:+>+++ a-- C+++(+) UL>$ P++>+++ L+++>+$ E->+ W++>+ >> N>+++ o K- w---() >> O(--) M>-- V-- PS++ PE++>+ Y-->+ PGP+>+++ t-(?) 5? X++ R+ !tv b+++> >> DI+++ D--- G+++>+ >> e+++> h* r++>+++ y++ >> --END GEEK CODE BLOCK-- >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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. > > > > 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, as a demo someone could find it >> useful, more info in the readme file. >> >> https://github.com/marcomansilla/yava >> >> Opinions are always welcome and appreciated. >> >> -- >> -BEGIN GEEK CODE BLOCK- >> version 3.1 >> GCS/GTW/| d? s+:+>+++ a-- C+++(+) UL>$ P++>+++ L+++>+$ E->+ W++>+ >> N>+++ o K- w---() >> O(--) M>-- V-- PS++ PE++>+ Y-->+ PGP+>+++ t-(?) 5? X++ R+ !tv b+++> >> DI+++ D--- G+++>+ >> e+++> h* r++>+++ y++ >> --END GEEK CODE BLOCK-- >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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 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://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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 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 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://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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., 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.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 (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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.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 (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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 (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: ECMAScript Modules Vue and Web2py - simple test
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 de mar. de 2018 20:51, 黄祥 escribió: > 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* > open http://localhost:8000/yava > > *tested work* : signup, logout, login > > best regards, > stifan > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.