Damien Elmes
2b6c8b4296
tuple type for InvalidInput
2021-04-01 17:37:18 +10:00
Damien Elmes
a250464309
switch DbError to tuple type
2021-04-01 17:34:03 +10:00
Damien Elmes
1704f7fe80
drop dependency on failure crate
2021-04-01 17:21:13 +10:00
Damien Elmes
af37164fba
move sync/network errors into separate file
2021-04-01 17:02:54 +10:00
Damien Elmes
8363fcf2a8
move DB error into separate file; add InvalidRegex error
2021-04-01 16:28:23 +10:00
Damien Elmes
f14a631f68
split search errors into separate file
2021-04-01 16:18:28 +10:00
Damien Elmes
094e4ad461
crate::err -> crate::error
2021-04-01 16:07:13 +10:00
RumovZ
99e28068f9
Refactor get_row_color()
2021-03-31 08:56:54 +02:00
RumovZ
5e151cdc42
Pass Column by value
2021-03-31 00:02:10 +02:00
RumovZ
8779fb5ede
Add note interval column
2021-03-30 23:44:35 +02:00
RumovZ
31155f2dcd
Refactor note_ease_str()
2021-03-30 23:44:16 +02:00
RumovZ
f530c6d852
Fix comment typo
2021-03-30 21:40:35 +02:00
RumovZ
1ad91a5312
Add note due column
2021-03-30 21:39:15 +02:00
RumovZ
e9c14a763c
Refactor card_due_str()
2021-03-30 20:50:09 +02:00
RumovZ
da156cd759
Rename browser_rows to browser_table
...
Reflects the addition of column handling.
2021-03-30 12:08:35 +02:00
RumovZ
ffe77b1291
Add browser column enum for backend
2021-03-30 11:59:52 +02:00
RumovZ
4933b922f7
Add note lapses column
2021-03-29 16:06:15 +02:00
RumovZ
32e538d0db
Add note reps column
2021-03-29 15:52:02 +02:00
Damien Elmes
3383f1742a
rename BrowserCardState
...
Use a more verbose name, and use 'note' rather than 'card', so we
can rely on the default of False
2021-03-29 17:12:45 +10:00
RumovZ
0d8b1c9d0b
squash merge browser refactor
...
Closes #1100
2021-03-29 16:14:54 +10:00
Damien Elmes
0a5222c400
add a few more ftl type hints
2021-03-29 15:55:15 +10:00
Damien Elmes
6ca690a14c
gate qt template inclusion on extra_ftl_root name
...
Bazel was not noticing that the build script needs to be recompiled
when the qt templates flag was changed.
2021-03-29 13:17:38 +10:00
Damien Elmes
cfac40febc
switch NoteType to Notetype
...
When used as a variable, we were typically calling it a 'notetype', not
a 'note type'.
2021-03-27 22:03:19 +10:00
Damien Elmes
9f4a06abee
ID -> Id in protobuf and Python
...
follow-up to dc81a7fed0
2021-03-27 21:38:20 +10:00
Damien Elmes
fcfa6bab4e
update to latest Rust
2021-03-27 20:49:10 +10:00
Damien Elmes
561d160590
fix some clippy lints in tests
2021-03-27 20:44:31 +10:00
Damien Elmes
1055acb9f2
fix more issues uncovered by the latest clippy
2021-03-27 20:25:34 +10:00
Damien Elmes
dc81a7fed0
use mixed case for abbreviations in Rust code
...
So, this is fun. Apparently "DeckId" is considered preferable to the
"DeckID" were were using until now, and the latest clippy will start
warning about it. We could of course disable the warning, but probably
better to bite the bullet and switch to the naming that's generally
considered best.
2021-03-27 19:53:33 +10:00
Damien Elmes
89d249b3b6
update to the latest rules_rust + security framework update
2021-03-27 19:28:19 +10:00
Damien Elmes
dd99059218
address some new clippy lints
2021-03-27 19:28:19 +10:00
Damien Elmes
a96ac98605
update Rust deps
2021-03-27 14:47:16 +10:00
Damien Elmes
b5b21edd11
add string/number distinction to generated Rust methods
2021-03-27 14:31:23 +10:00
Damien Elmes
e4002d7a5e
update to latest Fluent
2021-03-27 13:24:11 +10:00
Damien Elmes
3433c02242
i18n->tr in rslib/ to match Python/TS code
2021-03-27 12:09:51 +10:00
Damien Elmes
d6b9cc4d9b
drop the legacy enum from rslib, and pass separate module/message idx
2021-03-27 11:56:31 +10:00
Damien Elmes
f485efce16
update remaining TR references in rslib
2021-03-27 11:18:34 +10:00
Damien Elmes
c45ab78b73
update multi-arg TR references, where some needed reordering
2021-03-27 10:49:40 +10:00
Damien Elmes
698ae855d3
update 1 arg tr strings in rslib
2021-03-27 10:39:53 +10:00
Damien Elmes
d5e5722dc8
preserve variable order when extracting from ftl files
2021-03-27 09:09:13 +10:00
Damien Elmes
dc5fdd30d4
update no-arg TR references in rslib/
2021-03-26 23:16:08 +10:00
Damien Elmes
5abc48932c
write methods into generated.rs
2021-03-26 23:07:18 +10:00
Damien Elmes
cca1d29cc8
fix warning in latest Rust
2021-03-26 23:06:15 +10:00
Damien Elmes
b57e9be46f
allow js to request specific i18n modules
...
Brings the payload on the congrats page with a non-English language
down from about 150k to 15k
2021-03-26 21:43:36 +10:00
Damien Elmes
df93ed0b15
update TR references with args in *.ts; fix average answer time
2021-03-26 19:10:39 +10:00
Damien Elmes
3d366d5264
add types to some more Fluent variables
2021-03-26 16:52:54 +10:00
Damien Elmes
8cc6758eb1
declare variables with some common names as int instead of a union
2021-03-26 16:33:53 +10:00
Damien Elmes
3199fa80d5
delimit variables in docstrings to make them easier to read
2021-03-26 14:38:30 +10:00
Damien Elmes
8294b18c68
catch variables only used in plural selection
2021-03-26 14:20:44 +10:00
Damien Elmes
3c19708684
Merge pull request #1094 from shaunren/fix-tts-html
...
Fix extraneous whitespaces from strip_html_for_tts
2021-03-26 11:00:41 +10:00
Damien Elmes
c697eb1086
embed strings.json into write_json.rs
...
It appears that including the build script as a dependency is not
enough to make the file available at runtime, so the build breaks
if ts/ is built first.
2021-03-26 09:55:21 +10:00