1373 Commits

Author SHA1 Message Date
453fac784d Add hover code
This way the app can be built for desktop platforms. There is still a
lot of work to do in order to get it to work, but this is a start.

Related to #137
2020-05-31 09:07:29 +02:00
e5d904b2a7 Use git init from dart_git
One less dependency on git_bindings. Also, this way the app at least
somewhat starts on osx.
2020-05-31 09:03:37 +02:00
61671c1ea8 Bump flutter_runtime_env 2020-05-31 08:45:49 +02:00
fb5ab57fe0 Folder.removeFolder: Remove listeners recursively
Ideally when removing a folder one shouldn't have any notes, but
sometimes we do allow an entire folder to be reset.

Related to #36
2020-05-31 03:38:24 +02:00
e740bd2223 FlattenedNotesFolder: Test reset 2020-05-31 03:16:17 +02:00
5788a2bde0 FlattenedNotesFolder: Propogate renames 2020-05-31 03:08:49 +02:00
772c3320b6 Add another test for FlattenedNotes 2020-05-31 03:03:11 +02:00
2a35ea7c38 BugReport: Send bug reports with new logs
Earlier we used to call 'adb logcat' and get all the logs and send
those. This didn't work on iOS and we wouldn't get all the logs even in
android at times as the logcat buffer can be unreliable.

Since now we log all the messages to a file, we can just send that file.
The disadvtange is that we only get Dart level logs, and not iOS or Java
or NDK or our C libraries logs.

I should really dump libgit2 ASAP.
2020-05-31 02:42:58 +02:00
68d3aa1a2b Disable Fimber logging in release mode
No point debugging to adb and writing it to a file.
2020-05-31 02:32:51 +02:00
012c3b067d Fimber: Show proper log tag
Now that we're wrapping Fimber in our own logging system, we should get
the correct tag.
2020-05-31 02:30:44 +02:00
5d4c8ef178 Photo: Ignore photo_access_denied exception
Fixes APP-2Y
2020-05-31 02:12:14 +02:00
d288ed7ea7 PurchaseScreen: On error when fetching Purchases - abort
Fixes APP-2T
2020-05-31 02:01:39 +02:00
b9b53f28c4 Log some exceptions are warnings
These aren't really a problem, but it's still interesting to know if
they are happening.
2020-05-31 02:00:00 +02:00
6e229aeebd Translate Git Remote Settings title/subtitle 2020-05-29 13:26:29 +02:00
cb8764f52d Translate NoteMetaData settings 2020-05-29 13:23:23 +02:00
9eaad3b5a4 Make Note metadata config a pro setting 2020-05-29 13:17:17 +02:00
633c8c4567 DebugLogLevel: Save the last used log level
This way it's easier to return back to see what's going wrong.
2020-05-29 12:44:46 +02:00
53ed91ff64 DebugScreen: Make the text selectable 2020-05-29 12:39:44 +02:00
cd75f6c227 Bump version 2020-05-28 13:32:34 +02:00
d665981182 Allow Git remote host to be reset
This is quick and dirty way of fixing the problem. It doesn't migrate
the notes from the previous repo and just discards them, so you cannot
move your notes from one repo to another using GitJournal (for now), but
at least its better than having to re-install the app.

Related to #36
2020-05-26 23:53:14 +02:00
ee1009b087 Avoid hardcoding the git repo folder's name everywhere
This way, in the future we can support multiple repos, and more
importantly it will be easier to reconfigure the git host.
2020-05-26 23:49:57 +02:00
18c93fbbb4 Note: Do not change the body if it hasn't been modified
I'm scared that for very large notes this won't be very fast, on the
other hand changing the body results in many other fields being
re-computed.
2020-05-26 18:07:24 +02:00
d3fb2b7119 Try to make the backlinks section prettier
I'm not totally convinced that it should be here.
2020-05-26 18:05:50 +02:00
4eeff093c1 Cache the Links in a note
This requires the markdown to be parsed which can be an incredibly slow
operation, so lets avoid re-doing it unless necessary.
2020-05-26 17:08:03 +02:00
36f31e06bb Move NoteBacklinks Widget to its own file 2020-05-26 17:07:57 +02:00
96ed70f023 Show the backlinks of a Note
This is the initial proof of concept and doesn't look very pretty. It's
also not very efficient.

