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

Export to EPUB improvements + bug fixes #670

Merged
merged 23 commits into from
Jul 15, 2023

Conversation

CD-Z
Copy link
Contributor

@CD-Z CD-Z commented Jun 23, 2023

Export to EPUB

  • added:
    • support for images in a chapter
    • support for customCSS
    • support for customJS (although I found only one reader that supports js. May have to be changed later)
    • added options

Bugfixes

  • fixed color behind bottomsheet
  • fixed weird TextInput
  • fixed weird KeyboardAvoidingView
  • added darkmode supporting notification icons
    Screenshot_20230626_201205_LNReader

PS.: I have no idea what happend to package-lock.json

@@ -1,14 +1,14 @@
import { Dispatch, SetStateAction, useCallback, useState } from 'react';

interface ReturnType {
export interface booleanHookType {

Choose a reason for hiding this comment

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

Suggested change
export interface booleanHookType {
export interface BooleanHookType {

epubUseCustomCSS = false,
epubUseCustomJS = false,
} = useSettings();
const saveConfig = dispatchConfig ? true : epubLocation === '';

Choose a reason for hiding this comment

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

Suggested change
const saveConfig = dispatchConfig ? true : epubLocation === '';
const saveConfig = dispatchConfig || epubLocation === '';

@@ -35,6 +35,7 @@ const CustomFileModal: React.FC<CustomCSSModalProps> = ({
),
placeholder = '',
}) => {
const [text, setText] = useState(customFile);

Choose a reason for hiding this comment

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

Sorry, I missed this PR before. I have fixed the TextInput's behaviour in 14ed97b so this fix shouldn't be needed anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem, but I can't change anything for a week now since I'm on holiday.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed your version and added mine, because your version didn't support the "Not saved" text and couldn't show the file text after opening from file.

@rajarsheechatterjee rajarsheechatterjee merged commit 414ca51 into LNReader:main Jul 15, 2023
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2023
@CD-Z CD-Z deleted the feature/bugFixes branch January 10, 2024 18:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants