Loading...
 
Skip to main content

VueJS In Tiki

VueJS logo
Some dev notes about the VueJS integration

After some discussion at TikiFestMacau2019 we decided to add VueJS to Tiki for 21.x, and this enabled the first version of Tracker Field Rules.

Future Development

Some notes about where we may head in Tiki 24+ here: VueJS In Tiki Part 2

Next step after Hello World

Here, for the record, is my test wiki page that seems to work on that branch. It is based on this example.


Notes and Limitations

While building a Vue app in wiki plugins is an interesting experiment, and partially to aid my learning of how it all works, at some point we need to be able to support properly built VueJS projects (with npm)

The wiki plugin currently needs these changes from "normal" .vue file based projects:

  • One vue plugin needs to have app="y" as a parameter
  • The JS module files are outputted to the temp/public dir prepended with vue_
  • @: shorthand doesn't work, we need to use v-on: for now
  • All components objects being exported need to have the component name as the object item key in lower case (i have no idea why), e.g.
    Copy to clipboard
    components: { componentname: ComponentName }

Some Ideas for the Future?

Collapse/expand modules below
Show PHP error messages