A full featured clone of a quiz show game. Made for family gatherings, meetups, business meetings, educational use, and more.
When adding an image to an answer, there is some information that needs to be saved. This is done in order to successfully export the image along with the game JSON.
For this reason, I am thinking I should create an image class.
Class Image {
this.type: 'png';
this.name: '03';
this.url: 'blob:http://localhost:8080/38a653ba-0ed5-49af-97b1-3f3ba6fd208a'
}
- Add image type, name, and url to vuex state.
- Add image data (arrayBuffer) to local forage.
- Read
assets.json
to determine image name and type. - Read image data (arrayBuffer) and store in local storage.
- Derive URL from arrayBuffer and store in vuex state.
- Read vuex state to get image name, type (png|jpg|gif), and url
- Create an
assets.json
file with data defining image type, image name. - Write assets.json and
${image.name}.${image.type}
toassets/
in the zip file