Skip to content

feat: add EPUB export functionality for projects#58

Open
StableLlama wants to merge 1 commit intoStableLlamaAI:developfrom
StableLlama:add_epub
Open

feat: add EPUB export functionality for projects#58
StableLlama wants to merge 1 commit intoStableLlamaAI:developfrom
StableLlama:add_epub

Conversation

@StableLlama
Copy link
Collaborator

Description

add EPUB export functionality for projects

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • Backend tests (pytest)
  • Frontend tests (npm run test)
  • Manual verification

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules


b_dir = active / "books" / bid
chapters_dir = b_dir / "chapters"
if not chapters_dir.exists():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
continue

book_items = []
for p in chapters_dir.glob("*.txt"):

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.

# Novel
chapters_dir = active / "chapters"
if not chapters_dir.exists() or not chapters_dir.is_dir():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.

# Novel
chapters_dir = active / "chapters"
if not chapters_dir.exists() or not chapters_dir.is_dir():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
if not chapters_dir.exists() or not chapters_dir.is_dir():
return []
items_novel = []
for p in chapters_dir.glob("*.txt"):

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
else:
path = get_active_project_dir()

if not path or not path.exists():

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
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.

1 participant