Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great to have support for vue.js. I'm happy to led a hand in getting it started.
Comments
Comment #2
segovia94 CreditAttribution: segovia94 as a volunteer commentedComment #3
segovia94 CreditAttribution: segovia94 as a volunteer commentedI've got a branch started here https://github.com/segovia94/pdb/tree/feature/vue that currently has 3 example components. The first uses an inline template and is the bare minimum. The second uses an html template and loops through all blocks so that there can be multiple instances. The third is an implementation of the standard ToDo list from the vue.js examples.
There is also an option to enable development mode which will use the non-minified library so that it will work with Vue Devtools in Chrome.
I'm thinking of creating a fourth example that compiles a dist/ with webpack as an example of how to use components in .vue files.
Comment #4
segovia94 CreditAttribution: segovia94 as a volunteer commentedI created a pull request to the github account https://github.com/mrjmd/pdb/pull/101.
Comment #5
segovia94 CreditAttribution: segovia94 as a volunteer commentedComment #6
thelmer CreditAttribution: thelmer at Adapt commented+1 RTBC
Comment #7
segovia94 CreditAttribution: segovia94 as a volunteer commentedIn order to allow faster development I've broken out this request into its own module Decoupled Blocks: Vue.js. It doesn't appear that this really needs to be included in the core module.