-
Notifications
You must be signed in to change notification settings - Fork 2
feat: introduce novel reading module with multi-source and offline support #71
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9c95a8c
feat: add novel reading module with partial offline support
pushpender-singh-ap b3fcaea
feat: add source status tracking and notification system
pushpender-singh-ap b351d75
refactor: clean up code formatting and improve readability in NovelDe…
pushpender-singh-ap 5c2fcfb
refactor: improve code formatting and readability in Search component
pushpender-singh-ap a3b02c5
chore: update contact email to inknest@capacity.rocks
pushpender-singh-ap 64e4d3c
fix: remove unnecessary .catch() on synchronous persistNotificationList
pushpender-singh-ap c8f165e
fix(Search): update background color and center header title
pushpender-singh-ap 677337f
feat(novel): add multi-source support with WTR-Lab integration
pushpender-singh-ap 1c8cbbd
docs(blog): add v1.4.9 release announcement
pushpender-singh-ap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| const cheerio = require('cheerio'); | ||
|
|
||
| const { | ||
| parseWTRLabChapter, | ||
| } = require('../src/Redux/Actions/parsers/novelChapterParser'); | ||
|
|
||
| describe('parseWTRLabChapter', () => { | ||
| let logSpy; | ||
|
|
||
| beforeEach(() => { | ||
| logSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); | ||
| }); | ||
|
|
||
| afterEach(() => { | ||
| logSpy.mockRestore(); | ||
| }); | ||
|
|
||
| it('parses array-based reader payloads into readable paragraphs', () => { | ||
| const $ = cheerio.load('<html><body></body></html>'); | ||
|
|
||
| const result = parseWTRLabChapter( | ||
| $, | ||
| {}, | ||
| { | ||
| data: { | ||
| data: { | ||
| body: ['First paragraph', 'Second paragraph'], | ||
| }, | ||
| }, | ||
| }, | ||
| {title: 'Chapter 1'}, | ||
| ); | ||
|
|
||
| expect(result.title).toBe('Chapter 1'); | ||
| expect(result.paragraphs).toEqual([ | ||
| 'First paragraph', | ||
| 'Second paragraph', | ||
| ]); | ||
| expect(result.text).toBe('First paragraph\n\nSecond paragraph'); | ||
| }); | ||
|
|
||
| it('supports object entries inside array-based reader payloads', () => { | ||
| const $ = cheerio.load('<html><body></body></html>'); | ||
|
|
||
| const result = parseWTRLabChapter( | ||
| $, | ||
| {}, | ||
| { | ||
| data: { | ||
| data: { | ||
| body: [{text: 'Alpha'}, {content: 'Beta'}], | ||
| }, | ||
| }, | ||
| }, | ||
| {title: 'Chapter 2'}, | ||
| ); | ||
|
|
||
| expect(result.title).toBe('Chapter 2'); | ||
| expect(result.paragraphs).toEqual(['Alpha', 'Beta']); | ||
| expect(result.text).toBe('Alpha\n\nBeta'); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| slug: release-v1.4.9 | ||
| title: InkNest v1.4.9 Release | ||
| authors: [p2devs] | ||
| tags: [release] | ||
| --- | ||
|
|
||
| # 📢 InkNest v1.4.9 Release Announcement | ||
|
|
||
| Hey everyone! 🎉 We're thrilled to announce **InkNest v1.4.9** is officially here! | ||
|
|
||
| This is a massive update introducing a highly anticipated new feature: the **Novel Reading Module**, along with multi-source tracking, offline support, and various quality-of-life improvements. | ||
|
|
||
| <!-- truncate --> | ||
|
|
||
| ## ✨ What's New | ||
|
|
||
| #### 📚 All-New Novel Reading Module | ||
| - **Novel Reading Experience** — Dive into your favorite novels with a dedicated, brand-new reading module. | ||
| - **Offline Reading Foundation** — We've laid the groundwork for offline support. *(Note: Full offline downloading for novels is currently in development and not yet available for users).* | ||
| - **Multi-Source Integration** — Access content from multiple sources effortlessly. *(Note: WTR-Lab integration is included, but the source is currently disabled due to Cloudflare protection).* | ||
|
|
||
| #### 🔔 Source Status Tracking & Notifications | ||
| - **Source Status Tracking** — Stay updated on the status of your favorite content sources and get notifications when there are changes or issues. | ||
|
|
||
| ## 🐛 Bug Fixes & Improvements | ||
| - **Search UI Refinements** — Updated the background color and centered the header title for a cleaner looking Search interface. | ||
| - **Code Optimization** — Refactored both the Search and NovelDetails components for improved performance and readability. | ||
| - **Bug Fixes** — Removed unnecessary error handling on synchronous notification persistence. | ||
| - **Contact Info** — Updated our official contact email to `inknest@capacity.rocks`. | ||
|
|
||
| **Update now** to explore the brand new Novel Reading Module and all the other improvements! 📚✨ | ||
|
|
||
| As always, if you encounter any issues, please report them in our issues channel. Happy reading! 🦋 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Downtime never clears
🐞 Bug⛯ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools