Commit graph

80 commits

Author SHA1 Message Date
dece 2f2a70040f PageFragment: fix issue with empty home URL 2022-02-17 17:56:41 +01:00
dece d9802dc44d PageViewModel: hande audio and video links
Big first step in issue #11.
2022-02-17 00:46:07 +01:00
dece 11854d4312 PageViewModel: download images to media store 2022-02-16 23:36:35 +01:00
dece d447370a41 MimeType: use it to process responses accordingly
This prevents Comet from showing JPGs as Gemtext, whew… Any unhandled
MIME type now presents an alert, and we should slowly support more and
more types.
2022-02-16 11:48:23 +01:00
dece a76e84cf1d UriUtilsTest: clean 2022-02-16 11:06:52 +01:00
dece fd5471b615 Uri: add resolveLinkUri with tests 2022-02-16 11:06:26 +01:00
dece fcf12f09d2 Request: fix coroutine pool for server data 2022-02-15 17:09:25 +01:00
dece 59e664ec5c clean and add some docs 2022-02-15 17:09:11 +01:00
dece cd1732c599 MimeType: add class with tests, woah! 2022-02-15 17:08:39 +01:00
dece 1fbfc38d6f colors: use colors more adequately
Turns out Solarized has a bunch of rules like maintaining the same
contrast between normal text on normal background with selected text on
slightly highlighted background and so on. This commit attempts to fix
issues related to that, and indeed it seems to look better!
2022-02-14 19:15:02 +01:00
dece 50793d1440 PageViewModel: use appropriate client certs 2022-02-13 23:56:09 +01:00
dece 3aea6f42c9 HistoryAdapter: show last visits 2022-02-13 19:10:55 +01:00
dece c4d0e66322 PageAdapter: show URL schemes on links
Currently only show them on absolute URLs and if they are not Gemini
links (https, gopher, etc).
2022-02-13 18:14:53 +01:00
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