| Magnus added a comment. |
It does indeed look like vuejs can do server-side rendering, at least for viewing items (editing would require JS, I presume). We should probably check how much non-JS editing is done on Wikidata at the moment; I'd assume it's not a lot...
I have not worked with vuejs SSR; one reason I became interested in vuejs is precisely that it doesn't require server-side setup.
I have begun adding edit functions. String editing only, and it can't save yet, but one can see the structures in the <template>s and code slowly taking shape...
Some notes on this endeavour (all IMHO):
- vuejs learning curve is not steep, much less than react
- vuejs speed is excellent
- Separation of HTML (including simple display logic) and complex component JS code makes the components much more maintainable and reusable
- Right now, I have one file for all HTML and templates, and one for all the JS. "Proper" server setup would allow to split those into one ".vue" file per component, containing the respective <template> and JS. That would massively improve readability, dependencies, compartmentalisation etc. A service such as webpack can be used to join all these files into a single one, similar to the MW resource loader
- I have not tried to use vuejs i18n components. I used my own translation JS library in the new mix'n'match, and that integrates quite well
- vuejs works best/fastest as a single-page application, which clashes with the MW reload-each-page approach. vuejs still works with that, though
TASK DETAIL
EMAIL PREFERENCES
To: Magnus
Cc: Niedzielski, Magnus, Milimetric, Prtksxna, Fjalapeno, phuedx, Jdlrobson, siddharth11, Capt_Swing, TheDJ, Jdforrester-WMF, SBisson, WMDE-leszek, Volker_E, Krinkle, gabriel-wmde, Jonas, thiemowmde, Lydia_Pintscher, Jan_Dittrich, Jhernandez, Jdrewniak, Aklapper, QZanden, SamanthaNguyen, JGirault, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331, Jay8g
Cc: Niedzielski, Magnus, Milimetric, Prtksxna, Fjalapeno, phuedx, Jdlrobson, siddharth11, Capt_Swing, TheDJ, Jdforrester-WMF, SBisson, WMDE-leszek, Volker_E, Krinkle, gabriel-wmde, Jonas, thiemowmde, Lydia_Pintscher, Jan_Dittrich, Jhernandez, Jdrewniak, Aklapper, QZanden, SamanthaNguyen, JGirault, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
