Skip to content
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

✨ render children of an epub content item #521

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

xendke
Copy link
Contributor

@xendke xendke commented Dec 10, 2024

Some epub content items have more content items inside! This PR exposes them to the reader.

First time working with Rust πŸ˜… - criticism welcome!

Before

Screenshot 2024-12-09 203725

After

Screenshot 2024-12-09 204133

@aaronleopold
Copy link
Collaborator

I'll be able to take a look tomorrow after work to review, but based on your screenshot I actually think this would resolve #334! Excited to give it a proper look! Thank you!

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
core/src/db/entity/epub.rs 0.00% 5 Missing ⚠️
Files with missing lines Coverage Ξ”
core/src/db/entity/epub.rs 0.00% <0.00%> (ΓΈ)

Copy link
Collaborator

@aaronleopold aaronleopold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thanks again!

@@ -14,6 +14,7 @@ use super::{media::Media, MediaAnnotation};
pub struct EpubContent {
label: String,
content: PathBuf,
children: Vec<EpubContent>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that clippy didn't complain about this recursive type, but I won't complain about it not complaining about it πŸ˜›

@aaronleopold aaronleopold merged commit ab52b2a into stumpapp:experimental Dec 11, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants