bb4 / bb4-aikido-app

A Scala application that generates an html/javascript aikido technique builder that can be deployed to a website.
MIT License
0 stars 0 forks source link

create java/scala based editor for adding more xml and images #2

Open barrybecker4 opened 5 years ago

barrybecker4 commented 5 years ago

Right now it's complicated to add more techniques and corresponding images. What would really help is a rich editor that would show the technique hierarchy in collapsible folders and allow editing any row by changing any of the fields or adding images. It should also be possible to add rows with are references to other branches of the tree (so that nothing is repeated). Changing a node in a reference branch would change it everywhere. The references would just be pointers to the original.

When mousing over a row, you should see all the images from the parent to that node. You should be able to right click on a row and choose to

The editor:

barrybecker4 commented 5 years ago

Might consider making the editor in js using Vue. See https://medium.com/vuetify/building-a-treeview-component-part-i-93d19733682f Probably it would be better to store the data in JSON instead of XML.

barrybecker4 commented 5 years ago

Perhaps the existing Scala-based Adventure editor can be used for these xml files. The structure of the xml data file is a little different. Adventure is a graph where children are listed explicitly for each node. For the aikido xml, children are implicit according to the hierarchical nesting. But it seems like the Adventure editor could be easily adapted to read and write the aikido style xml files.