DrSensor / F.I.D.E

A desktop application like File Explorer apps but for IoT data
Apache License 2.0
1 stars 1 forks source link

Plugins/addons system #7

Open DrSensor opened 6 years ago

DrSensor commented 6 years ago

This issue is about technical feasibility for implementing plugins/addons system in F.I.D.E. To start with, the plugins are in form of Vue Component and/or Vuex Module. There is also a custom annotation system by utilizing animated svg and data-* but that will be writen in separate issue proposal.

For plugins based on Vue Component, there is a need to load component dynamically at runtime. The trick is in article https://alligator.io/vuejs/lazy-loaded-wizard/, however it can only load component from project folder not from url. There is also discussion about dynamic component as W3C proposal here

For plugins based on Vuex Module, luckily Vuex has this kind of mechanism in registerModule funtction. Just need to dynamic import and utilize global var for map{Vuex} as stated in “Dynamic Modules with Vuex and Vue” https://codeburst.io/dynamic-modules-with-vuex-and-vue-b9c481ca792