193 Commits

Author SHA1 Message Date
d597c68ece Remove experimental FS
It'll be easier to just extend the already existing views. Maintaining
yet another view is just too much.
2021-09-08 15:30:19 +02:00
89298c4495 Language Selector: Show the full language name
Instead of just the iso code

Man, this took quite a while, because of the Mandarin script.
2021-09-08 01:50:12 +02:00
637642e19b Supabase: Store the data in the support directory
By default it is stored in ~/Documents in linux.
2021-09-07 10:37:46 +02:00
665d1dce2b Add a Materialized View for the Links
Calculating the links is very expensive, this way we finally don't need
to do it each time!
2021-09-06 16:57:30 +02:00
d3fae40173 Rename views to providers
The providers give a View
2021-09-06 14:32:25 +02:00
17afc9deb9 Views: Use Nested to simplify code
It makes it easier to read by avoiding the deep nesting.
2021-09-01 09:16:50 +02:00
abc9a31290 Add InlineTags Materialized View
This way we avoid parsing the tags from the body again and again, also
I can make the tags processing more complex without worrying too much
about the computational overhead.
2021-08-31 22:59:41 +02:00
130eb852b2 Note: Move summary to a MaterializedView
This way it doesn't need to be computed each time the app loads.
2021-08-31 21:48:27 +02:00
35e7fc2103 Simplify Providers code 2021-08-31 21:27:02 +02:00
8b9ec3fab7 Structured Logging++ 2021-08-30 22:46:15 +02:00
455844e9b0 LocaleKeys++ 2021-08-26 13:54:39 +02:00
b42538192d Analytics: Move firebase lab detection into analytics package
This way the app.dart file has minimal logic.
2021-08-17 00:10:53 +02:00
0a5e0bcf43 Analytics: Add config class
Move parts out of AppSettings
2021-08-16 23:55:14 +02:00
6ae11d386d Analytics: Move settings into Analytics
Lots of code cleanups as well
2021-08-16 13:23:26 +02:00
103197b886 Analytics: Send to backend when possible 2021-08-12 00:10:18 +02:00
9efc8cfcfa Analytics: Hook up the storage
Add events to the storage independent of Analytics being enabled or not.
The idea is that the user can later decide to enable the analytics and
send all the old events.
2021-08-11 11:54:32 +02:00
54c36af040 Analytics: decouple from error reporting 2021-08-09 11:53:24 +02:00
0a7eb4d517 Move pseudoId to Analytics
From AppSettings
2021-08-03 16:08:28 +02:00
badd4ef1e5 Analytics: Allow calls to logEvent even if we haven't been initialzed 2021-08-02 16:27:45 +02:00
0b7195960c Split Analytics Route Observer into its own file 2021-08-02 15:42:15 +02:00
17d2c2db0d Analytics: cleanup
This way its less dependant on GitJournal and can be used in other
projects.
2021-08-02 15:36:58 +02:00
60ca4a6a9d Fix flutter analyze issue 2021-07-31 18:33:53 +02:00
3a71cca202 Move logging code to its own folder 2021-07-30 14:39:13 +02:00
2505d00dfb Replace dart:io with universal_io
Platform from dart:io cannot be used on the web for reasons. And this
way we get a fake File/Directory class which we can use for atleast
running the web version, even if it won't work.
2021-07-30 11:39:26 +02:00
c6665fa63e Simplify Settings/Config classes 2021-07-29 12:45:33 +02:00
c66eaf1052 NotesFolderConfig: Read directly from the SharedPref
It's super annoying that we have this class which reading from the
settings, so adding any new value involves updating some 12 new things.
2021-07-27 16:33:16 +02:00
7fa67497bb Split Settings into StorageConfig 2021-07-26 21:53:44 +02:00
b2e08550bb Add GitConfig
This makes the Settings class smaller.
2021-07-26 20:18:22 +02:00
b08c4436b7 MarkdownRendererSettings -> MarkdownRendererConfig
I'm going to call all the classes which hold the settings/configuration
by Config. The screens can be called settings.
2021-07-26 20:06:11 +02:00
95f6bceebc Split Settings into MarkdownRendererSettings
We don't need one huge monolight of all the settings.
2021-07-26 16:19:05 +02:00
2cad314a4a Replace package_info with package_info_plus
The former is deprecated, and this one supports more platforms.
2021-07-19 15:32:15 +02:00
d07acac53f Use device_info_plus instead of device_info
It now contains the toMap functions, so we can delete a lot of code.
2021-07-07 16:29:08 +02:00
774fa95e1b Revert "macos: Remove the ugly title bar of the window"
This reverts commit bdf284311caa2f1a4d8b86c170251406fc661fbd.

The title bar cannot be clicked and dragged with this change. It's super
annoying.
2021-07-02 16:28:53 +02:00
bdf284311c macos: Remove the ugly title bar of the window
Instead we are creating our own which is of the same color. This isn't
perfect, but it's much prettier than what we had before.
2021-07-02 07:58:14 +02:00
dd6b069b18 fallbacklocale: Avoid using the country code 2021-07-02 07:15:53 +02:00
790c092e85 Fix portugese translations
We aren't using the country codes anywhere.
2021-07-02 07:11:25 +02:00
8975baa4e9 Add english as a fallback locale
This way keys that are not found still use English.
2021-07-01 12:53:43 +02:00
6cacfac7bb Update translations
* Add a script to download all the translations
* Fill non translated fields with English
2021-07-01 11:59:07 +02:00
d4a345ea89 Avoid using 'dart:io' wherever possible
This gets us one step closer to supporting the web.
2021-07-01 01:46:01 +02:00
0a4617108d QuickActions: Fix translation strings 2021-06-29 17:30:25 +02:00
bec866ed69 Add more languages to list of supported languages 2021-06-11 10:33:50 +02:00
a3d5690fad Fix quick actions and Share to 2021-06-11 10:29:25 +02:00
8628cb6e8a Add Localization for JP and Resource Added.
Commit once, to check in Mac.
2021-06-11 10:26:52 +02:00
986918bfbe App: minor refactor
This allows me to reuse parts of the app global variable initialization
in other parts of the code.
2021-06-09 16:36:49 +02:00
d6e2f09a72 Move all settings code to its own folder
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
bc0476ce62 IAP: Move all the code to one folder
It's confusing to have it sprawled across the widgets and screens and
base folder.
2021-06-03 13:48:46 +02:00
190dae6f09 Null Safety++
This is exhausting
2021-05-27 13:41:34 +02:00
062f09d16a Do not call mobile specific code on the desktop version 2021-05-11 16:10:45 +02:00
dd6d4f0f15 Use deprecated FlatButton.icon
The newer TextButton.icon uses some of the new styles which I cannot
seem to figure out exactly, so for this release lets just use the old
button.
2021-05-09 22:05:25 +02:00
978d8b0a0c Use a FlexColorScheme by default
My custom color scheme is breaking in many places and showing blue text.
For now lets use this color scheme, though this breaks stuff in many
places as even the alignment changes.

However, I needed to fix all of this anyway, so I may as well start.
2021-05-07 10:50:44 +02:00