Related to #141
2020-05-26 15:37:09 +02:00
af69dd6e48 Note: Allow returning the links in the document
This isn't perfect as we aren't handling referenced links and maybe even
autolinks, but it's a start.

Related to #141
2020-05-26 14:50:23 +02:00
29ec2d1a90 Remove unused import 2020-05-26 13:48:59 +02:00
bcbf54106f Handle empty checklists
If there were no items we were ignoring the checklist. Added some extra
tests as well.

Fixes #148
2020-05-26 13:43:41 +02:00
0d3648768c GitLab manual setup: Fix url
GitLab seems to have changed the url to add a deploy key manually.
2020-05-26 13:43:41 +02:00
8b4fa886ba Add a CustomRouteObserver
This basically asserts if we move to a route without a name. This way
I'll always catch when a route doesn't have a name, and I can start
getting better analytics on which screens are used most frequently.
2020-05-26 13:43:41 +02:00
85ecca46f0 Update FUNDING.yml 2020-05-23 02:23:52 +02:00
2b7ce49d68 Update FUNDING.yml 2020-05-23 02:23:04 +02:00
321198bd4e Create FUNDING.yml 2020-05-23 02:22:16 +02:00
e1efe1a0e9 Avoid our fork of ssh_key
The required change has been upstreamed.
2020-05-21 10:52:19 +02:00
0155e70557 PurchaseScreen: Add an ugly back button on ios 2020-05-21 10:42:33 +02:00
d210397b83 ios: Link to storekit for iap 2020-05-21 00:56:23 +02:00
b0354b5c3f DebugScreen: Translate the strings 2020-05-20 00:56:55 +02:00
7611794fd3 DebugScreen: Allow levels dialog to be dismissed 2020-05-20 00:51:57 +02:00
c935feaee0 DebugScreen: Level selector - Highlight all selected levels
When selecting 'Debug', it also selects all the levels which are more
important than it.
2020-05-20 00:50:44 +02:00
4c56ddc4df Allow the default Image location to be configured
Fixes #10
2020-05-20 00:32:13 +02:00
1bf91b9292 DebugScreen: Make it work with dark mode 2020-05-19 22:53:08 +02:00
59c2f866bc DebugScreen: Allow filtering the logs based on their level 2020-05-19 22:51:28 +02:00
e047787e29 KatexWidget: Cache the generated images
The file is stored in the tmp dir with the filename of
"katex_$HASH$.png" where $HASH$ is the md5 hash of the input string to
be rendered.

The cache isn't ever cleared so far, but maybe the underlying OS will do
that automatically?

Related to #125
2020-05-19 19:44:37 +02:00
9167398309 KatexWidget: Allow multiple widgets to exist
Since there can be only one instance of the WebView, we need to lock in
between render calls to the webview.

Related to #125
2020-05-19 19:31:14 +02:00
fb48fc648d KatexWidget: Make the background transparent
Related to #125
2020-05-19 18:55:34 +02:00
ce201aa390 Add an experimental Katex rendering Widget
Related to #125

This still needs to be integrated into the Flutter Markdown renderer.
But the good news is that this works!

It currently requires network access to download the katex scripts. It
does NOT send the katex string to any server. The rendering is performed
in the app.
2020-05-19 18:36:16 +02:00
89d23242a0 Update changelog 2020-05-19 17:05:00 +02:00
c1d81da15d NewFolder: Fix mix up between Create and Discard
Fixes #139
2020-05-19 11:30:44 +02:00
4208b05bb4 NoteEditor: Only enable 'Discard Changes' option if we have changes
Otherwise disable the button.
2020-05-19 00:02:07 +02:00