Commit graph

468 commits

Author SHA1 Message Date
Jackson Harper
bba094fbcd Add tests for beehiiv.com hosted newsletters 2022-03-07 15:05:38 -08:00
Jackson Harper
86220091ba
Merge pull request #195 from omnivore-app/fix/settings-theme
Set theme on emails and labels pages
2022-03-07 11:01:40 -08:00
Jackson Harper
4bafee4da2 Set theme on emails and labels pages 2022-03-07 09:47:43 -08:00
Jackson Harper
fcdf8d3dd5
Merge pull request #188 from omnivore-app/fix/ios-darkmode-scrollbar
Fix readerview scrollbars in iOS dark mode
2022-03-07 09:27:49 -08:00
Jackson Harper
e6b4d80de2 After load set webview to opaque
During the initial load we need the clear + !opaque settings so
the webview does not flash a white background in dark mode. But
after load we want to use the systemBackground colour and an
opaque background, so in dark mode the scrollbars are displayed
correctly. Without this iOS will display a dark scrollbar ontop
of the dark background.

Note that due to a bug in Webkit setting the scrollbar inset
colours doesn't seem to work in current iOS:

https://developer.apple.com/forums/thread/689654
2022-03-06 09:16:40 -08:00
Jackson Harper
0a38621a3a Set root color scheme CSS for iOS to determine system colour 2022-03-06 09:16:14 -08:00
Jackson Harper
0eb2e13b17
Merge pull request #186 from omnivore-app/fix/cna-readability 2022-03-06 08:12:22 -08:00
Satindar Dhillon
3e2d5e082a
Merge pull request #185 from omnivore-app/fix/ipad-refresh
iPad Refresh
2022-03-04 13:13:24 -08:00
Jackson Harper
234dba9174 Improve readability of channelnewsasia
This uses negative lookahead to reject nodes that have outstream
ads embedded. Previously they were being accepted because they
contained `$article` in the class name.
2022-03-04 10:34:44 -08:00
Satindar Dhillon
967fc7216e add search bar to macos 2022-03-03 21:55:17 -08:00
Satindar Dhillon
9a79b2e5f5 add refreah button on ipad grid 2022-03-03 21:37:31 -08:00
Jackson Harper
2e187b8d8f
Merge pull request #178 from omnivore-app/add-probably-emails
New function to determine if an HTML blob is probably a newsletter based on its content
2022-03-03 21:31:48 -08:00
Jackson Harper
bf92d63203
Merge pull request #183 from omnivore-app/fix/mathjax-script
Use next/script for Mathjax
2022-03-03 21:31:33 -08:00
Jackson Harper
3d72d0f9d5 Dont use <Script inside next/head 2022-03-03 20:56:16 -08:00
Jackson Harper
fb6564a126 Use next/script for Mathjax 2022-03-03 20:37:04 -08:00
Satindar Dhillon
dec888ce63
Merge pull request #182 from omnivore-app/feature/ipad-navbar-improvements
iPad navbar improvements
2022-03-03 20:17:45 -08:00
Jackson Harper
ae329d2651 Add test data file 2022-03-03 19:47:37 -08:00
Jackson Harper
b6fd3e786e Fix parsing authors from page metadata 2022-03-03 19:40:02 -08:00
Jackson Harper
49092b707d Remove async 2022-03-03 19:31:51 -08:00
Satindar Dhillon
3af09d9558 use hiding nav bar on iPad reader view 2022-03-03 17:21:42 -08:00
Satindar Dhillon
f3202561d3 bump swift package deps 2022-03-03 17:21:42 -08:00
Jackson Harper
05373ba3c7 add methid to parse content metadata 2022-03-03 17:10:06 -08:00
Satindar Dhillon
f5f7cb537e
Merge pull request #181 from omnivore-app/chore/jest-config
Use next/jest plugin to configure jest unit tests
2022-03-03 16:12:00 -08:00
Satindar Dhillon
94df27c964 create a test and build command for deploying to vercel 2022-03-03 15:48:42 -08:00
Jackson Harper
c2e08d0e8f Fetch title and author from page metadate if possible 2022-03-03 15:20:58 -08:00
Jackson Harper
b17f22949c Use the readability title if available 2022-03-03 14:21:30 -08:00
Jackson Harper
a4bb67deee Use the readability byline for email authors if available 2022-03-03 14:21:03 -08:00
Satindar Dhillon
2db59860d2 remove module aliases from jest config 2022-03-03 13:50:54 -08:00
Satindar Dhillon
cecb9da4c7 use next/jest plugin to configure jest unit tests 2022-03-03 13:44:35 -08:00
Jackson Harper
b326a5f8e7 Add more matches on substack icons 2022-03-03 13:42:30 -08:00
Jackson Harper
a49c9ff6d4
Merge pull request #180 from omnivore-app/fix/migration-image
Add package file back to migration image
2022-03-03 11:13:57 -08:00
Jackson Harper
78cb194912 Add package file back to migration image
This is needed when running via docker-compose
2022-03-03 11:05:42 -08:00
Jackson Harper
484cd78ac5 prettier 2022-03-02 23:14:10 -08:00
Jackson Harper
65ce8353dc Attempt to pull URLs for probable newsletter emails out of content 2022-03-02 23:09:10 -08:00
Jackson Harper
21329949e5 Fix to email address in saveNewsletterEmail 2022-03-02 22:06:15 -08:00
Jackson Harper
02d505a7e2 Add some debugging 2022-03-02 21:39:10 -08:00
Jackson Harper
8fe9827ad2 If an email appears to be a newsletter at it to the library 2022-03-02 20:47:53 -08:00
Jackson Harper
65cc666579 Pass HTML instead of a JSDOM into isProbablyNewsletter to better encapsulate 2022-03-02 20:38:11 -08:00
Jackson Harper
c4e237927d Allow any on GCP func 2022-03-02 20:27:40 -08:00
Jackson Harper
e660e41ed5 Fix warnings 2022-03-02 19:49:10 -08:00
Jackson Harper
9206230659 Better name for the save newsletter service 2022-03-02 19:45:28 -08:00
Jackson Harper
d66c114a7d Remove file, this is moved into the parser 2022-03-02 16:36:36 -08:00
Jackson Harper
b5f9478350 Dont mutate function input 2022-03-02 16:34:56 -08:00
Jackson Harper
f7f83fe080 New function to determine if an HTML blob is probably a newsletter based on its content 2022-03-02 16:31:15 -08:00
Satindar Dhillon
cdeaa1ffff
Merge pull request #175 from omnivore-app/feature/ipad-library-grid
iPad library grid
2022-03-02 10:25:50 -08:00
Satindar Dhillon
b19ac104f4 fix context menus so all actions are included across devices 2022-03-02 10:24:35 -08:00
Jackson Harper
ff871c35bc
Merge pull request #174 from omnivore-app/fix/code-styling-width
Remove inline-block styling on code blocks
2022-03-02 10:06:50 -08:00
Satindar Dhillon
2868e95716 track context menu open status so we can ignore element tap actions 2022-03-02 09:36:59 -08:00
Satindar Dhillon
a787c134e7 handle gid card taps as well as grid card button taps 2022-03-01 22:35:13 -08:00
Jackson Harper
304f6352dc Remove inline-block styling on code blocks
This will let code blocks go full width without inline code
statements creating a new line break.
2022-03-01 15:53:44 -08:00