-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): add chapter release dates and new chapter indicator
- model now has date available if exists, scraper now gets date - date is right aligned in chapter list as it shouldn't be top of mind and isn't always relevant to readers - "New!" is in pale blue next to the chapter number as it is often relevant and should stand out - it's pale because we're on a dark background, regular blue is hard to see - add some date utils and a .isNew() model view to support this - TODO: in Manga List, add indicator if it has a new and unread chapter available - requires getting chapter list in background or in Manga List view, not just in Chapter List view
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 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 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,9 @@ | ||
export function dupDate (date) { | ||
return new Date(date.valueOf()) | ||
} | ||
|
||
export function nextDay (date, days = 1) { | ||
const newDate = dupDate(date) | ||
newDate.setDate(date.getDate() + days) | ||
return newDate | ||
} |