Re: [web2py] Re: vue.js

2017-07-05 Thread Massimo Di Pierro
My strategy is usually to have a some splash image and then after vue = new Vue ({data:{loaded:false}}) set vue.loaded = true; On Monday, 26 June 2017 08:35:45 UTC-5, Anthony wrote: > > Change: > > > > To: > > > > and add the following CSS rule: > > [v-cloak] { > display: none; > } > >

Re: [web2py] Re: vue.js

2017-06-26 Thread Anthony
Change: To: and add the following CSS rule: [v-cloak] { display: none; } That will cause the div to remain hidden until after the Vue instance has finished compiling. Anthony On Monday, June 26, 2017 at 12:10:35 AM UTC-4, Ben Lawrence wrote: > > This thread might be a little old but

Re: [web2py] Re: vue.js

2017-06-25 Thread Ben Lawrence
This thread might be a little old but here is a way where you do not have to change web2py's delimiters, instead change Vue's delimiters. Problem is, with V2, you got to put all the scripts up front or you will see the strange delimiters as the page is loading. Here is main.html from that

Re: [web2py] Re: vue.js

2017-02-26 Thread St. Pirsch
Hi John, Thanks! it works! Strange though that the untouched scaffolding app seems to work for some people and for others not. Best, Stephan Am Dienstag, 31. Januar 2017 17:50:14 UTC+1 schrieb John Philip: > > Hi Stephan, > > I tried the brutal approach. I changed the delimiters for web2py on

Re: [web2py] Re: vue.js

2017-01-31 Thread 'John Philip' via web2py-users
Hi Stephan, I tried the brutal approach. I changed the delimiters for web2py on the model and changed all of the views accordingly. I left the delimiters for vuejs as default ('{{' '}}') regards, John On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote: > > Hello John, > Would

Re: [web2py] Re: vue.js

2017-01-30 Thread St. Pirsch
Hello John, Would you mind sharing your solution? Thx, Stephan -- 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

Re: [web2py] Re: vue.js

2017-01-30 Thread 'John Philip' via web2py-users
Sorry Anthony for confusing you. I tried the scaffolding app but for some reason I never got the delimiter to be recognised. So I tried using the vuejs code from the introduction. However I managed to get it working now. thanks again. John On Sunday, January 29, 2017 at 11:55:54 PM UTC+1,

Re: [web2py] Re: vue.js

2017-01-29 Thread Anthony
On Saturday, January 28, 2017 at 2:50:57 PM UTC-5, John Philip wrote: > > Hi there, > > I'm a bit lost at the moment. I tried all of the suggestions but it > doesn't seem to work. Does anybody have a simple web2py example using vuejs > that I can try? > It's not quite clear what your problem

Re: [web2py] Re: vue.js

2017-01-28 Thread 'John Philip' via web2py-users
Hi there, I'm a bit lost at the moment. I tried all of the suggestions but it doesn't seem to work. Does anybody have a simple web2py example using vuejs that I can try? many thanks and regards, John On Friday, January 27, 2017 at 10:01:56 PM UTC+1, St. Pirsch wrote: > > It seems, the

Re: [web2py] Re: vue.js

2017-01-27 Thread St. Pirsch
It seems, the problem is that the server doesn't send anything back when you're doing a query, f.i. search?q=Game Am Freitag, 27. Januar 2017 20:35:28 UTC+1 schrieb Val K: > > Vue delimiters are configurable too! > @scaffold /static >

Re: [web2py] Re: vue.js

2017-01-27 Thread Val K
Vue delimiters are configurable too! @scaffold /static /js /main-vue.js: row#23 Vue.config.delimiters = ['${', '}'] - it's global default config

Re: [web2py] Re: vue.js

2017-01-27 Thread 'John Philip' via web2py-users
Hi Richard, no luck. I modified the view: response.delimiters = ('{[', ']}') {{message}} This is the default/vgrid.html template {[=BEAUTIFY(response._vars)]} https://unpkg.com/vue/dist/vue.js";> I also returned empty var in the controller as you suggested but when loading the

