Commit graph

55 commits

Author SHA1 Message Date
dece 636a096d6f rename a few things around and clean imports 2022-01-28 13:43:32 +01:00
dece 3190d608ca PageFragment: fix loading URLs appearance 2022-01-28 12:10:36 +01:00
dece 30d7ce72b8 PageAdapter: fix empty lines issues in pre blocks 2022-01-28 12:10:36 +01:00
dece 117c70100f consider blockquotes as a blocks instead of lines
This is roughly the same system as for preformatted blocks.

Even though the spec implies that a line starting with ">" is a
blockquote type line and should be a quote on its own, it is so
frequently used as a block-like type that taking the spec literally
causes rendering issues on many capsules. To be clear, we get blocks
like this:

> Lorem ipsum dolor sit amet,
> consectetur adipiscing elit.
>
> Sed do eiusmod tempor incididunt
> ut labore et dolore magna aliqua.

where we should instead have something like:

> Lorem ipsum dolor sit amet, consectetur adipiscing elit.
> Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

To the people's defense, it is usual to quote a message using the first
syntax. As this issue is minor and the spec is not very adamant on
things here, I don't think there is much wrongdoing in treating the
first syntax as the norm, but the code is open to changes!
2022-01-28 12:10:36 +01:00
dece 9c0603cf67 PageFragment: show the URL being loaded
The URL is shown in italic to distinguish between the current URL and
the URL that is currently being loaded. Unsure that it is enough, it
does not look very good to me anyway.
2022-01-28 12:10:36 +01:00
dece e8283d2ed4 PageAdapter: do not underline links, it's boring 2022-01-28 12:10:36 +01:00
dece 2b694a0bc1 Gemtext: fix preformatted issue 2022-01-28 12:10:36 +01:00
dece 54db4e17a6 use Solarized colors 2022-01-28 12:10:36 +01:00
dece caa6f03e20 PageFragment: fix currentUrl messy property 2022-01-26 18:34:22 +01:00
dece 1f2be8cdee Identities: WIP
This commit overwrites the version 1 database schema. Yeah as long as
Comet is not out of alpha, I'm not dealing with this horrendous
migration process.
2022-01-26 01:26:29 +01:00
dece 020f48149b PageViewModel: docs 2022-01-25 19:36:59 +01:00
dece f02220f430 PageFragment: move some data to the view model
This should advance on #4.
2022-01-25 19:32:05 +01:00
dece 4ff8e82271 cleanup and renaming things around 2022-01-25 18:55:46 +01:00
dece 8231a7080a HistoryFragment: basic history browsable list
Have a card for each entry, rendered from last visited first to oldest.
Will probably start choking once the history has too many entries.
2022-01-24 20:09:04 +01:00
dece 473b1e012c colors: fix text for night theme
Probably more to fix!
2022-01-20 00:16:50 +01:00
dece 9358c0abca navigation: use global action for home/settings
This really does not feel right...
2022-01-20 00:16:27 +01:00
dece 6c556c3035 schemas 2022-01-19 22:54:33 +01:00
dece 5bc5547f75 launcher icon (CC0) and readme (for the licenses) 2022-01-19 22:54:33 +01:00
dece ad5d146a9b gradle: update dependencies 2022-01-16 14:25:28 +01:00
dece ef8c78177e gradle: fix Room schema warning 2022-01-16 14:25:28 +01:00
dece 51d1844ba0 PageViewFragment: handle home page 2022-01-10 17:54:14 +01:00
dece 656b699ce9 clean and make a bunch of static variables private 2022-01-10 16:35:15 +01:00
dece d47d67be1a Request: use timeout values from settings 2022-01-10 16:34:53 +01:00
dece 70beae84e7 add basic settings screen (+ navigation!) 2022-01-10 15:54:25 +01:00
dece 37832f1d8b add basic navigation drawer 2022-01-10 12:53:11 +01:00
dece 4aaa0fbcdb PageViewFragment: restore back button function 2022-01-10 09:42:20 +01:00
dece 09e19a1a76 move page viewer logic into a fragment 2022-01-10 08:41:33 +01:00
dece 6eb9c142cc handle input responses 2022-01-10 00:36:15 +01:00
dece da3a9f4c75 UriUtils: fix issue with encoded colon in netloc 2022-01-09 23:08:52 +01:00
dece 809db8f324 Gemtext: fix link line parsing
Yes you can use tabs as separators…
2022-01-09 23:02:48 +01:00
dece afd0b42c83 PageViewModel: clearer message if no connection 2022-01-09 22:47:34 +01:00
dece bf28d30e4c MainActivity: use / as empty path in URLs
As per the spec, clients should rewrite empty paths of absolute URLs to
"/" instead. Indeed, why the server would return something other than a
redirection for "" to "/"?
2022-01-09 22:18:36 +01:00
dece f6fc5c2f69 PageViewModel: fix activity state on error 2022-01-09 22:06:09 +01:00
dece ee83d1c8fd MainActivity: fix toolbar stuck hidden 2022-01-09 22:02:12 +01:00
dece 2debc6d9f6 gradle: update stuff 2022-01-09 21:41:11 +01:00
dece 4f41d6fecd ContentAdapter: use intermediate rendering blocks
Rendering one view per line is looking for trouble when considering
preformatted blocks and possibly list/blockquotes: you want to group
actions and styles together. Specifically, make preformatted blocks
horizontally scrollable.

This commit adds an intermediate level for rendering which produces such
blocks.
2022-01-09 21:39:33 +01:00
dece 685d60a09b res: factorize text styles 2022-01-05 15:58:56 +01:00
dece 781a4a66b0 MainActivity: proper alerts for each error type
Also moved the PageViewModel into its own file? What's the norm?
2021-12-13 23:41:56 +01:00
dece a2dd6f4876 improve the network channels for streaming 2021-12-13 23:36:52 +01:00
dece f8b929b00d MainActivity: show user-friendly error messages 2021-12-13 23:36:52 +01:00
dece a6e910c3fa MainActivity: handle redirections 2021-12-13 23:36:52 +01:00
dece f8cfe2ad09 Gemtext: just trim most whitespaces for simplicity 2021-12-13 23:36:52 +01:00
dece 44629dd3ad ContentAdapter: renamed for consistency 2021-12-13 23:36:52 +01:00
dece a44c36bdca res: reduce a bit the vertical paddings 2021-12-13 23:36:52 +01:00
dece 9743fea7d5 MainActivity: fix issue with going back 2021-12-13 23:36:52 +01:00
dece 6a65df0f4e Gemtext: fix issue with link parsing 2021-12-13 23:36:52 +01:00
dece 51f822eb9d History: add Room database for history
Also add going back support.
2021-12-13 23:36:52 +01:00
dece 5cb3af8d12 improve the default rendering for all elements 2021-12-13 23:36:52 +01:00
dece 3cba46ad5d MainActivity: rework layout to avoid lag
ScrollView + RecyclerView lead to very slow loading times for the
recycler, like a few seconds on the biggest Medusae pages. Turns out it
binds every ViewHolder instantly, losing all the recycling behavior!
Following some guidelines on StackOverflow fixed this, because official
docs could not.
2021-12-13 23:36:52 +01:00
dece 57854e56dc UriUtils: add a bunch of URI utilities
So we can now click on relative links, wow! Fast progress!
2021-12-13 23:36:52 +01:00