Open abstracthat opened 10 years ago
Cool! That seems most useful for migration, right?
This is what I need recently ;) I am going to replace text inputs with select. Any suggestions?
I would suggest using a preexisting component to keep from reinventing the wheel. Something like react-tagsinput
looks promising. You can access all the tags for a given post from the props of the config-dropper and propogate them appropriately there.
The issue I've met as a react beginner is deprecated version of react used in hexo-admin, so adding new components is much more complex. What I would like to do is to implement react-autocomplete as a replacement of existing text field.
Going this way rather than implementing tagsinput
I can improve ux with as minimum changes as possible.
We can parse categories and tags as JSON that this plugin outputs https://github.com/timnew/hexo-generator-atom-markdown-writer-meta so that instead of having to type (and remember the correct category name) we can choose to select existing ones. This is more important for categories than tags but both are useful.