I'm using Vuetify 2 and avataaars.io urls to create a custom avatar builder. Please provide me with a sample code. I want all the avataaars categories ('topTypes', 'facialHairTypes', etc.) to be shown as vuetify tabs, and all the category options ('NoHair', 'Eyepatch', etc.) to be shown in each tab as image items inside the item-group components (3 items for a row). Each time the user changes an option I want the main avatar image to get updated. After avatar is build I want it to be stored in local storage and every time the app is restarted I want all the corresponding item-group elements to be preselected, according to the options of the stored avatar. Rather than using many urls, write a function that would update just one url. Also, make the option images computed, so that the user could see how each option would change the avatar
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This code displays the avataaars categories as vuetify tabs and their respective options as image items inside the item-group components. Each time the user changes an option, the main avatar image gets updated. After the avatar is built, it is stored in local storage and every time the app is restarted, the corresponding item-group elements are preselected according to the options of the stored avatar. The generateImageUrl function updates just one URL. The option images are computed, so the user can see how each option would change the avatar.
Note: This code is not complete and only serves as a starting point. You might have to tweak it and add some additional functionality to fit your specific needs.