26 Commits

Author SHA1 Message Date
b4302fe467 feat: Add support for YYYY-MM-DD in the YAML frontmatter
Fixes #972

This required regenerating the protobufs generated files, which seem to
have tons of extra changes, and needed some manual changes to get them
to compile.

Overall, the entire protobuf idea wasn't the best in retrospect, and in
the next version of GitJournal, I'll be going with a simple relational
database instead.
2024-08-24 23:05:09 +02:00
7fd1c99287 Use Provider's context.read/watch
Instead of the legacy Provider.of. Less scope of bugs this way and the
code is so much nicer to read.
2023-12-06 08:20:40 +01:00
88d5cf8713 Upgrade deps + flutter
* Also remove dart_code_metrics
2023-11-25 00:51:25 +01:00
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
ea8cd35261 Fix deprecated methods 2023-02-09 16:00:29 +01:00
ca98da4029 Update deps and fix linting issues 2023-01-20 16:14:08 +01:00
d6abbbb9b5 Remove the entire concept of Features
GitJournal is no longer going to be a product where it's paid per
feature. Instead it'll just be a paid one time thing.
2023-01-19 18:21:37 +01:00
6d453ee62a Rename app_localization_context to l10n
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
6f2ce4a6b5 Port more uses of LocaleKeys to new translation system 2022-11-27 17:42:26 +01:00
ae9228f65e Use super.key
Makes the code a bit more readable.
2022-08-25 11:32:25 +02:00
e5c49f1792 bugfix: Always launch urls in an external application 2022-06-04 13:39:40 +02:00
be7fe8a407 Fix linting issues 2022-05-16 12:35:38 +02:00
c56da852b6 Add more specialized snackbox functions
It's easier to control how the errors look this way.
2022-01-27 10:26:23 +01:00
e2b6d94eda analyzer: Fix unnecessry includes 2022-01-13 19:03:16 +01:00
be0bab8435 Mark Inline Latex as Pro
It's super ugly and doesn't quite work, but oh well.
2022-01-12 14:02:24 +01:00
5fba8ba5d0 Improve katex inline parsing
Handle an edge case
2022-01-12 13:56:16 +01:00
782e280ca2 Implement Katex Block Parser
Related to #125

flutter_markdown really isn't built for custom tags, and after trying to
get it to work for over an hour, I give up for now.
2022-01-12 13:55:27 +01:00
acaeffee4f Add missing license headers 2022-01-07 17:10:28 +01:00
455db2df75 Move markdown rendering code into one folder
Easier to manage
2022-01-07 17:09:32 +01:00
5351073d7f Render inline Katex
Related to #125
2022-01-07 16:58:17 +01:00
f2ff4170bd markdown: Implement a KatexInlineParser
Also try for a KatexBlockParser but that doesn't seem to be working.
2022-01-06 23:30:27 +01:00
1bef9d5559 Move file 2022-01-06 22:33:31 +01:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00
64faba451e Try to implement a markdown codec
This is serializing it into bytes via protobuf. The idea is to avoid the
expensive parsing of the markdown multiple times, and instead just cache
the result.
2021-09-19 11:16:41 +02:00
2751b89cf4 Improve protobuf generation
Also add proto files for a markdown experiment
2021-09-19 10:06:18 +02:00
1779eb565a Move markdown extensions to their own folder
The 'core' part is getting way too crowded.
2021-09-19 09:42:43 +02:00