-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Villain v2.0.0 #634
Labels
Milestone
Comments
Quick draft for the new API (based on hooks and events ) const eventHandlers = {
OnLoading: () => { /* do something */ }
}
<Villain src={'my_archive.cbz'} options={...} events={EventHandlers}>
<MyCustomImageRender />
// Or use default UI
<VillainUI options={ theme: 'dark', ...more } />
</Villain> |
Also added a better way for tracking the progress from loading the archive to extraction of images. This should be added to the docs as well: export const READY_STATE = {
// There is no archive or source to load
NOTHING: 0,
// Fetching archive from the web
LOADING_ARCHIVE: 1,
// Find all data to unpack
READING_ARCHIVE: 2,
// Unpack images and create pages
UNPACKING_ARCHIVE: 3,
// All pages where created
READY: 4,
// An error ocurred, the `error` property on the global store will contain more info
ERROR: 5,
} |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tracking progress for next version:
readyState
tracking )If you have more ideas or features that you will like to see for the next version leave a comment below.
The text was updated successfully, but these errors were encountered: