Commit graph

66 commits

Author SHA1 Message Date
dece 8c1bebf315 PageAdapter: show visited links with another color 2022-02-13 18:13:32 +01:00
dece a822287de2 Request: catch SSLProtocolException
For some reason this does not make the whole page reception to fail.
User is not warned about this exception, which may or may not be bad.
2022-02-06 18:40:57 +01:00
dece 4282567f5f Request: add a TLS version preference 2022-02-04 19:09:44 +01:00
dece 1d69c075a1 Identities: let the user specify a subject CN 2022-02-04 19:09:14 +01:00
dece b6d855fdeb styles: fix some issues and rename things around 2022-02-04 19:08:08 +01:00
dece 02ba3a1401 IdentityDialog: show and edit URL paths 2022-02-04 15:28:57 +01:00
dece ea6f54cd73 InputDialog: move to own class 2022-02-04 15:28:41 +01:00
dece 9a91c72d1e Database: use a simpler method for identity usages 2022-02-04 14:58:40 +01:00
dece 11bea0e585 Identities: add deletion and fix sync issues
- Deletion works and clear the corresponding keystore entries.
- No more sync issues with the listing when creating/updating/deleting.
2022-02-04 12:55:20 +01:00
dece f9c341c35a styles: attempt to change link ripple effect
Does not work; it works if we use the style as a theme (????) but won't
correctly use the day/night colors then.
2022-02-04 10:58:56 +01:00
dece e077a3f4c5 Identities: WIP, the list does not look so bad now 2022-02-02 22:40:50 +01:00
dece f45c3facfd update kotlin plugin and some deps 2022-02-02 16:26:10 +01:00
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