Re: [web2py] Re: vue.js

2017-01-27 Thread Richard Vézina
Ok, first try to leave layout.html out of the way... remove the first line... It should work so far, but consider you always better put the js at the bottom of the page for faster page load and improve parsing as the js come later (after the dom) anyway... Do you have a controllers function for

Re: [web2py] Re: vue.js

2017-01-27 Thread 'John Philip' via web2py-users
Hi Richard, thanks for your reply. I'm did change the delimiter as you described in the model. I changed the delimiters in all of the html files in view. response.delimiters = ('{[',']}'. I have a snippet from the vuejs website. However when loading the view it does not seem to recognise

Re: [web2py] Re: vue.js

2017-01-26 Thread Richard Vézina
Do you use the web2py layout.html? Did you set proper web2py delimiters? http://web2py.com/books/default/chapter/29/05/the-views#The-views Vue.JS use {{}} as web2py you need to change web2py delimiters, I like (so it stays readable) : response.delimiters = ('{[',']}') Richard On Thu, Jan

[web2py] Re: vue.js

2017-01-26 Thread 'John Philip' via web2py-users
Hi Massimo, I downloaded your scaffolding app but for some reason in the main.html file vuejs does not seem to recognize ${doc.title} and ${doc.body} . Am I missing something? thanks and regards, John On Sunday, September 25, 2016 at 5:25:51 AM UTC+2, Massimo Di Pierro wrote: > > I am

Re: [web2py] Re: vue.js

2016-10-12 Thread Yoel Benitez Fonseca
i miss the time of only server-side :-( 2016-10-12 13:21 GMT-04:00 Anthony : >> >> In react you simple do: >> >> > > > You don't simply do that in React. The above assumes you have created a > React component that takes "url" and "pollinterval" props and then after >

Re: [web2py] Re: vue.js

2016-10-12 Thread Anthony
> > > In react you simple do: > > > You don't *simply* do that in React. The above assumes you have created a React component that takes "url" and "pollinterval" props and then after being mounted starts making periodic Ajax requests and updates the state after each fetch. Of course, you

Re: [web2py] Re: vue.js

2016-10-12 Thread Yoel Benitez Fonseca
i don't get it... i have been reading vue.js docs and a lot of examples and don't see the way of it... suppose, for example, i want to use the comment plugin example with vue, so that i can LOAD the plugin into the web2py getting a form for post comment's and a list of comment... how to keep

[web2py] Re: vue.js

2016-10-12 Thread icodk
I tried the scaffolding example. it is missing the appconfig.ini (used my own) and nothing (visibly) happen when entering good as the place holder suggests. Is it working as expected? On Sunday, September 25, 2016 at 5:25:51 AM UTC+2, Massimo Di Pierro wrote: > > I am becoming a huge fan of

Re: [web2py] Re: vue.js

2016-10-04 Thread António Ramos
I had to manage frontend store and sync it with backend. For using web2py just as a data repo i prefer couchdb with pouchdb and this way i only have one app. However i´m not at the same level as Massimo so i´m curious to know that he is liking vuejs and waiting for some good examples with web2py.

Re: [web2py] Re: vue.js

2016-10-04 Thread António Ramos
as i said i had 2 apps instead of one. 2016-10-04 12:22 GMT+01:00 Marlysson Silva : > Why? Was dificult? > > Em terça-feira, 4 de outubro de 2016 08:17:13 UTC-3, Ramos escreveu: >> >> Vue is good ,but Vue with centralized state management,Vuex, is even >> better. >> But

Re: [web2py] Re: vue.js

2016-10-04 Thread Marlysson Silva
Why? Was dificult? Em terça-feira, 4 de outubro de 2016 08:17:13 UTC-3, Ramos escreveu: > > Vue is good ,but Vue with centralized state management,Vuex, is even > better. > But then with Vuex i ended up with 2 apps. web2py for the server merely as > a REST API and vuex for the frontend. > I

Re: [web2py] Re: vue.js

2016-10-04 Thread António Ramos
Vue is good ,but Vue with centralized state management,Vuex, is even better. But then with Vuex i ended up with 2 apps. web2py for the server merely as a REST API and vuex for the frontend. I dont like this road :( 2016-10-03 22:24 GMT+01:00 pbreit : > Massimo has

[web2py] Re: vue.js

2016-10-03 Thread pbreit
Massimo has already provided us with an immense treasure but I've always been curious what a Massimo-designed JavaScript framework would look like! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: vue.js

2016-10-03 Thread JorgeH
Ok. Massimo. Can we assume that you are asking about vue.js because you want it to be the default frontend library for web2py? If so.. good choice ! :). Why not including it in the next release and wait and see what comes.. On Monday, October 3, 2016 at 2:34:33 PM UTC-5, Massimo Di Pierro

[web2py] Re: vue.js

2016-10-03 Thread Massimo Di Pierro
I have not tried riot.js and elm.js. I cannot stand the syntax of react.js. I like ractive.js and vue.js. The latter is faster, smaller, and has less gotchas. I have been using to build a some single apps with cordova for client and web2py+dal as server and it works pretty well. the cordova

[web2py] Re: vue.js

2016-09-26 Thread JorgeH
I like Riot.js http://riotjs.com/ Give it a try! On Saturday, September 24, 2016 at 10:25:51 PM UTC-5, Massimo Di Pierro wrote: > > I am becoming a huge fan of vue.js. Any other user here? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: vue.js

2016-09-26 Thread Michele Comitini
Of course I like vue.js too. I use ractive.js also: they are very similar in many aspects. 2016-09-26 12:37 GMT+02:00 Marlysson Silva : > I intend to delve me in the Vuejs , it's an awesome library > > Facilitates futher development > > Em domingo, 25 de setembro de 2016

[web2py] Re: vue.js

2016-09-26 Thread Marlysson Silva
I intend to delve me in the Vuejs , it's an awesome library Facilitates futher development Em domingo, 25 de setembro de 2016 00:25:51 UTC-3, Massimo Di Pierro escreveu: > > I am becoming a huge fan of vue.js. Any other user here? > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: vue.js

2016-09-25 Thread Anthony
Vue.js looks great. Another interesting option to consider is React+Mobx . On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, Massimo Di Pierro wrote: > > I am becoming a huge fan of vue.js. Any other user here? > --

Re: [web2py] Re: vue.js

2016-09-25 Thread Anthony
And on the web2py side, you can set response.delimiters: http://web2py.com/books/default/chapter/29/05/the-views#The-views Anthony On Sunday, September 25, 2016 at 10:33:25 AM UTC-4, Ramos wrote: > > http://vuejs.org/api/#delimiters > beware of vuejs 2.0 > > 2016-09-25 15:28 GMT+01:00 António

Re: [web2py] Re: vue.js

2016-09-25 Thread António Ramos
http://vuejs.org/api/#delimiters beware of vuejs 2.0 2016-09-25 15:28 GMT+01:00 António Ramos : > from vue side > https://github.com/vuejs/vue/issues/252 > > 2016-09-25 14:06 GMT+01:00 Jarrod Wilcox : > >> Massimo >> >> Can you remind us as to best

Re: [web2py] Re: vue.js

2016-09-25 Thread António Ramos
from vue side https://github.com/vuejs/vue/issues/252 2016-09-25 14:06 GMT+01:00 Jarrod Wilcox : > Massimo > > Can you remind us as to best way to avoid conflict between both web2py and > vue using double curly brackets? > > Jarrod > > > On Saturday, September 24, 2016

[web2py] Re: vue.js

2016-09-25 Thread Jarrod Wilcox
Massimo Can you remind us as to best way to avoid conflict between both web2py and vue using double curly brackets? Jarrod On Saturday, September 24, 2016 at 11:25:51 PM UTC-4, Massimo Di Pierro wrote: > > I am becoming a huge fan of vue.js. Any other user here? > -- Resources: -